@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
|
@@ -4,14 +4,8 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
4
4
|
chainId: ChainId | undefined;
|
|
5
5
|
day?: number;
|
|
6
6
|
}): {
|
|
7
|
-
dayDataList:
|
|
8
|
-
|
|
9
|
-
fee: number;
|
|
10
|
-
traders: number;
|
|
11
|
-
date: number;
|
|
12
|
-
tvl: number;
|
|
13
|
-
}[];
|
|
14
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
|
|
7
|
+
dayDataList: any;
|
|
8
|
+
data: unknown;
|
|
15
9
|
error: Error;
|
|
16
10
|
isError: true;
|
|
17
11
|
isPending: false;
|
|
@@ -34,18 +28,12 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
34
28
|
isRefetching: boolean;
|
|
35
29
|
isStale: boolean;
|
|
36
30
|
isEnabled: boolean;
|
|
37
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
31
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
38
32
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
39
|
-
promise: Promise<
|
|
33
|
+
promise: Promise<unknown>;
|
|
40
34
|
} | {
|
|
41
|
-
dayDataList:
|
|
42
|
-
|
|
43
|
-
fee: number;
|
|
44
|
-
traders: number;
|
|
45
|
-
date: number;
|
|
46
|
-
tvl: number;
|
|
47
|
-
}[];
|
|
48
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
|
|
35
|
+
dayDataList: any;
|
|
36
|
+
data: unknown;
|
|
49
37
|
error: null;
|
|
50
38
|
isError: false;
|
|
51
39
|
isPending: false;
|
|
@@ -68,143 +56,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
68
56
|
isRefetching: boolean;
|
|
69
57
|
isStale: boolean;
|
|
70
58
|
isEnabled: boolean;
|
|
71
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
59
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
72
60
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
73
|
-
promise: Promise<
|
|
74
|
-
} | {
|
|
75
|
-
dayDataList: {
|
|
76
|
-
volume: number;
|
|
77
|
-
fee: number;
|
|
78
|
-
traders: number;
|
|
79
|
-
date: number;
|
|
80
|
-
tvl: number;
|
|
81
|
-
}[];
|
|
82
|
-
data: undefined;
|
|
83
|
-
error: Error;
|
|
84
|
-
isError: true;
|
|
85
|
-
isPending: false;
|
|
86
|
-
isLoading: false;
|
|
87
|
-
isLoadingError: true;
|
|
88
|
-
isRefetchError: false;
|
|
89
|
-
isSuccess: false;
|
|
90
|
-
isPlaceholderData: false;
|
|
91
|
-
status: "error";
|
|
92
|
-
dataUpdatedAt: number;
|
|
93
|
-
errorUpdatedAt: number;
|
|
94
|
-
failureCount: number;
|
|
95
|
-
failureReason: Error | null;
|
|
96
|
-
errorUpdateCount: number;
|
|
97
|
-
isFetched: boolean;
|
|
98
|
-
isFetchedAfterMount: boolean;
|
|
99
|
-
isFetching: boolean;
|
|
100
|
-
isInitialLoading: boolean;
|
|
101
|
-
isPaused: boolean;
|
|
102
|
-
isRefetching: boolean;
|
|
103
|
-
isStale: boolean;
|
|
104
|
-
isEnabled: boolean;
|
|
105
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
106
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
107
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
108
|
-
} | {
|
|
109
|
-
dayDataList: {
|
|
110
|
-
volume: number;
|
|
111
|
-
fee: number;
|
|
112
|
-
traders: number;
|
|
113
|
-
date: number;
|
|
114
|
-
tvl: number;
|
|
115
|
-
}[];
|
|
116
|
-
data: undefined;
|
|
117
|
-
error: null;
|
|
118
|
-
isError: false;
|
|
119
|
-
isPending: true;
|
|
120
|
-
isLoading: true;
|
|
121
|
-
isLoadingError: false;
|
|
122
|
-
isRefetchError: false;
|
|
123
|
-
isSuccess: false;
|
|
124
|
-
isPlaceholderData: false;
|
|
125
|
-
status: "pending";
|
|
126
|
-
dataUpdatedAt: number;
|
|
127
|
-
errorUpdatedAt: number;
|
|
128
|
-
failureCount: number;
|
|
129
|
-
failureReason: Error | null;
|
|
130
|
-
errorUpdateCount: number;
|
|
131
|
-
isFetched: boolean;
|
|
132
|
-
isFetchedAfterMount: boolean;
|
|
133
|
-
isFetching: boolean;
|
|
134
|
-
isInitialLoading: boolean;
|
|
135
|
-
isPaused: boolean;
|
|
136
|
-
isRefetching: boolean;
|
|
137
|
-
isStale: boolean;
|
|
138
|
-
isEnabled: boolean;
|
|
139
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
140
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
141
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
142
|
-
} | {
|
|
143
|
-
dayDataList: {
|
|
144
|
-
volume: number;
|
|
145
|
-
fee: number;
|
|
146
|
-
traders: number;
|
|
147
|
-
date: number;
|
|
148
|
-
tvl: number;
|
|
149
|
-
}[];
|
|
150
|
-
data: undefined;
|
|
151
|
-
error: null;
|
|
152
|
-
isError: false;
|
|
153
|
-
isPending: true;
|
|
154
|
-
isLoadingError: false;
|
|
155
|
-
isRefetchError: false;
|
|
156
|
-
isSuccess: false;
|
|
157
|
-
isPlaceholderData: false;
|
|
158
|
-
status: "pending";
|
|
159
|
-
dataUpdatedAt: number;
|
|
160
|
-
errorUpdatedAt: number;
|
|
161
|
-
failureCount: number;
|
|
162
|
-
failureReason: Error | null;
|
|
163
|
-
errorUpdateCount: number;
|
|
164
|
-
isFetched: boolean;
|
|
165
|
-
isFetchedAfterMount: boolean;
|
|
166
|
-
isFetching: boolean;
|
|
167
|
-
isLoading: boolean;
|
|
168
|
-
isInitialLoading: boolean;
|
|
169
|
-
isPaused: boolean;
|
|
170
|
-
isRefetching: boolean;
|
|
171
|
-
isStale: boolean;
|
|
172
|
-
isEnabled: boolean;
|
|
173
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
174
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
175
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
176
|
-
} | {
|
|
177
|
-
dayDataList: {
|
|
178
|
-
volume: number;
|
|
179
|
-
fee: number;
|
|
180
|
-
traders: number;
|
|
181
|
-
date: number;
|
|
182
|
-
tvl: number;
|
|
183
|
-
}[];
|
|
184
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
|
|
185
|
-
isError: false;
|
|
186
|
-
error: null;
|
|
187
|
-
isPending: false;
|
|
188
|
-
isLoading: false;
|
|
189
|
-
isLoadingError: false;
|
|
190
|
-
isRefetchError: false;
|
|
191
|
-
isSuccess: true;
|
|
192
|
-
isPlaceholderData: true;
|
|
193
|
-
status: "success";
|
|
194
|
-
dataUpdatedAt: number;
|
|
195
|
-
errorUpdatedAt: number;
|
|
196
|
-
failureCount: number;
|
|
197
|
-
failureReason: Error | null;
|
|
198
|
-
errorUpdateCount: number;
|
|
199
|
-
isFetched: boolean;
|
|
200
|
-
isFetchedAfterMount: boolean;
|
|
201
|
-
isFetching: boolean;
|
|
202
|
-
isInitialLoading: boolean;
|
|
203
|
-
isPaused: boolean;
|
|
204
|
-
isRefetching: boolean;
|
|
205
|
-
isStale: boolean;
|
|
206
|
-
isEnabled: boolean;
|
|
207
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
208
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
209
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
61
|
+
promise: Promise<unknown>;
|
|
210
62
|
};
|
|
@@ -3,30 +3,8 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
3
3
|
address: string | undefined;
|
|
4
4
|
first?: number;
|
|
5
5
|
}): {
|
|
6
|
-
swapList:
|
|
7
|
-
|
|
8
|
-
timestamp: any;
|
|
9
|
-
from: any;
|
|
10
|
-
baseVolume: any;
|
|
11
|
-
quoteVolume: any;
|
|
12
|
-
feeBase: any;
|
|
13
|
-
feeQuote: any;
|
|
14
|
-
amountIn: any;
|
|
15
|
-
amountOut: any;
|
|
16
|
-
fromToken: {
|
|
17
|
-
id: string;
|
|
18
|
-
symbol: string;
|
|
19
|
-
name: string;
|
|
20
|
-
decimals: any;
|
|
21
|
-
};
|
|
22
|
-
toToken: {
|
|
23
|
-
id: string;
|
|
24
|
-
symbol: string;
|
|
25
|
-
name: string;
|
|
26
|
-
decimals: any;
|
|
27
|
-
};
|
|
28
|
-
}[] | undefined;
|
|
29
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
|
|
6
|
+
swapList: any;
|
|
7
|
+
data: unknown;
|
|
30
8
|
error: Error;
|
|
31
9
|
isError: true;
|
|
32
10
|
isPending: false;
|
|
@@ -49,34 +27,12 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
49
27
|
isRefetching: boolean;
|
|
50
28
|
isStale: boolean;
|
|
51
29
|
isEnabled: boolean;
|
|
52
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
30
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
53
31
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
|
-
promise: Promise<
|
|
32
|
+
promise: Promise<unknown>;
|
|
55
33
|
} | {
|
|
56
|
-
swapList:
|
|
57
|
-
|
|
58
|
-
timestamp: any;
|
|
59
|
-
from: any;
|
|
60
|
-
baseVolume: any;
|
|
61
|
-
quoteVolume: any;
|
|
62
|
-
feeBase: any;
|
|
63
|
-
feeQuote: any;
|
|
64
|
-
amountIn: any;
|
|
65
|
-
amountOut: any;
|
|
66
|
-
fromToken: {
|
|
67
|
-
id: string;
|
|
68
|
-
symbol: string;
|
|
69
|
-
name: string;
|
|
70
|
-
decimals: any;
|
|
71
|
-
};
|
|
72
|
-
toToken: {
|
|
73
|
-
id: string;
|
|
74
|
-
symbol: string;
|
|
75
|
-
name: string;
|
|
76
|
-
decimals: any;
|
|
77
|
-
};
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
|
|
34
|
+
swapList: any;
|
|
35
|
+
data: unknown;
|
|
80
36
|
error: null;
|
|
81
37
|
isError: false;
|
|
82
38
|
isPending: false;
|
|
@@ -99,207 +55,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
99
55
|
isRefetching: boolean;
|
|
100
56
|
isStale: boolean;
|
|
101
57
|
isEnabled: boolean;
|
|
102
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
58
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
103
59
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
104
|
-
promise: Promise<
|
|
105
|
-
} | {
|
|
106
|
-
swapList: {
|
|
107
|
-
id: string;
|
|
108
|
-
timestamp: any;
|
|
109
|
-
from: any;
|
|
110
|
-
baseVolume: any;
|
|
111
|
-
quoteVolume: any;
|
|
112
|
-
feeBase: any;
|
|
113
|
-
feeQuote: any;
|
|
114
|
-
amountIn: any;
|
|
115
|
-
amountOut: any;
|
|
116
|
-
fromToken: {
|
|
117
|
-
id: string;
|
|
118
|
-
symbol: string;
|
|
119
|
-
name: string;
|
|
120
|
-
decimals: any;
|
|
121
|
-
};
|
|
122
|
-
toToken: {
|
|
123
|
-
id: string;
|
|
124
|
-
symbol: string;
|
|
125
|
-
name: string;
|
|
126
|
-
decimals: any;
|
|
127
|
-
};
|
|
128
|
-
}[] | undefined;
|
|
129
|
-
data: undefined;
|
|
130
|
-
error: Error;
|
|
131
|
-
isError: true;
|
|
132
|
-
isPending: false;
|
|
133
|
-
isLoading: false;
|
|
134
|
-
isLoadingError: true;
|
|
135
|
-
isRefetchError: false;
|
|
136
|
-
isSuccess: false;
|
|
137
|
-
isPlaceholderData: false;
|
|
138
|
-
status: "error";
|
|
139
|
-
dataUpdatedAt: number;
|
|
140
|
-
errorUpdatedAt: number;
|
|
141
|
-
failureCount: number;
|
|
142
|
-
failureReason: Error | null;
|
|
143
|
-
errorUpdateCount: number;
|
|
144
|
-
isFetched: boolean;
|
|
145
|
-
isFetchedAfterMount: boolean;
|
|
146
|
-
isFetching: boolean;
|
|
147
|
-
isInitialLoading: boolean;
|
|
148
|
-
isPaused: boolean;
|
|
149
|
-
isRefetching: boolean;
|
|
150
|
-
isStale: boolean;
|
|
151
|
-
isEnabled: boolean;
|
|
152
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
153
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
154
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
155
|
-
} | {
|
|
156
|
-
swapList: {
|
|
157
|
-
id: string;
|
|
158
|
-
timestamp: any;
|
|
159
|
-
from: any;
|
|
160
|
-
baseVolume: any;
|
|
161
|
-
quoteVolume: any;
|
|
162
|
-
feeBase: any;
|
|
163
|
-
feeQuote: any;
|
|
164
|
-
amountIn: any;
|
|
165
|
-
amountOut: any;
|
|
166
|
-
fromToken: {
|
|
167
|
-
id: string;
|
|
168
|
-
symbol: string;
|
|
169
|
-
name: string;
|
|
170
|
-
decimals: any;
|
|
171
|
-
};
|
|
172
|
-
toToken: {
|
|
173
|
-
id: string;
|
|
174
|
-
symbol: string;
|
|
175
|
-
name: string;
|
|
176
|
-
decimals: any;
|
|
177
|
-
};
|
|
178
|
-
}[] | undefined;
|
|
179
|
-
data: undefined;
|
|
180
|
-
error: null;
|
|
181
|
-
isError: false;
|
|
182
|
-
isPending: true;
|
|
183
|
-
isLoading: true;
|
|
184
|
-
isLoadingError: false;
|
|
185
|
-
isRefetchError: false;
|
|
186
|
-
isSuccess: false;
|
|
187
|
-
isPlaceholderData: false;
|
|
188
|
-
status: "pending";
|
|
189
|
-
dataUpdatedAt: number;
|
|
190
|
-
errorUpdatedAt: number;
|
|
191
|
-
failureCount: number;
|
|
192
|
-
failureReason: Error | null;
|
|
193
|
-
errorUpdateCount: number;
|
|
194
|
-
isFetched: boolean;
|
|
195
|
-
isFetchedAfterMount: boolean;
|
|
196
|
-
isFetching: boolean;
|
|
197
|
-
isInitialLoading: boolean;
|
|
198
|
-
isPaused: boolean;
|
|
199
|
-
isRefetching: boolean;
|
|
200
|
-
isStale: boolean;
|
|
201
|
-
isEnabled: boolean;
|
|
202
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
203
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
204
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
205
|
-
} | {
|
|
206
|
-
swapList: {
|
|
207
|
-
id: string;
|
|
208
|
-
timestamp: any;
|
|
209
|
-
from: any;
|
|
210
|
-
baseVolume: any;
|
|
211
|
-
quoteVolume: any;
|
|
212
|
-
feeBase: any;
|
|
213
|
-
feeQuote: any;
|
|
214
|
-
amountIn: any;
|
|
215
|
-
amountOut: any;
|
|
216
|
-
fromToken: {
|
|
217
|
-
id: string;
|
|
218
|
-
symbol: string;
|
|
219
|
-
name: string;
|
|
220
|
-
decimals: any;
|
|
221
|
-
};
|
|
222
|
-
toToken: {
|
|
223
|
-
id: string;
|
|
224
|
-
symbol: string;
|
|
225
|
-
name: string;
|
|
226
|
-
decimals: any;
|
|
227
|
-
};
|
|
228
|
-
}[] | undefined;
|
|
229
|
-
data: undefined;
|
|
230
|
-
error: null;
|
|
231
|
-
isError: false;
|
|
232
|
-
isPending: true;
|
|
233
|
-
isLoadingError: false;
|
|
234
|
-
isRefetchError: false;
|
|
235
|
-
isSuccess: false;
|
|
236
|
-
isPlaceholderData: false;
|
|
237
|
-
status: "pending";
|
|
238
|
-
dataUpdatedAt: number;
|
|
239
|
-
errorUpdatedAt: number;
|
|
240
|
-
failureCount: number;
|
|
241
|
-
failureReason: Error | null;
|
|
242
|
-
errorUpdateCount: number;
|
|
243
|
-
isFetched: boolean;
|
|
244
|
-
isFetchedAfterMount: boolean;
|
|
245
|
-
isFetching: boolean;
|
|
246
|
-
isLoading: boolean;
|
|
247
|
-
isInitialLoading: boolean;
|
|
248
|
-
isPaused: boolean;
|
|
249
|
-
isRefetching: boolean;
|
|
250
|
-
isStale: boolean;
|
|
251
|
-
isEnabled: boolean;
|
|
252
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
253
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
254
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
255
|
-
} | {
|
|
256
|
-
swapList: {
|
|
257
|
-
id: string;
|
|
258
|
-
timestamp: any;
|
|
259
|
-
from: any;
|
|
260
|
-
baseVolume: any;
|
|
261
|
-
quoteVolume: any;
|
|
262
|
-
feeBase: any;
|
|
263
|
-
feeQuote: any;
|
|
264
|
-
amountIn: any;
|
|
265
|
-
amountOut: any;
|
|
266
|
-
fromToken: {
|
|
267
|
-
id: string;
|
|
268
|
-
symbol: string;
|
|
269
|
-
name: string;
|
|
270
|
-
decimals: any;
|
|
271
|
-
};
|
|
272
|
-
toToken: {
|
|
273
|
-
id: string;
|
|
274
|
-
symbol: string;
|
|
275
|
-
name: string;
|
|
276
|
-
decimals: any;
|
|
277
|
-
};
|
|
278
|
-
}[] | undefined;
|
|
279
|
-
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
|
|
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
|
-
status: "success";
|
|
289
|
-
dataUpdatedAt: number;
|
|
290
|
-
errorUpdatedAt: number;
|
|
291
|
-
failureCount: number;
|
|
292
|
-
failureReason: Error | null;
|
|
293
|
-
errorUpdateCount: number;
|
|
294
|
-
isFetched: boolean;
|
|
295
|
-
isFetchedAfterMount: boolean;
|
|
296
|
-
isFetching: boolean;
|
|
297
|
-
isInitialLoading: boolean;
|
|
298
|
-
isPaused: boolean;
|
|
299
|
-
isRefetching: boolean;
|
|
300
|
-
isStale: boolean;
|
|
301
|
-
isEnabled: boolean;
|
|
302
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
303
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
304
|
-
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
60
|
+
promise: Promise<unknown>;
|
|
305
61
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
1
|
export declare function usePoolListFilterChainId(): {
|
|
3
|
-
activeChainId:
|
|
4
|
-
filterChainIds:
|
|
2
|
+
activeChainId: any;
|
|
3
|
+
filterChainIds: any[] | undefined;
|
|
5
4
|
handleChangeActiveChainId: (chainId: number | undefined) => void;
|
|
6
5
|
};
|
|
@@ -12,49 +12,7 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
|
|
|
12
12
|
filterTokens: TokenInfo[];
|
|
13
13
|
filterASymbol: string;
|
|
14
14
|
filterBSymbol: string;
|
|
15
|
-
filterAddressLqList:
|
|
16
|
-
id?: string | null;
|
|
17
|
-
pair?: {
|
|
18
|
-
id: string;
|
|
19
|
-
chainId: number;
|
|
20
|
-
type: string;
|
|
21
|
-
lpFeeRate: any;
|
|
22
|
-
mtFeeRate: any;
|
|
23
|
-
creator: any;
|
|
24
|
-
tvl?: any | null;
|
|
25
|
-
miningAddress?: Array<string | null> | null;
|
|
26
|
-
volume24H?: any | null;
|
|
27
|
-
baseLpToken?: {
|
|
28
|
-
id: string;
|
|
29
|
-
decimals: any;
|
|
30
|
-
} | null;
|
|
31
|
-
quoteLpToken?: {
|
|
32
|
-
id: string;
|
|
33
|
-
decimals: any;
|
|
34
|
-
} | null;
|
|
35
|
-
baseToken: {
|
|
36
|
-
id: string;
|
|
37
|
-
symbol: string;
|
|
38
|
-
name: string;
|
|
39
|
-
decimals: any;
|
|
40
|
-
logoImg?: string | null;
|
|
41
|
-
};
|
|
42
|
-
quoteToken: {
|
|
43
|
-
id: string;
|
|
44
|
-
symbol: string;
|
|
45
|
-
name: string;
|
|
46
|
-
decimals: any;
|
|
47
|
-
logoImg?: string | null;
|
|
48
|
-
};
|
|
49
|
-
apy?: {
|
|
50
|
-
miningBaseApy?: any | null;
|
|
51
|
-
miningQuoteApy?: any | null;
|
|
52
|
-
transactionBaseApy?: any | null;
|
|
53
|
-
transactionQuoteApy?: any | null;
|
|
54
|
-
metromMiningApy?: any | null;
|
|
55
|
-
} | null;
|
|
56
|
-
} | null;
|
|
57
|
-
} | null)[] | null | undefined;
|
|
15
|
+
filterAddressLqList: ExcludeNone<any>;
|
|
58
16
|
handleDeleteToken: (token: TokenInfo) => void;
|
|
59
17
|
handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
|
|
60
18
|
handleChangeFilterAddress: (lqList: FetchLiquidityListLqList) => void;
|
|
@@ -27,24 +27,18 @@ export declare function useLiquidityOperateAmount({ pool, maxBaseAmount, maxQuot
|
|
|
27
27
|
handleChangeQuoteAmount: (newValue: string) => void;
|
|
28
28
|
reset: () => void;
|
|
29
29
|
addPortion: BigNumber;
|
|
30
|
-
amountLoading:
|
|
30
|
+
amountLoading: false;
|
|
31
31
|
amountError: boolean;
|
|
32
|
-
amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
33
|
-
baseReserve: BigNumber;
|
|
34
|
-
quoteReserve: BigNumber;
|
|
35
|
-
} | null, Error>>;
|
|
32
|
+
amountRefetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
36
33
|
amountCheckedDisabled: boolean;
|
|
37
|
-
midPrice:
|
|
34
|
+
midPrice: any;
|
|
38
35
|
uniV2Pair: {
|
|
39
36
|
isRearTokenA: boolean;
|
|
40
37
|
pair: import("@uniswap/v2-sdk").Pair | null;
|
|
41
38
|
price: BigNumber | undefined;
|
|
42
39
|
invertedPrice: BigNumber | undefined;
|
|
43
|
-
reserveQuery: import("@tanstack/react-query").
|
|
44
|
-
|
|
45
|
-
quoteReserve: BigNumber;
|
|
46
|
-
} | null, Error>;
|
|
47
|
-
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
|
|
40
|
+
reserveQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
41
|
+
totalBaseLpQuery: import("@tanstack/react-query").DefinedUseQueryResult<unknown, Error>;
|
|
48
42
|
liquidityMinted: BigNumber | undefined;
|
|
49
43
|
poolTokenPercentage: BigNumber | undefined;
|
|
50
44
|
shareOfPool: string;
|
|
@@ -12,12 +12,12 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
|
|
|
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
|
};
|
|
22
22
|
quoteTokenStatus: {
|
|
23
23
|
token: import("../../../..").TokenInfo | null | undefined;
|
|
@@ -25,11 +25,11 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
|
|
|
25
25
|
isGetApproveLoading: boolean;
|
|
26
26
|
needApprove: boolean;
|
|
27
27
|
needReset: boolean | undefined;
|
|
28
|
-
needShowTokenStatusButton:
|
|
29
|
-
insufficientBalance:
|
|
30
|
-
loading:
|
|
28
|
+
needShowTokenStatusButton: any;
|
|
29
|
+
insufficientBalance: any;
|
|
30
|
+
loading: false;
|
|
31
31
|
approveTitle: string;
|
|
32
32
|
submitApprove: () => Promise<void>;
|
|
33
|
-
getMaxBalance: () =>
|
|
33
|
+
getMaxBalance: () => any;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -14,35 +14,35 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
14
14
|
};
|
|
15
15
|
}): {
|
|
16
16
|
/** existing base lp balance */
|
|
17
|
-
totalBaseLpBalance:
|
|
17
|
+
totalBaseLpBalance: unknown;
|
|
18
18
|
/** existing quote lp balance */
|
|
19
|
-
totalQuoteLpBalance:
|
|
19
|
+
totalQuoteLpBalance: unknown;
|
|
20
20
|
/** the total deposited base lp balance */
|
|
21
|
-
baseReserve:
|
|
21
|
+
baseReserve: any;
|
|
22
22
|
/** the total deposited quote lp balance */
|
|
23
|
-
quoteReserve:
|
|
23
|
+
quoteReserve: any;
|
|
24
24
|
/** classical base equilibrium target */
|
|
25
|
-
classicalBaseTarget:
|
|
25
|
+
classicalBaseTarget: any;
|
|
26
26
|
/** classical quote equilibrium target */
|
|
27
|
-
classicalQuoteTarget:
|
|
27
|
+
classicalQuoteTarget: any;
|
|
28
28
|
/** the user's existing base lp balance */
|
|
29
|
-
userBaseLpBalance:
|
|
29
|
+
userBaseLpBalance: any;
|
|
30
30
|
/** the user's existing quote lp balance */
|
|
31
|
-
userQuoteLpBalance:
|
|
31
|
+
userQuoteLpBalance: any;
|
|
32
32
|
/** The number of base that can be obtained when a user withdraws from the pool */
|
|
33
|
-
userBaseLpToTokenBalance:
|
|
33
|
+
userBaseLpToTokenBalance: any;
|
|
34
34
|
/** The number of quote that can be obtained when a user withdraws from the pool */
|
|
35
35
|
userQuoteLpToTokenBalance: BigNumber | null | undefined;
|
|
36
36
|
baseLpToTokenProportion: BigNumber | undefined;
|
|
37
37
|
quoteLpToTokenProportion: BigNumber | undefined;
|
|
38
|
-
isSinglePool:
|
|
39
|
-
userLpBalanceLoading:
|
|
40
|
-
userLpToTokenBalanceLoading:
|
|
38
|
+
isSinglePool: any;
|
|
39
|
+
userLpBalanceLoading: false;
|
|
40
|
+
userLpToTokenBalanceLoading: false;
|
|
41
41
|
userLpBalanceError: boolean;
|
|
42
42
|
userLpToTokenBalanceError: boolean;
|
|
43
43
|
userLpToTokenBalanceRefetch: () => void;
|
|
44
44
|
error: boolean;
|
|
45
|
-
loading:
|
|
45
|
+
loading: false;
|
|
46
46
|
refetch: () => void;
|
|
47
47
|
};
|
|
48
48
|
export {};
|