@dodoex/widgets 3.0.0-beta.1 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/AddressWithLinkAndCopy.d.ts +22 -0
- package/dist/cjs/components/AutoButton.d.ts +7 -0
- package/dist/cjs/components/Bridge/BridgeRouteShortCard.d.ts +6 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +5 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/index.d.ts +18 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +16 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +6 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +6 -0
- package/dist/cjs/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +14 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +10 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +4 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +20 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +12 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +11 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/index.d.ts +9 -0
- package/dist/cjs/components/Bridge/SelectBridgeDialog/productList.d.ts +8 -0
- package/dist/cjs/components/Confirm.d.ts +15 -0
- package/dist/cjs/components/ConnectWallet/ConnectWalletDialog.d.ts +5 -0
- package/dist/cjs/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
- package/dist/cjs/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/cjs/components/CopyTooltipToast.d.ts +9 -0
- package/dist/cjs/components/DataCard/DataCardGroup.d.ts +9 -0
- package/dist/cjs/components/Dialog.d.ts +1 -0
- package/dist/cjs/components/ErrorMessageDialog.d.ts +5 -0
- package/dist/cjs/components/GoBack.d.ts +6 -0
- package/dist/cjs/components/HowItWorks.d.ts +11 -0
- package/dist/cjs/components/List/EmptyList.d.ts +7 -0
- package/dist/cjs/components/List/FailedList.d.ts +6 -0
- package/dist/cjs/components/RiskDialog.d.ts +7 -0
- package/dist/cjs/components/SelectChain.d.ts +12 -0
- package/dist/cjs/components/Swap/components/ConnectWallet/index.d.ts +6 -0
- package/dist/cjs/components/Swap/components/Dialog.d.ts +15 -0
- package/dist/cjs/components/Swap/components/ReviewDialog.d.ts +21 -0
- package/dist/cjs/components/Swap/components/SettingsDialog/NumberInput.d.ts +8 -0
- package/dist/cjs/components/Swap/components/SettingsDialog/index.d.ts +7 -0
- package/dist/cjs/components/Swap/components/SwitchBox.d.ts +5 -0
- package/dist/cjs/components/Swap/components/TokenCard/BalanceText.d.ts +11 -0
- package/dist/cjs/components/Swap/components/TokenCard/NumberInput.d.ts +16 -0
- package/dist/cjs/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/cjs/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +8 -0
- package/dist/cjs/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +18 -0
- package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +36 -0
- package/dist/cjs/components/Swap/components/TokenPairPriceWithToggle.d.ts +10 -0
- package/dist/cjs/components/Swap/index.d.ts +7 -0
- package/dist/cjs/components/SwitchChainDialog/index.d.ts +7 -0
- package/dist/cjs/components/Token/TokenItem.d.ts +9 -0
- package/dist/cjs/components/TokenLogo.d.ts +18 -0
- package/dist/cjs/components/TokenLogoPair.d.ts +17 -0
- package/dist/cjs/components/TokenLogoSimple.d.ts +13 -0
- package/dist/cjs/components/TokenPicker/PopularToken.d.ts +7 -0
- package/dist/cjs/components/TokenPicker/SelectChainItem.d.ts +7 -0
- package/dist/cjs/components/TokenPicker/TokenItem.d.ts +10 -0
- package/dist/cjs/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
- package/dist/cjs/components/TokenPicker/index.d.ts +24 -0
- package/dist/cjs/components/TokenStatusButton.d.ts +7 -0
- package/dist/cjs/components/Tooltip/QuestionTooltip.d.ts +3 -0
- package/dist/cjs/components/Tooltip/index.d.ts +1 -0
- package/dist/cjs/components/Widget/index.d.ts +33 -0
- package/dist/cjs/components/WidgetConfirm.d.ts +15 -0
- package/dist/cjs/components/WidgetContainer.d.ts +3 -0
- package/dist/cjs/components/WidgetDialog.d.ts +15 -0
- package/dist/cjs/components/WithExecutionDialog/index.d.ts +5 -0
- package/dist/cjs/components/chart/components/BaseButton.d.ts +5 -0
- package/dist/cjs/components/chart/components/Display.d.ts +9 -0
- package/dist/cjs/components/chart/components/Input.d.ts +7 -0
- package/dist/cjs/components/chart/components/NumberInput.d.ts +6 -0
- package/dist/cjs/components/chart/components/TogglePriceIcon.d.ts +8 -0
- package/dist/cjs/components/chart/components/TokenLogo.d.ts +5 -0
- package/dist/cjs/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
- package/dist/cjs/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/cjs/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/cjs/components/chart/depth-chart/index.d.ts +18 -0
- package/dist/cjs/components/chart/depth-chart/index.styled.d.ts +29 -0
- package/dist/cjs/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/cjs/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/cjs/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/cjs/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/cjs/components/chart/depth-chart-v2/index.d.ts +10 -0
- package/dist/cjs/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
- package/dist/cjs/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/cjs/components/chart/i18n.d.ts +1 -0
- package/dist/cjs/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
- package/dist/cjs/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/cjs/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/cjs/components/chart/liquidity-chart/index.d.ts +17 -0
- package/dist/cjs/components/chart/liquidity-chart/index.styled.d.ts +9 -0
- package/dist/cjs/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
- package/dist/cjs/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
- package/dist/cjs/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
- package/dist/cjs/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
- package/dist/cjs/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/cjs/components/chart/utils.d.ts +3 -0
- package/dist/cjs/constants/address.d.ts +1 -0
- package/dist/cjs/constants/api.d.ts +20 -0
- package/dist/cjs/constants/chainList.d.ts +10 -0
- package/dist/cjs/constants/chains.d.ts +34 -0
- package/dist/cjs/constants/locales.d.ts +3 -0
- package/dist/cjs/constants/localstorage.d.ts +14 -0
- package/dist/cjs/constants/pool.d.ts +7 -0
- package/dist/cjs/constants/sessionStorage.d.ts +2 -0
- package/dist/cjs/constants/swap.d.ts +7 -0
- package/dist/cjs/constants/testId.d.ts +10 -0
- package/dist/cjs/constants/token.d.ts +2 -0
- package/dist/cjs/constants/tokenList.d.ts +9 -0
- package/dist/cjs/constants/wallet.d.ts +23 -0
- package/dist/cjs/failed-list-DRBOVKWp-DC1nhEC-.cjs +1 -0
- package/dist/cjs/helper-CT7gzva6.cjs +1 -0
- package/dist/cjs/hooks/Bridge/createBridgeOrder.d.ts +28 -0
- package/dist/cjs/hooks/Bridge/index.d.ts +4 -0
- package/dist/cjs/hooks/Bridge/useExecuteBridgeRoute.d.ts +7 -0
- package/dist/cjs/hooks/Bridge/useFetchRoutePriceBridge.d.ts +102 -0
- package/dist/cjs/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +1 -0
- package/dist/cjs/hooks/Bridge/useSendRoute.d.ts +16 -0
- package/dist/cjs/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -0
- package/dist/cjs/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/cjs/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/cjs/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/cjs/hooks/ConnectWallet/index.d.ts +3 -0
- package/dist/cjs/hooks/ConnectWallet/useCurrentChainId.d.ts +2 -0
- package/dist/cjs/hooks/ConnectWallet/useSwitchChain.d.ts +10 -0
- package/dist/cjs/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
- package/dist/cjs/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/cjs/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/cjs/hooks/Submission/getExecutionErrorMsg.d.ts +2 -0
- package/dist/cjs/hooks/Submission/index.d.ts +10 -0
- package/dist/cjs/hooks/Submission/spec.d.ts +56 -0
- package/dist/cjs/hooks/Submission/types.d.ts +79 -0
- package/dist/cjs/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
- package/dist/cjs/hooks/Submission/useExecution.d.ts +32 -0
- package/dist/cjs/hooks/Submission/useInflights.d.ts +5 -0
- package/dist/cjs/hooks/Swap/index.d.ts +5 -0
- package/dist/cjs/hooks/Swap/useExecuteSwap.d.ts +12 -0
- package/dist/cjs/hooks/Swap/useFetchFiatPrice.d.ts +13 -0
- package/dist/cjs/hooks/Swap/useFetchFiatPrice.test.d.ts +1 -0
- package/dist/cjs/hooks/Swap/useFetchRoutePrice.d.ts +37 -0
- package/dist/cjs/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
- package/dist/cjs/hooks/Swap/useInitDefaultToken.d.ts +10 -0
- package/dist/cjs/hooks/Swap/useMarginAmount.d.ts +8 -0
- package/dist/cjs/hooks/Swap/useMarginAmount.test.d.ts +1 -0
- package/dist/cjs/hooks/Swap/usePriceTimer.d.ts +5 -0
- package/dist/cjs/hooks/Swap/useSlippageLimit.d.ts +2 -0
- package/dist/cjs/hooks/Token/index.d.ts +4 -0
- package/dist/cjs/hooks/Token/type.d.ts +25 -0
- package/dist/cjs/hooks/Token/useDisabledTokenSwitch.d.ts +5 -0
- package/dist/cjs/hooks/Token/useFindTokenByAddress.d.ts +1 -0
- package/dist/cjs/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/cjs/hooks/Token/useGetCGTokenList.d.ts +15 -0
- package/dist/cjs/hooks/Token/useInitTokenList.d.ts +6 -0
- package/dist/cjs/hooks/Token/useSelectChainList.d.ts +7 -0
- package/dist/cjs/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/cjs/hooks/Token/useTokenList.d.ts +36 -0
- package/dist/cjs/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/cjs/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/cjs/hooks/Token/useTokenListFetchBalance.d.ts +12 -0
- package/dist/cjs/hooks/Token/useTokenStatus.d.ts +20 -0
- package/dist/cjs/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/cjs/hooks/Widget/useInitPropsToRedux.d.ts +2 -0
- package/dist/cjs/hooks/contract/index.d.ts +3 -0
- package/dist/cjs/hooks/contract/useFetchBlockNumber.d.ts +3 -0
- package/dist/cjs/hooks/contract/useFetchETHBalance.d.ts +21 -0
- package/dist/cjs/hooks/contract/useFetchTokens.d.ts +14 -0
- package/dist/cjs/hooks/contract/wallet.d.ts +16 -0
- package/dist/cjs/hooks/setting/useDefaultSlippage.d.ts +4 -0
- package/dist/cjs/hooks/setting/useGetAPIService.d.ts +2 -0
- package/dist/cjs/hooks/setting/useSetAutoSlippage.d.ts +13 -0
- package/dist/cjs/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/cjs/index-385J8FnP.cjs +58 -0
- package/dist/cjs/index-Btn_JJqA.cjs +78 -0
- package/dist/cjs/index-Dvm2UvHH.cjs +12 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +12 -0
- package/dist/cjs/lottie-bG8uL7Ic.cjs +1 -0
- package/dist/cjs/multi-entry.js +7 -0
- package/dist/cjs/no-found-BKLZjsgH-DqAhyXyc.cjs +1 -0
- package/dist/cjs/no-result-FTqGvqhr-_3xEQ9ck.cjs +1 -0
- package/dist/cjs/providers/GlobalConfigContext.d.ts +21 -0
- package/dist/cjs/providers/i18n.d.ts +9 -0
- package/dist/cjs/providers/queryClient/index.d.ts +2 -0
- package/dist/cjs/router/index.d.ts +9 -0
- package/dist/cjs/router/types.d.ts +35 -0
- package/dist/cjs/store/actions/globals.d.ts +9 -0
- package/dist/cjs/store/actions/index.d.ts +4 -0
- package/dist/cjs/store/actions/settings.d.ts +6 -0
- package/dist/cjs/store/actions/token.d.ts +8 -0
- package/dist/cjs/store/actions/wallet.d.ts +7 -0
- package/dist/cjs/store/index.d.ts +12 -0
- package/dist/cjs/store/reducers/globals.d.ts +23 -0
- package/dist/cjs/store/reducers/index.d.ts +17 -0
- package/dist/cjs/store/reducers/settings.d.ts +13 -0
- package/dist/cjs/store/reducers/token.d.ts +24 -0
- package/dist/cjs/store/reducers/wallet.d.ts +14 -0
- package/dist/cjs/store/selectors/globals.d.ts +7 -0
- package/dist/cjs/store/selectors/settings.d.ts +4 -0
- package/dist/cjs/store/selectors/token.d.ts +9 -0
- package/dist/cjs/store/selectors/wallet.d.ts +7 -0
- package/dist/cjs/utils/address.d.ts +15 -0
- package/dist/cjs/utils/address.test.d.ts +1 -0
- package/dist/cjs/utils/bytes.d.ts +3 -0
- package/dist/cjs/utils/chains.d.ts +2 -0
- package/dist/cjs/utils/chains.test.d.ts +1 -0
- package/dist/cjs/utils/formatter.d.ts +48 -0
- package/dist/cjs/utils/formatter.test.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts +5 -0
- package/dist/cjs/utils/time.d.ts +9 -0
- package/dist/cjs/utils/time.test.d.ts +1 -0
- package/dist/cjs/utils/token.d.ts +30 -0
- package/dist/cjs/utils/token.test.d.ts +1 -0
- package/dist/cjs/utils/utils.d.ts +1 -0
- package/dist/cjs/utils/wallet.d.ts +8 -0
- package/dist/cjs/utils/wallet.test.d.ts +1 -0
- package/dist/cjs/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
- package/dist/cjs/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
- package/dist/cjs/widgets/MiningWidget/types.d.ts +58 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
- package/dist/cjs/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/cjs/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/cjs/widgets/PoolWidget/PoolList/index.d.ts +2 -0
- package/dist/cjs/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
- package/dist/cjs/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
- package/dist/cjs/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
- package/dist/cjs/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
- package/dist/cjs/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
- package/dist/cjs/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/cjs/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/cjs/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/cjs/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
- package/dist/cjs/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
- package/dist/cjs/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/cjs/widgets/PoolWidget/index.d.ts +2 -0
- package/dist/cjs/widgets/PoolWidget/utils.d.ts +17 -0
- package/dist/components/AddressWithLinkAndCopy.d.ts +22 -0
- package/dist/components/AutoButton.d.ts +7 -0
- package/dist/components/Bridge/BridgeRouteShortCard.d.ts +6 -0
- package/dist/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +5 -0
- package/dist/components/Bridge/BridgeSummaryDialog/index.d.ts +18 -0
- package/dist/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +16 -0
- package/dist/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +6 -0
- package/dist/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +6 -0
- package/dist/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +14 -0
- package/dist/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +10 -0
- package/dist/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +4 -0
- package/dist/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +20 -0
- package/dist/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +12 -0
- package/dist/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +11 -0
- package/dist/components/Bridge/SelectBridgeDialog/index.d.ts +9 -0
- package/dist/components/Bridge/SelectBridgeDialog/productList.d.ts +8 -0
- package/dist/components/Confirm.d.ts +15 -0
- package/dist/components/ConnectWallet/ConnectWalletDialog.d.ts +5 -0
- package/dist/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
- package/dist/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/components/CopyTooltipToast.d.ts +9 -0
- package/dist/components/DataCard/DataCardGroup.d.ts +9 -0
- package/dist/components/Dialog.d.ts +1 -0
- package/dist/components/ErrorMessageDialog.d.ts +5 -0
- package/dist/components/GoBack.d.ts +6 -0
- package/dist/components/HowItWorks.d.ts +11 -0
- package/dist/components/List/EmptyList.d.ts +7 -0
- package/dist/components/List/FailedList.d.ts +6 -0
- package/dist/components/RiskDialog.d.ts +7 -0
- package/dist/components/SelectChain.d.ts +12 -0
- package/dist/components/Swap/components/ConnectWallet/index.d.ts +6 -0
- package/dist/components/Swap/components/Dialog.d.ts +15 -0
- package/dist/components/Swap/components/ReviewDialog.d.ts +21 -0
- package/dist/components/Swap/components/SettingsDialog/NumberInput.d.ts +8 -0
- package/dist/components/Swap/components/SettingsDialog/index.d.ts +7 -0
- package/dist/components/Swap/components/SwitchBox.d.ts +5 -0
- package/dist/components/Swap/components/TokenCard/BalanceText.d.ts +11 -0
- package/dist/components/Swap/components/TokenCard/NumberInput.d.ts +16 -0
- package/dist/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +8 -0
- package/dist/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +18 -0
- package/dist/components/Swap/components/TokenCard/index.d.ts +36 -0
- package/dist/components/Swap/components/TokenPairPriceWithToggle.d.ts +10 -0
- package/dist/components/Swap/index.d.ts +7 -0
- package/dist/components/SwitchChainDialog/index.d.ts +7 -0
- package/dist/components/Token/TokenItem.d.ts +9 -0
- package/dist/components/TokenLogo.d.ts +18 -0
- package/dist/components/TokenLogoPair.d.ts +17 -0
- package/dist/components/TokenLogoSimple.d.ts +13 -0
- package/dist/components/TokenPicker/PopularToken.d.ts +7 -0
- package/dist/components/TokenPicker/SelectChainItem.d.ts +7 -0
- package/dist/components/TokenPicker/TokenItem.d.ts +10 -0
- package/dist/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
- package/dist/components/TokenPicker/index.d.ts +24 -0
- package/dist/components/TokenStatusButton.d.ts +7 -0
- package/dist/components/Tooltip/QuestionTooltip.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Widget/index.d.ts +33 -0
- package/dist/components/WidgetConfirm.d.ts +15 -0
- package/dist/components/WidgetContainer.d.ts +3 -0
- package/dist/components/WidgetDialog.d.ts +15 -0
- package/dist/components/WithExecutionDialog/index.d.ts +5 -0
- package/dist/components/chart/components/BaseButton.d.ts +5 -0
- package/dist/components/chart/components/Display.d.ts +9 -0
- package/dist/components/chart/components/Input.d.ts +7 -0
- package/dist/components/chart/components/NumberInput.d.ts +6 -0
- package/dist/components/chart/components/TogglePriceIcon.d.ts +8 -0
- package/dist/components/chart/components/TokenLogo.d.ts +5 -0
- package/dist/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
- package/dist/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/components/chart/depth-chart/index.d.ts +18 -0
- package/dist/components/chart/depth-chart/index.styled.d.ts +29 -0
- package/dist/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/components/chart/depth-chart-v2/index.d.ts +10 -0
- package/dist/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
- package/dist/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/components/chart/i18n.d.ts +1 -0
- package/dist/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
- package/dist/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/components/chart/liquidity-chart/index.d.ts +17 -0
- package/dist/components/chart/liquidity-chart/index.styled.d.ts +9 -0
- package/dist/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
- package/dist/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
- package/dist/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
- package/dist/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
- package/dist/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/components/chart/utils.d.ts +3 -0
- package/dist/constants/address.d.ts +1 -0
- package/dist/constants/api.d.ts +20 -0
- package/dist/constants/chainList.d.ts +10 -0
- package/dist/constants/chains.d.ts +34 -0
- package/dist/constants/locales.d.ts +3 -0
- package/dist/constants/localstorage.d.ts +14 -0
- package/dist/constants/pool.d.ts +7 -0
- package/dist/constants/sessionStorage.d.ts +2 -0
- package/dist/constants/swap.d.ts +7 -0
- package/dist/constants/testId.d.ts +10 -0
- package/dist/constants/token.d.ts +2 -0
- package/dist/constants/tokenList.d.ts +9 -0
- package/dist/constants/wallet.d.ts +23 -0
- package/dist/failed-list-DRBOVKWp-DRBOVKWp.js +1 -0
- package/dist/helper-BpKL-WX0.js +1 -0
- package/dist/hooks/Bridge/createBridgeOrder.d.ts +28 -0
- package/dist/hooks/Bridge/index.d.ts +4 -0
- package/dist/hooks/Bridge/useExecuteBridgeRoute.d.ts +7 -0
- package/dist/hooks/Bridge/useFetchRoutePriceBridge.d.ts +102 -0
- package/dist/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +1 -0
- package/dist/hooks/Bridge/useSendRoute.d.ts +16 -0
- package/dist/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -0
- package/dist/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/hooks/ConnectWallet/index.d.ts +3 -0
- package/dist/hooks/ConnectWallet/useCurrentChainId.d.ts +2 -0
- package/dist/hooks/ConnectWallet/useSwitchChain.d.ts +10 -0
- package/dist/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
- package/dist/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/hooks/Submission/getExecutionErrorMsg.d.ts +2 -0
- package/dist/hooks/Submission/index.d.ts +10 -0
- package/dist/hooks/Submission/spec.d.ts +56 -0
- package/dist/hooks/Submission/types.d.ts +79 -0
- package/dist/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
- package/dist/hooks/Submission/useExecution.d.ts +32 -0
- package/dist/hooks/Submission/useInflights.d.ts +5 -0
- package/dist/hooks/Swap/index.d.ts +5 -0
- package/dist/hooks/Swap/useExecuteSwap.d.ts +12 -0
- package/dist/hooks/Swap/useFetchFiatPrice.d.ts +13 -0
- package/dist/hooks/Swap/useFetchFiatPrice.test.d.ts +1 -0
- package/dist/hooks/Swap/useFetchRoutePrice.d.ts +37 -0
- package/dist/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
- package/dist/hooks/Swap/useInitDefaultToken.d.ts +10 -0
- package/dist/hooks/Swap/useMarginAmount.d.ts +8 -0
- package/dist/hooks/Swap/useMarginAmount.test.d.ts +1 -0
- package/dist/hooks/Swap/usePriceTimer.d.ts +5 -0
- package/dist/hooks/Swap/useSlippageLimit.d.ts +2 -0
- package/dist/hooks/Token/index.d.ts +4 -0
- package/dist/hooks/Token/type.d.ts +25 -0
- package/dist/hooks/Token/useDisabledTokenSwitch.d.ts +5 -0
- package/dist/hooks/Token/useFindTokenByAddress.d.ts +1 -0
- package/dist/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/hooks/Token/useGetCGTokenList.d.ts +15 -0
- package/dist/hooks/Token/useInitTokenList.d.ts +6 -0
- package/dist/hooks/Token/useSelectChainList.d.ts +7 -0
- package/dist/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/hooks/Token/useTokenList.d.ts +36 -0
- package/dist/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/hooks/Token/useTokenListFetchBalance.d.ts +12 -0
- package/dist/hooks/Token/useTokenStatus.d.ts +20 -0
- package/dist/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/hooks/Widget/useInitPropsToRedux.d.ts +2 -0
- package/dist/hooks/contract/index.d.ts +3 -0
- package/dist/hooks/contract/useFetchBlockNumber.d.ts +3 -0
- package/dist/hooks/contract/useFetchETHBalance.d.ts +21 -0
- package/dist/hooks/contract/useFetchTokens.d.ts +14 -0
- package/dist/hooks/contract/wallet.d.ts +16 -0
- package/dist/hooks/setting/useDefaultSlippage.d.ts +4 -0
- package/dist/hooks/setting/useGetAPIService.d.ts +2 -0
- package/dist/hooks/setting/useSetAutoSlippage.d.ts +13 -0
- package/dist/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/index-Ch7GewG2.js +58 -0
- package/dist/index-DhQe6anS.js +12 -0
- package/dist/index-DksR3nfe.js +78 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/dist/lottie-CvNBrPAN.js +1 -0
- package/dist/multi-entry.js +7 -0
- package/dist/no-found-BKLZjsgH-LomOnbuz.js +1 -0
- package/dist/no-result-FTqGvqhr-DhAfvy2a.js +1 -0
- package/dist/providers/GlobalConfigContext.d.ts +21 -0
- package/dist/providers/i18n.d.ts +9 -0
- package/dist/providers/queryClient/index.d.ts +2 -0
- package/dist/router/index.d.ts +9 -0
- package/dist/router/types.d.ts +35 -0
- package/dist/store/actions/globals.d.ts +9 -0
- package/dist/store/actions/index.d.ts +4 -0
- package/dist/store/actions/settings.d.ts +6 -0
- package/dist/store/actions/token.d.ts +8 -0
- package/dist/store/actions/wallet.d.ts +7 -0
- package/dist/store/index.d.ts +12 -0
- package/dist/store/reducers/globals.d.ts +23 -0
- package/dist/store/reducers/index.d.ts +17 -0
- package/dist/store/reducers/settings.d.ts +13 -0
- package/dist/store/reducers/token.d.ts +24 -0
- package/dist/store/reducers/wallet.d.ts +14 -0
- package/dist/store/selectors/globals.d.ts +7 -0
- package/dist/store/selectors/settings.d.ts +4 -0
- package/dist/store/selectors/token.d.ts +9 -0
- package/dist/store/selectors/wallet.d.ts +7 -0
- package/dist/utils/address.d.ts +15 -0
- package/dist/utils/address.test.d.ts +1 -0
- package/dist/utils/bytes.d.ts +3 -0
- package/dist/utils/chains.d.ts +2 -0
- package/dist/utils/chains.test.d.ts +1 -0
- package/dist/utils/formatter.d.ts +48 -0
- package/dist/utils/formatter.test.d.ts +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/time.d.ts +9 -0
- package/dist/utils/time.test.d.ts +1 -0
- package/dist/utils/token.d.ts +30 -0
- package/dist/utils/token.test.d.ts +1 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/wallet.d.ts +8 -0
- package/dist/utils/wallet.test.d.ts +1 -0
- package/dist/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
- package/dist/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
- package/dist/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
- package/dist/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
- package/dist/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
- package/dist/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
- package/dist/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
- package/dist/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
- package/dist/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
- package/dist/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
- package/dist/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
- package/dist/widgets/MiningWidget/types.d.ts +58 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
- package/dist/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
- package/dist/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
- package/dist/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
- package/dist/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
- package/dist/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
- package/dist/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
- package/dist/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
- package/dist/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
- package/dist/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
- package/dist/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
- package/dist/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
- package/dist/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/widgets/PoolWidget/PoolList/index.d.ts +2 -0
- package/dist/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
- package/dist/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
- package/dist/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
- package/dist/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
- package/dist/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
- package/dist/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
- package/dist/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
- package/dist/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
- package/dist/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
- package/dist/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
- package/dist/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/widgets/PoolWidget/index.d.ts +2 -0
- package/dist/widgets/PoolWidget/utils.d.ts +17 -0
- package/package.json +13 -13
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as QuestionTooltip } from './QuestionTooltip';
|
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,5 @@
|
|
|
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>, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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>, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,30 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chartT(key: string, params: any): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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>, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|