@dodoex/widgets 3.9.0 → 3.10.0-stable.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.
- package/dist/{helper-GJHB4oq8.cjs → helper-B2Q89SzA.cjs} +1 -1
- package/dist/{helper-sBrBH-H_.js → helper-BvBWZ4Tw.js} +1 -1
- package/dist/{index-DKnPJ0nB.cjs → index-BLv_p4Xx.cjs} +2 -2
- package/dist/index-BNGWM8Q2.cjs +31 -0
- package/dist/index-BwZ52ioH.js +31 -0
- package/dist/{index-CuS8svoM.js → index-CI4GIzjg.js} +1 -1
- package/dist/{index-CcMfM2YS.cjs → index-DMmSVVoT.cjs} +5 -5
- package/dist/{index-C8rp6R1p.js → index-tuNXjjrO.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +2 -1
- package/dist/types/components/WidgetContainer.d.ts +2 -1
- package/dist/types/constants/api.d.ts +7 -7
- package/dist/types/constants/tokenList.d.ts +17 -4
- package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +2 -2
- package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +1 -1
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +7 -7
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +7 -7
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +99 -22
- package/dist/types/hooks/Token/useSelectChainList.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenStatus.d.ts +3 -3
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -1
- package/dist/types/hooks/useGraphQLRequests.d.ts +3 -2
- package/dist/types/utils/chains.d.ts +1 -1
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +27 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/helper.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +8 -2
- package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +7 -7
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +192 -12
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +42 -12
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +122 -12
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +43 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +10 -4
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +6 -6
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +10 -10
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +264 -13
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
- package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
- package/package.json +5 -5
- package/dist/index-DOzaJQ79.js +0 -31
- package/dist/index-pvGJ8Vpc.cjs +0 -31
|
@@ -3,8 +3,44 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
3
3
|
address: string | undefined;
|
|
4
4
|
chainId: ChainId | undefined;
|
|
5
5
|
}): {
|
|
6
|
-
dashboard:
|
|
7
|
-
|
|
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;
|
|
@@ -26,11 +62,47 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
26
62
|
isPlaceholderData: boolean;
|
|
27
63
|
isRefetching: boolean;
|
|
28
64
|
isStale: boolean;
|
|
29
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
65
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
30
66
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
31
67
|
} | {
|
|
32
|
-
dashboard:
|
|
33
|
-
|
|
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;
|
|
34
106
|
error: null;
|
|
35
107
|
isError: false;
|
|
36
108
|
isPending: false;
|
|
@@ -52,10 +124,46 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
52
124
|
isPlaceholderData: boolean;
|
|
53
125
|
isRefetching: boolean;
|
|
54
126
|
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
127
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
56
128
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
129
|
} | {
|
|
58
|
-
dashboard:
|
|
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;
|
|
59
167
|
data: undefined;
|
|
60
168
|
error: Error;
|
|
61
169
|
isError: true;
|
|
@@ -78,10 +186,46 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
78
186
|
isPlaceholderData: boolean;
|
|
79
187
|
isRefetching: boolean;
|
|
80
188
|
isStale: boolean;
|
|
81
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
189
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
82
190
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
83
191
|
} | {
|
|
84
|
-
dashboard:
|
|
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;
|
|
85
229
|
data: undefined;
|
|
86
230
|
error: null;
|
|
87
231
|
isError: false;
|
|
@@ -104,10 +248,46 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
104
248
|
isPlaceholderData: boolean;
|
|
105
249
|
isRefetching: boolean;
|
|
106
250
|
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
251
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
108
252
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
253
|
} | {
|
|
110
|
-
dashboard:
|
|
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;
|
|
111
291
|
data: undefined;
|
|
112
292
|
error: null;
|
|
113
293
|
isError: false;
|
|
@@ -130,6 +310,6 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
130
310
|
isPlaceholderData: boolean;
|
|
131
311
|
isRefetching: boolean;
|
|
132
312
|
isStale: boolean;
|
|
133
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
313
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
134
314
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
135
315
|
};
|
|
@@ -4,8 +4,14 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
4
4
|
chainId: ChainId | undefined;
|
|
5
5
|
day?: number;
|
|
6
6
|
}): {
|
|
7
|
-
dayDataList:
|
|
8
|
-
|
|
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;
|
|
@@ -27,11 +33,17 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
27
33
|
isPlaceholderData: boolean;
|
|
28
34
|
isRefetching: boolean;
|
|
29
35
|
isStale: boolean;
|
|
30
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
36
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
31
37
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
32
38
|
} | {
|
|
33
|
-
dayDataList:
|
|
34
|
-
|
|
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;
|
|
35
47
|
error: null;
|
|
36
48
|
isError: false;
|
|
37
49
|
isPending: false;
|
|
@@ -53,10 +65,16 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
53
65
|
isPlaceholderData: boolean;
|
|
54
66
|
isRefetching: boolean;
|
|
55
67
|
isStale: boolean;
|
|
56
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
68
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
57
69
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
58
70
|
} | {
|
|
59
|
-
dayDataList:
|
|
71
|
+
dayDataList: {
|
|
72
|
+
volume: number;
|
|
73
|
+
fee: number;
|
|
74
|
+
traders: number;
|
|
75
|
+
date: number;
|
|
76
|
+
tvl: number;
|
|
77
|
+
}[];
|
|
60
78
|
data: undefined;
|
|
61
79
|
error: Error;
|
|
62
80
|
isError: true;
|
|
@@ -79,10 +97,16 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
79
97
|
isPlaceholderData: boolean;
|
|
80
98
|
isRefetching: boolean;
|
|
81
99
|
isStale: boolean;
|
|
82
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
100
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
83
101
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
84
102
|
} | {
|
|
85
|
-
dayDataList:
|
|
103
|
+
dayDataList: {
|
|
104
|
+
volume: number;
|
|
105
|
+
fee: number;
|
|
106
|
+
traders: number;
|
|
107
|
+
date: number;
|
|
108
|
+
tvl: number;
|
|
109
|
+
}[];
|
|
86
110
|
data: undefined;
|
|
87
111
|
error: null;
|
|
88
112
|
isError: false;
|
|
@@ -105,10 +129,16 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
105
129
|
isPlaceholderData: boolean;
|
|
106
130
|
isRefetching: boolean;
|
|
107
131
|
isStale: boolean;
|
|
108
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
132
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
109
133
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
110
134
|
} | {
|
|
111
|
-
dayDataList:
|
|
135
|
+
dayDataList: {
|
|
136
|
+
volume: number;
|
|
137
|
+
fee: number;
|
|
138
|
+
traders: number;
|
|
139
|
+
date: number;
|
|
140
|
+
tvl: number;
|
|
141
|
+
}[];
|
|
112
142
|
data: undefined;
|
|
113
143
|
error: null;
|
|
114
144
|
isError: false;
|
|
@@ -131,6 +161,6 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
131
161
|
isPlaceholderData: boolean;
|
|
132
162
|
isRefetching: boolean;
|
|
133
163
|
isStale: boolean;
|
|
134
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
164
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
135
165
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
136
166
|
};
|
|
@@ -3,8 +3,30 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
3
3
|
address: string | undefined;
|
|
4
4
|
first?: number;
|
|
5
5
|
}): {
|
|
6
|
-
swapList:
|
|
7
|
-
|
|
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;
|
|
8
30
|
error: Error;
|
|
9
31
|
isError: true;
|
|
10
32
|
isPending: false;
|
|
@@ -26,11 +48,33 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
26
48
|
isPlaceholderData: boolean;
|
|
27
49
|
isRefetching: boolean;
|
|
28
50
|
isStale: boolean;
|
|
29
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
51
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
30
52
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
31
53
|
} | {
|
|
32
|
-
swapList:
|
|
33
|
-
|
|
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;
|
|
34
78
|
error: null;
|
|
35
79
|
isError: false;
|
|
36
80
|
isPending: false;
|
|
@@ -52,10 +96,32 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
52
96
|
isPlaceholderData: boolean;
|
|
53
97
|
isRefetching: boolean;
|
|
54
98
|
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
99
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
56
100
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
101
|
} | {
|
|
58
|
-
swapList:
|
|
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;
|
|
59
125
|
data: undefined;
|
|
60
126
|
error: Error;
|
|
61
127
|
isError: true;
|
|
@@ -78,10 +144,32 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
78
144
|
isPlaceholderData: boolean;
|
|
79
145
|
isRefetching: boolean;
|
|
80
146
|
isStale: boolean;
|
|
81
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
147
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
82
148
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
83
149
|
} | {
|
|
84
|
-
swapList:
|
|
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;
|
|
85
173
|
data: undefined;
|
|
86
174
|
error: null;
|
|
87
175
|
isError: false;
|
|
@@ -104,10 +192,32 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
104
192
|
isPlaceholderData: boolean;
|
|
105
193
|
isRefetching: boolean;
|
|
106
194
|
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
195
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
108
196
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
197
|
} | {
|
|
110
|
-
swapList:
|
|
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;
|
|
111
221
|
data: undefined;
|
|
112
222
|
error: null;
|
|
113
223
|
isError: false;
|
|
@@ -130,6 +240,6 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
130
240
|
isPlaceholderData: boolean;
|
|
131
241
|
isRefetching: boolean;
|
|
132
242
|
isStale: boolean;
|
|
133
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
243
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
134
244
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
135
245
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
export declare function usePoolListFilterChainId(): {
|
|
2
|
-
activeChainId:
|
|
3
|
-
filterChainIds:
|
|
3
|
+
activeChainId: ChainId | undefined;
|
|
4
|
+
filterChainIds: ChainId[] | undefined;
|
|
4
5
|
handleChangeActiveChainId: (chainId: number | undefined) => void;
|
|
5
6
|
};
|
|
@@ -12,7 +12,49 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
|
|
|
12
12
|
filterTokens: TokenInfo[];
|
|
13
13
|
filterASymbol: string;
|
|
14
14
|
filterBSymbol: string;
|
|
15
|
-
filterAddressLqList:
|
|
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;
|
|
16
58
|
handleDeleteToken: (token: TokenInfo) => void;
|
|
17
59
|
handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
|
|
18
60
|
handleChangeFilterAddress: (lqList: FetchLiquidityListLqList) => void;
|
|
@@ -29,16 +29,22 @@ 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<
|
|
32
|
+
amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
33
|
+
baseReserve: BigNumber;
|
|
34
|
+
quoteReserve: BigNumber;
|
|
35
|
+
} | null, Error>>;
|
|
33
36
|
amountCheckedDisabled: boolean;
|
|
34
|
-
midPrice:
|
|
37
|
+
midPrice: BigNumber | undefined;
|
|
35
38
|
uniV2Pair: {
|
|
36
39
|
isRearTokenA: boolean;
|
|
37
40
|
pair: import("@uniswap/v2-sdk").Pair | null;
|
|
38
41
|
price: BigNumber | undefined;
|
|
39
42
|
invertedPrice: BigNumber | undefined;
|
|
40
|
-
reserveQuery: import("@tanstack/react-query").UseQueryResult<
|
|
41
|
-
|
|
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>;
|
|
42
48
|
liquidityMinted: BigNumber | undefined;
|
|
43
49
|
poolTokenPercentage: BigNumber | undefined;
|
|
44
50
|
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:
|
|
16
|
-
insufficientBalance:
|
|
15
|
+
needShowTokenStatusButton: boolean;
|
|
16
|
+
insufficientBalance: boolean;
|
|
17
17
|
loading: boolean;
|
|
18
18
|
approveTitle: string;
|
|
19
19
|
submitApprove: () => Promise<void>;
|
|
20
|
-
getMaxBalance: () =>
|
|
20
|
+
getMaxBalance: () => string;
|
|
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:
|
|
29
|
-
insufficientBalance:
|
|
28
|
+
needShowTokenStatusButton: boolean;
|
|
29
|
+
insufficientBalance: boolean;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
approveTitle: string;
|
|
32
32
|
submitApprove: () => Promise<void>;
|
|
33
|
-
getMaxBalance: () =>
|
|
33
|
+
getMaxBalance: () => string;
|
|
34
34
|
};
|
|
35
35
|
};
|