@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
@@ -1,13 +1,7 @@
1
- import { MiningStatusE } from '@dodoex/api';
2
1
  import { FetchMiningListItem } from '../types';
3
2
  export declare function useStatusAndStartBlockNumber({ miningItem, }: {
4
3
  miningItem: FetchMiningListItem;
5
4
  }): {
6
- status: MiningStatusE;
7
- miningStatusList: {
8
- status: import("@dodoex/api/dist/types/services/mining/utils").MiningStatusE;
9
- firstStartTime: import("bignumber.js").BigNumber | undefined;
10
- lastEndTime: import("bignumber.js").BigNumber | undefined;
11
- currentTime: import("bignumber.js").BigNumber;
12
- }[];
5
+ status: any;
6
+ miningStatusList: any[];
13
7
  };
@@ -1,4 +1,4 @@
1
- import { ChainId, MiningStatusE } from '@dodoex/api';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import BigNumber from 'bignumber.js';
3
3
  import dayjs from 'dayjs';
4
4
  import { BaseMiningI, MiningRewardTokenI } from '../types';
@@ -1,9 +1,8 @@
1
- import { ChainId } from '@dodoex/api';
2
1
  export { ChainId } from '@dodoex/api';
3
2
  /**
4
3
  * @deprecated
5
4
  */
6
- export declare const SUPPORTED_CHAINS: readonly [ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.SEPOLIA, ChainId.TAIKO];
5
+ export declare const SUPPORTED_CHAINS: readonly [any, any, any, any];
7
6
  /**
8
7
  * @deprecated
9
8
  */
@@ -21,6 +21,6 @@ export declare const useCreatePmm: ({ selectedVersion, baseAmount, quoteAmount,
21
21
  q0: number;
22
22
  R: number;
23
23
  } | undefined;
24
- pmmModel: import("@dodoex/api").PMMModel | undefined;
25
- midPrice: import("bignumber.js").BigNumber | undefined;
24
+ pmmModel: any;
25
+ midPrice: any;
26
26
  };
@@ -25,7 +25,7 @@ export declare function useLiquidityProviders({ pool, }: {
25
25
  isLoading: boolean;
26
26
  errorRefetch: (() => void) | undefined;
27
27
  list: LpItem[];
28
- data: import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery;
28
+ data: unknown;
29
29
  error: Error;
30
30
  isError: true;
31
31
  isPending: false;
@@ -46,13 +46,13 @@ export declare function useLiquidityProviders({ pool, }: {
46
46
  isPlaceholderData: boolean;
47
47
  isRefetching: boolean;
48
48
  isStale: boolean;
49
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
49
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
50
50
  fetchStatus: import("@tanstack/react-query").FetchStatus;
51
51
  } | {
52
52
  isLoading: boolean;
53
53
  errorRefetch: (() => void) | undefined;
54
54
  list: LpItem[];
55
- data: import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery;
55
+ data: unknown;
56
56
  error: null;
57
57
  isError: false;
58
58
  isPending: false;
@@ -73,7 +73,7 @@ export declare function useLiquidityProviders({ pool, }: {
73
73
  isPlaceholderData: boolean;
74
74
  isRefetching: boolean;
75
75
  isStale: boolean;
76
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
76
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
77
77
  fetchStatus: import("@tanstack/react-query").FetchStatus;
78
78
  } | {
79
79
  isLoading: boolean;
@@ -100,7 +100,7 @@ export declare function useLiquidityProviders({ pool, }: {
100
100
  isPlaceholderData: boolean;
101
101
  isRefetching: boolean;
102
102
  isStale: boolean;
103
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
103
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
104
104
  fetchStatus: import("@tanstack/react-query").FetchStatus;
105
105
  } | {
106
106
  isLoading: boolean;
@@ -127,7 +127,7 @@ export declare function useLiquidityProviders({ pool, }: {
127
127
  isPlaceholderData: boolean;
128
128
  isRefetching: boolean;
129
129
  isStale: boolean;
130
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
130
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
131
131
  fetchStatus: import("@tanstack/react-query").FetchStatus;
132
132
  } | {
133
133
  isLoading: boolean;
@@ -154,6 +154,6 @@ export declare function useLiquidityProviders({ pool, }: {
154
154
  isPlaceholderData: boolean;
155
155
  isRefetching: boolean;
156
156
  isStale: boolean;
157
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
157
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
158
158
  fetchStatus: import("@tanstack/react-query").FetchStatus;
159
159
  };
@@ -3,44 +3,8 @@ export declare function usePoolDashboard({ address, chainId, }: {
3
3
  address: string | undefined;
4
4
  chainId: ChainId | undefined;
5
5
  }): {
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;
6
+ dashboard: any;
7
+ data: unknown;
44
8
  error: Error;
45
9
  isError: true;
46
10
  isPending: false;
@@ -62,47 +26,11 @@ export declare function usePoolDashboard({ address, chainId, }: {
62
26
  isPlaceholderData: boolean;
63
27
  isRefetching: boolean;
64
28
  isStale: boolean;
65
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
29
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
66
30
  fetchStatus: import("@tanstack/react-query").FetchStatus;
67
31
  } | {
68
- dashboard: {
69
- fee?: string | null;
70
- volume?: string | null;
71
- totalFee?: string | null;
72
- totalMtFee?: string | null;
73
- totalVolume?: string | null;
74
- tvl?: string | null;
75
- turnover?: string | null;
76
- liquidity?: string | null;
77
- baseReserve?: string | null;
78
- quoteReserve?: string | null;
79
- baseVolume?: string | null;
80
- quoteVolume?: string | null;
81
- basePrice?: string | null;
82
- quotePrice?: string | null;
83
- price?: string | null;
84
- baseFee?: string | null;
85
- quoteFee?: string | null;
86
- baseMtFee?: string | null;
87
- quoteMtFee?: string | null;
88
- pair?: string | null;
89
- poolType?: string | null;
90
- baseVolumeCumulative?: string | null;
91
- quoteVolumeCumulative?: string | null;
92
- baseAddress?: string | null;
93
- baseSymbol?: string | null;
94
- quoteAddress?: string | null;
95
- quoteSymbol?: string | null;
96
- network?: string | null;
97
- pairAddress?: string | null;
98
- txes?: number | null;
99
- txesNear24h?: number | null;
100
- txUsers?: number | null;
101
- txUserNear24h?: number | null;
102
- mtFeeNear24h?: string | null;
103
- feeNear24h?: string | null;
104
- } | null | undefined;
105
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
32
+ dashboard: any;
33
+ data: unknown;
106
34
  error: null;
107
35
  isError: false;
108
36
  isPending: false;
@@ -124,46 +52,10 @@ export declare function usePoolDashboard({ address, chainId, }: {
124
52
  isPlaceholderData: boolean;
125
53
  isRefetching: boolean;
126
54
  isStale: boolean;
127
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
55
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
128
56
  fetchStatus: import("@tanstack/react-query").FetchStatus;
129
57
  } | {
130
- dashboard: {
131
- fee?: string | null;
132
- volume?: string | null;
133
- totalFee?: string | null;
134
- totalMtFee?: string | null;
135
- totalVolume?: string | null;
136
- tvl?: string | null;
137
- turnover?: string | null;
138
- liquidity?: string | null;
139
- baseReserve?: string | null;
140
- quoteReserve?: string | null;
141
- baseVolume?: string | null;
142
- quoteVolume?: string | null;
143
- basePrice?: string | null;
144
- quotePrice?: string | null;
145
- price?: string | null;
146
- baseFee?: string | null;
147
- quoteFee?: string | null;
148
- baseMtFee?: string | null;
149
- quoteMtFee?: string | null;
150
- pair?: string | null;
151
- poolType?: string | null;
152
- baseVolumeCumulative?: string | null;
153
- quoteVolumeCumulative?: string | null;
154
- baseAddress?: string | null;
155
- baseSymbol?: string | null;
156
- quoteAddress?: string | null;
157
- quoteSymbol?: string | null;
158
- network?: string | null;
159
- pairAddress?: string | null;
160
- txes?: number | null;
161
- txesNear24h?: number | null;
162
- txUsers?: number | null;
163
- txUserNear24h?: number | null;
164
- mtFeeNear24h?: string | null;
165
- feeNear24h?: string | null;
166
- } | null | undefined;
58
+ dashboard: any;
167
59
  data: undefined;
168
60
  error: Error;
169
61
  isError: true;
@@ -186,46 +78,10 @@ export declare function usePoolDashboard({ address, chainId, }: {
186
78
  isPlaceholderData: boolean;
187
79
  isRefetching: boolean;
188
80
  isStale: boolean;
189
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
81
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
190
82
  fetchStatus: import("@tanstack/react-query").FetchStatus;
191
83
  } | {
192
- dashboard: {
193
- fee?: string | null;
194
- volume?: string | null;
195
- totalFee?: string | null;
196
- totalMtFee?: string | null;
197
- totalVolume?: string | null;
198
- tvl?: string | null;
199
- turnover?: string | null;
200
- liquidity?: string | null;
201
- baseReserve?: string | null;
202
- quoteReserve?: string | null;
203
- baseVolume?: string | null;
204
- quoteVolume?: string | null;
205
- basePrice?: string | null;
206
- quotePrice?: string | null;
207
- price?: string | null;
208
- baseFee?: string | null;
209
- quoteFee?: string | null;
210
- baseMtFee?: string | null;
211
- quoteMtFee?: string | null;
212
- pair?: string | null;
213
- poolType?: string | null;
214
- baseVolumeCumulative?: string | null;
215
- quoteVolumeCumulative?: string | null;
216
- baseAddress?: string | null;
217
- baseSymbol?: string | null;
218
- quoteAddress?: string | null;
219
- quoteSymbol?: string | null;
220
- network?: string | null;
221
- pairAddress?: string | null;
222
- txes?: number | null;
223
- txesNear24h?: number | null;
224
- txUsers?: number | null;
225
- txUserNear24h?: number | null;
226
- mtFeeNear24h?: string | null;
227
- feeNear24h?: string | null;
228
- } | null | undefined;
84
+ dashboard: any;
229
85
  data: undefined;
230
86
  error: null;
231
87
  isError: false;
@@ -248,46 +104,10 @@ export declare function usePoolDashboard({ address, chainId, }: {
248
104
  isPlaceholderData: boolean;
249
105
  isRefetching: boolean;
250
106
  isStale: boolean;
251
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
107
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
252
108
  fetchStatus: import("@tanstack/react-query").FetchStatus;
253
109
  } | {
254
- dashboard: {
255
- fee?: string | null;
256
- volume?: string | null;
257
- totalFee?: string | null;
258
- totalMtFee?: string | null;
259
- totalVolume?: string | null;
260
- tvl?: string | null;
261
- turnover?: string | null;
262
- liquidity?: string | null;
263
- baseReserve?: string | null;
264
- quoteReserve?: string | null;
265
- baseVolume?: string | null;
266
- quoteVolume?: string | null;
267
- basePrice?: string | null;
268
- quotePrice?: string | null;
269
- price?: string | null;
270
- baseFee?: string | null;
271
- quoteFee?: string | null;
272
- baseMtFee?: string | null;
273
- quoteMtFee?: string | null;
274
- pair?: string | null;
275
- poolType?: string | null;
276
- baseVolumeCumulative?: string | null;
277
- quoteVolumeCumulative?: string | null;
278
- baseAddress?: string | null;
279
- baseSymbol?: string | null;
280
- quoteAddress?: string | null;
281
- quoteSymbol?: string | null;
282
- network?: string | null;
283
- pairAddress?: string | null;
284
- txes?: number | null;
285
- txesNear24h?: number | null;
286
- txUsers?: number | null;
287
- txUserNear24h?: number | null;
288
- mtFeeNear24h?: string | null;
289
- feeNear24h?: string | null;
290
- } | null | undefined;
110
+ dashboard: any;
291
111
  data: undefined;
292
112
  error: null;
293
113
  isError: false;
@@ -310,6 +130,6 @@ export declare function usePoolDashboard({ address, chainId, }: {
310
130
  isPlaceholderData: boolean;
311
131
  isRefetching: boolean;
312
132
  isStale: boolean;
313
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
133
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
314
134
  fetchStatus: import("@tanstack/react-query").FetchStatus;
315
135
  };
@@ -4,14 +4,8 @@ export declare function usePoolDayData({ address, chainId, day, }: {
4
4
  chainId: ChainId | undefined;
5
5
  day?: number;
6
6
  }): {
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;
7
+ dayDataList: any;
8
+ data: unknown;
15
9
  error: Error;
16
10
  isError: true;
17
11
  isPending: false;
@@ -33,17 +27,11 @@ export declare function usePoolDayData({ address, chainId, day, }: {
33
27
  isPlaceholderData: boolean;
34
28
  isRefetching: boolean;
35
29
  isStale: boolean;
36
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
30
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
37
31
  fetchStatus: import("@tanstack/react-query").FetchStatus;
38
32
  } | {
39
- dayDataList: {
40
- volume: number;
41
- fee: number;
42
- traders: number;
43
- date: number;
44
- tvl: number;
45
- }[];
46
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
33
+ dayDataList: any;
34
+ data: unknown;
47
35
  error: null;
48
36
  isError: false;
49
37
  isPending: false;
@@ -65,16 +53,10 @@ export declare function usePoolDayData({ address, chainId, day, }: {
65
53
  isPlaceholderData: boolean;
66
54
  isRefetching: boolean;
67
55
  isStale: boolean;
68
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
56
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
69
57
  fetchStatus: import("@tanstack/react-query").FetchStatus;
70
58
  } | {
71
- dayDataList: {
72
- volume: number;
73
- fee: number;
74
- traders: number;
75
- date: number;
76
- tvl: number;
77
- }[];
59
+ dayDataList: any;
78
60
  data: undefined;
79
61
  error: Error;
80
62
  isError: true;
@@ -97,16 +79,10 @@ export declare function usePoolDayData({ address, chainId, day, }: {
97
79
  isPlaceholderData: boolean;
98
80
  isRefetching: boolean;
99
81
  isStale: boolean;
100
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
82
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
101
83
  fetchStatus: import("@tanstack/react-query").FetchStatus;
102
84
  } | {
103
- dayDataList: {
104
- volume: number;
105
- fee: number;
106
- traders: number;
107
- date: number;
108
- tvl: number;
109
- }[];
85
+ dayDataList: any;
110
86
  data: undefined;
111
87
  error: null;
112
88
  isError: false;
@@ -129,16 +105,10 @@ export declare function usePoolDayData({ address, chainId, day, }: {
129
105
  isPlaceholderData: boolean;
130
106
  isRefetching: boolean;
131
107
  isStale: boolean;
132
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
108
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
133
109
  fetchStatus: import("@tanstack/react-query").FetchStatus;
134
110
  } | {
135
- dayDataList: {
136
- volume: number;
137
- fee: number;
138
- traders: number;
139
- date: number;
140
- tvl: number;
141
- }[];
111
+ dayDataList: any;
142
112
  data: undefined;
143
113
  error: null;
144
114
  isError: false;
@@ -161,6 +131,6 @@ export declare function usePoolDayData({ address, chainId, day, }: {
161
131
  isPlaceholderData: boolean;
162
132
  isRefetching: boolean;
163
133
  isStale: boolean;
164
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
134
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
165
135
  fetchStatus: import("@tanstack/react-query").FetchStatus;
166
136
  };
@@ -3,30 +3,8 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
3
3
  address: string | undefined;
4
4
  first?: number;
5
5
  }): {
6
- swapList: {
7
- id: string;
8
- timestamp: any;
9
- from: any;
10
- baseVolume: any;
11
- quoteVolume: any;
12
- feeBase: any;
13
- feeQuote: any;
14
- amountIn: any;
15
- amountOut: any;
16
- fromToken: {
17
- id: string;
18
- symbol: string;
19
- name: string;
20
- decimals: any;
21
- };
22
- toToken: {
23
- id: string;
24
- symbol: string;
25
- name: string;
26
- decimals: any;
27
- };
28
- }[] | undefined;
29
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
6
+ swapList: any;
7
+ data: unknown;
30
8
  error: Error;
31
9
  isError: true;
32
10
  isPending: false;
@@ -48,33 +26,11 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
48
26
  isPlaceholderData: boolean;
49
27
  isRefetching: boolean;
50
28
  isStale: boolean;
51
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
29
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
52
30
  fetchStatus: import("@tanstack/react-query").FetchStatus;
53
31
  } | {
54
- swapList: {
55
- id: string;
56
- timestamp: any;
57
- from: any;
58
- baseVolume: any;
59
- quoteVolume: any;
60
- feeBase: any;
61
- feeQuote: any;
62
- amountIn: any;
63
- amountOut: any;
64
- fromToken: {
65
- id: string;
66
- symbol: string;
67
- name: string;
68
- decimals: any;
69
- };
70
- toToken: {
71
- id: string;
72
- symbol: string;
73
- name: string;
74
- decimals: any;
75
- };
76
- }[] | undefined;
77
- data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
32
+ swapList: any;
33
+ data: unknown;
78
34
  error: null;
79
35
  isError: false;
80
36
  isPending: false;
@@ -96,32 +52,10 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
96
52
  isPlaceholderData: boolean;
97
53
  isRefetching: boolean;
98
54
  isStale: boolean;
99
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
55
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
100
56
  fetchStatus: import("@tanstack/react-query").FetchStatus;
101
57
  } | {
102
- swapList: {
103
- id: string;
104
- timestamp: any;
105
- from: any;
106
- baseVolume: any;
107
- quoteVolume: any;
108
- feeBase: any;
109
- feeQuote: any;
110
- amountIn: any;
111
- amountOut: any;
112
- fromToken: {
113
- id: string;
114
- symbol: string;
115
- name: string;
116
- decimals: any;
117
- };
118
- toToken: {
119
- id: string;
120
- symbol: string;
121
- name: string;
122
- decimals: any;
123
- };
124
- }[] | undefined;
58
+ swapList: any;
125
59
  data: undefined;
126
60
  error: Error;
127
61
  isError: true;
@@ -144,32 +78,10 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
144
78
  isPlaceholderData: boolean;
145
79
  isRefetching: boolean;
146
80
  isStale: boolean;
147
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
81
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
148
82
  fetchStatus: import("@tanstack/react-query").FetchStatus;
149
83
  } | {
150
- swapList: {
151
- id: string;
152
- timestamp: any;
153
- from: any;
154
- baseVolume: any;
155
- quoteVolume: any;
156
- feeBase: any;
157
- feeQuote: any;
158
- amountIn: any;
159
- amountOut: any;
160
- fromToken: {
161
- id: string;
162
- symbol: string;
163
- name: string;
164
- decimals: any;
165
- };
166
- toToken: {
167
- id: string;
168
- symbol: string;
169
- name: string;
170
- decimals: any;
171
- };
172
- }[] | undefined;
84
+ swapList: any;
173
85
  data: undefined;
174
86
  error: null;
175
87
  isError: false;
@@ -192,32 +104,10 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
192
104
  isPlaceholderData: boolean;
193
105
  isRefetching: boolean;
194
106
  isStale: boolean;
195
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
107
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
196
108
  fetchStatus: import("@tanstack/react-query").FetchStatus;
197
109
  } | {
198
- swapList: {
199
- id: string;
200
- timestamp: any;
201
- from: any;
202
- baseVolume: any;
203
- quoteVolume: any;
204
- feeBase: any;
205
- feeQuote: any;
206
- amountIn: any;
207
- amountOut: any;
208
- fromToken: {
209
- id: string;
210
- symbol: string;
211
- name: string;
212
- decimals: any;
213
- };
214
- toToken: {
215
- id: string;
216
- symbol: string;
217
- name: string;
218
- decimals: any;
219
- };
220
- }[] | undefined;
110
+ swapList: any;
221
111
  data: undefined;
222
112
  error: null;
223
113
  isError: false;
@@ -240,6 +130,6 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
240
130
  isPlaceholderData: boolean;
241
131
  isRefetching: boolean;
242
132
  isStale: boolean;
243
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
133
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
244
134
  fetchStatus: import("@tanstack/react-query").FetchStatus;
245
135
  };
@@ -1,6 +1,10 @@
1
1
  import { ChainId } from '@dodoex/api';
2
2
  import { PoolOperateProps } from '../PoolOperate';
3
- export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, supportAMMIcon, }: {
3
+ export type OnModifyGspPool = (params: {
4
+ chainId: number;
5
+ address: string;
6
+ }) => void;
7
+ export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, supportAMMIcon, onModifyGspPool, }: {
4
8
  account?: string;
5
9
  filterChainIds?: ChainId[];
6
10
  activeChainId: ChainId | undefined;
@@ -8,4 +12,5 @@ export default function MyCreated({ account, filterChainIds, activeChainId, hand
8
12
  operatePool: Partial<PoolOperateProps> | null;
9
13
  setOperatePool: (operate: Partial<PoolOperateProps> | null) => void;
10
14
  supportAMMIcon?: boolean;
15
+ onModifyGspPool?: OnModifyGspPool;
11
16
  }): JSX.Element;
@@ -1,6 +1,5 @@
1
- import { ChainId } from '@dodoex/api';
2
1
  export declare function usePoolListFilterChainId(): {
3
- activeChainId: ChainId | undefined;
4
- filterChainIds: ChainId[] | undefined;
2
+ activeChainId: any;
3
+ filterChainIds: any[] | undefined;
5
4
  handleChangeActiveChainId: (chainId: number | undefined) => void;
6
5
  };