@liberfi.io/client 0.1.32 → 0.1.34

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/dist/index.d.mts CHANGED
@@ -1,11 +1,5 @@
1
- import * as react from 'react';
2
- import { PropsWithChildren } from 'react';
3
- import * as _liberfi_io_types from '@liberfi.io/types';
4
- import { API, Chain, Token, TokenResolution, TokenCandle, TokenHolder, TokenMarketData, TokenSecurity, TokenStats, TradeActivity, WalletPnl, WalletPortfolioPnls, WalletPortfolios } from '@liberfi.io/types';
5
- import * as _tanstack_react_query from '@tanstack/react-query';
6
- import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
7
1
  import { ChainStreamClientOptions, TokenProvider } from '@chainstream-io/sdk';
8
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { API, Chain, Token, TokenResolution, TokenCandle, TokenSecurity, TokenStats, TokenHolder, TokenMarketData, WalletPortfolios, WalletPnl, WalletPortfolioPnls, Portfolio, PortfolioPnl, TradeActivity } from '@liberfi.io/types';
9
3
 
10
4
  declare global {
11
5
  interface Window {
@@ -14,323 +8,7 @@ declare global {
14
8
  };
15
9
  }
16
10
  }
17
- declare const _default: "0.1.32";
18
-
19
- interface DexClientContextValue {
20
- client: API.IClient;
21
- subscribeClient: API.ISubscribeClient;
22
- }
23
- declare const DexClientContext: react.Context<DexClientContextValue>;
24
-
25
- declare function useDexClient(): DexClientContextValue;
26
-
27
- interface UseFinalStretchTokensQueryParams extends API.GetTokenListOptions {
28
- chain: Chain;
29
- }
30
- declare function finalStretchTokensQueryKey(params: UseFinalStretchTokensQueryParams): string[];
31
- declare function fetchFinalStretchTokens(client: API.IClient, { chain, ...options }: UseFinalStretchTokensQueryParams): Promise<Token[]>;
32
- declare function useFinalStretchTokensQuery(params: UseFinalStretchTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
33
-
34
- interface UseMigratedTokensQueryParams extends API.GetTokenListOptions {
35
- chain: Chain;
36
- }
37
- declare function migratedTokensQueryKey(params: UseMigratedTokensQueryParams): string[];
38
- declare function fetchMigratedTokens(client: API.IClient, { chain, ...options }: UseMigratedTokensQueryParams): Promise<Token[]>;
39
- declare function useMigratedTokensQuery(params: UseMigratedTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
40
-
41
- interface UseNewTokensQueryParams extends API.GetTokenListOptions {
42
- chain: Chain;
43
- }
44
- declare function newTokensQueryKey(params: UseNewTokensQueryParams): string[];
45
- declare function fetchNewTokens(client: API.IClient, { chain, ...options }: UseNewTokensQueryParams): Promise<Token[]>;
46
- declare function useNewTokensQuery(params: UseNewTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
47
-
48
- declare function fetchPresignedUploadUrl(client: API.IClient): Promise<string>;
49
- declare function usePresignedUploadUrlQuery(options?: Omit<UseQueryOptions<string, Error, string, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<string, Error>;
50
-
51
- type UseSearchTokensQueryParams = API.SearchTokensOptions;
52
- declare function searchTokensQueryKey(params: UseSearchTokensQueryParams): string[];
53
- declare function fetchSearchTokens(client: API.IClient, params: UseSearchTokensQueryParams): Promise<_liberfi_io_types.SearchTokenCursorList>;
54
- declare function useSearchTokensQuery(params: UseSearchTokensQueryParams, options?: Omit<UseQueryOptions<API.SearchTokenCursorList, Error, API.SearchTokenCursorList, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<_liberfi_io_types.SearchTokenCursorList, Error>;
55
-
56
- type UseSendTxMutationParams = API.SendTxParams;
57
- declare function sendTx(client: API.IClient, params: UseSendTxMutationParams): Promise<_liberfi_io_types.SendTxResult>;
58
- declare function useSendTxMutation(options?: Omit<UseMutationOptions<API.SendTxResult, Error, UseSendTxMutationParams>, "mutationFn">): _tanstack_react_query.UseMutationResult<_liberfi_io_types.SendTxResult, Error, _liberfi_io_types.SendTxParams, unknown>;
59
-
60
- interface UseStockTokensQueryParams extends API.GetTokenListOptions {
61
- chain: Chain;
62
- }
63
- declare function stockTokensQueryKey(params: UseStockTokensQueryParams): string[];
64
- declare function fetchStockTokens(client: API.IClient, { chain, ...options }: UseStockTokensQueryParams): Promise<Token[]>;
65
- declare function useStockTokensQuery(params: UseStockTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
66
-
67
- type UseSwapRouteQueryParams = API.SwapParams;
68
- declare function swapRouteQueryKey(params: UseSwapRouteQueryParams): string[];
69
- declare function fetchSwapRoute(client: API.IClient, params: UseSwapRouteQueryParams): Promise<_liberfi_io_types.SwapRoute>;
70
- declare function useSwapRouteQuery(params: UseSwapRouteQueryParams, options?: Omit<UseQueryOptions<API.SwapRoute, Error, API.SwapRoute, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<_liberfi_io_types.SwapRoute, Error>;
71
-
72
- interface UseTokenCandlesQueryParams extends API.GetTokenCandlesOptions {
73
- chain: Chain;
74
- address: string;
75
- resolution: TokenResolution;
76
- }
77
- declare function tokenCandlesQueryKey(params: UseTokenCandlesQueryParams): string[];
78
- declare function fetchTokenCandles(client: API.IClient, { chain, address, resolution, ...options }: UseTokenCandlesQueryParams): Promise<TokenCandle[]>;
79
- declare function useTokenCandlesQuery(params: UseTokenCandlesQueryParams, options?: Omit<UseQueryOptions<Array<TokenCandle>, Error, Array<TokenCandle>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<TokenCandle[], Error>;
80
-
81
- interface UseTokenHoldersQueryParams extends API.CursorListOptions {
82
- chain: Chain;
83
- address: string;
84
- }
85
- declare function tokenHoldersQueryKey(params: UseTokenHoldersQueryParams): string[];
86
- declare function fetchTokenHolders(client: API.IClient, { chain, address, ...options }: UseTokenHoldersQueryParams): Promise<API.CursorList<TokenHolder>>;
87
- declare function useTokenHoldersQuery(params: UseTokenHoldersQueryParams, options?: Omit<UseQueryOptions<API.CursorList<TokenHolder>, Error, API.CursorList<TokenHolder>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<API.CursorList<TokenHolder>, Error>;
88
-
89
- interface UseTokenMarketDataQueryParams {
90
- chain: Chain;
91
- address: string;
92
- }
93
- declare function tokenMarketDataQueryKey(params: UseTokenMarketDataQueryParams): string[];
94
- declare function fetchTokenMarketData(client: API.IClient, { chain, address }: UseTokenMarketDataQueryParams): Promise<TokenMarketData>;
95
- declare function useTokenMarketDataQuery(params: UseTokenMarketDataQueryParams, options?: Omit<UseQueryOptions<TokenMarketData, Error, TokenMarketData, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<TokenMarketData, Error>;
96
-
97
- interface UseTokenQueryParams {
98
- chain: Chain;
99
- address: string;
100
- }
101
- declare function tokenQueryKey(params: UseTokenQueryParams): string[];
102
- declare function fetchToken(client: API.IClient, { chain, address }: UseTokenQueryParams): Promise<Token>;
103
- declare function useTokenQuery(params: UseTokenQueryParams, options?: Omit<UseQueryOptions<Token, Error, Token, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token, Error>;
104
-
105
- interface UseTokenSecurityQueryParams {
106
- chain: Chain;
107
- address: string;
108
- }
109
- declare function tokenSecurityQueryKey(params: UseTokenSecurityQueryParams): string[];
110
- declare function fetchTokenSecurity(client: API.IClient, { chain, address }: UseTokenSecurityQueryParams): Promise<TokenSecurity>;
111
- declare function useTokenSecurityQuery(params: UseTokenSecurityQueryParams, options?: Omit<UseQueryOptions<TokenSecurity, Error, TokenSecurity, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<TokenSecurity, Error>;
112
-
113
- interface UseTokensQueryParams {
114
- chain: Chain;
115
- addresses: Array<string>;
116
- }
117
- declare function tokensQueryKey(params: UseTokensQueryParams): string[];
118
- declare function fetchTokens(client: API.IClient, { chain, addresses }: UseTokensQueryParams): Promise<Token[]>;
119
- declare function useTokensQuery(params: UseTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
120
-
121
- interface UseTokenStatsQueryParams {
122
- chain: Chain;
123
- address: string;
124
- }
125
- declare function tokenStatsQueryKey(params: UseTokenStatsQueryParams): string[];
126
- declare function fetchTokenStats(client: API.IClient, { chain, address }: UseTokenStatsQueryParams): Promise<TokenStats>;
127
- declare function useTokenStatsQuery(params: UseTokenStatsQueryParams, options?: Omit<UseQueryOptions<TokenStats, Error, TokenStats, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<TokenStats, Error>;
128
-
129
- interface UseTokenTradeActivitiesQueryParams extends API.GetTradeActivitiesOptions {
130
- chain: Chain;
131
- address: string;
132
- }
133
- declare function tokenTradeActivitiesQueryKey(params: UseTokenTradeActivitiesQueryParams): string[];
134
- declare function fetchTokenTradeActivities(client: API.IClient, { chain, address, ...options }: UseTokenTradeActivitiesQueryParams): Promise<API.CursorList<TradeActivity>>;
135
- declare function useTokenTradeActivitiesQuery(params: UseTokenTradeActivitiesQueryParams, options?: Omit<UseQueryOptions<API.CursorList<TradeActivity>, Error, API.CursorList<TradeActivity>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<API.CursorList<TradeActivity>, Error>;
136
-
137
- interface UseTrendingTokensQueryParams extends API.GetTokenListOptions {
138
- chain: Chain;
139
- resolution: "1m" | "5m" | "1h" | "4h" | "24h";
140
- }
141
- declare function trendingTokensQueryKey(params: UseTrendingTokensQueryParams): string[];
142
- declare function fetchTrendingTokens(client: API.IClient, { chain, resolution, ...options }: UseTrendingTokensQueryParams): Promise<Token[]>;
143
- declare function useTrendingTokensQuery(params: UseTrendingTokensQueryParams, options?: Omit<UseQueryOptions<Array<Token>, Error, Array<Token>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<Token[], Error>;
144
-
145
- interface UseTxSuccessQueryParams {
146
- chain: Chain;
147
- txHash: string;
148
- timeout?: number;
149
- }
150
- declare function txSuccessQueryKey(params: UseTxSuccessQueryParams): string[];
151
- declare function fetchTxSuccess(client: API.IClient, { chain, txHash, timeout }: UseTxSuccessQueryParams): Promise<boolean>;
152
- declare function useTxSuccessQuery(params: UseTxSuccessQueryParams, options?: Omit<UseQueryOptions<boolean, Error, boolean, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<boolean, Error>;
153
-
154
- interface UseWalletPnlQueryParams {
155
- chain: Chain;
156
- address: string;
157
- resolution?: string;
158
- }
159
- declare function walletPnlQueryKey(params: UseWalletPnlQueryParams): string[];
160
- declare function fetchWalletPnl(client: API.IClient, { chain, address, resolution }: UseWalletPnlQueryParams): Promise<WalletPnl>;
161
- declare function useWalletPnlQuery(params: UseWalletPnlQueryParams, options?: Omit<UseQueryOptions<WalletPnl, Error, WalletPnl, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<WalletPnl, Error>;
162
-
163
- interface UseWalletPortfolioPnlsQueryParams {
164
- chain: Chain;
165
- address: string;
166
- cursor?: string;
167
- limit?: number;
168
- }
169
- declare function walletPortfolioPnlsQueryKey(params: UseWalletPortfolioPnlsQueryParams): string[];
170
- declare function fetchWalletPortfolioPnls(client: API.IClient, { chain, address, cursor, limit }: UseWalletPortfolioPnlsQueryParams): Promise<WalletPortfolioPnls>;
171
- declare function useWalletPortfolioPnlsQuery(params: UseWalletPortfolioPnlsQueryParams, options?: Omit<UseQueryOptions<WalletPortfolioPnls, Error, WalletPortfolioPnls, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<WalletPortfolioPnls, Error>;
172
-
173
- interface UseWalletPortfolioPnlsInfiniteQueryParams {
174
- chain: Chain;
175
- address: string;
176
- limit?: number;
177
- }
178
- declare function walletPortfolioPnlsInfiniteQueryKey(params: UseWalletPortfolioPnlsInfiniteQueryParams): string[];
179
- declare function useWalletPortfolioPnlsInfiniteQuery(params: UseWalletPortfolioPnlsInfiniteQueryParams, options?: Omit<UseInfiniteQueryOptions<WalletPortfolioPnls, Error, InfiniteData<WalletPortfolioPnls>, string[], string | undefined>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam">): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<WalletPortfolioPnls, unknown>, Error>;
180
-
181
- interface UseWalletPortfoliosQueryParams {
182
- chain: Chain;
183
- address: string;
184
- cursor?: string;
185
- limit?: number;
186
- }
187
- declare function walletPortfoliosQueryKey(params: UseWalletPortfoliosQueryParams): string[];
188
- declare function fetchWalletPortfolios(client: API.IClient, { chain, address, cursor, limit }: UseWalletPortfoliosQueryParams): Promise<WalletPortfolios>;
189
- declare function useWalletPortfoliosQuery(params: UseWalletPortfoliosQueryParams, options?: Omit<UseQueryOptions<WalletPortfolios, Error, WalletPortfolios, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<WalletPortfolios, Error>;
190
-
191
- interface UseWalletPortfoliosInfiniteQueryParams {
192
- chain: Chain;
193
- address: string;
194
- limit?: number;
195
- }
196
- declare function walletPortfoliosInfiniteQueryKey(params: UseWalletPortfoliosInfiniteQueryParams): string[];
197
- declare function useWalletPortfoliosInfiniteQuery(params: UseWalletPortfoliosInfiniteQueryParams, options?: Omit<UseInfiniteQueryOptions<WalletPortfolios, Error, InfiniteData<WalletPortfolios>, string[], string | undefined>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam">): _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<WalletPortfolios, unknown>, Error>;
198
-
199
- interface UseWalletTradeActivitiesQueryParams extends API.GetTradeActivitiesOptions {
200
- chain: Chain;
201
- address: string;
202
- }
203
- declare function walletTradeActivitiesQueryKey(params: UseWalletTradeActivitiesQueryParams): string[];
204
- declare function fetchWalletTradeActivities(client: API.IClient, { chain, address, ...options }: UseWalletTradeActivitiesQueryParams): Promise<API.CursorList<TradeActivity>>;
205
- declare function useWalletTradeActivitiesQuery(params: UseWalletTradeActivitiesQueryParams, options?: Omit<UseQueryOptions<API.CursorList<TradeActivity>, Error, API.CursorList<TradeActivity>, string[]>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<API.CursorList<TradeActivity>, Error>;
206
-
207
- interface UseTokenStatsSubscriptionParams {
208
- chain: Chain;
209
- address: string;
210
- }
211
- declare function useTokenStatsSubscription(params: UseTokenStatsSubscriptionParams, callback: (stats: Array<TokenStats>) => void, options?: {
212
- enabled?: boolean;
213
- }): void;
214
-
215
- interface UseTokenCandlesSubscriptionParams {
216
- chain: Chain;
217
- address: string;
218
- resolution: TokenResolution;
219
- }
220
- declare function useTokenCandlesSubscription(params: UseTokenCandlesSubscriptionParams, callback: (candles: Array<TokenCandle>) => void, options?: {
221
- enabled?: boolean;
222
- }): void;
223
-
224
- interface UseTokenMarketDataSubscriptionParams {
225
- chain: Chain;
226
- address: string;
227
- }
228
- declare function useTokenMarketDataSubscription(params: UseTokenMarketDataSubscriptionParams, callback: (marketDatas: Array<TokenMarketData>) => void, options?: {
229
- enabled?: boolean;
230
- }): void;
231
-
232
- interface UseTokenTradeActivitiesSubscriptionParams {
233
- chain: Chain;
234
- address: string;
235
- }
236
- declare function useTokenTradeActivitiesSubscription(params: UseTokenTradeActivitiesSubscriptionParams, callback: (trades: Array<TradeActivity>) => void, options?: {
237
- enabled?: boolean;
238
- }): void;
239
-
240
- interface UseWalletPnlSubscriptionParams {
241
- chain: Chain;
242
- address: string;
243
- }
244
- declare function useWalletPnlSubscription(params: UseWalletPnlSubscriptionParams, callback: (pnls: Array<API.WalletPnlSubscribed>) => void, options?: {
245
- enabled?: boolean;
246
- }): void;
247
-
248
- interface UseWalletPortfoliosSubscriptionParams {
249
- chain: Chain;
250
- address: string;
251
- }
252
- declare function useWalletPortfoliosSubscription(params: UseWalletPortfoliosSubscriptionParams, callback: (portfolios: Array<API.PortfolioSubscribed>) => void, options?: {
253
- enabled?: boolean;
254
- }): void;
255
-
256
- interface UseWalletPortfolioPnlsSubscriptionParams {
257
- chain: Chain;
258
- address: string;
259
- }
260
- declare function useWalletPortfolioPnlsSubscription(params: UseWalletPortfolioPnlsSubscriptionParams, callback: (portfolioPnls: Array<API.PortfolioPnlSubscribed>) => void, options?: {
261
- enabled?: boolean;
262
- }): void;
263
-
264
- interface UseWalletTradeActivitiesSubscriptionParams {
265
- chain: Chain;
266
- address: string;
267
- }
268
- declare function useWalletTradeActivitiesSubscription(params: UseWalletTradeActivitiesSubscriptionParams, callback: (trades: Array<TradeActivity>) => void, options?: {
269
- enabled?: boolean;
270
- }): void;
271
-
272
- interface UseNewTokensSubscriptionParams {
273
- chain: Chain;
274
- }
275
- declare function useNewTokensSubscription(params: UseNewTokensSubscriptionParams, callback: (tokens: Array<API.TokenSubscribed>) => void, options?: {
276
- enabled?: boolean;
277
- }): void;
278
-
279
- interface UseNewTokensBasicSubscriptionParams {
280
- chain: Chain;
281
- }
282
- declare function useNewTokensBasicSubscription(params: UseNewTokensBasicSubscriptionParams, callback: (tokens: Array<API.TokenSubscribed>) => void, options?: {
283
- enabled?: boolean;
284
- }): void;
285
-
286
- interface UseNewTokensMarketDataSubscriptionParams {
287
- chain: Chain;
288
- }
289
- declare function useNewTokensMarketDataSubscription(params: UseNewTokensMarketDataSubscriptionParams, callback: (marketDatas: Array<TokenMarketData>) => void, options?: {
290
- enabled?: boolean;
291
- }): void;
292
-
293
- interface UseNewTokensStatsSubscriptionParams {
294
- chain: Chain;
295
- }
296
- declare function useNewTokensStatsSubscription(params: UseNewTokensStatsSubscriptionParams, callback: (stats: Array<TokenStats>) => void, options?: {
297
- enabled?: boolean;
298
- }): void;
299
-
300
- interface UseNewTokensDataSubscriptionParams {
301
- chain: Chain;
302
- }
303
- declare function useNewTokensDataSubscription(params: UseNewTokensDataSubscriptionParams, callback: (data: Array<API.TokenDataSubscribed>) => void, options?: {
304
- enabled?: boolean;
305
- }): void;
306
-
307
- interface UseMigratedTokensDataSubscriptionParams {
308
- chain: Chain;
309
- }
310
- declare function useMigratedTokensDataSubscription(params: UseMigratedTokensDataSubscriptionParams, callback: (data: Array<API.TokenDataSubscribed>) => void, options?: {
311
- enabled?: boolean;
312
- }): void;
313
-
314
- interface UseFinalStretchTokensDataSubscriptionParams {
315
- chain: Chain;
316
- }
317
- declare function useFinalStretchTokensDataSubscription(params: UseFinalStretchTokensDataSubscriptionParams, callback: (data: Array<API.TokenDataSubscribed>) => void, options?: {
318
- enabled?: boolean;
319
- }): void;
320
-
321
- interface UseTrendingTokensDataSubscriptionParams {
322
- chain: Chain;
323
- }
324
- declare function useTrendingTokensDataSubscription(params: UseTrendingTokensDataSubscriptionParams, callback: (data: Array<API.TokenDataSubscribed>) => void, options?: {
325
- enabled?: boolean;
326
- }): void;
327
-
328
- interface UseStockTokensDataSubscriptionParams {
329
- chain: Chain;
330
- }
331
- declare function useStockTokensDataSubscription(params: UseStockTokensDataSubscriptionParams, callback: (data: Array<API.TokenDataSubscribed>) => void, options?: {
332
- enabled?: boolean;
333
- }): void;
11
+ declare const _default: "0.1.34";
334
12
 
335
13
  type ClientOptions = ChainStreamClientOptions;
336
14
  type ClientTokenProvider = TokenProvider | string;
@@ -364,30 +42,24 @@ declare class Client implements API.IClient, API.ISubscribeClient {
364
42
  cursor?: string;
365
43
  limit?: number;
366
44
  }): Promise<WalletPortfolioPnls>;
45
+ getWalletPortfoliosByTokens(chain: Chain, address: string, tokenAddresses: Array<string>): Promise<Array<Portfolio>>;
46
+ getWalletPortfolioPnlsByTokens(chain: Chain, address: string, tokenAddresses: Array<string>): Promise<Array<PortfolioPnl>>;
367
47
  getWalletTradeActivities(chain: Chain, address: string, options?: API.GetTradeActivitiesOptions): Promise<API.CursorList<TradeActivity>>;
368
48
  getTokenTradeActivities(chain: Chain, address: string, options?: API.GetTradeActivitiesOptions): Promise<API.CursorList<TradeActivity>>;
369
49
  getPresignedUploadUrl(): Promise<string>;
370
- subscribeTokenBasic(_chain: Chain, _address: string, _callback: (tokens: Array<API.TokenSubscribed>) => void): API.ISubscription;
371
- subscribeTokenMarketData(chain: Chain, address: string, callback: (marketDatas: Array<TokenMarketData>) => void): API.ISubscription;
372
- subscribeTokenStats(chain: Chain, address: string, callback: (stats: Array<TokenStats>) => void): API.ISubscription;
50
+ subscribeToken(chain: Chain, address: string, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
373
51
  subscribeTokenCandles(chain: Chain, address: string, resolution: TokenResolution, callback: (candles: Array<TokenCandle>) => void): API.ISubscription;
374
52
  subscribeWalletPnl(chain: Chain, address: string, callback: (pnls: Array<API.WalletPnlSubscribed>) => void): API.ISubscription;
375
53
  subscribeWalletPortfolios(chain: Chain, address: string, callback: (portfolios: Array<API.PortfolioSubscribed>) => void): API.ISubscription;
376
54
  subscribeWalletPortfolioPnls(chain: Chain, address: string, callback: (portfolioPnls: Array<API.PortfolioPnlSubscribed>) => void): API.ISubscription;
377
55
  subscribeWalletTradeActivities(chain: Chain, address: string, callback: (trades: Array<TradeActivity>) => void): API.ISubscription;
378
56
  subscribeTokenTradeActivities(chain: Chain, address: string, callback: (trades: Array<TradeActivity>) => void): API.ISubscription;
379
- subscribeNewTokens(chain: Chain, callback: (tokens: Array<API.TokenSubscribed>) => void): API.ISubscription;
380
- subscribeNewTokensBasic(chain: Chain, callback: (tokens: Array<API.TokenSubscribed>) => void): API.ISubscription;
381
- subscribeNewTokensMarketData(chain: Chain, callback: (marketDatas: Array<TokenMarketData>) => void): API.ISubscription;
382
- subscribeNewTokensStats(chain: Chain, callback: (stats: Array<TokenStats>) => void): API.ISubscription;
383
- subscribeNewTokensData(chain: Chain, callback: (data: Array<API.TokenDataSubscribed>) => void): API.ISubscription;
384
- subscribeMigratedTokensData(chain: Chain, callback: (data: Array<API.TokenDataSubscribed>) => void): API.ISubscription;
385
- subscribeFinalStretchTokensData(chain: Chain, callback: (data: Array<API.TokenDataSubscribed>) => void): API.ISubscription;
386
- subscribeTrendingTokensData(chain: Chain, callback: (data: Array<API.TokenDataSubscribed>) => void): API.ISubscription;
387
- subscribeStockTokensData(chain: Chain, callback: (data: Array<API.TokenDataSubscribed>) => void): API.ISubscription;
57
+ subscribeNewTokens(chain: Chain, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
58
+ subscribeTrendingTokens(chain: Chain, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
59
+ subscribeMigratedTokens(chain: Chain, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
60
+ subscribeFinalStretchTokens(chain: Chain, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
61
+ subscribeStockTokens(chain: Chain, callback: (data: Array<API.TokenSubscribed>) => void): API.ISubscription;
62
+ private _subscribeRankingTokens;
388
63
  }
389
64
 
390
- type DexClientProviderProps = PropsWithChildren<DexClientContextValue>;
391
- declare function DexClientProvider({ client, subscribeClient, children, }: DexClientProviderProps): react_jsx_runtime.JSX.Element;
392
-
393
- export { Client, type ClientOptions, type ClientTokenProvider, DexClientContext, type DexClientContextValue, DexClientProvider, type DexClientProviderProps, type UseFinalStretchTokensDataSubscriptionParams, type UseFinalStretchTokensQueryParams, type UseMigratedTokensDataSubscriptionParams, type UseMigratedTokensQueryParams, type UseNewTokensBasicSubscriptionParams, type UseNewTokensDataSubscriptionParams, type UseNewTokensMarketDataSubscriptionParams, type UseNewTokensQueryParams, type UseNewTokensStatsSubscriptionParams, type UseNewTokensSubscriptionParams, type UseSearchTokensQueryParams, type UseSendTxMutationParams, type UseStockTokensDataSubscriptionParams, type UseStockTokensQueryParams, type UseSwapRouteQueryParams, type UseTokenCandlesQueryParams, type UseTokenCandlesSubscriptionParams, type UseTokenHoldersQueryParams, type UseTokenMarketDataQueryParams, type UseTokenMarketDataSubscriptionParams, type UseTokenQueryParams, type UseTokenSecurityQueryParams, type UseTokenStatsQueryParams, type UseTokenStatsSubscriptionParams, type UseTokenTradeActivitiesQueryParams, type UseTokenTradeActivitiesSubscriptionParams, type UseTokensQueryParams, type UseTrendingTokensDataSubscriptionParams, type UseTrendingTokensQueryParams, type UseTxSuccessQueryParams, type UseWalletPnlQueryParams, type UseWalletPnlSubscriptionParams, type UseWalletPortfolioPnlsInfiniteQueryParams, type UseWalletPortfolioPnlsQueryParams, type UseWalletPortfolioPnlsSubscriptionParams, type UseWalletPortfoliosInfiniteQueryParams, type UseWalletPortfoliosQueryParams, type UseWalletPortfoliosSubscriptionParams, type UseWalletTradeActivitiesQueryParams, type UseWalletTradeActivitiesSubscriptionParams, fetchFinalStretchTokens, fetchMigratedTokens, fetchNewTokens, fetchPresignedUploadUrl, fetchSearchTokens, fetchStockTokens, fetchSwapRoute, fetchToken, fetchTokenCandles, fetchTokenHolders, fetchTokenMarketData, fetchTokenSecurity, fetchTokenStats, fetchTokenTradeActivities, fetchTokens, fetchTrendingTokens, fetchTxSuccess, fetchWalletPnl, fetchWalletPortfolioPnls, fetchWalletPortfolios, fetchWalletTradeActivities, finalStretchTokensQueryKey, migratedTokensQueryKey, newTokensQueryKey, searchTokensQueryKey, sendTx, stockTokensQueryKey, swapRouteQueryKey, tokenCandlesQueryKey, tokenHoldersQueryKey, tokenMarketDataQueryKey, tokenQueryKey, tokenSecurityQueryKey, tokenStatsQueryKey, tokenTradeActivitiesQueryKey, tokensQueryKey, trendingTokensQueryKey, txSuccessQueryKey, useDexClient, useFinalStretchTokensDataSubscription, useFinalStretchTokensQuery, useMigratedTokensDataSubscription, useMigratedTokensQuery, useNewTokensBasicSubscription, useNewTokensDataSubscription, useNewTokensMarketDataSubscription, useNewTokensQuery, useNewTokensStatsSubscription, useNewTokensSubscription, usePresignedUploadUrlQuery, useSearchTokensQuery, useSendTxMutation, useStockTokensDataSubscription, useStockTokensQuery, useSwapRouteQuery, useTokenCandlesQuery, useTokenCandlesSubscription, useTokenHoldersQuery, useTokenMarketDataQuery, useTokenMarketDataSubscription, useTokenQuery, useTokenSecurityQuery, useTokenStatsQuery, useTokenStatsSubscription, useTokenTradeActivitiesQuery, useTokenTradeActivitiesSubscription, useTokensQuery, useTrendingTokensDataSubscription, useTrendingTokensQuery, useTxSuccessQuery, useWalletPnlQuery, useWalletPnlSubscription, useWalletPortfolioPnlsInfiniteQuery, useWalletPortfolioPnlsQuery, useWalletPortfolioPnlsSubscription, useWalletPortfoliosInfiniteQuery, useWalletPortfoliosQuery, useWalletPortfoliosSubscription, useWalletTradeActivitiesQuery, useWalletTradeActivitiesSubscription, _default as version, walletPnlQueryKey, walletPortfolioPnlsInfiniteQueryKey, walletPortfolioPnlsQueryKey, walletPortfoliosInfiniteQueryKey, walletPortfoliosQueryKey, walletTradeActivitiesQueryKey };
65
+ export { Client, type ClientOptions, type ClientTokenProvider, _default as version };