@dodoex/widgets 3.16.0 → 3.18.0
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/219f8611c6c9e6e2.svg +6 -0
- package/dist/34acf2e58b457195.svg +9 -0
- package/dist/44df077bd19df476.svg +10 -0
- package/dist/5c5d298f247819e1.svg +10 -0
- package/dist/assets/bundle-BBymdwHN.css +65 -0
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/helper-C1OYS4SC.cjs +1 -0
- package/dist/helper-DUWFcWe6.js +1 -0
- package/dist/index-BGe7caLE.js +12 -0
- package/dist/index-BdB2BCQe.cjs +78 -0
- package/dist/index-CQl4nYsF.cjs +12 -0
- package/dist/index-Cm0O00ow.cjs +14 -0
- package/dist/index-XzRE8z_c.js +78 -0
- package/dist/index-ZV1FQySp.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/Bridge/BridgeRouteShortCard.d.ts +4 -2
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +2 -2
- package/dist/types/components/CardWidgets.d.ts +2 -11
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +4 -0
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/types/components/ErrorMessageDialog.d.ts +1 -2
- package/dist/types/components/HowItWorks.d.ts +5 -5
- package/dist/types/components/Message/index.d.ts +1 -1
- package/dist/types/components/SelectChain.d.ts +2 -1
- package/dist/types/components/SubmittedDialog.d.ts +7 -0
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +5 -6
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +5 -0
- package/dist/types/components/Swap/components/Dialog.d.ts +1 -1
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +1 -2
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +1 -2
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +7 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +3 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +2 -3
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -2
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +2 -3
- package/dist/types/components/Swap/index.d.ts +4 -2
- package/dist/types/components/SwitchChainDialog/index.d.ts +6 -0
- package/dist/types/components/TokenPicker/ImportToken.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenDetailInfo.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenItem.d.ts +4 -3
- package/dist/types/components/TokenPicker/index.d.ts +3 -3
- package/dist/types/components/Widget/index.d.ts +15 -13
- package/dist/types/components/WithExecutionDialog/index.d.ts +2 -1
- package/dist/types/constants/address.d.ts +0 -6
- package/dist/types/constants/api.d.ts +4 -96
- package/dist/types/constants/chainList.d.ts +0 -10
- package/dist/types/constants/chains.d.ts +1 -17
- package/dist/types/constants/sessionStorage.d.ts +0 -1
- package/dist/types/constants/swap.d.ts +0 -1
- package/dist/types/constants/tokenList.d.ts +9 -8
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +24 -4
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +48 -138
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +2 -1
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -4
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +2 -0
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +12 -1
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +8 -0
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/types/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/types/hooks/Submission/types.d.ts +1 -29
- package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +1 -2
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +4 -2
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +6 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -2
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +5 -3
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +6 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +133 -34
- package/dist/types/hooks/Token/type.d.ts +2 -3
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/types/hooks/Token/useInitTokenList.d.ts +2 -2
- package/dist/types/hooks/Token/useSelectChainList.d.ts +5 -5
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenList.d.ts +8 -4
- package/dist/types/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +4 -1
- package/dist/types/hooks/Token/useTokenStatus.d.ts +2 -28
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +1 -2
- package/dist/types/hooks/contract/useFetchTokens.d.ts +4 -9
- package/dist/types/hooks/useGlobalState.d.ts +0 -2
- package/dist/types/hooks/useGraphQLRequests.d.ts +1 -0
- package/dist/types/hooks/useMessageState.d.ts +1 -2
- package/dist/types/hooks/useRouteVisionData.d.ts +1 -17
- package/dist/types/hooks/useTokenState.d.ts +18 -3
- package/dist/types/index.d.ts +35 -27
- package/dist/types/locales/en-US.d.ts +1 -0
- package/dist/types/providers/i18n.d.ts +1 -1
- package/dist/types/router/types.d.ts +0 -5
- package/dist/types/utils/address.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/utils/wallet.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +1 -4
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +1 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +5 -7
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +7 -2
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +5 -7
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +6 -14
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +7 -8
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +6 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +5 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +2 -49
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +6 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/utils.d.ts +0 -4
- package/package.json +1 -1
- package/dist/helper-Dry2KYfh.js +0 -1
- package/dist/helper-iRd-4sp4.cjs +0 -1
- package/dist/index-BRTABuMK.cjs +0 -12
- package/dist/index-Ca_h9Yxg.js +0 -34
- package/dist/index-DDwPtr_I.js +0 -12
- package/dist/index-DHfQEIuw.cjs +0 -78
- package/dist/index-DsQIchnJ.js +0 -78
- package/dist/index-vyWzevj_.cjs +0 -34
- package/dist/types/components/Bridge/CompareRoute.d.ts +0 -4
- package/dist/types/components/Bridge/RouteVision.d.ts +0 -7
- package/dist/types/components/Bridge/RouteVisionModal.d.ts +0 -5
- package/dist/types/components/SquaredGoBack.d.ts +0 -5
- package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +0 -4
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +0 -8
- package/dist/types/components/Swap/SwapOrderHistory/RefundModal.d.ts +0 -9
- package/dist/types/components/Swap/SwapOrderHistory/SameChainOrderList.d.ts +0 -3
- package/dist/types/components/Swap/components/FiatEntryAndGasRefuel.d.ts +0 -1
- package/dist/types/components/Swap/components/ReceiveAddressInputModal.d.ts +0 -10
- package/dist/types/components/Swap/components/RouteVisionModal.d.ts +0 -7
- package/dist/types/components/Swap/components/SwapSettingsDialog/SupplierSelect.d.ts +0 -5
- package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +0 -48
- package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +0 -11
- package/dist/types/hooks/Bridge/useFeeList.d.ts +0 -9
- package/dist/types/hooks/Bridge/utils.d.ts +0 -6
- package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +0 -1
- package/dist/types/hooks/Swap/useBridgeSlippage.d.ts +0 -3
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +0 -215
- package/dist/types/hooks/Swap/usePrivacySwapStatus.d.ts +0 -10
- package/dist/types/hooks/Swap/useSwitchToSupplierChain.d.ts +0 -13
- package/dist/types/hooks/contract/useFetchMultiTokensForSingleChain.d.ts +0 -20
- package/dist/types/hooks/useAddressValidation.d.ts +0 -2
- package/dist/types/utils/CaipNetworksUtil.d.ts +0 -5
- package/dist/types/utils/btc.d.ts +0 -42
- package/dist/types/utils/constants.d.ts +0 -2
- package/dist/types/utils/reown-types.d.ts +0 -28
- package/dist/types/utils/solana.d.ts +0 -7
- package/dist/types/utils/ton.d.ts +0 -3
- package/dist/types/utils/zetachain_btc_test.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSetList.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterGroup.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/components/SortButtonGroup.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/components/TableSortButton.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolList/components/tags.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/curve/Add.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/AddOrRemove.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/curve/CurvePoolDetail.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/OperateDialog.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/Remove.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/ApyTooltip.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/CoinReservePieChart.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/CoinsLogoList.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/curve/components/LiquidityProvidersTable.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/OperateButtonContainer.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/curve/components/ParametersTable.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/PoolTitle.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/PoolTotalStats.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/components/SlippageBonus.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/curve/components/SwapsTable.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/curve/hooks/useLiquidityProviders.d.ts +0 -166
- package/dist/types/widgets/PoolWidget/curve/hooks/useLpTokenBalances.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolDetail.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolSwapList.d.ts +0 -166
- package/dist/types/widgets/PoolWidget/curve/types.d.ts +0 -44
- package/dist/types/widgets/PoolWidget/curve/utils.d.ts +0 -4
- /package/dist/types/hooks/{useAddressValidation.test.d.ts → Bridge/useFetchRoutePriceBridge.test.d.ts} +0 -0
- /package/dist/types/{tests/1-get-account-state.d.ts → hooks/Chain/useChainList.test.d.ts} +0 -0
- /package/dist/types/{tests/1-send-ton.d.ts → hooks/Swap/useFetchFiatPrice.test.d.ts} +0 -0
- /package/dist/types/{utils/sui_test.d.ts → hooks/Swap/useFetchRoutePrice.test.d.ts} +0 -0
- /package/dist/types/{utils/ton_test.d.ts → hooks/Swap/useMarginAmount.test.d.ts} +0 -0
- /package/dist/types/{hooks → widgets/MiningWidget/hooks}/useRefetch.d.ts +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
export declare function useLiquidityProviders({ chainId, address, }: {
|
|
2
|
-
chainId: number | undefined;
|
|
3
|
-
address: string | undefined;
|
|
4
|
-
}): {
|
|
5
|
-
list: any;
|
|
6
|
-
data: unknown;
|
|
7
|
-
error: Error;
|
|
8
|
-
isError: true;
|
|
9
|
-
isPending: false;
|
|
10
|
-
isLoading: false;
|
|
11
|
-
isLoadingError: false;
|
|
12
|
-
isRefetchError: true;
|
|
13
|
-
isSuccess: false;
|
|
14
|
-
isPlaceholderData: false;
|
|
15
|
-
status: "error";
|
|
16
|
-
dataUpdatedAt: number;
|
|
17
|
-
errorUpdatedAt: number;
|
|
18
|
-
failureCount: number;
|
|
19
|
-
failureReason: Error | null;
|
|
20
|
-
errorUpdateCount: number;
|
|
21
|
-
isFetched: boolean;
|
|
22
|
-
isFetchedAfterMount: boolean;
|
|
23
|
-
isFetching: boolean;
|
|
24
|
-
isInitialLoading: boolean;
|
|
25
|
-
isPaused: boolean;
|
|
26
|
-
isRefetching: boolean;
|
|
27
|
-
isStale: boolean;
|
|
28
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
29
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
30
|
-
promise: Promise<unknown>;
|
|
31
|
-
} | {
|
|
32
|
-
list: any;
|
|
33
|
-
data: unknown;
|
|
34
|
-
error: null;
|
|
35
|
-
isError: false;
|
|
36
|
-
isPending: false;
|
|
37
|
-
isLoading: false;
|
|
38
|
-
isLoadingError: false;
|
|
39
|
-
isRefetchError: false;
|
|
40
|
-
isSuccess: true;
|
|
41
|
-
isPlaceholderData: false;
|
|
42
|
-
status: "success";
|
|
43
|
-
dataUpdatedAt: number;
|
|
44
|
-
errorUpdatedAt: number;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
failureReason: Error | null;
|
|
47
|
-
errorUpdateCount: number;
|
|
48
|
-
isFetched: boolean;
|
|
49
|
-
isFetchedAfterMount: boolean;
|
|
50
|
-
isFetching: boolean;
|
|
51
|
-
isInitialLoading: boolean;
|
|
52
|
-
isPaused: boolean;
|
|
53
|
-
isRefetching: boolean;
|
|
54
|
-
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
56
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
|
-
promise: Promise<unknown>;
|
|
58
|
-
} | {
|
|
59
|
-
list: any;
|
|
60
|
-
data: undefined;
|
|
61
|
-
error: Error;
|
|
62
|
-
isError: true;
|
|
63
|
-
isPending: false;
|
|
64
|
-
isLoading: false;
|
|
65
|
-
isLoadingError: true;
|
|
66
|
-
isRefetchError: false;
|
|
67
|
-
isSuccess: false;
|
|
68
|
-
isPlaceholderData: false;
|
|
69
|
-
status: "error";
|
|
70
|
-
dataUpdatedAt: number;
|
|
71
|
-
errorUpdatedAt: number;
|
|
72
|
-
failureCount: number;
|
|
73
|
-
failureReason: Error | null;
|
|
74
|
-
errorUpdateCount: number;
|
|
75
|
-
isFetched: boolean;
|
|
76
|
-
isFetchedAfterMount: boolean;
|
|
77
|
-
isFetching: boolean;
|
|
78
|
-
isInitialLoading: boolean;
|
|
79
|
-
isPaused: boolean;
|
|
80
|
-
isRefetching: boolean;
|
|
81
|
-
isStale: boolean;
|
|
82
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
83
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
84
|
-
promise: Promise<unknown>;
|
|
85
|
-
} | {
|
|
86
|
-
list: any;
|
|
87
|
-
data: undefined;
|
|
88
|
-
error: null;
|
|
89
|
-
isError: false;
|
|
90
|
-
isPending: true;
|
|
91
|
-
isLoading: true;
|
|
92
|
-
isLoadingError: false;
|
|
93
|
-
isRefetchError: false;
|
|
94
|
-
isSuccess: false;
|
|
95
|
-
isPlaceholderData: false;
|
|
96
|
-
status: "pending";
|
|
97
|
-
dataUpdatedAt: number;
|
|
98
|
-
errorUpdatedAt: number;
|
|
99
|
-
failureCount: number;
|
|
100
|
-
failureReason: Error | null;
|
|
101
|
-
errorUpdateCount: number;
|
|
102
|
-
isFetched: boolean;
|
|
103
|
-
isFetchedAfterMount: boolean;
|
|
104
|
-
isFetching: boolean;
|
|
105
|
-
isInitialLoading: boolean;
|
|
106
|
-
isPaused: boolean;
|
|
107
|
-
isRefetching: boolean;
|
|
108
|
-
isStale: boolean;
|
|
109
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
110
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
111
|
-
promise: Promise<unknown>;
|
|
112
|
-
} | {
|
|
113
|
-
list: any;
|
|
114
|
-
data: undefined;
|
|
115
|
-
error: null;
|
|
116
|
-
isError: false;
|
|
117
|
-
isPending: true;
|
|
118
|
-
isLoadingError: false;
|
|
119
|
-
isRefetchError: false;
|
|
120
|
-
isSuccess: false;
|
|
121
|
-
isPlaceholderData: false;
|
|
122
|
-
status: "pending";
|
|
123
|
-
dataUpdatedAt: number;
|
|
124
|
-
errorUpdatedAt: number;
|
|
125
|
-
failureCount: number;
|
|
126
|
-
failureReason: Error | null;
|
|
127
|
-
errorUpdateCount: number;
|
|
128
|
-
isFetched: boolean;
|
|
129
|
-
isFetchedAfterMount: boolean;
|
|
130
|
-
isFetching: boolean;
|
|
131
|
-
isLoading: boolean;
|
|
132
|
-
isInitialLoading: boolean;
|
|
133
|
-
isPaused: boolean;
|
|
134
|
-
isRefetching: boolean;
|
|
135
|
-
isStale: boolean;
|
|
136
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
137
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
138
|
-
promise: Promise<unknown>;
|
|
139
|
-
} | {
|
|
140
|
-
list: any;
|
|
141
|
-
data: unknown;
|
|
142
|
-
isError: false;
|
|
143
|
-
error: null;
|
|
144
|
-
isPending: false;
|
|
145
|
-
isLoading: false;
|
|
146
|
-
isLoadingError: false;
|
|
147
|
-
isRefetchError: false;
|
|
148
|
-
isSuccess: true;
|
|
149
|
-
isPlaceholderData: true;
|
|
150
|
-
status: "success";
|
|
151
|
-
dataUpdatedAt: number;
|
|
152
|
-
errorUpdatedAt: number;
|
|
153
|
-
failureCount: number;
|
|
154
|
-
failureReason: Error | null;
|
|
155
|
-
errorUpdateCount: number;
|
|
156
|
-
isFetched: boolean;
|
|
157
|
-
isFetchedAfterMount: boolean;
|
|
158
|
-
isFetching: boolean;
|
|
159
|
-
isInitialLoading: boolean;
|
|
160
|
-
isPaused: boolean;
|
|
161
|
-
isRefetching: boolean;
|
|
162
|
-
isStale: boolean;
|
|
163
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
164
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
165
|
-
promise: Promise<unknown>;
|
|
166
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CurvePoolT } from '../types';
|
|
2
|
-
export declare function useLpTokenBalances({ pool, account, }: {
|
|
3
|
-
pool: CurvePoolT | undefined;
|
|
4
|
-
account: string | undefined;
|
|
5
|
-
}): {
|
|
6
|
-
lpTokenTotalSupply: any;
|
|
7
|
-
tokenBalances: any;
|
|
8
|
-
lpTokenBalance: any;
|
|
9
|
-
userTokenBalances: any;
|
|
10
|
-
lpTokenBalanceLoading: false;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { CurvePoolT } from '../types';
|
|
3
|
-
export declare function usePoolDetail({ address, chainId, }: {
|
|
4
|
-
address: string | undefined;
|
|
5
|
-
chainId: ChainId | undefined;
|
|
6
|
-
}): {
|
|
7
|
-
poolDetail: CurvePoolT | undefined;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
error: Error | null;
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { CurvePoolT } from '../types';
|
|
3
|
-
export declare function usePoolListFilterTokenAndPool(): {
|
|
4
|
-
filterTokens: TokenInfo[];
|
|
5
|
-
filterAddressLqList: CurvePoolT[];
|
|
6
|
-
handleDeleteToken: (token: TokenInfo) => void;
|
|
7
|
-
handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
|
|
8
|
-
handleChangeFilterAddress: (lqList: CurvePoolT[]) => void;
|
|
9
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
export declare function usePoolSwapList({ chainId, address, }: {
|
|
2
|
-
chainId: number | undefined;
|
|
3
|
-
address: string | undefined;
|
|
4
|
-
}): {
|
|
5
|
-
swapList: any;
|
|
6
|
-
data: unknown;
|
|
7
|
-
error: Error;
|
|
8
|
-
isError: true;
|
|
9
|
-
isPending: false;
|
|
10
|
-
isLoading: false;
|
|
11
|
-
isLoadingError: false;
|
|
12
|
-
isRefetchError: true;
|
|
13
|
-
isSuccess: false;
|
|
14
|
-
isPlaceholderData: false;
|
|
15
|
-
status: "error";
|
|
16
|
-
dataUpdatedAt: number;
|
|
17
|
-
errorUpdatedAt: number;
|
|
18
|
-
failureCount: number;
|
|
19
|
-
failureReason: Error | null;
|
|
20
|
-
errorUpdateCount: number;
|
|
21
|
-
isFetched: boolean;
|
|
22
|
-
isFetchedAfterMount: boolean;
|
|
23
|
-
isFetching: boolean;
|
|
24
|
-
isInitialLoading: boolean;
|
|
25
|
-
isPaused: boolean;
|
|
26
|
-
isRefetching: boolean;
|
|
27
|
-
isStale: boolean;
|
|
28
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
29
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
30
|
-
promise: Promise<unknown>;
|
|
31
|
-
} | {
|
|
32
|
-
swapList: any;
|
|
33
|
-
data: unknown;
|
|
34
|
-
error: null;
|
|
35
|
-
isError: false;
|
|
36
|
-
isPending: false;
|
|
37
|
-
isLoading: false;
|
|
38
|
-
isLoadingError: false;
|
|
39
|
-
isRefetchError: false;
|
|
40
|
-
isSuccess: true;
|
|
41
|
-
isPlaceholderData: false;
|
|
42
|
-
status: "success";
|
|
43
|
-
dataUpdatedAt: number;
|
|
44
|
-
errorUpdatedAt: number;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
failureReason: Error | null;
|
|
47
|
-
errorUpdateCount: number;
|
|
48
|
-
isFetched: boolean;
|
|
49
|
-
isFetchedAfterMount: boolean;
|
|
50
|
-
isFetching: boolean;
|
|
51
|
-
isInitialLoading: boolean;
|
|
52
|
-
isPaused: boolean;
|
|
53
|
-
isRefetching: boolean;
|
|
54
|
-
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
56
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
|
-
promise: Promise<unknown>;
|
|
58
|
-
} | {
|
|
59
|
-
swapList: any;
|
|
60
|
-
data: undefined;
|
|
61
|
-
error: Error;
|
|
62
|
-
isError: true;
|
|
63
|
-
isPending: false;
|
|
64
|
-
isLoading: false;
|
|
65
|
-
isLoadingError: true;
|
|
66
|
-
isRefetchError: false;
|
|
67
|
-
isSuccess: false;
|
|
68
|
-
isPlaceholderData: false;
|
|
69
|
-
status: "error";
|
|
70
|
-
dataUpdatedAt: number;
|
|
71
|
-
errorUpdatedAt: number;
|
|
72
|
-
failureCount: number;
|
|
73
|
-
failureReason: Error | null;
|
|
74
|
-
errorUpdateCount: number;
|
|
75
|
-
isFetched: boolean;
|
|
76
|
-
isFetchedAfterMount: boolean;
|
|
77
|
-
isFetching: boolean;
|
|
78
|
-
isInitialLoading: boolean;
|
|
79
|
-
isPaused: boolean;
|
|
80
|
-
isRefetching: boolean;
|
|
81
|
-
isStale: boolean;
|
|
82
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
83
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
84
|
-
promise: Promise<unknown>;
|
|
85
|
-
} | {
|
|
86
|
-
swapList: any;
|
|
87
|
-
data: undefined;
|
|
88
|
-
error: null;
|
|
89
|
-
isError: false;
|
|
90
|
-
isPending: true;
|
|
91
|
-
isLoading: true;
|
|
92
|
-
isLoadingError: false;
|
|
93
|
-
isRefetchError: false;
|
|
94
|
-
isSuccess: false;
|
|
95
|
-
isPlaceholderData: false;
|
|
96
|
-
status: "pending";
|
|
97
|
-
dataUpdatedAt: number;
|
|
98
|
-
errorUpdatedAt: number;
|
|
99
|
-
failureCount: number;
|
|
100
|
-
failureReason: Error | null;
|
|
101
|
-
errorUpdateCount: number;
|
|
102
|
-
isFetched: boolean;
|
|
103
|
-
isFetchedAfterMount: boolean;
|
|
104
|
-
isFetching: boolean;
|
|
105
|
-
isInitialLoading: boolean;
|
|
106
|
-
isPaused: boolean;
|
|
107
|
-
isRefetching: boolean;
|
|
108
|
-
isStale: boolean;
|
|
109
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
110
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
111
|
-
promise: Promise<unknown>;
|
|
112
|
-
} | {
|
|
113
|
-
swapList: any;
|
|
114
|
-
data: undefined;
|
|
115
|
-
error: null;
|
|
116
|
-
isError: false;
|
|
117
|
-
isPending: true;
|
|
118
|
-
isLoadingError: false;
|
|
119
|
-
isRefetchError: false;
|
|
120
|
-
isSuccess: false;
|
|
121
|
-
isPlaceholderData: false;
|
|
122
|
-
status: "pending";
|
|
123
|
-
dataUpdatedAt: number;
|
|
124
|
-
errorUpdatedAt: number;
|
|
125
|
-
failureCount: number;
|
|
126
|
-
failureReason: Error | null;
|
|
127
|
-
errorUpdateCount: number;
|
|
128
|
-
isFetched: boolean;
|
|
129
|
-
isFetchedAfterMount: boolean;
|
|
130
|
-
isFetching: boolean;
|
|
131
|
-
isLoading: boolean;
|
|
132
|
-
isInitialLoading: boolean;
|
|
133
|
-
isPaused: boolean;
|
|
134
|
-
isRefetching: boolean;
|
|
135
|
-
isStale: boolean;
|
|
136
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
137
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
138
|
-
promise: Promise<unknown>;
|
|
139
|
-
} | {
|
|
140
|
-
swapList: any;
|
|
141
|
-
data: unknown;
|
|
142
|
-
isError: false;
|
|
143
|
-
error: null;
|
|
144
|
-
isPending: false;
|
|
145
|
-
isLoading: false;
|
|
146
|
-
isLoadingError: false;
|
|
147
|
-
isRefetchError: false;
|
|
148
|
-
isSuccess: true;
|
|
149
|
-
isPlaceholderData: true;
|
|
150
|
-
status: "success";
|
|
151
|
-
dataUpdatedAt: number;
|
|
152
|
-
errorUpdatedAt: number;
|
|
153
|
-
failureCount: number;
|
|
154
|
-
failureReason: Error | null;
|
|
155
|
-
errorUpdateCount: number;
|
|
156
|
-
isFetched: boolean;
|
|
157
|
-
isFetchedAfterMount: boolean;
|
|
158
|
-
isFetching: boolean;
|
|
159
|
-
isInitialLoading: boolean;
|
|
160
|
-
isPaused: boolean;
|
|
161
|
-
isRefetching: boolean;
|
|
162
|
-
isStale: boolean;
|
|
163
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<unknown, Error>>;
|
|
164
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
165
|
-
promise: Promise<unknown>;
|
|
166
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
-
import { OperateTab } from '../PoolOperate/hooks/usePoolOperateTabs';
|
|
4
|
-
/**
|
|
5
|
-
* CurveStableSwapNG
|
|
6
|
-
*
|
|
7
|
-
* @see https://zetachain-testnet.blockscout.com/token/0xDddfBCc76166d741c2dfa6b6a90769df398b9969?tab=read_contract
|
|
8
|
-
*/
|
|
9
|
-
export type CurvePoolT = {
|
|
10
|
-
chainId: ChainId;
|
|
11
|
-
name: string;
|
|
12
|
-
address: string;
|
|
13
|
-
symbol: string;
|
|
14
|
-
decimals: number;
|
|
15
|
-
fee: string;
|
|
16
|
-
coins: TokenInfo[];
|
|
17
|
-
apy: string | null;
|
|
18
|
-
dailyApy: string | null;
|
|
19
|
-
weeklyApy: string | null;
|
|
20
|
-
tvl: string | null;
|
|
21
|
-
volume: string | null;
|
|
22
|
-
dailyVolumeUsd: string | null;
|
|
23
|
-
traderCount: string | null;
|
|
24
|
-
liquidityUtilization: string | null;
|
|
25
|
-
daoFee: string | null;
|
|
26
|
-
virtualPrice: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* export const POOL_TYPE_PLAIN = "plain";
|
|
29
|
-
export const POOL_TYPE_META = "meta";
|
|
30
|
-
现在有两种池子类型
|
|
31
|
-
11:44
|
|
32
|
-
PlainPoolDeployed
|
|
33
|
-
MetaPoolDeployed
|
|
34
|
-
创建池的时候事件不同
|
|
35
|
-
*/
|
|
36
|
-
poolType: 'plain' | 'meta';
|
|
37
|
-
a: string | null;
|
|
38
|
-
offpegFeeMultiplier: string | null;
|
|
39
|
-
lpTokenBalance: string | null;
|
|
40
|
-
};
|
|
41
|
-
export type OperateCurvePoolT = {
|
|
42
|
-
pool: CurvePoolT;
|
|
43
|
-
type: OperateTab;
|
|
44
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ChainId, CurveApi, ExcludeNone } from '@dodoex/api';
|
|
2
|
-
import { CurvePoolT } from './types';
|
|
3
|
-
export declare const curveApi: any;
|
|
4
|
-
export declare function convertRawPoolListToCurvePoolListT(rawPoolList: ExcludeNone<ReturnType<Exclude<(typeof CurveApi.graphql.curve_stableswap_ng_getAllPools)['__apiType'], undefined>>['curve_stableswap_ng_getAllPools']>['lqList'], chainId: ChainId | undefined): CurvePoolT[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|