@dodoex/widgets 3.19.0 → 3.20.0-alpha.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-DUWFcWe6.js → helper-C__Hw6Nv.js} +1 -1
- package/dist/{helper-C1OYS4SC.cjs → helper-DHlCN-58.cjs} +1 -1
- package/dist/{index-BdB2BCQe.cjs → index-1E8fSg97.cjs} +1 -1
- package/dist/{index-ZV1FQySp.js → index-C3eOZR2q.js} +2 -2
- package/dist/{index-BGe7caLE.js → index-C4PCWK26.js} +1 -1
- package/dist/{index-XzRE8z_c.js → index-CEFnzcQR.js} +1 -1
- package/dist/{index-Cm0O00ow.cjs → index-CoDKjBJD.cjs} +2 -2
- package/dist/{index-CQl4nYsF.cjs → index-LN0r92OR.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/constants/api.d.ts +4 -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/Swap/useForecastSlippageList.d.ts +142 -6
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +143 -7
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +248 -12
- package/dist/types/hooks/Token/useSelectChainList.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenStatus.d.ts +4 -4
- 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/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +28 -2
- 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 +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +9 -3
- 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 +122 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +336 -8
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +156 -8
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +252 -8
- 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 +11 -5
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +8 -8
- package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +13 -13
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +422 -9
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +5 -2
- package/dist/types/widgets/PoolWidget/utils.d.ts +3 -3
- package/package.json +162 -162
|
@@ -25,7 +25,7 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
25
25
|
isLoading: boolean;
|
|
26
26
|
errorRefetch: (() => void) | undefined;
|
|
27
27
|
list: LpItem[];
|
|
28
|
-
data:
|
|
28
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery;
|
|
29
29
|
error: Error;
|
|
30
30
|
isError: true;
|
|
31
31
|
isPending: false;
|
|
@@ -47,14 +47,14 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
47
47
|
isRefetching: boolean;
|
|
48
48
|
isStale: boolean;
|
|
49
49
|
isEnabled: boolean;
|
|
50
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
50
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
51
51
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
52
|
-
promise: Promise<
|
|
52
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
53
53
|
} | {
|
|
54
54
|
isLoading: boolean;
|
|
55
55
|
errorRefetch: (() => void) | undefined;
|
|
56
56
|
list: LpItem[];
|
|
57
|
-
data:
|
|
57
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery;
|
|
58
58
|
error: null;
|
|
59
59
|
isError: false;
|
|
60
60
|
isPending: false;
|
|
@@ -76,7 +76,123 @@ export declare function useLiquidityProviders({ pool, }: {
|
|
|
76
76
|
isRefetching: boolean;
|
|
77
77
|
isStale: boolean;
|
|
78
78
|
isEnabled: boolean;
|
|
79
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
79
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
80
80
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
81
|
-
promise: Promise<
|
|
81
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
82
|
+
} | {
|
|
83
|
+
isLoading: boolean;
|
|
84
|
+
errorRefetch: (() => void) | undefined;
|
|
85
|
+
list: LpItem[];
|
|
86
|
+
data: undefined;
|
|
87
|
+
error: Error;
|
|
88
|
+
isError: true;
|
|
89
|
+
isPending: false;
|
|
90
|
+
isLoadingError: true;
|
|
91
|
+
isRefetchError: false;
|
|
92
|
+
isSuccess: false;
|
|
93
|
+
isPlaceholderData: false;
|
|
94
|
+
status: "error";
|
|
95
|
+
dataUpdatedAt: number;
|
|
96
|
+
errorUpdatedAt: number;
|
|
97
|
+
failureCount: number;
|
|
98
|
+
failureReason: Error | null;
|
|
99
|
+
errorUpdateCount: number;
|
|
100
|
+
isFetched: boolean;
|
|
101
|
+
isFetchedAfterMount: boolean;
|
|
102
|
+
isFetching: boolean;
|
|
103
|
+
isInitialLoading: boolean;
|
|
104
|
+
isPaused: boolean;
|
|
105
|
+
isRefetching: boolean;
|
|
106
|
+
isStale: boolean;
|
|
107
|
+
isEnabled: boolean;
|
|
108
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
109
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
110
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
111
|
+
} | {
|
|
112
|
+
isLoading: boolean;
|
|
113
|
+
errorRefetch: (() => void) | undefined;
|
|
114
|
+
list: LpItem[];
|
|
115
|
+
data: undefined;
|
|
116
|
+
error: null;
|
|
117
|
+
isError: false;
|
|
118
|
+
isPending: true;
|
|
119
|
+
isLoadingError: false;
|
|
120
|
+
isRefetchError: false;
|
|
121
|
+
isSuccess: false;
|
|
122
|
+
isPlaceholderData: false;
|
|
123
|
+
status: "pending";
|
|
124
|
+
dataUpdatedAt: number;
|
|
125
|
+
errorUpdatedAt: number;
|
|
126
|
+
failureCount: number;
|
|
127
|
+
failureReason: Error | null;
|
|
128
|
+
errorUpdateCount: number;
|
|
129
|
+
isFetched: boolean;
|
|
130
|
+
isFetchedAfterMount: boolean;
|
|
131
|
+
isFetching: boolean;
|
|
132
|
+
isInitialLoading: boolean;
|
|
133
|
+
isPaused: boolean;
|
|
134
|
+
isRefetching: boolean;
|
|
135
|
+
isStale: boolean;
|
|
136
|
+
isEnabled: boolean;
|
|
137
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
138
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
139
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery>;
|
|
140
|
+
} | {
|
|
141
|
+
isLoading: boolean;
|
|
142
|
+
errorRefetch: (() => void) | undefined;
|
|
143
|
+
list: LpItem[];
|
|
144
|
+
data: undefined;
|
|
145
|
+
error: null;
|
|
146
|
+
isError: false;
|
|
147
|
+
isPending: true;
|
|
148
|
+
isLoadingError: false;
|
|
149
|
+
isRefetchError: false;
|
|
150
|
+
isSuccess: false;
|
|
151
|
+
isPlaceholderData: false;
|
|
152
|
+
status: "pending";
|
|
153
|
+
dataUpdatedAt: number;
|
|
154
|
+
errorUpdatedAt: number;
|
|
155
|
+
failureCount: number;
|
|
156
|
+
failureReason: Error | null;
|
|
157
|
+
errorUpdateCount: number;
|
|
158
|
+
isFetched: boolean;
|
|
159
|
+
isFetchedAfterMount: boolean;
|
|
160
|
+
isFetching: boolean;
|
|
161
|
+
isInitialLoading: boolean;
|
|
162
|
+
isPaused: boolean;
|
|
163
|
+
isRefetching: boolean;
|
|
164
|
+
isStale: boolean;
|
|
165
|
+
isEnabled: boolean;
|
|
166
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
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>;
|
|
82
198
|
};
|
|
@@ -3,8 +3,44 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
3
3
|
address: string | undefined;
|
|
4
4
|
chainId: ChainId | undefined;
|
|
5
5
|
}): {
|
|
6
|
-
dashboard:
|
|
7
|
-
|
|
6
|
+
dashboard: {
|
|
7
|
+
fee?: string | null;
|
|
8
|
+
volume?: string | null;
|
|
9
|
+
totalFee?: string | null;
|
|
10
|
+
totalMtFee?: string | null;
|
|
11
|
+
totalVolume?: string | null;
|
|
12
|
+
tvl?: string | null;
|
|
13
|
+
turnover?: string | null;
|
|
14
|
+
liquidity?: string | null;
|
|
15
|
+
baseReserve?: string | null;
|
|
16
|
+
quoteReserve?: string | null;
|
|
17
|
+
baseVolume?: string | null;
|
|
18
|
+
quoteVolume?: string | null;
|
|
19
|
+
basePrice?: string | null;
|
|
20
|
+
quotePrice?: string | null;
|
|
21
|
+
price?: string | null;
|
|
22
|
+
baseFee?: string | null;
|
|
23
|
+
quoteFee?: string | null;
|
|
24
|
+
baseMtFee?: string | null;
|
|
25
|
+
quoteMtFee?: string | null;
|
|
26
|
+
pair?: string | null;
|
|
27
|
+
poolType?: string | null;
|
|
28
|
+
baseVolumeCumulative?: string | null;
|
|
29
|
+
quoteVolumeCumulative?: string | null;
|
|
30
|
+
baseAddress?: string | null;
|
|
31
|
+
baseSymbol?: string | null;
|
|
32
|
+
quoteAddress?: string | null;
|
|
33
|
+
quoteSymbol?: string | null;
|
|
34
|
+
network?: string | null;
|
|
35
|
+
pairAddress?: string | null;
|
|
36
|
+
txes?: number | null;
|
|
37
|
+
txesNear24h?: number | null;
|
|
38
|
+
txUsers?: number | null;
|
|
39
|
+
txUserNear24h?: number | null;
|
|
40
|
+
mtFeeNear24h?: string | null;
|
|
41
|
+
feeNear24h?: string | null;
|
|
42
|
+
} | null | undefined;
|
|
43
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
|
|
8
44
|
error: Error;
|
|
9
45
|
isError: true;
|
|
10
46
|
isPending: false;
|
|
@@ -27,12 +63,48 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
27
63
|
isRefetching: boolean;
|
|
28
64
|
isStale: boolean;
|
|
29
65
|
isEnabled: boolean;
|
|
30
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
66
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
31
67
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
32
|
-
promise: Promise<
|
|
68
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
33
69
|
} | {
|
|
34
|
-
dashboard:
|
|
35
|
-
|
|
70
|
+
dashboard: {
|
|
71
|
+
fee?: string | null;
|
|
72
|
+
volume?: string | null;
|
|
73
|
+
totalFee?: string | null;
|
|
74
|
+
totalMtFee?: string | null;
|
|
75
|
+
totalVolume?: string | null;
|
|
76
|
+
tvl?: string | null;
|
|
77
|
+
turnover?: string | null;
|
|
78
|
+
liquidity?: string | null;
|
|
79
|
+
baseReserve?: string | null;
|
|
80
|
+
quoteReserve?: string | null;
|
|
81
|
+
baseVolume?: string | null;
|
|
82
|
+
quoteVolume?: string | null;
|
|
83
|
+
basePrice?: string | null;
|
|
84
|
+
quotePrice?: string | null;
|
|
85
|
+
price?: string | null;
|
|
86
|
+
baseFee?: string | null;
|
|
87
|
+
quoteFee?: string | null;
|
|
88
|
+
baseMtFee?: string | null;
|
|
89
|
+
quoteMtFee?: string | null;
|
|
90
|
+
pair?: string | null;
|
|
91
|
+
poolType?: string | null;
|
|
92
|
+
baseVolumeCumulative?: string | null;
|
|
93
|
+
quoteVolumeCumulative?: string | null;
|
|
94
|
+
baseAddress?: string | null;
|
|
95
|
+
baseSymbol?: string | null;
|
|
96
|
+
quoteAddress?: string | null;
|
|
97
|
+
quoteSymbol?: string | null;
|
|
98
|
+
network?: string | null;
|
|
99
|
+
pairAddress?: string | null;
|
|
100
|
+
txes?: number | null;
|
|
101
|
+
txesNear24h?: number | null;
|
|
102
|
+
txUsers?: number | null;
|
|
103
|
+
txUserNear24h?: number | null;
|
|
104
|
+
mtFeeNear24h?: string | null;
|
|
105
|
+
feeNear24h?: string | null;
|
|
106
|
+
} | null | undefined;
|
|
107
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery;
|
|
36
108
|
error: null;
|
|
37
109
|
isError: false;
|
|
38
110
|
isPending: false;
|
|
@@ -55,7 +127,263 @@ export declare function usePoolDashboard({ address, chainId, }: {
|
|
|
55
127
|
isRefetching: boolean;
|
|
56
128
|
isStale: boolean;
|
|
57
129
|
isEnabled: boolean;
|
|
58
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
130
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
59
131
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
60
|
-
promise: Promise<
|
|
132
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
133
|
+
} | {
|
|
134
|
+
dashboard: {
|
|
135
|
+
fee?: string | null;
|
|
136
|
+
volume?: string | null;
|
|
137
|
+
totalFee?: string | null;
|
|
138
|
+
totalMtFee?: string | null;
|
|
139
|
+
totalVolume?: string | null;
|
|
140
|
+
tvl?: string | null;
|
|
141
|
+
turnover?: string | null;
|
|
142
|
+
liquidity?: string | null;
|
|
143
|
+
baseReserve?: string | null;
|
|
144
|
+
quoteReserve?: string | null;
|
|
145
|
+
baseVolume?: string | null;
|
|
146
|
+
quoteVolume?: string | null;
|
|
147
|
+
basePrice?: string | null;
|
|
148
|
+
quotePrice?: string | null;
|
|
149
|
+
price?: string | null;
|
|
150
|
+
baseFee?: string | null;
|
|
151
|
+
quoteFee?: string | null;
|
|
152
|
+
baseMtFee?: string | null;
|
|
153
|
+
quoteMtFee?: string | null;
|
|
154
|
+
pair?: string | null;
|
|
155
|
+
poolType?: string | null;
|
|
156
|
+
baseVolumeCumulative?: string | null;
|
|
157
|
+
quoteVolumeCumulative?: string | null;
|
|
158
|
+
baseAddress?: string | null;
|
|
159
|
+
baseSymbol?: string | null;
|
|
160
|
+
quoteAddress?: string | null;
|
|
161
|
+
quoteSymbol?: string | null;
|
|
162
|
+
network?: string | null;
|
|
163
|
+
pairAddress?: string | null;
|
|
164
|
+
txes?: number | null;
|
|
165
|
+
txesNear24h?: number | null;
|
|
166
|
+
txUsers?: number | null;
|
|
167
|
+
txUserNear24h?: number | null;
|
|
168
|
+
mtFeeNear24h?: string | null;
|
|
169
|
+
feeNear24h?: string | null;
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
data: undefined;
|
|
172
|
+
error: Error;
|
|
173
|
+
isError: true;
|
|
174
|
+
isPending: false;
|
|
175
|
+
isLoading: false;
|
|
176
|
+
isLoadingError: true;
|
|
177
|
+
isRefetchError: false;
|
|
178
|
+
isSuccess: false;
|
|
179
|
+
isPlaceholderData: false;
|
|
180
|
+
status: "error";
|
|
181
|
+
dataUpdatedAt: number;
|
|
182
|
+
errorUpdatedAt: number;
|
|
183
|
+
failureCount: number;
|
|
184
|
+
failureReason: Error | null;
|
|
185
|
+
errorUpdateCount: number;
|
|
186
|
+
isFetched: boolean;
|
|
187
|
+
isFetchedAfterMount: boolean;
|
|
188
|
+
isFetching: boolean;
|
|
189
|
+
isInitialLoading: boolean;
|
|
190
|
+
isPaused: boolean;
|
|
191
|
+
isRefetching: boolean;
|
|
192
|
+
isStale: boolean;
|
|
193
|
+
isEnabled: boolean;
|
|
194
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
195
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
196
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
197
|
+
} | {
|
|
198
|
+
dashboard: {
|
|
199
|
+
fee?: string | null;
|
|
200
|
+
volume?: string | null;
|
|
201
|
+
totalFee?: string | null;
|
|
202
|
+
totalMtFee?: string | null;
|
|
203
|
+
totalVolume?: string | null;
|
|
204
|
+
tvl?: string | null;
|
|
205
|
+
turnover?: string | null;
|
|
206
|
+
liquidity?: string | null;
|
|
207
|
+
baseReserve?: string | null;
|
|
208
|
+
quoteReserve?: string | null;
|
|
209
|
+
baseVolume?: string | null;
|
|
210
|
+
quoteVolume?: string | null;
|
|
211
|
+
basePrice?: string | null;
|
|
212
|
+
quotePrice?: string | null;
|
|
213
|
+
price?: string | null;
|
|
214
|
+
baseFee?: string | null;
|
|
215
|
+
quoteFee?: string | null;
|
|
216
|
+
baseMtFee?: string | null;
|
|
217
|
+
quoteMtFee?: string | null;
|
|
218
|
+
pair?: string | null;
|
|
219
|
+
poolType?: string | null;
|
|
220
|
+
baseVolumeCumulative?: string | null;
|
|
221
|
+
quoteVolumeCumulative?: string | null;
|
|
222
|
+
baseAddress?: string | null;
|
|
223
|
+
baseSymbol?: string | null;
|
|
224
|
+
quoteAddress?: string | null;
|
|
225
|
+
quoteSymbol?: string | null;
|
|
226
|
+
network?: string | null;
|
|
227
|
+
pairAddress?: string | null;
|
|
228
|
+
txes?: number | null;
|
|
229
|
+
txesNear24h?: number | null;
|
|
230
|
+
txUsers?: number | null;
|
|
231
|
+
txUserNear24h?: number | null;
|
|
232
|
+
mtFeeNear24h?: string | null;
|
|
233
|
+
feeNear24h?: string | null;
|
|
234
|
+
} | null | undefined;
|
|
235
|
+
data: undefined;
|
|
236
|
+
error: null;
|
|
237
|
+
isError: false;
|
|
238
|
+
isPending: true;
|
|
239
|
+
isLoading: true;
|
|
240
|
+
isLoadingError: false;
|
|
241
|
+
isRefetchError: false;
|
|
242
|
+
isSuccess: false;
|
|
243
|
+
isPlaceholderData: false;
|
|
244
|
+
status: "pending";
|
|
245
|
+
dataUpdatedAt: number;
|
|
246
|
+
errorUpdatedAt: number;
|
|
247
|
+
failureCount: number;
|
|
248
|
+
failureReason: Error | null;
|
|
249
|
+
errorUpdateCount: number;
|
|
250
|
+
isFetched: boolean;
|
|
251
|
+
isFetchedAfterMount: boolean;
|
|
252
|
+
isFetching: boolean;
|
|
253
|
+
isInitialLoading: boolean;
|
|
254
|
+
isPaused: boolean;
|
|
255
|
+
isRefetching: boolean;
|
|
256
|
+
isStale: boolean;
|
|
257
|
+
isEnabled: boolean;
|
|
258
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
259
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
260
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery>;
|
|
261
|
+
} | {
|
|
262
|
+
dashboard: {
|
|
263
|
+
fee?: string | null;
|
|
264
|
+
volume?: string | null;
|
|
265
|
+
totalFee?: string | null;
|
|
266
|
+
totalMtFee?: string | null;
|
|
267
|
+
totalVolume?: string | null;
|
|
268
|
+
tvl?: string | null;
|
|
269
|
+
turnover?: string | null;
|
|
270
|
+
liquidity?: string | null;
|
|
271
|
+
baseReserve?: string | null;
|
|
272
|
+
quoteReserve?: string | null;
|
|
273
|
+
baseVolume?: string | null;
|
|
274
|
+
quoteVolume?: string | null;
|
|
275
|
+
basePrice?: string | null;
|
|
276
|
+
quotePrice?: string | null;
|
|
277
|
+
price?: string | null;
|
|
278
|
+
baseFee?: string | null;
|
|
279
|
+
quoteFee?: string | null;
|
|
280
|
+
baseMtFee?: string | null;
|
|
281
|
+
quoteMtFee?: string | null;
|
|
282
|
+
pair?: string | null;
|
|
283
|
+
poolType?: string | null;
|
|
284
|
+
baseVolumeCumulative?: string | null;
|
|
285
|
+
quoteVolumeCumulative?: string | null;
|
|
286
|
+
baseAddress?: string | null;
|
|
287
|
+
baseSymbol?: string | null;
|
|
288
|
+
quoteAddress?: string | null;
|
|
289
|
+
quoteSymbol?: string | null;
|
|
290
|
+
network?: string | null;
|
|
291
|
+
pairAddress?: string | null;
|
|
292
|
+
txes?: number | null;
|
|
293
|
+
txesNear24h?: number | null;
|
|
294
|
+
txUsers?: number | null;
|
|
295
|
+
txUserNear24h?: number | null;
|
|
296
|
+
mtFeeNear24h?: string | null;
|
|
297
|
+
feeNear24h?: string | null;
|
|
298
|
+
} | null | undefined;
|
|
299
|
+
data: undefined;
|
|
300
|
+
error: null;
|
|
301
|
+
isError: false;
|
|
302
|
+
isPending: true;
|
|
303
|
+
isLoadingError: false;
|
|
304
|
+
isRefetchError: false;
|
|
305
|
+
isSuccess: false;
|
|
306
|
+
isPlaceholderData: false;
|
|
307
|
+
status: "pending";
|
|
308
|
+
dataUpdatedAt: number;
|
|
309
|
+
errorUpdatedAt: number;
|
|
310
|
+
failureCount: number;
|
|
311
|
+
failureReason: Error | null;
|
|
312
|
+
errorUpdateCount: number;
|
|
313
|
+
isFetched: boolean;
|
|
314
|
+
isFetchedAfterMount: boolean;
|
|
315
|
+
isFetching: boolean;
|
|
316
|
+
isLoading: boolean;
|
|
317
|
+
isInitialLoading: boolean;
|
|
318
|
+
isPaused: boolean;
|
|
319
|
+
isRefetching: boolean;
|
|
320
|
+
isStale: boolean;
|
|
321
|
+
isEnabled: boolean;
|
|
322
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
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>;
|
|
61
389
|
};
|