@dodoex/widgets 3.0.2-zetachain.2 → 3.0.2-zetachain.4
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-Bct7Q4pS.js → helper-CqRCznln.js} +1 -1
- package/dist/{helper-DGhgtyWa.cjs → helper-DZ3ye1c9.cjs} +1 -1
- package/dist/index-BToZdlMJ.js +31 -0
- package/dist/{index-BNVFHPfO.cjs → index-C5rfYY2k.cjs} +5 -5
- package/dist/index-CGMYyxvx.js +78 -0
- package/dist/{index-qhP3zdCm.cjs → index-DB0mudMA.cjs} +2 -2
- package/dist/index-DlMZqi_Z.cjs +31 -0
- package/dist/{index-CfUgXFFJ.js → index-secJmzCd.js} +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/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +1 -1
- package/package.json +5 -9
- package/dist/index-BD9H2gwP.cjs +0 -31
- package/dist/index-CS7qpuAF.js +0 -78
- package/dist/index-DQAZ3zsA.js +0 -31
|
@@ -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,11 @@ 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
65
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
66
66
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
67
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
67
68
|
} | {
|
|
68
69
|
dashboard: {
|
|
69
70
|
fee?: string | null;
|
|
@@ -110,6 +111,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
110
111
|
isLoadingError: false;
|
|
111
112
|
isRefetchError: false;
|
|
112
113
|
isSuccess: true;
|
|
114
|
+
isPlaceholderData: false;
|
|
113
115
|
status: "success";
|
|
114
116
|
dataUpdatedAt: number;
|
|
115
117
|
errorUpdatedAt: number;
|
|
@@ -121,11 +123,11 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
121
123
|
isFetching: boolean;
|
|
122
124
|
isInitialLoading: boolean;
|
|
123
125
|
isPaused: boolean;
|
|
124
|
-
isPlaceholderData: boolean;
|
|
125
126
|
isRefetching: boolean;
|
|
126
127
|
isStale: boolean;
|
|
127
128
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
128
129
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
130
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
129
131
|
} | {
|
|
130
132
|
dashboard: {
|
|
131
133
|
fee?: string | null;
|
|
@@ -172,6 +174,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
172
174
|
isLoadingError: true;
|
|
173
175
|
isRefetchError: false;
|
|
174
176
|
isSuccess: false;
|
|
177
|
+
isPlaceholderData: false;
|
|
175
178
|
status: "error";
|
|
176
179
|
dataUpdatedAt: number;
|
|
177
180
|
errorUpdatedAt: number;
|
|
@@ -183,11 +186,11 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
183
186
|
isFetching: boolean;
|
|
184
187
|
isInitialLoading: boolean;
|
|
185
188
|
isPaused: boolean;
|
|
186
|
-
isPlaceholderData: boolean;
|
|
187
189
|
isRefetching: boolean;
|
|
188
190
|
isStale: boolean;
|
|
189
191
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
190
192
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
193
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
191
194
|
} | {
|
|
192
195
|
dashboard: {
|
|
193
196
|
fee?: string | null;
|
|
@@ -234,6 +237,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
234
237
|
isLoadingError: false;
|
|
235
238
|
isRefetchError: false;
|
|
236
239
|
isSuccess: false;
|
|
240
|
+
isPlaceholderData: false;
|
|
237
241
|
status: "pending";
|
|
238
242
|
dataUpdatedAt: number;
|
|
239
243
|
errorUpdatedAt: number;
|
|
@@ -245,11 +249,11 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
245
249
|
isFetching: boolean;
|
|
246
250
|
isInitialLoading: boolean;
|
|
247
251
|
isPaused: boolean;
|
|
248
|
-
isPlaceholderData: boolean;
|
|
249
252
|
isRefetching: boolean;
|
|
250
253
|
isStale: boolean;
|
|
251
254
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
252
255
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
256
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
253
257
|
} | {
|
|
254
258
|
dashboard: {
|
|
255
259
|
fee?: string | null;
|
|
@@ -295,6 +299,7 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
295
299
|
isLoadingError: false;
|
|
296
300
|
isRefetchError: false;
|
|
297
301
|
isSuccess: false;
|
|
302
|
+
isPlaceholderData: false;
|
|
298
303
|
status: "pending";
|
|
299
304
|
dataUpdatedAt: number;
|
|
300
305
|
errorUpdatedAt: number;
|
|
@@ -307,9 +312,72 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
307
312
|
isLoading: boolean;
|
|
308
313
|
isInitialLoading: boolean;
|
|
309
314
|
isPaused: boolean;
|
|
310
|
-
isPlaceholderData: boolean;
|
|
311
315
|
isRefetching: boolean;
|
|
312
316
|
isStale: boolean;
|
|
313
317
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
314
318
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
319
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
320
|
+
} | {
|
|
321
|
+
dashboard: {
|
|
322
|
+
fee?: string | null;
|
|
323
|
+
volume?: string | null;
|
|
324
|
+
totalFee?: string | null;
|
|
325
|
+
totalMtFee?: string | null;
|
|
326
|
+
totalVolume?: string | null;
|
|
327
|
+
tvl?: string | null;
|
|
328
|
+
turnover?: string | null;
|
|
329
|
+
liquidity?: string | null;
|
|
330
|
+
baseReserve?: string | null;
|
|
331
|
+
quoteReserve?: string | null;
|
|
332
|
+
baseVolume?: string | null;
|
|
333
|
+
quoteVolume?: string | null;
|
|
334
|
+
basePrice?: string | null;
|
|
335
|
+
quotePrice?: string | null;
|
|
336
|
+
price?: string | null;
|
|
337
|
+
baseFee?: string | null;
|
|
338
|
+
quoteFee?: string | null;
|
|
339
|
+
baseMtFee?: string | null;
|
|
340
|
+
quoteMtFee?: string | null;
|
|
341
|
+
pair?: string | null;
|
|
342
|
+
poolType?: string | null;
|
|
343
|
+
baseVolumeCumulative?: string | null;
|
|
344
|
+
quoteVolumeCumulative?: string | null;
|
|
345
|
+
baseAddress?: string | null;
|
|
346
|
+
baseSymbol?: string | null;
|
|
347
|
+
quoteAddress?: string | null;
|
|
348
|
+
quoteSymbol?: string | null;
|
|
349
|
+
network?: string | null;
|
|
350
|
+
pairAddress?: string | null;
|
|
351
|
+
txes?: number | null;
|
|
352
|
+
txesNear24h?: number | null;
|
|
353
|
+
txUsers?: number | null;
|
|
354
|
+
txUserNear24h?: number | null;
|
|
355
|
+
mtFeeNear24h?: string | null;
|
|
356
|
+
feeNear24h?: string | null;
|
|
357
|
+
} | null | undefined;
|
|
358
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
|
|
359
|
+
isError: false;
|
|
360
|
+
error: null;
|
|
361
|
+
isPending: false;
|
|
362
|
+
isLoading: false;
|
|
363
|
+
isLoadingError: false;
|
|
364
|
+
isRefetchError: false;
|
|
365
|
+
isSuccess: true;
|
|
366
|
+
isPlaceholderData: true;
|
|
367
|
+
status: "success";
|
|
368
|
+
dataUpdatedAt: number;
|
|
369
|
+
errorUpdatedAt: number;
|
|
370
|
+
failureCount: number;
|
|
371
|
+
failureReason: Error | null;
|
|
372
|
+
errorUpdateCount: number;
|
|
373
|
+
isFetched: boolean;
|
|
374
|
+
isFetchedAfterMount: boolean;
|
|
375
|
+
isFetching: boolean;
|
|
376
|
+
isInitialLoading: boolean;
|
|
377
|
+
isPaused: boolean;
|
|
378
|
+
isRefetching: boolean;
|
|
379
|
+
isStale: boolean;
|
|
380
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
381
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
382
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
315
383
|
};
|
|
@@ -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,11 @@ 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
36
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
37
37
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
38
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
38
39
|
} | {
|
|
39
40
|
dayDataList: {
|
|
40
41
|
volume: number;
|
|
@@ -51,6 +52,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
51
52
|
isLoadingError: false;
|
|
52
53
|
isRefetchError: false;
|
|
53
54
|
isSuccess: true;
|
|
55
|
+
isPlaceholderData: false;
|
|
54
56
|
status: "success";
|
|
55
57
|
dataUpdatedAt: number;
|
|
56
58
|
errorUpdatedAt: number;
|
|
@@ -62,11 +64,11 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
62
64
|
isFetching: boolean;
|
|
63
65
|
isInitialLoading: boolean;
|
|
64
66
|
isPaused: boolean;
|
|
65
|
-
isPlaceholderData: boolean;
|
|
66
67
|
isRefetching: boolean;
|
|
67
68
|
isStale: boolean;
|
|
68
69
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
69
70
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
71
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
70
72
|
} | {
|
|
71
73
|
dayDataList: {
|
|
72
74
|
volume: number;
|
|
@@ -83,6 +85,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
83
85
|
isLoadingError: true;
|
|
84
86
|
isRefetchError: false;
|
|
85
87
|
isSuccess: false;
|
|
88
|
+
isPlaceholderData: false;
|
|
86
89
|
status: "error";
|
|
87
90
|
dataUpdatedAt: number;
|
|
88
91
|
errorUpdatedAt: number;
|
|
@@ -94,11 +97,11 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
94
97
|
isFetching: boolean;
|
|
95
98
|
isInitialLoading: boolean;
|
|
96
99
|
isPaused: boolean;
|
|
97
|
-
isPlaceholderData: boolean;
|
|
98
100
|
isRefetching: boolean;
|
|
99
101
|
isStale: boolean;
|
|
100
102
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
101
103
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
104
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
102
105
|
} | {
|
|
103
106
|
dayDataList: {
|
|
104
107
|
volume: number;
|
|
@@ -115,6 +118,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
115
118
|
isLoadingError: false;
|
|
116
119
|
isRefetchError: false;
|
|
117
120
|
isSuccess: false;
|
|
121
|
+
isPlaceholderData: false;
|
|
118
122
|
status: "pending";
|
|
119
123
|
dataUpdatedAt: number;
|
|
120
124
|
errorUpdatedAt: number;
|
|
@@ -126,11 +130,11 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
126
130
|
isFetching: boolean;
|
|
127
131
|
isInitialLoading: boolean;
|
|
128
132
|
isPaused: boolean;
|
|
129
|
-
isPlaceholderData: boolean;
|
|
130
133
|
isRefetching: boolean;
|
|
131
134
|
isStale: boolean;
|
|
132
135
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
133
136
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
137
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
134
138
|
} | {
|
|
135
139
|
dayDataList: {
|
|
136
140
|
volume: number;
|
|
@@ -146,6 +150,7 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
146
150
|
isLoadingError: false;
|
|
147
151
|
isRefetchError: false;
|
|
148
152
|
isSuccess: false;
|
|
153
|
+
isPlaceholderData: false;
|
|
149
154
|
status: "pending";
|
|
150
155
|
dataUpdatedAt: number;
|
|
151
156
|
errorUpdatedAt: number;
|
|
@@ -158,9 +163,42 @@ export declare function usePoolDayData({ address, chainId, day, }: {
|
|
|
158
163
|
isLoading: boolean;
|
|
159
164
|
isInitialLoading: boolean;
|
|
160
165
|
isPaused: boolean;
|
|
161
|
-
isPlaceholderData: boolean;
|
|
162
166
|
isRefetching: boolean;
|
|
163
167
|
isStale: boolean;
|
|
164
168
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
165
169
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
170
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
171
|
+
} | {
|
|
172
|
+
dayDataList: {
|
|
173
|
+
volume: number;
|
|
174
|
+
fee: number;
|
|
175
|
+
traders: number;
|
|
176
|
+
date: number;
|
|
177
|
+
tvl: number;
|
|
178
|
+
}[];
|
|
179
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery;
|
|
180
|
+
isError: false;
|
|
181
|
+
error: null;
|
|
182
|
+
isPending: false;
|
|
183
|
+
isLoading: false;
|
|
184
|
+
isLoadingError: false;
|
|
185
|
+
isRefetchError: false;
|
|
186
|
+
isSuccess: true;
|
|
187
|
+
isPlaceholderData: true;
|
|
188
|
+
status: "success";
|
|
189
|
+
dataUpdatedAt: number;
|
|
190
|
+
errorUpdatedAt: number;
|
|
191
|
+
failureCount: number;
|
|
192
|
+
failureReason: Error | null;
|
|
193
|
+
errorUpdateCount: number;
|
|
194
|
+
isFetched: boolean;
|
|
195
|
+
isFetchedAfterMount: boolean;
|
|
196
|
+
isFetching: boolean;
|
|
197
|
+
isInitialLoading: boolean;
|
|
198
|
+
isPaused: boolean;
|
|
199
|
+
isRefetching: boolean;
|
|
200
|
+
isStale: boolean;
|
|
201
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
202
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
203
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDayDataQuery>;
|
|
166
204
|
};
|
|
@@ -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,11 @@ 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
51
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
52
52
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
53
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
53
54
|
} | {
|
|
54
55
|
swapList: {
|
|
55
56
|
id: string;
|
|
@@ -82,6 +83,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
82
83
|
isLoadingError: false;
|
|
83
84
|
isRefetchError: false;
|
|
84
85
|
isSuccess: true;
|
|
86
|
+
isPlaceholderData: false;
|
|
85
87
|
status: "success";
|
|
86
88
|
dataUpdatedAt: number;
|
|
87
89
|
errorUpdatedAt: number;
|
|
@@ -93,11 +95,11 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
93
95
|
isFetching: boolean;
|
|
94
96
|
isInitialLoading: boolean;
|
|
95
97
|
isPaused: boolean;
|
|
96
|
-
isPlaceholderData: boolean;
|
|
97
98
|
isRefetching: boolean;
|
|
98
99
|
isStale: boolean;
|
|
99
100
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
100
101
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
102
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
101
103
|
} | {
|
|
102
104
|
swapList: {
|
|
103
105
|
id: string;
|
|
@@ -130,6 +132,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
130
132
|
isLoadingError: true;
|
|
131
133
|
isRefetchError: false;
|
|
132
134
|
isSuccess: false;
|
|
135
|
+
isPlaceholderData: false;
|
|
133
136
|
status: "error";
|
|
134
137
|
dataUpdatedAt: number;
|
|
135
138
|
errorUpdatedAt: number;
|
|
@@ -141,11 +144,11 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
141
144
|
isFetching: boolean;
|
|
142
145
|
isInitialLoading: boolean;
|
|
143
146
|
isPaused: boolean;
|
|
144
|
-
isPlaceholderData: boolean;
|
|
145
147
|
isRefetching: boolean;
|
|
146
148
|
isStale: boolean;
|
|
147
149
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
148
150
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
151
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
149
152
|
} | {
|
|
150
153
|
swapList: {
|
|
151
154
|
id: string;
|
|
@@ -178,6 +181,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
178
181
|
isLoadingError: false;
|
|
179
182
|
isRefetchError: false;
|
|
180
183
|
isSuccess: false;
|
|
184
|
+
isPlaceholderData: false;
|
|
181
185
|
status: "pending";
|
|
182
186
|
dataUpdatedAt: number;
|
|
183
187
|
errorUpdatedAt: number;
|
|
@@ -189,11 +193,11 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
189
193
|
isFetching: boolean;
|
|
190
194
|
isInitialLoading: boolean;
|
|
191
195
|
isPaused: boolean;
|
|
192
|
-
isPlaceholderData: boolean;
|
|
193
196
|
isRefetching: boolean;
|
|
194
197
|
isStale: boolean;
|
|
195
198
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
196
199
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
200
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
197
201
|
} | {
|
|
198
202
|
swapList: {
|
|
199
203
|
id: string;
|
|
@@ -225,6 +229,7 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
225
229
|
isLoadingError: false;
|
|
226
230
|
isRefetchError: false;
|
|
227
231
|
isSuccess: false;
|
|
232
|
+
isPlaceholderData: false;
|
|
228
233
|
status: "pending";
|
|
229
234
|
dataUpdatedAt: number;
|
|
230
235
|
errorUpdatedAt: number;
|
|
@@ -237,9 +242,58 @@ export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
|
237
242
|
isLoading: boolean;
|
|
238
243
|
isInitialLoading: boolean;
|
|
239
244
|
isPaused: boolean;
|
|
240
|
-
isPlaceholderData: boolean;
|
|
241
245
|
isRefetching: boolean;
|
|
242
246
|
isStale: boolean;
|
|
243
247
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
244
248
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
249
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
250
|
+
} | {
|
|
251
|
+
swapList: {
|
|
252
|
+
id: string;
|
|
253
|
+
timestamp: any;
|
|
254
|
+
from: any;
|
|
255
|
+
baseVolume: any;
|
|
256
|
+
quoteVolume: any;
|
|
257
|
+
feeBase: any;
|
|
258
|
+
feeQuote: any;
|
|
259
|
+
amountIn: any;
|
|
260
|
+
amountOut: any;
|
|
261
|
+
fromToken: {
|
|
262
|
+
id: string;
|
|
263
|
+
symbol: string;
|
|
264
|
+
name: string;
|
|
265
|
+
decimals: any;
|
|
266
|
+
};
|
|
267
|
+
toToken: {
|
|
268
|
+
id: string;
|
|
269
|
+
symbol: string;
|
|
270
|
+
name: string;
|
|
271
|
+
decimals: any;
|
|
272
|
+
};
|
|
273
|
+
}[] | undefined;
|
|
274
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery;
|
|
275
|
+
isError: false;
|
|
276
|
+
error: null;
|
|
277
|
+
isPending: false;
|
|
278
|
+
isLoading: false;
|
|
279
|
+
isLoadingError: false;
|
|
280
|
+
isRefetchError: false;
|
|
281
|
+
isSuccess: true;
|
|
282
|
+
isPlaceholderData: true;
|
|
283
|
+
status: "success";
|
|
284
|
+
dataUpdatedAt: number;
|
|
285
|
+
errorUpdatedAt: number;
|
|
286
|
+
failureCount: number;
|
|
287
|
+
failureReason: Error | null;
|
|
288
|
+
errorUpdateCount: number;
|
|
289
|
+
isFetched: boolean;
|
|
290
|
+
isFetchedAfterMount: boolean;
|
|
291
|
+
isFetching: boolean;
|
|
292
|
+
isInitialLoading: boolean;
|
|
293
|
+
isPaused: boolean;
|
|
294
|
+
isRefetching: boolean;
|
|
295
|
+
isStale: boolean;
|
|
296
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
297
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
298
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolSwapListQuery>;
|
|
245
299
|
};
|
|
@@ -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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
2
1
|
import { Pair } from '@uniswap/v2-sdk';
|
|
3
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
4
|
export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
5
5
|
pool?: {
|
|
6
6
|
type: string;
|
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.4",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.0.3-zetachain.
|
|
61
|
+
"@dodoex/api": "3.0.3-zetachain.2",
|
|
62
62
|
"@dodoex/components": "3.0.3",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
64
|
"@dodoex/dodo-contract-request": "1.12.0-alpha.4",
|
|
65
65
|
"@dodoex/icons": "^2.0.2",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|
|
68
|
-
"@ethersproject/bignumber": "^5.
|
|
69
|
-
"@ethersproject/contracts": "^5.
|
|
68
|
+
"@ethersproject/bignumber": "^5.8.0",
|
|
69
|
+
"@ethersproject/contracts": "^5.8.0",
|
|
70
70
|
"@lingui/core": "^4.3.0",
|
|
71
71
|
"@lingui/macro": "^4.3.0",
|
|
72
72
|
"@lingui/react": "^4.3.0",
|
|
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",
|
|
@@ -114,8 +114,6 @@
|
|
|
114
114
|
"@babel/preset-typescript": "^7.16.7",
|
|
115
115
|
"@lingui/babel-preset-react": "^2.9.2",
|
|
116
116
|
"@lingui/cli": "^4.3.0",
|
|
117
|
-
"@nomicfoundation/hardhat-network-helpers": "^1.0.6",
|
|
118
|
-
"@nomiclabs/hardhat-ethers": "^2.1.1",
|
|
119
117
|
"@rollup/plugin-babel": "^6.0.4",
|
|
120
118
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
121
119
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -138,8 +136,6 @@
|
|
|
138
136
|
"babel-plugin-macros": "^3.1.0",
|
|
139
137
|
"babel-runtime": "^6.26.0",
|
|
140
138
|
"dotenv": "^16.0.2",
|
|
141
|
-
"ethers": "^5.7.1",
|
|
142
|
-
"hardhat": "^2.22.13",
|
|
143
139
|
"identity-obj-proxy": "^3.0.0",
|
|
144
140
|
"jest": "^29.0.3",
|
|
145
141
|
"jest-environment-hardhat": "^1.1.9",
|