@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,17 +0,0 @@
|
|
|
1
|
-
import { Provider as Eip1193Provider } from '@web3-react/types';
|
|
2
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
|
-
import { ChainId } from '@dodoex/api';
|
|
4
|
-
import { Web3Connection } from './web3';
|
|
5
|
-
import { WalletType } from '../../constants/wallet';
|
|
6
|
-
export interface Web3ConnectorsProps {
|
|
7
|
-
provider?: Eip1193Provider | JsonRpcProvider;
|
|
8
|
-
jsonRpcUrlMap?: {
|
|
9
|
-
[chainId: number]: string[];
|
|
10
|
-
};
|
|
11
|
-
defaultChainId?: ChainId;
|
|
12
|
-
}
|
|
13
|
-
export declare function useWeb3Connectors({ provider, jsonRpcUrlMap: jsonRpcUrlMapProps, defaultChainId, }: Web3ConnectorsProps): {
|
|
14
|
-
connectors: Web3Connection[];
|
|
15
|
-
key: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function connectToWallet(type: WalletType, chainId: number | undefined, onError: (error: Error) => void): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Web3ReactHooks } from '@web3-react/core';
|
|
2
|
-
import { Connector, Provider as Eip1193Provider } from '@web3-react/types';
|
|
3
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
4
|
-
import { ChainId } from '@dodoex/api';
|
|
5
|
-
export declare type Web3Connection = [Connector, Web3ReactHooks];
|
|
6
|
-
export declare function getConnectionFromProvider(onError: (error: Error) => void, provider?: JsonRpcProvider | Eip1193Provider): Web3Connection | undefined;
|
|
7
|
-
export declare function getConnectionFromWalletConnect(useDefault: boolean, jsonRpcUrlMap: {
|
|
8
|
-
[chainId: number]: string[];
|
|
9
|
-
}, defaultChainId: ChainId | undefined, onError: (error: Error) => void): Web3Connection;
|
|
10
|
-
export declare function getConnectionFromMetaMask(onError: (error: Error) => void): Web3Connection;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExecutionCtx } from './types';
|
|
3
|
-
export { default as useExecution } from './useExecution';
|
|
4
|
-
export type { ExecutionProps } from './useExecution';
|
|
5
|
-
export { default as useInflights } from './useInflights';
|
|
6
|
-
export declare const ExecutionContext: import("react").Context<ExecutionCtx>;
|
|
7
|
-
/**
|
|
8
|
-
* Get the submission context
|
|
9
|
-
*/
|
|
10
|
-
export declare function useSubmission(): ExecutionCtx;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Let's pretend that typescript has ADT
|
|
3
|
-
*/
|
|
4
|
-
import { BigNumber } from 'bignumber.js';
|
|
5
|
-
import { BigNumber as EthersBigNumber } from '@ethersproject/bignumber';
|
|
6
|
-
/**
|
|
7
|
-
* All supported opcodes, as tagged union discriminants
|
|
8
|
-
*/
|
|
9
|
-
export declare enum OpCode {
|
|
10
|
-
Approval = "APPROVAL",
|
|
11
|
-
TX = "TX",
|
|
12
|
-
TypedSign = "TypedSign"
|
|
13
|
-
}
|
|
14
|
-
export declare enum SwapType {
|
|
15
|
-
Normal = "Normal",
|
|
16
|
-
Privacy = "Privacy",
|
|
17
|
-
LimitOrder = "LimitOrder",
|
|
18
|
-
RFQ = "RFQ"
|
|
19
|
-
}
|
|
20
|
-
export declare type TokenData = {
|
|
21
|
-
address: string;
|
|
22
|
-
};
|
|
23
|
-
export declare type ApprovalStep = {
|
|
24
|
-
opcode: OpCode.Approval;
|
|
25
|
-
/**
|
|
26
|
-
* The address of the token
|
|
27
|
-
*/
|
|
28
|
-
token: TokenData;
|
|
29
|
-
/**
|
|
30
|
-
* The approved contract address
|
|
31
|
-
*/
|
|
32
|
-
contract: string;
|
|
33
|
-
/**
|
|
34
|
-
* The amount to set the allowance to, in Wei, in base-10. If omitted, a (very) big constants is used
|
|
35
|
-
* TODO(meow): bigint shows a 87% support rate. Can we use it here?
|
|
36
|
-
*/
|
|
37
|
-
amt?: BigNumber;
|
|
38
|
-
};
|
|
39
|
-
export declare type TXStep = {
|
|
40
|
-
opcode: OpCode.TX;
|
|
41
|
-
value: number | string;
|
|
42
|
-
to: string;
|
|
43
|
-
data: string;
|
|
44
|
-
swapType?: SwapType;
|
|
45
|
-
gasLimit?: EthersBigNumber;
|
|
46
|
-
gasPrice?: number;
|
|
47
|
-
ddlSecRel?: number;
|
|
48
|
-
};
|
|
49
|
-
export declare type TypedSignStep = {
|
|
50
|
-
opcode: OpCode.TypedSign;
|
|
51
|
-
swapType?: SwapType;
|
|
52
|
-
signer?: string;
|
|
53
|
-
typedData: Record<string, unknown>;
|
|
54
|
-
};
|
|
55
|
-
export declare type Step = ApprovalStep | TXStep | TypedSignStep;
|
|
56
|
-
export declare type Steps = Step[];
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Step as StepSpec } from './spec';
|
|
3
|
-
import { ExecutionProps } from './useExecution';
|
|
4
|
-
export declare enum State {
|
|
5
|
-
Running = 0,
|
|
6
|
-
Success = 1,
|
|
7
|
-
Failed = 2,
|
|
8
|
-
Warning = 3
|
|
9
|
-
}
|
|
10
|
-
export declare enum MetadataFlag {
|
|
11
|
-
addLiquidity = "addLiquidity",
|
|
12
|
-
removeLiquidity = "removeLiquidity",
|
|
13
|
-
createDPPPool = "createDPPPool",
|
|
14
|
-
createDSPPool = "createDSPPool",
|
|
15
|
-
createDVMPool = "createDVMPool",
|
|
16
|
-
stakeMining = "stakeMining",
|
|
17
|
-
unstakeMining = "unstakeMining",
|
|
18
|
-
claimMining = "claimMining"
|
|
19
|
-
}
|
|
20
|
-
export declare type Metadata = Record<string, any>;
|
|
21
|
-
export declare type Request = {
|
|
22
|
-
brief: string;
|
|
23
|
-
spec: StepSpec;
|
|
24
|
-
subtitle?: string | React.ReactNode | null;
|
|
25
|
-
metadata?: Metadata;
|
|
26
|
-
tx: string;
|
|
27
|
-
nonce?: number;
|
|
28
|
-
doneTime?: number;
|
|
29
|
-
};
|
|
30
|
-
export declare type TextUpdater = (request: Request) => null | {
|
|
31
|
-
brief: string;
|
|
32
|
-
subtitle?: string;
|
|
33
|
-
metadata?: Metadata;
|
|
34
|
-
};
|
|
35
|
-
export declare type Requests = Map<string, [Request, State]>;
|
|
36
|
-
export declare enum ExecutionResult {
|
|
37
|
-
Canceled = "canceled",
|
|
38
|
-
Failed = "failed",
|
|
39
|
-
Success = "success",
|
|
40
|
-
Submitted = "submitted"
|
|
41
|
-
}
|
|
42
|
-
export interface Showing {
|
|
43
|
-
brief: string;
|
|
44
|
-
subtitle?: string | React.ReactNode;
|
|
45
|
-
spec: StepSpec;
|
|
46
|
-
}
|
|
47
|
-
export declare type ExecutionCtx = {
|
|
48
|
-
/**
|
|
49
|
-
* Execute an on-chain operation
|
|
50
|
-
* @param breif: TX title. e.g.: "Swap"
|
|
51
|
-
* @param spec: TX specification.
|
|
52
|
-
* @param subtitle: Additional hint text. e.g.: "10 USDT to 10 USDC"
|
|
53
|
-
* @param early: When given, the returned promise resolves when user confirmed in their wallet.
|
|
54
|
-
* @param mixpanelProps: mixpanel properties
|
|
55
|
-
* @param submittedConfirmBack: submittedConfirmBack
|
|
56
|
-
* @param successBack: successBack
|
|
57
|
-
* @param metadata: metadata
|
|
58
|
-
*/
|
|
59
|
-
execute: (brief: string, spec: StepSpec, params?: {
|
|
60
|
-
subtitle?: string | React.ReactNode | null;
|
|
61
|
-
early?: boolean;
|
|
62
|
-
submittedBack?: () => void;
|
|
63
|
-
mixpanelProps?: Record<string, any>;
|
|
64
|
-
submittedConfirmBack?: () => void;
|
|
65
|
-
successBack?: (tx: string, callback?: ExecutionProps['onTxSuccess']) => void;
|
|
66
|
-
metadata?: Metadata;
|
|
67
|
-
}) => Promise<ExecutionResult>;
|
|
68
|
-
/**
|
|
69
|
-
* order
|
|
70
|
-
*/
|
|
71
|
-
requests?: Requests;
|
|
72
|
-
updateText: (upd: TextUpdater) => void;
|
|
73
|
-
setShowing?: React.Dispatch<React.SetStateAction<Showing | null>>;
|
|
74
|
-
waitingSubmit: boolean;
|
|
75
|
-
};
|
|
76
|
-
export declare enum WatchResult {
|
|
77
|
-
Failed = 0,
|
|
78
|
-
Success = 1
|
|
79
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
declare type BalanceData = {
|
|
3
|
-
[address: string]: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Record the loading status of the balance waiting to be updated after the chain is successfully uploaded
|
|
7
|
-
* Insert token data into logBalance in metadata when uploading, within 5 minutes after successful uploading. If the newly passed in balance is consistent with the previously recorded balance, loading will be returned
|
|
8
|
-
* After the balance is updated, or after 5 minutes, loading will return false. And delete the recorded metadata information to avoid calculating this data next time
|
|
9
|
-
* The 5-minute time limit is to avoid operations on other terminals or other tabs, which will cause the balance comparison to be invalid and keep loading.
|
|
10
|
-
*/
|
|
11
|
-
export declare const useBalanceUpdateLoading: () => {
|
|
12
|
-
balanceData: BalanceData;
|
|
13
|
-
isTokenLoading: (address: string, balance: BigNumber | number | string) => boolean;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Step as StepSpec } from './spec';
|
|
3
|
-
import { ExecutionResult, State, Request, Showing, ExecutionCtx, TextUpdater } from './types';
|
|
4
|
-
export interface ExecutionProps {
|
|
5
|
-
onTxFail?: (error: Error, data: any) => void;
|
|
6
|
-
onTxSubmit?: (tx: string, data: any) => void;
|
|
7
|
-
onTxSuccess?: (tx: string, data: any) => void;
|
|
8
|
-
executionStatus?: {
|
|
9
|
-
showing?: Showing | null;
|
|
10
|
-
showingDone?: boolean;
|
|
11
|
-
transactionTx?: string;
|
|
12
|
-
errorMessage?: string;
|
|
13
|
-
setErrorMessage?: (msg?: string | null) => void;
|
|
14
|
-
closeShowing?: () => void;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default function useExecution({ onTxFail, onTxSubmit, onTxSuccess, }?: ExecutionProps): {
|
|
18
|
-
showing: Showing | null;
|
|
19
|
-
showingDone: boolean;
|
|
20
|
-
transactionTx: string;
|
|
21
|
-
errorMessage: string | null;
|
|
22
|
-
setErrorMessage: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
23
|
-
closeShowing: () => void;
|
|
24
|
-
ctxVal: {
|
|
25
|
-
execute: (brief: string, spec: StepSpec, options?: Parameters<ExecutionCtx['execute']>[2]) => Promise<ExecutionResult.Failed | ExecutionResult.Success | ExecutionResult.Submitted>;
|
|
26
|
-
requests: Map<string, [Request, State]>;
|
|
27
|
-
updateText: (upd: TextUpdater) => void;
|
|
28
|
-
setShowing: import("react").Dispatch<import("react").SetStateAction<Showing | null>>;
|
|
29
|
-
waitingSubmit: boolean;
|
|
30
|
-
};
|
|
31
|
-
requests: Map<string, [Request, State]>;
|
|
32
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BigNumber as EthersBigNumber } from '@ethersproject/bignumber';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default function useExecuteSwap(): ({ to, data, useSource, duration, ddl, gasLimit, subtitle, value, }: {
|
|
4
|
-
value: string;
|
|
5
|
-
to: string;
|
|
6
|
-
data: string;
|
|
7
|
-
useSource?: string | undefined;
|
|
8
|
-
duration?: number | undefined;
|
|
9
|
-
ddl: number;
|
|
10
|
-
gasLimit?: EthersBigNumber | undefined;
|
|
11
|
-
subtitle: React.ReactNode;
|
|
12
|
-
}) => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../Token';
|
|
2
|
-
export interface FetchFiatPriceProps {
|
|
3
|
-
fromToken: TokenInfo | null;
|
|
4
|
-
toToken: TokenInfo | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function useFetchFiatPrice({ fromToken, toToken }: FetchFiatPriceProps): {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
refetch: () => void;
|
|
10
|
-
error: Error | null;
|
|
11
|
-
toFiatPrice: string;
|
|
12
|
-
fromFiatPrice: string;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TokenInfo } from '../Token';
|
|
3
|
-
export declare enum RoutePriceStatus {
|
|
4
|
-
Initial = "Initial",
|
|
5
|
-
Loading = "Loading",
|
|
6
|
-
Failed = "Failed",
|
|
7
|
-
Success = "Success"
|
|
8
|
-
}
|
|
9
|
-
export interface FetchRoutePrice {
|
|
10
|
-
fromToken: TokenInfo | null;
|
|
11
|
-
toToken: TokenInfo | null;
|
|
12
|
-
marginAmount?: string;
|
|
13
|
-
fromAmount: string;
|
|
14
|
-
toAmount: string;
|
|
15
|
-
estimateGas?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface IRouteResponse {
|
|
18
|
-
resAmount: number;
|
|
19
|
-
priceImpact: number;
|
|
20
|
-
baseFeeAmount: number;
|
|
21
|
-
additionalFeeAmount: number;
|
|
22
|
-
resPricePerToToken: number;
|
|
23
|
-
resPricePerFromToken: number;
|
|
24
|
-
to: string;
|
|
25
|
-
data: string;
|
|
26
|
-
value: string;
|
|
27
|
-
useSource: string;
|
|
28
|
-
duration: number;
|
|
29
|
-
}
|
|
30
|
-
export declare function useFetchRoutePrice({ toToken, fromToken, fromAmount, toAmount, marginAmount, estimateGas, }: FetchRoutePrice): {
|
|
31
|
-
status: RoutePriceStatus;
|
|
32
|
-
rawBrief: IRouteResponse | null;
|
|
33
|
-
refetch: () => Promise<void>;
|
|
34
|
-
executeSwap: (subtitle: React.ReactNode) => void;
|
|
35
|
-
reset: () => void;
|
|
36
|
-
};
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TokenInfo } from '../Token';
|
|
3
|
-
export declare function useInitDefaultToken({ fromToken, toToken, setFromToken, setToToken, updateFromAmt, updateToAmt, }: {
|
|
4
|
-
fromToken: TokenInfo | null;
|
|
5
|
-
toToken: TokenInfo | null;
|
|
6
|
-
setFromToken: (value: React.SetStateAction<TokenInfo | null>) => void;
|
|
7
|
-
setToToken: (value: React.SetStateAction<TokenInfo | null>) => void;
|
|
8
|
-
updateFromAmt: (v: string | number) => void;
|
|
9
|
-
updateToAmt: (v: string | number) => void;
|
|
10
|
-
}): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as useInitTokenList } from './useInitTokenList';
|
|
2
|
-
export { default as useFindTokenByAddress } from './useFindTokenByAddress';
|
|
3
|
-
export { default as useTokenList } from './useTokenList';
|
|
4
|
-
export type { TokenList, TokenInfo, DefaultTokenInfo } from './type';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface TokenInfo {
|
|
2
|
-
readonly chainId: number;
|
|
3
|
-
readonly address: string;
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly decimals: number;
|
|
6
|
-
readonly symbol: string;
|
|
7
|
-
readonly logoURI?: string;
|
|
8
|
-
readonly tags?: string[];
|
|
9
|
-
readonly extensions?: any;
|
|
10
|
-
readonly side?: 'from' | 'to';
|
|
11
|
-
}
|
|
12
|
-
export interface DefaultTokenInfo extends TokenInfo {
|
|
13
|
-
amount?: number;
|
|
14
|
-
}
|
|
15
|
-
export declare type TokenList = TokenInfo[];
|
|
16
|
-
export declare enum TokenListType {
|
|
17
|
-
All = "all"
|
|
18
|
-
}
|
|
19
|
-
export declare enum ApprovalState {
|
|
20
|
-
Loading = "Loading",
|
|
21
|
-
Insufficient = "ApprovalInsufficient",
|
|
22
|
-
Approving = "Approving",
|
|
23
|
-
Sufficient = "Sufficient",
|
|
24
|
-
Unchecked = "Unchecked"
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from './type';
|
|
3
|
-
export declare function useFetchTokenAllowance({ chainId, account, token, proxyContractAddress, }: {
|
|
4
|
-
chainId?: number;
|
|
5
|
-
account?: string;
|
|
6
|
-
token?: TokenInfo;
|
|
7
|
-
proxyContractAddress: string;
|
|
8
|
-
}): {
|
|
9
|
-
allowance: BigNumber | null;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
error: boolean;
|
|
12
|
-
refetch: () => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useFindTokenByAddress(address?: string): import("./type").TokenInfo | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TokenList } from './type';
|
|
2
|
-
export declare enum FetchStatus {
|
|
3
|
-
Initial = "Initial",
|
|
4
|
-
Loading = "Loading",
|
|
5
|
-
Failed = "Failed",
|
|
6
|
-
Success = "Success"
|
|
7
|
-
}
|
|
8
|
-
export declare function useGetCGTokenList({ chainId, skip, }: {
|
|
9
|
-
chainId: number;
|
|
10
|
-
skip?: boolean;
|
|
11
|
-
}): {
|
|
12
|
-
cgTokenList: TokenList;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
refetch: () => Promise<void>;
|
|
15
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo, ApprovalState } from './type';
|
|
3
|
-
export declare const useGetTokenStatus: ({ account, chainId, offset, contractAddress, }: {
|
|
4
|
-
account?: string | undefined;
|
|
5
|
-
chainId: number | undefined;
|
|
6
|
-
offset?: BigNumber | undefined;
|
|
7
|
-
contractAddress?: string | undefined;
|
|
8
|
-
}) => {
|
|
9
|
-
getApprovalState: (token: TokenInfo | null, value: string | number | BigNumber, overrideBalance?: BigNumber) => ApprovalState;
|
|
10
|
-
getPendingRest: (token?: TokenInfo | null) => boolean;
|
|
11
|
-
getMaxBalance: (token: TokenInfo | null) => string;
|
|
12
|
-
submitApprove: (token: TokenInfo | null, isReset?: boolean) => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TokenList, TokenListType } from './type';
|
|
2
|
-
export interface InitTokenListProps {
|
|
3
|
-
tokenList?: TokenList | TokenListType;
|
|
4
|
-
popularTokenList?: TokenList;
|
|
5
|
-
}
|
|
6
|
-
export default function useInitTokenList({ tokenList, popularTokenList, }: InitTokenListProps): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ChainListItem } from '../../constants/chainList';
|
|
3
|
-
export declare function useSelectChainList(side?: 'from' | 'to'): {
|
|
4
|
-
chainList: ChainListItem[];
|
|
5
|
-
selectChainId: number | undefined;
|
|
6
|
-
setSelectChainId: import("react").Dispatch<import("react").SetStateAction<number | undefined>>;
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { TokenInfo, TokenList } from './type';
|
|
4
|
-
import { ChainId } from '@dodoex/api';
|
|
5
|
-
export declare const getFuzzySearchTokenSort: (token: TokenInfo, search: string, { matchAddress, }?: {
|
|
6
|
-
matchAddress?: boolean | undefined;
|
|
7
|
-
}) => number;
|
|
8
|
-
export default function useTokenList({ value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, side, chainId: chainIdProps, visible, defaultLoadBalance, multiple, }: {
|
|
9
|
-
value?: TokenInfo | null | Array<TokenInfo>;
|
|
10
|
-
onChange: (token: TokenInfo | Array<TokenInfo>, isOccupied: boolean) => void;
|
|
11
|
-
/** token pair usage */
|
|
12
|
-
occupiedAddrs?: string[];
|
|
13
|
-
/** token pair usage */
|
|
14
|
-
occupiedChainId?: ChainId;
|
|
15
|
-
/** hide props */
|
|
16
|
-
hiddenAddrs?: string[];
|
|
17
|
-
/** only show props */
|
|
18
|
-
showAddrs?: string[];
|
|
19
|
-
/** token field control */
|
|
20
|
-
side?: 'from' | 'to';
|
|
21
|
-
chainId?: number;
|
|
22
|
-
/** Token Picker visible */
|
|
23
|
-
visible?: boolean;
|
|
24
|
-
defaultLoadBalance?: boolean;
|
|
25
|
-
multiple?: boolean;
|
|
26
|
-
}): {
|
|
27
|
-
filter: string;
|
|
28
|
-
setFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
29
|
-
showTokenList: TokenList;
|
|
30
|
-
onSelectToken: (token: TokenInfo) => void;
|
|
31
|
-
popularTokenList: TokenInfo[];
|
|
32
|
-
tokenInfoMap: Map<string, {
|
|
33
|
-
balance: BigNumber;
|
|
34
|
-
allowance: BigNumber;
|
|
35
|
-
}>;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo, TokenList } from './type';
|
|
3
|
-
interface SimpleToken {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
address: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function getDefaultToken({ side, tokenList, occupyToken, needFindToken, chainId, }: {
|
|
8
|
-
side: TokenInfo['side'];
|
|
9
|
-
tokenList: TokenList;
|
|
10
|
-
occupyToken?: TokenInfo | null;
|
|
11
|
-
needFindToken?: SimpleToken;
|
|
12
|
-
chainId?: number;
|
|
13
|
-
}): {
|
|
14
|
-
findToken: TokenInfo | null;
|
|
15
|
-
defaultToken: TokenInfo | null;
|
|
16
|
-
};
|
|
17
|
-
export declare function useTokenListDefaultToken({ chainId, account, defaultBaseToken: defaultBaseSimpleToken, defaultQuoteToken: defaultQuoteSimpleToken, tokenListInclude, }?: {
|
|
18
|
-
chainId?: number;
|
|
19
|
-
account?: string;
|
|
20
|
-
defaultBaseToken?: SimpleToken;
|
|
21
|
-
defaultQuoteToken?: SimpleToken;
|
|
22
|
-
/** Must exist in tokenList */
|
|
23
|
-
tokenListInclude?: boolean;
|
|
24
|
-
}): {
|
|
25
|
-
defaultBaseToken: TokenInfo | null;
|
|
26
|
-
defaultQuoteToken: TokenInfo | null;
|
|
27
|
-
defaultBaseTokenLoading: boolean | undefined;
|
|
28
|
-
defaultQuoteTokenLoading: boolean | undefined;
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TokenInfo, TokenList } from './type';
|
|
2
|
-
export default function useTokenListFetchBalance({ chainId, value, tokenList, popularTokenList, visible, defaultLoadBalance, }: {
|
|
3
|
-
chainId: number;
|
|
4
|
-
value?: TokenInfo | null | Array<TokenInfo>;
|
|
5
|
-
tokenList: TokenList;
|
|
6
|
-
popularTokenList?: TokenList;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
defaultLoadBalance?: boolean;
|
|
9
|
-
}): Map<string, {
|
|
10
|
-
balance: import("bignumber.js").BigNumber;
|
|
11
|
-
allowance: import("bignumber.js").BigNumber;
|
|
12
|
-
}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { TokenInfo } from './type';
|
|
3
|
-
export declare function useTokenStatus(token: TokenInfo | undefined | null, { amount, contractAddress, offset, overrideBalance, skip, }?: {
|
|
4
|
-
amount?: string | number | BigNumber;
|
|
5
|
-
contractAddress?: string;
|
|
6
|
-
offset?: BigNumber;
|
|
7
|
-
overrideBalance?: BigNumber | null;
|
|
8
|
-
skip?: boolean;
|
|
9
|
-
}): {
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { WidgetProps } from '../../components/Widget/';
|
|
2
|
-
export declare function useInitPropsToRedux({ width, height, feeRate, rebateTo, colorMode, apikey, defaultChainId, defaultToToken, defaultFromToken, jsonRpcUrlMap, swapSlippage, bridgeSlippage, apiServices, crossChain, noPowerBy, }: WidgetProps): void;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _default: ({
|
|
2
|
-
constant: boolean;
|
|
3
|
-
inputs: {
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}[];
|
|
7
|
-
name: string;
|
|
8
|
-
outputs: {
|
|
9
|
-
name: string;
|
|
10
|
-
type: string;
|
|
11
|
-
}[];
|
|
12
|
-
payable: boolean;
|
|
13
|
-
stateMutability: "nonpayable";
|
|
14
|
-
type: "function";
|
|
15
|
-
} | {
|
|
16
|
-
constant: boolean;
|
|
17
|
-
inputs: {
|
|
18
|
-
name: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}[];
|
|
21
|
-
name: string;
|
|
22
|
-
outputs: {
|
|
23
|
-
name: string;
|
|
24
|
-
type: string;
|
|
25
|
-
}[];
|
|
26
|
-
payable: boolean;
|
|
27
|
-
stateMutability: "view";
|
|
28
|
-
type: "function";
|
|
29
|
-
})[];
|
|
30
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
inputs: {
|
|
3
|
-
internalType: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
}[];
|
|
7
|
-
name: string;
|
|
8
|
-
outputs: {
|
|
9
|
-
internalType: string;
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
}[];
|
|
13
|
-
stateMutability: string;
|
|
14
|
-
type: string;
|
|
15
|
-
}[];
|
|
16
|
-
export default _default;
|