@dodoex/widgets 3.0.2-zetachain.1 → 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.
@@ -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.1",
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,13 +73,13 @@
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.18.1",
76
+ "@tanstack/react-query": "^5.74.3",
77
77
  "@uniswap/sdk-core": "^5.9.0",
78
78
  "@uniswap/v2-sdk": "^4.6.2",
79
- "@web3-react/core": "8.2.0",
80
- "@web3-react/eip1193": "8.2.0",
81
- "@web3-react/metamask": "8.2.1",
82
- "@web3-react/types": "8.2.0",
79
+ "@web3-react/core": "^8.2.3",
80
+ "@web3-react/eip1193": "^8.2.3",
81
+ "@web3-react/metamask": "^8.2.4",
82
+ "@web3-react/types": "^8.2.3",
83
83
  "@web3-react/walletconnect-v2": "8.3.6",
84
84
  "axios": "^0.27.2",
85
85
  "bignumber.js": "^9.0.2",
@@ -101,7 +101,7 @@
101
101
  "rmc-date-picker": "^6.0.10",
102
102
  "semantic-release": "^19.0.2",
103
103
  "tiny-invariant": "^1.1.0",
104
- "zustand": "^4.5.5"
104
+ "zustand": "4.4.0"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@babel/runtime": ">=7.17.0",