@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,27 +1,10 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from '../Token';
|
|
3
1
|
export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
4
2
|
account: string | undefined;
|
|
5
3
|
chainId?: number;
|
|
6
4
|
limit?: number;
|
|
7
5
|
}): {
|
|
8
|
-
orderList:
|
|
9
|
-
|
|
10
|
-
fromToken: TokenInfo;
|
|
11
|
-
toToken: TokenInfo;
|
|
12
|
-
fromAmount: BigNumber | null;
|
|
13
|
-
toAmount: string;
|
|
14
|
-
minAmount: string;
|
|
15
|
-
fromTokenPrice: string;
|
|
16
|
-
toTokenPrice: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
routeData: any;
|
|
19
|
-
safeTxHash: string | undefined;
|
|
20
|
-
safeTxUrl: string;
|
|
21
|
-
status: string;
|
|
22
|
-
transactionHash: string;
|
|
23
|
-
}[];
|
|
24
|
-
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
|
|
6
|
+
orderList: any;
|
|
7
|
+
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
25
8
|
error: Error;
|
|
26
9
|
isError: true;
|
|
27
10
|
isPending: false;
|
|
@@ -31,8 +14,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
31
14
|
isSuccess: false;
|
|
32
15
|
isPlaceholderData: false;
|
|
33
16
|
status: "error";
|
|
34
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
35
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
17
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
18
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
36
19
|
hasNextPage: boolean;
|
|
37
20
|
hasPreviousPage: boolean;
|
|
38
21
|
isFetchNextPageError: boolean;
|
|
@@ -52,27 +35,12 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
52
35
|
isRefetching: boolean;
|
|
53
36
|
isStale: boolean;
|
|
54
37
|
isEnabled: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
38
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
56
39
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
40
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
58
41
|
} | {
|
|
59
|
-
orderList:
|
|
60
|
-
|
|
61
|
-
fromToken: TokenInfo;
|
|
62
|
-
toToken: TokenInfo;
|
|
63
|
-
fromAmount: BigNumber | null;
|
|
64
|
-
toAmount: string;
|
|
65
|
-
minAmount: string;
|
|
66
|
-
fromTokenPrice: string;
|
|
67
|
-
toTokenPrice: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
routeData: any;
|
|
70
|
-
safeTxHash: string | undefined;
|
|
71
|
-
safeTxUrl: string;
|
|
72
|
-
status: string;
|
|
73
|
-
transactionHash: string;
|
|
74
|
-
}[];
|
|
75
|
-
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
|
|
42
|
+
orderList: any;
|
|
43
|
+
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
76
44
|
error: null;
|
|
77
45
|
isError: false;
|
|
78
46
|
isPending: false;
|
|
@@ -84,8 +52,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
84
52
|
isSuccess: true;
|
|
85
53
|
isPlaceholderData: false;
|
|
86
54
|
status: "success";
|
|
87
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
88
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
55
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
56
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
89
57
|
hasNextPage: boolean;
|
|
90
58
|
hasPreviousPage: boolean;
|
|
91
59
|
isFetchingNextPage: boolean;
|
|
@@ -103,211 +71,7 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
103
71
|
isRefetching: boolean;
|
|
104
72
|
isStale: boolean;
|
|
105
73
|
isEnabled: boolean;
|
|
106
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
74
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
107
75
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
108
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
109
|
-
} | {
|
|
110
|
-
orderList: {
|
|
111
|
-
hash: string;
|
|
112
|
-
fromToken: TokenInfo;
|
|
113
|
-
toToken: TokenInfo;
|
|
114
|
-
fromAmount: BigNumber | null;
|
|
115
|
-
toAmount: string;
|
|
116
|
-
minAmount: string;
|
|
117
|
-
fromTokenPrice: string;
|
|
118
|
-
toTokenPrice: string;
|
|
119
|
-
createdAt: string;
|
|
120
|
-
routeData: any;
|
|
121
|
-
safeTxHash: string | undefined;
|
|
122
|
-
safeTxUrl: string;
|
|
123
|
-
status: string;
|
|
124
|
-
transactionHash: string;
|
|
125
|
-
}[];
|
|
126
|
-
data: undefined;
|
|
127
|
-
error: Error;
|
|
128
|
-
isError: true;
|
|
129
|
-
isPending: false;
|
|
130
|
-
isLoading: false;
|
|
131
|
-
isLoadingError: true;
|
|
132
|
-
isRefetchError: false;
|
|
133
|
-
isFetchNextPageError: false;
|
|
134
|
-
isFetchPreviousPageError: false;
|
|
135
|
-
isSuccess: false;
|
|
136
|
-
isPlaceholderData: false;
|
|
137
|
-
status: "error";
|
|
138
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
139
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
140
|
-
hasNextPage: boolean;
|
|
141
|
-
hasPreviousPage: boolean;
|
|
142
|
-
isFetchingNextPage: boolean;
|
|
143
|
-
isFetchingPreviousPage: boolean;
|
|
144
|
-
dataUpdatedAt: number;
|
|
145
|
-
errorUpdatedAt: number;
|
|
146
|
-
failureCount: number;
|
|
147
|
-
failureReason: Error | null;
|
|
148
|
-
errorUpdateCount: number;
|
|
149
|
-
isFetched: boolean;
|
|
150
|
-
isFetchedAfterMount: boolean;
|
|
151
|
-
isFetching: boolean;
|
|
152
|
-
isInitialLoading: boolean;
|
|
153
|
-
isPaused: boolean;
|
|
154
|
-
isRefetching: boolean;
|
|
155
|
-
isStale: boolean;
|
|
156
|
-
isEnabled: boolean;
|
|
157
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
158
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
159
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
160
|
-
} | {
|
|
161
|
-
orderList: {
|
|
162
|
-
hash: string;
|
|
163
|
-
fromToken: TokenInfo;
|
|
164
|
-
toToken: TokenInfo;
|
|
165
|
-
fromAmount: BigNumber | null;
|
|
166
|
-
toAmount: string;
|
|
167
|
-
minAmount: string;
|
|
168
|
-
fromTokenPrice: string;
|
|
169
|
-
toTokenPrice: string;
|
|
170
|
-
createdAt: string;
|
|
171
|
-
routeData: any;
|
|
172
|
-
safeTxHash: string | undefined;
|
|
173
|
-
safeTxUrl: string;
|
|
174
|
-
status: string;
|
|
175
|
-
transactionHash: string;
|
|
176
|
-
}[];
|
|
177
|
-
data: undefined;
|
|
178
|
-
error: null;
|
|
179
|
-
isError: false;
|
|
180
|
-
isPending: true;
|
|
181
|
-
isLoading: true;
|
|
182
|
-
isLoadingError: false;
|
|
183
|
-
isRefetchError: false;
|
|
184
|
-
isFetchNextPageError: false;
|
|
185
|
-
isFetchPreviousPageError: false;
|
|
186
|
-
isSuccess: false;
|
|
187
|
-
isPlaceholderData: false;
|
|
188
|
-
status: "pending";
|
|
189
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
190
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
191
|
-
hasNextPage: boolean;
|
|
192
|
-
hasPreviousPage: boolean;
|
|
193
|
-
isFetchingNextPage: boolean;
|
|
194
|
-
isFetchingPreviousPage: boolean;
|
|
195
|
-
dataUpdatedAt: number;
|
|
196
|
-
errorUpdatedAt: number;
|
|
197
|
-
failureCount: number;
|
|
198
|
-
failureReason: Error | null;
|
|
199
|
-
errorUpdateCount: number;
|
|
200
|
-
isFetched: boolean;
|
|
201
|
-
isFetchedAfterMount: boolean;
|
|
202
|
-
isFetching: boolean;
|
|
203
|
-
isInitialLoading: boolean;
|
|
204
|
-
isPaused: boolean;
|
|
205
|
-
isRefetching: boolean;
|
|
206
|
-
isStale: boolean;
|
|
207
|
-
isEnabled: boolean;
|
|
208
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
209
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
210
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
211
|
-
} | {
|
|
212
|
-
orderList: {
|
|
213
|
-
hash: string;
|
|
214
|
-
fromToken: TokenInfo;
|
|
215
|
-
toToken: TokenInfo;
|
|
216
|
-
fromAmount: BigNumber | null;
|
|
217
|
-
toAmount: string;
|
|
218
|
-
minAmount: string;
|
|
219
|
-
fromTokenPrice: string;
|
|
220
|
-
toTokenPrice: string;
|
|
221
|
-
createdAt: string;
|
|
222
|
-
routeData: any;
|
|
223
|
-
safeTxHash: string | undefined;
|
|
224
|
-
safeTxUrl: string;
|
|
225
|
-
status: string;
|
|
226
|
-
transactionHash: string;
|
|
227
|
-
}[];
|
|
228
|
-
data: undefined;
|
|
229
|
-
error: null;
|
|
230
|
-
isError: false;
|
|
231
|
-
isPending: true;
|
|
232
|
-
isLoadingError: false;
|
|
233
|
-
isRefetchError: false;
|
|
234
|
-
isFetchNextPageError: false;
|
|
235
|
-
isFetchPreviousPageError: false;
|
|
236
|
-
isSuccess: false;
|
|
237
|
-
isPlaceholderData: false;
|
|
238
|
-
status: "pending";
|
|
239
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
240
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
241
|
-
hasNextPage: boolean;
|
|
242
|
-
hasPreviousPage: boolean;
|
|
243
|
-
isFetchingNextPage: boolean;
|
|
244
|
-
isFetchingPreviousPage: boolean;
|
|
245
|
-
dataUpdatedAt: number;
|
|
246
|
-
errorUpdatedAt: number;
|
|
247
|
-
failureCount: number;
|
|
248
|
-
failureReason: Error | null;
|
|
249
|
-
errorUpdateCount: number;
|
|
250
|
-
isFetched: boolean;
|
|
251
|
-
isFetchedAfterMount: boolean;
|
|
252
|
-
isFetching: boolean;
|
|
253
|
-
isLoading: boolean;
|
|
254
|
-
isInitialLoading: boolean;
|
|
255
|
-
isPaused: boolean;
|
|
256
|
-
isRefetching: boolean;
|
|
257
|
-
isStale: boolean;
|
|
258
|
-
isEnabled: boolean;
|
|
259
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
260
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
261
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
262
|
-
} | {
|
|
263
|
-
orderList: {
|
|
264
|
-
hash: string;
|
|
265
|
-
fromToken: TokenInfo;
|
|
266
|
-
toToken: TokenInfo;
|
|
267
|
-
fromAmount: BigNumber | null;
|
|
268
|
-
toAmount: string;
|
|
269
|
-
minAmount: string;
|
|
270
|
-
fromTokenPrice: string;
|
|
271
|
-
toTokenPrice: string;
|
|
272
|
-
createdAt: string;
|
|
273
|
-
routeData: any;
|
|
274
|
-
safeTxHash: string | undefined;
|
|
275
|
-
safeTxUrl: string;
|
|
276
|
-
status: string;
|
|
277
|
-
transactionHash: string;
|
|
278
|
-
}[];
|
|
279
|
-
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
|
|
280
|
-
isError: false;
|
|
281
|
-
error: null;
|
|
282
|
-
isPending: false;
|
|
283
|
-
isLoading: false;
|
|
284
|
-
isLoadingError: false;
|
|
285
|
-
isRefetchError: false;
|
|
286
|
-
isSuccess: true;
|
|
287
|
-
isPlaceholderData: true;
|
|
288
|
-
isFetchNextPageError: false;
|
|
289
|
-
isFetchPreviousPageError: false;
|
|
290
|
-
status: "success";
|
|
291
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
292
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
293
|
-
hasNextPage: boolean;
|
|
294
|
-
hasPreviousPage: boolean;
|
|
295
|
-
isFetchingNextPage: boolean;
|
|
296
|
-
isFetchingPreviousPage: boolean;
|
|
297
|
-
dataUpdatedAt: number;
|
|
298
|
-
errorUpdatedAt: number;
|
|
299
|
-
failureCount: number;
|
|
300
|
-
failureReason: Error | null;
|
|
301
|
-
errorUpdateCount: number;
|
|
302
|
-
isFetched: boolean;
|
|
303
|
-
isFetchedAfterMount: boolean;
|
|
304
|
-
isFetching: boolean;
|
|
305
|
-
isInitialLoading: boolean;
|
|
306
|
-
isPaused: boolean;
|
|
307
|
-
isRefetching: boolean;
|
|
308
|
-
isStale: boolean;
|
|
309
|
-
isEnabled: boolean;
|
|
310
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>, Error>>;
|
|
311
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
312
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
76
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<unknown, unknown>>;
|
|
313
77
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChainListItem } from '../../constants/chainList';
|
|
2
2
|
export declare function useSelectChainList(side?: 'from' | 'to'): {
|
|
3
3
|
chainList: ChainListItem[];
|
|
4
|
-
selectChainId:
|
|
5
|
-
setSelectChainId: import("react").Dispatch<
|
|
4
|
+
selectChainId: any;
|
|
5
|
+
setSelectChainId: import("react").Dispatch<any>;
|
|
6
6
|
};
|
|
@@ -12,10 +12,10 @@ export declare function useTokenStatus(token: TokenInfo | undefined | null, { am
|
|
|
12
12
|
isGetApproveLoading: boolean;
|
|
13
13
|
needApprove: boolean;
|
|
14
14
|
needReset: boolean | undefined;
|
|
15
|
-
needShowTokenStatusButton:
|
|
16
|
-
insufficientBalance:
|
|
17
|
-
loading:
|
|
15
|
+
needShowTokenStatusButton: any;
|
|
16
|
+
insufficientBalance: any;
|
|
17
|
+
loading: false;
|
|
18
18
|
approveTitle: string;
|
|
19
19
|
submitApprove: () => Promise<void>;
|
|
20
|
-
getMaxBalance: () =>
|
|
20
|
+
getMaxBalance: () => any;
|
|
21
21
|
};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").
|
|
2
|
-
symbol: string;
|
|
3
|
-
address: string;
|
|
4
|
-
name: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
balance: BigNumber;
|
|
7
|
-
allowance: BigNumber;
|
|
8
|
-
account: string;
|
|
9
|
-
spender: string | undefined;
|
|
10
|
-
chainId: number;
|
|
11
|
-
} | {
|
|
12
|
-
address: string;
|
|
13
|
-
decimals: number;
|
|
14
|
-
symbol: string;
|
|
15
|
-
name: string;
|
|
16
|
-
balance: BigNumber;
|
|
17
|
-
spender: string | undefined;
|
|
18
|
-
allowance: BigNumber;
|
|
19
|
-
chainId: number;
|
|
20
|
-
account?: undefined;
|
|
21
|
-
} | null, Error>;
|
|
1
|
+
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
3
|
-
export declare function useGraphQLRequests(): GraphQLRequests;
|
|
1
|
+
export declare const graphQLRequestsLocal: any;
|
|
2
|
+
export declare function useGraphQLRequests(): any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare const getPlatformId: (chainId: ChainId) =>
|
|
2
|
+
export declare const getPlatformId: (chainId: ChainId) => any;
|
|
@@ -7,32 +7,6 @@ export declare const usePoolPairList: ({ baseAddress, quoteAddress, poolAddress,
|
|
|
7
7
|
isMyPool?: boolean;
|
|
8
8
|
skip?: boolean;
|
|
9
9
|
}) => {
|
|
10
|
-
loading:
|
|
11
|
-
datas:
|
|
12
|
-
id: string;
|
|
13
|
-
type: string;
|
|
14
|
-
creator: any;
|
|
15
|
-
lpFeeRate: any;
|
|
16
|
-
i?: any | null;
|
|
17
|
-
k?: any | null;
|
|
18
|
-
baseReserve: any;
|
|
19
|
-
quoteReserve: any;
|
|
20
|
-
createdAtTimestamp: any;
|
|
21
|
-
lastTradePrice: any;
|
|
22
|
-
volumeUSD: any;
|
|
23
|
-
baseToken: {
|
|
24
|
-
id: string;
|
|
25
|
-
symbol: string;
|
|
26
|
-
name: string;
|
|
27
|
-
decimals: any;
|
|
28
|
-
usdPrice: any;
|
|
29
|
-
};
|
|
30
|
-
quoteToken: {
|
|
31
|
-
id: string;
|
|
32
|
-
symbol: string;
|
|
33
|
-
name: string;
|
|
34
|
-
decimals: any;
|
|
35
|
-
usdPrice: any;
|
|
36
|
-
};
|
|
37
|
-
}[];
|
|
10
|
+
loading: false;
|
|
11
|
+
datas: ExcludeNone<any>;
|
|
38
12
|
};
|
|
@@ -22,5 +22,5 @@ export declare function isValidRewardInfo({ reward, now, }: {
|
|
|
22
22
|
totalIsError: boolean;
|
|
23
23
|
isInvalid: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const getWrappedTokenAddress: (addressOrigin: string, chainId: ChainId) =>
|
|
25
|
+
export declare const getWrappedTokenAddress: (addressOrigin: string, chainId: ChainId) => any;
|
|
26
26
|
export declare const isBrowser: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TabMiningI } from '../../types';
|
|
2
|
-
import { MiningStatusE } from '@dodoex/api';
|
|
3
2
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
4
3
|
miningItem: TabMiningI;
|
|
5
4
|
}): {
|
|
6
|
-
status:
|
|
5
|
+
status: any;
|
|
7
6
|
miningStatusList: {
|
|
8
7
|
status: MiningStatusE;
|
|
9
8
|
firstStartTime: BigNumber | undefined;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const miningApi: MiningApi;
|
|
1
|
+
export declare const miningApi: any;
|
|
@@ -6,6 +6,6 @@ export declare function useMiningItem({ miningContractAddress, poolAddress, acco
|
|
|
6
6
|
}): {
|
|
7
7
|
miningItem: import("../types").TabMiningI | undefined;
|
|
8
8
|
error: Error | null;
|
|
9
|
-
loading:
|
|
10
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
9
|
+
loading: false;
|
|
10
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<unknown, Error>>;
|
|
11
11
|
};
|
|
@@ -6,7 +6,7 @@ export declare function useMiningList({ isEnded, searchText, account, chainIds,
|
|
|
6
6
|
chainIds: Array<number> | null;
|
|
7
7
|
}): {
|
|
8
8
|
error: Error | null;
|
|
9
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
10
|
-
loading:
|
|
9
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
10
|
+
loading: false;
|
|
11
11
|
miningList: TabMiningI[];
|
|
12
12
|
};
|
|
@@ -5,7 +5,7 @@ export declare function useMyCreatedMiningList({ searchText, account, chainIds,
|
|
|
5
5
|
chainIds: Array<number> | null;
|
|
6
6
|
}): {
|
|
7
7
|
error: Error | null;
|
|
8
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
9
|
-
loading:
|
|
8
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
9
|
+
loading: false;
|
|
10
10
|
miningList: MyCreatedMiningI[];
|
|
11
11
|
};
|
|
@@ -3,15 +3,9 @@ import BigNumber from 'bignumber.js';
|
|
|
3
3
|
export declare function useRewardListAmount({ miningItem, }: {
|
|
4
4
|
miningItem: FetchMiningListItem;
|
|
5
5
|
}): {
|
|
6
|
-
data:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimals: number;
|
|
11
|
-
usdPrice: string;
|
|
12
|
-
}[];
|
|
13
|
-
pending: boolean;
|
|
14
|
-
error: boolean;
|
|
6
|
+
data: any;
|
|
7
|
+
pending: any;
|
|
8
|
+
error: any;
|
|
15
9
|
totalReward: BigNumber;
|
|
16
10
|
totalRewardUSD: BigNumber;
|
|
17
11
|
refetch: () => void;
|
|
@@ -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:
|
|
7
|
-
miningStatusList:
|
|
8
|
-
status: import("@dodoex/api/dist/types/services/mining/utils").MiningStatusE;
|
|
9
|
-
firstStartTime: BigNumber | undefined;
|
|
10
|
-
lastEndTime: BigNumber | undefined;
|
|
11
|
-
currentTime: BigNumber;
|
|
12
|
-
}[];
|
|
5
|
+
status: any;
|
|
6
|
+
miningStatusList: any[];
|
|
13
7
|
};
|
|
@@ -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 [
|
|
5
|
+
export declare const SUPPORTED_CHAINS: readonly [any, any, any, any];
|
|
7
6
|
/**
|
|
8
7
|
* @deprecated
|
|
9
8
|
*/
|