@dodoex/widgets 3.9.0 → 3.10.0-stable.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/dist/{helper-GJHB4oq8.cjs → helper-B2Q89SzA.cjs} +1 -1
- package/dist/{helper-sBrBH-H_.js → helper-BvBWZ4Tw.js} +1 -1
- package/dist/{index-DKnPJ0nB.cjs → index-BLv_p4Xx.cjs} +2 -2
- package/dist/index-BNGWM8Q2.cjs +31 -0
- package/dist/index-BwZ52ioH.js +31 -0
- package/dist/{index-CuS8svoM.js → index-CI4GIzjg.js} +1 -1
- package/dist/{index-CcMfM2YS.cjs → index-DMmSVVoT.cjs} +5 -5
- package/dist/{index-C8rp6R1p.js → index-tuNXjjrO.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +2 -1
- package/dist/types/components/WidgetContainer.d.ts +2 -1
- package/dist/types/constants/api.d.ts +7 -7
- package/dist/types/constants/tokenList.d.ts +17 -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/Submission/useSubmissionStatusColor.d.ts +1 -1
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +7 -7
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +7 -7
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +99 -22
- package/dist/types/hooks/Token/useSelectChainList.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenStatus.d.ts +3 -3
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -1
- package/dist/types/hooks/useGraphQLRequests.d.ts +3 -2
- package/dist/types/utils/chains.d.ts +1 -1
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +27 -1
- 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 +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 +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 +7 -7
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +192 -12
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +42 -12
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +122 -12
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +43 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +10 -4
- 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 +264 -13
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
- package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
- package/package.json +5 -5
- package/dist/index-DOzaJQ79.js +0 -31
- package/dist/index-pvGJ8Vpc.cjs +0 -31
|
@@ -15,28 +15,28 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
15
15
|
};
|
|
16
16
|
}): {
|
|
17
17
|
/** existing base lp balance */
|
|
18
|
-
totalBaseLpBalance:
|
|
18
|
+
totalBaseLpBalance: BigNumber | null | undefined;
|
|
19
19
|
/** existing quote lp balance */
|
|
20
|
-
totalQuoteLpBalance:
|
|
20
|
+
totalQuoteLpBalance: BigNumber | null | undefined;
|
|
21
21
|
/** the total deposited base lp balance */
|
|
22
|
-
baseReserve:
|
|
22
|
+
baseReserve: BigNumber | undefined;
|
|
23
23
|
/** the total deposited quote lp balance */
|
|
24
|
-
quoteReserve:
|
|
24
|
+
quoteReserve: BigNumber | undefined;
|
|
25
25
|
/** classical base equilibrium target */
|
|
26
|
-
classicalBaseTarget:
|
|
26
|
+
classicalBaseTarget: BigNumber | undefined;
|
|
27
27
|
/** classical quote equilibrium target */
|
|
28
|
-
classicalQuoteTarget:
|
|
28
|
+
classicalQuoteTarget: BigNumber | undefined;
|
|
29
29
|
/** the user's existing base lp balance */
|
|
30
|
-
userBaseLpBalance:
|
|
30
|
+
userBaseLpBalance: Balance;
|
|
31
31
|
/** the user's existing quote lp balance */
|
|
32
|
-
userQuoteLpBalance:
|
|
32
|
+
userQuoteLpBalance: Balance;
|
|
33
33
|
/** The number of base that can be obtained when a user withdraws from the pool */
|
|
34
|
-
userBaseLpToTokenBalance:
|
|
34
|
+
userBaseLpToTokenBalance: BigNumber | undefined;
|
|
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: boolean;
|
|
40
40
|
userLpBalanceLoading: boolean;
|
|
41
41
|
userLpToTokenBalanceLoading: boolean;
|
|
42
42
|
userLpBalanceError: boolean;
|
|
@@ -1,10 +1,61 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
1
|
+
import { ChainId, PoolType } from '@dodoex/api';
|
|
2
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
2
3
|
export declare function usePoolDetail({ id, chainId, }: {
|
|
3
4
|
id: string | undefined;
|
|
4
5
|
chainId: ChainId | undefined;
|
|
5
6
|
}): {
|
|
6
|
-
poolDetail:
|
|
7
|
-
|
|
7
|
+
poolDetail: {
|
|
8
|
+
address: string;
|
|
9
|
+
type: PoolType;
|
|
10
|
+
chainId: ChainId;
|
|
11
|
+
baseToken: TokenInfo;
|
|
12
|
+
quoteToken: TokenInfo;
|
|
13
|
+
miningAddress: string;
|
|
14
|
+
apy: {
|
|
15
|
+
miningBaseApy?: any | null;
|
|
16
|
+
miningQuoteApy?: any | null;
|
|
17
|
+
transactionBaseApy?: any | null;
|
|
18
|
+
transactionQuoteApy?: any | null;
|
|
19
|
+
metromMiningApy?: any | null;
|
|
20
|
+
} | null | undefined;
|
|
21
|
+
baseApy: string | undefined;
|
|
22
|
+
quoteApy: string | undefined;
|
|
23
|
+
isCpPool: boolean;
|
|
24
|
+
cpAddress: string | undefined;
|
|
25
|
+
cpLiquidator: string | undefined;
|
|
26
|
+
cpCreator: string | undefined;
|
|
27
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
28
|
+
id: string;
|
|
29
|
+
creator: any;
|
|
30
|
+
owner?: any | null;
|
|
31
|
+
traderCount: any;
|
|
32
|
+
volumeBaseToken: any;
|
|
33
|
+
volumeQuoteToken: any;
|
|
34
|
+
volumeUSD: any;
|
|
35
|
+
feeBase: any;
|
|
36
|
+
feeQuote: any;
|
|
37
|
+
mtFeeRate: any;
|
|
38
|
+
lpFeeRate: any;
|
|
39
|
+
i?: any | null;
|
|
40
|
+
k?: any | null;
|
|
41
|
+
baseReserve: any;
|
|
42
|
+
quoteReserve: any;
|
|
43
|
+
createdAtTimestamp: any;
|
|
44
|
+
lastTradePrice: any;
|
|
45
|
+
baseLpToken?: {
|
|
46
|
+
id: string;
|
|
47
|
+
symbol: string;
|
|
48
|
+
name: string;
|
|
49
|
+
decimals: any;
|
|
50
|
+
} | null;
|
|
51
|
+
quoteLpToken?: {
|
|
52
|
+
id: string;
|
|
53
|
+
symbol: string;
|
|
54
|
+
name: string;
|
|
55
|
+
decimals: any;
|
|
56
|
+
} | null;
|
|
57
|
+
} | null;
|
|
58
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
8
59
|
error: Error;
|
|
9
60
|
isError: true;
|
|
10
61
|
isPending: false;
|
|
@@ -26,11 +77,61 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
26
77
|
isPlaceholderData: boolean;
|
|
27
78
|
isRefetching: boolean;
|
|
28
79
|
isStale: boolean;
|
|
29
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
80
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
30
81
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
31
82
|
} | {
|
|
32
|
-
poolDetail:
|
|
33
|
-
|
|
83
|
+
poolDetail: {
|
|
84
|
+
address: string;
|
|
85
|
+
type: PoolType;
|
|
86
|
+
chainId: ChainId;
|
|
87
|
+
baseToken: TokenInfo;
|
|
88
|
+
quoteToken: TokenInfo;
|
|
89
|
+
miningAddress: string;
|
|
90
|
+
apy: {
|
|
91
|
+
miningBaseApy?: any | null;
|
|
92
|
+
miningQuoteApy?: any | null;
|
|
93
|
+
transactionBaseApy?: any | null;
|
|
94
|
+
transactionQuoteApy?: any | null;
|
|
95
|
+
metromMiningApy?: any | null;
|
|
96
|
+
} | null | undefined;
|
|
97
|
+
baseApy: string | undefined;
|
|
98
|
+
quoteApy: string | undefined;
|
|
99
|
+
isCpPool: boolean;
|
|
100
|
+
cpAddress: string | undefined;
|
|
101
|
+
cpLiquidator: string | undefined;
|
|
102
|
+
cpCreator: string | undefined;
|
|
103
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
104
|
+
id: string;
|
|
105
|
+
creator: any;
|
|
106
|
+
owner?: any | null;
|
|
107
|
+
traderCount: any;
|
|
108
|
+
volumeBaseToken: any;
|
|
109
|
+
volumeQuoteToken: any;
|
|
110
|
+
volumeUSD: any;
|
|
111
|
+
feeBase: any;
|
|
112
|
+
feeQuote: any;
|
|
113
|
+
mtFeeRate: any;
|
|
114
|
+
lpFeeRate: any;
|
|
115
|
+
i?: any | null;
|
|
116
|
+
k?: any | null;
|
|
117
|
+
baseReserve: any;
|
|
118
|
+
quoteReserve: any;
|
|
119
|
+
createdAtTimestamp: any;
|
|
120
|
+
lastTradePrice: any;
|
|
121
|
+
baseLpToken?: {
|
|
122
|
+
id: string;
|
|
123
|
+
symbol: string;
|
|
124
|
+
name: string;
|
|
125
|
+
decimals: any;
|
|
126
|
+
} | null;
|
|
127
|
+
quoteLpToken?: {
|
|
128
|
+
id: string;
|
|
129
|
+
symbol: string;
|
|
130
|
+
name: string;
|
|
131
|
+
decimals: any;
|
|
132
|
+
} | null;
|
|
133
|
+
} | null;
|
|
134
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
34
135
|
error: null;
|
|
35
136
|
isError: false;
|
|
36
137
|
isPending: false;
|
|
@@ -52,10 +153,60 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
52
153
|
isPlaceholderData: boolean;
|
|
53
154
|
isRefetching: boolean;
|
|
54
155
|
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
156
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
56
157
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
158
|
} | {
|
|
58
|
-
poolDetail:
|
|
159
|
+
poolDetail: {
|
|
160
|
+
address: string;
|
|
161
|
+
type: PoolType;
|
|
162
|
+
chainId: ChainId;
|
|
163
|
+
baseToken: TokenInfo;
|
|
164
|
+
quoteToken: TokenInfo;
|
|
165
|
+
miningAddress: string;
|
|
166
|
+
apy: {
|
|
167
|
+
miningBaseApy?: any | null;
|
|
168
|
+
miningQuoteApy?: any | null;
|
|
169
|
+
transactionBaseApy?: any | null;
|
|
170
|
+
transactionQuoteApy?: any | null;
|
|
171
|
+
metromMiningApy?: any | null;
|
|
172
|
+
} | null | undefined;
|
|
173
|
+
baseApy: string | undefined;
|
|
174
|
+
quoteApy: string | undefined;
|
|
175
|
+
isCpPool: boolean;
|
|
176
|
+
cpAddress: string | undefined;
|
|
177
|
+
cpLiquidator: string | undefined;
|
|
178
|
+
cpCreator: string | undefined;
|
|
179
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
180
|
+
id: string;
|
|
181
|
+
creator: any;
|
|
182
|
+
owner?: any | null;
|
|
183
|
+
traderCount: any;
|
|
184
|
+
volumeBaseToken: any;
|
|
185
|
+
volumeQuoteToken: any;
|
|
186
|
+
volumeUSD: any;
|
|
187
|
+
feeBase: any;
|
|
188
|
+
feeQuote: any;
|
|
189
|
+
mtFeeRate: any;
|
|
190
|
+
lpFeeRate: any;
|
|
191
|
+
i?: any | null;
|
|
192
|
+
k?: any | null;
|
|
193
|
+
baseReserve: any;
|
|
194
|
+
quoteReserve: any;
|
|
195
|
+
createdAtTimestamp: any;
|
|
196
|
+
lastTradePrice: any;
|
|
197
|
+
baseLpToken?: {
|
|
198
|
+
id: string;
|
|
199
|
+
symbol: string;
|
|
200
|
+
name: string;
|
|
201
|
+
decimals: any;
|
|
202
|
+
} | null;
|
|
203
|
+
quoteLpToken?: {
|
|
204
|
+
id: string;
|
|
205
|
+
symbol: string;
|
|
206
|
+
name: string;
|
|
207
|
+
decimals: any;
|
|
208
|
+
} | null;
|
|
209
|
+
} | null;
|
|
59
210
|
data: undefined;
|
|
60
211
|
error: Error;
|
|
61
212
|
isError: true;
|
|
@@ -78,10 +229,60 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
78
229
|
isPlaceholderData: boolean;
|
|
79
230
|
isRefetching: boolean;
|
|
80
231
|
isStale: boolean;
|
|
81
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
232
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
82
233
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
83
234
|
} | {
|
|
84
|
-
poolDetail:
|
|
235
|
+
poolDetail: {
|
|
236
|
+
address: string;
|
|
237
|
+
type: PoolType;
|
|
238
|
+
chainId: ChainId;
|
|
239
|
+
baseToken: TokenInfo;
|
|
240
|
+
quoteToken: TokenInfo;
|
|
241
|
+
miningAddress: string;
|
|
242
|
+
apy: {
|
|
243
|
+
miningBaseApy?: any | null;
|
|
244
|
+
miningQuoteApy?: any | null;
|
|
245
|
+
transactionBaseApy?: any | null;
|
|
246
|
+
transactionQuoteApy?: any | null;
|
|
247
|
+
metromMiningApy?: any | null;
|
|
248
|
+
} | null | undefined;
|
|
249
|
+
baseApy: string | undefined;
|
|
250
|
+
quoteApy: string | undefined;
|
|
251
|
+
isCpPool: boolean;
|
|
252
|
+
cpAddress: string | undefined;
|
|
253
|
+
cpLiquidator: string | undefined;
|
|
254
|
+
cpCreator: string | undefined;
|
|
255
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
256
|
+
id: string;
|
|
257
|
+
creator: any;
|
|
258
|
+
owner?: any | null;
|
|
259
|
+
traderCount: any;
|
|
260
|
+
volumeBaseToken: any;
|
|
261
|
+
volumeQuoteToken: any;
|
|
262
|
+
volumeUSD: any;
|
|
263
|
+
feeBase: any;
|
|
264
|
+
feeQuote: any;
|
|
265
|
+
mtFeeRate: any;
|
|
266
|
+
lpFeeRate: any;
|
|
267
|
+
i?: any | null;
|
|
268
|
+
k?: any | null;
|
|
269
|
+
baseReserve: any;
|
|
270
|
+
quoteReserve: any;
|
|
271
|
+
createdAtTimestamp: any;
|
|
272
|
+
lastTradePrice: any;
|
|
273
|
+
baseLpToken?: {
|
|
274
|
+
id: string;
|
|
275
|
+
symbol: string;
|
|
276
|
+
name: string;
|
|
277
|
+
decimals: any;
|
|
278
|
+
} | null;
|
|
279
|
+
quoteLpToken?: {
|
|
280
|
+
id: string;
|
|
281
|
+
symbol: string;
|
|
282
|
+
name: string;
|
|
283
|
+
decimals: any;
|
|
284
|
+
} | null;
|
|
285
|
+
} | null;
|
|
85
286
|
data: undefined;
|
|
86
287
|
error: null;
|
|
87
288
|
isError: false;
|
|
@@ -104,10 +305,60 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
104
305
|
isPlaceholderData: boolean;
|
|
105
306
|
isRefetching: boolean;
|
|
106
307
|
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
308
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
108
309
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
310
|
} | {
|
|
110
|
-
poolDetail:
|
|
311
|
+
poolDetail: {
|
|
312
|
+
address: string;
|
|
313
|
+
type: PoolType;
|
|
314
|
+
chainId: ChainId;
|
|
315
|
+
baseToken: TokenInfo;
|
|
316
|
+
quoteToken: TokenInfo;
|
|
317
|
+
miningAddress: string;
|
|
318
|
+
apy: {
|
|
319
|
+
miningBaseApy?: any | null;
|
|
320
|
+
miningQuoteApy?: any | null;
|
|
321
|
+
transactionBaseApy?: any | null;
|
|
322
|
+
transactionQuoteApy?: any | null;
|
|
323
|
+
metromMiningApy?: any | null;
|
|
324
|
+
} | null | undefined;
|
|
325
|
+
baseApy: string | undefined;
|
|
326
|
+
quoteApy: string | undefined;
|
|
327
|
+
isCpPool: boolean;
|
|
328
|
+
cpAddress: string | undefined;
|
|
329
|
+
cpLiquidator: string | undefined;
|
|
330
|
+
cpCreator: string | undefined;
|
|
331
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
332
|
+
id: string;
|
|
333
|
+
creator: any;
|
|
334
|
+
owner?: any | null;
|
|
335
|
+
traderCount: any;
|
|
336
|
+
volumeBaseToken: any;
|
|
337
|
+
volumeQuoteToken: any;
|
|
338
|
+
volumeUSD: any;
|
|
339
|
+
feeBase: any;
|
|
340
|
+
feeQuote: any;
|
|
341
|
+
mtFeeRate: any;
|
|
342
|
+
lpFeeRate: any;
|
|
343
|
+
i?: any | null;
|
|
344
|
+
k?: any | null;
|
|
345
|
+
baseReserve: any;
|
|
346
|
+
quoteReserve: any;
|
|
347
|
+
createdAtTimestamp: any;
|
|
348
|
+
lastTradePrice: any;
|
|
349
|
+
baseLpToken?: {
|
|
350
|
+
id: string;
|
|
351
|
+
symbol: string;
|
|
352
|
+
name: string;
|
|
353
|
+
decimals: any;
|
|
354
|
+
} | null;
|
|
355
|
+
quoteLpToken?: {
|
|
356
|
+
id: string;
|
|
357
|
+
symbol: string;
|
|
358
|
+
name: string;
|
|
359
|
+
decimals: any;
|
|
360
|
+
} | null;
|
|
361
|
+
} | null;
|
|
111
362
|
data: undefined;
|
|
112
363
|
error: null;
|
|
113
364
|
isError: false;
|
|
@@ -130,6 +381,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
130
381
|
isPlaceholderData: boolean;
|
|
131
382
|
isRefetching: boolean;
|
|
132
383
|
isStale: boolean;
|
|
133
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
384
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
134
385
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
135
386
|
};
|
|
@@ -3,14 +3,14 @@ import { Theme } from '@dodoex/components';
|
|
|
3
3
|
import BigNumber from 'bignumber.js';
|
|
4
4
|
export declare const getPoolTypeTag: (type: PoolType, quoteReserve: BigNumber | undefined | null, theme: Theme) => {
|
|
5
5
|
typeLabel: string;
|
|
6
|
-
typeColor:
|
|
7
|
-
typeBgColor:
|
|
6
|
+
typeColor: string;
|
|
7
|
+
typeBgColor: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const usePoolTypeTag: ({ type, quoteReserve, }: {
|
|
10
10
|
type: PoolType;
|
|
11
11
|
quoteReserve: BigNumber | undefined | null;
|
|
12
12
|
}) => {
|
|
13
13
|
typeLabel: string;
|
|
14
|
-
typeColor:
|
|
15
|
-
typeBgColor:
|
|
14
|
+
typeColor: string;
|
|
15
|
+
typeBgColor: string;
|
|
16
16
|
};
|
|
@@ -15,8 +15,11 @@ 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
|
-
|
|
18
|
+
reserveQuery: import("@tanstack/react-query").UseQueryResult<{
|
|
19
|
+
baseReserve: BigNumber;
|
|
20
|
+
quoteReserve: BigNumber;
|
|
21
|
+
} | null, Error>;
|
|
22
|
+
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
|
|
20
23
|
liquidityMinted: BigNumber | undefined;
|
|
21
24
|
poolTokenPercentage: BigNumber | undefined;
|
|
22
25
|
shareOfPool: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
|
|
1
|
+
import { AMMV3Api, ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
|
|
2
2
|
import { TokenInfo } from '../../hooks/Token';
|
|
3
3
|
import { OperatePool } from './PoolOperate/types';
|
|
4
|
-
export declare const poolApi:
|
|
5
|
-
export declare const ammV3Api:
|
|
4
|
+
export declare const poolApi: PoolApi;
|
|
5
|
+
export declare const ammV3Api: AMMV3Api;
|
|
6
6
|
export type FetchLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
|
|
7
7
|
export type FetchMyLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchMyLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
|
|
8
8
|
export type FetchMyCreateListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchDashboardPairList)['__apiType'], undefined>>['dashboard_pairs_list']>['list'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-stable.10",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"release": "semantic-release",
|
|
24
24
|
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
25
25
|
"release.npm-publish": "npm publish --access public",
|
|
26
|
-
"release.npm-publish-beta": "npm publish --tag beta",
|
|
26
|
+
"release.npm-publish-beta": "yarn run build && npm publish --tag beta",
|
|
27
27
|
"test": "jest src",
|
|
28
28
|
"test:e2e": "jest e2e"
|
|
29
29
|
},
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.
|
|
61
|
+
"@dodoex/api": "3.5.0-stable.5",
|
|
62
62
|
"@dodoex/components": "^3.1.0",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "
|
|
64
|
+
"@dodoex/dodo-contract-request": "1.25.0-alpha.3",
|
|
65
65
|
"@dodoex/icons": "^2.0.3",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|
|
@@ -152,4 +152,4 @@
|
|
|
152
152
|
"ts-jest": "^29.0.1",
|
|
153
153
|
"typescript": "^5.6.3"
|
|
154
154
|
}
|
|
155
|
-
}
|
|
155
|
+
}
|