@dodoex/widgets 3.0.2-beta.14 → 3.0.2-beta.15
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 +3 -3
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +22 -99
- package/dist/types/hooks/Token/useTokenStatus.d.ts +3 -3
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +1 -21
- package/dist/types/utils/chains.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 +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- 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/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +4 -10
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +6 -6
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +10 -10
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +2 -5
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TokenApi, 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:
|
|
17
|
+
export declare const contractRequests: any;
|
|
18
|
+
export declare const tokenContractRequests: any;
|
|
19
19
|
export declare const tokenApi: TokenApi;
|
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from '../Token';
|
|
3
1
|
export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
4
2
|
account: string | undefined;
|
|
5
3
|
chainId?: number;
|
|
6
4
|
limit?: number;
|
|
7
5
|
}): {
|
|
8
|
-
orderList:
|
|
9
|
-
|
|
10
|
-
fromToken: TokenInfo;
|
|
11
|
-
toToken: TokenInfo;
|
|
12
|
-
fromAmount: BigNumber | null;
|
|
13
|
-
toAmount: string;
|
|
14
|
-
minAmount: string;
|
|
15
|
-
fromTokenPrice: string;
|
|
16
|
-
toTokenPrice: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
routeData: any;
|
|
19
|
-
safeTxHash: string | undefined;
|
|
20
|
-
safeTxUrl: string;
|
|
21
|
-
status: string;
|
|
22
|
-
transactionHash: string;
|
|
23
|
-
}[];
|
|
24
|
-
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
|
|
6
|
+
orderList: any;
|
|
7
|
+
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
25
8
|
error: Error;
|
|
26
9
|
isError: true;
|
|
27
10
|
isPending: false;
|
|
@@ -30,8 +13,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
30
13
|
isRefetchError: true;
|
|
31
14
|
isSuccess: false;
|
|
32
15
|
status: "error";
|
|
33
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
34
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
16
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
17
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
35
18
|
hasNextPage: boolean;
|
|
36
19
|
hasPreviousPage: boolean;
|
|
37
20
|
isFetchingNextPage: boolean;
|
|
@@ -49,26 +32,11 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
49
32
|
isPlaceholderData: boolean;
|
|
50
33
|
isRefetching: boolean;
|
|
51
34
|
isStale: boolean;
|
|
52
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
35
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
53
36
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
37
|
} | {
|
|
55
|
-
orderList:
|
|
56
|
-
|
|
57
|
-
fromToken: TokenInfo;
|
|
58
|
-
toToken: TokenInfo;
|
|
59
|
-
fromAmount: BigNumber | null;
|
|
60
|
-
toAmount: string;
|
|
61
|
-
minAmount: string;
|
|
62
|
-
fromTokenPrice: string;
|
|
63
|
-
toTokenPrice: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
routeData: any;
|
|
66
|
-
safeTxHash: string | undefined;
|
|
67
|
-
safeTxUrl: string;
|
|
68
|
-
status: string;
|
|
69
|
-
transactionHash: string;
|
|
70
|
-
}[];
|
|
71
|
-
data: import("@tanstack/react-query").InfiniteData<import("@dodoex/api/dist/types/gql/graphql").FetchUserSwapOrderHistoriesQuery, unknown>;
|
|
38
|
+
orderList: any;
|
|
39
|
+
data: import("@tanstack/react-query").InfiniteData<unknown, unknown>;
|
|
72
40
|
error: null;
|
|
73
41
|
isError: false;
|
|
74
42
|
isPending: false;
|
|
@@ -77,8 +45,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
77
45
|
isRefetchError: false;
|
|
78
46
|
isSuccess: true;
|
|
79
47
|
status: "success";
|
|
80
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
81
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
48
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
49
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
82
50
|
hasNextPage: boolean;
|
|
83
51
|
hasPreviousPage: boolean;
|
|
84
52
|
isFetchingNextPage: boolean;
|
|
@@ -96,25 +64,10 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
96
64
|
isPlaceholderData: boolean;
|
|
97
65
|
isRefetching: boolean;
|
|
98
66
|
isStale: boolean;
|
|
99
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
67
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
100
68
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
101
69
|
} | {
|
|
102
|
-
orderList:
|
|
103
|
-
hash: string;
|
|
104
|
-
fromToken: TokenInfo;
|
|
105
|
-
toToken: TokenInfo;
|
|
106
|
-
fromAmount: BigNumber | null;
|
|
107
|
-
toAmount: string;
|
|
108
|
-
minAmount: string;
|
|
109
|
-
fromTokenPrice: string;
|
|
110
|
-
toTokenPrice: string;
|
|
111
|
-
createdAt: string;
|
|
112
|
-
routeData: any;
|
|
113
|
-
safeTxHash: string | undefined;
|
|
114
|
-
safeTxUrl: string;
|
|
115
|
-
status: string;
|
|
116
|
-
transactionHash: string;
|
|
117
|
-
}[];
|
|
70
|
+
orderList: any;
|
|
118
71
|
data: undefined;
|
|
119
72
|
error: Error;
|
|
120
73
|
isError: true;
|
|
@@ -124,8 +77,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
124
77
|
isRefetchError: false;
|
|
125
78
|
isSuccess: false;
|
|
126
79
|
status: "error";
|
|
127
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
128
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
80
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
81
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
129
82
|
hasNextPage: boolean;
|
|
130
83
|
hasPreviousPage: boolean;
|
|
131
84
|
isFetchingNextPage: boolean;
|
|
@@ -143,25 +96,10 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
143
96
|
isPlaceholderData: boolean;
|
|
144
97
|
isRefetching: boolean;
|
|
145
98
|
isStale: boolean;
|
|
146
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
99
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
147
100
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
148
101
|
} | {
|
|
149
|
-
orderList:
|
|
150
|
-
hash: string;
|
|
151
|
-
fromToken: TokenInfo;
|
|
152
|
-
toToken: TokenInfo;
|
|
153
|
-
fromAmount: BigNumber | null;
|
|
154
|
-
toAmount: string;
|
|
155
|
-
minAmount: string;
|
|
156
|
-
fromTokenPrice: string;
|
|
157
|
-
toTokenPrice: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
routeData: any;
|
|
160
|
-
safeTxHash: string | undefined;
|
|
161
|
-
safeTxUrl: string;
|
|
162
|
-
status: string;
|
|
163
|
-
transactionHash: string;
|
|
164
|
-
}[];
|
|
102
|
+
orderList: any;
|
|
165
103
|
data: undefined;
|
|
166
104
|
error: null;
|
|
167
105
|
isError: false;
|
|
@@ -171,8 +109,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
171
109
|
isRefetchError: false;
|
|
172
110
|
isSuccess: false;
|
|
173
111
|
status: "pending";
|
|
174
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
175
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
112
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
113
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
176
114
|
hasNextPage: boolean;
|
|
177
115
|
hasPreviousPage: boolean;
|
|
178
116
|
isFetchingNextPage: boolean;
|
|
@@ -190,25 +128,10 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
190
128
|
isPlaceholderData: boolean;
|
|
191
129
|
isRefetching: boolean;
|
|
192
130
|
isStale: boolean;
|
|
193
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
131
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
194
132
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
195
133
|
} | {
|
|
196
|
-
orderList:
|
|
197
|
-
hash: string;
|
|
198
|
-
fromToken: TokenInfo;
|
|
199
|
-
toToken: TokenInfo;
|
|
200
|
-
fromAmount: BigNumber | null;
|
|
201
|
-
toAmount: string;
|
|
202
|
-
minAmount: string;
|
|
203
|
-
fromTokenPrice: string;
|
|
204
|
-
toTokenPrice: string;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
routeData: any;
|
|
207
|
-
safeTxHash: string | undefined;
|
|
208
|
-
safeTxUrl: string;
|
|
209
|
-
status: string;
|
|
210
|
-
transactionHash: string;
|
|
211
|
-
}[];
|
|
134
|
+
orderList: any;
|
|
212
135
|
data: undefined;
|
|
213
136
|
error: null;
|
|
214
137
|
isError: false;
|
|
@@ -217,8 +140,8 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
217
140
|
isRefetchError: false;
|
|
218
141
|
isSuccess: false;
|
|
219
142
|
status: "pending";
|
|
220
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
221
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
143
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
144
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
222
145
|
hasNextPage: boolean;
|
|
223
146
|
hasPreviousPage: boolean;
|
|
224
147
|
isFetchingNextPage: boolean;
|
|
@@ -237,6 +160,6 @@ export declare function useTradeSwapOrderList({ account, chainId, limit, }: {
|
|
|
237
160
|
isPlaceholderData: boolean;
|
|
238
161
|
isRefetching: boolean;
|
|
239
162
|
isStale: boolean;
|
|
240
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
163
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<unknown, unknown>, Error>>;
|
|
241
164
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
242
165
|
};
|
|
@@ -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:
|
|
15
|
+
needShowTokenStatusButton: any;
|
|
16
|
+
insufficientBalance: any;
|
|
17
17
|
loading: boolean;
|
|
18
18
|
approveTitle: string;
|
|
19
19
|
submitApprove: () => Promise<void>;
|
|
20
|
-
getMaxBalance: () =>
|
|
20
|
+
getMaxBalance: () => any;
|
|
21
21
|
};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").UseQueryResult<
|
|
2
|
-
symbol: string;
|
|
3
|
-
address: string;
|
|
4
|
-
name: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
balance: import("bignumber.js").BigNumber;
|
|
7
|
-
allowance: import("bignumber.js").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: import("bignumber.js").BigNumber;
|
|
17
|
-
spender: string | undefined;
|
|
18
|
-
allowance: import("bignumber.js").BigNumber;
|
|
19
|
-
chainId: number;
|
|
20
|
-
account?: undefined;
|
|
21
|
-
} | null, Error>;
|
|
1
|
+
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare const getPlatformId: (chainId: ChainId) =>
|
|
2
|
+
export declare const getPlatformId: (chainId: ChainId) => any;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TabMiningI } from '../../types';
|
|
2
|
-
import { MiningStatusE } from '@dodoex/api';
|
|
3
2
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
4
3
|
miningItem: TabMiningI;
|
|
5
4
|
}): {
|
|
6
|
-
status:
|
|
5
|
+
status: any;
|
|
7
6
|
miningStatusList: {
|
|
8
7
|
status: MiningStatusE;
|
|
9
8
|
firstStartTime: import("bignumber.js").BigNumber | undefined;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const miningApi: MiningApi;
|
|
1
|
+
export declare const miningApi: any;
|
|
@@ -7,5 +7,5 @@ export declare function useMiningItem({ miningContractAddress, poolAddress, acco
|
|
|
7
7
|
miningItem: import("../types").TabMiningI | undefined;
|
|
8
8
|
error: Error | null;
|
|
9
9
|
loading: boolean;
|
|
10
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
10
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<unknown, Error>>;
|
|
11
11
|
};
|
|
@@ -6,7 +6,7 @@ export declare function useMiningList({ isEnded, searchText, account, chainIds,
|
|
|
6
6
|
chainIds: Array<number> | null;
|
|
7
7
|
}): {
|
|
8
8
|
error: Error | null;
|
|
9
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
9
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
10
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<
|
|
8
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
9
9
|
loading: boolean;
|
|
10
10
|
miningList: MyCreatedMiningI[];
|
|
11
11
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { MiningStatusE } from '@dodoex/api';
|
|
2
1
|
import { FetchMiningListItem } from '../types';
|
|
3
2
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
4
3
|
miningItem: FetchMiningListItem;
|
|
5
4
|
}): {
|
|
6
|
-
status:
|
|
7
|
-
miningStatusList:
|
|
8
|
-
status: import("@dodoex/api/dist/types/services/mining/utils").MiningStatusE;
|
|
9
|
-
firstStartTime: import("bignumber.js").BigNumber | undefined;
|
|
10
|
-
lastEndTime: import("bignumber.js").BigNumber | undefined;
|
|
11
|
-
currentTime: import("bignumber.js").BigNumber;
|
|
12
|
-
}[];
|
|
5
|
+
status: any;
|
|
6
|
+
miningStatusList: any[];
|
|
13
7
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
1
|
export { ChainId } from '@dodoex/api';
|
|
3
|
-
export declare const SUPPORTED_CHAINS: readonly [
|
|
2
|
+
export declare const SUPPORTED_CHAINS: readonly [any, any, any, any];
|
|
4
3
|
export type SupportedChainsType = (typeof SUPPORTED_CHAINS)[number];
|
|
@@ -21,6 +21,6 @@ export declare const useCreatePmm: ({ selectedVersion, baseAmount, quoteAmount,
|
|
|
21
21
|
q0: number;
|
|
22
22
|
R: number;
|
|
23
23
|
} | undefined;
|
|
24
|
-
pmmModel:
|
|
25
|
-
midPrice:
|
|
24
|
+
pmmModel: any;
|
|
25
|
+
midPrice: any;
|
|
26
26
|
};
|
|
@@ -18,11 +18,9 @@ export declare function usePoolListFilterTokenAndPool(): {
|
|
|
18
18
|
volume24H?: any | null;
|
|
19
19
|
baseLpToken?: {
|
|
20
20
|
id: string;
|
|
21
|
-
decimals: any;
|
|
22
21
|
} | null;
|
|
23
22
|
quoteLpToken?: {
|
|
24
23
|
id: string;
|
|
25
|
-
decimals: any;
|
|
26
24
|
} | null;
|
|
27
25
|
baseToken: {
|
|
28
26
|
id: string;
|
|
@@ -43,7 +41,6 @@ export declare function usePoolListFilterTokenAndPool(): {
|
|
|
43
41
|
miningQuoteApy?: any | null;
|
|
44
42
|
transactionBaseApy?: any | null;
|
|
45
43
|
transactionQuoteApy?: any | null;
|
|
46
|
-
metromMiningApy?: any | null;
|
|
47
44
|
} | null;
|
|
48
45
|
} | null;
|
|
49
46
|
} | null)[] | null | undefined;
|
|
@@ -29,22 +29,16 @@ export declare function useLiquidityOperateAmount({ pool, maxBaseAmount, maxQuot
|
|
|
29
29
|
addPortion: BigNumber;
|
|
30
30
|
amountLoading: boolean;
|
|
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").UseQueryResult<
|
|
44
|
-
|
|
45
|
-
quoteReserve: BigNumber;
|
|
46
|
-
} | null, Error>;
|
|
47
|
-
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
|
|
40
|
+
reserveQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
41
|
+
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<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:
|
|
15
|
+
needShowTokenStatusButton: any;
|
|
16
|
+
insufficientBalance: any;
|
|
17
17
|
loading: boolean;
|
|
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:
|
|
28
|
+
needShowTokenStatusButton: any;
|
|
29
|
+
insufficientBalance: any;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
approveTitle: string;
|
|
32
32
|
submitApprove: () => Promise<void>;
|
|
33
|
-
getMaxBalance: () =>
|
|
33
|
+
getMaxBalance: () => any;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -15,28 +15,28 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
15
15
|
};
|
|
16
16
|
}): {
|
|
17
17
|
/** existing base lp balance */
|
|
18
|
-
totalBaseLpBalance:
|
|
18
|
+
totalBaseLpBalance: unknown;
|
|
19
19
|
/** existing quote lp balance */
|
|
20
|
-
totalQuoteLpBalance:
|
|
20
|
+
totalQuoteLpBalance: unknown;
|
|
21
21
|
/** the total deposited base lp balance */
|
|
22
|
-
baseReserve:
|
|
22
|
+
baseReserve: any;
|
|
23
23
|
/** the total deposited quote lp balance */
|
|
24
|
-
quoteReserve:
|
|
24
|
+
quoteReserve: any;
|
|
25
25
|
/** classical base equilibrium target */
|
|
26
|
-
classicalBaseTarget:
|
|
26
|
+
classicalBaseTarget: any;
|
|
27
27
|
/** classical quote equilibrium target */
|
|
28
|
-
classicalQuoteTarget:
|
|
28
|
+
classicalQuoteTarget: any;
|
|
29
29
|
/** the user's existing base lp balance */
|
|
30
|
-
userBaseLpBalance:
|
|
30
|
+
userBaseLpBalance: any;
|
|
31
31
|
/** the user's existing quote lp balance */
|
|
32
|
-
userQuoteLpBalance:
|
|
32
|
+
userQuoteLpBalance: any;
|
|
33
33
|
/** The number of base that can be obtained when a user withdraws from the pool */
|
|
34
|
-
userBaseLpToTokenBalance:
|
|
34
|
+
userBaseLpToTokenBalance: any;
|
|
35
35
|
/** The number of quote that can be obtained when a user withdraws from the pool */
|
|
36
36
|
userQuoteLpToTokenBalance: BigNumber | null | undefined;
|
|
37
37
|
baseLpToTokenProportion: BigNumber | undefined;
|
|
38
38
|
quoteLpToTokenProportion: BigNumber | undefined;
|
|
39
|
-
isSinglePool:
|
|
39
|
+
isSinglePool: any;
|
|
40
40
|
userLpBalanceLoading: boolean;
|
|
41
41
|
userLpToTokenBalanceLoading: boolean;
|
|
42
42
|
userLpBalanceError: boolean;
|
|
@@ -39,13 +39,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
39
39
|
id: string;
|
|
40
40
|
symbol: string;
|
|
41
41
|
name: string;
|
|
42
|
-
decimals: any;
|
|
43
42
|
} | null;
|
|
44
43
|
quoteLpToken?: {
|
|
45
44
|
id: string;
|
|
46
45
|
symbol: string;
|
|
47
46
|
name: string;
|
|
48
|
-
decimals: any;
|
|
49
47
|
} | null;
|
|
50
48
|
} | null;
|
|
51
49
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -108,13 +106,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
108
106
|
id: string;
|
|
109
107
|
symbol: string;
|
|
110
108
|
name: string;
|
|
111
|
-
decimals: any;
|
|
112
109
|
} | null;
|
|
113
110
|
quoteLpToken?: {
|
|
114
111
|
id: string;
|
|
115
112
|
symbol: string;
|
|
116
113
|
name: string;
|
|
117
|
-
decimals: any;
|
|
118
114
|
} | null;
|
|
119
115
|
} | null;
|
|
120
116
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -177,13 +173,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
177
173
|
id: string;
|
|
178
174
|
symbol: string;
|
|
179
175
|
name: string;
|
|
180
|
-
decimals: any;
|
|
181
176
|
} | null;
|
|
182
177
|
quoteLpToken?: {
|
|
183
178
|
id: string;
|
|
184
179
|
symbol: string;
|
|
185
180
|
name: string;
|
|
186
|
-
decimals: any;
|
|
187
181
|
} | null;
|
|
188
182
|
} | null;
|
|
189
183
|
data: undefined;
|
|
@@ -246,13 +240,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
246
240
|
id: string;
|
|
247
241
|
symbol: string;
|
|
248
242
|
name: string;
|
|
249
|
-
decimals: any;
|
|
250
243
|
} | null;
|
|
251
244
|
quoteLpToken?: {
|
|
252
245
|
id: string;
|
|
253
246
|
symbol: string;
|
|
254
247
|
name: string;
|
|
255
|
-
decimals: any;
|
|
256
248
|
} | null;
|
|
257
249
|
} | null;
|
|
258
250
|
data: undefined;
|
|
@@ -315,13 +307,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
315
307
|
id: string;
|
|
316
308
|
symbol: string;
|
|
317
309
|
name: string;
|
|
318
|
-
decimals: any;
|
|
319
310
|
} | null;
|
|
320
311
|
quoteLpToken?: {
|
|
321
312
|
id: string;
|
|
322
313
|
symbol: string;
|
|
323
314
|
name: string;
|
|
324
|
-
decimals: any;
|
|
325
315
|
} | null;
|
|
326
316
|
} | null;
|
|
327
317
|
data: undefined;
|
|
@@ -15,11 +15,8 @@ export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
|
15
15
|
pair: Pair | null;
|
|
16
16
|
price: BigNumber | undefined;
|
|
17
17
|
invertedPrice: BigNumber | undefined;
|
|
18
|
-
reserveQuery: import("@tanstack/react-query").UseQueryResult<
|
|
19
|
-
|
|
20
|
-
quoteReserve: BigNumber;
|
|
21
|
-
} | null, Error>;
|
|
22
|
-
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
|
|
18
|
+
reserveQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
19
|
+
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
23
20
|
liquidityMinted: BigNumber | undefined;
|
|
24
21
|
poolTokenPercentage: BigNumber | undefined;
|
|
25
22
|
shareOfPool: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.15",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@dodoex/api": "3.0.3-morph.7",
|
|
62
62
|
"@dodoex/components": "3.0.3",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "^1.9.0-alpha.
|
|
64
|
+
"@dodoex/dodo-contract-request": "^1.9.0-alpha.13",
|
|
65
65
|
"@dodoex/icons": "^2.0.2",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|