@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
@@ -1,10 +1,62 @@
1
- import { ChainId } from '@dodoex/api';
1
+ import { ChainId, PoolType } from '@dodoex/api';
2
+ import { TokenInfo } from '../../../hooks/Token';
2
3
  export declare function usePoolDetail({ id, chainId, }: {
3
4
  id: string | undefined;
4
5
  chainId: ChainId | undefined;
5
6
  }): {
6
- poolDetail: any;
7
- data: unknown;
7
+ poolDetail: {
8
+ address: string;
9
+ type: PoolType;
10
+ chainId: ChainId;
11
+ baseToken: TokenInfo;
12
+ quoteToken: TokenInfo;
13
+ miningAddress: string;
14
+ apy: {
15
+ miningBaseApy?: any | null;
16
+ miningQuoteApy?: any | null;
17
+ transactionBaseApy?: any | null;
18
+ transactionQuoteApy?: any | null;
19
+ metromMiningApy?: any | null;
20
+ lpFeeRewardApy?: any | null;
21
+ } | null | undefined;
22
+ baseApy: string | undefined;
23
+ quoteApy: string | undefined;
24
+ isCpPool: boolean;
25
+ cpAddress: string | undefined;
26
+ cpLiquidator: string | undefined;
27
+ cpCreator: string | undefined;
28
+ cpCreatedAtTimestamp: string | undefined;
29
+ id: string;
30
+ creator: any;
31
+ owner?: any | null;
32
+ traderCount: any;
33
+ volumeBaseToken: any;
34
+ volumeQuoteToken: any;
35
+ volumeUSD: any;
36
+ feeBase: any;
37
+ feeQuote: any;
38
+ mtFeeRate: any;
39
+ lpFeeRate: any;
40
+ i?: any | null;
41
+ k?: any | null;
42
+ baseReserve: any;
43
+ quoteReserve: any;
44
+ createdAtTimestamp: any;
45
+ lastTradePrice: any;
46
+ baseLpToken?: {
47
+ id: string;
48
+ symbol: string;
49
+ name: string;
50
+ decimals: any;
51
+ } | null;
52
+ quoteLpToken?: {
53
+ id: string;
54
+ symbol: string;
55
+ name: string;
56
+ decimals: any;
57
+ } | null;
58
+ } | null;
59
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
8
60
  error: Error;
9
61
  isError: true;
10
62
  isPending: false;
@@ -27,12 +79,63 @@ export declare function usePoolDetail({ id, chainId, }: {
27
79
  isRefetching: boolean;
28
80
  isStale: boolean;
29
81
  isEnabled: boolean;
30
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
82
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
31
83
  fetchStatus: import("@tanstack/react-query").FetchStatus;
32
- promise: Promise<unknown>;
84
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
33
85
  } | {
34
- poolDetail: any;
35
- data: unknown;
86
+ poolDetail: {
87
+ address: string;
88
+ type: PoolType;
89
+ chainId: ChainId;
90
+ baseToken: TokenInfo;
91
+ quoteToken: TokenInfo;
92
+ miningAddress: string;
93
+ apy: {
94
+ miningBaseApy?: any | null;
95
+ miningQuoteApy?: any | null;
96
+ transactionBaseApy?: any | null;
97
+ transactionQuoteApy?: any | null;
98
+ metromMiningApy?: any | null;
99
+ lpFeeRewardApy?: any | null;
100
+ } | null | undefined;
101
+ baseApy: string | undefined;
102
+ quoteApy: string | undefined;
103
+ isCpPool: boolean;
104
+ cpAddress: string | undefined;
105
+ cpLiquidator: string | undefined;
106
+ cpCreator: string | undefined;
107
+ cpCreatedAtTimestamp: string | undefined;
108
+ id: string;
109
+ creator: any;
110
+ owner?: any | null;
111
+ traderCount: any;
112
+ volumeBaseToken: any;
113
+ volumeQuoteToken: any;
114
+ volumeUSD: any;
115
+ feeBase: any;
116
+ feeQuote: any;
117
+ mtFeeRate: any;
118
+ lpFeeRate: any;
119
+ i?: any | null;
120
+ k?: any | null;
121
+ baseReserve: any;
122
+ quoteReserve: any;
123
+ createdAtTimestamp: any;
124
+ lastTradePrice: any;
125
+ baseLpToken?: {
126
+ id: string;
127
+ symbol: string;
128
+ name: string;
129
+ decimals: any;
130
+ } | null;
131
+ quoteLpToken?: {
132
+ id: string;
133
+ symbol: string;
134
+ name: string;
135
+ decimals: any;
136
+ } | null;
137
+ } | null;
138
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
36
139
  error: null;
37
140
  isError: false;
38
141
  isPending: false;
@@ -55,7 +158,323 @@ export declare function usePoolDetail({ id, chainId, }: {
55
158
  isRefetching: boolean;
56
159
  isStale: boolean;
57
160
  isEnabled: boolean;
58
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
161
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
59
162
  fetchStatus: import("@tanstack/react-query").FetchStatus;
60
- promise: Promise<unknown>;
163
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
164
+ } | {
165
+ poolDetail: {
166
+ address: string;
167
+ type: PoolType;
168
+ chainId: ChainId;
169
+ baseToken: TokenInfo;
170
+ quoteToken: TokenInfo;
171
+ miningAddress: string;
172
+ apy: {
173
+ miningBaseApy?: any | null;
174
+ miningQuoteApy?: any | null;
175
+ transactionBaseApy?: any | null;
176
+ transactionQuoteApy?: any | null;
177
+ metromMiningApy?: any | null;
178
+ lpFeeRewardApy?: any | null;
179
+ } | null | undefined;
180
+ baseApy: string | undefined;
181
+ quoteApy: string | undefined;
182
+ isCpPool: boolean;
183
+ cpAddress: string | undefined;
184
+ cpLiquidator: string | undefined;
185
+ cpCreator: string | undefined;
186
+ cpCreatedAtTimestamp: string | undefined;
187
+ id: string;
188
+ creator: any;
189
+ owner?: any | null;
190
+ traderCount: any;
191
+ volumeBaseToken: any;
192
+ volumeQuoteToken: any;
193
+ volumeUSD: any;
194
+ feeBase: any;
195
+ feeQuote: any;
196
+ mtFeeRate: any;
197
+ lpFeeRate: any;
198
+ i?: any | null;
199
+ k?: any | null;
200
+ baseReserve: any;
201
+ quoteReserve: any;
202
+ createdAtTimestamp: any;
203
+ lastTradePrice: any;
204
+ baseLpToken?: {
205
+ id: string;
206
+ symbol: string;
207
+ name: string;
208
+ decimals: any;
209
+ } | null;
210
+ quoteLpToken?: {
211
+ id: string;
212
+ symbol: string;
213
+ name: string;
214
+ decimals: any;
215
+ } | null;
216
+ } | null;
217
+ data: undefined;
218
+ error: Error;
219
+ isError: true;
220
+ isPending: false;
221
+ isLoading: false;
222
+ isLoadingError: true;
223
+ isRefetchError: false;
224
+ isSuccess: false;
225
+ isPlaceholderData: false;
226
+ status: "error";
227
+ dataUpdatedAt: number;
228
+ errorUpdatedAt: number;
229
+ failureCount: number;
230
+ failureReason: Error | null;
231
+ errorUpdateCount: number;
232
+ isFetched: boolean;
233
+ isFetchedAfterMount: boolean;
234
+ isFetching: boolean;
235
+ isInitialLoading: boolean;
236
+ isPaused: boolean;
237
+ isRefetching: boolean;
238
+ isStale: boolean;
239
+ isEnabled: boolean;
240
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
241
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
242
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
243
+ } | {
244
+ poolDetail: {
245
+ address: string;
246
+ type: PoolType;
247
+ chainId: ChainId;
248
+ baseToken: TokenInfo;
249
+ quoteToken: TokenInfo;
250
+ miningAddress: string;
251
+ apy: {
252
+ miningBaseApy?: any | null;
253
+ miningQuoteApy?: any | null;
254
+ transactionBaseApy?: any | null;
255
+ transactionQuoteApy?: any | null;
256
+ metromMiningApy?: any | null;
257
+ lpFeeRewardApy?: any | null;
258
+ } | null | undefined;
259
+ baseApy: string | undefined;
260
+ quoteApy: string | undefined;
261
+ isCpPool: boolean;
262
+ cpAddress: string | undefined;
263
+ cpLiquidator: string | undefined;
264
+ cpCreator: string | undefined;
265
+ cpCreatedAtTimestamp: string | undefined;
266
+ id: string;
267
+ creator: any;
268
+ owner?: any | null;
269
+ traderCount: any;
270
+ volumeBaseToken: any;
271
+ volumeQuoteToken: any;
272
+ volumeUSD: any;
273
+ feeBase: any;
274
+ feeQuote: any;
275
+ mtFeeRate: any;
276
+ lpFeeRate: any;
277
+ i?: any | null;
278
+ k?: any | null;
279
+ baseReserve: any;
280
+ quoteReserve: any;
281
+ createdAtTimestamp: any;
282
+ lastTradePrice: any;
283
+ baseLpToken?: {
284
+ id: string;
285
+ symbol: string;
286
+ name: string;
287
+ decimals: any;
288
+ } | null;
289
+ quoteLpToken?: {
290
+ id: string;
291
+ symbol: string;
292
+ name: string;
293
+ decimals: any;
294
+ } | null;
295
+ } | null;
296
+ data: undefined;
297
+ error: null;
298
+ isError: false;
299
+ isPending: true;
300
+ isLoading: true;
301
+ isLoadingError: false;
302
+ isRefetchError: false;
303
+ isSuccess: false;
304
+ isPlaceholderData: false;
305
+ status: "pending";
306
+ dataUpdatedAt: number;
307
+ errorUpdatedAt: number;
308
+ failureCount: number;
309
+ failureReason: Error | null;
310
+ errorUpdateCount: number;
311
+ isFetched: boolean;
312
+ isFetchedAfterMount: boolean;
313
+ isFetching: boolean;
314
+ isInitialLoading: boolean;
315
+ isPaused: boolean;
316
+ isRefetching: boolean;
317
+ isStale: boolean;
318
+ isEnabled: boolean;
319
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
320
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
321
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
322
+ } | {
323
+ poolDetail: {
324
+ address: string;
325
+ type: PoolType;
326
+ chainId: ChainId;
327
+ baseToken: TokenInfo;
328
+ quoteToken: TokenInfo;
329
+ miningAddress: string;
330
+ apy: {
331
+ miningBaseApy?: any | null;
332
+ miningQuoteApy?: any | null;
333
+ transactionBaseApy?: any | null;
334
+ transactionQuoteApy?: any | null;
335
+ metromMiningApy?: any | null;
336
+ lpFeeRewardApy?: any | null;
337
+ } | null | undefined;
338
+ baseApy: string | undefined;
339
+ quoteApy: string | undefined;
340
+ isCpPool: boolean;
341
+ cpAddress: string | undefined;
342
+ cpLiquidator: string | undefined;
343
+ cpCreator: string | undefined;
344
+ cpCreatedAtTimestamp: string | undefined;
345
+ id: string;
346
+ creator: any;
347
+ owner?: any | null;
348
+ traderCount: any;
349
+ volumeBaseToken: any;
350
+ volumeQuoteToken: any;
351
+ volumeUSD: any;
352
+ feeBase: any;
353
+ feeQuote: any;
354
+ mtFeeRate: any;
355
+ lpFeeRate: any;
356
+ i?: any | null;
357
+ k?: any | null;
358
+ baseReserve: any;
359
+ quoteReserve: any;
360
+ createdAtTimestamp: any;
361
+ lastTradePrice: any;
362
+ baseLpToken?: {
363
+ id: string;
364
+ symbol: string;
365
+ name: string;
366
+ decimals: any;
367
+ } | null;
368
+ quoteLpToken?: {
369
+ id: string;
370
+ symbol: string;
371
+ name: string;
372
+ decimals: any;
373
+ } | null;
374
+ } | null;
375
+ data: undefined;
376
+ error: null;
377
+ isError: false;
378
+ isPending: true;
379
+ isLoadingError: false;
380
+ isRefetchError: false;
381
+ isSuccess: false;
382
+ isPlaceholderData: false;
383
+ status: "pending";
384
+ dataUpdatedAt: number;
385
+ errorUpdatedAt: number;
386
+ failureCount: number;
387
+ failureReason: Error | null;
388
+ errorUpdateCount: number;
389
+ isFetched: boolean;
390
+ isFetchedAfterMount: boolean;
391
+ isFetching: boolean;
392
+ isLoading: boolean;
393
+ isInitialLoading: boolean;
394
+ isPaused: boolean;
395
+ isRefetching: boolean;
396
+ isStale: boolean;
397
+ isEnabled: boolean;
398
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
399
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
400
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
401
+ } | {
402
+ poolDetail: {
403
+ address: string;
404
+ type: PoolType;
405
+ chainId: ChainId;
406
+ baseToken: TokenInfo;
407
+ quoteToken: TokenInfo;
408
+ miningAddress: string;
409
+ apy: {
410
+ miningBaseApy?: any | null;
411
+ miningQuoteApy?: any | null;
412
+ transactionBaseApy?: any | null;
413
+ transactionQuoteApy?: any | null;
414
+ metromMiningApy?: any | null;
415
+ lpFeeRewardApy?: any | null;
416
+ } | null | undefined;
417
+ baseApy: string | undefined;
418
+ quoteApy: string | undefined;
419
+ isCpPool: boolean;
420
+ cpAddress: string | undefined;
421
+ cpLiquidator: string | undefined;
422
+ cpCreator: string | undefined;
423
+ cpCreatedAtTimestamp: string | undefined;
424
+ id: string;
425
+ creator: any;
426
+ owner?: any | null;
427
+ traderCount: any;
428
+ volumeBaseToken: any;
429
+ volumeQuoteToken: any;
430
+ volumeUSD: any;
431
+ feeBase: any;
432
+ feeQuote: any;
433
+ mtFeeRate: any;
434
+ lpFeeRate: any;
435
+ i?: any | null;
436
+ k?: any | null;
437
+ baseReserve: any;
438
+ quoteReserve: any;
439
+ createdAtTimestamp: any;
440
+ lastTradePrice: any;
441
+ baseLpToken?: {
442
+ id: string;
443
+ symbol: string;
444
+ name: string;
445
+ decimals: any;
446
+ } | null;
447
+ quoteLpToken?: {
448
+ id: string;
449
+ symbol: string;
450
+ name: string;
451
+ decimals: any;
452
+ } | null;
453
+ } | null;
454
+ data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
455
+ isError: false;
456
+ error: null;
457
+ isPending: false;
458
+ isLoading: false;
459
+ isLoadingError: false;
460
+ isRefetchError: false;
461
+ isSuccess: true;
462
+ isPlaceholderData: true;
463
+ status: "success";
464
+ dataUpdatedAt: number;
465
+ errorUpdatedAt: number;
466
+ failureCount: number;
467
+ failureReason: Error | null;
468
+ errorUpdateCount: number;
469
+ isFetched: boolean;
470
+ isFetchedAfterMount: boolean;
471
+ isFetching: boolean;
472
+ isInitialLoading: boolean;
473
+ isPaused: boolean;
474
+ isRefetching: boolean;
475
+ isStale: boolean;
476
+ isEnabled: boolean;
477
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
478
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
479
+ promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
61
480
  };
@@ -11,7 +11,7 @@ export declare function useUniV2CreatePairs({ baseToken, quoteToken, baseAmount,
11
11
  isInvalidPair: boolean;
12
12
  price: BigNumber | undefined;
13
13
  invertedPrice: BigNumber | undefined;
14
- priceLoading: false;
14
+ priceLoading: boolean;
15
15
  liquidityMinted: BigNumber | undefined;
16
16
  shareOfPool: string;
17
17
  isExists: boolean;
@@ -15,8 +15,11 @@ export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
15
15
  pair: Pair | null;
16
16
  price: BigNumber | undefined;
17
17
  invertedPrice: BigNumber | undefined;
18
- reserveQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
19
- totalBaseLpQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
18
+ reserveQuery: import("@tanstack/react-query").UseQueryResult<{
19
+ baseReserve: BigNumber;
20
+ quoteReserve: BigNumber;
21
+ } | null, Error>;
22
+ totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
20
23
  liquidityMinted: BigNumber | undefined;
21
24
  poolTokenPercentage: BigNumber | undefined;
22
25
  shareOfPool: string;
@@ -1,8 +1,8 @@
1
- import { ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
1
+ import { AMMV3Api, ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
2
2
  import { TokenInfo } from '../../hooks/Token';
3
3
  import { OperatePool } from './PoolOperate/types';
4
- export declare const poolApi: any;
5
- export declare const ammV3Api: any;
4
+ export declare const poolApi: PoolApi;
5
+ export declare const ammV3Api: AMMV3Api;
6
6
  export type FetchLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
7
7
  export type FetchMyLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchMyLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
8
8
  export type FetchMyCreateListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchDashboardPairList)['__apiType'], undefined>>['dashboard_pairs_list']>['list'];