@dodoex/widgets 3.0.0-beta.3 → 3.0.0-beta.5
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/{helper-CT7gzva6.cjs → helper-CLLyxV4k.cjs} +1 -1
- package/dist/cjs/{helper-DbNa5407.cjs → helper-TLfYWcrp.cjs} +1 -1
- package/dist/cjs/{index-Btn_JJqA.cjs → index-2gIiWluA.cjs} +1 -1
- package/dist/cjs/{index-Dvm2UvHH.cjs → index-Bav9CAmb.cjs} +1 -1
- package/dist/cjs/{index-4qnGWy2s.cjs → index-CGYgLzId.cjs} +3 -3
- package/dist/cjs/{index-385J8FnP.cjs → index-CRy_F8z-.cjs} +3 -3
- package/dist/cjs/{index-C7VFgrL1.cjs → index-CehtAWbq.cjs} +1 -1
- package/dist/cjs/{index-DrSpvsIR.cjs → index-LrumBPzq.cjs} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/{lottie-bG8uL7Ic.cjs → lottie-7NcOWIJ4.cjs} +1 -1
- package/dist/cjs/{lottie-tdKuZHBg.cjs → lottie-YDIvS9JC.cjs} +1 -1
- package/dist/cjs/widgets/PoolWidget/PoolOperate/index.d.ts +2 -1
- package/dist/{helper-7cc29594.js → helper-CTfrV0Rj.js} +1 -1
- package/dist/{helper-BpKL-WX0.js → helper-CxIwwxNg.js} +1 -1
- package/dist/{index-DDPHAzsy.js → index-BeDXO0sq.js} +1 -1
- package/dist/{index-DksR3nfe.js → index-Bj86XWJe.js} +1 -1
- package/dist/{index-DhQe6anS.js → index-C6tQX6eZ.js} +1 -1
- package/dist/{index-Ch7GewG2.js → index-DFNQbZdf.js} +3 -3
- package/dist/{index-D9EItTW1.js → index-DZ4BV65W.js} +3 -3
- package/dist/{index-CyP7hQDk.js → index-gimKgjoZ.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{lottie-CljBQMvS.js → lottie-AFoy96Z1.js} +1 -1
- package/dist/{lottie-CvNBrPAN.js → lottie-DHt3-R9A.js} +1 -1
- package/dist/widgets/PoolWidget/PoolOperate/index.d.ts +2 -1
- package/package.json +3 -3
- 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-DaQkFXvn.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,19 +0,0 @@
|
|
|
1
|
-
import { PmmModelParams } from '@dodoex/api';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
/**
|
|
4
|
-
* Calculate marginPrice for buying or selling target baseToken
|
|
5
|
-
* @param param0
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare function computeMarginPrice({ params, target, isBuy, }: {
|
|
9
|
-
params: PmmModelParams;
|
|
10
|
-
target: BigNumber;
|
|
11
|
-
isBuy?: boolean;
|
|
12
|
-
}): BigNumber;
|
|
13
|
-
/**
|
|
14
|
-
* Calculate the margin price for selling target baseTokens
|
|
15
|
-
*/
|
|
16
|
-
export declare function computeSellMarginPrice({ params, target, }: {
|
|
17
|
-
params: PmmModelParams;
|
|
18
|
-
target: BigNumber;
|
|
19
|
-
}): BigNumber;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare function DepthChartV2({ title, titleColor, description, descriptionColor, buttonColor, placeholder, }: {
|
|
3
|
-
title: string;
|
|
4
|
-
titleColor: string;
|
|
5
|
-
description: string;
|
|
6
|
-
descriptionColor: string;
|
|
7
|
-
buttonColor: string;
|
|
8
|
-
placeholder: React.ReactElement;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
export default DepthChartV2;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const OptButton: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
14
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function chartT(key: string, params: any): string;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
export declare const bgColor = "rgba(38, 39, 41, 0.3)";
|
|
5
|
-
export interface ColorMap {
|
|
6
|
-
grid?: string;
|
|
7
|
-
midPriceLine?: string;
|
|
8
|
-
leftBg?: (string | number)[];
|
|
9
|
-
leftLine?: string;
|
|
10
|
-
leftColor?: string;
|
|
11
|
-
rightBg?: (string | number)[];
|
|
12
|
-
rightLine?: string;
|
|
13
|
-
rightColor?: string;
|
|
14
|
-
tooltipBg?: string;
|
|
15
|
-
tooltipColor?: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare type Props = {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
params: PmmModelParams;
|
|
22
|
-
midPrice: BigNumber;
|
|
23
|
-
pmmModel: PMMModel;
|
|
24
|
-
baseTokenSymbol: string;
|
|
25
|
-
quoteTokenSymbol: string;
|
|
26
|
-
colorMap?: ColorMap;
|
|
27
|
-
};
|
|
28
|
-
export declare function LiquidityChartKonva({ width, height, params, baseTokenSymbol, quoteTokenSymbol, colorMap, }: Props): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { StatAreaPoint } from './usePoints';
|
|
3
|
-
export declare function computePointYByHeight({ maxHeight, gridAreaHeight, value, }: {
|
|
4
|
-
maxHeight: BigNumber;
|
|
5
|
-
gridAreaHeight: number;
|
|
6
|
-
value: BigNumber;
|
|
7
|
-
}): number;
|
|
8
|
-
export declare function computeHeightByPointY({ maxY, gridAreaHeight, y, }: {
|
|
9
|
-
maxY: BigNumber;
|
|
10
|
-
gridAreaHeight: number;
|
|
11
|
-
y: number;
|
|
12
|
-
}): BigNumber;
|
|
13
|
-
/**
|
|
14
|
-
* Obtain the closest data point from the data point collection through the coordinate point x and a series of point data subsets from the point to the center line.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getStatAreaPointByX({ targetPrice, areaPoints, isLeft, }: {
|
|
17
|
-
targetPrice: BigNumber;
|
|
18
|
-
areaPoints: StatAreaPoint[];
|
|
19
|
-
isLeft: boolean;
|
|
20
|
-
}): {
|
|
21
|
-
targetAreaStatPoint: StatAreaPoint | null;
|
|
22
|
-
targetAreaStatPoints: StatAreaPoint[];
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Given a pixel's x-coordinate, width, logarithm of the minimum value of the abscissa, and logarithm of the maximum value of the abscissa, calculate the logarithmic coordinate corresponding to the point
|
|
26
|
-
*/
|
|
27
|
-
export declare function computeTargetPrice({ x, width, minXLN10, maxXLN10, }: {
|
|
28
|
-
x: number;
|
|
29
|
-
width: number;
|
|
30
|
-
minXLN10: BigNumber;
|
|
31
|
-
maxXLN10: BigNumber;
|
|
32
|
-
}): BigNumber;
|
|
33
|
-
/**
|
|
34
|
-
* Given the logarithm of a coordinate, the width, the logarithm of the minimum value of the abscissa, and the logarithm of the maximum value of the abscissa, calculate the x coordinate corresponding to the point
|
|
35
|
-
*/
|
|
36
|
-
export declare function computeTargetX({ width, targetLN10, minXLN10, maxXLN10, }: {
|
|
37
|
-
width: number;
|
|
38
|
-
targetLN10: BigNumber;
|
|
39
|
-
minXLN10: BigNumber;
|
|
40
|
-
maxXLN10: BigNumber;
|
|
41
|
-
}): number;
|
|
42
|
-
/**
|
|
43
|
-
* Calculate logarithm
|
|
44
|
-
*/
|
|
45
|
-
export declare function computeTargetLN({ target }: {
|
|
46
|
-
target: BigNumber;
|
|
47
|
-
}): BigNumber;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { ColorMap } from './LiquidityChartKonva';
|
|
5
|
-
declare type Props = {
|
|
6
|
-
width?: number;
|
|
7
|
-
height?: number;
|
|
8
|
-
baseTokenSymbol: string;
|
|
9
|
-
quoteTokenSymbol: string;
|
|
10
|
-
pmmModel?: PMMModel;
|
|
11
|
-
pmmParams?: PmmModelParams;
|
|
12
|
-
midPrice?: BigNumber;
|
|
13
|
-
notShowTipText?: boolean;
|
|
14
|
-
colorMap?: ColorMap;
|
|
15
|
-
};
|
|
16
|
-
declare const LiquidityChart: React.FC<Props>;
|
|
17
|
-
export default LiquidityChart;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const TipWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useGridLine({ gridAreaHeight, gridAreaWidth, horizontalLineCount, verticalLineCount, color, }: {
|
|
3
|
-
gridAreaHeight: number;
|
|
4
|
-
gridAreaWidth: number;
|
|
5
|
-
horizontalLineCount: number;
|
|
6
|
-
verticalLineCount: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
export declare function useHorizontalLabel({ minXLN10, maxXLN10, labelCount, gridAreaHeight, gridAreaWidth, color, }: {
|
|
4
|
-
minXLN10: BigNumber;
|
|
5
|
-
maxXLN10: BigNumber;
|
|
6
|
-
labelCount: number;
|
|
7
|
-
gridAreaHeight: number;
|
|
8
|
-
gridAreaWidth: number;
|
|
9
|
-
color?: string;
|
|
10
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { ColorMap } from './LiquidityChartKonva';
|
|
4
|
-
import { StatAreaPoint } from './usePoints';
|
|
5
|
-
export declare function useLiquidityLine({ leftStatAreaPoints, rightStatAreaPoints, minXLN10, maxXLN10, maxLeftHeight, maxRightHeight, gridAreaWidth, gridAreaHeight, colorMap, }: {
|
|
6
|
-
leftStatAreaPoints: Array<StatAreaPoint>;
|
|
7
|
-
rightStatAreaPoints: Array<StatAreaPoint>;
|
|
8
|
-
minXLN10: BigNumber;
|
|
9
|
-
maxXLN10: BigNumber;
|
|
10
|
-
maxLeftHeight: BigNumber;
|
|
11
|
-
maxRightHeight: BigNumber;
|
|
12
|
-
gridAreaWidth: number;
|
|
13
|
-
gridAreaHeight: number;
|
|
14
|
-
colorMap: ColorMap;
|
|
15
|
-
}): {
|
|
16
|
-
leftLine: JSX.Element;
|
|
17
|
-
rightLine: JSX.Element;
|
|
18
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { PmmModelParams } from '@dodoex/api';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
/**
|
|
4
|
-
* data point
|
|
5
|
-
*/
|
|
6
|
-
export declare type StatPoint = {
|
|
7
|
-
giveAmount: BigNumber;
|
|
8
|
-
getAmount: BigNumber;
|
|
9
|
-
price: BigNumber;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Drawing method:
|
|
13
|
-
Substitute the minimum value to get the height of the center point, which is the bottom edge of the area chart. Substitute the maximum value to get the vertex of the area chart. The length of the bottom edge from the vertex is the price range.
|
|
14
|
-
|
|
15
|
-
Divide the total area into one hundred equal parts. Calculate each part on the basis of the previous part. Substitute the new area into the formula to get a new price. The difference from the previous price is the width of the rectangle. The area is divided by The width is the height of the rectangle, which is the ordinate.
|
|
16
|
-
|
|
17
|
-
First, calculate a series of points as a point set based on the rectangular accumulation method.
|
|
18
|
-
|
|
19
|
-
When the mouse hovers, the abscissa is the price. Find the closest price in the point set. Use this price as the end point and the center line as the starting point to get a subset of the point set. You can draw a line by combining the center line and the abscissa. The area of the trapezoid can be drawn.
|
|
20
|
-
|
|
21
|
-
Update: Taking Δl as the ordinate, Δl = (the difference between the quantity passed in from the previous point and the next point) * (the difference between the quantity obtained from the previous point and the next point)
|
|
22
|
-
*/
|
|
23
|
-
export declare type StatAreaPoint = {
|
|
24
|
-
area: BigNumber;
|
|
25
|
-
price: BigNumber;
|
|
26
|
-
middlePrice: BigNumber;
|
|
27
|
-
rectangleHeight: BigNumber;
|
|
28
|
-
};
|
|
29
|
-
export declare function usePoints({ params }: {
|
|
30
|
-
params: PmmModelParams;
|
|
31
|
-
}): {
|
|
32
|
-
leftStatAreaPoints: StatAreaPoint[];
|
|
33
|
-
rightStatAreaPoints: StatAreaPoint[];
|
|
34
|
-
maxLeftHeight: BigNumber;
|
|
35
|
-
maxRightHeight: BigNumber;
|
|
36
|
-
minXLN10: BigNumber;
|
|
37
|
-
maxXLN10: BigNumber;
|
|
38
|
-
middlePriceLN10: BigNumber;
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EmptyAddress = "0x0000000000000000000000000000000000000000";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ContractRequests, GraphQLRequests, TokenApi, ChainId } from '@dodoex/api';
|
|
2
|
-
export declare enum APIServiceKey {
|
|
3
|
-
routePrice = "routePrice",
|
|
4
|
-
fiatPrice = "fiatPrice",
|
|
5
|
-
bridgeRoutePrice = "bridgeRoutePrice",
|
|
6
|
-
bridgeEncode = "bridgeEncode",
|
|
7
|
-
bridgeCreateRoute = "bridgeCreateRoute"
|
|
8
|
-
}
|
|
9
|
-
export declare type APIServices = {
|
|
10
|
-
[key in APIServiceKey]: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const AppUrl = "https://app.dodoex.io";
|
|
13
|
-
export declare const getCGTokenListAPI: (chainId: ChainId) => any;
|
|
14
|
-
export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/v2/widget/getdodoroute";
|
|
15
|
-
export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api/current/batch";
|
|
16
|
-
export declare function getAPIService(key: APIServiceKey, serviceProps?: Partial<APIServices>): string;
|
|
17
|
-
export declare const contractRequests: ContractRequests;
|
|
18
|
-
export declare const tokenContractRequests: ContractRequests;
|
|
19
|
-
export declare const tokenApi: TokenApi;
|
|
20
|
-
export declare const graphQLRequests: GraphQLRequests;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { ReactComponent as ETHereumLogo } from '../assets/logo/networks/eth.svg';
|
|
3
|
-
export interface ChainListItem {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
logo: typeof ETHereumLogo;
|
|
6
|
-
name: string;
|
|
7
|
-
mainnet?: ChainId;
|
|
8
|
-
}
|
|
9
|
-
export declare const chainListMap: Map<ChainId, ChainListItem>;
|
|
10
|
-
export declare const isTestNet: (chainId: ChainId) => boolean;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export { etherTokenAddress, basicTokenMap } from '@dodoex/api';
|
|
3
|
-
export declare const rpcServerMap: {
|
|
4
|
-
[key in ChainId]: Array<string>;
|
|
5
|
-
};
|
|
6
|
-
export declare const getRpcSingleUrlMap: (newRpcServerMap?: {
|
|
7
|
-
[chainId: number]: string[];
|
|
8
|
-
} | undefined) => {
|
|
9
|
-
1: string;
|
|
10
|
-
5: string;
|
|
11
|
-
11155111: string;
|
|
12
|
-
56: string;
|
|
13
|
-
137: string;
|
|
14
|
-
42161: string;
|
|
15
|
-
1313161554: string;
|
|
16
|
-
66: string;
|
|
17
|
-
10: string;
|
|
18
|
-
43114: string;
|
|
19
|
-
1030: string;
|
|
20
|
-
8453: string;
|
|
21
|
-
59144: string;
|
|
22
|
-
534352: string;
|
|
23
|
-
169: string;
|
|
24
|
-
5000: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const platformIdMap: {
|
|
27
|
-
[key in ChainId]: string;
|
|
28
|
-
};
|
|
29
|
-
export declare const scanUrlDomainMap: {
|
|
30
|
-
[key in ChainId]: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const ThegraphKeyMap: {
|
|
33
|
-
[key in ChainId]: string;
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../hooks/Token';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
export declare function getAuthSwitchCache(): boolean;
|
|
4
|
-
export declare function setAuthSwitchCache(isAuto: boolean): void;
|
|
5
|
-
export interface LastTokenCache {
|
|
6
|
-
chainId: ChainId;
|
|
7
|
-
address: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function getLastToken(side: TokenInfo['side']): LastTokenCache | null;
|
|
10
|
-
export declare function setLastToken(side: TokenInfo['side'], token: LastTokenCache | null): void;
|
|
11
|
-
export declare function getLastSlippage(isBridge: boolean): number | null;
|
|
12
|
-
export declare function setLastSlippage(isBridge: boolean, slippage: number | string | null): void;
|
|
13
|
-
export declare const RiskOncePageLocalStorage: Record<string, string>;
|
|
14
|
-
export declare function getIsPoolEditRiskWarningOpen(): boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const AUTO_SWAP_SLIPPAGE_PROTECTION = "auto";
|
|
2
|
-
export declare const AUTO_LIQUIDITY_SLIPPAGE_PROTECTION = "0.1";
|
|
3
|
-
/**
|
|
4
|
-
* slippage protection
|
|
5
|
-
* First read out the reserve of the pool base and quote. If the slippage is 1%, then it is reserve * 0.99 and pass in func.
|
|
6
|
-
*/
|
|
7
|
-
export declare const SLIPPAGE_PROTECTION = 0.01;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const AUTO_SWAP_SLIPPAGE_PROTECTION = "auto";
|
|
2
|
-
export declare const PRICE_IMPACT_THRESHOLD = 15;
|
|
3
|
-
export declare const DEFAULT_SWAP_SLIPPAGE = 0.2;
|
|
4
|
-
export declare const MAX_SWAP_SLIPPAGE = 50;
|
|
5
|
-
export declare const DEFAULT_SWAP_DDL = 20;
|
|
6
|
-
export declare const MIN_GAS_LIMIT = 30000;
|
|
7
|
-
export declare const DEFAULT_BRIDGE_SLIPPAGE = 0.5;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const connectWalletBtn = "connect-wallet-btn";
|
|
2
|
-
export declare const swapAlertSelectTokenBtn = "swap-alert-select-token-btn";
|
|
3
|
-
export declare const swapReviewBtn = "swap-review-btn";
|
|
4
|
-
export declare const swapSelectTokenBtn = "swap-select-token-btn";
|
|
5
|
-
export declare const swapAlertEnterAmountBtn = "swap-alert-enter-amount-btn";
|
|
6
|
-
export declare const swapAlertFetchPriceBtn = "swap-alert-fetch-price-btn";
|
|
7
|
-
export declare const swapAlertInsufficientBalanceBtn = "swap-alert-insufficient-balance-btn";
|
|
8
|
-
export declare const numberInputWrapper = "number-input-wrapper";
|
|
9
|
-
export declare const tokenPickerWrapper = "token-picker-wrapper";
|
|
10
|
-
export declare const tokenPickerItem = "token-picker-item";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare enum WalletType {
|
|
3
|
-
INTEGRATOR = "integrator",
|
|
4
|
-
METAMASK = "metamask",
|
|
5
|
-
WALLET_CONNECT = "walletConnect"
|
|
6
|
-
}
|
|
7
|
-
export declare const WalletMap: {
|
|
8
|
-
metamask: {
|
|
9
|
-
name: string;
|
|
10
|
-
type: WalletType;
|
|
11
|
-
icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
link: string;
|
|
15
|
-
};
|
|
16
|
-
walletConnect: {
|
|
17
|
-
name: string;
|
|
18
|
-
type: WalletType;
|
|
19
|
-
icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
2
|
-
export interface BridgeOrderCreateParams {
|
|
3
|
-
fromChainId: number;
|
|
4
|
-
fromAmount: string;
|
|
5
|
-
fromTokenAddress: string;
|
|
6
|
-
toChainId: number;
|
|
7
|
-
toAmount: string;
|
|
8
|
-
toTokenAddress: string;
|
|
9
|
-
fromAddress: string;
|
|
10
|
-
toAddress: string;
|
|
11
|
-
slippage: number;
|
|
12
|
-
hash: string;
|
|
13
|
-
product: string | null;
|
|
14
|
-
extend: {
|
|
15
|
-
lifiBridge: BridgeRouteI['sourceRoute']['step']['tool'];
|
|
16
|
-
route: BridgeRouteI['sourceRoute'];
|
|
17
|
-
productParams: BridgeRouteI['productParams'];
|
|
18
|
-
encodeId: string;
|
|
19
|
-
source: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare function createBridgeOrder({ apikey, tx, route, bridgeCreateRouteAPI, encodeId, }: {
|
|
23
|
-
apikey?: string;
|
|
24
|
-
tx: string;
|
|
25
|
-
route: BridgeRouteI;
|
|
26
|
-
bridgeCreateRouteAPI: string;
|
|
27
|
-
encodeId: string;
|
|
28
|
-
}): Promise<any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BridgeTXRequest } from '../../components/Bridge/BridgeSummaryDialog';
|
|
2
|
-
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
3
|
-
import { Metadata } from '../Submission/types';
|
|
4
|
-
export default function useExecuteBridgeRoute({ route, bridgeOrderTxRequest, }: {
|
|
5
|
-
route?: BridgeRouteI;
|
|
6
|
-
bridgeOrderTxRequest?: BridgeTXRequest;
|
|
7
|
-
}): (metadata?: Metadata) => Promise<import("../Submission/types").ExecutionResult> | undefined;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../Token';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
export interface BridgeRouteI {
|
|
4
|
-
/** update */
|
|
5
|
-
key: string;
|
|
6
|
-
/** only one */
|
|
7
|
-
id: string;
|
|
8
|
-
fromToken: TokenInfo;
|
|
9
|
-
toToken: TokenInfo;
|
|
10
|
-
fromChainId: number;
|
|
11
|
-
toChainId: number;
|
|
12
|
-
/** from parameter */
|
|
13
|
-
fromAmount: string;
|
|
14
|
-
toTokenAmount: BigNumber;
|
|
15
|
-
/** from parameter */
|
|
16
|
-
fromAddress: string;
|
|
17
|
-
toAddress: string;
|
|
18
|
-
/** from parameter */
|
|
19
|
-
product: string | null;
|
|
20
|
-
slippage: number;
|
|
21
|
-
/** in seconds */
|
|
22
|
-
roundedRouteCostTime: number;
|
|
23
|
-
/** approve contract address */
|
|
24
|
-
spenderContractAddress: string;
|
|
25
|
-
/** USD */
|
|
26
|
-
feeUSD: string | null;
|
|
27
|
-
/** in seconds */
|
|
28
|
-
executionDuration: number | null;
|
|
29
|
-
/** one-click */
|
|
30
|
-
step: BridgeStep;
|
|
31
|
-
encodeParams: any;
|
|
32
|
-
productParams: any;
|
|
33
|
-
sourceRoute: {
|
|
34
|
-
toAmount: string;
|
|
35
|
-
feeUSD: string | null;
|
|
36
|
-
executionDuration: number | null;
|
|
37
|
-
step: {
|
|
38
|
-
tool: string;
|
|
39
|
-
toolDetails: {
|
|
40
|
-
logoURI: string | null;
|
|
41
|
-
name: string | null;
|
|
42
|
-
key: string | null;
|
|
43
|
-
};
|
|
44
|
-
type: string | null;
|
|
45
|
-
approvalAddress: string;
|
|
46
|
-
includedSteps: any;
|
|
47
|
-
};
|
|
48
|
-
fee: any;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export interface BridgeTokenI {
|
|
52
|
-
id: number;
|
|
53
|
-
symbol: string;
|
|
54
|
-
name: string;
|
|
55
|
-
address: string;
|
|
56
|
-
decimals: number;
|
|
57
|
-
logoUrl: string;
|
|
58
|
-
chainId: number;
|
|
59
|
-
stableCurrencyToken: boolean;
|
|
60
|
-
mainCurrencyToken: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface BridgeStepTool {
|
|
63
|
-
name: string;
|
|
64
|
-
logoURI: string;
|
|
65
|
-
}
|
|
66
|
-
export interface BridgeStepEstimate {
|
|
67
|
-
fromToken: Pick<BridgeTokenI, 'address' | 'symbol' | 'chainId' | 'decimals'>;
|
|
68
|
-
toToken: Pick<BridgeTokenI, 'address' | 'symbol' | 'chainId' | 'decimals'>;
|
|
69
|
-
fromTokenAmount: BigNumber;
|
|
70
|
-
toTokenAmount: BigNumber;
|
|
71
|
-
}
|
|
72
|
-
export interface BridgeStep {
|
|
73
|
-
tool: string;
|
|
74
|
-
toolDetails: BridgeStepTool;
|
|
75
|
-
type: string | null;
|
|
76
|
-
includedSteps: Array<{
|
|
77
|
-
id: string;
|
|
78
|
-
/**
|
|
79
|
-
* bridge or swap
|
|
80
|
-
*/
|
|
81
|
-
tool: string;
|
|
82
|
-
toolDetails: BridgeStepTool;
|
|
83
|
-
type: string;
|
|
84
|
-
estimate: BridgeStepEstimate;
|
|
85
|
-
}>;
|
|
86
|
-
}
|
|
87
|
-
export declare enum RoutePriceStatus {
|
|
88
|
-
Initial = "Initial",
|
|
89
|
-
Loading = "Loading",
|
|
90
|
-
Failed = "Failed",
|
|
91
|
-
Success = "Success"
|
|
92
|
-
}
|
|
93
|
-
export interface FetchRoutePrice {
|
|
94
|
-
fromToken: TokenInfo | null;
|
|
95
|
-
toToken: TokenInfo | null;
|
|
96
|
-
fromAmount: string;
|
|
97
|
-
}
|
|
98
|
-
export declare function useFetchRoutePriceBridge({ toToken, fromToken, fromAmount, }: FetchRoutePrice): {
|
|
99
|
-
status: RoutePriceStatus;
|
|
100
|
-
refetch: () => Promise<void>;
|
|
101
|
-
bridgeRouteList: BridgeRouteI[];
|
|
102
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { BridgeRouteI } from './useFetchRoutePriceBridge';
|
|
4
|
-
import { BridgeTXRequest } from '../../components/Bridge/BridgeSummaryDialog';
|
|
5
|
-
export declare function useSendRoute(): {
|
|
6
|
-
apikey: string | undefined;
|
|
7
|
-
sendRouteLoading: boolean;
|
|
8
|
-
sendRouteError: string;
|
|
9
|
-
setSendRouteError: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
10
|
-
bridgeOrderTxRequest: BridgeTXRequest | undefined;
|
|
11
|
-
handleClickSend: ({ selectedRoute, fromEtherTokenBalance, goNext, }: {
|
|
12
|
-
selectedRoute?: BridgeRouteI | undefined;
|
|
13
|
-
fromEtherTokenBalance: BigNumber | null;
|
|
14
|
-
goNext: () => void;
|
|
15
|
-
}) => Promise<void>;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useSwitchBridgeOrSwapSlippage(isBridge: boolean | undefined): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import { Actions, Connector } from '@web3-react/types';
|
|
3
|
-
export default class JsonRpcConnector extends Connector {
|
|
4
|
-
customProvider: JsonRpcProvider;
|
|
5
|
-
constructor(actions: Actions, customProvider: JsonRpcProvider, onError?: (error: Error) => void);
|
|
6
|
-
private activateAccounts;
|
|
7
|
-
connectEagerly(): Promise<void>;
|
|
8
|
-
activate(): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
/**
|
|
3
|
-
* switch wallet chain
|
|
4
|
-
* @see https://docs.metamask.io/guide/rpc-api.html#usage-with-wallet-switchethereumchain
|
|
5
|
-
*/
|
|
6
|
-
export declare function registerNetworkWithMetamask({ chainId, provider, }: {
|
|
7
|
-
chainId: ChainId;
|
|
8
|
-
provider?: any;
|
|
9
|
-
}): Promise<boolean>;
|
|
10
|
-
export declare function useSwitchChain(chainId?: ChainId): (() => Promise<boolean>) | undefined;
|