@dodoex/widgets 3.14.1-react.9 → 3.16.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/LICENSE +674 -674
- package/README.md +70 -70
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/helper-Dry2KYfh.js +1 -0
- package/dist/helper-iRd-4sp4.cjs +1 -0
- package/dist/index-BRTABuMK.cjs +12 -0
- package/dist/index-Ca_h9Yxg.js +34 -0
- package/dist/index-DDwPtr_I.js +12 -0
- package/dist/index-DHfQEIuw.cjs +78 -0
- package/dist/index-DsQIchnJ.js +78 -0
- package/dist/index-vyWzevj_.cjs +34 -0
- package/dist/index.cjs +1 -2
- 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 +2 -4
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +2 -2
- package/dist/types/components/Bridge/CompareRoute.d.ts +4 -0
- package/dist/types/components/Bridge/RouteVision.d.ts +7 -0
- package/dist/types/components/Bridge/RouteVisionModal.d.ts +5 -0
- package/dist/types/components/CardWidgets.d.ts +11 -2
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
- package/dist/types/components/ErrorMessageDialog.d.ts +2 -1
- 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 +1 -2
- package/dist/types/components/SquaredGoBack.d.ts +5 -0
- package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +4 -0
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +8 -0
- package/dist/types/components/Swap/SwapOrderHistory/RefundModal.d.ts +9 -0
- package/dist/types/components/Swap/SwapOrderHistory/SameChainOrderList.d.ts +3 -0
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +6 -5
- package/dist/types/components/Swap/components/Dialog.d.ts +1 -1
- package/dist/types/components/Swap/components/FiatEntryAndGasRefuel.d.ts +1 -0
- package/dist/types/components/Swap/components/ReceiveAddressInputModal.d.ts +10 -0
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +2 -1
- package/dist/types/components/Swap/components/RouteVisionModal.d.ts +7 -0
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +1 -2
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +1 -3
- package/dist/types/components/Swap/components/SwapSettingsDialog/SupplierSelect.d.ts +5 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +3 -2
- package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +48 -0
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -0
- package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +11 -0
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +3 -2
- package/dist/types/components/Swap/index.d.ts +2 -4
- package/dist/types/components/TokenPicker/TokenItem.d.ts +3 -4
- package/dist/types/components/TokenPicker/index.d.ts +3 -3
- package/dist/types/components/Widget/index.d.ts +13 -15
- package/dist/types/components/WithExecutionDialog/index.d.ts +1 -2
- package/dist/types/constants/address.d.ts +6 -0
- package/dist/types/constants/api.d.ts +96 -4
- package/dist/types/constants/chainList.d.ts +10 -0
- package/dist/types/constants/chains.d.ts +17 -1
- package/dist/types/constants/sessionStorage.d.ts +1 -0
- package/dist/types/constants/swap.d.ts +1 -0
- package/dist/types/constants/tokenList.d.ts +8 -9
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +4 -24
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useFeeList.d.ts +9 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +138 -48
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +4 -1
- package/dist/types/hooks/Bridge/utils.d.ts +6 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +0 -2
- package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +1 -12
- package/dist/types/hooks/Submission/types.d.ts +29 -1
- package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
- package/dist/types/hooks/Swap/useBridgeSlippage.d.ts +3 -0
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +215 -0
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +2 -1
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +2 -4
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +0 -6
- package/dist/types/hooks/Swap/usePrivacySwapStatus.d.ts +10 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -2
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +3 -5
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +0 -6
- package/dist/types/hooks/Swap/useSwitchToSupplierChain.d.ts +13 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +34 -133
- package/dist/types/hooks/Token/type.d.ts +3 -2
- 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/useTokenList.d.ts +4 -8
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +1 -4
- package/dist/types/hooks/Token/useTokenStatus.d.ts +28 -2
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +2 -1
- package/dist/types/hooks/contract/useFetchMultiTokensForSingleChain.d.ts +20 -0
- package/dist/types/hooks/contract/useFetchTokens.d.ts +9 -4
- package/dist/types/hooks/useAddressValidation.d.ts +2 -0
- package/dist/types/hooks/useGlobalState.d.ts +2 -0
- package/dist/types/hooks/useGraphQLRequests.d.ts +0 -1
- package/dist/types/hooks/useMessageState.d.ts +2 -1
- package/dist/types/hooks/useRouteVisionData.d.ts +17 -1
- package/dist/types/hooks/useTokenState.d.ts +3 -18
- package/dist/types/index.d.ts +27 -35
- package/dist/types/router/types.d.ts +5 -0
- package/dist/types/utils/CaipNetworksUtil.d.ts +5 -0
- package/dist/types/utils/address.d.ts +1 -1
- package/dist/types/utils/btc.d.ts +42 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/reown-types.d.ts +28 -0
- package/dist/types/utils/solana.d.ts +7 -0
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/utils/ton.d.ts +3 -0
- package/dist/types/utils/wallet.d.ts +2 -0
- package/dist/types/utils/zetachain_btc_test.d.ts +5 -0
- 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 +1 -4
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSetList.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +1 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +1 -2
- 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 +1 -2
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +7 -5
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +2 -7
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +7 -5
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterGroup.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/SortButtonGroup.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TableSortButton.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/tags.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +14 -6
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +8 -7
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +2 -6
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +1 -5
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +49 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +2 -6
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/curve/Add.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/AddOrRemove.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/curve/CurvePoolDetail.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/OperateDialog.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/Remove.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/ApyTooltip.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/CoinReservePieChart.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/CoinsLogoList.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/LiquidityProvidersTable.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/OperateButtonContainer.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/curve/components/ParametersTable.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/PoolTitle.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/PoolTotalStats.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/SlippageBonus.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/curve/components/SwapsTable.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/useLiquidityProviders.d.ts +166 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/useLpTokenBalances.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolDetail.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolSwapList.d.ts +166 -0
- package/dist/types/widgets/PoolWidget/curve/types.d.ts +44 -0
- package/dist/types/widgets/PoolWidget/curve/utils.d.ts +4 -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 +0 -6
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/utils.d.ts +4 -0
- package/package.json +161 -161
- package/dist/28442382d977858a.svg +0 -9
- package/dist/8de9a184d4ef0a11.svg +0 -6
- package/dist/assets/bundle-BBymdwHN.css +0 -65
- package/dist/b3f16b2626f03378.svg +0 -10
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/helper-Ds_8_78g.cjs +0 -2
- package/dist/helper-Ds_8_78g.cjs.map +0 -1
- package/dist/helper-l9rrGqkT.js +0 -1
- package/dist/index-B6OsCe_1.cjs +0 -13
- package/dist/index-B6OsCe_1.cjs.map +0 -1
- package/dist/index-Bcqk1fMQ.cjs +0 -15
- package/dist/index-Bcqk1fMQ.cjs.map +0 -1
- package/dist/index-Bp_1xqpK.js +0 -14
- package/dist/index-BrLsqpSG.js +0 -12
- package/dist/index-DyKuKZOu.cjs +0 -79
- package/dist/index-DyKuKZOu.cjs.map +0 -1
- package/dist/index-bVmd7uFj.js +0 -78
- package/dist/index.cjs.map +0 -1
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -4
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
- package/dist/types/components/SubmittedDialog.d.ts +0 -7
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +0 -5
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +0 -7
- package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
- package/dist/types/components/TokenPicker/ImportToken.d.ts +0 -6
- package/dist/types/components/TokenPicker/TokenDetailInfo.d.ts +0 -6
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +0 -8
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/types/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +0 -15
- /package/dist/types/hooks/{Bridge/useFetchRoutePriceBridge.test.d.ts → useAddressValidation.test.d.ts} +0 -0
- /package/dist/types/{widgets/MiningWidget/hooks → hooks}/useRefetch.d.ts +0 -0
- /package/dist/types/{hooks/Chain/useChainList.test.d.ts → tests/1-get-account-state.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useFetchFiatPrice.test.d.ts → tests/1-send-ton.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useFetchRoutePrice.test.d.ts → utils/sui_test.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useMarginAmount.test.d.ts → utils/ton_test.d.ts} +0 -0
|
@@ -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,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,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 { 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,166 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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[];
|
|
@@ -9,7 +9,7 @@ export declare function useModifyDppPool({ pool, }: {
|
|
|
9
9
|
quoteToken: TokenInfo;
|
|
10
10
|
};
|
|
11
11
|
}): {
|
|
12
|
-
modifyDPPMutation: import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult
|
|
12
|
+
modifyDPPMutation: import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult, Error, {
|
|
13
13
|
baseAmount: string;
|
|
14
14
|
quoteAmount: string;
|
|
15
15
|
isRemove?: boolean;
|
|
@@ -9,4 +9,4 @@ export declare function useAMMV2AddLiquidity({ baseToken, quoteToken, baseAmount
|
|
|
9
9
|
isExists?: boolean;
|
|
10
10
|
successBack?: () => void;
|
|
11
11
|
submittedBack?: () => void;
|
|
12
|
-
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult
|
|
12
|
+
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult, Error, void, unknown>;
|
|
@@ -8,4 +8,4 @@ export declare function useAMMV2RemoveLiquidity({ baseToken, quoteToken, baseAmo
|
|
|
8
8
|
slippage: number;
|
|
9
9
|
fee: number | undefined;
|
|
10
10
|
submittedBack?: () => void;
|
|
11
|
-
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult
|
|
11
|
+
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult, Error, void, unknown>;
|
|
@@ -77,7 +77,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
77
77
|
isPaused: boolean;
|
|
78
78
|
isRefetching: boolean;
|
|
79
79
|
isStale: boolean;
|
|
80
|
-
isEnabled: boolean;
|
|
81
80
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
82
81
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
83
82
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -155,7 +154,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
155
154
|
isPaused: boolean;
|
|
156
155
|
isRefetching: boolean;
|
|
157
156
|
isStale: boolean;
|
|
158
|
-
isEnabled: boolean;
|
|
159
157
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
160
158
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
161
159
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -233,7 +231,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
233
231
|
isPaused: boolean;
|
|
234
232
|
isRefetching: boolean;
|
|
235
233
|
isStale: boolean;
|
|
236
|
-
isEnabled: boolean;
|
|
237
234
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
238
235
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
239
236
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -311,7 +308,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
311
308
|
isPaused: boolean;
|
|
312
309
|
isRefetching: boolean;
|
|
313
310
|
isStale: boolean;
|
|
314
|
-
isEnabled: boolean;
|
|
315
311
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
316
312
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
317
313
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -389,7 +385,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
389
385
|
isPaused: boolean;
|
|
390
386
|
isRefetching: boolean;
|
|
391
387
|
isStale: boolean;
|
|
392
|
-
isEnabled: boolean;
|
|
393
388
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
394
389
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
395
390
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -467,7 +462,6 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
467
462
|
isPaused: boolean;
|
|
468
463
|
isRefetching: boolean;
|
|
469
464
|
isStale: boolean;
|
|
470
|
-
isEnabled: boolean;
|
|
471
465
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
472
466
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
473
467
|
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
2
1
|
import { Pair } from '@uniswap/v2-sdk';
|
|
3
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
4
|
export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
5
5
|
pool?: {
|
|
6
6
|
type: string;
|
|
@@ -19,3 +19,7 @@ export declare function convertFetchMyLiquidityToOperateData(lqData: ExcludeNone
|
|
|
19
19
|
export declare function convertFetchPoolToOperateData(pool: FetchPoolList[0], chainId: number): OperatePool;
|
|
20
20
|
export declare function getPoolAMMOrPMM(type: PoolType): "AMM V2" | "AMM V3" | "PMM";
|
|
21
21
|
export declare function getIsAMMV2DynamicFeeContractByChainId(chainId: number): boolean;
|
|
22
|
+
export declare function toColorfulNumString({ input, decimals, }: {
|
|
23
|
+
input?: BigNumber | number | string | null;
|
|
24
|
+
decimals?: number;
|
|
25
|
+
}): import("react").JSX.Element;
|