@dodoex/widgets 3.0.2-zetachain.2 → 3.0.2-zetachain.3
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-DGhgtyWa.cjs → helper-Asjf2o9L.cjs} +1 -1
- package/dist/{helper-Bct7Q4pS.js → helper-DtoGAo2z.js} +1 -1
- package/dist/index-B9GTgvq3.cjs +31 -0
- package/dist/index-C0lAvh5a.js +31 -0
- package/dist/{index-qhP3zdCm.cjs → index-C1sXz6ud.cjs} +1 -1
- package/dist/{index-CfUgXFFJ.js → index-CVNmUwtE.js} +1 -1
- package/dist/{index-CS7qpuAF.js → index-HJYSN8RE.js} +1 -1
- package/dist/{index-BNVFHPfO.cjs → index-tmGTINnp.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +43 -5
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +43 -5
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +70 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +38 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +73 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +43 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +59 -5
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +87 -5
- package/package.json +2 -2
- package/dist/index-BD9H2gwP.cjs +0 -31
- package/dist/index-DQAZ3zsA.js +0 -31
|
@@ -63,6 +63,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
63
63
|
isLoadingError: false;
|
|
64
64
|
isRefetchError: true;
|
|
65
65
|
isSuccess: false;
|
|
66
|
+
isPlaceholderData: false;
|
|
66
67
|
status: "error";
|
|
67
68
|
dataUpdatedAt: number;
|
|
68
69
|
errorUpdatedAt: number;
|
|
@@ -74,11 +75,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
74
75
|
isFetching: boolean;
|
|
75
76
|
isInitialLoading: boolean;
|
|
76
77
|
isPaused: boolean;
|
|
77
|
-
isPlaceholderData: boolean;
|
|
78
78
|
isRefetching: boolean;
|
|
79
79
|
isStale: boolean;
|
|
80
80
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
81
81
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
82
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
82
83
|
} | {
|
|
83
84
|
poolDetail: {
|
|
84
85
|
address: string;
|
|
@@ -139,6 +140,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
139
140
|
isLoadingError: false;
|
|
140
141
|
isRefetchError: false;
|
|
141
142
|
isSuccess: true;
|
|
143
|
+
isPlaceholderData: false;
|
|
142
144
|
status: "success";
|
|
143
145
|
dataUpdatedAt: number;
|
|
144
146
|
errorUpdatedAt: number;
|
|
@@ -150,11 +152,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
150
152
|
isFetching: boolean;
|
|
151
153
|
isInitialLoading: boolean;
|
|
152
154
|
isPaused: boolean;
|
|
153
|
-
isPlaceholderData: boolean;
|
|
154
155
|
isRefetching: boolean;
|
|
155
156
|
isStale: boolean;
|
|
156
157
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
157
158
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
159
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
158
160
|
} | {
|
|
159
161
|
poolDetail: {
|
|
160
162
|
address: string;
|
|
@@ -215,6 +217,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
215
217
|
isLoadingError: true;
|
|
216
218
|
isRefetchError: false;
|
|
217
219
|
isSuccess: false;
|
|
220
|
+
isPlaceholderData: false;
|
|
218
221
|
status: "error";
|
|
219
222
|
dataUpdatedAt: number;
|
|
220
223
|
errorUpdatedAt: number;
|
|
@@ -226,11 +229,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
226
229
|
isFetching: boolean;
|
|
227
230
|
isInitialLoading: boolean;
|
|
228
231
|
isPaused: boolean;
|
|
229
|
-
isPlaceholderData: boolean;
|
|
230
232
|
isRefetching: boolean;
|
|
231
233
|
isStale: boolean;
|
|
232
234
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
233
235
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
236
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
234
237
|
} | {
|
|
235
238
|
poolDetail: {
|
|
236
239
|
address: string;
|
|
@@ -291,6 +294,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
291
294
|
isLoadingError: false;
|
|
292
295
|
isRefetchError: false;
|
|
293
296
|
isSuccess: false;
|
|
297
|
+
isPlaceholderData: false;
|
|
294
298
|
status: "pending";
|
|
295
299
|
dataUpdatedAt: number;
|
|
296
300
|
errorUpdatedAt: number;
|
|
@@ -302,11 +306,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
302
306
|
isFetching: boolean;
|
|
303
307
|
isInitialLoading: boolean;
|
|
304
308
|
isPaused: boolean;
|
|
305
|
-
isPlaceholderData: boolean;
|
|
306
309
|
isRefetching: boolean;
|
|
307
310
|
isStale: boolean;
|
|
308
311
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
309
312
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
313
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
310
314
|
} | {
|
|
311
315
|
poolDetail: {
|
|
312
316
|
address: string;
|
|
@@ -366,6 +370,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
366
370
|
isLoadingError: false;
|
|
367
371
|
isRefetchError: false;
|
|
368
372
|
isSuccess: false;
|
|
373
|
+
isPlaceholderData: false;
|
|
369
374
|
status: "pending";
|
|
370
375
|
dataUpdatedAt: number;
|
|
371
376
|
errorUpdatedAt: number;
|
|
@@ -378,9 +383,86 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
378
383
|
isLoading: boolean;
|
|
379
384
|
isInitialLoading: boolean;
|
|
380
385
|
isPaused: boolean;
|
|
381
|
-
isPlaceholderData: boolean;
|
|
382
386
|
isRefetching: boolean;
|
|
383
387
|
isStale: boolean;
|
|
384
388
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
385
389
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
390
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
391
|
+
} | {
|
|
392
|
+
poolDetail: {
|
|
393
|
+
address: string;
|
|
394
|
+
type: PoolType;
|
|
395
|
+
chainId: ChainId;
|
|
396
|
+
baseToken: TokenInfo;
|
|
397
|
+
quoteToken: TokenInfo;
|
|
398
|
+
miningAddress: string;
|
|
399
|
+
apy: {
|
|
400
|
+
miningBaseApy?: any | null;
|
|
401
|
+
miningQuoteApy?: any | null;
|
|
402
|
+
transactionBaseApy?: any | null;
|
|
403
|
+
transactionQuoteApy?: any | null;
|
|
404
|
+
metromMiningApy?: any | null;
|
|
405
|
+
} | null | undefined;
|
|
406
|
+
baseApy: string | undefined;
|
|
407
|
+
quoteApy: string | undefined;
|
|
408
|
+
isCpPool: boolean;
|
|
409
|
+
cpAddress: string | undefined;
|
|
410
|
+
cpLiquidator: string | undefined;
|
|
411
|
+
cpCreator: string | undefined;
|
|
412
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
413
|
+
id: string;
|
|
414
|
+
creator: any;
|
|
415
|
+
owner?: any | null;
|
|
416
|
+
traderCount: any;
|
|
417
|
+
volumeBaseToken: any;
|
|
418
|
+
volumeQuoteToken: any;
|
|
419
|
+
volumeUSD: any;
|
|
420
|
+
feeBase: any;
|
|
421
|
+
feeQuote: any;
|
|
422
|
+
mtFeeRate: any;
|
|
423
|
+
lpFeeRate: any;
|
|
424
|
+
i?: any | null;
|
|
425
|
+
k?: any | null;
|
|
426
|
+
baseReserve: any;
|
|
427
|
+
quoteReserve: any;
|
|
428
|
+
createdAtTimestamp: any;
|
|
429
|
+
lastTradePrice: any;
|
|
430
|
+
baseLpToken?: {
|
|
431
|
+
id: string;
|
|
432
|
+
symbol: string;
|
|
433
|
+
name: string;
|
|
434
|
+
decimals: any;
|
|
435
|
+
} | null;
|
|
436
|
+
quoteLpToken?: {
|
|
437
|
+
id: string;
|
|
438
|
+
symbol: string;
|
|
439
|
+
name: string;
|
|
440
|
+
decimals: any;
|
|
441
|
+
} | null;
|
|
442
|
+
} | null;
|
|
443
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
444
|
+
isError: false;
|
|
445
|
+
error: null;
|
|
446
|
+
isPending: false;
|
|
447
|
+
isLoading: false;
|
|
448
|
+
isLoadingError: false;
|
|
449
|
+
isRefetchError: false;
|
|
450
|
+
isSuccess: true;
|
|
451
|
+
isPlaceholderData: true;
|
|
452
|
+
status: "success";
|
|
453
|
+
dataUpdatedAt: number;
|
|
454
|
+
errorUpdatedAt: number;
|
|
455
|
+
failureCount: number;
|
|
456
|
+
failureReason: Error | null;
|
|
457
|
+
errorUpdateCount: number;
|
|
458
|
+
isFetched: boolean;
|
|
459
|
+
isFetchedAfterMount: boolean;
|
|
460
|
+
isFetching: boolean;
|
|
461
|
+
isInitialLoading: boolean;
|
|
462
|
+
isPaused: boolean;
|
|
463
|
+
isRefetching: boolean;
|
|
464
|
+
isStale: boolean;
|
|
465
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
466
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
467
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
386
468
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-zetachain.
|
|
3
|
+
"version": "3.0.2-zetachain.3",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@reduxjs/toolkit": "^1.6.1",
|
|
74
74
|
"@semantic-release/changelog": "^6.0.1",
|
|
75
75
|
"@semantic-release/git": "^10.0.1",
|
|
76
|
-
"@tanstack/react-query": "^5.
|
|
76
|
+
"@tanstack/react-query": "^5.74.3",
|
|
77
77
|
"@uniswap/sdk-core": "^5.9.0",
|
|
78
78
|
"@uniswap/v2-sdk": "^4.6.2",
|
|
79
79
|
"@web3-react/core": "^8.2.3",
|