@dodoex/widgets 3.13.0 → 3.14.1-react.1
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/LICENSE +674 -674
- package/README.md +70 -70
- package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
- package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
- package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/helper-CQ8Clocj.js +1 -0
- package/dist/{helper-BBc2ohzp.cjs → helper-Dzp_C5O7.cjs} +1 -1
- package/dist/index-BV7yhAFZ.cjs +78 -0
- package/dist/index-CM1znFdK.cjs +12 -0
- package/dist/index-CWlMhnOc.js +40 -0
- package/dist/index-CdnUu5l1.js +12 -0
- package/dist/index-Ci_MIjDG.js +78 -0
- package/dist/index-rXrwk4Lb.cjs +40 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/chart/components/BaseButton.d.ts +1 -1
- package/dist/types/components/chart/components/Input.d.ts +1 -1
- package/dist/types/components/chart/depth-chart/index.styled.d.ts +11 -6
- package/dist/types/components/chart/depth-chart-v2/index.styled.d.ts +8 -3
- package/dist/types/components/chart/liquidity-chart/index.styled.d.ts +2 -2
- package/dist/types/hooks/Submission/spec.d.ts +0 -1
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +49 -5
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +49 -5
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +76 -5
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +2 -2
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +4 -4
- package/dist/types/utils/formatter.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +3 -3
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +44 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +79 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +49 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +65 -5
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +93 -5
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +3 -3
- package/package.json +162 -162
- package/dist/helper-FLUhm18E.js +0 -1
- package/dist/index-C6Oqw6zm.js +0 -78
- package/dist/index-CAQP8oNY.cjs +0 -12
- package/dist/index-CKZqMWBf.js +0 -40
- package/dist/index-CnenhEse.js +0 -12
- package/dist/index-DL-6149F.cjs +0 -40
- package/dist/index-vajkxsgg.cjs +0 -78
|
@@ -6,8 +6,8 @@ export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
|
6
6
|
status: MiningStatusE;
|
|
7
7
|
miningStatusList: {
|
|
8
8
|
status: import("@dodoex/api/dist/types/services/mining/utils").MiningStatusE;
|
|
9
|
-
firstStartTime:
|
|
10
|
-
lastEndTime:
|
|
11
|
-
currentTime:
|
|
9
|
+
firstStartTime: BigNumber | undefined;
|
|
10
|
+
lastEndTime: BigNumber | undefined;
|
|
11
|
+
currentTime: BigNumber;
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
2
|
-
import { BigNumber } from 'bignumber.js';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { TokenInfo } from '../../../../hooks/Token';
|
|
5
4
|
export default function DepthAndLiquidityChart({ baseToken, quoteToken, pmmParams, pmmModel, midPrice, }: {
|
|
@@ -22,5 +22,5 @@ export declare const useCreatePmm: ({ selectedVersion, baseAmount, quoteAmount,
|
|
|
22
22
|
R: number;
|
|
23
23
|
} | undefined;
|
|
24
24
|
pmmModel: import("@dodoex/api").PMMModel | undefined;
|
|
25
|
-
midPrice:
|
|
25
|
+
midPrice: BigNumber | undefined;
|
|
26
26
|
};
|
|
@@ -32,6 +32,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
32
32
|
isLoadingError: false;
|
|
33
33
|
isRefetchError: true;
|
|
34
34
|
isSuccess: false;
|
|
35
|
+
isPlaceholderData: false;
|
|
35
36
|
status: "error";
|
|
36
37
|
dataUpdatedAt: number;
|
|
37
38
|
errorUpdatedAt: number;
|
|
@@ -43,11 +44,12 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
43
44
|
isFetching: boolean;
|
|
44
45
|
isInitialLoading: boolean;
|
|
45
46
|
isPaused: boolean;
|
|
46
|
-
isPlaceholderData: boolean;
|
|
47
47
|
isRefetching: boolean;
|
|
48
48
|
isStale: boolean;
|
|
49
|
+
isEnabled: boolean;
|
|
49
50
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
50
51
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
52
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
51
53
|
} | {
|
|
52
54
|
isLoading: boolean;
|
|
53
55
|
errorRefetch: (() => void) | undefined;
|
|
@@ -59,6 +61,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
59
61
|
isLoadingError: false;
|
|
60
62
|
isRefetchError: false;
|
|
61
63
|
isSuccess: true;
|
|
64
|
+
isPlaceholderData: false;
|
|
62
65
|
status: "success";
|
|
63
66
|
dataUpdatedAt: number;
|
|
64
67
|
errorUpdatedAt: number;
|
|
@@ -70,11 +73,12 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
70
73
|
isFetching: boolean;
|
|
71
74
|
isInitialLoading: boolean;
|
|
72
75
|
isPaused: boolean;
|
|
73
|
-
isPlaceholderData: boolean;
|
|
74
76
|
isRefetching: boolean;
|
|
75
77
|
isStale: boolean;
|
|
78
|
+
isEnabled: boolean;
|
|
76
79
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
77
80
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
81
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
78
82
|
} | {
|
|
79
83
|
isLoading: boolean;
|
|
80
84
|
errorRefetch: (() => void) | undefined;
|
|
@@ -86,6 +90,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
86
90
|
isLoadingError: true;
|
|
87
91
|
isRefetchError: false;
|
|
88
92
|
isSuccess: false;
|
|
93
|
+
isPlaceholderData: false;
|
|
89
94
|
status: "error";
|
|
90
95
|
dataUpdatedAt: number;
|
|
91
96
|
errorUpdatedAt: number;
|
|
@@ -97,11 +102,12 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
97
102
|
isFetching: boolean;
|
|
98
103
|
isInitialLoading: boolean;
|
|
99
104
|
isPaused: boolean;
|
|
100
|
-
isPlaceholderData: boolean;
|
|
101
105
|
isRefetching: boolean;
|
|
102
106
|
isStale: boolean;
|
|
107
|
+
isEnabled: boolean;
|
|
103
108
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
104
109
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
110
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
105
111
|
} | {
|
|
106
112
|
isLoading: boolean;
|
|
107
113
|
errorRefetch: (() => void) | undefined;
|
|
@@ -113,6 +119,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
113
119
|
isLoadingError: false;
|
|
114
120
|
isRefetchError: false;
|
|
115
121
|
isSuccess: false;
|
|
122
|
+
isPlaceholderData: false;
|
|
116
123
|
status: "pending";
|
|
117
124
|
dataUpdatedAt: number;
|
|
118
125
|
errorUpdatedAt: number;
|
|
@@ -124,11 +131,12 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
124
131
|
isFetching: boolean;
|
|
125
132
|
isInitialLoading: boolean;
|
|
126
133
|
isPaused: boolean;
|
|
127
|
-
isPlaceholderData: boolean;
|
|
128
134
|
isRefetching: boolean;
|
|
129
135
|
isStale: boolean;
|
|
136
|
+
isEnabled: boolean;
|
|
130
137
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
131
138
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
139
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
132
140
|
} | {
|
|
133
141
|
isLoading: boolean;
|
|
134
142
|
errorRefetch: (() => void) | undefined;
|
|
@@ -140,6 +148,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
140
148
|
isLoadingError: false;
|
|
141
149
|
isRefetchError: false;
|
|
142
150
|
isSuccess: false;
|
|
151
|
+
isPlaceholderData: false;
|
|
143
152
|
status: "pending";
|
|
144
153
|
dataUpdatedAt: number;
|
|
145
154
|
errorUpdatedAt: number;
|
|
@@ -151,9 +160,39 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
151
160
|
isFetching: boolean;
|
|
152
161
|
isInitialLoading: boolean;
|
|
153
162
|
isPaused: boolean;
|
|
154
|
-
isPlaceholderData: boolean;
|
|
155
163
|
isRefetching: boolean;
|
|
156
164
|
isStale: boolean;
|
|
165
|
+
isEnabled: boolean;
|
|
157
166
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
158
167
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
168
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
169
|
+
} | {
|
|
170
|
+
isLoading: boolean;
|
|
171
|
+
errorRefetch: (() => void) | undefined;
|
|
172
|
+
list: LpItem[];
|
|
173
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery;
|
|
174
|
+
isError: false;
|
|
175
|
+
error: null;
|
|
176
|
+
isPending: false;
|
|
177
|
+
isLoadingError: false;
|
|
178
|
+
isRefetchError: false;
|
|
179
|
+
isSuccess: true;
|
|
180
|
+
isPlaceholderData: true;
|
|
181
|
+
status: "success";
|
|
182
|
+
dataUpdatedAt: number;
|
|
183
|
+
errorUpdatedAt: number;
|
|
184
|
+
failureCount: number;
|
|
185
|
+
failureReason: Error | null;
|
|
186
|
+
errorUpdateCount: number;
|
|
187
|
+
isFetched: boolean;
|
|
188
|
+
isFetchedAfterMount: boolean;
|
|
189
|
+
isFetching: boolean;
|
|
190
|
+
isInitialLoading: boolean;
|
|
191
|
+
isPaused: boolean;
|
|
192
|
+
isRefetching: boolean;
|
|
193
|
+
isStale: boolean;
|
|
194
|
+
isEnabled: boolean;
|
|
195
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
196
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
197
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
159
198
|
};
|
|
@@ -48,6 +48,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
48
48
|
isLoadingError: false;
|
|
49
49
|
isRefetchError: true;
|
|
50
50
|
isSuccess: false;
|
|
51
|
+
isPlaceholderData: false;
|
|
51
52
|
status: "error";
|
|
52
53
|
dataUpdatedAt: number;
|
|
53
54
|
errorUpdatedAt: number;
|
|
@@ -59,11 +60,12 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
59
60
|
isFetching: boolean;
|
|
60
61
|
isInitialLoading: boolean;
|
|
61
62
|
isPaused: boolean;
|
|
62
|
-
isPlaceholderData: boolean;
|
|
63
63
|
isRefetching: boolean;
|
|
64
64
|
isStale: boolean;
|
|
65
|
+
isEnabled: boolean;
|
|
65
66
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
66
67
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
68
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
67
69
|
} | {
|
|
68
70
|
dashboard: {
|
|
69
71
|
fee?: string | null;
|
|
@@ -110,6 +112,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
110
112
|
isLoadingError: false;
|
|
111
113
|
isRefetchError: false;
|
|
112
114
|
isSuccess: true;
|
|
115
|
+
isPlaceholderData: false;
|
|
113
116
|
status: "success";
|
|
114
117
|
dataUpdatedAt: number;
|
|
115
118
|
errorUpdatedAt: number;
|
|
@@ -121,11 +124,12 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
121
124
|
isFetching: boolean;
|
|
122
125
|
isInitialLoading: boolean;
|
|
123
126
|
isPaused: boolean;
|
|
124
|
-
isPlaceholderData: boolean;
|
|
125
127
|
isRefetching: boolean;
|
|
126
128
|
isStale: boolean;
|
|
129
|
+
isEnabled: boolean;
|
|
127
130
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
128
131
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
132
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
129
133
|
} | {
|
|
130
134
|
dashboard: {
|
|
131
135
|
fee?: string | null;
|
|
@@ -172,6 +176,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
172
176
|
isLoadingError: true;
|
|
173
177
|
isRefetchError: false;
|
|
174
178
|
isSuccess: false;
|
|
179
|
+
isPlaceholderData: false;
|
|
175
180
|
status: "error";
|
|
176
181
|
dataUpdatedAt: number;
|
|
177
182
|
errorUpdatedAt: number;
|
|
@@ -183,11 +188,12 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
183
188
|
isFetching: boolean;
|
|
184
189
|
isInitialLoading: boolean;
|
|
185
190
|
isPaused: boolean;
|
|
186
|
-
isPlaceholderData: boolean;
|
|
187
191
|
isRefetching: boolean;
|
|
188
192
|
isStale: boolean;
|
|
193
|
+
isEnabled: boolean;
|
|
189
194
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
190
195
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
196
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
191
197
|
} | {
|
|
192
198
|
dashboard: {
|
|
193
199
|
fee?: string | null;
|
|
@@ -234,6 +240,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
234
240
|
isLoadingError: false;
|
|
235
241
|
isRefetchError: false;
|
|
236
242
|
isSuccess: false;
|
|
243
|
+
isPlaceholderData: false;
|
|
237
244
|
status: "pending";
|
|
238
245
|
dataUpdatedAt: number;
|
|
239
246
|
errorUpdatedAt: number;
|
|
@@ -245,11 +252,12 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
245
252
|
isFetching: boolean;
|
|
246
253
|
isInitialLoading: boolean;
|
|
247
254
|
isPaused: boolean;
|
|
248
|
-
isPlaceholderData: boolean;
|
|
249
255
|
isRefetching: boolean;
|
|
250
256
|
isStale: boolean;
|
|
257
|
+
isEnabled: boolean;
|
|
251
258
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
252
259
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
260
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
253
261
|
} | {
|
|
254
262
|
dashboard: {
|
|
255
263
|
fee?: string | null;
|
|
@@ -295,6 +303,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
295
303
|
isLoadingError: false;
|
|
296
304
|
isRefetchError: false;
|
|
297
305
|
isSuccess: false;
|
|
306
|
+
isPlaceholderData: false;
|
|
298
307
|
status: "pending";
|
|
299
308
|
dataUpdatedAt: number;
|
|
300
309
|
errorUpdatedAt: number;
|
|
@@ -307,9 +316,74 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
307
316
|
isLoading: boolean;
|
|
308
317
|
isInitialLoading: boolean;
|
|
309
318
|
isPaused: boolean;
|
|
310
|
-
isPlaceholderData: boolean;
|
|
311
319
|
isRefetching: boolean;
|
|
312
320
|
isStale: boolean;
|
|
321
|
+
isEnabled: boolean;
|
|
313
322
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
314
323
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
324
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
325
|
+
} | {
|
|
326
|
+
dashboard: {
|
|
327
|
+
fee?: string | null;
|
|
328
|
+
volume?: string | null;
|
|
329
|
+
totalFee?: string | null;
|
|
330
|
+
totalMtFee?: string | null;
|
|
331
|
+
totalVolume?: string | null;
|
|
332
|
+
tvl?: string | null;
|
|
333
|
+
turnover?: string | null;
|
|
334
|
+
liquidity?: string | null;
|
|
335
|
+
baseReserve?: string | null;
|
|
336
|
+
quoteReserve?: string | null;
|
|
337
|
+
baseVolume?: string | null;
|
|
338
|
+
quoteVolume?: string | null;
|
|
339
|
+
basePrice?: string | null;
|
|
340
|
+
quotePrice?: string | null;
|
|
341
|
+
price?: string | null;
|
|
342
|
+
baseFee?: string | null;
|
|
343
|
+
quoteFee?: string | null;
|
|
344
|
+
baseMtFee?: string | null;
|
|
345
|
+
quoteMtFee?: string | null;
|
|
346
|
+
pair?: string | null;
|
|
347
|
+
poolType?: string | null;
|
|
348
|
+
baseVolumeCumulative?: string | null;
|
|
349
|
+
quoteVolumeCumulative?: string | null;
|
|
350
|
+
baseAddress?: string | null;
|
|
351
|
+
baseSymbol?: string | null;
|
|
352
|
+
quoteAddress?: string | null;
|
|
353
|
+
quoteSymbol?: string | null;
|
|
354
|
+
network?: string | null;
|
|
355
|
+
pairAddress?: string | null;
|
|
356
|
+
txes?: number | null;
|
|
357
|
+
txesNear24h?: number | null;
|
|
358
|
+
txUsers?: number | null;
|
|
359
|
+
txUserNear24h?: number | null;
|
|
360
|
+
mtFeeNear24h?: string | null;
|
|
361
|
+
feeNear24h?: string | null;
|
|
362
|
+
} | null | undefined;
|
|
363
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
|
|
364
|
+
isError: false;
|
|
365
|
+
error: null;
|
|
366
|
+
isPending: false;
|
|
367
|
+
isLoading: false;
|
|
368
|
+
isLoadingError: false;
|
|
369
|
+
isRefetchError: false;
|
|
370
|
+
isSuccess: true;
|
|
371
|
+
isPlaceholderData: true;
|
|
372
|
+
status: "success";
|
|
373
|
+
dataUpdatedAt: number;
|
|
374
|
+
errorUpdatedAt: number;
|
|
375
|
+
failureCount: number;
|
|
376
|
+
failureReason: Error | null;
|
|
377
|
+
errorUpdateCount: number;
|
|
378
|
+
isFetched: boolean;
|
|
379
|
+
isFetchedAfterMount: boolean;
|
|
380
|
+
isFetching: boolean;
|
|
381
|
+
isInitialLoading: boolean;
|
|
382
|
+
isPaused: boolean;
|
|
383
|
+
isRefetching: boolean;
|
|
384
|
+
isStale: boolean;
|
|
385
|
+
isEnabled: boolean;
|
|
386
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
387
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
388
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
315
389
|
};
|
|
@@ -19,6 +19,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
19
19
|
isLoadingError: false;
|
|
20
20
|
isRefetchError: true;
|
|
21
21
|
isSuccess: false;
|
|
22
|
+
isPlaceholderData: false;
|
|
22
23
|
status: "error";
|
|
23
24
|
dataUpdatedAt: number;
|
|
24
25
|
errorUpdatedAt: number;
|
|
@@ -30,11 +31,12 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
30
31
|
isFetching: boolean;
|
|
31
32
|
isInitialLoading: boolean;
|
|
32
33
|
isPaused: boolean;
|
|
33
|
-
isPlaceholderData: boolean;
|
|
34
34
|
isRefetching: boolean;
|
|
35
35
|
isStale: boolean;
|
|
36
|
+
isEnabled: boolean;
|
|
36
37
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
37
38
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
39
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
38
40
|
} | {
|
|
39
41
|
dayDataList: {
|
|
40
42
|
volume: number;
|
|
@@ -51,6 +53,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
51
53
|
isLoadingError: false;
|
|
52
54
|
isRefetchError: false;
|
|
53
55
|
isSuccess: true;
|
|
56
|
+
isPlaceholderData: false;
|
|
54
57
|
status: "success";
|
|
55
58
|
dataUpdatedAt: number;
|
|
56
59
|
errorUpdatedAt: number;
|
|
@@ -62,11 +65,12 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
62
65
|
isFetching: boolean;
|
|
63
66
|
isInitialLoading: boolean;
|
|
64
67
|
isPaused: boolean;
|
|
65
|
-
isPlaceholderData: boolean;
|
|
66
68
|
isRefetching: boolean;
|
|
67
69
|
isStale: boolean;
|
|
70
|
+
isEnabled: boolean;
|
|
68
71
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
69
72
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
73
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
70
74
|
} | {
|
|
71
75
|
dayDataList: {
|
|
72
76
|
volume: number;
|
|
@@ -83,6 +87,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
83
87
|
isLoadingError: true;
|
|
84
88
|
isRefetchError: false;
|
|
85
89
|
isSuccess: false;
|
|
90
|
+
isPlaceholderData: false;
|
|
86
91
|
status: "error";
|
|
87
92
|
dataUpdatedAt: number;
|
|
88
93
|
errorUpdatedAt: number;
|
|
@@ -94,11 +99,12 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
94
99
|
isFetching: boolean;
|
|
95
100
|
isInitialLoading: boolean;
|
|
96
101
|
isPaused: boolean;
|
|
97
|
-
isPlaceholderData: boolean;
|
|
98
102
|
isRefetching: boolean;
|
|
99
103
|
isStale: boolean;
|
|
104
|
+
isEnabled: boolean;
|
|
100
105
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
101
106
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
107
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
102
108
|
} | {
|
|
103
109
|
dayDataList: {
|
|
104
110
|
volume: number;
|
|
@@ -115,6 +121,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
115
121
|
isLoadingError: false;
|
|
116
122
|
isRefetchError: false;
|
|
117
123
|
isSuccess: false;
|
|
124
|
+
isPlaceholderData: false;
|
|
118
125
|
status: "pending";
|
|
119
126
|
dataUpdatedAt: number;
|
|
120
127
|
errorUpdatedAt: number;
|
|
@@ -126,11 +133,12 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
126
133
|
isFetching: boolean;
|
|
127
134
|
isInitialLoading: boolean;
|
|
128
135
|
isPaused: boolean;
|
|
129
|
-
isPlaceholderData: boolean;
|
|
130
136
|
isRefetching: boolean;
|
|
131
137
|
isStale: boolean;
|
|
138
|
+
isEnabled: boolean;
|
|
132
139
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
133
140
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
141
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
134
142
|
} | {
|
|
135
143
|
dayDataList: {
|
|
136
144
|
volume: number;
|
|
@@ -146,6 +154,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
146
154
|
isLoadingError: false;
|
|
147
155
|
isRefetchError: false;
|
|
148
156
|
isSuccess: false;
|
|
157
|
+
isPlaceholderData: false;
|
|
149
158
|
status: "pending";
|
|
150
159
|
dataUpdatedAt: number;
|
|
151
160
|
errorUpdatedAt: number;
|
|
@@ -158,9 +167,44 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
158
167
|
isLoading: boolean;
|
|
159
168
|
isInitialLoading: boolean;
|
|
160
169
|
isPaused: boolean;
|
|
161
|
-
isPlaceholderData: boolean;
|
|
162
170
|
isRefetching: boolean;
|
|
163
171
|
isStale: boolean;
|
|
172
|
+
isEnabled: boolean;
|
|
164
173
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
165
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>;
|
|
166
210
|
};
|
|
@@ -34,6 +34,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
34
34
|
isLoadingError: false;
|
|
35
35
|
isRefetchError: true;
|
|
36
36
|
isSuccess: false;
|
|
37
|
+
isPlaceholderData: false;
|
|
37
38
|
status: "error";
|
|
38
39
|
dataUpdatedAt: number;
|
|
39
40
|
errorUpdatedAt: number;
|
|
@@ -45,11 +46,12 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
45
46
|
isFetching: boolean;
|
|
46
47
|
isInitialLoading: boolean;
|
|
47
48
|
isPaused: boolean;
|
|
48
|
-
isPlaceholderData: boolean;
|
|
49
49
|
isRefetching: boolean;
|
|
50
50
|
isStale: boolean;
|
|
51
|
+
isEnabled: boolean;
|
|
51
52
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
52
53
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
53
55
|
} | {
|
|
54
56
|
swapList: {
|
|
55
57
|
id: string;
|
|
@@ -82,6 +84,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
82
84
|
isLoadingError: false;
|
|
83
85
|
isRefetchError: false;
|
|
84
86
|
isSuccess: true;
|
|
87
|
+
isPlaceholderData: false;
|
|
85
88
|
status: "success";
|
|
86
89
|
dataUpdatedAt: number;
|
|
87
90
|
errorUpdatedAt: number;
|
|
@@ -93,11 +96,12 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
93
96
|
isFetching: boolean;
|
|
94
97
|
isInitialLoading: boolean;
|
|
95
98
|
isPaused: boolean;
|
|
96
|
-
isPlaceholderData: boolean;
|
|
97
99
|
isRefetching: boolean;
|
|
98
100
|
isStale: boolean;
|
|
101
|
+
isEnabled: boolean;
|
|
99
102
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
100
103
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
104
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
101
105
|
} | {
|
|
102
106
|
swapList: {
|
|
103
107
|
id: string;
|
|
@@ -130,6 +134,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
130
134
|
isLoadingError: true;
|
|
131
135
|
isRefetchError: false;
|
|
132
136
|
isSuccess: false;
|
|
137
|
+
isPlaceholderData: false;
|
|
133
138
|
status: "error";
|
|
134
139
|
dataUpdatedAt: number;
|
|
135
140
|
errorUpdatedAt: number;
|
|
@@ -141,11 +146,12 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
141
146
|
isFetching: boolean;
|
|
142
147
|
isInitialLoading: boolean;
|
|
143
148
|
isPaused: boolean;
|
|
144
|
-
isPlaceholderData: boolean;
|
|
145
149
|
isRefetching: boolean;
|
|
146
150
|
isStale: boolean;
|
|
151
|
+
isEnabled: boolean;
|
|
147
152
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
148
153
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
154
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
149
155
|
} | {
|
|
150
156
|
swapList: {
|
|
151
157
|
id: string;
|
|
@@ -178,6 +184,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
178
184
|
isLoadingError: false;
|
|
179
185
|
isRefetchError: false;
|
|
180
186
|
isSuccess: false;
|
|
187
|
+
isPlaceholderData: false;
|
|
181
188
|
status: "pending";
|
|
182
189
|
dataUpdatedAt: number;
|
|
183
190
|
errorUpdatedAt: number;
|
|
@@ -189,11 +196,12 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
189
196
|
isFetching: boolean;
|
|
190
197
|
isInitialLoading: boolean;
|
|
191
198
|
isPaused: boolean;
|
|
192
|
-
isPlaceholderData: boolean;
|
|
193
199
|
isRefetching: boolean;
|
|
194
200
|
isStale: boolean;
|
|
201
|
+
isEnabled: boolean;
|
|
195
202
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
196
203
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
204
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
197
205
|
} | {
|
|
198
206
|
swapList: {
|
|
199
207
|
id: string;
|
|
@@ -225,6 +233,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
225
233
|
isLoadingError: false;
|
|
226
234
|
isRefetchError: false;
|
|
227
235
|
isSuccess: false;
|
|
236
|
+
isPlaceholderData: false;
|
|
228
237
|
status: "pending";
|
|
229
238
|
dataUpdatedAt: number;
|
|
230
239
|
errorUpdatedAt: number;
|
|
@@ -237,9 +246,60 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
237
246
|
isLoading: boolean;
|
|
238
247
|
isInitialLoading: boolean;
|
|
239
248
|
isPaused: boolean;
|
|
240
|
-
isPlaceholderData: boolean;
|
|
241
249
|
isRefetching: boolean;
|
|
242
250
|
isStale: boolean;
|
|
251
|
+
isEnabled: boolean;
|
|
243
252
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
244
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>;
|
|
245
305
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import { BigNumber } from 'bignumber.js';
|
|
3
2
|
type Balance = BigNumber | null | undefined;
|
|
4
3
|
export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): undefined[] | BigNumber[];
|
|
5
4
|
export declare function usePoolBalanceInfo({ account, pool, }: {
|