@dodoex/widgets 3.0.0-beta.3 → 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/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/helper-CT7gzva6.cjs +0 -1
- package/dist/cjs/helper-DbNa5407.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-385J8FnP.cjs +0 -58
- 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-4qnGWy2s.cjs +0 -58
- package/dist/cjs/index-5eca89d2.cjs +0 -50
- package/dist/cjs/index-64af8ffd.cjs +0 -45
- package/dist/cjs/index-Btn_JJqA.cjs +0 -78
- package/dist/cjs/index-C7VFgrL1.cjs +0 -12
- package/dist/cjs/index-DrSpvsIR.cjs +0 -78
- package/dist/cjs/index-Dvm2UvHH.cjs +0 -12
- 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-bG8uL7Ic.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/lottie-tdKuZHBg.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-7cc29594.js +0 -1
- package/dist/helper-BpKL-WX0.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-Ch7GewG2.js +0 -58
- package/dist/index-CyP7hQDk.js +0 -12
- package/dist/index-D9EItTW1.js +0 -58
- package/dist/index-DDPHAzsy.js +0 -78
- package/dist/index-DhQe6anS.js +0 -12
- package/dist/index-DksR3nfe.js +0 -78
- 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-CljBQMvS.js +0 -1
- package/dist/lottie-CvNBrPAN.js +0 -1
- package/dist/lottie-b4708423.js +0 -1
- package/dist/lottie-baaed8fa.js +0 -1
- package/dist/lottie-d6631244.js +0 -1
- package/dist/lottie-ed5a9dfd.js +0 -1
- package/dist/lottie-f76894b7.js +0 -1
- package/dist/no-found-89a3b4af-763d58f5.js +0 -1
- package/dist/no-result-01c60834-7921d2fa.js +0 -1
- package/dist/src/components/AddressWithLinkAndCopy.d.ts +0 -22
- package/dist/src/components/AutoButton.d.ts +0 -7
- package/dist/src/components/Bridge/BridgeRouteShortCard.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -5
- package/dist/src/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -18
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -16
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
- package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -14
- package/dist/src/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -10
- package/dist/src/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -4
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -20
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -12
- package/dist/src/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -11
- package/dist/src/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
- package/dist/src/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -8
- package/dist/src/components/Confirm.d.ts +0 -15
- package/dist/src/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +0 -8
- package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
- package/dist/src/components/CopyTooltipToast.d.ts +0 -9
- package/dist/src/components/DataCard/DataCardGroup.d.ts +0 -9
- package/dist/src/components/Dialog.d.ts +0 -1
- package/dist/src/components/ErrorMessageDialog.d.ts +0 -5
- package/dist/src/components/GoBack.d.ts +0 -6
- package/dist/src/components/HowItWorks.d.ts +0 -11
- package/dist/src/components/List/EmptyList.d.ts +0 -7
- package/dist/src/components/List/FailedList.d.ts +0 -6
- package/dist/src/components/RiskDialog.d.ts +0 -7
- package/dist/src/components/SelectChain.d.ts +0 -12
- package/dist/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
- package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +0 -6
- package/dist/src/components/Swap/components/Dialog.d.ts +0 -15
- package/dist/src/components/Swap/components/ReviewDialog.d.ts +0 -21
- package/dist/src/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -8
- package/dist/src/components/Swap/components/SettingsDialog/index.d.ts +0 -7
- package/dist/src/components/Swap/components/SwitchBox.d.ts +0 -5
- package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +0 -11
- package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +0 -16
- package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -7
- package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
- package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -18
- package/dist/src/components/Swap/components/TokenCard/index.d.ts +0 -36
- package/dist/src/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -10
- package/dist/src/components/Swap/index.d.ts +0 -7
- package/dist/src/components/SwitchChainDialog/index.d.ts +0 -7
- package/dist/src/components/Token/TokenItem.d.ts +0 -9
- package/dist/src/components/TokenLogo.d.ts +0 -18
- package/dist/src/components/TokenLogoPair.d.ts +0 -17
- package/dist/src/components/TokenLogoSimple.d.ts +0 -13
- package/dist/src/components/TokenPicker/PopularToken.d.ts +0 -7
- package/dist/src/components/TokenPicker/SelectChainItem.d.ts +0 -7
- package/dist/src/components/TokenPicker/TokenItem.d.ts +0 -10
- package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -2
- package/dist/src/components/TokenPicker/index.d.ts +0 -24
- package/dist/src/components/TokenStatusButton.d.ts +0 -7
- package/dist/src/components/Tooltip/QuestionTooltip.d.ts +0 -3
- package/dist/src/components/Tooltip/index.d.ts +0 -1
- package/dist/src/components/Widget/i18n.d.ts +0 -9
- package/dist/src/components/Widget/index.d.ts +0 -33
- package/dist/src/components/WidgetConfirm.d.ts +0 -15
- package/dist/src/components/WidgetContainer.d.ts +0 -3
- package/dist/src/components/WidgetDialog.d.ts +0 -15
- package/dist/src/components/WithExecutionDialog/index.d.ts +0 -5
- package/dist/src/components/chart/components/BaseButton.d.ts +0 -5
- package/dist/src/components/chart/components/Display.d.ts +0 -9
- package/dist/src/components/chart/components/Input.d.ts +0 -7
- package/dist/src/components/chart/components/NumberInput.d.ts +0 -6
- package/dist/src/components/chart/components/TogglePriceIcon.d.ts +0 -8
- package/dist/src/components/chart/components/TokenLogo.d.ts +0 -5
- package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +0 -30
- package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
- package/dist/src/components/chart/depth-chart/helper.d.ts +0 -125
- package/dist/src/components/chart/depth-chart/index.d.ts +0 -18
- package/dist/src/components/chart/depth-chart/index.styled.d.ts +0 -29
- package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
- package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
- package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
- package/dist/src/components/chart/depth-chart/utils.d.ts +0 -19
- package/dist/src/components/chart/depth-chart-v2/index.d.ts +0 -10
- package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +0 -15
- package/dist/src/components/chart/hooks/usePreventWheel.d.ts +0 -9
- package/dist/src/components/chart/i18n.d.ts +0 -1
- package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -28
- package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
- package/dist/src/components/chart/liquidity-chart/helper.d.ts +0 -47
- package/dist/src/components/chart/liquidity-chart/index.d.ts +0 -17
- package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +0 -9
- package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +0 -8
- package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -10
- package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -18
- package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -6
- package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +0 -39
- package/dist/src/components/chart/utils.d.ts +0 -3
- package/dist/src/constants/address.d.ts +0 -1
- package/dist/src/constants/api.d.ts +0 -20
- package/dist/src/constants/chainList.d.ts +0 -10
- package/dist/src/constants/chains.d.ts +0 -34
- package/dist/src/constants/locales.d.ts +0 -3
- package/dist/src/constants/localstorage.d.ts +0 -14
- package/dist/src/constants/pool.d.ts +0 -7
- package/dist/src/constants/sessionStorage.d.ts +0 -2
- package/dist/src/constants/swap.d.ts +0 -7
- package/dist/src/constants/testId.d.ts +0 -10
- package/dist/src/constants/token.d.ts +0 -2
- package/dist/src/constants/tokenList.d.ts +0 -9
- package/dist/src/constants/wallet.d.ts +0 -23
- package/dist/src/hooks/Bridge/createBridgeOrder.d.ts +0 -28
- package/dist/src/hooks/Bridge/index.d.ts +0 -4
- package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
- package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
- package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
- package/dist/src/hooks/Bridge/useSendRoute.d.ts +0 -16
- package/dist/src/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
- package/dist/src/hooks/Chain/useChainList.d.ts +0 -2
- package/dist/src/hooks/Chain/useChainList.test.d.ts +0 -1
- package/dist/src/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/src/hooks/ConnectWallet/index.d.ts +0 -3
- package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -2
- package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +0 -10
- package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +0 -6
- package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/src/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +0 -2
- package/dist/src/hooks/Submission/index.d.ts +0 -10
- package/dist/src/hooks/Submission/spec.d.ts +0 -56
- package/dist/src/hooks/Submission/types.d.ts +0 -79
- package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -15
- package/dist/src/hooks/Submission/useExecution.d.ts +0 -32
- package/dist/src/hooks/Submission/useInflights.d.ts +0 -5
- package/dist/src/hooks/Swap/index.d.ts +0 -5
- package/dist/src/hooks/Swap/useExecuteSwap.d.ts +0 -12
- package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
- package/dist/src/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
- package/dist/src/hooks/Swap/useFetchRoutePrice.d.ts +0 -37
- package/dist/src/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
- package/dist/src/hooks/Swap/useInitDefaultToken.d.ts +0 -10
- package/dist/src/hooks/Swap/useMarginAmount.d.ts +0 -8
- package/dist/src/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- package/dist/src/hooks/Swap/usePriceTimer.d.ts +0 -5
- package/dist/src/hooks/Swap/useSlippageLimit.d.ts +0 -2
- package/dist/src/hooks/Token/index.d.ts +0 -4
- package/dist/src/hooks/Token/type.d.ts +0 -25
- package/dist/src/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
- package/dist/src/hooks/Token/useFetchTokenAllowance.d.ts +0 -13
- package/dist/src/hooks/Token/useFindTokenByAddress.d.ts +0 -1
- package/dist/src/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetAllowance.d.ts +0 -3
- package/dist/src/hooks/Token/useGetAllowance.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetBalance.d.ts +0 -2
- package/dist/src/hooks/Token/useGetBalance.test.d.ts +0 -1
- package/dist/src/hooks/Token/useGetCGTokenList.d.ts +0 -15
- package/dist/src/hooks/Token/useGetTokenStatus.d.ts +0 -13
- package/dist/src/hooks/Token/useGetTokenStatus.test.d.ts +0 -1
- package/dist/src/hooks/Token/useInitTokenList.d.ts +0 -6
- package/dist/src/hooks/Token/useSelectChainList.d.ts +0 -7
- package/dist/src/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/src/hooks/Token/useTokenList.d.ts +0 -36
- package/dist/src/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
- package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
- package/dist/src/hooks/Token/useTokenStatus.d.ts +0 -20
- package/dist/src/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/src/hooks/Widget/useInitPropsToRedux.d.ts +0 -2
- package/dist/src/hooks/contract/abis/erc20ABI.d.ts +0 -30
- package/dist/src/hooks/contract/abis/erc20Helper.d.ts +0 -16
- package/dist/src/hooks/contract/abis/multicallABI.d.ts +0 -34
- package/dist/src/hooks/contract/batch.d.ts +0 -18
- package/dist/src/hooks/contract/contractConfig.d.ts +0 -9
- package/dist/src/hooks/contract/index.d.ts +0 -3
- package/dist/src/hooks/contract/provider.d.ts +0 -2
- package/dist/src/hooks/contract/token.d.ts +0 -10
- package/dist/src/hooks/contract/useFetchBlockNumber.d.ts +0 -3
- package/dist/src/hooks/contract/useFetchETHBalance.d.ts +0 -21
- package/dist/src/hooks/contract/useFetchTokens.d.ts +0 -14
- package/dist/src/hooks/contract/useMultiContract.d.ts +0 -14
- package/dist/src/hooks/contract/wallet.d.ts +0 -16
- package/dist/src/hooks/setting/useDefaultSlippage.d.ts +0 -4
- package/dist/src/hooks/setting/useGetAPIService.d.ts +0 -2
- package/dist/src/hooks/setting/useSetAutoSlippage.d.ts +0 -13
- package/dist/src/hooks/style/useWidgetDevice.d.ts +0 -6
- package/dist/src/hooks/usePrevious.d.ts +0 -1
- package/dist/src/index.d.ts +0 -12
- package/dist/src/providers/GlobalConfigContext.d.ts +0 -21
- package/dist/src/providers/i18n.d.ts +0 -9
- package/dist/src/providers/queryClient/index.d.ts +0 -2
- package/dist/src/providers/queryClient.d.ts +0 -2
- package/dist/src/router/index.d.ts +0 -9
- package/dist/src/router/types.d.ts +0 -35
- package/dist/src/store/actions/globals.d.ts +0 -9
- package/dist/src/store/actions/index.d.ts +0 -4
- package/dist/src/store/actions/settings.d.ts +0 -6
- package/dist/src/store/actions/token.d.ts +0 -8
- package/dist/src/store/actions/wallet.d.ts +0 -7
- package/dist/src/store/index.d.ts +0 -12
- package/dist/src/store/reducers/globals.d.ts +0 -23
- package/dist/src/store/reducers/index.d.ts +0 -17
- package/dist/src/store/reducers/settings.d.ts +0 -13
- package/dist/src/store/reducers/token.d.ts +0 -24
- package/dist/src/store/reducers/wallet.d.ts +0 -14
- package/dist/src/store/selectors/globals.d.ts +0 -7
- package/dist/src/store/selectors/settings.d.ts +0 -4
- package/dist/src/store/selectors/token.d.ts +0 -9
- package/dist/src/store/selectors/wallet.d.ts +0 -7
- package/dist/src/utils/address.d.ts +0 -15
- package/dist/src/utils/address.test.d.ts +0 -1
- package/dist/src/utils/bytes.d.ts +0 -3
- package/dist/src/utils/chains.d.ts +0 -2
- package/dist/src/utils/chains.test.d.ts +0 -1
- package/dist/src/utils/formatter.d.ts +0 -48
- package/dist/src/utils/formatter.test.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -5
- package/dist/src/utils/time.d.ts +0 -9
- package/dist/src/utils/time.test.d.ts +0 -1
- package/dist/src/utils/token.d.ts +0 -30
- package/dist/src/utils/token.test.d.ts +0 -1
- package/dist/src/utils/utils.d.ts +0 -1
- package/dist/src/utils/wallet.d.ts +0 -8
- package/dist/src/utils/wallet.test.d.ts +0 -1
- package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -7
- package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
- package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -8
- package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -9
- package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -8
- package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +0 -13
- package/dist/src/widgets/MiningWidget/helper.d.ts +0 -2
- package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -4
- package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -17
- package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
- package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -5
- package/dist/src/widgets/MiningWidget/types.d.ts +0 -58
- package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -78
- package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +0 -35
- package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -24
- package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -290
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
- package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -11
- package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -3
- package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -48
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -4
- package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -10
- package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -18
- package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -46
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -33
- package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +0 -14
- package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -17
- package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
- package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
- package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
- package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
- package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -48
- package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
- package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
- package/dist/src/widgets/PoolWidget/index.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +0 -8
- package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +0 -5
- package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +0 -17
- package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +0 -9
- package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +0 -58
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +0 -15
- package/dist/src/widgets/PoolWidget/utils.d.ts +0 -17
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
export declare function TokenLogoCollapse({ token, onClick, showChainLogo, readonly, }: {
|
|
4
|
-
token?: TokenInfo | null;
|
|
5
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
6
|
-
showChainLogo?: boolean;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TokenPickerProps } from '../../../TokenPicker';
|
|
3
|
-
import { DialogProps } from '../Dialog';
|
|
4
|
-
export declare function TokenPickerDialog({ open, title, value, onClose, occupiedAddrs, occupiedChainId, onTokenChange, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, chainId, }: {
|
|
5
|
-
open: boolean;
|
|
6
|
-
title?: React.ReactNode | string;
|
|
7
|
-
occupiedAddrs?: string[];
|
|
8
|
-
occupiedChainId?: TokenPickerProps['occupiedChainId'];
|
|
9
|
-
onClose: DialogProps['onClose'];
|
|
10
|
-
value?: TokenPickerProps['value'];
|
|
11
|
-
onTokenChange: TokenPickerProps['onChange'];
|
|
12
|
-
side?: TokenPickerProps['side'];
|
|
13
|
-
defaultLoadBalance?: boolean;
|
|
14
|
-
multiple?: TokenPickerProps['multiple'];
|
|
15
|
-
searchPlaceholder?: TokenPickerProps['searchPlaceholder'];
|
|
16
|
-
searchOtherAddress?: TokenPickerProps['searchOtherAddress'];
|
|
17
|
-
chainId?: TokenPickerProps['chainId'];
|
|
18
|
-
}): JSX.Element;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
4
|
-
import { TokenPickerProps } from '../../../TokenPicker';
|
|
5
|
-
import BigNumber from 'bignumber.js';
|
|
6
|
-
import { ChainId } from '@dodoex/api';
|
|
7
|
-
export interface TokenCardProps {
|
|
8
|
-
amt: string;
|
|
9
|
-
fiatPriceTxt?: string | React.ReactNode;
|
|
10
|
-
sx?: BoxProps['sx'];
|
|
11
|
-
readOnly?: boolean;
|
|
12
|
-
showMaxBtn?: boolean;
|
|
13
|
-
occupiedAddrs?: string[];
|
|
14
|
-
occupiedChainId?: TokenPickerProps['occupiedChainId'];
|
|
15
|
-
onMaxClick?: (max: string) => void;
|
|
16
|
-
token?: TokenInfo | null;
|
|
17
|
-
onInputChange?: (v: string) => void;
|
|
18
|
-
onInputFocus?: () => void;
|
|
19
|
-
onTokenClick?: () => void;
|
|
20
|
-
onTokenChange?: (token: TokenInfo, isOccupied: boolean) => void;
|
|
21
|
-
side?: TokenPickerProps['side'];
|
|
22
|
-
showChainLogo?: boolean;
|
|
23
|
-
onlyCurrentChain?: boolean;
|
|
24
|
-
defaultLoadBalance?: boolean;
|
|
25
|
-
overrideBalance?: BigNumber | null;
|
|
26
|
-
overrideBalanceLoading?: boolean;
|
|
27
|
-
balanceText?: React.ReactNode;
|
|
28
|
-
showPercentage?: boolean;
|
|
29
|
-
inputReadonlyTooltip?: React.ReactNode;
|
|
30
|
-
inputTypography?: string;
|
|
31
|
-
chainId?: ChainId;
|
|
32
|
-
hideToken?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare function CardPlus(): JSX.Element;
|
|
35
|
-
export declare function CardPlusConnected(): JSX.Element;
|
|
36
|
-
export declare function TokenCard({ sx, amt, token, readOnly, showMaxBtn, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, onlyCurrentChain, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, chainId, hideToken, }: TokenCardProps): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
-
import { RoutePriceStatus } from '../../../hooks/Swap';
|
|
4
|
-
export declare function TokenPairPriceWithToggle({ toToken, fromToken, priceStatus, pricePerToToken, pricePerFromToken, }: {
|
|
5
|
-
toToken: TokenInfo | null;
|
|
6
|
-
fromToken: TokenInfo | null;
|
|
7
|
-
priceStatus: RoutePriceStatus;
|
|
8
|
-
pricePerToToken: number | null;
|
|
9
|
-
pricePerFromToken: number | null;
|
|
10
|
-
}): JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GetAutoSlippage } from '../../hooks/setting/useSetAutoSlippage';
|
|
3
|
-
export interface SwapProps {
|
|
4
|
-
/** Higher priority setting slippage */
|
|
5
|
-
getAutoSlippage?: GetAutoSlippage;
|
|
6
|
-
}
|
|
7
|
-
export declare function Swap({ getAutoSlippage }?: SwapProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function TokenItem({ chainId, address, showName, size, offset, rightContent, }: {
|
|
3
|
-
chainId: number;
|
|
4
|
-
address: string;
|
|
5
|
-
showName: string;
|
|
6
|
-
size: number;
|
|
7
|
-
offset?: number;
|
|
8
|
-
rightContent?: React.ReactNode;
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
import { TokenInfo } from '../hooks/Token';
|
|
4
|
-
export interface TokenLogoProps {
|
|
5
|
-
address?: string;
|
|
6
|
-
token?: TokenInfo;
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
marginRight?: number;
|
|
10
|
-
url?: string;
|
|
11
|
-
zIndex?: number;
|
|
12
|
-
cross?: boolean;
|
|
13
|
-
sx?: BoxProps['sx'];
|
|
14
|
-
chainId?: number;
|
|
15
|
-
noShowChain?: boolean;
|
|
16
|
-
noBorder?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export default function TokenLogo({ width, height, marginRight, url, zIndex, cross, address: addressProps, token: tokenProps, sx, chainId, noShowChain, noBorder, }: TokenLogoProps): React.ReactElement;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
export interface TokenLogoPairProps {
|
|
4
|
-
tokens: Array<{
|
|
5
|
-
address?: string;
|
|
6
|
-
logoURI?: string;
|
|
7
|
-
} | string>;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
gap?: number;
|
|
11
|
-
cross?: boolean;
|
|
12
|
-
mr?: number;
|
|
13
|
-
chainId?: number;
|
|
14
|
-
showChainLogo?: boolean;
|
|
15
|
-
sx?: BoxProps['sx'];
|
|
16
|
-
}
|
|
17
|
-
export declare function TokenLogoPair({ tokens, width, height, gap, cross, mr, chainId, showChainLogo, sx, }: TokenLogoPairProps): JSX.Element | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@dodoex/components';
|
|
3
|
-
export default function TokenLogoSimple({ address, url, symbol, width, height, marginRight, zIndex, sx, onLoadedLogoUrl, }: {
|
|
4
|
-
address: string | undefined;
|
|
5
|
-
url: string;
|
|
6
|
-
symbol?: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
marginRight?: number;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
sx?: BoxProps['sx'];
|
|
12
|
-
onLoadedLogoUrl?: (isLoaded: boolean) => void;
|
|
13
|
-
}): JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { TokenInfo } from './../../hooks/Token';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
export default function TokenItem({ token, disabled, style, balance: balanceBigNumber, onClick, }: {
|
|
5
|
-
token: TokenInfo;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
balance?: BigNumber;
|
|
9
|
-
onClick: () => void;
|
|
10
|
-
}): JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TokenInfo } from '../../hooks/Token';
|
|
3
|
-
import { ChainId } from '@dodoex/api';
|
|
4
|
-
export interface TokenPickerProps {
|
|
5
|
-
chainId?: ChainId;
|
|
6
|
-
value?: TokenInfo | null | Array<TokenInfo>;
|
|
7
|
-
onChange: (token: TokenInfo | Array<TokenInfo>, isOccupied: boolean) => void;
|
|
8
|
-
/** token pair usage */
|
|
9
|
-
occupiedAddrs?: string[];
|
|
10
|
-
/** token pair usage */
|
|
11
|
-
occupiedChainId?: ChainId;
|
|
12
|
-
/** hide props */
|
|
13
|
-
hiddenAddrs?: string[];
|
|
14
|
-
/** only show props */
|
|
15
|
-
showAddrs?: string[];
|
|
16
|
-
visible?: boolean;
|
|
17
|
-
side?: 'from' | 'to';
|
|
18
|
-
defaultLoadBalance?: boolean;
|
|
19
|
-
multiple?: boolean;
|
|
20
|
-
searchPlaceholder?: string;
|
|
21
|
-
/** like search pool address */
|
|
22
|
-
searchOtherAddress?: (address: string) => Promise<JSX.Element | null>;
|
|
23
|
-
}
|
|
24
|
-
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, }: TokenPickerProps): JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from '@dodoex/components';
|
|
3
|
-
import { useTokenStatus } from '../hooks/Token/useTokenStatus';
|
|
4
|
-
export default function TokenStatusButton({ status, children, buttonProps, }: React.PropsWithChildren<{
|
|
5
|
-
status: ReturnType<typeof useTokenStatus>;
|
|
6
|
-
buttonProps?: ButtonProps;
|
|
7
|
-
}>): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as QuestionTooltip } from './QuestionTooltip';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SupportedLang } from '../../constants/locales';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface LangProviderProps {
|
|
4
|
-
locale?: SupportedLang;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function loadI18(locale?: SupportedLang): Promise<void>;
|
|
8
|
-
export declare function LangProvider({ locale, children }: LangProviderProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { PaletteMode, ThemeOptions } from '@dodoex/components';
|
|
3
|
-
import { SupportedLang } from '../../constants/locales';
|
|
4
|
-
import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
|
|
5
|
-
import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
|
|
6
|
-
import { ExecutionProps } from '../../hooks/Submission';
|
|
7
|
-
import { ChainId } from '@dodoex/api';
|
|
8
|
-
import { DefaultTokenInfo } from '../../hooks/Token/type';
|
|
9
|
-
import { APIServices } from '../../constants/api';
|
|
10
|
-
import { SwapProps } from '../Swap';
|
|
11
|
-
import { GlobalFunctionConfig } from '../../providers/GlobalConfigContext';
|
|
12
|
-
export declare const WIDGET_CLASS_NAME = "dodo-widget-container";
|
|
13
|
-
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps, GlobalFunctionConfig, SwapProps {
|
|
14
|
-
apikey?: string;
|
|
15
|
-
theme?: ThemeOptions;
|
|
16
|
-
colorMode?: PaletteMode;
|
|
17
|
-
defaultChainId?: ChainId;
|
|
18
|
-
width?: string | number;
|
|
19
|
-
height?: string | number;
|
|
20
|
-
feeRate?: number;
|
|
21
|
-
rebateTo?: string;
|
|
22
|
-
defaultFromToken?: DefaultTokenInfo;
|
|
23
|
-
defaultToToken?: DefaultTokenInfo;
|
|
24
|
-
locale?: SupportedLang;
|
|
25
|
-
swapSlippage?: number;
|
|
26
|
-
bridgeSlippage?: number;
|
|
27
|
-
apiServices?: Partial<APIServices>;
|
|
28
|
-
crossChain?: boolean;
|
|
29
|
-
noPowerBy?: boolean;
|
|
30
|
-
onProviderChanged?: (provider?: any) => void;
|
|
31
|
-
gotoBuyToken?: GlobalFunctionConfig['gotoBuyToken'];
|
|
32
|
-
}
|
|
33
|
-
export declare function Widget(props: PropsWithChildren<WidgetProps>): JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function WidgetConfirm({ open, onClose, title, children, singleBtn, danger, singleBtnText, cancelText, confirmText, disabledConfirm, confirmLoading, isManualClose, onConfirm, }: React.PropsWithChildren<{
|
|
3
|
-
open: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
singleBtn?: boolean;
|
|
7
|
-
danger?: boolean;
|
|
8
|
-
singleBtnText?: React.ReactNode;
|
|
9
|
-
cancelText?: React.ReactNode;
|
|
10
|
-
confirmText?: React.ReactNode;
|
|
11
|
-
disabledConfirm?: boolean;
|
|
12
|
-
confirmLoading?: boolean;
|
|
13
|
-
isManualClose?: boolean;
|
|
14
|
-
onConfirm?: () => void;
|
|
15
|
-
}>): JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface WidgetDialogProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
afterClose?: () => void;
|
|
6
|
-
title?: string | React.ReactNode;
|
|
7
|
-
titleCenter?: boolean;
|
|
8
|
-
rightSlot?: React.ReactNode;
|
|
9
|
-
canBack?: boolean;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
width?: number | string;
|
|
12
|
-
height?: number | string;
|
|
13
|
-
testId?: string;
|
|
14
|
-
}
|
|
15
|
-
export default function WidgetDialog({ open, onClose, afterClose, title, titleCenter, rightSlot, canBack, children, width, height, testId, }: WidgetDialogProps): JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
display?: CSSProperties['display'];
|
|
4
|
-
hidden?: boolean;
|
|
5
|
-
children?: JSX.Element | Array<JSX.Element | undefined> | string | undefined;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
};
|
|
8
|
-
export declare const Display: React.MemoExoticComponent<({ display, hidden, children, style, }: Props) => JSX.Element>;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
error?: boolean | undefined;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ISwtichBtn extends React.HTMLProps<HTMLInputElement> {
|
|
3
|
-
shouldSwitch?: boolean;
|
|
4
|
-
variant?: 'dark' | 'light';
|
|
5
|
-
}
|
|
6
|
-
export declare const TogglePriceIcon: ({ shouldSwitch, variant }: ISwtichBtn) => JSX.Element;
|
|
7
|
-
export declare const ToggleIconWithoutBg: () => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { BaseMinAndZoomMultiples } from './helper';
|
|
5
|
-
export declare const bgColor = "rgba(38, 39, 41, 0.3)";
|
|
6
|
-
export interface ColorMap {
|
|
7
|
-
grid?: string;
|
|
8
|
-
midPriceLine?: string;
|
|
9
|
-
leftBg?: (string | number)[];
|
|
10
|
-
leftLine?: string;
|
|
11
|
-
leftColor?: string;
|
|
12
|
-
rightBg?: (string | number)[];
|
|
13
|
-
rightLine?: string;
|
|
14
|
-
rightColor?: string;
|
|
15
|
-
tooltipBg?: string;
|
|
16
|
-
tooltipColor?: 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
|
-
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
27
|
-
colorMap?: ColorMap;
|
|
28
|
-
setBaseMinAndZoomMultiples: React.Dispatch<React.SetStateAction<BaseMinAndZoomMultiples>>;
|
|
29
|
-
};
|
|
30
|
-
export declare function DepthChartKonva({ width, height, midPrice, pmmModel, params, baseTokenSymbol, quoteTokenSymbol, baseMinAndZoomMultiples, colorMap, setBaseMinAndZoomMultiples, }: Props): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import Konva from 'konva';
|
|
3
|
-
import { PMMModel } from '@dodoex/api';
|
|
4
|
-
export declare function colorRgb(str: string): string;
|
|
5
|
-
export declare type EvaluatedPoint = {
|
|
6
|
-
side: 'bid' | 'ask' | 'no-one';
|
|
7
|
-
vert: BigNumber;
|
|
8
|
-
base: BigNumber;
|
|
9
|
-
quote: BigNumber;
|
|
10
|
-
};
|
|
11
|
-
export declare type BaseMinAndZoomMultiples = {
|
|
12
|
-
baseMin: BigNumber;
|
|
13
|
-
zoomMultiples: number;
|
|
14
|
-
/** Price impact point active display hover */
|
|
15
|
-
targetMarginPriceX: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function evalPoint({ val, model, }: {
|
|
18
|
-
val: BigNumber;
|
|
19
|
-
model: PMMModel;
|
|
20
|
-
midPrice: BigNumber;
|
|
21
|
-
}): EvaluatedPoint;
|
|
22
|
-
/**
|
|
23
|
-
* Returns two vertical coordinates, buyBaseVert on the left and sellBaseVert on the right.
|
|
24
|
-
* @param param0
|
|
25
|
-
*/
|
|
26
|
-
export declare function computeBaseVert({ midPrice, q, q0, pmmModel, }: {
|
|
27
|
-
midPrice: BigNumber;
|
|
28
|
-
q: number;
|
|
29
|
-
q0: number;
|
|
30
|
-
pmmModel: PMMModel;
|
|
31
|
-
}): {
|
|
32
|
-
buyBaseVert: BigNumber;
|
|
33
|
-
sellBaseVert: BigNumber;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* // 1000/800 The price represented by one pixel
|
|
37
|
-
// Maximum value on the right side of the middle price = middle price * 10 = middle price * 10^1
|
|
38
|
-
// Calculate the x-axis coordinate (price): middle price*10^(xPortion*x)+middle price; x is the number of equal parts that divide the right half into 50 parts
|
|
39
|
-
* @param chartWidth icon width
|
|
40
|
-
* @param zoomMultiples magnification factors
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
export declare function computeXPortion(chartWidth: number, zoomMultiples?: number): BigNumber;
|
|
44
|
-
export declare function updateTooltip({ tooltip, x, chartWidth, chartHeight, buyBaseVert, sellBaseVert, pmmModel, midPrice, baseTokenSymbol, quoteTokenSymbol, t, baseMinAndZoomMultiples, isHover, color, leftColor, rightColor, }: {
|
|
45
|
-
x: number;
|
|
46
|
-
tooltip: Konva.Layer;
|
|
47
|
-
chartWidth: number;
|
|
48
|
-
chartHeight: number;
|
|
49
|
-
buyBaseVert: BigNumber;
|
|
50
|
-
sellBaseVert: BigNumber;
|
|
51
|
-
pmmModel: PMMModel;
|
|
52
|
-
midPrice: BigNumber;
|
|
53
|
-
baseTokenSymbol: string;
|
|
54
|
-
quoteTokenSymbol: string;
|
|
55
|
-
t: any;
|
|
56
|
-
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
57
|
-
isHover?: boolean;
|
|
58
|
-
color?: string;
|
|
59
|
-
leftColor?: string;
|
|
60
|
-
rightColor?: string;
|
|
61
|
-
}): void;
|
|
62
|
-
/**
|
|
63
|
-
* Calculate the minimum value on the left by pulling distance or button click
|
|
64
|
-
*/
|
|
65
|
-
export declare function computeBaseMinByDistance({ dragDistance, prevBaseMin, chartWidth, zoomMultiples, }: {
|
|
66
|
-
dragDistance: number;
|
|
67
|
-
prevBaseMin: BigNumber;
|
|
68
|
-
chartWidth: number;
|
|
69
|
-
zoomMultiples: number;
|
|
70
|
-
}): BigNumber;
|
|
71
|
-
export declare const baseZoomMultiples = 1;
|
|
72
|
-
export declare function computeZoomMultiplesWhenZoom({ prevZoomMultiples, zoomIn, }: {
|
|
73
|
-
prevZoomMultiples: number;
|
|
74
|
-
zoomIn: boolean;
|
|
75
|
-
}): number;
|
|
76
|
-
/**
|
|
77
|
-
* Given a price target corresponding to the abscissa, calculate the abscissa of the point
|
|
78
|
-
* The buying impact point is at the left 1/4 position
|
|
79
|
-
* The selling impact point is 3/4 on the right
|
|
80
|
-
*
|
|
81
|
-
* Returns a coordinate point, baseMin and zoomMultiples
|
|
82
|
-
*
|
|
83
|
-
* Take the initial state as the starting point, that is, midPrice * 10 ^ -1 as the starting point of the horizontal axis, and it is a left-right symmetrical state, that is, the logarithm of the horizontal axis is from -1 -> 0 -> 1
|
|
84
|
-
*
|
|
85
|
-
* type === 'sell'
|
|
86
|
-
* targetPrice = midPrice * 10 ^ n
|
|
87
|
-
* n = Math.log10(targetPrice / midPrice)
|
|
88
|
-
* n = maxN * (3 / 4)
|
|
89
|
-
*
|
|
90
|
-
* If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
|
|
91
|
-
* If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If you still do not adjust the zoom factor, hit the specified point directly, otherwise you need to adjust the zoom factor (avoid inputting extremely small values) The value cannot be scaled to the specified range, resulting in stuck)
|
|
92
|
-
*/
|
|
93
|
-
export declare function computeTargetXByTargetPrice({ type, targetPrice, midPrice, width, }: {
|
|
94
|
-
type: 'buy' | 'sell';
|
|
95
|
-
targetPrice: BigNumber;
|
|
96
|
-
midPrice: BigNumber;
|
|
97
|
-
width: number;
|
|
98
|
-
}): {
|
|
99
|
-
zoomMultiples: BigNumber;
|
|
100
|
-
targetX: number;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
|
|
104
|
-
* If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If it is within the range, adjust the zoom factor to 1, and then impact to the specified point, otherwise you need to adjust the zoom factor ( Avoid entering extremely small values that may result in inability to scale to the specified range and cause stucks)
|
|
105
|
-
*
|
|
106
|
-
* Returns an abscissa and a flag indicating whether to skip
|
|
107
|
-
*/
|
|
108
|
-
export declare function beforePriceImpactEffect({ currentBaseMinAndZoomMultiples, targetPrice, midPrice, width, }: {
|
|
109
|
-
currentBaseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
110
|
-
targetPrice: BigNumber;
|
|
111
|
-
midPrice: BigNumber;
|
|
112
|
-
width: number;
|
|
113
|
-
}): {
|
|
114
|
-
isSkip: boolean;
|
|
115
|
-
targetX: number;
|
|
116
|
-
baseMin: BigNumber;
|
|
117
|
-
zoomMultiples: number;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Recalculate baseMin after the zoom factor changes
|
|
121
|
-
*/
|
|
122
|
-
export declare function computeBaseAfterZoom({ midPrice, zoomMultiples, }: {
|
|
123
|
-
midPrice: BigNumber;
|
|
124
|
-
zoomMultiples: number;
|
|
125
|
-
}): BigNumber;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { ColorMap } from './DepthChartKonva';
|
|
4
|
-
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
5
|
-
declare type Props = {
|
|
6
|
-
chartId: string;
|
|
7
|
-
width?: number;
|
|
8
|
-
baseTokenSymbol: string;
|
|
9
|
-
quoteTokenSymbol: string;
|
|
10
|
-
pmmModel?: PMMModel;
|
|
11
|
-
pmmParams?: PmmModelParams;
|
|
12
|
-
midPrice?: BigNumber;
|
|
13
|
-
height?: number;
|
|
14
|
-
notShowAmountInput?: boolean;
|
|
15
|
-
colorMap?: ColorMap;
|
|
16
|
-
};
|
|
17
|
-
declare const DepthChart: React.FC<Props>;
|
|
18
|
-
export default DepthChart;
|
|
@@ -1,29 +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 AmountInputContainer: 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 InputSectionWrapper: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
borderColor?: string | undefined;
|
|
15
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
-
export declare const PriceImpactWrapper: import("@emotion/styled").StyledComponent<{
|
|
17
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
19
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
-
export declare const OptButtonGroup: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
-
export declare const OptButton: import("@emotion/styled").StyledComponent<{
|
|
25
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any> | undefined;
|
|
27
|
-
} & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
}, {}, {}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PMMModel } from '@dodoex/api';
|
|
2
|
-
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { BaseMinAndZoomMultiples } from './helper';
|
|
4
|
-
export declare function useDepthLinePoints({ chartHeight, chartWidth, midPrice, xPoints, pmmModel, baseMinAndZoomMultiples, buyYPortion, sellYPortion, }: {
|
|
5
|
-
chartHeight: number;
|
|
6
|
-
chartWidth: number;
|
|
7
|
-
xPoints: number;
|
|
8
|
-
midPrice: BigNumber;
|
|
9
|
-
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
10
|
-
buyYPortion: BigNumber;
|
|
11
|
-
sellYPortion: BigNumber;
|
|
12
|
-
pmmModel: PMMModel;
|
|
13
|
-
}): {
|
|
14
|
-
quoteLinePoints: number[];
|
|
15
|
-
quoteLineAreaPoints: number[];
|
|
16
|
-
quoteLineAreaLinearGradientEndPointY: number;
|
|
17
|
-
baseLinePoints: number[];
|
|
18
|
-
baseLineAreaPoints: number[];
|
|
19
|
-
baseLineAreaLinearGradientEndPointY: number;
|
|
20
|
-
midPriceLinePoints: number[];
|
|
21
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function useGridLinePoints({ chartHeight, chartWidth, horizontalLineCount, verticalLineCount, }: {
|
|
2
|
-
chartHeight: number;
|
|
3
|
-
chartWidth: number;
|
|
4
|
-
horizontalLineCount: number;
|
|
5
|
-
verticalLineCount: number;
|
|
6
|
-
}): {
|
|
7
|
-
horizontalGridLines: number[][];
|
|
8
|
-
verticalGridLines: number[][];
|
|
9
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseMinAndZoomMultiples } from './helper';
|
|
2
|
-
export declare function useHorizontalLabelPoints({ chartHeight, chartWidth, xAxisPoints, oneXPx, baseMinAndZoomMultiples, }: {
|
|
3
|
-
chartHeight: number;
|
|
4
|
-
chartWidth: number;
|
|
5
|
-
xAxisPoints: number;
|
|
6
|
-
oneXPx: number;
|
|
7
|
-
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
8
|
-
}): {
|
|
9
|
-
horizontalLabelTickPoints: number[][];
|
|
10
|
-
horizontalLabelTextPoints: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
text: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|