@dodoex/widgets 3.19.0 → 3.20.0-alpha.1
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/LICENSE +674 -674
- package/README.md +70 -70
- package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
- package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
- package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/{helper-DUWFcWe6.js → helper-C__Hw6Nv.js} +1 -1
- package/dist/{helper-C1OYS4SC.cjs → helper-DHlCN-58.cjs} +1 -1
- package/dist/{index-BdB2BCQe.cjs → index-1E8fSg97.cjs} +1 -1
- package/dist/{index-ZV1FQySp.js → index-C3eOZR2q.js} +2 -2
- package/dist/{index-BGe7caLE.js → index-C4PCWK26.js} +1 -1
- package/dist/{index-XzRE8z_c.js → index-CEFnzcQR.js} +1 -1
- package/dist/{index-Cm0O00ow.cjs → index-CoDKjBJD.cjs} +2 -2
- package/dist/{index-CQl4nYsF.cjs → index-LN0r92OR.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- 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 +142 -6
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +143 -7
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +248 -12
- 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 +21 -1
- package/dist/types/hooks/useGraphQLRequests.d.ts +3 -2
- package/dist/types/utils/chains.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +28 -2
- 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 +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 +9 -3
- 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 +122 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +336 -8
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +156 -8
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +252 -8
- 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 +11 -5
- 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 +422 -9
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
- package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
- package/package.json +162 -162
|
@@ -1,10 +1,27 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { TokenInfo } from '../Token';
|
|
1
3
|
export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
2
4
|
account: string | undefined;
|
|
3
5
|
chainId?: number;
|
|
4
6
|
limit?: number;
|
|
5
7
|
}): {
|
|
6
|
-
orderList:
|
|
7
|
-
|
|
8
|
+
orderList: {
|
|
9
|
+
hash: string;
|
|
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>;
|
|
8
25
|
error: Error;
|
|
9
26
|
isError: true;
|
|
10
27
|
isPending: false;
|
|
@@ -14,8 +31,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
14
31
|
isSuccess: false;
|
|
15
32
|
isPlaceholderData: false;
|
|
16
33
|
status: "error";
|
|
17
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
18
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
34
|
+
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>>;
|
|
35
|
+
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>>;
|
|
19
36
|
hasNextPage: boolean;
|
|
20
37
|
hasPreviousPage: boolean;
|
|
21
38
|
isFetchNextPageError: boolean;
|
|
@@ -35,12 +52,27 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
35
52
|
isRefetching: boolean;
|
|
36
53
|
isStale: boolean;
|
|
37
54
|
isEnabled: boolean;
|
|
38
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
55
|
+
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>>;
|
|
39
56
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
40
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
57
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
41
58
|
} | {
|
|
42
|
-
orderList:
|
|
43
|
-
|
|
59
|
+
orderList: {
|
|
60
|
+
hash: string;
|
|
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>;
|
|
44
76
|
error: null;
|
|
45
77
|
isError: false;
|
|
46
78
|
isPending: false;
|
|
@@ -52,8 +84,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
52
84
|
isSuccess: true;
|
|
53
85
|
isPlaceholderData: false;
|
|
54
86
|
status: "success";
|
|
55
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
56
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
87
|
+
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>>;
|
|
88
|
+
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>>;
|
|
57
89
|
hasNextPage: boolean;
|
|
58
90
|
hasPreviousPage: boolean;
|
|
59
91
|
isFetchingNextPage: boolean;
|
|
@@ -71,7 +103,211 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
71
103
|
isRefetching: boolean;
|
|
72
104
|
isStale: boolean;
|
|
73
105
|
isEnabled: boolean;
|
|
74
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
106
|
+
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>>;
|
|
75
107
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
76
|
-
promise: Promise<import("@tanstack/react-query").InfiniteData<
|
|
108
|
+
promise: Promise<import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>>;
|
|
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>>;
|
|
77
313
|
};
|
|
@@ -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: number | undefined;
|
|
5
|
+
setSelectChainId: import("react").Dispatch<import("react").SetStateAction<number | undefined>>;
|
|
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: boolean;
|
|
16
|
+
insufficientBalance: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
18
|
approveTitle: string;
|
|
19
19
|
submitApprove: () => Promise<void>;
|
|
20
|
-
getMaxBalance: () =>
|
|
20
|
+
getMaxBalance: () => string;
|
|
21
21
|
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").
|
|
1
|
+
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").UseQueryResult<{
|
|
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,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { GraphQLRequests } from '@dodoex/api';
|
|
2
|
+
export declare const graphQLRequestsLocal: GraphQLRequests;
|
|
3
|
+
export declare function useGraphQLRequests(): GraphQLRequests;
|
|
@@ -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) => string;
|
|
@@ -7,6 +7,32 @@ export declare const usePoolPairList: ({ baseAddress, quoteAddress, poolAddress,
|
|
|
7
7
|
isMyPool?: boolean;
|
|
8
8
|
skip?: boolean;
|
|
9
9
|
}) => {
|
|
10
|
-
loading:
|
|
11
|
-
datas:
|
|
10
|
+
loading: boolean;
|
|
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
|
+
}[];
|
|
12
38
|
};
|
|
@@ -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) => string;
|
|
26
26
|
export declare const isBrowser: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TabMiningI } from '../../types';
|
|
2
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
2
3
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
3
4
|
miningItem: TabMiningI;
|
|
4
5
|
}): {
|
|
5
|
-
status:
|
|
6
|
+
status: MiningStatusE;
|
|
6
7
|
miningStatusList: {
|
|
7
8
|
status: MiningStatusE;
|
|
8
9
|
firstStartTime: BigNumber | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { MiningApi } from '@dodoex/api';
|
|
2
|
+
export declare const miningApi: MiningApi;
|
|
@@ -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: boolean;
|
|
10
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").MiningListQuery, 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<import("@dodoex/api/dist/types/gql/graphql").MiningListQuery, Error>>;
|
|
10
|
+
loading: boolean;
|
|
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<import("@dodoex/api/dist/types/gql/graphql").MyCreatedMiningListQuery, Error>>;
|
|
9
|
+
loading: boolean;
|
|
10
10
|
miningList: MyCreatedMiningI[];
|
|
11
11
|
};
|
|
@@ -3,9 +3,15 @@ import BigNumber from 'bignumber.js';
|
|
|
3
3
|
export declare function useRewardListAmount({ miningItem, }: {
|
|
4
4
|
miningItem: FetchMiningListItem;
|
|
5
5
|
}): {
|
|
6
|
-
data:
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
data: {
|
|
7
|
+
amount: BigNumber | null | undefined;
|
|
8
|
+
address: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
decimals: number;
|
|
11
|
+
usdPrice: string;
|
|
12
|
+
}[];
|
|
13
|
+
pending: boolean;
|
|
14
|
+
error: boolean;
|
|
9
15
|
totalReward: BigNumber;
|
|
10
16
|
totalRewardUSD: BigNumber;
|
|
11
17
|
refetch: () => void;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
1
2
|
import { FetchMiningListItem } from '../types';
|
|
2
3
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
3
4
|
miningItem: FetchMiningListItem;
|
|
4
5
|
}): {
|
|
5
|
-
status:
|
|
6
|
-
miningStatusList:
|
|
6
|
+
status: MiningStatusE;
|
|
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
|
+
}[];
|
|
7
13
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
export { ChainId } from '@dodoex/api';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated
|
|
4
5
|
*/
|
|
5
|
-
export declare const SUPPORTED_CHAINS: readonly [
|
|
6
|
+
export declare const SUPPORTED_CHAINS: readonly [ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.SEPOLIA, ChainId.TAIKO];
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated
|
|
8
9
|
*/
|