@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.
- package/README.md +2 -2
- package/dist/{WatchlistApi-DtNbXNQ2.d.cts → WatchlistApi-XN9Rn27y.d.cts} +1800 -1403
- package/dist/{WatchlistApi-DtNbXNQ2.d.ts → WatchlistApi-XN9Rn27y.d.ts} +1800 -1403
- package/dist/{index-BRgfeoOg.d.cts → index-Bp5yAdv7.d.ts} +40 -4
- package/dist/{index-Dv24PgY3.d.ts → index-CA0E_3Hp.d.cts} +40 -4
- package/dist/index.cjs +617 -433
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +616 -432
- package/dist/index.mjs.map +1 -1
- package/dist/openapi/index.cjs +872 -548
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +14 -14
- package/dist/openapi/index.d.ts +14 -14
- package/dist/openapi/index.mjs +839 -534
- package/dist/openapi/index.mjs.map +1 -1
- package/dist/stream/index.cjs +40 -0
- package/dist/stream/index.cjs.map +1 -1
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.mjs +40 -0
- package/dist/stream/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
513
|
-
declare class
|
|
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
|
|
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 {
|
|
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.
|
|
513
|
-
declare class
|
|
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
|
|
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 };
|