@chainstream-io/sdk 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ho as Resolution, a as Configuration, U as DexApi, Y as DexPoolApi, bf as TokenApi, bU as WalletApi, bx as TradeApi, au as RankingApi, bN as TransactionApi, z as DefiSolanaMoonshotApi, K as DefiSolanaPumpfunApi, aT as RedPacketApi, a6 as IpfsApi, w as BlockchainApi, bW as WatchlistApi, a9 as JobsApi, ao as KYTApi, a4 as EndpointApi } from './WatchlistApi-DtNbXNQ2.cjs';
1
+ import { hA as Resolution, a as Configuration, U as DexApi, Z as DexPoolApi, bh as TokenApi, bR as WalletApi, by as TradeApi, av as RankingApi, bK as TransactionApi, z as DefiSolanaMoonshotApi, K as DefiSolanaPumpfunApi, aU as RedPacketApi, a7 as IpfsApi, w as BlockchainApi, bT as WatchlistApi, aa as JobsApi, ap as KYTApi, a5 as EndpointApi } from './WatchlistApi-XN9Rn27y.js';
2
2
 
3
3
  declare enum TokenActivityType {
4
4
  Sell = "sell",
@@ -199,6 +199,20 @@ interface TokenLiquidity {
199
199
  value: string;
200
200
  timestamp: number;
201
201
  }
202
+ interface TokenMaxLiquidity {
203
+ tokenAddress: string;
204
+ poolAddress: string;
205
+ liquidityInUsd: string;
206
+ liquidityInNative: string;
207
+ timestamp: number;
208
+ }
209
+ interface TokenTotalLiquidity {
210
+ tokenAddress: string;
211
+ liquidityInUsd: string;
212
+ liquidityInNative: string;
213
+ poolCount: number;
214
+ timestamp: number;
215
+ }
202
216
  interface DexProtocol {
203
217
  programAddress?: string;
204
218
  protocolFamily?: string;
@@ -422,6 +436,28 @@ declare class StreamApi {
422
436
  callback: (data: TokenLiquidity) => void;
423
437
  filter?: string;
424
438
  }): Unsubscrible;
439
+ /**
440
+ * Subscribe to token max liquidity updates
441
+ * Pushes the max liquidity info of a token in a single pool
442
+ * Channel: dex-token-liquidity:{chain}_{token_address}
443
+ */
444
+ subscribeTokenMaxLiquidity({ chain, tokenAddress, callback, filter, }: {
445
+ chain: string;
446
+ tokenAddress: string;
447
+ callback: (data: TokenMaxLiquidity) => void;
448
+ filter?: string;
449
+ }): Unsubscrible;
450
+ /**
451
+ * Subscribe to token total liquidity updates
452
+ * Pushes the total liquidity info of a token across all pools
453
+ * Channel: dex-token-total-liquidity:{chain}_{token_address}
454
+ */
455
+ subscribeTokenTotalLiquidity({ chain, tokenAddress, callback, filter, }: {
456
+ chain: string;
457
+ tokenAddress: string;
458
+ callback: (data: TokenTotalLiquidity) => void;
459
+ filter?: string;
460
+ }): Unsubscrible;
425
461
  subscribeRankingTokensLiquidity({ chain, channelType, callback, }: {
426
462
  chain: string;
427
463
  channelType: ChannelType;
@@ -509,8 +545,8 @@ interface DexAggregatorOptions {
509
545
  */
510
546
  autoConnectWebSocket?: boolean;
511
547
  }
512
- declare const LIB_VERSION = "0.1.24";
513
- declare class DexClient {
548
+ declare const LIB_VERSION = "0.1.26";
549
+ declare class ChainStreamClient {
514
550
  readonly requestCtx: DexRequestContext;
515
551
  readonly _configuration: Configuration;
516
552
  readonly dex: DexApi;
@@ -537,4 +573,4 @@ interface PostOptions {
537
573
  idempotencyKey?: string;
538
574
  }
539
575
 
540
- export { ChannelType as C, type DexPoolBalance as D, LIB_VERSION as L, MetricType as M, type NewToken as N, type PostOptions as P, RankingType as R, StreamApi as S, TokenActivityType as T, type Unsubscrible as U, type WalletBalance as W, type TokenActivity as a, type TokenStat as b, type TokenHolder as c, type WalletPnl as d, type TokenSupply as e, type TokenLiquidity as f, type DexProtocol as g, type TokenBondingCurve as h, type TokenMetadata as i, type TokenCandle as j, type TradeActivity as k, type WalletTokenPnl as l, Dex as m, type RankingTokenList as n, type TokenProvider as o, type DexRequestContext as p, type DexAggregatorOptions as q, DexClient as r, type socialMedia as s };
576
+ export { ChannelType as C, type DexPoolBalance as D, LIB_VERSION as L, MetricType as M, type NewToken as N, type PostOptions as P, RankingType as R, StreamApi as S, TokenActivityType as T, type Unsubscrible as U, type WalletBalance as W, type TokenActivity as a, type TokenStat as b, type TokenHolder as c, type WalletPnl as d, type TokenSupply as e, type TokenLiquidity as f, type TokenMaxLiquidity as g, type TokenTotalLiquidity as h, type DexProtocol as i, type TokenBondingCurve as j, type TokenMetadata as k, type TokenCandle as l, type TradeActivity as m, type WalletTokenPnl as n, Dex as o, type RankingTokenList as p, type TokenProvider as q, type DexRequestContext as r, type socialMedia as s, type DexAggregatorOptions as t, ChainStreamClient as u };
@@ -1,4 +1,4 @@
1
- import { ho as Resolution, a as Configuration, U as DexApi, Y as DexPoolApi, bf as TokenApi, bU as WalletApi, bx as TradeApi, au as RankingApi, bN as TransactionApi, z as DefiSolanaMoonshotApi, K as DefiSolanaPumpfunApi, aT as RedPacketApi, a6 as IpfsApi, w as BlockchainApi, bW as WatchlistApi, a9 as JobsApi, ao as KYTApi, a4 as EndpointApi } from './WatchlistApi-DtNbXNQ2.js';
1
+ import { hA as Resolution, a as Configuration, U as DexApi, Z as DexPoolApi, bh as TokenApi, bR as WalletApi, by as TradeApi, av as RankingApi, bK as TransactionApi, z as DefiSolanaMoonshotApi, K as DefiSolanaPumpfunApi, aU as RedPacketApi, a7 as IpfsApi, w as BlockchainApi, bT as WatchlistApi, aa as JobsApi, ap as KYTApi, a5 as EndpointApi } from './WatchlistApi-XN9Rn27y.cjs';
2
2
 
3
3
  declare enum TokenActivityType {
4
4
  Sell = "sell",
@@ -199,6 +199,20 @@ interface TokenLiquidity {
199
199
  value: string;
200
200
  timestamp: number;
201
201
  }
202
+ interface TokenMaxLiquidity {
203
+ tokenAddress: string;
204
+ poolAddress: string;
205
+ liquidityInUsd: string;
206
+ liquidityInNative: string;
207
+ timestamp: number;
208
+ }
209
+ interface TokenTotalLiquidity {
210
+ tokenAddress: string;
211
+ liquidityInUsd: string;
212
+ liquidityInNative: string;
213
+ poolCount: number;
214
+ timestamp: number;
215
+ }
202
216
  interface DexProtocol {
203
217
  programAddress?: string;
204
218
  protocolFamily?: string;
@@ -422,6 +436,28 @@ declare class StreamApi {
422
436
  callback: (data: TokenLiquidity) => void;
423
437
  filter?: string;
424
438
  }): Unsubscrible;
439
+ /**
440
+ * Subscribe to token max liquidity updates
441
+ * Pushes the max liquidity info of a token in a single pool
442
+ * Channel: dex-token-liquidity:{chain}_{token_address}
443
+ */
444
+ subscribeTokenMaxLiquidity({ chain, tokenAddress, callback, filter, }: {
445
+ chain: string;
446
+ tokenAddress: string;
447
+ callback: (data: TokenMaxLiquidity) => void;
448
+ filter?: string;
449
+ }): Unsubscrible;
450
+ /**
451
+ * Subscribe to token total liquidity updates
452
+ * Pushes the total liquidity info of a token across all pools
453
+ * Channel: dex-token-total-liquidity:{chain}_{token_address}
454
+ */
455
+ subscribeTokenTotalLiquidity({ chain, tokenAddress, callback, filter, }: {
456
+ chain: string;
457
+ tokenAddress: string;
458
+ callback: (data: TokenTotalLiquidity) => void;
459
+ filter?: string;
460
+ }): Unsubscrible;
425
461
  subscribeRankingTokensLiquidity({ chain, channelType, callback, }: {
426
462
  chain: string;
427
463
  channelType: ChannelType;
@@ -509,8 +545,8 @@ interface DexAggregatorOptions {
509
545
  */
510
546
  autoConnectWebSocket?: boolean;
511
547
  }
512
- declare const LIB_VERSION = "0.1.24";
513
- declare class DexClient {
548
+ declare const LIB_VERSION = "0.1.26";
549
+ declare class ChainStreamClient {
514
550
  readonly requestCtx: DexRequestContext;
515
551
  readonly _configuration: Configuration;
516
552
  readonly dex: DexApi;
@@ -537,4 +573,4 @@ interface PostOptions {
537
573
  idempotencyKey?: string;
538
574
  }
539
575
 
540
- export { ChannelType as C, type DexPoolBalance as D, LIB_VERSION as L, MetricType as M, type NewToken as N, type PostOptions as P, RankingType as R, StreamApi as S, TokenActivityType as T, type Unsubscrible as U, type WalletBalance as W, type TokenActivity as a, type TokenStat as b, type TokenHolder as c, type WalletPnl as d, type TokenSupply as e, type TokenLiquidity as f, type DexProtocol as g, type TokenBondingCurve as h, type TokenMetadata as i, type TokenCandle as j, type TradeActivity as k, type WalletTokenPnl as l, Dex as m, type RankingTokenList as n, type TokenProvider as o, type DexRequestContext as p, type DexAggregatorOptions as q, DexClient as r, type socialMedia as s };
576
+ export { ChannelType as C, type DexPoolBalance as D, LIB_VERSION as L, MetricType as M, type NewToken as N, type PostOptions as P, RankingType as R, StreamApi as S, TokenActivityType as T, type Unsubscrible as U, type WalletBalance as W, type TokenActivity as a, type TokenStat as b, type TokenHolder as c, type WalletPnl as d, type TokenSupply as e, type TokenLiquidity as f, type TokenMaxLiquidity as g, type TokenTotalLiquidity as h, type DexProtocol as i, type TokenBondingCurve as j, type TokenMetadata as k, type TokenCandle as l, type TradeActivity as m, type WalletTokenPnl as n, Dex as o, type RankingTokenList as p, type TokenProvider as q, type DexRequestContext as r, type socialMedia as s, type DexAggregatorOptions as t, ChainStreamClient as u };