@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,34 +0,0 @@
|
|
|
1
|
-
declare const _default: ({
|
|
2
|
-
constant: boolean;
|
|
3
|
-
inputs: {
|
|
4
|
-
components: {
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
7
|
-
}[];
|
|
8
|
-
name: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}[];
|
|
11
|
-
name: string;
|
|
12
|
-
outputs: {
|
|
13
|
-
name: string;
|
|
14
|
-
type: string;
|
|
15
|
-
}[];
|
|
16
|
-
payable: boolean;
|
|
17
|
-
stateMutability: string;
|
|
18
|
-
type: string;
|
|
19
|
-
} | {
|
|
20
|
-
constant: boolean;
|
|
21
|
-
inputs: {
|
|
22
|
-
name: string;
|
|
23
|
-
type: string;
|
|
24
|
-
}[];
|
|
25
|
-
name: string;
|
|
26
|
-
outputs: {
|
|
27
|
-
name: string;
|
|
28
|
-
type: string;
|
|
29
|
-
}[];
|
|
30
|
-
payable: boolean;
|
|
31
|
-
stateMutability: string;
|
|
32
|
-
type: string;
|
|
33
|
-
})[];
|
|
34
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Contract } from '@ethersproject/contracts';
|
|
2
|
-
interface Web3CallData {
|
|
3
|
-
to: string;
|
|
4
|
-
data: string;
|
|
5
|
-
}
|
|
6
|
-
interface RequestThunk<T> {
|
|
7
|
-
callData: Web3CallData | null;
|
|
8
|
-
processor: (_: any, index: number) => T;
|
|
9
|
-
}
|
|
10
|
-
export declare type BatchThunk<T> = RequestThunk<T>[];
|
|
11
|
-
declare type BatchThunkAll<Ts extends any[]> = {
|
|
12
|
-
[Tidx in keyof Ts]: Ts[Tidx] extends Ts[number] ? BatchThunk<Ts[Tidx]> : never;
|
|
13
|
-
};
|
|
14
|
-
declare type BatchThunkAllResult<Ts extends any[]> = {
|
|
15
|
-
[Tidx in keyof Ts]: Ts[Tidx] extends Ts[number] ? Array<Ts[Tidx]> : never;
|
|
16
|
-
};
|
|
17
|
-
export declare function runAll<Ts extends any[]>(contract: Contract, contractAddress: string, ...batches: BatchThunkAll<Ts>): Promise<BatchThunkAllResult<Ts>>;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
export declare function fetchTokenAllowance({ account, tokenAddress, tokenDecimals, chainId, approveAddress, provider, }: {
|
|
4
|
-
account?: string;
|
|
5
|
-
tokenAddress: string;
|
|
6
|
-
tokenDecimals: number;
|
|
7
|
-
chainId: number;
|
|
8
|
-
approveAddress?: string;
|
|
9
|
-
provider: JsonRpcProvider;
|
|
10
|
-
}): Promise<BigNumber | undefined>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
2
|
-
symbol: string;
|
|
3
|
-
address: string;
|
|
4
|
-
name: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
balance: import("bignumber.js").BigNumber;
|
|
7
|
-
allowance: import("bignumber.js").BigNumber;
|
|
8
|
-
account: string;
|
|
9
|
-
spender: string | undefined;
|
|
10
|
-
chainId: number;
|
|
11
|
-
} | {
|
|
12
|
-
address: string;
|
|
13
|
-
decimals: number;
|
|
14
|
-
symbol: string;
|
|
15
|
-
name: string;
|
|
16
|
-
balance: import("bignumber.js").BigNumber;
|
|
17
|
-
spender: string | undefined;
|
|
18
|
-
allowance: import("bignumber.js").BigNumber;
|
|
19
|
-
chainId: number;
|
|
20
|
-
account?: undefined;
|
|
21
|
-
} | null, Error>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TokenList } from '../Token';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
declare type TokenInfoMap = Map<string, {
|
|
4
|
-
balance: BigNumber;
|
|
5
|
-
allowance: BigNumber;
|
|
6
|
-
}>;
|
|
7
|
-
export default function useFetchTokens({ tokenList, addresses: addressesProps, blockNumber, chainId, skip, }: {
|
|
8
|
-
tokenList?: TokenList;
|
|
9
|
-
addresses?: string[];
|
|
10
|
-
blockNumber?: number;
|
|
11
|
-
chainId?: number;
|
|
12
|
-
skip?: boolean;
|
|
13
|
-
}): TokenInfoMap;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Contract } from '@ethersproject/contracts';
|
|
2
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
|
-
import { BatchThunk } from './batch';
|
|
4
|
-
export declare function getContract(address: string, ABI: any, provider: JsonRpcProvider, account?: string): Contract;
|
|
5
|
-
export default function useMultiContract(chainIdProps?: number): {
|
|
6
|
-
getContract: (contractAddress: string, ABI: any) => Contract | undefined;
|
|
7
|
-
contractConfig: {
|
|
8
|
-
MULTI_CALL: string;
|
|
9
|
-
DODO_APPROVE: string;
|
|
10
|
-
ERC20_HELPER: string;
|
|
11
|
-
};
|
|
12
|
-
call: <T>(thunk: BatchThunk<T>) => Promise<unknown[] | undefined> | undefined;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import type { TransactionRequest } from '@ethersproject/abstract-provider';
|
|
3
|
-
import { BigNumber as EthersBigNumber } from '@ethersproject/bignumber';
|
|
4
|
-
import BigNumber from 'bignumber.js';
|
|
5
|
-
export declare type Deferrable<T> = {
|
|
6
|
-
[K in keyof T]: T[K] | Promise<T[K]>;
|
|
7
|
-
};
|
|
8
|
-
export declare enum WatchResult {
|
|
9
|
-
Failed = 0,
|
|
10
|
-
Success = 1,
|
|
11
|
-
Warning = 2
|
|
12
|
-
}
|
|
13
|
-
export declare const getEstimateGas: (params: any, provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
14
|
-
export declare const getGasPrice: (provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
15
|
-
export declare const sendTransaction: (params: Deferrable<TransactionRequest>, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
|
16
|
-
export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../Token';
|
|
2
|
-
export declare type GetAutoSlippage = (options: {
|
|
3
|
-
fromToken: TokenInfo | null;
|
|
4
|
-
toToken: TokenInfo | null;
|
|
5
|
-
}) => Promise<number | undefined> | number | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Sets the slippage based on the incoming getAutoSlippage method. If there is an interface error or no data is returned, the default data with a lower priority will be used.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useSetAutoSlippage({ fromToken, toToken, getAutoSlippage, }: {
|
|
10
|
-
fromToken: TokenInfo | null;
|
|
11
|
-
toToken: TokenInfo | null;
|
|
12
|
-
getAutoSlippage?: GetAutoSlippage;
|
|
13
|
-
}): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function usePrevious<Value>(value: Value): Value | undefined;
|
package/dist/cjs/src/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WidgetProps } from './components/Widget';
|
|
3
|
-
export declare type SwapWidgetProps = WidgetProps;
|
|
4
|
-
export type { TokenInfo } from './hooks/Token/type';
|
|
5
|
-
export { Swap } from './components/Swap';
|
|
6
|
-
export { Pool } from './widgets/PoolWidget';
|
|
7
|
-
export { default as PoolOperate } from './widgets/PoolWidget/PoolOperate';
|
|
8
|
-
export type { PoolOperateProps } from './widgets/PoolWidget/PoolOperate';
|
|
9
|
-
export declare function WidgetProvider({ children, ...props }: React.PropsWithChildren<WidgetProps>): void;
|
|
10
|
-
export declare function SwapWidget(props: SwapWidgetProps): JSX.Element;
|
|
11
|
-
export declare function PoolWidget(props: SwapWidgetProps): JSX.Element;
|
|
12
|
-
export declare function InitSwapWidget(props: SwapWidgetProps): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TokenInfo } from '../hooks/Token';
|
|
3
|
-
export interface GlobalFunctionConfig {
|
|
4
|
-
widgetRef?: React.RefObject<HTMLDivElement>;
|
|
5
|
-
/** If true is returned, the default wallet connection logic will not be executed */
|
|
6
|
-
onConnectWalletClick?: () => boolean | Promise<boolean>;
|
|
7
|
-
/** When the token balance is insufficient, users can purchase or swap callbacks */
|
|
8
|
-
gotoBuyToken?: (params: {
|
|
9
|
-
token: TokenInfo;
|
|
10
|
-
account: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
getTokenLogoUrl?: (params: {
|
|
13
|
-
address?: string;
|
|
14
|
-
width?: number;
|
|
15
|
-
height?: number;
|
|
16
|
-
url?: string;
|
|
17
|
-
chainId?: number;
|
|
18
|
-
}) => string;
|
|
19
|
-
}
|
|
20
|
-
export declare const GlobalConfigContext: import("react").Context<GlobalFunctionConfig>;
|
|
21
|
-
export declare const useGlobalConfig: () => GlobalFunctionConfig;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SupportedLang } from '../constants/locales';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface LangProviderProps {
|
|
4
|
-
locale?: SupportedLang;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function loadI18(locale?: SupportedLang): Promise<void>;
|
|
8
|
-
export declare function LangProvider({ locale, children }: LangProviderProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Page } from './types';
|
|
2
|
-
interface RouterState {
|
|
3
|
-
page?: Page;
|
|
4
|
-
historyList: Array<Page>;
|
|
5
|
-
push: (page: Page) => void;
|
|
6
|
-
back: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useRouterStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RouterState>>;
|
|
9
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { PoolTab } from '../widgets/PoolWidget/PoolList/hooks/usePoolListTabs';
|
|
3
|
-
export declare enum PageType {
|
|
4
|
-
Pool = "pool",
|
|
5
|
-
PoolDetail = "poolDetail",
|
|
6
|
-
CreatePool = "createPool",
|
|
7
|
-
ModifyPool = "modifyPool",
|
|
8
|
-
MiningDetail = "miningDetail"
|
|
9
|
-
}
|
|
10
|
-
interface PageTypeParams {
|
|
11
|
-
[PageType.Pool]: {
|
|
12
|
-
tab?: PoolTab;
|
|
13
|
-
} | undefined;
|
|
14
|
-
[PageType.PoolDetail]: {
|
|
15
|
-
address: string;
|
|
16
|
-
chainId: ChainId;
|
|
17
|
-
};
|
|
18
|
-
[PageType.ModifyPool]: {
|
|
19
|
-
address: string;
|
|
20
|
-
chainId: ChainId;
|
|
21
|
-
};
|
|
22
|
-
[PageType.CreatePool]: {
|
|
23
|
-
fromAddress?: string;
|
|
24
|
-
toAddress?: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
[PageType.MiningDetail]: {
|
|
27
|
-
address: string;
|
|
28
|
-
chainId: ChainId;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface Page<T extends PageType = PageType> {
|
|
32
|
-
type: T;
|
|
33
|
-
params?: PageTypeParams[T];
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { State } from '../reducers/globals';
|
|
3
|
-
export declare const setGlobalProps: (globalProps: Partial<State>) => AppThunkAction;
|
|
4
|
-
export declare const setAutoConnectLoading: (loading: boolean) => AppThunkAction;
|
|
5
|
-
export declare const setAutoSlippage: (autoSlippage: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
value: number | null;
|
|
8
|
-
}) => AppThunkAction;
|
|
9
|
-
export declare const setAutoSlippageLoading: (loading: boolean) => AppThunkAction;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
-
import { RootState } from '../reducers';
|
|
3
|
-
export declare type AppThunkAction<Ret = void> = ThunkAction<Ret, RootState, unknown, Action<string>>;
|
|
4
|
-
export declare type AppThunkDispatch = ThunkDispatch<RootState, unknown, Action<string>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { Slippage, TxDdl } from '../reducers/settings';
|
|
3
|
-
import { ColorMode } from '../reducers/settings';
|
|
4
|
-
export declare const setColorMode: (colorMode: ColorMode) => AppThunkAction;
|
|
5
|
-
export declare const setSlippage: (slippage: Slippage) => AppThunkAction;
|
|
6
|
-
export declare const setTxDdl: (ddl: TxDdl) => AppThunkAction;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { TokenList, TokenInfo } from '../../hooks/Token';
|
|
3
|
-
import { SlippageWithToken } from '../reducers/token';
|
|
4
|
-
export declare const setTokenList: (tokenList: TokenList) => AppThunkAction;
|
|
5
|
-
export declare const setPopularTokenList: (popularTokenList: TokenList) => AppThunkAction;
|
|
6
|
-
export declare const setSlippageWithTokens: (slippageWithTokens: SlippageWithToken[]) => AppThunkAction;
|
|
7
|
-
export declare const setDefaultFromToken: (token: TokenInfo) => AppThunkAction;
|
|
8
|
-
export declare const setDefaultToToken: (token: TokenInfo) => AppThunkAction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
import { State } from '../reducers/wallet';
|
|
4
|
-
export declare const setDefaultChainId: (chainId: ChainId) => AppThunkAction;
|
|
5
|
-
export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
6
|
-
export declare const setBlockNumber: (blockNumber: number) => AppThunkAction;
|
|
7
|
-
export declare const setOpenConnectWalletInfo: (openConnectWalletInfo: State['openConnectWalletInfo']) => AppThunkAction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @ts-ignore */
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
3
|
-
settings: import("./reducers/settings").State;
|
|
4
|
-
wallet: import("./reducers/wallet").State;
|
|
5
|
-
token: import("./reducers/token").State;
|
|
6
|
-
globals: import("./reducers/globals").State;
|
|
7
|
-
}>, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
8
|
-
settings: import("./reducers/settings").State;
|
|
9
|
-
wallet: import("./reducers/wallet").State;
|
|
10
|
-
token: import("./reducers/token").State;
|
|
11
|
-
globals: import("./reducers/globals").State;
|
|
12
|
-
}>, import("redux").AnyAction, undefined>]>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
import { SwapWidgetProps } from '../..';
|
|
3
|
-
export declare enum ContractStatus {
|
|
4
|
-
Initial = "Initial",
|
|
5
|
-
Pending = "Pending",
|
|
6
|
-
ApproveSuccess = "ApproveSuccess",
|
|
7
|
-
TxSuccess = "TxSuccess",
|
|
8
|
-
Failed = "Failed"
|
|
9
|
-
}
|
|
10
|
-
export interface State extends SwapWidgetProps {
|
|
11
|
-
isReverseRouting?: boolean;
|
|
12
|
-
contractStatus?: ContractStatus;
|
|
13
|
-
autoConnectLoading?: boolean;
|
|
14
|
-
showCoingecko?: boolean;
|
|
15
|
-
/** source: props.getAutoSlippage */
|
|
16
|
-
autoSlippage?: {
|
|
17
|
-
loading: boolean;
|
|
18
|
-
value: number | null;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const initialState: State;
|
|
22
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
23
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { State as settingsState } from './settings';
|
|
2
|
-
import { State as walletState } from './wallet';
|
|
3
|
-
import { State as tokenState } from './token';
|
|
4
|
-
import { State as globalState } from './globals';
|
|
5
|
-
export interface RootState {
|
|
6
|
-
settings: settingsState;
|
|
7
|
-
wallet: walletState;
|
|
8
|
-
token: tokenState;
|
|
9
|
-
globals: globalState;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: () => import("redux").Reducer<import("redux").CombinedState<{
|
|
12
|
-
settings: settingsState;
|
|
13
|
-
wallet: walletState;
|
|
14
|
-
token: tokenState;
|
|
15
|
-
globals: globalState;
|
|
16
|
-
}>, import("redux").AnyAction>;
|
|
17
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
import { PaletteMode } from '@dodoex/components';
|
|
3
|
-
export declare type ColorMode = PaletteMode | 'system';
|
|
4
|
-
export declare type Slippage = string | null;
|
|
5
|
-
export declare type TxDdl = number | '';
|
|
6
|
-
export declare type State = {
|
|
7
|
-
colorMode: ColorMode;
|
|
8
|
-
slippage: Slippage;
|
|
9
|
-
ddl: TxDdl;
|
|
10
|
-
};
|
|
11
|
-
export declare const initialState: State;
|
|
12
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
13
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { AnyAction } from 'redux';
|
|
3
|
-
import type { TokenList, DefaultTokenInfo } from '../../hooks/Token';
|
|
4
|
-
export declare type AccountBalance = {
|
|
5
|
-
tokenBalances?: BigNumber;
|
|
6
|
-
tokenAllowances?: BigNumber;
|
|
7
|
-
};
|
|
8
|
-
export declare type AccountBalances = {
|
|
9
|
-
[key in string]: AccountBalance;
|
|
10
|
-
};
|
|
11
|
-
export declare type SlippageWithToken = {
|
|
12
|
-
slippage: string;
|
|
13
|
-
tokens: string[];
|
|
14
|
-
};
|
|
15
|
-
export declare type State = {
|
|
16
|
-
tokenList: TokenList;
|
|
17
|
-
popularTokenList: TokenList;
|
|
18
|
-
slippageWithTokens: SlippageWithToken[];
|
|
19
|
-
defaultFromToken?: DefaultTokenInfo;
|
|
20
|
-
defaultToToken?: DefaultTokenInfo;
|
|
21
|
-
};
|
|
22
|
-
export declare const initialState: State;
|
|
23
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
24
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
export declare type State = {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
fromTokenChainId?: ChainId;
|
|
6
|
-
latestBlockNumber: number;
|
|
7
|
-
openConnectWalletInfo: boolean | {
|
|
8
|
-
/** Wallet is connected, chainID needs to be switched */
|
|
9
|
-
chainId?: ChainId;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const initialState: State;
|
|
13
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
14
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getGlobalProps: (state?: RootState) => import("../reducers/globals").State;
|
|
3
|
-
export declare const getAutoConnectLoading: (state?: RootState) => boolean | undefined;
|
|
4
|
-
export declare const getAutoSlippage: (state?: RootState) => {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
value: number | null;
|
|
7
|
-
} | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getColorMode: (state?: RootState) => import("../reducers/settings").ColorMode;
|
|
3
|
-
export declare const getSlippage: (state?: RootState) => import("../reducers/settings").Slippage;
|
|
4
|
-
export declare const getTxDdl: (state?: RootState) => import("../reducers/settings").TxDdl;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import type { DefaultTokenInfo } from '../../hooks/Token';
|
|
3
|
-
import { RootState } from '../reducers';
|
|
4
|
-
export declare const getTokenList: (state?: RootState) => import("../../hooks/Token").TokenList;
|
|
5
|
-
export declare const getAllTokenList: (state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
6
|
-
export declare const getPopularTokenList: (chainId: ChainId, state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
7
|
-
export declare const getSlippageWithTokens: (state?: RootState) => import("../reducers/token").SlippageWithToken[];
|
|
8
|
-
export declare const getDefaultFromToken: (state?: RootState) => DefaultTokenInfo | undefined;
|
|
9
|
-
export declare const getDefaultToToken: (state?: RootState) => DefaultTokenInfo | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getDefaultChainId: (state?: RootState) => import("@dodoex/api").ChainId;
|
|
3
|
-
export declare const getFromTokenChainId: (state?: RootState) => import("@dodoex/api").ChainId | undefined;
|
|
4
|
-
export declare const getLatestBlockNumber: (state?: RootState) => number;
|
|
5
|
-
export declare const getOpenConnectWalletInfo: (state?: RootState) => boolean | {
|
|
6
|
-
chainId?: import("@dodoex/api").ChainId | undefined;
|
|
7
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
|
|
3
|
-
export declare function isAddress(value: any): boolean;
|
|
4
|
-
export declare function isETHAddress(addr: string): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Returns true if the string value is zero in hex
|
|
7
|
-
* @param hexNumberString
|
|
8
|
-
*/
|
|
9
|
-
export default function isZero(hexNumberString: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* truncate pool address: 0xeBa959390016dd81419A189e5ef6F3B6720e5A90 => 0xeBa9...5A90
|
|
12
|
-
* @param address pool address
|
|
13
|
-
*/
|
|
14
|
-
export declare function truncatePoolAddress(address: string): string;
|
|
15
|
-
export declare function getEtherscanPage(chainId: ChainId, id?: string | null, prefix?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from 'bignumber.js';
|
|
2
|
-
/**
|
|
3
|
-
* format to readable number, like: 0.00 -> 0, 1.00 -> 1, 1.235 -> 1.23, 1.230 -> 1.23
|
|
4
|
-
* @param input
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, showIntegerOnly, showDecimalsOnly, noGroupSeparator, roundingMode, }: {
|
|
7
|
-
input: BigNumber | number | string;
|
|
8
|
-
showDecimals?: number;
|
|
9
|
-
showIntegerOnly?: boolean;
|
|
10
|
-
showDecimalsOnly?: boolean;
|
|
11
|
-
showPrecisionDecimals?: number;
|
|
12
|
-
noGroupSeparator?: boolean;
|
|
13
|
-
roundingMode?: BigNumber.RoundingMode;
|
|
14
|
-
}): string;
|
|
15
|
-
export declare function formatTokenAmountNumber({ input, decimals, showPrecisionDecimals, noGroupSeparator, }: {
|
|
16
|
-
input?: BigNumber | number | string | null;
|
|
17
|
-
decimals?: number;
|
|
18
|
-
showPrecisionDecimals?: number;
|
|
19
|
-
noGroupSeparator?: boolean;
|
|
20
|
-
}): string;
|
|
21
|
-
export declare const fixedString: (raw: string | number | BigNumber, showDecimals?: number) => string;
|
|
22
|
-
export declare const fixedInputStringToFormattedNumber: (inputValue: string, inputTokenShowDecimals: number) => string | null;
|
|
23
|
-
export declare const toWei: (amount: BigNumber | string | number, decimals: number, notDp?: boolean) => BigNumber;
|
|
24
|
-
export declare const byWei: (amount: BigNumber | string | number, decimals: number) => BigNumber;
|
|
25
|
-
export declare const getDecimalLimit: (decimals: number | undefined | null) => number;
|
|
26
|
-
export declare function getIntegerNumber(v: number): number;
|
|
27
|
-
/**
|
|
28
|
-
* format to short number, like: -0.12 -> 0, 0.0000123->0.000012, 123.234 -> 123.23, 1234.12 -> 1.23K, 1000000.123->1.00M
|
|
29
|
-
* @param n
|
|
30
|
-
*/
|
|
31
|
-
export declare function formatShortNumber(n?: BigNumber, showDecimals?: number): string;
|
|
32
|
-
export declare function formatExponentialNotation(n?: BigNumber): string;
|
|
33
|
-
/**
|
|
34
|
-
* format to percentage number
|
|
35
|
-
* @param param0 input number
|
|
36
|
-
*/
|
|
37
|
-
export declare function formatPercentageNumber({ input, showDecimals,
|
|
38
|
-
/** The percentage is rounded by default. */
|
|
39
|
-
roundingMode, }: {
|
|
40
|
-
input?: BigNumber | string | number | null;
|
|
41
|
-
showDecimals?: number;
|
|
42
|
-
roundingMode?: BigNumber.RoundingMode;
|
|
43
|
-
}): string;
|
|
44
|
-
export declare const formatApy: (amount: BigNumber, showDecimals?: number) => string;
|
|
45
|
-
export declare function formatUnknownTokenSymbol(token?: {
|
|
46
|
-
symbol: string;
|
|
47
|
-
name: string;
|
|
48
|
-
} | null): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../hooks/Token';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
export declare const getTokenSymbolDisplay: (baseToken: TokenInfo) => string;
|
|
5
|
-
export declare const getSwapTxValue: ({ tokenAmount, tokenAddress, chainId, }: {
|
|
6
|
-
tokenAmount: string | number | BigNumber;
|
|
7
|
-
tokenAddress: string;
|
|
8
|
-
chainId: ChainId;
|
|
9
|
-
}) => string;
|
|
10
|
-
export declare function getTokenPairCompareText({ fromToken, toToken, fromFiatPrice, toFiatPrice, reverse, showDecimals, }: {
|
|
11
|
-
fromToken: TokenInfo | undefined;
|
|
12
|
-
toToken: TokenInfo | undefined;
|
|
13
|
-
fromFiatPrice: BigNumber | undefined;
|
|
14
|
-
toFiatPrice: BigNumber | undefined;
|
|
15
|
-
reverse?: boolean;
|
|
16
|
-
showDecimals?: number;
|
|
17
|
-
}): {
|
|
18
|
-
comparePrice: BigNumber | null;
|
|
19
|
-
comparePriceText: string;
|
|
20
|
-
loading: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare function getShowDecimals(decimals: string | number): 6 | 4;
|
|
23
|
-
export declare function convertFetchTokenToTokenInfo(token: {
|
|
24
|
-
id?: string | null;
|
|
25
|
-
address?: string | null;
|
|
26
|
-
symbol?: string | null;
|
|
27
|
-
name?: string | null;
|
|
28
|
-
decimals?: number | null;
|
|
29
|
-
logoImg?: string | null | undefined;
|
|
30
|
-
} | undefined | null, chainId: ChainId | number): TokenInfo | null | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const increaseArray: (len: number) => string[];
|