@dodoex/widgets 3.0.2-zetachain.10 → 3.0.2-zetachain.101

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.
Files changed (154) hide show
  1. package/dist/cjs/locales/en-US.js +1 -1
  2. package/dist/cjs/locales/zh-CN.js +1 -1
  3. package/dist/{helper-B-L9J5Wk.js → helper-D5chKXxT.js} +1 -1
  4. package/dist/{helper-DB7pJRlV.cjs → helper-pDdocGBD.cjs} +1 -1
  5. package/dist/{index-CnswmG4u.cjs → index-3hXSPpit.cjs} +2 -2
  6. package/dist/index-B5QSPl3T.js +12 -0
  7. package/dist/index-BzTel90q.js +31 -0
  8. package/dist/{index-D54mvRoh.js → index-CdQPafiH.js} +3 -3
  9. package/dist/{index-BGkMyf0r.cjs → index-jH8YZz2V.cjs} +4 -4
  10. package/dist/index-kl2v_NZL.cjs +31 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/locales/en-US.js +1 -1
  14. package/dist/locales/zh-CN.js +1 -1
  15. package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +2 -4
  16. package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +2 -2
  17. package/dist/types/components/Bridge/CompareRoute.d.ts +4 -0
  18. package/dist/types/components/Bridge/RouteVision.d.ts +7 -0
  19. package/dist/types/components/Bridge/RouteVisionModal.d.ts +5 -0
  20. package/dist/types/components/CardWidgets.d.ts +11 -2
  21. package/dist/types/components/ErrorMessageDialog.d.ts +2 -1
  22. package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +4 -0
  23. package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +7 -0
  24. package/dist/types/components/Swap/SwapOrderHistory/SameChainOrderList.d.ts +3 -0
  25. package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +6 -5
  26. package/dist/types/components/Swap/components/Dialog.d.ts +1 -1
  27. package/dist/types/components/Swap/components/FiatEntryAndGasRefuel.d.ts +1 -0
  28. package/dist/types/components/Swap/components/ReceiveAddressInputModal.d.ts +10 -0
  29. package/dist/types/components/Swap/components/ReviewDialog.d.ts +2 -1
  30. package/dist/types/components/Swap/components/RouteVisionModal.d.ts +7 -0
  31. package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +2 -1
  32. package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +2 -1
  33. package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +14 -4
  34. package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -0
  35. package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +7 -1
  36. package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +3 -2
  37. package/dist/types/components/Swap/index.d.ts +1 -1
  38. package/dist/types/components/TokenPicker/TokenItem.d.ts +3 -3
  39. package/dist/types/components/TokenPicker/index.d.ts +3 -3
  40. package/dist/types/components/Widget/index.d.ts +12 -10
  41. package/dist/types/constants/address.d.ts +4 -0
  42. package/dist/types/constants/api.d.ts +95 -4
  43. package/dist/types/constants/chainList.d.ts +6 -39
  44. package/dist/types/constants/chains.d.ts +1 -1
  45. package/dist/types/constants/sessionStorage.d.ts +1 -0
  46. package/dist/types/constants/tokenList.d.ts +5 -9
  47. package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +5 -25
  48. package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +1 -2
  49. package/dist/types/hooks/Bridge/useFeeList.d.ts +9 -0
  50. package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +134 -48
  51. package/dist/types/hooks/Bridge/useSendRoute.d.ts +1 -2
  52. package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +4 -1
  53. package/dist/types/hooks/Bridge/utils.d.ts +6 -0
  54. package/dist/types/hooks/ConnectWallet/index.d.ts +0 -2
  55. package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +1 -0
  56. package/dist/types/hooks/Submission/types.d.ts +29 -1
  57. package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
  58. package/dist/types/hooks/Swap/useBridgeSlippage.d.ts +3 -0
  59. package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +372 -0
  60. package/dist/types/hooks/Swap/useExecuteSwap.d.ts +2 -1
  61. package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +2 -4
  62. package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +34 -36
  63. package/dist/types/hooks/Token/type.d.ts +3 -1
  64. package/dist/types/hooks/Token/useInitTokenList.d.ts +2 -2
  65. package/dist/types/hooks/Token/useSelectChainList.d.ts +2 -1
  66. package/dist/types/hooks/Token/useTokenList.d.ts +4 -7
  67. package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
  68. package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +1 -4
  69. package/dist/types/hooks/Token/useTokenStatus.d.ts +23 -1
  70. package/dist/types/hooks/contract/useFetchETHBalance.d.ts +2 -1
  71. package/dist/types/hooks/contract/useFetchMultiTokensForSingleChain.d.ts +20 -0
  72. package/dist/types/hooks/contract/useFetchTokens.d.ts +9 -4
  73. package/dist/types/hooks/useAddressValidation.d.ts +2 -0
  74. package/dist/types/hooks/useGlobalState.d.ts +2 -0
  75. package/dist/types/hooks/useGraphQLRequests.d.ts +0 -1
  76. package/dist/types/hooks/useRouteVisionData.d.ts +17 -1
  77. package/dist/types/index.d.ts +26 -32
  78. package/dist/types/router/types.d.ts +5 -0
  79. package/dist/types/utils/address.d.ts +1 -1
  80. package/dist/types/utils/btc.d.ts +42 -0
  81. package/dist/types/utils/constants.d.ts +1 -0
  82. package/dist/types/utils/solana.d.ts +7 -0
  83. package/dist/types/utils/wallet.d.ts +2 -0
  84. package/dist/types/utils/zetachain_btc_test.d.ts +5 -0
  85. package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +2 -2
  86. package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
  87. package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
  88. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +3 -1
  89. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +3 -1
  90. package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSetList.d.ts +4 -0
  91. package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +3 -1
  92. package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
  93. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +3 -1
  94. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
  95. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +1 -1
  96. package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +2 -1
  97. package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +2 -1
  98. package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +2 -1
  99. package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +3 -1
  100. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +12 -0
  101. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +41 -7
  102. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +1 -2
  103. package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +1 -1
  104. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +43 -0
  105. package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +2 -3
  106. package/dist/types/widgets/PoolWidget/curve/Add.d.ts +5 -0
  107. package/dist/types/widgets/PoolWidget/curve/AddOrRemove.d.ts +7 -0
  108. package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +13 -0
  109. package/dist/types/widgets/PoolWidget/curve/CurvePoolDetail.d.ts +5 -0
  110. package/dist/types/widgets/PoolWidget/curve/OperateDialog.d.ts +7 -0
  111. package/dist/types/widgets/PoolWidget/curve/Remove.d.ts +5 -0
  112. package/dist/types/widgets/PoolWidget/curve/components/ApyTooltip.d.ts +7 -0
  113. package/dist/types/widgets/PoolWidget/curve/components/CoinReservePieChart.d.ts +6 -0
  114. package/dist/types/widgets/PoolWidget/curve/components/CoinsLogoList.d.ts +7 -0
  115. package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +7 -0
  116. package/dist/types/widgets/PoolWidget/curve/components/LiquidityProvidersTable.d.ts +6 -0
  117. package/dist/types/widgets/PoolWidget/curve/components/OperateButtonContainer.d.ts +3 -0
  118. package/dist/types/widgets/PoolWidget/curve/components/ParametersTable.d.ts +5 -0
  119. package/dist/types/widgets/PoolWidget/curve/components/PoolTitle.d.ts +5 -0
  120. package/dist/types/widgets/PoolWidget/curve/components/PoolTotalStats.d.ts +5 -0
  121. package/dist/types/widgets/PoolWidget/curve/components/SlippageBonus.d.ts +3 -0
  122. package/dist/types/widgets/PoolWidget/curve/components/SwapsTable.d.ts +6 -0
  123. package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +5 -0
  124. package/dist/types/widgets/PoolWidget/curve/hooks/useLiquidityProviders.d.ts +268 -0
  125. package/dist/types/widgets/PoolWidget/curve/hooks/useLpTokenBalances.d.ts +12 -0
  126. package/dist/types/widgets/PoolWidget/curve/hooks/usePoolDetail.d.ts +10 -0
  127. package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +9 -0
  128. package/dist/types/widgets/PoolWidget/curve/hooks/usePoolSwapList.d.ts +310 -0
  129. package/dist/types/widgets/PoolWidget/curve/types.d.ts +44 -0
  130. package/dist/types/widgets/PoolWidget/curve/utils.d.ts +4 -0
  131. package/package.json +21 -27
  132. package/dist/28442382d977858a.svg +0 -9
  133. package/dist/assets/bundle-DSSoJu9z.css +0 -297
  134. package/dist/ed726d76d93d4899.svg +0 -10
  135. package/dist/index-BYYZxbt3.js +0 -263
  136. package/dist/index-CbzpdArY.cjs +0 -263
  137. package/dist/index-D8Yofu94.js +0 -12
  138. package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -4
  139. package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
  140. package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +0 -5
  141. package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
  142. package/dist/types/hooks/Chain/useChainList.test.d.ts +0 -1
  143. package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
  144. package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +0 -14
  145. package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
  146. package/dist/types/hooks/ConnectWallet/web3.d.ts +0 -10
  147. package/dist/types/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
  148. package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
  149. package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +0 -1
  150. package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
  151. package/dist/types/hooks/Token/useSelectChainList.test.d.ts +0 -1
  152. package/dist/types/hooks/Token/useTokenList.test.d.ts +0 -1
  153. package/dist/types/hooks/Token/useTokenStatus.test.d.ts +0 -1
  154. /package/dist/types/hooks/{Bridge/useFetchRoutePriceBridge.test.d.ts → useAddressValidation.test.d.ts} +0 -0
@@ -60,10 +60,10 @@ export declare function getV3MiningSingleRewardAmount(t: ReviewedMiningRewardTok
60
60
  workThroughReward: BigNumber | undefined;
61
61
  lastFlagBlock: BigNumber | undefined;
62
62
  rewardVault: string | undefined;
63
+ startTime: BigNumber | undefined;
64
+ endTime: BigNumber | undefined;
63
65
  rewardPerBlock: BigNumber | undefined;
64
66
  startBlock: BigNumber | undefined;
65
67
  endBlock: BigNumber | undefined;
66
- startTime: BigNumber | undefined;
67
- endTime: BigNumber | undefined;
68
68
  };
69
69
  export {};
@@ -19,10 +19,10 @@ export declare function useReviewRewardToken({ chainId, index, miningContractAdd
19
19
  workThroughReward: BigNumber | undefined;
20
20
  lastFlagBlock: BigNumber | undefined;
21
21
  rewardVault: string | undefined;
22
+ startTime: BigNumber | undefined;
23
+ endTime: BigNumber | undefined;
22
24
  rewardPerBlock: BigNumber | undefined;
23
25
  startBlock: BigNumber | undefined;
24
26
  endBlock: BigNumber | undefined;
25
- startTime: BigNumber | undefined;
26
- endTime: BigNumber | undefined;
27
27
  };
28
28
  };
@@ -1,5 +1,5 @@
1
- import { FetchMiningListItem } from '../types';
2
1
  import BigNumber from 'bignumber.js';
2
+ import { FetchMiningListItem } from '../types';
3
3
  export declare function useRewardListAmount({ miningItem, }: {
4
4
  miningItem: FetchMiningListItem;
5
5
  }): {
@@ -1,10 +1,12 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  import { Currency } from '../../sdks/sdk-core';
2
3
  import { FeeAmount } from '../../sdks/v3-sdk';
3
4
  import { ChartEntry } from './types';
4
- export declare function useDensityChartData({ currencyA, currencyB, feeAmount, }: {
5
+ export declare function useDensityChartData({ currencyA, currencyB, feeAmount, chainId, }: {
5
6
  currencyA?: Currency;
6
7
  currencyB?: Currency;
7
8
  feeAmount?: FeeAmount;
9
+ chainId: ChainId;
8
10
  }): {
9
11
  isLoading: boolean;
10
12
  error: any;
@@ -1,7 +1,9 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  import { Currency, Price } from '../../sdks/sdk-core';
2
3
  import { FeeAmount } from '../../sdks/v3-sdk';
3
4
  import { Bound } from '../../types';
4
- export default function LiquidityChartRangeInput({ currencyA, currencyB, feeAmount, ticksAtLimit, price, priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, interactive, }: {
5
+ export default function LiquidityChartRangeInput({ chainId, currencyA, currencyB, feeAmount, ticksAtLimit, price, priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, interactive, }: {
6
+ chainId: ChainId;
5
7
  currencyA?: Currency;
6
8
  currencyB?: Currency;
7
9
  feeAmount?: FeeAmount;
@@ -0,0 +1,4 @@
1
+ export interface RangeSetListProps {
2
+ onSelect: (value: number) => void;
3
+ }
4
+ export declare const RangeSetList: (props: RangeSetListProps) => import("react").JSX.Element;
@@ -1,7 +1,9 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  import { Actions, StateProps } from '../reducer';
2
3
  export interface TokenPairSelectProps {
4
+ chainId: ChainId;
3
5
  baseToken: StateProps['baseToken'];
4
6
  quoteToken: StateProps['quoteToken'];
5
7
  dispatch: React.Dispatch<Actions>;
6
8
  }
7
- export declare const TokenPairSelect: ({ baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => import("react").JSX.Element;
9
+ export declare const TokenPairSelect: ({ chainId, baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => import("react").JSX.Element;
@@ -9,7 +9,7 @@ export interface TickProcessed {
9
9
  price0: string;
10
10
  sdkPrice: Price<Token, Token>;
11
11
  }
12
- export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId?: ChainId): {
12
+ export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId: ChainId): {
13
13
  isLoading: boolean;
14
14
  error: any;
15
15
  currentTick?: number;
@@ -1,12 +1,14 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  import { ReactNode } from 'react';
2
3
  import { StateProps } from '../reducer';
3
4
  import { Currency, CurrencyAmount, Price, Token } from '../sdks/sdk-core';
4
5
  import { Pool, Position } from '../sdks/v3-sdk';
5
6
  import { Bound, Field } from '../types';
6
7
  import { PoolState } from './usePools';
7
- export declare function useV3DerivedMintInfo({ state, existingPosition, }: {
8
+ export declare function useV3DerivedMintInfo({ state, existingPosition, chainId, }: {
8
9
  state: StateProps;
9
10
  existingPosition?: Position;
11
+ chainId: ChainId;
10
12
  }): {
11
13
  pool?: Pool | null;
12
14
  poolState: PoolState;
@@ -1,6 +1,6 @@
1
1
  export default function useDefaultTokens(): {
2
2
  defaultBaseToken: import("../../../..").TokenInfo | null;
3
3
  defaultQuoteToken: import("../../../..").TokenInfo | null;
4
- defaultBaseTokenLoading: boolean | undefined;
5
- defaultQuoteTokenLoading: boolean | undefined;
4
+ defaultBaseTokenLoading: false;
5
+ defaultQuoteTokenLoading: false;
6
6
  };
@@ -1,6 +1,6 @@
1
+ import { ChainId } from '@dodoex/api';
1
2
  import { BoxProps } from '@dodoex/components';
2
3
  import React from 'react';
3
- import { ChainId } from '@dodoex/api';
4
4
  import { usePoolDetail } from '../../../hooks/usePoolDetail';
5
5
  export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
6
6
  export declare function TokenWithSymbolRtL({ chainId, address, symbol, amount, sx, }: {
@@ -2,7 +2,7 @@ import { ChainId } from '@dodoex/api';
2
2
  import React from 'react';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
5
- export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, tokenAndPoolFilter, getMigrationPairAndMining, }: {
5
+ export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, tokenAndPoolFilter, getMigrationPairAndMining, children, }: {
6
6
  scrollParentRef: React.MutableRefObject<HTMLDivElement | null>;
7
7
  account?: string;
8
8
  filterChainIds?: ChainId[];
@@ -15,4 +15,5 @@ export default function AddLiquidityList({ scrollParentRef, filterChainIds, acti
15
15
  address: string;
16
16
  chainId: number;
17
17
  }) => void;
18
+ children?: React.ReactNode;
18
19
  }): React.JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import { ChainId } from '@dodoex/api';
2
2
  import React from 'react';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
- export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
4
+ export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, children, }: {
5
5
  account?: string;
6
6
  filterChainIds?: ChainId[];
7
7
  activeChainId: ChainId | undefined;
8
8
  handleChangeActiveChainId: (chainId: number | undefined) => void;
9
9
  operatePool: Partial<PoolOperateProps> | null;
10
10
  setOperatePool: (operate: Partial<PoolOperateProps> | null) => void;
11
+ children?: React.ReactNode;
11
12
  }): React.JSX.Element;
@@ -2,7 +2,7 @@ import { ChainId } from '@dodoex/api';
2
2
  import React from 'react';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
5
- export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, getMigrationPairAndMining, tokenAndPoolFilter, }: {
5
+ export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, getMigrationPairAndMining, tokenAndPoolFilter, children, }: {
6
6
  account?: string;
7
7
  filterChainIds?: ChainId[];
8
8
  activeChainId: ChainId | undefined;
@@ -14,4 +14,5 @@ export default function MyLiquidity({ account, filterChainIds, activeChainId, ha
14
14
  chainId: number;
15
15
  }) => void;
16
16
  tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
17
+ children?: React.ReactNode;
17
18
  }): React.JSX.Element;
@@ -1,4 +1,6 @@
1
- export default function GoPoolDetailBtn({ chainId, address, }: {
1
+ import { PageType } from '../../../../router';
2
+ export default function GoPoolDetailBtn({ chainId, address, type, }: {
2
3
  chainId: number;
3
4
  address: string;
5
+ type?: PageType.PoolDetail | PageType.CurvePoolDetail;
4
6
  }): import("react").JSX.Element;
@@ -53,6 +53,18 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
53
53
  transactionQuoteApy?: any | null;
54
54
  metromMiningApy?: any | null;
55
55
  } | null;
56
+ apyList?: Array<{
57
+ miningBaseApy?: any | null;
58
+ miningQuoteApy?: any | null;
59
+ transactionBaseApy?: any | null;
60
+ transactionQuoteApy?: any | null;
61
+ metromMiningApy?: any | null;
62
+ timeRange?: string | null;
63
+ } | null> | null;
64
+ volumeList?: Array<{
65
+ volume?: any | null;
66
+ timeRange?: string | null;
67
+ } | null> | null;
56
68
  } | null;
57
69
  } | null)[] | null | undefined;
58
70
  handleDeleteToken: (token: TokenInfo) => void;
@@ -1,16 +1,50 @@
1
+ export declare enum PoolTopTab {
2
+ ALM = "ALM",
3
+ NORMAL = "NORMAL",
4
+ MULTI_TOKEN = "MULTI_TOKEN"
5
+ }
6
+ export declare enum ALMPoolTab {
7
+ ALL = "ALL",
8
+ MY = "MY"
9
+ }
1
10
  export declare enum PoolTab {
2
11
  addLiquidity = "add-liquidity",
3
12
  myLiquidity = "my-liquidity",
4
13
  myCreated = "my-created"
5
14
  }
6
- export declare function usePoolListTabs({ account, paramsTab, }: {
7
- account?: string;
8
- paramsTab: PoolTab | undefined;
9
- }): {
10
- poolTab: PoolTab;
11
- tabs: {
15
+ export declare enum MultiTokenPoolTab {
16
+ ALL = "ALL",
17
+ MY = "MY"
18
+ }
19
+ export declare function usePoolListTabs(): {
20
+ poolTopTab: PoolTopTab;
21
+ normalPoolTab: PoolTab;
22
+ almPoolTab: ALMPoolTab;
23
+ multiTokenPoolTab: MultiTokenPoolTab;
24
+ topTabs: {
25
+ key: PoolTopTab;
26
+ value: string;
27
+ }[];
28
+ normalTabs: {
12
29
  key: PoolTab;
13
30
  value: string;
14
31
  }[];
15
- handleChangePoolTab: (poolTab: PoolTab) => void;
32
+ almTabs: {
33
+ key: ALMPoolTab;
34
+ value: string;
35
+ }[];
36
+ multiTokenTabs: {
37
+ key: MultiTokenPoolTab;
38
+ value: string;
39
+ }[];
40
+ handleChangePoolTab: ({ topTab, poolTab, }: {
41
+ topTab: PoolTopTab.NORMAL;
42
+ poolTab: PoolTab;
43
+ } | {
44
+ topTab: PoolTopTab.ALM;
45
+ poolTab: ALMPoolTab;
46
+ } | {
47
+ topTab: PoolTopTab.MULTI_TOKEN;
48
+ poolTab: MultiTokenPoolTab;
49
+ }) => void;
16
50
  };
@@ -2,11 +2,10 @@ import React from 'react';
2
2
  import { Page, PageType } from '../../../router/types';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
5
- export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, operatePMMPoolElement, operatePool: operatePoolProps, onOperatePool, getMigrationPairAndMining, }: {
5
+ export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, operatePool: operatePoolProps, onOperatePool, getMigrationPairAndMining, }: {
6
6
  params?: Page<PageType.Pool>['params'];
7
7
  scrollRef?: React.RefObject<any>;
8
8
  tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
9
- operatePMMPoolElement?: React.ReactElement;
10
9
  operatePool?: Partial<PoolOperateProps> | null;
11
10
  onOperatePool?: (pool: Partial<PoolOperateProps> | null) => boolean;
12
11
  getMigrationPairAndMining?: (p: {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { OperatePool } from './types';
3
2
  import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
3
+ import { OperatePool } from './types';
4
4
  export declare function RemovePoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
5
5
  submittedBack?: () => void;
6
6
  onlyShowSide?: 'base' | 'quote';
@@ -1,3 +1,4 @@
1
+ import BigNumber from 'bignumber.js';
1
2
  import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
2
3
  import { OperatePool } from '../types';
3
4
  export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteAmount, balanceInfo, }: {
@@ -18,6 +19,27 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
18
19
  approveTitle: string;
19
20
  submitApprove: () => Promise<void>;
20
21
  getMaxBalance: () => string;
22
+ tokenQuery: import("@tanstack/react-query").UseQueryResult<{
23
+ symbol: string;
24
+ address: string;
25
+ name: string;
26
+ decimals: number;
27
+ balance: BigNumber;
28
+ allowance: BigNumber;
29
+ account: string;
30
+ spender: string | undefined;
31
+ chainId: number;
32
+ } | {
33
+ address: string;
34
+ decimals: number;
35
+ symbol: string;
36
+ name: string;
37
+ balance: BigNumber;
38
+ spender: string | undefined;
39
+ allowance: BigNumber;
40
+ chainId: number;
41
+ account?: undefined;
42
+ } | null, Error>;
21
43
  };
22
44
  quoteTokenStatus: {
23
45
  token: import("../../../..").TokenInfo | null | undefined;
@@ -31,5 +53,26 @@ export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteA
31
53
  approveTitle: string;
32
54
  submitApprove: () => Promise<void>;
33
55
  getMaxBalance: () => string;
56
+ tokenQuery: import("@tanstack/react-query").UseQueryResult<{
57
+ symbol: string;
58
+ address: string;
59
+ name: string;
60
+ decimals: number;
61
+ balance: BigNumber;
62
+ allowance: BigNumber;
63
+ account: string;
64
+ spender: string | undefined;
65
+ chainId: number;
66
+ } | {
67
+ address: string;
68
+ decimals: number;
69
+ symbol: string;
70
+ name: string;
71
+ balance: BigNumber;
72
+ spender: string | undefined;
73
+ allowance: BigNumber;
74
+ chainId: number;
75
+ account?: undefined;
76
+ } | null, Error>;
34
77
  };
35
78
  };
@@ -1,6 +1,5 @@
1
1
  import { BoxProps } from '@dodoex/components';
2
2
  import { PoolOperateInnerProps } from './PoolOperateInner';
3
- import React from 'react';
4
3
  export interface PoolOperateProps {
5
4
  onClose?: () => void;
6
5
  account: string | undefined;
@@ -12,7 +11,7 @@ export interface PoolOperateProps {
12
11
  hidePoolInfo?: boolean;
13
12
  sx?: BoxProps['sx'];
14
13
  }
15
- export declare function PoolOperate({ onClose, pool: poolProps, address, operate, chainId, hasMining, hidePoolInfo, sx, }: PoolOperateProps): React.JSX.Element;
14
+ export declare function PoolOperate({ onClose, pool: poolProps, address, operate, chainId, hasMining, hidePoolInfo, sx, }: PoolOperateProps): import("react").JSX.Element;
16
15
  export default function PoolOperateDialog({ modal, ...props }: PoolOperateProps & {
17
16
  modal?: boolean;
18
- }): React.JSX.Element;
17
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { OperateCurvePoolT } from './types';
2
+ export interface AddProps {
3
+ operateCurvePool: OperateCurvePoolT;
4
+ }
5
+ export declare const Add: ({ operateCurvePool }: AddProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { OperateCurvePoolT } from './types';
2
+ export interface AddOrRemoveProps {
3
+ onClose?: () => void;
4
+ poolDetailBtnVisible?: boolean;
5
+ operateCurvePool: OperateCurvePoolT;
6
+ }
7
+ export declare const AddOrRemove: ({ onClose, poolDetailBtnVisible, operateCurvePool, }: AddOrRemoveProps) => import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import React from 'react';
3
+ import { OperateCurvePoolT } from './types';
4
+ export interface AllPoolsProps {
5
+ account?: string;
6
+ scrollParentRef: React.MutableRefObject<HTMLDivElement | null>;
7
+ activeChainId: ChainId | undefined;
8
+ operateCurvePool: OperateCurvePoolT | null;
9
+ setOperateCurvePool: React.Dispatch<React.SetStateAction<OperateCurvePoolT | null>>;
10
+ children?: React.ReactNode;
11
+ isMyPool?: boolean;
12
+ }
13
+ export declare const AllPools: ({ account, scrollParentRef, activeChainId, operateCurvePool, setOperateCurvePool, children, isMyPool, }: AllPoolsProps) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Page, PageType } from '../../../router/types';
2
+ export interface CurvePoolDetailProps {
3
+ params: Page<PageType.CurvePoolDetail>['params'];
4
+ }
5
+ export declare const CurvePoolDetail: ({ params }: CurvePoolDetailProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { OperateCurvePoolT } from './types';
2
+ export interface OperateDialogProps {
3
+ poolDetailBtnVisible?: boolean;
4
+ operateCurvePool: OperateCurvePoolT;
5
+ setOperateCurvePool?: React.Dispatch<React.SetStateAction<OperateCurvePoolT | null>>;
6
+ }
7
+ export declare const OperateDialog: ({ poolDetailBtnVisible, operateCurvePool, setOperateCurvePool, }: OperateDialogProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { OperateCurvePoolT } from './types';
2
+ export interface RemoveProps {
3
+ operateCurvePool: OperateCurvePoolT;
4
+ }
5
+ export declare const Remove: ({ operateCurvePool }: RemoveProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ export declare function ApyTooltip({ apy, dailyApy, weeklyApy, sx, }: {
3
+ apy: string | null | undefined;
4
+ dailyApy: string | null | undefined;
5
+ weeklyApy: string | null | undefined;
6
+ sx?: BoxProps['sx'];
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { CurvePoolT } from '../types';
2
+ export interface CoinReservePieChartProps {
3
+ poolDetail: CurvePoolT | undefined;
4
+ tokenBalances: BigNumber[] | null;
5
+ }
6
+ export declare const CoinReservePieChart: ({ poolDetail, tokenBalances, }: CoinReservePieChartProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CurvePoolT } from '../types';
2
+ export interface CoinsLogoListProps {
3
+ pool?: CurvePoolT;
4
+ separate: boolean;
5
+ wrap: boolean;
6
+ }
7
+ export declare const CoinsLogoList: ({ pool, separate, wrap }: CoinsLogoListProps) => import("react").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ import { CurvePoolT } from '../types';
3
+ export default function FilterAddressTags({ lqList, onDeleteTag, sx, }: {
4
+ lqList: CurvePoolT[];
5
+ onDeleteTag: () => void;
6
+ sx?: BoxProps['sx'];
7
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface LiquidityProvidersTableProps {
3
+ chainId: number | undefined;
4
+ address: string | undefined;
5
+ }
6
+ export declare const LiquidityProvidersTable: ({ chainId, address, }: LiquidityProvidersTableProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function OperateButtonContainer({ children, }: {
2
+ children: React.ReactNode;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { CurvePoolT } from '../types';
2
+ export interface ParametersTableProps {
3
+ poolDetail: CurvePoolT | undefined;
4
+ }
5
+ export declare const ParametersTable: ({ poolDetail }: ParametersTableProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { CurvePoolT } from '../types';
2
+ export interface PoolTitleProps {
3
+ poolDetail: CurvePoolT | undefined;
4
+ }
5
+ export declare const PoolTitle: ({ poolDetail }: PoolTitleProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { CurvePoolT } from '../types';
2
+ export interface PoolTotalStatsProps {
3
+ poolDetail: CurvePoolT | undefined;
4
+ }
5
+ export declare const PoolTotalStats: ({ poolDetail }: PoolTotalStatsProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export interface SlippageBonusProps {
2
+ }
3
+ export declare const SlippageBonus: (props: SlippageBonusProps) => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
3
+ export declare function SwapsTable({ chainId, address, }: {
4
+ chainId: number | undefined;
5
+ address: string | undefined;
6
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { CurvePoolT } from '../types';
2
+ export default function TokenListPoolItem({ list, onClick, }: {
3
+ list: CurvePoolT[];
4
+ onClick: () => void;
5
+ }): import("react").JSX.Element;