@dodoex/widgets 3.19.0 → 3.20.0-alpha.10

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.
Files changed (67) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +70 -70
  3. package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
  4. package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
  5. package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
  6. package/dist/cjs/locales/en-US.js +1 -1
  7. package/dist/cjs/locales/zh-CN.js +1 -1
  8. package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
  9. package/dist/{helper-C1OYS4SC.cjs → helper-BjLrmjzq.cjs} +1 -1
  10. package/dist/{helper-DUWFcWe6.js → helper-BokybIZ1.js} +1 -1
  11. package/dist/{index-BdB2BCQe.cjs → index-BW38-BRn.cjs} +1 -1
  12. package/dist/{index-BGe7caLE.js → index-CA2kCSB4.js} +1 -1
  13. package/dist/index-DZ6Jwgca.cjs +14 -0
  14. package/dist/{index-XzRE8z_c.js → index-MV36Ujd8.js} +1 -1
  15. package/dist/{index-CQl4nYsF.cjs → index-OBosq5oX.cjs} +1 -1
  16. package/dist/index-SUoF0O-Y.js +14 -0
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/locales/en-US.js +1 -1
  20. package/dist/locales/zh-CN.js +1 -1
  21. package/dist/types/components/Widget/index.d.ts +40 -0
  22. package/dist/types/constants/api.d.ts +4 -4
  23. package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  24. package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +4 -2
  25. package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +6 -1
  26. package/dist/types/hooks/Submission/types.d.ts +1 -0
  27. package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +142 -6
  28. package/dist/types/hooks/Swap/useSwapSlippage.d.ts +143 -7
  29. package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +248 -12
  30. package/dist/types/hooks/Token/useSelectChainList.d.ts +3 -2
  31. package/dist/types/hooks/Token/useTokenStatus.d.ts +4 -4
  32. package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -1
  33. package/dist/types/hooks/useGraphQLRequests.d.ts +3 -2
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/utils/chains.d.ts +1 -1
  36. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +28 -2
  37. package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +1 -1
  38. package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +2 -1
  39. package/dist/types/widgets/MiningWidget/helper.d.ts +2 -1
  40. package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +2 -2
  41. package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +2 -2
  42. package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +2 -2
  43. package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +9 -3
  44. package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +8 -2
  45. package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +1 -1
  46. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +2 -1
  47. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +2 -2
  48. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +122 -6
  49. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +336 -8
  50. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +156 -8
  51. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +252 -8
  52. package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBadge.d.ts +13 -0
  53. package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBanner.d.ts +1 -0
  54. package/dist/types/widgets/PoolWidget/PoolList/hooks/useClaimLpFeeRewardSubmit.d.ts +14 -0
  55. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
  56. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +44 -1
  57. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +11 -5
  58. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +8 -8
  59. package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +1 -1
  60. package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +13 -13
  61. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +428 -9
  62. package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +1 -1
  63. package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
  64. package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
  65. package/package.json +161 -162
  66. package/dist/index-Cm0O00ow.cjs +0 -14
  67. package/dist/index-ZV1FQySp.js +0 -14
@@ -3,8 +3,44 @@ export declare function usePoolDashboard({ address, chainId, }: {
3
3
  address: string | undefined;
4
4
  chainId: ChainId | undefined;
5
5
  }): {
6
- dashboard: any;
7
- data: unknown;
6
+ dashboard: {
7
+ fee?: string | null;
8
+ volume?: string | null;
9
+ totalFee?: string | null;
10
+ totalMtFee?: string | null;
11
+ totalVolume?: string | null;
12
+ tvl?: string | null;
13
+ turnover?: string | null;
14
+ liquidity?: string | null;
15
+ baseReserve?: string | null;
16
+ quoteReserve?: string | null;
17
+ baseVolume?: string | null;
18
+ quoteVolume?: string | null;
19
+ basePrice?: string | null;
20
+ quotePrice?: string | null;
21
+ price?: string | null;
22
+ baseFee?: string | null;
23
+ quoteFee?: string | null;
24
+ baseMtFee?: string | null;
25
+ quoteMtFee?: string | null;
26
+ pair?: string | null;
27
+ poolType?: string | null;
28
+ baseVolumeCumulative?: string | null;
29
+ quoteVolumeCumulative?: string | null;
30
+ baseAddress?: string | null;
31
+ baseSymbol?: string | null;
32
+ quoteAddress?: string | null;
33
+ quoteSymbol?: string | null;
34
+ network?: string | null;
35
+ pairAddress?: string | null;
36
+ txes?: number | null;
37
+ txesNear24h?: number | null;
38
+ txUsers?: number | null;
39
+ txUserNear24h?: number | null;
40
+ mtFeeNear24h?: string | null;
41
+ feeNear24h?: string | null;
42
+ } | null | undefined;
43
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
8
44
  error: Error;
9
45
  isError: true;
10
46
  isPending: false;
@@ -27,12 +63,48 @@ export declare function usePoolDashboard({ address, chainId, }: {
27
63
  isRefetching: boolean;
28
64
  isStale: boolean;
29
65
  isEnabled: boolean;
30
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
66
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
31
67
  fetchStatus: import("@tanstack/react-query").FetchStatus;
32
- promise: Promise<unknown>;
68
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
33
69
  } | {
34
- dashboard: any;
35
- data: unknown;
70
+ dashboard: {
71
+ fee?: string | null;
72
+ volume?: string | null;
73
+ totalFee?: string | null;
74
+ totalMtFee?: string | null;
75
+ totalVolume?: string | null;
76
+ tvl?: string | null;
77
+ turnover?: string | null;
78
+ liquidity?: string | null;
79
+ baseReserve?: string | null;
80
+ quoteReserve?: string | null;
81
+ baseVolume?: string | null;
82
+ quoteVolume?: string | null;
83
+ basePrice?: string | null;
84
+ quotePrice?: string | null;
85
+ price?: string | null;
86
+ baseFee?: string | null;
87
+ quoteFee?: string | null;
88
+ baseMtFee?: string | null;
89
+ quoteMtFee?: string | null;
90
+ pair?: string | null;
91
+ poolType?: string | null;
92
+ baseVolumeCumulative?: string | null;
93
+ quoteVolumeCumulative?: string | null;
94
+ baseAddress?: string | null;
95
+ baseSymbol?: string | null;
96
+ quoteAddress?: string | null;
97
+ quoteSymbol?: string | null;
98
+ network?: string | null;
99
+ pairAddress?: string | null;
100
+ txes?: number | null;
101
+ txesNear24h?: number | null;
102
+ txUsers?: number | null;
103
+ txUserNear24h?: number | null;
104
+ mtFeeNear24h?: string | null;
105
+ feeNear24h?: string | null;
106
+ } | null | undefined;
107
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
36
108
  error: null;
37
109
  isError: false;
38
110
  isPending: false;
@@ -55,7 +127,263 @@ export declare function usePoolDashboard({ address, chainId, }: {
55
127
  isRefetching: boolean;
56
128
  isStale: boolean;
57
129
  isEnabled: boolean;
58
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
130
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
59
131
  fetchStatus: import("@tanstack/react-query").FetchStatus;
60
- promise: Promise<unknown>;
132
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
133
+ } | {
134
+ dashboard: {
135
+ fee?: string | null;
136
+ volume?: string | null;
137
+ totalFee?: string | null;
138
+ totalMtFee?: string | null;
139
+ totalVolume?: string | null;
140
+ tvl?: string | null;
141
+ turnover?: string | null;
142
+ liquidity?: string | null;
143
+ baseReserve?: string | null;
144
+ quoteReserve?: string | null;
145
+ baseVolume?: string | null;
146
+ quoteVolume?: string | null;
147
+ basePrice?: string | null;
148
+ quotePrice?: string | null;
149
+ price?: string | null;
150
+ baseFee?: string | null;
151
+ quoteFee?: string | null;
152
+ baseMtFee?: string | null;
153
+ quoteMtFee?: string | null;
154
+ pair?: string | null;
155
+ poolType?: string | null;
156
+ baseVolumeCumulative?: string | null;
157
+ quoteVolumeCumulative?: string | null;
158
+ baseAddress?: string | null;
159
+ baseSymbol?: string | null;
160
+ quoteAddress?: string | null;
161
+ quoteSymbol?: string | null;
162
+ network?: string | null;
163
+ pairAddress?: string | null;
164
+ txes?: number | null;
165
+ txesNear24h?: number | null;
166
+ txUsers?: number | null;
167
+ txUserNear24h?: number | null;
168
+ mtFeeNear24h?: string | null;
169
+ feeNear24h?: string | null;
170
+ } | null | undefined;
171
+ data: undefined;
172
+ error: Error;
173
+ isError: true;
174
+ isPending: false;
175
+ isLoading: false;
176
+ isLoadingError: true;
177
+ isRefetchError: false;
178
+ isSuccess: false;
179
+ isPlaceholderData: false;
180
+ status: "error";
181
+ dataUpdatedAt: number;
182
+ errorUpdatedAt: number;
183
+ failureCount: number;
184
+ failureReason: Error | null;
185
+ errorUpdateCount: number;
186
+ isFetched: boolean;
187
+ isFetchedAfterMount: boolean;
188
+ isFetching: boolean;
189
+ isInitialLoading: boolean;
190
+ isPaused: boolean;
191
+ isRefetching: boolean;
192
+ isStale: boolean;
193
+ isEnabled: boolean;
194
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
195
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
196
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
197
+ } | {
198
+ dashboard: {
199
+ fee?: string | null;
200
+ volume?: string | null;
201
+ totalFee?: string | null;
202
+ totalMtFee?: string | null;
203
+ totalVolume?: string | null;
204
+ tvl?: string | null;
205
+ turnover?: string | null;
206
+ liquidity?: string | null;
207
+ baseReserve?: string | null;
208
+ quoteReserve?: string | null;
209
+ baseVolume?: string | null;
210
+ quoteVolume?: string | null;
211
+ basePrice?: string | null;
212
+ quotePrice?: string | null;
213
+ price?: string | null;
214
+ baseFee?: string | null;
215
+ quoteFee?: string | null;
216
+ baseMtFee?: string | null;
217
+ quoteMtFee?: string | null;
218
+ pair?: string | null;
219
+ poolType?: string | null;
220
+ baseVolumeCumulative?: string | null;
221
+ quoteVolumeCumulative?: string | null;
222
+ baseAddress?: string | null;
223
+ baseSymbol?: string | null;
224
+ quoteAddress?: string | null;
225
+ quoteSymbol?: string | null;
226
+ network?: string | null;
227
+ pairAddress?: string | null;
228
+ txes?: number | null;
229
+ txesNear24h?: number | null;
230
+ txUsers?: number | null;
231
+ txUserNear24h?: number | null;
232
+ mtFeeNear24h?: string | null;
233
+ feeNear24h?: string | null;
234
+ } | null | undefined;
235
+ data: undefined;
236
+ error: null;
237
+ isError: false;
238
+ isPending: true;
239
+ isLoading: true;
240
+ isLoadingError: false;
241
+ isRefetchError: false;
242
+ isSuccess: false;
243
+ isPlaceholderData: false;
244
+ status: "pending";
245
+ dataUpdatedAt: number;
246
+ errorUpdatedAt: number;
247
+ failureCount: number;
248
+ failureReason: Error | null;
249
+ errorUpdateCount: number;
250
+ isFetched: boolean;
251
+ isFetchedAfterMount: boolean;
252
+ isFetching: boolean;
253
+ isInitialLoading: boolean;
254
+ isPaused: boolean;
255
+ isRefetching: boolean;
256
+ isStale: boolean;
257
+ isEnabled: boolean;
258
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
259
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
260
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
261
+ } | {
262
+ dashboard: {
263
+ fee?: string | null;
264
+ volume?: string | null;
265
+ totalFee?: string | null;
266
+ totalMtFee?: string | null;
267
+ totalVolume?: string | null;
268
+ tvl?: string | null;
269
+ turnover?: string | null;
270
+ liquidity?: string | null;
271
+ baseReserve?: string | null;
272
+ quoteReserve?: string | null;
273
+ baseVolume?: string | null;
274
+ quoteVolume?: string | null;
275
+ basePrice?: string | null;
276
+ quotePrice?: string | null;
277
+ price?: string | null;
278
+ baseFee?: string | null;
279
+ quoteFee?: string | null;
280
+ baseMtFee?: string | null;
281
+ quoteMtFee?: string | null;
282
+ pair?: string | null;
283
+ poolType?: string | null;
284
+ baseVolumeCumulative?: string | null;
285
+ quoteVolumeCumulative?: string | null;
286
+ baseAddress?: string | null;
287
+ baseSymbol?: string | null;
288
+ quoteAddress?: string | null;
289
+ quoteSymbol?: string | null;
290
+ network?: string | null;
291
+ pairAddress?: string | null;
292
+ txes?: number | null;
293
+ txesNear24h?: number | null;
294
+ txUsers?: number | null;
295
+ txUserNear24h?: number | null;
296
+ mtFeeNear24h?: string | null;
297
+ feeNear24h?: string | null;
298
+ } | null | undefined;
299
+ data: undefined;
300
+ error: null;
301
+ isError: false;
302
+ isPending: true;
303
+ isLoadingError: false;
304
+ isRefetchError: false;
305
+ isSuccess: false;
306
+ isPlaceholderData: false;
307
+ status: "pending";
308
+ dataUpdatedAt: number;
309
+ errorUpdatedAt: number;
310
+ failureCount: number;
311
+ failureReason: Error | null;
312
+ errorUpdateCount: number;
313
+ isFetched: boolean;
314
+ isFetchedAfterMount: boolean;
315
+ isFetching: boolean;
316
+ isLoading: boolean;
317
+ isInitialLoading: boolean;
318
+ isPaused: boolean;
319
+ isRefetching: boolean;
320
+ isStale: boolean;
321
+ isEnabled: boolean;
322
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
323
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
324
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
325
+ } | {
326
+ dashboard: {
327
+ fee?: string | null;
328
+ volume?: string | null;
329
+ totalFee?: string | null;
330
+ totalMtFee?: string | null;
331
+ totalVolume?: string | null;
332
+ tvl?: string | null;
333
+ turnover?: string | null;
334
+ liquidity?: string | null;
335
+ baseReserve?: string | null;
336
+ quoteReserve?: string | null;
337
+ baseVolume?: string | null;
338
+ quoteVolume?: string | null;
339
+ basePrice?: string | null;
340
+ quotePrice?: string | null;
341
+ price?: string | null;
342
+ baseFee?: string | null;
343
+ quoteFee?: string | null;
344
+ baseMtFee?: string | null;
345
+ quoteMtFee?: string | null;
346
+ pair?: string | null;
347
+ poolType?: string | null;
348
+ baseVolumeCumulative?: string | null;
349
+ quoteVolumeCumulative?: string | null;
350
+ baseAddress?: string | null;
351
+ baseSymbol?: string | null;
352
+ quoteAddress?: string | null;
353
+ quoteSymbol?: string | null;
354
+ network?: string | null;
355
+ pairAddress?: string | null;
356
+ txes?: number | null;
357
+ txesNear24h?: number | null;
358
+ txUsers?: number | null;
359
+ txUserNear24h?: number | null;
360
+ mtFeeNear24h?: string | null;
361
+ feeNear24h?: string | null;
362
+ } | null | undefined;
363
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
364
+ isError: false;
365
+ error: null;
366
+ isPending: false;
367
+ isLoading: false;
368
+ isLoadingError: false;
369
+ isRefetchError: false;
370
+ isSuccess: true;
371
+ isPlaceholderData: true;
372
+ status: "success";
373
+ dataUpdatedAt: number;
374
+ errorUpdatedAt: number;
375
+ failureCount: number;
376
+ failureReason: Error | null;
377
+ errorUpdateCount: number;
378
+ isFetched: boolean;
379
+ isFetchedAfterMount: boolean;
380
+ isFetching: boolean;
381
+ isInitialLoading: boolean;
382
+ isPaused: boolean;
383
+ isRefetching: boolean;
384
+ isStale: boolean;
385
+ isEnabled: boolean;
386
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
387
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
388
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
61
389
  };
@@ -4,8 +4,14 @@ export declare function usePoolDayData({ address, chainId, day, }: {
4
4
  chainId: ChainId | undefined;
5
5
  day?: number;
6
6
  }): {
7
- dayDataList: any;
8
- data: unknown;
7
+ dayDataList: {
8
+ volume: number;
9
+ fee: number;
10
+ traders: number;
11
+ date: number;
12
+ tvl: number;
13
+ }[];
14
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
9
15
  error: Error;
10
16
  isError: true;
11
17
  isPending: false;
@@ -28,12 +34,18 @@ export declare function usePoolDayData({ address, chainId, day, }: {
28
34
  isRefetching: boolean;
29
35
  isStale: boolean;
30
36
  isEnabled: boolean;
31
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
37
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
32
38
  fetchStatus: import("@tanstack/react-query").FetchStatus;
33
- promise: Promise<unknown>;
39
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
34
40
  } | {
35
- dayDataList: any;
36
- data: unknown;
41
+ dayDataList: {
42
+ volume: number;
43
+ fee: number;
44
+ traders: number;
45
+ date: number;
46
+ tvl: number;
47
+ }[];
48
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
37
49
  error: null;
38
50
  isError: false;
39
51
  isPending: false;
@@ -56,7 +68,143 @@ export declare function usePoolDayData({ address, chainId, day, }: {
56
68
  isRefetching: boolean;
57
69
  isStale: boolean;
58
70
  isEnabled: boolean;
59
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
71
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
60
72
  fetchStatus: import("@tanstack/react-query").FetchStatus;
61
- promise: Promise<unknown>;
73
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
74
+ } | {
75
+ dayDataList: {
76
+ volume: number;
77
+ fee: number;
78
+ traders: number;
79
+ date: number;
80
+ tvl: number;
81
+ }[];
82
+ data: undefined;
83
+ error: Error;
84
+ isError: true;
85
+ isPending: false;
86
+ isLoading: false;
87
+ isLoadingError: true;
88
+ isRefetchError: false;
89
+ isSuccess: false;
90
+ isPlaceholderData: false;
91
+ status: "error";
92
+ dataUpdatedAt: number;
93
+ errorUpdatedAt: number;
94
+ failureCount: number;
95
+ failureReason: Error | null;
96
+ errorUpdateCount: number;
97
+ isFetched: boolean;
98
+ isFetchedAfterMount: boolean;
99
+ isFetching: boolean;
100
+ isInitialLoading: boolean;
101
+ isPaused: boolean;
102
+ isRefetching: boolean;
103
+ isStale: boolean;
104
+ isEnabled: boolean;
105
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
106
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
107
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
108
+ } | {
109
+ dayDataList: {
110
+ volume: number;
111
+ fee: number;
112
+ traders: number;
113
+ date: number;
114
+ tvl: number;
115
+ }[];
116
+ data: undefined;
117
+ error: null;
118
+ isError: false;
119
+ isPending: true;
120
+ isLoading: true;
121
+ isLoadingError: false;
122
+ isRefetchError: false;
123
+ isSuccess: false;
124
+ isPlaceholderData: false;
125
+ status: "pending";
126
+ dataUpdatedAt: number;
127
+ errorUpdatedAt: number;
128
+ failureCount: number;
129
+ failureReason: Error | null;
130
+ errorUpdateCount: number;
131
+ isFetched: boolean;
132
+ isFetchedAfterMount: boolean;
133
+ isFetching: boolean;
134
+ isInitialLoading: boolean;
135
+ isPaused: boolean;
136
+ isRefetching: boolean;
137
+ isStale: boolean;
138
+ isEnabled: boolean;
139
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
140
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
141
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
142
+ } | {
143
+ dayDataList: {
144
+ volume: number;
145
+ fee: number;
146
+ traders: number;
147
+ date: number;
148
+ tvl: number;
149
+ }[];
150
+ data: undefined;
151
+ error: null;
152
+ isError: false;
153
+ isPending: true;
154
+ isLoadingError: false;
155
+ isRefetchError: false;
156
+ isSuccess: false;
157
+ isPlaceholderData: false;
158
+ status: "pending";
159
+ dataUpdatedAt: number;
160
+ errorUpdatedAt: number;
161
+ failureCount: number;
162
+ failureReason: Error | null;
163
+ errorUpdateCount: number;
164
+ isFetched: boolean;
165
+ isFetchedAfterMount: boolean;
166
+ isFetching: boolean;
167
+ isLoading: boolean;
168
+ isInitialLoading: boolean;
169
+ isPaused: boolean;
170
+ isRefetching: boolean;
171
+ isStale: boolean;
172
+ isEnabled: boolean;
173
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
174
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
175
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
176
+ } | {
177
+ dayDataList: {
178
+ volume: number;
179
+ fee: number;
180
+ traders: number;
181
+ date: number;
182
+ tvl: number;
183
+ }[];
184
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
185
+ isError: false;
186
+ error: null;
187
+ isPending: false;
188
+ isLoading: false;
189
+ isLoadingError: false;
190
+ isRefetchError: false;
191
+ isSuccess: true;
192
+ isPlaceholderData: true;
193
+ status: "success";
194
+ dataUpdatedAt: number;
195
+ errorUpdatedAt: number;
196
+ failureCount: number;
197
+ failureReason: Error | null;
198
+ errorUpdateCount: number;
199
+ isFetched: boolean;
200
+ isFetchedAfterMount: boolean;
201
+ isFetching: boolean;
202
+ isInitialLoading: boolean;
203
+ isPaused: boolean;
204
+ isRefetching: boolean;
205
+ isStale: boolean;
206
+ isEnabled: boolean;
207
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
208
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
209
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
62
210
  };