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