@dodoex/widgets 3.0.0-beta.2 → 3.0.0-beta.4
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/cjs/components/Widget/index.d.ts +4 -2
- package/dist/cjs/{helper-CT7gzva6.cjs → helper-B2-rZVIE.cjs} +1 -1
- package/dist/cjs/hooks/Widget/useInitPropsToRedux.d.ts +1 -1
- package/dist/cjs/{index-Dvm2UvHH.cjs → index-CwNxbpQG.cjs} +1 -1
- package/dist/cjs/{index-Btn_JJqA.cjs → index-DcTfgD7l.cjs} +1 -1
- package/dist/cjs/{index-385J8FnP.cjs → index-GmVuq-HG.cjs} +3 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/{lottie-bG8uL7Ic.cjs → lottie-Br_vIGRH.cjs} +1 -1
- package/dist/components/Widget/index.d.ts +4 -2
- package/dist/{helper-7cc29594.js → helper-DNb0C46N.js} +1 -1
- package/dist/hooks/Widget/useInitPropsToRedux.d.ts +1 -1
- package/dist/{index-DhQe6anS.js → index-5b4GvkIX.js} +1 -1
- package/dist/{index-Ch7GewG2.js → index-BnI0cbY9.js} +3 -3
- package/dist/{index-DksR3nfe.js → index-DVDdzCO4.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{lottie-CvNBrPAN.js → lottie-CFAC9m8a.js} +1 -1
- package/package.json +4 -4
- package/dist/cjs/e2e/connect.test.d.ts +0 -6
- package/dist/cjs/e2e/constants.d.ts +0 -87
- package/dist/cjs/e2e/default.test.d.ts +0 -6
- package/dist/cjs/e2e/setup.d.ts +0 -4
- package/dist/cjs/failed-list-e6c1e563-7122998d.cjs +0 -1
- package/dist/cjs/helper-889c5e9a.cjs +0 -1
- package/dist/cjs/index-183743c8.cjs +0 -45
- package/dist/cjs/index-1904ef51.cjs +0 -50
- package/dist/cjs/index-19cf4c6e.cjs +0 -50
- package/dist/cjs/index-1a21b21a.cjs +0 -45
- package/dist/cjs/index-246a9973.cjs +0 -50
- package/dist/cjs/index-256d5f78.cjs +0 -12
- package/dist/cjs/index-39149ce7.cjs +0 -45
- package/dist/cjs/index-4190bae6.cjs +0 -58
- package/dist/cjs/index-457c65f3.cjs +0 -78
- package/dist/cjs/index-5eca89d2.cjs +0 -50
- package/dist/cjs/index-64af8ffd.cjs +0 -45
- package/dist/cjs/index-f2a80623.cjs +0 -45
- package/dist/cjs/locales/en-US.js +0 -5
- package/dist/cjs/locales/zh-CN.js +0 -5
- package/dist/cjs/lottie-01f67a00.cjs +0 -1
- package/dist/cjs/lottie-09dbe581.cjs +0 -1
- package/dist/cjs/lottie-2035df95.cjs +0 -1
- package/dist/cjs/lottie-7e742196.cjs +0 -1
- package/dist/cjs/lottie-924a2436.cjs +0 -1
- package/dist/cjs/lottie-b9cf6aee.cjs +0 -1
- package/dist/cjs/lottie-c4b6404b.cjs +0 -1
- package/dist/cjs/lottie-ed4f1473.cjs +0 -1
- package/dist/cjs/lottie-edc8e0b8.cjs +0 -1
- package/dist/cjs/lottie-f516f300.cjs +0 -1
- package/dist/cjs/no-found-89a3b4af-9c7e1488.cjs +0 -1
- package/dist/cjs/no-result-01c60834-3e379801.cjs +0 -1
- package/dist/cjs/src/components/AddressWithLinkAndCopy.d.ts +0 -22
- package/dist/cjs/src/components/AutoButton.d.ts +0 -7
- package/dist/cjs/src/components/Bridge/BridgeRouteShortCard.d.ts +0 -6
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -5
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -18
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -16
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -6
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
- package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -14
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -10
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -4
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -20
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -12
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -11
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -8
- package/dist/cjs/src/components/Confirm.d.ts +0 -15
- package/dist/cjs/src/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +0 -8
- package/dist/cjs/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
- package/dist/cjs/src/components/CopyTooltipToast.d.ts +0 -9
- package/dist/cjs/src/components/DataCard/DataCardGroup.d.ts +0 -9
- package/dist/cjs/src/components/Dialog.d.ts +0 -1
- package/dist/cjs/src/components/ErrorMessageDialog.d.ts +0 -5
- package/dist/cjs/src/components/GoBack.d.ts +0 -6
- package/dist/cjs/src/components/HowItWorks.d.ts +0 -11
- package/dist/cjs/src/components/List/EmptyList.d.ts +0 -7
- package/dist/cjs/src/components/List/FailedList.d.ts +0 -6
- package/dist/cjs/src/components/RiskDialog.d.ts +0 -7
- package/dist/cjs/src/components/SelectChain.d.ts +0 -12
- package/dist/cjs/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +0 -6
- package/dist/cjs/src/components/Swap/components/Dialog.d.ts +0 -15
- package/dist/cjs/src/components/Swap/components/ReviewDialog.d.ts +0 -21
- package/dist/cjs/src/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -8
- package/dist/cjs/src/components/Swap/components/SettingsDialog/index.d.ts +0 -7
- package/dist/cjs/src/components/Swap/components/SwitchBox.d.ts +0 -5
- package/dist/cjs/src/components/Swap/components/TokenCard/BalanceText.d.ts +0 -11
- package/dist/cjs/src/components/Swap/components/TokenCard/NumberInput.d.ts +0 -16
- package/dist/cjs/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -7
- package/dist/cjs/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
- package/dist/cjs/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -18
- package/dist/cjs/src/components/Swap/components/TokenCard/index.d.ts +0 -36
- package/dist/cjs/src/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -10
- package/dist/cjs/src/components/Swap/index.d.ts +0 -7
- package/dist/cjs/src/components/SwitchChainDialog/index.d.ts +0 -7
- package/dist/cjs/src/components/Token/TokenItem.d.ts +0 -9
- package/dist/cjs/src/components/TokenLogo.d.ts +0 -18
- package/dist/cjs/src/components/TokenLogoPair.d.ts +0 -17
- package/dist/cjs/src/components/TokenLogoSimple.d.ts +0 -13
- package/dist/cjs/src/components/TokenPicker/PopularToken.d.ts +0 -7
- package/dist/cjs/src/components/TokenPicker/SelectChainItem.d.ts +0 -7
- package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +0 -10
- package/dist/cjs/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -2
- package/dist/cjs/src/components/TokenPicker/index.d.ts +0 -24
- package/dist/cjs/src/components/TokenStatusButton.d.ts +0 -7
- package/dist/cjs/src/components/Tooltip/QuestionTooltip.d.ts +0 -3
- package/dist/cjs/src/components/Tooltip/index.d.ts +0 -1
- package/dist/cjs/src/components/Widget/i18n.d.ts +0 -9
- package/dist/cjs/src/components/Widget/index.d.ts +0 -33
- package/dist/cjs/src/components/WidgetConfirm.d.ts +0 -15
- package/dist/cjs/src/components/WidgetContainer.d.ts +0 -3
- package/dist/cjs/src/components/WidgetDialog.d.ts +0 -15
- package/dist/cjs/src/components/WithExecutionDialog/index.d.ts +0 -5
- package/dist/cjs/src/components/chart/components/BaseButton.d.ts +0 -5
- package/dist/cjs/src/components/chart/components/Display.d.ts +0 -9
- package/dist/cjs/src/components/chart/components/Input.d.ts +0 -7
- package/dist/cjs/src/components/chart/components/NumberInput.d.ts +0 -6
- package/dist/cjs/src/components/chart/components/TogglePriceIcon.d.ts +0 -8
- package/dist/cjs/src/components/chart/components/TokenLogo.d.ts +0 -5
- package/dist/cjs/src/components/chart/depth-chart/DepthChartKonva.d.ts +0 -30
- package/dist/cjs/src/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
- package/dist/cjs/src/components/chart/depth-chart/helper.d.ts +0 -125
- package/dist/cjs/src/components/chart/depth-chart/index.d.ts +0 -18
- package/dist/cjs/src/components/chart/depth-chart/index.styled.d.ts +0 -29
- package/dist/cjs/src/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
- package/dist/cjs/src/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
- package/dist/cjs/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
- package/dist/cjs/src/components/chart/depth-chart/utils.d.ts +0 -19
- package/dist/cjs/src/components/chart/depth-chart-v2/index.d.ts +0 -10
- package/dist/cjs/src/components/chart/depth-chart-v2/index.styled.d.ts +0 -15
- package/dist/cjs/src/components/chart/hooks/usePreventWheel.d.ts +0 -9
- package/dist/cjs/src/components/chart/i18n.d.ts +0 -1
- package/dist/cjs/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -28
- package/dist/cjs/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
- package/dist/cjs/src/components/chart/liquidity-chart/helper.d.ts +0 -47
- package/dist/cjs/src/components/chart/liquidity-chart/index.d.ts +0 -17
- package/dist/cjs/src/components/chart/liquidity-chart/index.styled.d.ts +0 -9
- package/dist/cjs/src/components/chart/liquidity-chart/useGridLine.d.ts +0 -8
- package/dist/cjs/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -10
- package/dist/cjs/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -18
- package/dist/cjs/src/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -6
- package/dist/cjs/src/components/chart/liquidity-chart/usePoints.d.ts +0 -39
- package/dist/cjs/src/components/chart/utils.d.ts +0 -3
- package/dist/cjs/src/constants/address.d.ts +0 -1
- package/dist/cjs/src/constants/api.d.ts +0 -20
- package/dist/cjs/src/constants/chainList.d.ts +0 -10
- package/dist/cjs/src/constants/chains.d.ts +0 -34
- package/dist/cjs/src/constants/locales.d.ts +0 -3
- package/dist/cjs/src/constants/localstorage.d.ts +0 -14
- package/dist/cjs/src/constants/pool.d.ts +0 -7
- package/dist/cjs/src/constants/sessionStorage.d.ts +0 -2
- package/dist/cjs/src/constants/swap.d.ts +0 -7
- package/dist/cjs/src/constants/testId.d.ts +0 -10
- package/dist/cjs/src/constants/token.d.ts +0 -2
- package/dist/cjs/src/constants/tokenList.d.ts +0 -9
- package/dist/cjs/src/constants/wallet.d.ts +0 -23
- package/dist/cjs/src/hooks/Bridge/createBridgeOrder.d.ts +0 -28
- package/dist/cjs/src/hooks/Bridge/index.d.ts +0 -4
- package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
- package/dist/cjs/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
- package/dist/cjs/src/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Bridge/useSendRoute.d.ts +0 -16
- package/dist/cjs/src/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
- package/dist/cjs/src/hooks/Chain/useChainList.d.ts +0 -2
- package/dist/cjs/src/hooks/Chain/useChainList.test.d.ts +0 -1
- package/dist/cjs/src/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/cjs/src/hooks/ConnectWallet/index.d.ts +0 -3
- package/dist/cjs/src/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -2
- package/dist/cjs/src/hooks/ConnectWallet/useSwitchChain.d.ts +0 -10
- package/dist/cjs/src/hooks/ConnectWallet/useWalletInfo.d.ts +0 -6
- package/dist/cjs/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/cjs/src/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/cjs/src/hooks/Submission/getExecutionErrorMsg.d.ts +0 -2
- package/dist/cjs/src/hooks/Submission/index.d.ts +0 -10
- package/dist/cjs/src/hooks/Submission/spec.d.ts +0 -56
- package/dist/cjs/src/hooks/Submission/types.d.ts +0 -79
- package/dist/cjs/src/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -15
- package/dist/cjs/src/hooks/Submission/useExecution.d.ts +0 -32
- package/dist/cjs/src/hooks/Submission/useInflights.d.ts +0 -5
- package/dist/cjs/src/hooks/Swap/index.d.ts +0 -5
- package/dist/cjs/src/hooks/Swap/useExecuteSwap.d.ts +0 -12
- package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
- package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Swap/useFetchRoutePrice.d.ts +0 -37
- package/dist/cjs/src/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Swap/useInitDefaultToken.d.ts +0 -10
- package/dist/cjs/src/hooks/Swap/useMarginAmount.d.ts +0 -8
- package/dist/cjs/src/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Swap/usePriceTimer.d.ts +0 -5
- package/dist/cjs/src/hooks/Swap/useSlippageLimit.d.ts +0 -2
- package/dist/cjs/src/hooks/Token/index.d.ts +0 -4
- package/dist/cjs/src/hooks/Token/type.d.ts +0 -25
- package/dist/cjs/src/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
- package/dist/cjs/src/hooks/Token/useFetchTokenAllowance.d.ts +0 -13
- package/dist/cjs/src/hooks/Token/useFindTokenByAddress.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useGetAllowance.d.ts +0 -3
- package/dist/cjs/src/hooks/Token/useGetAllowance.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useGetBalance.d.ts +0 -2
- package/dist/cjs/src/hooks/Token/useGetBalance.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useGetCGTokenList.d.ts +0 -15
- package/dist/cjs/src/hooks/Token/useGetTokenStatus.d.ts +0 -13
- package/dist/cjs/src/hooks/Token/useGetTokenStatus.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useInitTokenList.d.ts +0 -6
- package/dist/cjs/src/hooks/Token/useSelectChainList.d.ts +0 -7
- package/dist/cjs/src/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useTokenList.d.ts +0 -36
- package/dist/cjs/src/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
- package/dist/cjs/src/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
- package/dist/cjs/src/hooks/Token/useTokenStatus.d.ts +0 -20
- package/dist/cjs/src/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/cjs/src/hooks/Widget/useInitPropsToRedux.d.ts +0 -2
- package/dist/cjs/src/hooks/contract/abis/erc20ABI.d.ts +0 -30
- package/dist/cjs/src/hooks/contract/abis/erc20Helper.d.ts +0 -16
- package/dist/cjs/src/hooks/contract/abis/multicallABI.d.ts +0 -34
- package/dist/cjs/src/hooks/contract/batch.d.ts +0 -18
- package/dist/cjs/src/hooks/contract/contractConfig.d.ts +0 -9
- package/dist/cjs/src/hooks/contract/index.d.ts +0 -3
- package/dist/cjs/src/hooks/contract/provider.d.ts +0 -2
- package/dist/cjs/src/hooks/contract/token.d.ts +0 -10
- package/dist/cjs/src/hooks/contract/useFetchBlockNumber.d.ts +0 -3
- package/dist/cjs/src/hooks/contract/useFetchETHBalance.d.ts +0 -21
- package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +0 -14
- package/dist/cjs/src/hooks/contract/useMultiContract.d.ts +0 -14
- package/dist/cjs/src/hooks/contract/wallet.d.ts +0 -16
- package/dist/cjs/src/hooks/setting/useDefaultSlippage.d.ts +0 -4
- package/dist/cjs/src/hooks/setting/useGetAPIService.d.ts +0 -2
- package/dist/cjs/src/hooks/setting/useSetAutoSlippage.d.ts +0 -13
- package/dist/cjs/src/hooks/style/useWidgetDevice.d.ts +0 -6
- package/dist/cjs/src/hooks/usePrevious.d.ts +0 -1
- package/dist/cjs/src/index.d.ts +0 -12
- package/dist/cjs/src/providers/GlobalConfigContext.d.ts +0 -21
- package/dist/cjs/src/providers/i18n.d.ts +0 -9
- package/dist/cjs/src/providers/queryClient/index.d.ts +0 -2
- package/dist/cjs/src/providers/queryClient.d.ts +0 -2
- package/dist/cjs/src/router/index.d.ts +0 -9
- package/dist/cjs/src/router/types.d.ts +0 -35
- package/dist/cjs/src/store/actions/globals.d.ts +0 -9
- package/dist/cjs/src/store/actions/index.d.ts +0 -4
- package/dist/cjs/src/store/actions/settings.d.ts +0 -6
- package/dist/cjs/src/store/actions/token.d.ts +0 -8
- package/dist/cjs/src/store/actions/wallet.d.ts +0 -7
- package/dist/cjs/src/store/index.d.ts +0 -12
- package/dist/cjs/src/store/reducers/globals.d.ts +0 -23
- package/dist/cjs/src/store/reducers/index.d.ts +0 -17
- package/dist/cjs/src/store/reducers/settings.d.ts +0 -13
- package/dist/cjs/src/store/reducers/token.d.ts +0 -24
- package/dist/cjs/src/store/reducers/wallet.d.ts +0 -14
- package/dist/cjs/src/store/selectors/globals.d.ts +0 -7
- package/dist/cjs/src/store/selectors/settings.d.ts +0 -4
- package/dist/cjs/src/store/selectors/token.d.ts +0 -9
- package/dist/cjs/src/store/selectors/wallet.d.ts +0 -7
- package/dist/cjs/src/utils/address.d.ts +0 -15
- package/dist/cjs/src/utils/address.test.d.ts +0 -1
- package/dist/cjs/src/utils/bytes.d.ts +0 -3
- package/dist/cjs/src/utils/chains.d.ts +0 -2
- package/dist/cjs/src/utils/chains.test.d.ts +0 -1
- package/dist/cjs/src/utils/formatter.d.ts +0 -48
- package/dist/cjs/src/utils/formatter.test.d.ts +0 -1
- package/dist/cjs/src/utils/index.d.ts +0 -5
- package/dist/cjs/src/utils/time.d.ts +0 -9
- package/dist/cjs/src/utils/time.test.d.ts +0 -1
- package/dist/cjs/src/utils/token.d.ts +0 -30
- package/dist/cjs/src/utils/token.test.d.ts +0 -1
- package/dist/cjs/src/utils/utils.d.ts +0 -1
- package/dist/cjs/src/utils/wallet.d.ts +0 -8
- package/dist/cjs/src/utils/wallet.test.d.ts +0 -1
- package/dist/cjs/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -7
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -5
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -5
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -8
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -9
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -8
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/index.d.ts +0 -13
- package/dist/cjs/src/widgets/MiningWidget/helper.d.ts +0 -2
- package/dist/cjs/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -4
- package/dist/cjs/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -17
- package/dist/cjs/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -5
- package/dist/cjs/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
- package/dist/cjs/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -5
- package/dist/cjs/src/widgets/MiningWidget/types.d.ts +0 -58
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -10
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -11
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -11
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -13
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -12
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -4
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -7
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -14
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/index.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -12
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -78
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/types.d.ts +0 -35
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -18
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -24
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -15
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -10
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -290
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/index.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
- package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
- package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -11
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -3
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -18
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -48
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/cjs/src/widgets/PoolWidget/PoolList/index.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -4
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/index.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +0 -18
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +0 -18
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -10
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -18
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -12
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -46
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -33
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +0 -14
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -17
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -48
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
- package/dist/cjs/src/widgets/PoolWidget/index.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/list/AddLiquidity.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +0 -8
- package/dist/cjs/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +0 -5
- package/dist/cjs/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +0 -17
- package/dist/cjs/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/cjs/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +0 -58
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +0 -17
- package/dist/e2e/connect.test.d.ts +0 -6
- package/dist/e2e/constants.d.ts +0 -87
- package/dist/e2e/default.test.d.ts +0 -6
- package/dist/e2e/setup.d.ts +0 -4
- package/dist/failed-list-e6c1e563-478d73e0.js +0 -1
- package/dist/helper-BpKL-WX0.js +0 -1
- package/dist/index-0e954ab8.js +0 -45
- package/dist/index-41db7f0e.js +0 -45
- package/dist/index-ae19eed4.js +0 -12
- package/dist/index-b07aac90.js +0 -45
- package/dist/index-c1a581ca.js +0 -50
- package/dist/index-c9dbe645.js +0 -50
- package/dist/index-cdf23d80.js +0 -50
- package/dist/index-d9d9a2cd.js +0 -78
- package/dist/index-db2c9b8f.js +0 -58
- package/dist/index-e58d24e5.js +0 -50
- package/dist/index-ee546021.js +0 -45
- package/dist/index-f055c418.js +0 -45
- package/dist/locales/en-US.js +0 -5
- package/dist/locales/zh-CN.js +0 -5
- package/dist/lottie-0a7cf033.js +0 -1
- package/dist/lottie-449d7c9a.js +0 -1
- package/dist/lottie-48250155.js +0 -1
- package/dist/lottie-9678ebc9.js +0 -1
- package/dist/lottie-9b618308.js +0 -1
- package/dist/lottie-b4708423.js +0 -1
- package/dist/lottie-baaed8fa.js +0 -1
- package/dist/lottie-d6631244.js +0 -1
- package/dist/lottie-ed5a9dfd.js +0 -1
- package/dist/lottie-f76894b7.js +0 -1
- package/dist/no-found-89a3b4af-763d58f5.js +0 -1
- package/dist/no-result-01c60834-7921d2fa.js +0 -1
- package/dist/src/components/AddressWithLinkAndCopy.d.ts +0 -22
- package/dist/src/components/AutoButton.d.ts +0 -7
- package/dist/src/components/Bridge/BridgeRouteShortCard.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -5
- package/dist/src/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -18
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -16
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -14
- package/dist/src/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -10
- package/dist/src/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -4
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -20
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -12
- package/dist/src/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -11
- package/dist/src/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
- package/dist/src/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -8
- package/dist/src/components/Confirm.d.ts +0 -15
- package/dist/src/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +0 -8
- package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
- package/dist/src/components/CopyTooltipToast.d.ts +0 -9
- package/dist/src/components/DataCard/DataCardGroup.d.ts +0 -9
- package/dist/src/components/Dialog.d.ts +0 -1
- package/dist/src/components/ErrorMessageDialog.d.ts +0 -5
- package/dist/src/components/GoBack.d.ts +0 -6
- package/dist/src/components/HowItWorks.d.ts +0 -11
- package/dist/src/components/List/EmptyList.d.ts +0 -7
- package/dist/src/components/List/FailedList.d.ts +0 -6
- package/dist/src/components/RiskDialog.d.ts +0 -7
- package/dist/src/components/SelectChain.d.ts +0 -12
- package/dist/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +0 -6
- package/dist/src/components/Swap/components/Dialog.d.ts +0 -15
- package/dist/src/components/Swap/components/ReviewDialog.d.ts +0 -21
- package/dist/src/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -8
- package/dist/src/components/Swap/components/SettingsDialog/index.d.ts +0 -7
- package/dist/src/components/Swap/components/SwitchBox.d.ts +0 -5
- package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +0 -11
- package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +0 -16
- package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -7
- package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
- package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -18
- package/dist/src/components/Swap/components/TokenCard/index.d.ts +0 -36
- package/dist/src/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -10
- package/dist/src/components/Swap/index.d.ts +0 -7
- package/dist/src/components/SwitchChainDialog/index.d.ts +0 -7
- package/dist/src/components/Token/TokenItem.d.ts +0 -9
- package/dist/src/components/TokenLogo.d.ts +0 -18
- package/dist/src/components/TokenLogoPair.d.ts +0 -17
- package/dist/src/components/TokenLogoSimple.d.ts +0 -13
- package/dist/src/components/TokenPicker/PopularToken.d.ts +0 -7
- package/dist/src/components/TokenPicker/SelectChainItem.d.ts +0 -7
- package/dist/src/components/TokenPicker/TokenItem.d.ts +0 -10
- package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -2
- package/dist/src/components/TokenPicker/index.d.ts +0 -24
- package/dist/src/components/TokenStatusButton.d.ts +0 -7
- package/dist/src/components/Tooltip/QuestionTooltip.d.ts +0 -3
- package/dist/src/components/Tooltip/index.d.ts +0 -1
- package/dist/src/components/Widget/i18n.d.ts +0 -9
- package/dist/src/components/Widget/index.d.ts +0 -33
- package/dist/src/components/WidgetConfirm.d.ts +0 -15
- package/dist/src/components/WidgetContainer.d.ts +0 -3
- package/dist/src/components/WidgetDialog.d.ts +0 -15
- package/dist/src/components/WithExecutionDialog/index.d.ts +0 -5
- package/dist/src/components/chart/components/BaseButton.d.ts +0 -5
- package/dist/src/components/chart/components/Display.d.ts +0 -9
- package/dist/src/components/chart/components/Input.d.ts +0 -7
- package/dist/src/components/chart/components/NumberInput.d.ts +0 -6
- package/dist/src/components/chart/components/TogglePriceIcon.d.ts +0 -8
- package/dist/src/components/chart/components/TokenLogo.d.ts +0 -5
- package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +0 -30
- package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
- package/dist/src/components/chart/depth-chart/helper.d.ts +0 -125
- package/dist/src/components/chart/depth-chart/index.d.ts +0 -18
- package/dist/src/components/chart/depth-chart/index.styled.d.ts +0 -29
- package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
- package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
- package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
- package/dist/src/components/chart/depth-chart/utils.d.ts +0 -19
- package/dist/src/components/chart/depth-chart-v2/index.d.ts +0 -10
- package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +0 -15
- package/dist/src/components/chart/hooks/usePreventWheel.d.ts +0 -9
- package/dist/src/components/chart/i18n.d.ts +0 -1
- package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -28
- package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
- package/dist/src/components/chart/liquidity-chart/helper.d.ts +0 -47
- package/dist/src/components/chart/liquidity-chart/index.d.ts +0 -17
- package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +0 -9
- package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +0 -8
- package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -10
- package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -18
- package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -6
- package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +0 -39
- package/dist/src/components/chart/utils.d.ts +0 -3
- package/dist/src/constants/address.d.ts +0 -1
- package/dist/src/constants/api.d.ts +0 -20
- package/dist/src/constants/chainList.d.ts +0 -10
- package/dist/src/constants/chains.d.ts +0 -34
- package/dist/src/constants/locales.d.ts +0 -3
- package/dist/src/constants/localstorage.d.ts +0 -14
- package/dist/src/constants/pool.d.ts +0 -7
- package/dist/src/constants/sessionStorage.d.ts +0 -2
- package/dist/src/constants/swap.d.ts +0 -7
- package/dist/src/constants/testId.d.ts +0 -10
- package/dist/src/constants/token.d.ts +0 -2
- package/dist/src/constants/tokenList.d.ts +0 -9
- package/dist/src/constants/wallet.d.ts +0 -23
- package/dist/src/hooks/Bridge/createBridgeOrder.d.ts +0 -28
- package/dist/src/hooks/Bridge/index.d.ts +0 -4
- package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
- package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
- package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
- package/dist/src/hooks/Bridge/useSendRoute.d.ts +0 -16
- package/dist/src/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
- package/dist/src/hooks/Chain/useChainList.d.ts +0 -2
- package/dist/src/hooks/Chain/useChainList.test.d.ts +0 -1
- package/dist/src/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/src/hooks/ConnectWallet/index.d.ts +0 -3
- package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -2
- package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +0 -10
- package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +0 -6
- package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/src/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +0 -2
- package/dist/src/hooks/Submission/index.d.ts +0 -10
- package/dist/src/hooks/Submission/spec.d.ts +0 -56
- package/dist/src/hooks/Submission/types.d.ts +0 -79
- package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -15
- package/dist/src/hooks/Submission/useExecution.d.ts +0 -32
- package/dist/src/hooks/Submission/useInflights.d.ts +0 -5
- package/dist/src/hooks/Swap/index.d.ts +0 -5
- package/dist/src/hooks/Swap/useExecuteSwap.d.ts +0 -12
- package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
- package/dist/src/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
- package/dist/src/hooks/Swap/useFetchRoutePrice.d.ts +0 -37
- package/dist/src/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
- package/dist/src/hooks/Swap/useInitDefaultToken.d.ts +0 -10
- package/dist/src/hooks/Swap/useMarginAmount.d.ts +0 -8
- package/dist/src/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- package/dist/src/hooks/Swap/usePriceTimer.d.ts +0 -5
- package/dist/src/hooks/Swap/useSlippageLimit.d.ts +0 -2
- package/dist/src/hooks/Token/index.d.ts +0 -4
- package/dist/src/hooks/Token/type.d.ts +0 -25
- package/dist/src/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
- package/dist/src/hooks/Token/useFetchTokenAllowance.d.ts +0 -13
- package/dist/src/hooks/Token/useFindTokenByAddress.d.ts +0 -1
- package/dist/src/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetAllowance.d.ts +0 -3
- package/dist/src/hooks/Token/useGetAllowance.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetBalance.d.ts +0 -2
- package/dist/src/hooks/Token/useGetBalance.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetCGTokenList.d.ts +0 -15
- package/dist/src/hooks/Token/useGetTokenStatus.d.ts +0 -13
- package/dist/src/hooks/Token/useGetTokenStatus.test.d.ts +0 -1
- package/dist/src/hooks/Token/useInitTokenList.d.ts +0 -6
- package/dist/src/hooks/Token/useSelectChainList.d.ts +0 -7
- package/dist/src/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/src/hooks/Token/useTokenList.d.ts +0 -36
- package/dist/src/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
- package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
- package/dist/src/hooks/Token/useTokenStatus.d.ts +0 -20
- package/dist/src/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/src/hooks/Widget/useInitPropsToRedux.d.ts +0 -2
- package/dist/src/hooks/contract/abis/erc20ABI.d.ts +0 -30
- package/dist/src/hooks/contract/abis/erc20Helper.d.ts +0 -16
- package/dist/src/hooks/contract/abis/multicallABI.d.ts +0 -34
- package/dist/src/hooks/contract/batch.d.ts +0 -18
- package/dist/src/hooks/contract/contractConfig.d.ts +0 -9
- package/dist/src/hooks/contract/index.d.ts +0 -3
- package/dist/src/hooks/contract/provider.d.ts +0 -2
- package/dist/src/hooks/contract/token.d.ts +0 -10
- package/dist/src/hooks/contract/useFetchBlockNumber.d.ts +0 -3
- package/dist/src/hooks/contract/useFetchETHBalance.d.ts +0 -21
- package/dist/src/hooks/contract/useFetchTokens.d.ts +0 -14
- package/dist/src/hooks/contract/useMultiContract.d.ts +0 -14
- package/dist/src/hooks/contract/wallet.d.ts +0 -16
- package/dist/src/hooks/setting/useDefaultSlippage.d.ts +0 -4
- package/dist/src/hooks/setting/useGetAPIService.d.ts +0 -2
- package/dist/src/hooks/setting/useSetAutoSlippage.d.ts +0 -13
- package/dist/src/hooks/style/useWidgetDevice.d.ts +0 -6
- package/dist/src/hooks/usePrevious.d.ts +0 -1
- package/dist/src/index.d.ts +0 -12
- package/dist/src/providers/GlobalConfigContext.d.ts +0 -21
- package/dist/src/providers/i18n.d.ts +0 -9
- package/dist/src/providers/queryClient/index.d.ts +0 -2
- package/dist/src/providers/queryClient.d.ts +0 -2
- package/dist/src/router/index.d.ts +0 -9
- package/dist/src/router/types.d.ts +0 -35
- package/dist/src/store/actions/globals.d.ts +0 -9
- package/dist/src/store/actions/index.d.ts +0 -4
- package/dist/src/store/actions/settings.d.ts +0 -6
- package/dist/src/store/actions/token.d.ts +0 -8
- package/dist/src/store/actions/wallet.d.ts +0 -7
- package/dist/src/store/index.d.ts +0 -12
- package/dist/src/store/reducers/globals.d.ts +0 -23
- package/dist/src/store/reducers/index.d.ts +0 -17
- package/dist/src/store/reducers/settings.d.ts +0 -13
- package/dist/src/store/reducers/token.d.ts +0 -24
- package/dist/src/store/reducers/wallet.d.ts +0 -14
- package/dist/src/store/selectors/globals.d.ts +0 -7
- package/dist/src/store/selectors/settings.d.ts +0 -4
- package/dist/src/store/selectors/token.d.ts +0 -9
- package/dist/src/store/selectors/wallet.d.ts +0 -7
- package/dist/src/utils/address.d.ts +0 -15
- package/dist/src/utils/address.test.d.ts +0 -1
- package/dist/src/utils/bytes.d.ts +0 -3
- package/dist/src/utils/chains.d.ts +0 -2
- package/dist/src/utils/chains.test.d.ts +0 -1
- package/dist/src/utils/formatter.d.ts +0 -48
- package/dist/src/utils/formatter.test.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -5
- package/dist/src/utils/time.d.ts +0 -9
- package/dist/src/utils/time.test.d.ts +0 -1
- package/dist/src/utils/token.d.ts +0 -30
- package/dist/src/utils/token.test.d.ts +0 -1
- package/dist/src/utils/utils.d.ts +0 -1
- package/dist/src/utils/wallet.d.ts +0 -8
- package/dist/src/utils/wallet.test.d.ts +0 -1
- package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -7
- package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
- package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -8
- package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -9
- package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -8
- package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +0 -13
- package/dist/src/widgets/MiningWidget/helper.d.ts +0 -2
- package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -4
- package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -17
- package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
- package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/types.d.ts +0 -58
- package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -78
- package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +0 -35
- package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -24
- package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -290
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
- package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -3
- package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -48
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -46
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -33
- package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -17
- package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
- package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
- package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
- package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
- package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -48
- package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
- package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
- package/dist/src/widgets/PoolWidget/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +0 -17
- package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +0 -58
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/utils.d.ts +0 -17
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OperatePool } from './types';
|
|
3
|
-
export interface LiquidityInfoProps {
|
|
4
|
-
loading?: boolean;
|
|
5
|
-
hidePoolInfo?: boolean;
|
|
6
|
-
pool: OperatePool;
|
|
7
|
-
}
|
|
8
|
-
export default function LiquidityInfo({ loading, hidePoolInfo, pool, }: LiquidityInfoProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OperateTab } from './hooks/usePoolOperateTabs';
|
|
3
|
-
import { OperatePool } from './types';
|
|
4
|
-
export interface PoolOperateInnerProps {
|
|
5
|
-
pool: OperatePool;
|
|
6
|
-
operate?: OperateTab;
|
|
7
|
-
errorRefetch?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export default function PoolOperateInner({ pool, operate, errorRefetch, }: PoolOperateInnerProps): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { OperatePool } from './types';
|
|
4
|
-
export default function Ratio({ pool, addPortion, midPrice, }: {
|
|
5
|
-
pool?: OperatePool;
|
|
6
|
-
addPortion?: BigNumber;
|
|
7
|
-
midPrice?: BigNumber;
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OperatePool } from './types';
|
|
3
|
-
import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
|
|
4
|
-
export declare function RemovePoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
|
|
5
|
-
submittedBack?: () => void;
|
|
6
|
-
onlyShowSide?: 'base' | 'quote';
|
|
7
|
-
pool?: OperatePool;
|
|
8
|
-
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AUTO_SWAP_SLIPPAGE_PROTECTION } from '../../../constants/pool';
|
|
3
|
-
interface Props {
|
|
4
|
-
value: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION;
|
|
5
|
-
onChange: (val: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const useSlipper: ({ address }: {
|
|
8
|
-
address?: string | undefined;
|
|
9
|
-
}) => {
|
|
10
|
-
slipper: number | "auto";
|
|
11
|
-
setSlipper: import("react").Dispatch<import("react").SetStateAction<number | "auto">>;
|
|
12
|
-
slipperValue: number;
|
|
13
|
-
resetSlipper: () => void;
|
|
14
|
-
};
|
|
15
|
-
export default function SlippageSetting({ disabled, ...attrs }: Props & {
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
4
|
-
export default function ComparePrice({ lqAndDodoCompareText, baseToken, quoteToken, midPrice, }: {
|
|
5
|
-
lqAndDodoCompareText: string;
|
|
6
|
-
baseToken?: TokenInfo;
|
|
7
|
-
quoteToken?: TokenInfo;
|
|
8
|
-
midPrice?: BigNumber;
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
|
|
3
|
-
import { OperatePool } from '../types';
|
|
4
|
-
export interface LiquidityInfoProps {
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
hidePoolInfo?: boolean;
|
|
7
|
-
pool: OperatePool;
|
|
8
|
-
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
9
|
-
}
|
|
10
|
-
export default function LiquidityInfo({ loading: loadingProps, hidePoolInfo, pool, balanceInfo, }: LiquidityInfoProps): JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { useTokenStatus } from '../../../../hooks/Token/useTokenStatus';
|
|
3
|
-
export default function OperateBtn({ baseTokenStatus, quoteTokenStatus, children, }: React.PropsWithChildren<{
|
|
4
|
-
baseTokenStatus: ReturnType<typeof useTokenStatus>;
|
|
5
|
-
quoteTokenStatus: ReturnType<typeof useTokenStatus>;
|
|
6
|
-
}>): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { OperatePool } from '../types';
|
|
4
|
-
export default function Ratio({ pool, addPortion, midPrice, }: {
|
|
5
|
-
pool?: OperatePool;
|
|
6
|
-
addPortion?: BigNumber;
|
|
7
|
-
midPrice?: BigNumber;
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
export declare function SliderPercentageCard({ disabled, value, onChange, sx, }: {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
value: number;
|
|
6
|
-
onChange: (val: number) => void;
|
|
7
|
-
sx?: BoxProps['sx'];
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AUTO_SWAP_SLIPPAGE_PROTECTION } from '../../../../constants/pool';
|
|
3
|
-
interface Props {
|
|
4
|
-
value: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION;
|
|
5
|
-
onChange: (val: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const useSlipper: ({ address }: {
|
|
8
|
-
address?: string | undefined;
|
|
9
|
-
}) => {
|
|
10
|
-
slipper: number | "auto";
|
|
11
|
-
setSlipper: import("react").Dispatch<import("react").SetStateAction<number | "auto">>;
|
|
12
|
-
slipperValue: number;
|
|
13
|
-
resetSlipper: () => void;
|
|
14
|
-
};
|
|
15
|
-
export default function SlippageSetting({ disabled, ...attrs }: Props & {
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
|
|
3
|
-
import { CheckTokenType } from '../hooks/useCheckToken';
|
|
4
|
-
import { OperatePool } from '../types';
|
|
5
|
-
export default function TokenList({ pool, checkTokenType, setCheckToken, balanceInfo, baseTokenBalanceUpdateLoading, quoteBalanceUpdateLoading, }: {
|
|
6
|
-
pool?: OperatePool;
|
|
7
|
-
checkTokenType: CheckTokenType;
|
|
8
|
-
setCheckToken: (checkTokenType: CheckTokenType) => void;
|
|
9
|
-
balanceInfo?: ReturnType<typeof usePoolBalanceInfo>;
|
|
10
|
-
baseTokenBalanceUpdateLoading: boolean;
|
|
11
|
-
quoteBalanceUpdateLoading: boolean;
|
|
12
|
-
}): JSX.Element | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
import { OperatePool } from '../types';
|
|
4
|
-
export declare enum CheckTokenType {
|
|
5
|
-
base = 1,
|
|
6
|
-
quote = 2
|
|
7
|
-
}
|
|
8
|
-
export declare const useCheckToken: (pool?: OperatePool) => {
|
|
9
|
-
isBase: boolean | undefined;
|
|
10
|
-
checkToken: TokenInfo | undefined;
|
|
11
|
-
checkTokenType: CheckTokenType;
|
|
12
|
-
setCheckToken: React.Dispatch<React.SetStateAction<CheckTokenType>>;
|
|
13
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
export declare function useDODOPrice({ baseToken, quoteToken, }: {
|
|
4
|
-
baseToken?: TokenInfo;
|
|
5
|
-
quoteToken?: TokenInfo;
|
|
6
|
-
}): {
|
|
7
|
-
comparePrice: BigNumber | null;
|
|
8
|
-
comparePriceText: string;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const lqAndDodoCompareSmallNum = 0.01;
|
|
12
|
-
export declare const lqAndDodoCompareWarningNum = 0.03;
|
|
13
|
-
export declare const useComparePrice: (baseToken?: TokenInfo, quoteToken?: TokenInfo, midPrice?: BigNumber) => {
|
|
14
|
-
lqAndDodoCompare: number;
|
|
15
|
-
lqAndDodoCompareText: string;
|
|
16
|
-
midPrice: BigNumber | undefined;
|
|
17
|
-
isShowCompare: boolean;
|
|
18
|
-
isWarnCompare: boolean;
|
|
19
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { OperatePool } from '../types';
|
|
3
|
-
export declare function useLiquidityOperateAmount({ pool, maxBaseAmount, maxQuoteAmount, }: {
|
|
4
|
-
pool: OperatePool;
|
|
5
|
-
maxBaseAmount?: BigNumber | null;
|
|
6
|
-
maxQuoteAmount?: BigNumber | null;
|
|
7
|
-
}): {
|
|
8
|
-
baseAmount: string;
|
|
9
|
-
quoteAmount: string;
|
|
10
|
-
handleChangeBaseAmount: () => void;
|
|
11
|
-
handleChangeQuoteAmount: () => void;
|
|
12
|
-
reset: () => void;
|
|
13
|
-
addPortion?: undefined;
|
|
14
|
-
amountLoading?: undefined;
|
|
15
|
-
amountError?: undefined;
|
|
16
|
-
amountRefetch?: undefined;
|
|
17
|
-
amountCheckedDisabled?: undefined;
|
|
18
|
-
midPrice?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
baseAmount: string;
|
|
21
|
-
quoteAmount: string;
|
|
22
|
-
handleChangeBaseAmount: (newValue: string) => void;
|
|
23
|
-
handleChangeQuoteAmount: (newValue: string) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
addPortion: BigNumber;
|
|
26
|
-
amountLoading: false;
|
|
27
|
-
amountError: boolean;
|
|
28
|
-
amountRefetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<{
|
|
29
|
-
midPrice: BigNumber | undefined;
|
|
30
|
-
pmmParamsBG: {
|
|
31
|
-
q: BigNumber;
|
|
32
|
-
b: BigNumber;
|
|
33
|
-
k: BigNumber;
|
|
34
|
-
i: BigNumber;
|
|
35
|
-
b0: BigNumber;
|
|
36
|
-
q0: BigNumber;
|
|
37
|
-
R: number;
|
|
38
|
-
lpFeeRate: BigNumber | undefined;
|
|
39
|
-
mtFeeRate: BigNumber | undefined;
|
|
40
|
-
};
|
|
41
|
-
baseReserve: BigNumber;
|
|
42
|
-
quoteReserve: BigNumber;
|
|
43
|
-
} | null, Error>>;
|
|
44
|
-
amountCheckedDisabled: boolean;
|
|
45
|
-
midPrice: BigNumber | undefined;
|
|
46
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { OperatePool } from '../types';
|
|
3
|
-
export declare const initSliderPercentage = 50;
|
|
4
|
-
export declare enum RemoveMode {
|
|
5
|
-
quantity = 1,
|
|
6
|
-
percentage = 2
|
|
7
|
-
}
|
|
8
|
-
export declare function usePercentageRemove({ isBase, pool, baseOverride, quoteOverride, resetAmount, handleChangeBaseAmount, handleChangeQuoteAmount, }: {
|
|
9
|
-
isBase: boolean | undefined;
|
|
10
|
-
pool: OperatePool | undefined;
|
|
11
|
-
baseOverride: BigNumber | undefined | null;
|
|
12
|
-
quoteOverride: BigNumber | undefined | null;
|
|
13
|
-
resetAmount: () => void;
|
|
14
|
-
handleChangeBaseAmount: (val: string) => void;
|
|
15
|
-
handleChangeQuoteAmount: (val: string) => void;
|
|
16
|
-
}): {
|
|
17
|
-
mode: RemoveMode;
|
|
18
|
-
modeOptions: {
|
|
19
|
-
key: RemoveMode;
|
|
20
|
-
value: string;
|
|
21
|
-
}[];
|
|
22
|
-
handleChangeMode: (mode: RemoveMode) => void;
|
|
23
|
-
sliderPercentage: number;
|
|
24
|
-
handleChangeSliderPercentage: (val: number) => void;
|
|
25
|
-
resetPercentage: () => void;
|
|
26
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum OperateTab {
|
|
2
|
-
Add = 1,
|
|
3
|
-
Remove = 2
|
|
4
|
-
}
|
|
5
|
-
export declare function usePoolOperateTabs(defaultValue?: OperateTab): {
|
|
6
|
-
operateTab: OperateTab;
|
|
7
|
-
operateTabs: {
|
|
8
|
-
key: OperateTab;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
11
|
-
handleChangeTab: (poolTab: OperateTab) => void;
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum PoolOrMiningTab {
|
|
2
|
-
Liquidity = 1,
|
|
3
|
-
Mining = 2
|
|
4
|
-
}
|
|
5
|
-
export declare function usePoolOrMiningTabs({ hasMining }: {
|
|
6
|
-
hasMining?: boolean;
|
|
7
|
-
}): {
|
|
8
|
-
poolOrMiningTab: PoolOrMiningTab;
|
|
9
|
-
poolOrMiningTabs: {
|
|
10
|
-
key: PoolOrMiningTab;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
handleChangeTab: (poolTab: PoolOrMiningTab) => void;
|
|
14
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
|
|
2
|
-
import { OperatePool } from '../types';
|
|
3
|
-
export declare function useRemoveLiquidityTokenStatus({ pool, baseAmount, quoteAmount, balanceInfo, }: {
|
|
4
|
-
pool: OperatePool | undefined;
|
|
5
|
-
baseAmount: string;
|
|
6
|
-
quoteAmount: string;
|
|
7
|
-
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
|
-
}): {
|
|
9
|
-
baseTokenStatus: {
|
|
10
|
-
isApproving: boolean;
|
|
11
|
-
isGetApproveLoading: boolean;
|
|
12
|
-
needApprove: boolean;
|
|
13
|
-
needReset: boolean | undefined;
|
|
14
|
-
needShowTokenStatusButton: boolean;
|
|
15
|
-
insufficientBalance: boolean;
|
|
16
|
-
loading: boolean;
|
|
17
|
-
approveTitle: string;
|
|
18
|
-
submitApprove: () => Promise<void>;
|
|
19
|
-
getMaxBalance: () => string;
|
|
20
|
-
};
|
|
21
|
-
quoteTokenStatus: {
|
|
22
|
-
isApproving: boolean;
|
|
23
|
-
isGetApproveLoading: boolean;
|
|
24
|
-
needApprove: boolean;
|
|
25
|
-
needReset: boolean | undefined;
|
|
26
|
-
needShowTokenStatusButton: boolean;
|
|
27
|
-
insufficientBalance: boolean;
|
|
28
|
-
loading: boolean;
|
|
29
|
-
approveTitle: string;
|
|
30
|
-
submitApprove: () => Promise<void>;
|
|
31
|
-
getMaxBalance: () => string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
import { PoolOperateInnerProps } from './PoolOperateInner';
|
|
4
|
-
export interface PoolOperateProps {
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
account: string | undefined;
|
|
7
|
-
pool?: PoolOperateInnerProps['pool'];
|
|
8
|
-
address?: string;
|
|
9
|
-
operate?: PoolOperateInnerProps['operate'];
|
|
10
|
-
chainId?: number;
|
|
11
|
-
hasMining?: boolean;
|
|
12
|
-
sx?: BoxProps['sx'];
|
|
13
|
-
}
|
|
14
|
-
export default function PoolOperate({ sx, ...props }: PoolOperateProps): JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
-
export declare type OperatePool = {
|
|
4
|
-
address: string;
|
|
5
|
-
chainId: number;
|
|
6
|
-
baseToken: TokenInfo;
|
|
7
|
-
quoteToken: TokenInfo;
|
|
8
|
-
baseLpToken?: {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
quoteLpToken?: {
|
|
12
|
-
id: string;
|
|
13
|
-
};
|
|
14
|
-
type: PoolType;
|
|
15
|
-
owner?: string;
|
|
16
|
-
creator: string;
|
|
17
|
-
} | undefined;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
interface ModifyPool {
|
|
4
|
-
address: string;
|
|
5
|
-
baseReserve: string | BigNumber;
|
|
6
|
-
quoteReserve: string | BigNumber;
|
|
7
|
-
feeRate: string;
|
|
8
|
-
i: number;
|
|
9
|
-
k: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function useDiffer({ srcPool, newPool, }: {
|
|
12
|
-
srcPool?: ModifyPool;
|
|
13
|
-
newPool: {
|
|
14
|
-
baseToken: TokenInfo;
|
|
15
|
-
quoteToken: TokenInfo;
|
|
16
|
-
baseAmount: string;
|
|
17
|
-
quoteAmount: string;
|
|
18
|
-
feeRate: string;
|
|
19
|
-
initPrice: string;
|
|
20
|
-
slippageCoefficient: string;
|
|
21
|
-
};
|
|
22
|
-
}): {
|
|
23
|
-
baseAmount: {
|
|
24
|
-
now: BigNumber;
|
|
25
|
-
target: BigNumber;
|
|
26
|
-
isChange: boolean;
|
|
27
|
-
change: BigNumber;
|
|
28
|
-
changeText: string;
|
|
29
|
-
isAdd: boolean;
|
|
30
|
-
isRemove: boolean;
|
|
31
|
-
};
|
|
32
|
-
quoteAmount: {
|
|
33
|
-
now: BigNumber;
|
|
34
|
-
target: BigNumber;
|
|
35
|
-
isChange: boolean;
|
|
36
|
-
change: BigNumber;
|
|
37
|
-
changeText: string;
|
|
38
|
-
isAdd: boolean;
|
|
39
|
-
isRemove: boolean;
|
|
40
|
-
};
|
|
41
|
-
feeRate: {
|
|
42
|
-
now: BigNumber;
|
|
43
|
-
target: BigNumber;
|
|
44
|
-
isChange: boolean;
|
|
45
|
-
change: BigNumber;
|
|
46
|
-
changeText: string;
|
|
47
|
-
isAdd: boolean;
|
|
48
|
-
isRemove: boolean;
|
|
49
|
-
};
|
|
50
|
-
initPrice: {
|
|
51
|
-
now: BigNumber;
|
|
52
|
-
target: BigNumber;
|
|
53
|
-
isChange: boolean;
|
|
54
|
-
change: BigNumber;
|
|
55
|
-
changeText: string;
|
|
56
|
-
isAdd: boolean;
|
|
57
|
-
isRemove: boolean;
|
|
58
|
-
};
|
|
59
|
-
slippageCoefficient: {
|
|
60
|
-
now: BigNumber;
|
|
61
|
-
target: BigNumber;
|
|
62
|
-
isChange: boolean;
|
|
63
|
-
change: BigNumber;
|
|
64
|
-
changeText: string;
|
|
65
|
-
isAdd: boolean;
|
|
66
|
-
isRemove: boolean;
|
|
67
|
-
};
|
|
68
|
-
} | null;
|
|
69
|
-
export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, SLIPPAGE_PROTECTION, }: {
|
|
70
|
-
chainId?: number | undefined;
|
|
71
|
-
account?: string | undefined;
|
|
72
|
-
srcPool?: ModifyPool | undefined;
|
|
73
|
-
baseToken: TokenInfo;
|
|
74
|
-
quoteToken: TokenInfo;
|
|
75
|
-
baseAmount: string;
|
|
76
|
-
quoteAmount: string;
|
|
77
|
-
feeRate: string;
|
|
78
|
-
initPrice: string;
|
|
79
|
-
slippageCoefficient: string;
|
|
80
|
-
SLIPPAGE_PROTECTION: number;
|
|
81
|
-
}) => Promise<{
|
|
82
|
-
data: string;
|
|
83
|
-
to: string;
|
|
84
|
-
value?: string | number | undefined;
|
|
85
|
-
} | null>;
|
|
86
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
export declare function useModifyDppPool({ pool, }: {
|
|
4
|
-
pool?: {
|
|
5
|
-
chainId: number;
|
|
6
|
-
address: string;
|
|
7
|
-
type: PoolType;
|
|
8
|
-
baseToken: TokenInfo;
|
|
9
|
-
quoteToken: TokenInfo;
|
|
10
|
-
};
|
|
11
|
-
}): {
|
|
12
|
-
modifyDPPMutation: import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult, Error, {
|
|
13
|
-
baseAmount: string;
|
|
14
|
-
quoteAmount: string;
|
|
15
|
-
isRemove?: boolean | undefined;
|
|
16
|
-
feeRate?: string | undefined;
|
|
17
|
-
initPrice?: string | undefined;
|
|
18
|
-
slippageCoefficient?: string | undefined;
|
|
19
|
-
txTitle: string;
|
|
20
|
-
submittedBack?: (() => void) | undefined;
|
|
21
|
-
}, unknown>;
|
|
22
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
4
|
-
import { usePoolBalanceInfo } from '../usePoolBalanceInfo';
|
|
5
|
-
export interface SubmitLiquidityParams {
|
|
6
|
-
balanceInfo?: ReturnType<typeof usePoolBalanceInfo>;
|
|
7
|
-
baseAmount: string;
|
|
8
|
-
quoteAmount: string;
|
|
9
|
-
slippageProtection: number;
|
|
10
|
-
SLIPPAGE_PROTECTION: number;
|
|
11
|
-
txTitle: string;
|
|
12
|
-
isRemove?: boolean;
|
|
13
|
-
submittedBack?: () => void;
|
|
14
|
-
successBack?: () => void;
|
|
15
|
-
withdrawInfo?: {
|
|
16
|
-
withdrawFee: string;
|
|
17
|
-
receiveBaseAmount: string;
|
|
18
|
-
receiveQuoteAmount: string;
|
|
19
|
-
receiveAmountBg: BigNumber | undefined;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const useOperateLiquidity: (pool?: {
|
|
23
|
-
chainId: number;
|
|
24
|
-
address: string;
|
|
25
|
-
type: PoolType;
|
|
26
|
-
baseToken: TokenInfo;
|
|
27
|
-
quoteToken: TokenInfo;
|
|
28
|
-
baseLpToken?: {
|
|
29
|
-
id: string;
|
|
30
|
-
};
|
|
31
|
-
quoteLpToken?: {
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
}) => {
|
|
35
|
-
operateLiquidityMutation: import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, Error, SubmitLiquidityParams, unknown>;
|
|
36
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
export declare const useWithdrawInfo: ({ pool, isBase, baseAmount, quoteAmount, }: {
|
|
4
|
-
pool?: {
|
|
5
|
-
chainId: number;
|
|
6
|
-
address: string;
|
|
7
|
-
type: PoolType;
|
|
8
|
-
baseToken: {
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimals: number;
|
|
11
|
-
};
|
|
12
|
-
quoteToken: {
|
|
13
|
-
symbol: string;
|
|
14
|
-
decimals: number;
|
|
15
|
-
};
|
|
16
|
-
} | undefined;
|
|
17
|
-
isBase?: boolean | undefined;
|
|
18
|
-
baseAmount: string;
|
|
19
|
-
quoteAmount: string;
|
|
20
|
-
}) => {
|
|
21
|
-
withdrawFee: string;
|
|
22
|
-
baseWithdrawFee: string;
|
|
23
|
-
quoteWithdrawFee: string;
|
|
24
|
-
receiveBaseAmount: string;
|
|
25
|
-
receiveQuoteAmount: string;
|
|
26
|
-
receiveAmountBg: BigNumber | undefined;
|
|
27
|
-
receiveList: {
|
|
28
|
-
amount: string;
|
|
29
|
-
symbol: string;
|
|
30
|
-
}[];
|
|
31
|
-
loading: boolean;
|
|
32
|
-
error: Error | null;
|
|
33
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import { BigNumber } from 'bignumber.js';
|
|
3
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
4
|
-
declare type Balance = BigNumber | null | undefined;
|
|
5
|
-
export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): BigNumber | null | undefined;
|
|
6
|
-
export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
7
|
-
account?: string;
|
|
8
|
-
pool?: {
|
|
9
|
-
address: string;
|
|
10
|
-
chainId: number;
|
|
11
|
-
baseToken: TokenInfo;
|
|
12
|
-
quoteToken: TokenInfo;
|
|
13
|
-
type: PoolType;
|
|
14
|
-
};
|
|
15
|
-
}): {
|
|
16
|
-
/** existing base lp balance */
|
|
17
|
-
totalBaseLpBalance: BigNumber | null | undefined;
|
|
18
|
-
/** existing quote lp balance */
|
|
19
|
-
totalQuoteLpBalance: BigNumber | null | undefined;
|
|
20
|
-
/** the total deposited base lp balance */
|
|
21
|
-
baseReserve: BigNumber | undefined;
|
|
22
|
-
/** the total deposited quote lp balance */
|
|
23
|
-
quoteReserve: BigNumber | undefined;
|
|
24
|
-
/** classical base equilibrium target */
|
|
25
|
-
classicalBaseTarget: BigNumber | undefined;
|
|
26
|
-
/** classical quote equilibrium target */
|
|
27
|
-
classicalQuoteTarget: BigNumber | undefined;
|
|
28
|
-
/** the user's existing base lp balance */
|
|
29
|
-
userBaseLpBalance: Balance;
|
|
30
|
-
/** the user's existing quote lp balance */
|
|
31
|
-
userQuoteLpBalance: Balance;
|
|
32
|
-
/** The number of base that can be obtained when a user withdraws from the pool */
|
|
33
|
-
userBaseLpToTokenBalance: BigNumber | null | undefined;
|
|
34
|
-
/** The number of quote that can be obtained when a user withdraws from the pool */
|
|
35
|
-
userQuoteLpToTokenBalance: BigNumber | null | undefined;
|
|
36
|
-
baseLpToTokenProportion: BigNumber | undefined;
|
|
37
|
-
quoteLpToTokenProportion: BigNumber | undefined;
|
|
38
|
-
isSinglePool: boolean;
|
|
39
|
-
userLpBalanceLoading: boolean;
|
|
40
|
-
userLpToTokenBalanceLoading: boolean;
|
|
41
|
-
userLpBalanceError: boolean;
|
|
42
|
-
userLpToTokenBalanceError: boolean;
|
|
43
|
-
userLpToTokenBalanceRefetch: () => void;
|
|
44
|
-
error: boolean;
|
|
45
|
-
loading: boolean;
|
|
46
|
-
refetch: () => void;
|
|
47
|
-
};
|
|
48
|
-
export {};
|