@dodoex/widgets 3.7.0 → 3.9.0

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 (54) hide show
  1. package/README.md +1 -0
  2. package/dist/{helper-Bcs4xI7a.cjs → helper-GJHB4oq8.cjs} +1 -1
  3. package/dist/{helper-BAIYwBLI.js → helper-sBrBH-H_.js} +1 -1
  4. package/dist/{index-WDvMYq1E.js → index-C8rp6R1p.js} +1 -1
  5. package/dist/{index-BskwKyOA.cjs → index-CcMfM2YS.cjs} +1 -1
  6. package/dist/{index-R6X7VrRo.js → index-CuS8svoM.js} +1 -1
  7. package/dist/{index-BWLTc5Cq.cjs → index-DKnPJ0nB.cjs} +1 -1
  8. package/dist/{index-Bnjn_Uub.js → index-DOzaJQ79.js} +1 -1
  9. package/dist/{index-Dl0F0jzS.cjs → index-pvGJ8Vpc.cjs} +1 -1
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +1 -2
  13. package/dist/types/components/Widget/index.d.ts +1 -0
  14. package/dist/types/components/WidgetContainer.d.ts +1 -2
  15. package/dist/types/constants/api.d.ts +4 -4
  16. package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  17. package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +2 -2
  18. package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +1 -1
  19. package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +7 -7
  20. package/dist/types/hooks/Swap/useSwapSlippage.d.ts +7 -7
  21. package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +22 -99
  22. package/dist/types/hooks/Token/useSelectChainList.d.ts +2 -2
  23. package/dist/types/hooks/Token/useTokenStatus.d.ts +3 -3
  24. package/dist/types/hooks/contract/useFetchETHBalance.d.ts +1 -21
  25. package/dist/types/hooks/useGraphQLRequests.d.ts +2 -3
  26. package/dist/types/utils/chains.d.ts +1 -1
  27. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +1 -27
  28. package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +1 -1
  29. package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +1 -2
  30. package/dist/types/widgets/MiningWidget/helper.d.ts +1 -2
  31. package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +1 -1
  32. package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +1 -1
  33. package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +1 -1
  34. package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
  35. package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +2 -8
  36. package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +1 -1
  37. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +1 -2
  38. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +2 -2
  39. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +7 -7
  40. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +12 -192
  41. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +12 -42
  42. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +12 -122
  43. package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +6 -1
  44. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +2 -3
  45. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +1 -43
  46. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +3 -1
  47. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +4 -10
  48. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +6 -6
  49. package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +10 -10
  50. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +13 -264
  51. package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +4 -4
  52. package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +2 -5
  53. package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
  54. package/package.json +2 -2
@@ -12,49 +12,7 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
12
12
  filterTokens: TokenInfo[];
13
13
  filterASymbol: string;
14
14
  filterBSymbol: string;
15
- filterAddressLqList: ({
16
- id?: string | null;
17
- pair?: {
18
- id: string;
19
- chainId: number;
20
- type: string;
21
- lpFeeRate: any;
22
- mtFeeRate: any;
23
- creator: any;
24
- tvl?: any | null;
25
- miningAddress?: Array<string | null> | null;
26
- volume24H?: any | null;
27
- baseLpToken?: {
28
- id: string;
29
- decimals: any;
30
- } | null;
31
- quoteLpToken?: {
32
- id: string;
33
- decimals: any;
34
- } | null;
35
- baseToken: {
36
- id: string;
37
- symbol: string;
38
- name: string;
39
- decimals: any;
40
- logoImg?: string | null;
41
- };
42
- quoteToken: {
43
- id: string;
44
- symbol: string;
45
- name: string;
46
- decimals: any;
47
- logoImg?: string | null;
48
- };
49
- apy?: {
50
- miningBaseApy?: any | null;
51
- miningQuoteApy?: any | null;
52
- transactionBaseApy?: any | null;
53
- transactionQuoteApy?: any | null;
54
- metromMiningApy?: any | null;
55
- } | null;
56
- } | null;
57
- } | null)[] | null | undefined;
15
+ filterAddressLqList: ExcludeNone<any>;
58
16
  handleDeleteToken: (token: TokenInfo) => void;
59
17
  handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
60
18
  handleChangeFilterAddress: (lqList: FetchLiquidityListLqList) => void;
@@ -2,11 +2,13 @@ import React from 'react';
2
2
  import { Page, PageType } from '../../../router/types';
3
3
  import { GetMigrationPairAndMining, ShowMigrationPairAndMining } from '../PoolOperate/types';
4
4
  import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
5
- export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, getMigrationPairAndMining, showMigrationPairAndMining, supportAMMIcon, }: {
5
+ import { OnModifyGspPool } from './MyCreated';
6
+ export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, getMigrationPairAndMining, showMigrationPairAndMining, supportAMMIcon, onModifyGspPool, }: {
6
7
  params?: Page<PageType.Pool>['params'];
7
8
  scrollRef?: React.RefObject<any>;
8
9
  tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
9
10
  getMigrationPairAndMining?: GetMigrationPairAndMining;
10
11
  showMigrationPairAndMining?: ShowMigrationPairAndMining;
11
12
  supportAMMIcon?: boolean;
13
+ onModifyGspPool?: OnModifyGspPool;
12
14
  }): JSX.Element;
@@ -29,22 +29,16 @@ export declare function useLiquidityOperateAmount({ pool, maxBaseAmount, maxQuot
29
29
  addPortion: BigNumber;
30
30
  amountLoading: boolean;
31
31
  amountError: boolean;
32
- amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
33
- baseReserve: BigNumber;
34
- quoteReserve: BigNumber;
35
- } | null, Error>>;
32
+ amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
36
33
  amountCheckedDisabled: boolean;
37
- midPrice: BigNumber | undefined;
34
+ midPrice: any;
38
35
  uniV2Pair: {
39
36
  isRearTokenA: boolean;
40
37
  pair: import("@uniswap/v2-sdk").Pair | null;
41
38
  price: BigNumber | undefined;
42
39
  invertedPrice: BigNumber | undefined;
43
- reserveQuery: import("@tanstack/react-query").UseQueryResult<{
44
- baseReserve: BigNumber;
45
- quoteReserve: BigNumber;
46
- } | null, Error>;
47
- totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
40
+ reserveQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
41
+ totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
48
42
  liquidityMinted: BigNumber | undefined;
49
43
  poolTokenPercentage: BigNumber | undefined;
50
44
  shareOfPool: string;
@@ -12,12 +12,12 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
12
12
  isGetApproveLoading: boolean;
13
13
  needApprove: boolean;
14
14
  needReset: boolean | undefined;
15
- needShowTokenStatusButton: boolean;
16
- insufficientBalance: boolean;
15
+ needShowTokenStatusButton: any;
16
+ insufficientBalance: any;
17
17
  loading: boolean;
18
18
  approveTitle: string;
19
19
  submitApprove: () => Promise<void>;
20
- getMaxBalance: () => string;
20
+ getMaxBalance: () => any;
21
21
  };
22
22
  quoteTokenStatus: {
23
23
  token: import("../../../..").TokenInfo | null | undefined;
@@ -25,11 +25,11 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
25
25
  isGetApproveLoading: boolean;
26
26
  needApprove: boolean;
27
27
  needReset: boolean | undefined;
28
- needShowTokenStatusButton: boolean;
29
- insufficientBalance: boolean;
28
+ needShowTokenStatusButton: any;
29
+ insufficientBalance: any;
30
30
  loading: boolean;
31
31
  approveTitle: string;
32
32
  submitApprove: () => Promise<void>;
33
- getMaxBalance: () => string;
33
+ getMaxBalance: () => any;
34
34
  };
35
35
  };
@@ -15,28 +15,28 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
15
15
  };
16
16
  }): {
17
17
  /** existing base lp balance */
18
- totalBaseLpBalance: BigNumber | null | undefined;
18
+ totalBaseLpBalance: unknown;
19
19
  /** existing quote lp balance */
20
- totalQuoteLpBalance: BigNumber | null | undefined;
20
+ totalQuoteLpBalance: unknown;
21
21
  /** the total deposited base lp balance */
22
- baseReserve: BigNumber | undefined;
22
+ baseReserve: any;
23
23
  /** the total deposited quote lp balance */
24
- quoteReserve: BigNumber | undefined;
24
+ quoteReserve: any;
25
25
  /** classical base equilibrium target */
26
- classicalBaseTarget: BigNumber | undefined;
26
+ classicalBaseTarget: any;
27
27
  /** classical quote equilibrium target */
28
- classicalQuoteTarget: BigNumber | undefined;
28
+ classicalQuoteTarget: any;
29
29
  /** the user's existing base lp balance */
30
- userBaseLpBalance: Balance;
30
+ userBaseLpBalance: any;
31
31
  /** the user's existing quote lp balance */
32
- userQuoteLpBalance: Balance;
32
+ userQuoteLpBalance: any;
33
33
  /** The number of base that can be obtained when a user withdraws from the pool */
34
- userBaseLpToTokenBalance: BigNumber | undefined;
34
+ userBaseLpToTokenBalance: any;
35
35
  /** The number of quote that can be obtained when a user withdraws from the pool */
36
36
  userQuoteLpToTokenBalance: BigNumber | null | undefined;
37
37
  baseLpToTokenProportion: BigNumber | undefined;
38
38
  quoteLpToTokenProportion: BigNumber | undefined;
39
- isSinglePool: boolean;
39
+ isSinglePool: any;
40
40
  userLpBalanceLoading: boolean;
41
41
  userLpToTokenBalanceLoading: boolean;
42
42
  userLpBalanceError: boolean;
@@ -1,61 +1,10 @@
1
- import { ChainId, PoolType } from '@dodoex/api';
2
- import { TokenInfo } from '../../../hooks/Token';
1
+ import { ChainId } from '@dodoex/api';
3
2
  export declare function usePoolDetail({ id, chainId, }: {
4
3
  id: string | undefined;
5
4
  chainId: ChainId | undefined;
6
5
  }): {
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
- } | null | undefined;
21
- baseApy: string | undefined;
22
- quoteApy: string | undefined;
23
- isCpPool: boolean;
24
- cpAddress: string | undefined;
25
- cpLiquidator: string | undefined;
26
- cpCreator: string | undefined;
27
- cpCreatedAtTimestamp: string | undefined;
28
- id: string;
29
- creator: any;
30
- owner?: any | null;
31
- traderCount: any;
32
- volumeBaseToken: any;
33
- volumeQuoteToken: any;
34
- volumeUSD: any;
35
- feeBase: any;
36
- feeQuote: any;
37
- mtFeeRate: any;
38
- lpFeeRate: any;
39
- i?: any | null;
40
- k?: any | null;
41
- baseReserve: any;
42
- quoteReserve: any;
43
- createdAtTimestamp: any;
44
- lastTradePrice: any;
45
- baseLpToken?: {
46
- id: string;
47
- symbol: string;
48
- name: string;
49
- decimals: any;
50
- } | null;
51
- quoteLpToken?: {
52
- id: string;
53
- symbol: string;
54
- name: string;
55
- decimals: any;
56
- } | null;
57
- } | null;
58
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
6
+ poolDetail: any;
7
+ data: unknown;
59
8
  error: Error;
60
9
  isError: true;
61
10
  isPending: false;
@@ -77,61 +26,11 @@ export declare function usePoolDetail({ id, chainId, }: {
77
26
  isPlaceholderData: boolean;
78
27
  isRefetching: boolean;
79
28
  isStale: boolean;
80
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
29
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
81
30
  fetchStatus: import("@tanstack/react-query").FetchStatus;
82
31
  } | {
83
- poolDetail: {
84
- address: string;
85
- type: PoolType;
86
- chainId: ChainId;
87
- baseToken: TokenInfo;
88
- quoteToken: TokenInfo;
89
- miningAddress: string;
90
- apy: {
91
- miningBaseApy?: any | null;
92
- miningQuoteApy?: any | null;
93
- transactionBaseApy?: any | null;
94
- transactionQuoteApy?: any | null;
95
- metromMiningApy?: any | null;
96
- } | null | undefined;
97
- baseApy: string | undefined;
98
- quoteApy: string | undefined;
99
- isCpPool: boolean;
100
- cpAddress: string | undefined;
101
- cpLiquidator: string | undefined;
102
- cpCreator: string | undefined;
103
- cpCreatedAtTimestamp: string | undefined;
104
- id: string;
105
- creator: any;
106
- owner?: any | null;
107
- traderCount: any;
108
- volumeBaseToken: any;
109
- volumeQuoteToken: any;
110
- volumeUSD: any;
111
- feeBase: any;
112
- feeQuote: any;
113
- mtFeeRate: any;
114
- lpFeeRate: any;
115
- i?: any | null;
116
- k?: any | null;
117
- baseReserve: any;
118
- quoteReserve: any;
119
- createdAtTimestamp: any;
120
- lastTradePrice: any;
121
- baseLpToken?: {
122
- id: string;
123
- symbol: string;
124
- name: string;
125
- decimals: any;
126
- } | null;
127
- quoteLpToken?: {
128
- id: string;
129
- symbol: string;
130
- name: string;
131
- decimals: any;
132
- } | null;
133
- } | null;
134
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
32
+ poolDetail: any;
33
+ data: unknown;
135
34
  error: null;
136
35
  isError: false;
137
36
  isPending: false;
@@ -153,60 +52,10 @@ export declare function usePoolDetail({ id, chainId, }: {
153
52
  isPlaceholderData: boolean;
154
53
  isRefetching: boolean;
155
54
  isStale: boolean;
156
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
55
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
157
56
  fetchStatus: import("@tanstack/react-query").FetchStatus;
158
57
  } | {
159
- poolDetail: {
160
- address: string;
161
- type: PoolType;
162
- chainId: ChainId;
163
- baseToken: TokenInfo;
164
- quoteToken: TokenInfo;
165
- miningAddress: string;
166
- apy: {
167
- miningBaseApy?: any | null;
168
- miningQuoteApy?: any | null;
169
- transactionBaseApy?: any | null;
170
- transactionQuoteApy?: any | null;
171
- metromMiningApy?: any | null;
172
- } | null | undefined;
173
- baseApy: string | undefined;
174
- quoteApy: string | undefined;
175
- isCpPool: boolean;
176
- cpAddress: string | undefined;
177
- cpLiquidator: string | undefined;
178
- cpCreator: string | undefined;
179
- cpCreatedAtTimestamp: string | undefined;
180
- id: string;
181
- creator: any;
182
- owner?: any | null;
183
- traderCount: any;
184
- volumeBaseToken: any;
185
- volumeQuoteToken: any;
186
- volumeUSD: any;
187
- feeBase: any;
188
- feeQuote: any;
189
- mtFeeRate: any;
190
- lpFeeRate: any;
191
- i?: any | null;
192
- k?: any | null;
193
- baseReserve: any;
194
- quoteReserve: any;
195
- createdAtTimestamp: any;
196
- lastTradePrice: any;
197
- baseLpToken?: {
198
- id: string;
199
- symbol: string;
200
- name: string;
201
- decimals: any;
202
- } | null;
203
- quoteLpToken?: {
204
- id: string;
205
- symbol: string;
206
- name: string;
207
- decimals: any;
208
- } | null;
209
- } | null;
58
+ poolDetail: any;
210
59
  data: undefined;
211
60
  error: Error;
212
61
  isError: true;
@@ -229,60 +78,10 @@ export declare function usePoolDetail({ id, chainId, }: {
229
78
  isPlaceholderData: boolean;
230
79
  isRefetching: boolean;
231
80
  isStale: boolean;
232
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
81
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
233
82
  fetchStatus: import("@tanstack/react-query").FetchStatus;
234
83
  } | {
235
- poolDetail: {
236
- address: string;
237
- type: PoolType;
238
- chainId: ChainId;
239
- baseToken: TokenInfo;
240
- quoteToken: TokenInfo;
241
- miningAddress: string;
242
- apy: {
243
- miningBaseApy?: any | null;
244
- miningQuoteApy?: any | null;
245
- transactionBaseApy?: any | null;
246
- transactionQuoteApy?: any | null;
247
- metromMiningApy?: any | null;
248
- } | null | undefined;
249
- baseApy: string | undefined;
250
- quoteApy: string | undefined;
251
- isCpPool: boolean;
252
- cpAddress: string | undefined;
253
- cpLiquidator: string | undefined;
254
- cpCreator: string | undefined;
255
- cpCreatedAtTimestamp: string | undefined;
256
- id: string;
257
- creator: any;
258
- owner?: any | null;
259
- traderCount: any;
260
- volumeBaseToken: any;
261
- volumeQuoteToken: any;
262
- volumeUSD: any;
263
- feeBase: any;
264
- feeQuote: any;
265
- mtFeeRate: any;
266
- lpFeeRate: any;
267
- i?: any | null;
268
- k?: any | null;
269
- baseReserve: any;
270
- quoteReserve: any;
271
- createdAtTimestamp: any;
272
- lastTradePrice: any;
273
- baseLpToken?: {
274
- id: string;
275
- symbol: string;
276
- name: string;
277
- decimals: any;
278
- } | null;
279
- quoteLpToken?: {
280
- id: string;
281
- symbol: string;
282
- name: string;
283
- decimals: any;
284
- } | null;
285
- } | null;
84
+ poolDetail: any;
286
85
  data: undefined;
287
86
  error: null;
288
87
  isError: false;
@@ -305,60 +104,10 @@ export declare function usePoolDetail({ id, chainId, }: {
305
104
  isPlaceholderData: boolean;
306
105
  isRefetching: boolean;
307
106
  isStale: boolean;
308
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
107
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
309
108
  fetchStatus: import("@tanstack/react-query").FetchStatus;
310
109
  } | {
311
- poolDetail: {
312
- address: string;
313
- type: PoolType;
314
- chainId: ChainId;
315
- baseToken: TokenInfo;
316
- quoteToken: TokenInfo;
317
- miningAddress: string;
318
- apy: {
319
- miningBaseApy?: any | null;
320
- miningQuoteApy?: any | null;
321
- transactionBaseApy?: any | null;
322
- transactionQuoteApy?: any | null;
323
- metromMiningApy?: any | null;
324
- } | null | undefined;
325
- baseApy: string | undefined;
326
- quoteApy: string | undefined;
327
- isCpPool: boolean;
328
- cpAddress: string | undefined;
329
- cpLiquidator: string | undefined;
330
- cpCreator: string | undefined;
331
- cpCreatedAtTimestamp: string | undefined;
332
- id: string;
333
- creator: any;
334
- owner?: any | null;
335
- traderCount: any;
336
- volumeBaseToken: any;
337
- volumeQuoteToken: any;
338
- volumeUSD: any;
339
- feeBase: any;
340
- feeQuote: any;
341
- mtFeeRate: any;
342
- lpFeeRate: any;
343
- i?: any | null;
344
- k?: any | null;
345
- baseReserve: any;
346
- quoteReserve: any;
347
- createdAtTimestamp: any;
348
- lastTradePrice: any;
349
- baseLpToken?: {
350
- id: string;
351
- symbol: string;
352
- name: string;
353
- decimals: any;
354
- } | null;
355
- quoteLpToken?: {
356
- id: string;
357
- symbol: string;
358
- name: string;
359
- decimals: any;
360
- } | null;
361
- } | null;
110
+ poolDetail: any;
362
111
  data: undefined;
363
112
  error: null;
364
113
  isError: false;
@@ -381,6 +130,6 @@ export declare function usePoolDetail({ id, chainId, }: {
381
130
  isPlaceholderData: boolean;
382
131
  isRefetching: boolean;
383
132
  isStale: boolean;
384
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
133
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
385
134
  fetchStatus: import("@tanstack/react-query").FetchStatus;
386
135
  };
@@ -3,14 +3,14 @@ import { Theme } from '@dodoex/components';
3
3
  import BigNumber from 'bignumber.js';
4
4
  export declare const getPoolTypeTag: (type: PoolType, quoteReserve: BigNumber | undefined | null, theme: Theme) => {
5
5
  typeLabel: string;
6
- typeColor: string;
7
- typeBgColor: string;
6
+ typeColor: any;
7
+ typeBgColor: any;
8
8
  };
9
9
  export declare const usePoolTypeTag: ({ type, quoteReserve, }: {
10
10
  type: PoolType;
11
11
  quoteReserve: BigNumber | undefined | null;
12
12
  }) => {
13
13
  typeLabel: string;
14
- typeColor: string;
15
- typeBgColor: string;
14
+ typeColor: any;
15
+ typeBgColor: any;
16
16
  };
@@ -15,11 +15,8 @@ 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").UseQueryResult<{
19
- baseReserve: BigNumber;
20
- quoteReserve: BigNumber;
21
- } | null, Error>;
22
- totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
18
+ reserveQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
19
+ totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
23
20
  liquidityMinted: BigNumber | undefined;
24
21
  poolTokenPercentage: BigNumber | undefined;
25
22
  shareOfPool: string;
@@ -1,8 +1,8 @@
1
- import { AMMV3Api, ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
1
+ import { 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: PoolApi;
5
- export declare const ammV3Api: AMMV3Api;
4
+ export declare const poolApi: any;
5
+ export declare const ammV3Api: any;
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'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.7.0",
3
+ "version": "3.9.0",
4
4
  "description": "DODO Widgets",
5
5
  "source": "src/index.tsx",
6
6
  "types": "dist/types/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@babel/runtime": "^7.17.0",
61
- "@dodoex/api": "3.3.0",
61
+ "@dodoex/api": "3.4.0",
62
62
  "@dodoex/components": "^3.1.0",
63
63
  "@dodoex/contract-request": "^1.3.0",
64
64
  "@dodoex/dodo-contract-request": "^1.28.0",