@dodoex/widgets 3.19.0 → 3.20.0-alpha.10
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/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/{helper-C1OYS4SC.cjs → helper-BjLrmjzq.cjs} +1 -1
- package/dist/{helper-DUWFcWe6.js → helper-BokybIZ1.js} +1 -1
- package/dist/{index-BdB2BCQe.cjs → index-BW38-BRn.cjs} +1 -1
- package/dist/{index-BGe7caLE.js → index-CA2kCSB4.js} +1 -1
- package/dist/index-DZ6Jwgca.cjs +14 -0
- package/dist/{index-XzRE8z_c.js → index-MV36Ujd8.js} +1 -1
- package/dist/{index-CQl4nYsF.cjs → index-OBosq5oX.cjs} +1 -1
- package/dist/index-SUoF0O-Y.js +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/Widget/index.d.ts +40 -0
- 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 +4 -2
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +6 -1
- package/dist/types/hooks/Submission/types.d.ts +1 -0
- 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 +3 -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/index.d.ts +1 -0
- 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/components/LpFeeRewardBadge.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LpFeeRewardBanner.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/useClaimLpFeeRewardSubmit.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +44 -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 +428 -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 +161 -162
- package/dist/index-Cm0O00ow.cjs +0 -14
- package/dist/index-ZV1FQySp.js +0 -14
|
@@ -12,10 +12,10 @@ export declare function useTokenStatus(token: TokenInfo | undefined | null, { am
|
|
|
12
12
|
isGetApproveLoading: boolean;
|
|
13
13
|
needApprove: boolean;
|
|
14
14
|
needReset: boolean | undefined;
|
|
15
|
-
needShowTokenStatusButton:
|
|
16
|
-
insufficientBalance:
|
|
17
|
-
loading:
|
|
15
|
+
needShowTokenStatusButton: boolean;
|
|
16
|
+
insufficientBalance: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
18
|
approveTitle: string;
|
|
19
19
|
submitApprove: () => Promise<void>;
|
|
20
|
-
getMaxBalance: () =>
|
|
20
|
+
getMaxBalance: () => string;
|
|
21
21
|
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").
|
|
1
|
+
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query").UseQueryResult<{
|
|
2
|
+
symbol: string;
|
|
3
|
+
address: string;
|
|
4
|
+
name: string;
|
|
5
|
+
decimals: number;
|
|
6
|
+
balance: BigNumber;
|
|
7
|
+
allowance: BigNumber;
|
|
8
|
+
account: string;
|
|
9
|
+
spender: string | undefined;
|
|
10
|
+
chainId: number;
|
|
11
|
+
} | {
|
|
12
|
+
address: string;
|
|
13
|
+
decimals: number;
|
|
14
|
+
symbol: string;
|
|
15
|
+
name: string;
|
|
16
|
+
balance: BigNumber;
|
|
17
|
+
spender: string | undefined;
|
|
18
|
+
allowance: BigNumber;
|
|
19
|
+
chainId: number;
|
|
20
|
+
account?: undefined;
|
|
21
|
+
} | null, Error>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import { GraphQLRequests } from '@dodoex/api';
|
|
2
|
+
export declare const graphQLRequestsLocal: GraphQLRequests;
|
|
3
|
+
export declare function useGraphQLRequests(): GraphQLRequests;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { chainListMap } from './constants/chainList';
|
|
|
9
9
|
export { Widget, UnstyleWidget, Message } from './components/Widget';
|
|
10
10
|
export { WIDGET_MODULE_CLASS_NAME } from './components/WidgetContainer';
|
|
11
11
|
export type { WidgetProps } from './components/Widget';
|
|
12
|
+
export type { LpFeeRewardActivity } from './components/Widget';
|
|
12
13
|
export type SwapWidgetProps = WidgetProps & SwapProps;
|
|
13
14
|
export type { TokenInfo } from './hooks/Token/type';
|
|
14
15
|
export { useMessageState } from './hooks/useMessageState';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare const getPlatformId: (chainId: ChainId) =>
|
|
2
|
+
export declare const getPlatformId: (chainId: ChainId) => string;
|
|
@@ -7,6 +7,32 @@ export declare const usePoolPairList: ({ baseAddress, quoteAddress, poolAddress,
|
|
|
7
7
|
isMyPool?: boolean;
|
|
8
8
|
skip?: boolean;
|
|
9
9
|
}) => {
|
|
10
|
-
loading:
|
|
11
|
-
datas:
|
|
10
|
+
loading: boolean;
|
|
11
|
+
datas: {
|
|
12
|
+
id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
creator: any;
|
|
15
|
+
lpFeeRate: any;
|
|
16
|
+
i?: any | null;
|
|
17
|
+
k?: any | null;
|
|
18
|
+
baseReserve: any;
|
|
19
|
+
quoteReserve: any;
|
|
20
|
+
createdAtTimestamp: any;
|
|
21
|
+
lastTradePrice: any;
|
|
22
|
+
volumeUSD: any;
|
|
23
|
+
baseToken: {
|
|
24
|
+
id: string;
|
|
25
|
+
symbol: string;
|
|
26
|
+
name: string;
|
|
27
|
+
decimals: any;
|
|
28
|
+
usdPrice: any;
|
|
29
|
+
};
|
|
30
|
+
quoteToken: {
|
|
31
|
+
id: string;
|
|
32
|
+
symbol: string;
|
|
33
|
+
name: string;
|
|
34
|
+
decimals: any;
|
|
35
|
+
usdPrice: any;
|
|
36
|
+
};
|
|
37
|
+
}[];
|
|
12
38
|
};
|
|
@@ -22,5 +22,5 @@ export declare function isValidRewardInfo({ reward, now, }: {
|
|
|
22
22
|
totalIsError: boolean;
|
|
23
23
|
isInvalid: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const getWrappedTokenAddress: (addressOrigin: string, chainId: ChainId) =>
|
|
25
|
+
export declare const getWrappedTokenAddress: (addressOrigin: string, chainId: ChainId) => string;
|
|
26
26
|
export declare const isBrowser: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TabMiningI } from '../../types';
|
|
2
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
2
3
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
3
4
|
miningItem: TabMiningI;
|
|
4
5
|
}): {
|
|
5
|
-
status:
|
|
6
|
+
status: MiningStatusE;
|
|
6
7
|
miningStatusList: {
|
|
7
8
|
status: MiningStatusE;
|
|
8
9
|
firstStartTime: BigNumber | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { MiningApi } from '@dodoex/api';
|
|
2
|
+
export declare const miningApi: MiningApi;
|
|
@@ -6,6 +6,6 @@ export declare function useMiningItem({ miningContractAddress, poolAddress, acco
|
|
|
6
6
|
}): {
|
|
7
7
|
miningItem: import("../types").TabMiningI | undefined;
|
|
8
8
|
error: Error | null;
|
|
9
|
-
loading:
|
|
10
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<
|
|
9
|
+
loading: boolean;
|
|
10
|
+
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").MiningListQuery, Error>>;
|
|
11
11
|
};
|
|
@@ -6,7 +6,7 @@ export declare function useMiningList({ isEnded, searchText, account, chainIds,
|
|
|
6
6
|
chainIds: Array<number> | null;
|
|
7
7
|
}): {
|
|
8
8
|
error: Error | null;
|
|
9
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
10
|
-
loading:
|
|
9
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").MiningListQuery, Error>>;
|
|
10
|
+
loading: boolean;
|
|
11
11
|
miningList: TabMiningI[];
|
|
12
12
|
};
|
|
@@ -5,7 +5,7 @@ export declare function useMyCreatedMiningList({ searchText, account, chainIds,
|
|
|
5
5
|
chainIds: Array<number> | null;
|
|
6
6
|
}): {
|
|
7
7
|
error: Error | null;
|
|
8
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
9
|
-
loading:
|
|
8
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").MyCreatedMiningListQuery, Error>>;
|
|
9
|
+
loading: boolean;
|
|
10
10
|
miningList: MyCreatedMiningI[];
|
|
11
11
|
};
|
|
@@ -3,9 +3,15 @@ import BigNumber from 'bignumber.js';
|
|
|
3
3
|
export declare function useRewardListAmount({ miningItem, }: {
|
|
4
4
|
miningItem: FetchMiningListItem;
|
|
5
5
|
}): {
|
|
6
|
-
data:
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
data: {
|
|
7
|
+
amount: BigNumber | null | undefined;
|
|
8
|
+
address: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
decimals: number;
|
|
11
|
+
usdPrice: string;
|
|
12
|
+
}[];
|
|
13
|
+
pending: boolean;
|
|
14
|
+
error: boolean;
|
|
9
15
|
totalReward: BigNumber;
|
|
10
16
|
totalRewardUSD: BigNumber;
|
|
11
17
|
refetch: () => void;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
1
2
|
import { FetchMiningListItem } from '../types';
|
|
2
3
|
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
3
4
|
miningItem: FetchMiningListItem;
|
|
4
5
|
}): {
|
|
5
|
-
status:
|
|
6
|
-
miningStatusList:
|
|
6
|
+
status: MiningStatusE;
|
|
7
|
+
miningStatusList: {
|
|
8
|
+
status: import("@dodoex/api/dist/types/services/mining/utils").MiningStatusE;
|
|
9
|
+
firstStartTime: BigNumber | undefined;
|
|
10
|
+
lastEndTime: BigNumber | undefined;
|
|
11
|
+
currentTime: BigNumber;
|
|
12
|
+
}[];
|
|
7
13
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
export { ChainId } from '@dodoex/api';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated
|
|
4
5
|
*/
|
|
5
|
-
export declare const SUPPORTED_CHAINS: readonly [
|
|
6
|
+
export declare const SUPPORTED_CHAINS: readonly [ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.SEPOLIA, ChainId.TAIKO];
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated
|
|
8
9
|
*/
|
|
@@ -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
|
};
|