@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
2
|
export declare enum APIServiceKey {
|
|
3
3
|
routePrice = "routePrice",
|
|
4
4
|
fiatPrice = "fiatPrice",
|
|
@@ -14,6 +14,6 @@ export declare const getCGTokenListAPI: (chainId: ChainId) => any;
|
|
|
14
14
|
export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/v2/widget/getdodoroute";
|
|
15
15
|
export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api/current/batch";
|
|
16
16
|
export declare function getAPIService(key: APIServiceKey, serviceProps?: Partial<APIServices>): string;
|
|
17
|
-
export declare const contractRequests:
|
|
18
|
-
export declare const tokenContractRequests:
|
|
19
|
-
export declare const tokenApi:
|
|
17
|
+
export declare const contractRequests: any;
|
|
18
|
+
export declare const tokenContractRequests: any;
|
|
19
|
+
export declare const tokenApi: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useCurrentChainId():
|
|
1
|
+
export declare function useCurrentChainId(): ChainId;
|
|
@@ -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: unknown;
|
|
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<unknown, Error>>;
|
|
37
37
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
38
|
-
promise: Promise<
|
|
38
|
+
promise: Promise<unknown>;
|
|
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: unknown;
|
|
48
48
|
error: null;
|
|
49
49
|
isError: false;
|
|
50
50
|
isPending: false;
|
|
@@ -67,145 +67,9 @@ 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<unknown, Error>>;
|
|
71
71
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
72
|
-
promise: Promise<
|
|
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>;
|
|
72
|
+
promise: Promise<unknown>;
|
|
209
73
|
slippageData: {
|
|
210
74
|
recommendSlippage?: undefined;
|
|
211
75
|
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: unknown;
|
|
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<unknown, Error>>;
|
|
35
35
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
36
|
-
promise: Promise<
|
|
36
|
+
promise: Promise<unknown>;
|
|
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: unknown;
|
|
46
46
|
error: null;
|
|
47
47
|
isError: false;
|
|
48
48
|
isPending: false;
|
|
@@ -65,145 +65,9 @@ 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<unknown, Error>>;
|
|
69
69
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
70
|
-
promise: Promise<
|
|
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>;
|
|
70
|
+
promise: Promise<unknown>;
|
|
207
71
|
slippageData: {
|
|
208
72
|
recommendSlippage?: undefined;
|
|
209
73
|
slippageList?: undefined;
|
|
@@ -214,5 +78,5 @@ export declare function useSwapSlippage({ fromToken, toToken, }: {
|
|
|
214
78
|
};
|
|
215
79
|
recommendSlippage: number;
|
|
216
80
|
slippage: number;
|
|
217
|
-
slippageLoading:
|
|
81
|
+
slippageLoading: false;
|
|
218
82
|
};
|