@dodoex/widgets 3.19.0 → 3.20.0-alpha.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/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/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/{helper-C1OYS4SC.cjs → helper-BjLrmjzq.cjs} +1 -1
- package/dist/{helper-DUWFcWe6.js → helper-BokybIZ1.js} +1 -1
- package/dist/{index-BdB2BCQe.cjs → index-BW38-BRn.cjs} +1 -1
- package/dist/{index-BGe7caLE.js → index-CA2kCSB4.js} +1 -1
- package/dist/index-DZ6Jwgca.cjs +14 -0
- package/dist/{index-XzRE8z_c.js → index-MV36Ujd8.js} +1 -1
- package/dist/{index-CQl4nYsF.cjs → index-OBosq5oX.cjs} +1 -1
- package/dist/index-SUoF0O-Y.js +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/Widget/index.d.ts +40 -0
- 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 +4 -2
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +6 -1
- package/dist/types/hooks/Submission/types.d.ts +1 -0
- 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 +3 -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/index.d.ts +1 -0
- 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/components/LpFeeRewardBadge.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBanner.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/useClaimLpFeeRewardSubmit.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +44 -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 +428 -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 +161 -162
- package/dist/index-Cm0O00ow.cjs +0 -14
- package/dist/index-ZV1FQySp.js +0 -14
|
@@ -10,7 +10,7 @@ export declare function useForecastSlippageList({ fromToken, toToken, }: {
|
|
|
10
10
|
fromToken: TokenInfo | undefined | null;
|
|
11
11
|
toToken: TokenInfo | undefined | null;
|
|
12
12
|
}): {
|
|
13
|
-
data:
|
|
13
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
14
14
|
error: Error;
|
|
15
15
|
isError: true;
|
|
16
16
|
isPending: false;
|
|
@@ -33,9 +33,9 @@ export declare function useForecastSlippageList({ fromToken, toToken, }: {
|
|
|
33
33
|
isRefetching: boolean;
|
|
34
34
|
isStale: boolean;
|
|
35
35
|
isEnabled: boolean;
|
|
36
|
-
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").FetchErc20ForecastSlippageQuery, Error>>;
|
|
37
37
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
38
|
-
promise: Promise<
|
|
38
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
39
39
|
slippageData: {
|
|
40
40
|
recommendSlippage?: undefined;
|
|
41
41
|
slippageList?: undefined;
|
|
@@ -44,7 +44,7 @@ export declare function useForecastSlippageList({ fromToken, toToken, }: {
|
|
|
44
44
|
slippageList: ForecastSlippageListItem[];
|
|
45
45
|
};
|
|
46
46
|
} | {
|
|
47
|
-
data:
|
|
47
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
48
48
|
error: null;
|
|
49
49
|
isError: false;
|
|
50
50
|
isPending: false;
|
|
@@ -67,9 +67,145 @@ export declare function useForecastSlippageList({ fromToken, toToken, }: {
|
|
|
67
67
|
isRefetching: boolean;
|
|
68
68
|
isStale: boolean;
|
|
69
69
|
isEnabled: boolean;
|
|
70
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
70
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
71
71
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
72
|
-
promise: Promise<
|
|
72
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
73
|
+
slippageData: {
|
|
74
|
+
recommendSlippage?: undefined;
|
|
75
|
+
slippageList?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
recommendSlippage: ForecastSlippageListItem | undefined;
|
|
78
|
+
slippageList: ForecastSlippageListItem[];
|
|
79
|
+
};
|
|
80
|
+
} | {
|
|
81
|
+
data: undefined;
|
|
82
|
+
error: Error;
|
|
83
|
+
isError: true;
|
|
84
|
+
isPending: false;
|
|
85
|
+
isLoading: false;
|
|
86
|
+
isLoadingError: true;
|
|
87
|
+
isRefetchError: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
isPlaceholderData: false;
|
|
90
|
+
status: "error";
|
|
91
|
+
dataUpdatedAt: number;
|
|
92
|
+
errorUpdatedAt: number;
|
|
93
|
+
failureCount: number;
|
|
94
|
+
failureReason: Error | null;
|
|
95
|
+
errorUpdateCount: number;
|
|
96
|
+
isFetched: boolean;
|
|
97
|
+
isFetchedAfterMount: boolean;
|
|
98
|
+
isFetching: boolean;
|
|
99
|
+
isInitialLoading: boolean;
|
|
100
|
+
isPaused: boolean;
|
|
101
|
+
isRefetching: boolean;
|
|
102
|
+
isStale: boolean;
|
|
103
|
+
isEnabled: boolean;
|
|
104
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
105
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
106
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
107
|
+
slippageData: {
|
|
108
|
+
recommendSlippage?: undefined;
|
|
109
|
+
slippageList?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
recommendSlippage: ForecastSlippageListItem | undefined;
|
|
112
|
+
slippageList: ForecastSlippageListItem[];
|
|
113
|
+
};
|
|
114
|
+
} | {
|
|
115
|
+
data: undefined;
|
|
116
|
+
error: null;
|
|
117
|
+
isError: false;
|
|
118
|
+
isPending: true;
|
|
119
|
+
isLoading: true;
|
|
120
|
+
isLoadingError: false;
|
|
121
|
+
isRefetchError: false;
|
|
122
|
+
isSuccess: false;
|
|
123
|
+
isPlaceholderData: false;
|
|
124
|
+
status: "pending";
|
|
125
|
+
dataUpdatedAt: number;
|
|
126
|
+
errorUpdatedAt: number;
|
|
127
|
+
failureCount: number;
|
|
128
|
+
failureReason: Error | null;
|
|
129
|
+
errorUpdateCount: number;
|
|
130
|
+
isFetched: boolean;
|
|
131
|
+
isFetchedAfterMount: boolean;
|
|
132
|
+
isFetching: boolean;
|
|
133
|
+
isInitialLoading: boolean;
|
|
134
|
+
isPaused: boolean;
|
|
135
|
+
isRefetching: boolean;
|
|
136
|
+
isStale: boolean;
|
|
137
|
+
isEnabled: boolean;
|
|
138
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
139
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
140
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
141
|
+
slippageData: {
|
|
142
|
+
recommendSlippage?: undefined;
|
|
143
|
+
slippageList?: undefined;
|
|
144
|
+
} | {
|
|
145
|
+
recommendSlippage: ForecastSlippageListItem | undefined;
|
|
146
|
+
slippageList: ForecastSlippageListItem[];
|
|
147
|
+
};
|
|
148
|
+
} | {
|
|
149
|
+
data: undefined;
|
|
150
|
+
error: null;
|
|
151
|
+
isError: false;
|
|
152
|
+
isPending: true;
|
|
153
|
+
isLoadingError: false;
|
|
154
|
+
isRefetchError: false;
|
|
155
|
+
isSuccess: false;
|
|
156
|
+
isPlaceholderData: false;
|
|
157
|
+
status: "pending";
|
|
158
|
+
dataUpdatedAt: number;
|
|
159
|
+
errorUpdatedAt: number;
|
|
160
|
+
failureCount: number;
|
|
161
|
+
failureReason: Error | null;
|
|
162
|
+
errorUpdateCount: number;
|
|
163
|
+
isFetched: boolean;
|
|
164
|
+
isFetchedAfterMount: boolean;
|
|
165
|
+
isFetching: boolean;
|
|
166
|
+
isLoading: boolean;
|
|
167
|
+
isInitialLoading: boolean;
|
|
168
|
+
isPaused: boolean;
|
|
169
|
+
isRefetching: boolean;
|
|
170
|
+
isStale: boolean;
|
|
171
|
+
isEnabled: boolean;
|
|
172
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
173
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
174
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
175
|
+
slippageData: {
|
|
176
|
+
recommendSlippage?: undefined;
|
|
177
|
+
slippageList?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
recommendSlippage: ForecastSlippageListItem | undefined;
|
|
180
|
+
slippageList: ForecastSlippageListItem[];
|
|
181
|
+
};
|
|
182
|
+
} | {
|
|
183
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
184
|
+
isError: false;
|
|
185
|
+
error: null;
|
|
186
|
+
isPending: false;
|
|
187
|
+
isLoading: false;
|
|
188
|
+
isLoadingError: false;
|
|
189
|
+
isRefetchError: false;
|
|
190
|
+
isSuccess: true;
|
|
191
|
+
isPlaceholderData: true;
|
|
192
|
+
status: "success";
|
|
193
|
+
dataUpdatedAt: number;
|
|
194
|
+
errorUpdatedAt: number;
|
|
195
|
+
failureCount: number;
|
|
196
|
+
failureReason: Error | null;
|
|
197
|
+
errorUpdateCount: number;
|
|
198
|
+
isFetched: boolean;
|
|
199
|
+
isFetchedAfterMount: boolean;
|
|
200
|
+
isFetching: boolean;
|
|
201
|
+
isInitialLoading: boolean;
|
|
202
|
+
isPaused: boolean;
|
|
203
|
+
isRefetching: boolean;
|
|
204
|
+
isStale: boolean;
|
|
205
|
+
isEnabled: boolean;
|
|
206
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
207
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
208
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
73
209
|
slippageData: {
|
|
74
210
|
recommendSlippage?: undefined;
|
|
75
211
|
slippageList?: undefined;
|
|
@@ -8,7 +8,7 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
8
8
|
handleSlippageChange: (newItem: Pick<import("./useSwapSettingStore").CustomSwapPairSlippage, "slippage" | "recommend" | "disabled" | "deleted">) => void;
|
|
9
9
|
forecastSlippage: number | undefined;
|
|
10
10
|
forecastSlippageQuery: {
|
|
11
|
-
data:
|
|
11
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
12
12
|
error: Error;
|
|
13
13
|
isError: true;
|
|
14
14
|
isPending: false;
|
|
@@ -31,9 +31,9 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
31
31
|
isRefetching: boolean;
|
|
32
32
|
isStale: boolean;
|
|
33
33
|
isEnabled: boolean;
|
|
34
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
34
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
35
35
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
36
|
-
promise: Promise<
|
|
36
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
37
37
|
slippageData: {
|
|
38
38
|
recommendSlippage?: undefined;
|
|
39
39
|
slippageList?: undefined;
|
|
@@ -42,7 +42,7 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
42
42
|
slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
|
|
43
43
|
};
|
|
44
44
|
} | {
|
|
45
|
-
data:
|
|
45
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
46
46
|
error: null;
|
|
47
47
|
isError: false;
|
|
48
48
|
isPending: false;
|
|
@@ -65,9 +65,145 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
65
65
|
isRefetching: boolean;
|
|
66
66
|
isStale: boolean;
|
|
67
67
|
isEnabled: boolean;
|
|
68
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
68
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
69
69
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
70
|
-
promise: Promise<
|
|
70
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
71
|
+
slippageData: {
|
|
72
|
+
recommendSlippage?: undefined;
|
|
73
|
+
slippageList?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
|
|
76
|
+
slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
data: undefined;
|
|
80
|
+
error: Error;
|
|
81
|
+
isError: true;
|
|
82
|
+
isPending: false;
|
|
83
|
+
isLoading: false;
|
|
84
|
+
isLoadingError: true;
|
|
85
|
+
isRefetchError: false;
|
|
86
|
+
isSuccess: false;
|
|
87
|
+
isPlaceholderData: false;
|
|
88
|
+
status: "error";
|
|
89
|
+
dataUpdatedAt: number;
|
|
90
|
+
errorUpdatedAt: number;
|
|
91
|
+
failureCount: number;
|
|
92
|
+
failureReason: Error | null;
|
|
93
|
+
errorUpdateCount: number;
|
|
94
|
+
isFetched: boolean;
|
|
95
|
+
isFetchedAfterMount: boolean;
|
|
96
|
+
isFetching: boolean;
|
|
97
|
+
isInitialLoading: boolean;
|
|
98
|
+
isPaused: boolean;
|
|
99
|
+
isRefetching: boolean;
|
|
100
|
+
isStale: boolean;
|
|
101
|
+
isEnabled: boolean;
|
|
102
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
103
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
104
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
105
|
+
slippageData: {
|
|
106
|
+
recommendSlippage?: undefined;
|
|
107
|
+
slippageList?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
|
|
110
|
+
slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
data: undefined;
|
|
114
|
+
error: null;
|
|
115
|
+
isError: false;
|
|
116
|
+
isPending: true;
|
|
117
|
+
isLoading: true;
|
|
118
|
+
isLoadingError: false;
|
|
119
|
+
isRefetchError: false;
|
|
120
|
+
isSuccess: false;
|
|
121
|
+
isPlaceholderData: false;
|
|
122
|
+
status: "pending";
|
|
123
|
+
dataUpdatedAt: number;
|
|
124
|
+
errorUpdatedAt: number;
|
|
125
|
+
failureCount: number;
|
|
126
|
+
failureReason: Error | null;
|
|
127
|
+
errorUpdateCount: number;
|
|
128
|
+
isFetched: boolean;
|
|
129
|
+
isFetchedAfterMount: boolean;
|
|
130
|
+
isFetching: boolean;
|
|
131
|
+
isInitialLoading: boolean;
|
|
132
|
+
isPaused: boolean;
|
|
133
|
+
isRefetching: boolean;
|
|
134
|
+
isStale: boolean;
|
|
135
|
+
isEnabled: boolean;
|
|
136
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
137
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
138
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
139
|
+
slippageData: {
|
|
140
|
+
recommendSlippage?: undefined;
|
|
141
|
+
slippageList?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
|
|
144
|
+
slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
|
|
145
|
+
};
|
|
146
|
+
} | {
|
|
147
|
+
data: undefined;
|
|
148
|
+
error: null;
|
|
149
|
+
isError: false;
|
|
150
|
+
isPending: true;
|
|
151
|
+
isLoadingError: false;
|
|
152
|
+
isRefetchError: false;
|
|
153
|
+
isSuccess: false;
|
|
154
|
+
isPlaceholderData: false;
|
|
155
|
+
status: "pending";
|
|
156
|
+
dataUpdatedAt: number;
|
|
157
|
+
errorUpdatedAt: number;
|
|
158
|
+
failureCount: number;
|
|
159
|
+
failureReason: Error | null;
|
|
160
|
+
errorUpdateCount: number;
|
|
161
|
+
isFetched: boolean;
|
|
162
|
+
isFetchedAfterMount: boolean;
|
|
163
|
+
isFetching: boolean;
|
|
164
|
+
isLoading: boolean;
|
|
165
|
+
isInitialLoading: boolean;
|
|
166
|
+
isPaused: boolean;
|
|
167
|
+
isRefetching: boolean;
|
|
168
|
+
isStale: boolean;
|
|
169
|
+
isEnabled: boolean;
|
|
170
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
171
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
172
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
173
|
+
slippageData: {
|
|
174
|
+
recommendSlippage?: undefined;
|
|
175
|
+
slippageList?: undefined;
|
|
176
|
+
} | {
|
|
177
|
+
recommendSlippage: import("./useForecastSlippageList").ForecastSlippageListItem | undefined;
|
|
178
|
+
slippageList: import("./useForecastSlippageList").ForecastSlippageListItem[];
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery;
|
|
182
|
+
isError: false;
|
|
183
|
+
error: null;
|
|
184
|
+
isPending: false;
|
|
185
|
+
isLoading: false;
|
|
186
|
+
isLoadingError: false;
|
|
187
|
+
isRefetchError: false;
|
|
188
|
+
isSuccess: true;
|
|
189
|
+
isPlaceholderData: true;
|
|
190
|
+
status: "success";
|
|
191
|
+
dataUpdatedAt: number;
|
|
192
|
+
errorUpdatedAt: number;
|
|
193
|
+
failureCount: number;
|
|
194
|
+
failureReason: Error | null;
|
|
195
|
+
errorUpdateCount: number;
|
|
196
|
+
isFetched: boolean;
|
|
197
|
+
isFetchedAfterMount: boolean;
|
|
198
|
+
isFetching: boolean;
|
|
199
|
+
isInitialLoading: boolean;
|
|
200
|
+
isPaused: boolean;
|
|
201
|
+
isRefetching: boolean;
|
|
202
|
+
isStale: boolean;
|
|
203
|
+
isEnabled: boolean;
|
|
204
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery, Error>>;
|
|
205
|
+
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
206
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchErc20ForecastSlippageQuery>;
|
|
71
207
|
slippageData: {
|
|
72
208
|
recommendSlippage?: undefined;
|
|
73
209
|
slippageList?: undefined;
|
|
@@ -78,5 +214,5 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
78
214
|
};
|
|
79
215
|
recommendSlippage: number;
|
|
80
216
|
slippage: number;
|
|
81
|
-
slippageLoading:
|
|
217
|
+
slippageLoading: boolean;
|
|
82
218
|
};
|
|
@@ -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,7 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { ChainListItem } from '../../constants/chainList';
|
|
2
3
|
export declare function useSelectChainList(side?: 'from' | 'to'): {
|
|
3
4
|
chainList: ChainListItem[];
|
|
4
|
-
selectChainId:
|
|
5
|
-
setSelectChainId: import("react").Dispatch<
|
|
5
|
+
selectChainId: ChainId;
|
|
6
|
+
setSelectChainId: import("react").Dispatch<import("react").SetStateAction<ChainId>>;
|
|
6
7
|
};
|