@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,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum Version {
|
|
3
|
+
/** DVM; public pool */
|
|
4
|
+
standard = "standard",
|
|
5
|
+
/** DVM: quoteReserve = 0; public pool */
|
|
6
|
+
singleToken = "single-token",
|
|
7
|
+
/** DSP */
|
|
8
|
+
pegged = "pagged",
|
|
9
|
+
/** DPP; private pool */
|
|
10
|
+
marketMakerPool = "market-maker-pool"
|
|
11
|
+
}
|
|
12
|
+
export interface VersionItem {
|
|
13
|
+
version: Version;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
exampleImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
17
|
+
title?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
exampleDarkImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
docUrl: string;
|
|
23
|
+
initPriceLabel: string;
|
|
24
|
+
initPriceTips?: string;
|
|
25
|
+
initPriceTipsLink?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare type SectionStatusT = 'waiting' | 'running' | 'completed';
|
|
28
|
+
export interface RadioButtonT {
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
value: string;
|
|
32
|
+
tag?: string;
|
|
33
|
+
tagColor?: string;
|
|
34
|
+
tagBackgroundColor?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
+
import { Version } from './types';
|
|
4
|
+
export declare const DEFAULT_FEE_RATE = "0.3";
|
|
5
|
+
export declare const MIN_FEE_RATE = 0.01;
|
|
6
|
+
export declare const MAX_FEE_RATE = 10;
|
|
7
|
+
export declare const DEFAULT_INIT_PRICE = "1";
|
|
8
|
+
export declare const DEFAULT_INIT_PRICE_STANDARD = "0.0000000000001";
|
|
9
|
+
export declare const MAX_INIT_PRICE = 100000000;
|
|
10
|
+
export declare const DEFAULT_SLIPPAGE_COEFFICIENT = "1";
|
|
11
|
+
export declare const DEFAULT_SLIPPAGE_COEFFICIENT_PEGGED = "0.0001";
|
|
12
|
+
export declare const MAX_SLIPPAGE_COEFFICIENT_PEGGED = "0.1";
|
|
13
|
+
export declare function computeInitPriceText({ selectedVersion, quoteToken, initPrice, midPrice, }: {
|
|
14
|
+
selectedVersion: Version;
|
|
15
|
+
quoteToken: TokenInfo;
|
|
16
|
+
initPrice: string;
|
|
17
|
+
midPrice?: BigNumber;
|
|
18
|
+
}): string | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
export declare function BaseQuotePie({ shortNumber, pieSize, baseReserve, baseAmount, quoteAmount, baseTokenSymbol, quoteTokenSymbol, quoteTokenDecimals, baseTokenDecimals, baseTvlRate, quoteTvlRate, disabledAmount, disabledRate, disabledPercentage, loading, sx, pieRadius: pieRadiusProp, }: {
|
|
5
|
+
baseReserve?: BigNumber;
|
|
6
|
+
/** Quantity converted by midPrice, used to calculate percentages */
|
|
7
|
+
baseAmount?: BigNumber;
|
|
8
|
+
baseTokenDecimals?: number;
|
|
9
|
+
baseTokenSymbol?: string;
|
|
10
|
+
quoteAmount?: BigNumber;
|
|
11
|
+
quoteTokenDecimals?: number;
|
|
12
|
+
quoteTokenSymbol?: string;
|
|
13
|
+
pieSize?: 'small' | 'default';
|
|
14
|
+
shortNumber?: boolean;
|
|
15
|
+
/** Already calculated proportion */
|
|
16
|
+
baseTvlRate?: string;
|
|
17
|
+
quoteTvlRate?: string;
|
|
18
|
+
disabledAmount?: boolean;
|
|
19
|
+
disabledRate?: boolean;
|
|
20
|
+
disabledPercentage?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
sx?: BoxProps['sx'];
|
|
23
|
+
pieRadius?: number;
|
|
24
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { usePoolDetail } from '../../hooks/usePoolDetail';
|
|
3
|
+
export default function ChartInfo({ poolDetail, chart24hDataFirst, }: {
|
|
4
|
+
poolDetail?: ReturnType<typeof usePoolDetail>['poolDetail'];
|
|
5
|
+
chart24hDataFirst?: boolean;
|
|
6
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { ChainId } from '@dodoex/api';
|
|
4
|
+
import { usePoolDetail } from '../../../hooks/usePoolDetail';
|
|
5
|
+
export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
|
|
6
|
+
export declare function TokenWithSymbolRtL({ chainId, address, symbol, amount, sx, }: {
|
|
7
|
+
chainId: ChainId;
|
|
8
|
+
address: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
amount: string;
|
|
11
|
+
sx?: BoxProps['sx'];
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
export default function ParametersTable({ detail, }: {
|
|
14
|
+
detail: ReturnType<typeof usePoolDetail>['poolDetail'];
|
|
15
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { usePoolDetail } from '../../../hooks/usePoolDetail';
|
|
3
|
+
export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
|
|
4
|
+
export default function SwapsTable({ poolDetail, }: {
|
|
5
|
+
poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
|
|
6
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { usePoolDayData } from '../hooks/usePoolDayData';
|
|
3
|
+
declare type DayData = ReturnType<typeof usePoolDayData>['dayDataList']['0'];
|
|
4
|
+
export default function StatBarChart({ unit, data, masterKey, sumKey, }: {
|
|
5
|
+
unit: string;
|
|
6
|
+
data: DayData[];
|
|
7
|
+
masterKey: keyof DayData;
|
|
8
|
+
sumKey: keyof DayData;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { PoolType } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
4
|
+
export declare type LpItem = {
|
|
5
|
+
userId: string;
|
|
6
|
+
baseSupplied: string;
|
|
7
|
+
quoteSupplied: string;
|
|
8
|
+
baseTokenSymbol: string;
|
|
9
|
+
baseTokenAddress: string;
|
|
10
|
+
quoteTokenSymbol: string;
|
|
11
|
+
quoteTokenAddress: string;
|
|
12
|
+
sharePercentage: string;
|
|
13
|
+
dollarValue: string;
|
|
14
|
+
dollarValueBN: BigNumber;
|
|
15
|
+
};
|
|
16
|
+
export declare function useLiquidityProviders({ pool, }: {
|
|
17
|
+
pool: {
|
|
18
|
+
chainId: number;
|
|
19
|
+
address: string;
|
|
20
|
+
type: PoolType;
|
|
21
|
+
baseToken: TokenInfo;
|
|
22
|
+
quoteToken: TokenInfo;
|
|
23
|
+
} | null | undefined;
|
|
24
|
+
}): {
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
errorRefetch: (() => void) | undefined;
|
|
27
|
+
list: LpItem[];
|
|
28
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery;
|
|
29
|
+
error: Error;
|
|
30
|
+
isError: true;
|
|
31
|
+
isPending: false;
|
|
32
|
+
isLoadingError: false;
|
|
33
|
+
isRefetchError: true;
|
|
34
|
+
isSuccess: false;
|
|
35
|
+
status: "error";
|
|
36
|
+
dataUpdatedAt: number;
|
|
37
|
+
errorUpdatedAt: number;
|
|
38
|
+
failureCount: number;
|
|
39
|
+
failureReason: Error | null;
|
|
40
|
+
errorUpdateCount: number;
|
|
41
|
+
isFetched: boolean;
|
|
42
|
+
isFetchedAfterMount: boolean;
|
|
43
|
+
isFetching: boolean;
|
|
44
|
+
isInitialLoading: boolean;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
isPlaceholderData: boolean;
|
|
47
|
+
isRefetching: boolean;
|
|
48
|
+
isStale: boolean;
|
|
49
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
50
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
51
|
+
} | {
|
|
52
|
+
isLoading: boolean;
|
|
53
|
+
errorRefetch: (() => void) | undefined;
|
|
54
|
+
list: LpItem[];
|
|
55
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery;
|
|
56
|
+
error: null;
|
|
57
|
+
isError: false;
|
|
58
|
+
isPending: false;
|
|
59
|
+
isLoadingError: false;
|
|
60
|
+
isRefetchError: false;
|
|
61
|
+
isSuccess: true;
|
|
62
|
+
status: "success";
|
|
63
|
+
dataUpdatedAt: number;
|
|
64
|
+
errorUpdatedAt: number;
|
|
65
|
+
failureCount: number;
|
|
66
|
+
failureReason: Error | null;
|
|
67
|
+
errorUpdateCount: number;
|
|
68
|
+
isFetched: boolean;
|
|
69
|
+
isFetchedAfterMount: boolean;
|
|
70
|
+
isFetching: boolean;
|
|
71
|
+
isInitialLoading: boolean;
|
|
72
|
+
isPaused: boolean;
|
|
73
|
+
isPlaceholderData: boolean;
|
|
74
|
+
isRefetching: boolean;
|
|
75
|
+
isStale: boolean;
|
|
76
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
77
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
78
|
+
} | {
|
|
79
|
+
isLoading: boolean;
|
|
80
|
+
errorRefetch: (() => void) | undefined;
|
|
81
|
+
list: LpItem[];
|
|
82
|
+
data: undefined;
|
|
83
|
+
error: Error;
|
|
84
|
+
isError: true;
|
|
85
|
+
isPending: false;
|
|
86
|
+
isLoadingError: true;
|
|
87
|
+
isRefetchError: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
status: "error";
|
|
90
|
+
dataUpdatedAt: number;
|
|
91
|
+
errorUpdatedAt: number;
|
|
92
|
+
failureCount: number;
|
|
93
|
+
failureReason: Error | null;
|
|
94
|
+
errorUpdateCount: number;
|
|
95
|
+
isFetched: boolean;
|
|
96
|
+
isFetchedAfterMount: boolean;
|
|
97
|
+
isFetching: boolean;
|
|
98
|
+
isInitialLoading: boolean;
|
|
99
|
+
isPaused: boolean;
|
|
100
|
+
isPlaceholderData: boolean;
|
|
101
|
+
isRefetching: boolean;
|
|
102
|
+
isStale: boolean;
|
|
103
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
104
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
105
|
+
} | {
|
|
106
|
+
isLoading: boolean;
|
|
107
|
+
errorRefetch: (() => void) | undefined;
|
|
108
|
+
list: LpItem[];
|
|
109
|
+
data: undefined;
|
|
110
|
+
error: null;
|
|
111
|
+
isError: false;
|
|
112
|
+
isPending: true;
|
|
113
|
+
isLoadingError: false;
|
|
114
|
+
isRefetchError: false;
|
|
115
|
+
isSuccess: false;
|
|
116
|
+
status: "pending";
|
|
117
|
+
dataUpdatedAt: number;
|
|
118
|
+
errorUpdatedAt: number;
|
|
119
|
+
failureCount: number;
|
|
120
|
+
failureReason: Error | null;
|
|
121
|
+
errorUpdateCount: number;
|
|
122
|
+
isFetched: boolean;
|
|
123
|
+
isFetchedAfterMount: boolean;
|
|
124
|
+
isFetching: boolean;
|
|
125
|
+
isInitialLoading: boolean;
|
|
126
|
+
isPaused: boolean;
|
|
127
|
+
isPlaceholderData: boolean;
|
|
128
|
+
isRefetching: boolean;
|
|
129
|
+
isStale: boolean;
|
|
130
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
131
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
132
|
+
} | {
|
|
133
|
+
isLoading: boolean;
|
|
134
|
+
errorRefetch: (() => void) | undefined;
|
|
135
|
+
list: LpItem[];
|
|
136
|
+
data: undefined;
|
|
137
|
+
error: null;
|
|
138
|
+
isError: false;
|
|
139
|
+
isPending: true;
|
|
140
|
+
isLoadingError: false;
|
|
141
|
+
isRefetchError: false;
|
|
142
|
+
isSuccess: false;
|
|
143
|
+
status: "pending";
|
|
144
|
+
dataUpdatedAt: number;
|
|
145
|
+
errorUpdatedAt: number;
|
|
146
|
+
failureCount: number;
|
|
147
|
+
failureReason: Error | null;
|
|
148
|
+
errorUpdateCount: number;
|
|
149
|
+
isFetched: boolean;
|
|
150
|
+
isFetchedAfterMount: boolean;
|
|
151
|
+
isFetching: boolean;
|
|
152
|
+
isInitialLoading: boolean;
|
|
153
|
+
isPaused: boolean;
|
|
154
|
+
isPlaceholderData: boolean;
|
|
155
|
+
isRefetching: boolean;
|
|
156
|
+
isStale: boolean;
|
|
157
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery, Error>>;
|
|
158
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
159
|
+
};
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export declare function usePoolDashboard({ address, chainId, }: {
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
chainId: ChainId | undefined;
|
|
5
|
+
}): {
|
|
6
|
+
dashboard: {
|
|
7
|
+
fee?: string | null | undefined;
|
|
8
|
+
volume?: string | null | undefined;
|
|
9
|
+
totalFee?: string | null | undefined;
|
|
10
|
+
totalVolume?: string | null | undefined;
|
|
11
|
+
tvl?: string | null | undefined;
|
|
12
|
+
turnover?: string | null | undefined;
|
|
13
|
+
liquidity?: string | null | undefined;
|
|
14
|
+
baseReserve?: string | null | undefined;
|
|
15
|
+
quoteReserve?: string | null | undefined;
|
|
16
|
+
baseVolume?: string | null | undefined;
|
|
17
|
+
quoteVolume?: string | null | undefined;
|
|
18
|
+
basePrice?: string | null | undefined;
|
|
19
|
+
quotePrice?: string | null | undefined;
|
|
20
|
+
price?: string | null | undefined;
|
|
21
|
+
baseFee?: string | null | undefined;
|
|
22
|
+
quoteFee?: string | null | undefined;
|
|
23
|
+
pair?: string | null | undefined;
|
|
24
|
+
poolType?: string | null | undefined;
|
|
25
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
26
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
27
|
+
baseAddress?: string | null | undefined;
|
|
28
|
+
baseSymbol?: string | null | undefined;
|
|
29
|
+
quoteAddress?: string | null | undefined;
|
|
30
|
+
quoteSymbol?: string | null | undefined;
|
|
31
|
+
network?: string | null | undefined;
|
|
32
|
+
pairAddress?: string | null | undefined;
|
|
33
|
+
txes?: number | null | undefined;
|
|
34
|
+
txesNear24h?: number | null | undefined;
|
|
35
|
+
txUsers?: number | null | undefined;
|
|
36
|
+
txUserNear24h?: number | null | undefined;
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery;
|
|
39
|
+
error: Error;
|
|
40
|
+
isError: true;
|
|
41
|
+
isPending: false;
|
|
42
|
+
isLoading: false;
|
|
43
|
+
isLoadingError: false;
|
|
44
|
+
isRefetchError: true;
|
|
45
|
+
isSuccess: false;
|
|
46
|
+
status: "error";
|
|
47
|
+
dataUpdatedAt: number;
|
|
48
|
+
errorUpdatedAt: number;
|
|
49
|
+
failureCount: number;
|
|
50
|
+
failureReason: Error | null;
|
|
51
|
+
errorUpdateCount: number;
|
|
52
|
+
isFetched: boolean;
|
|
53
|
+
isFetchedAfterMount: boolean;
|
|
54
|
+
isFetching: boolean;
|
|
55
|
+
isInitialLoading: boolean;
|
|
56
|
+
isPaused: boolean;
|
|
57
|
+
isPlaceholderData: boolean;
|
|
58
|
+
isRefetching: boolean;
|
|
59
|
+
isStale: boolean;
|
|
60
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
61
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
62
|
+
} | {
|
|
63
|
+
dashboard: {
|
|
64
|
+
fee?: string | null | undefined;
|
|
65
|
+
volume?: string | null | undefined;
|
|
66
|
+
totalFee?: string | null | undefined;
|
|
67
|
+
totalVolume?: string | null | undefined;
|
|
68
|
+
tvl?: string | null | undefined;
|
|
69
|
+
turnover?: string | null | undefined;
|
|
70
|
+
liquidity?: string | null | undefined;
|
|
71
|
+
baseReserve?: string | null | undefined;
|
|
72
|
+
quoteReserve?: string | null | undefined;
|
|
73
|
+
baseVolume?: string | null | undefined;
|
|
74
|
+
quoteVolume?: string | null | undefined;
|
|
75
|
+
basePrice?: string | null | undefined;
|
|
76
|
+
quotePrice?: string | null | undefined;
|
|
77
|
+
price?: string | null | undefined;
|
|
78
|
+
baseFee?: string | null | undefined;
|
|
79
|
+
quoteFee?: string | null | undefined;
|
|
80
|
+
pair?: string | null | undefined;
|
|
81
|
+
poolType?: string | null | undefined;
|
|
82
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
83
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
84
|
+
baseAddress?: string | null | undefined;
|
|
85
|
+
baseSymbol?: string | null | undefined;
|
|
86
|
+
quoteAddress?: string | null | undefined;
|
|
87
|
+
quoteSymbol?: string | null | undefined;
|
|
88
|
+
network?: string | null | undefined;
|
|
89
|
+
pairAddress?: string | null | undefined;
|
|
90
|
+
txes?: number | null | undefined;
|
|
91
|
+
txesNear24h?: number | null | undefined;
|
|
92
|
+
txUsers?: number | null | undefined;
|
|
93
|
+
txUserNear24h?: number | null | undefined;
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery;
|
|
96
|
+
error: null;
|
|
97
|
+
isError: false;
|
|
98
|
+
isPending: false;
|
|
99
|
+
isLoading: false;
|
|
100
|
+
isLoadingError: false;
|
|
101
|
+
isRefetchError: false;
|
|
102
|
+
isSuccess: true;
|
|
103
|
+
status: "success";
|
|
104
|
+
dataUpdatedAt: number;
|
|
105
|
+
errorUpdatedAt: number;
|
|
106
|
+
failureCount: number;
|
|
107
|
+
failureReason: Error | null;
|
|
108
|
+
errorUpdateCount: number;
|
|
109
|
+
isFetched: boolean;
|
|
110
|
+
isFetchedAfterMount: boolean;
|
|
111
|
+
isFetching: boolean;
|
|
112
|
+
isInitialLoading: boolean;
|
|
113
|
+
isPaused: boolean;
|
|
114
|
+
isPlaceholderData: boolean;
|
|
115
|
+
isRefetching: boolean;
|
|
116
|
+
isStale: boolean;
|
|
117
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
118
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
119
|
+
} | {
|
|
120
|
+
dashboard: {
|
|
121
|
+
fee?: string | null | undefined;
|
|
122
|
+
volume?: string | null | undefined;
|
|
123
|
+
totalFee?: string | null | undefined;
|
|
124
|
+
totalVolume?: string | null | undefined;
|
|
125
|
+
tvl?: string | null | undefined;
|
|
126
|
+
turnover?: string | null | undefined;
|
|
127
|
+
liquidity?: string | null | undefined;
|
|
128
|
+
baseReserve?: string | null | undefined;
|
|
129
|
+
quoteReserve?: string | null | undefined;
|
|
130
|
+
baseVolume?: string | null | undefined;
|
|
131
|
+
quoteVolume?: string | null | undefined;
|
|
132
|
+
basePrice?: string | null | undefined;
|
|
133
|
+
quotePrice?: string | null | undefined;
|
|
134
|
+
price?: string | null | undefined;
|
|
135
|
+
baseFee?: string | null | undefined;
|
|
136
|
+
quoteFee?: string | null | undefined;
|
|
137
|
+
pair?: string | null | undefined;
|
|
138
|
+
poolType?: string | null | undefined;
|
|
139
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
140
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
141
|
+
baseAddress?: string | null | undefined;
|
|
142
|
+
baseSymbol?: string | null | undefined;
|
|
143
|
+
quoteAddress?: string | null | undefined;
|
|
144
|
+
quoteSymbol?: string | null | undefined;
|
|
145
|
+
network?: string | null | undefined;
|
|
146
|
+
pairAddress?: string | null | undefined;
|
|
147
|
+
txes?: number | null | undefined;
|
|
148
|
+
txesNear24h?: number | null | undefined;
|
|
149
|
+
txUsers?: number | null | undefined;
|
|
150
|
+
txUserNear24h?: number | null | undefined;
|
|
151
|
+
} | null | undefined;
|
|
152
|
+
data: undefined;
|
|
153
|
+
error: Error;
|
|
154
|
+
isError: true;
|
|
155
|
+
isPending: false;
|
|
156
|
+
isLoading: false;
|
|
157
|
+
isLoadingError: true;
|
|
158
|
+
isRefetchError: false;
|
|
159
|
+
isSuccess: false;
|
|
160
|
+
status: "error";
|
|
161
|
+
dataUpdatedAt: number;
|
|
162
|
+
errorUpdatedAt: number;
|
|
163
|
+
failureCount: number;
|
|
164
|
+
failureReason: Error | null;
|
|
165
|
+
errorUpdateCount: number;
|
|
166
|
+
isFetched: boolean;
|
|
167
|
+
isFetchedAfterMount: boolean;
|
|
168
|
+
isFetching: boolean;
|
|
169
|
+
isInitialLoading: boolean;
|
|
170
|
+
isPaused: boolean;
|
|
171
|
+
isPlaceholderData: boolean;
|
|
172
|
+
isRefetching: boolean;
|
|
173
|
+
isStale: boolean;
|
|
174
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
175
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
176
|
+
} | {
|
|
177
|
+
dashboard: {
|
|
178
|
+
fee?: string | null | undefined;
|
|
179
|
+
volume?: string | null | undefined;
|
|
180
|
+
totalFee?: string | null | undefined;
|
|
181
|
+
totalVolume?: string | null | undefined;
|
|
182
|
+
tvl?: string | null | undefined;
|
|
183
|
+
turnover?: string | null | undefined;
|
|
184
|
+
liquidity?: string | null | undefined;
|
|
185
|
+
baseReserve?: string | null | undefined;
|
|
186
|
+
quoteReserve?: string | null | undefined;
|
|
187
|
+
baseVolume?: string | null | undefined;
|
|
188
|
+
quoteVolume?: string | null | undefined;
|
|
189
|
+
basePrice?: string | null | undefined;
|
|
190
|
+
quotePrice?: string | null | undefined;
|
|
191
|
+
price?: string | null | undefined;
|
|
192
|
+
baseFee?: string | null | undefined;
|
|
193
|
+
quoteFee?: string | null | undefined;
|
|
194
|
+
pair?: string | null | undefined;
|
|
195
|
+
poolType?: string | null | undefined;
|
|
196
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
197
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
198
|
+
baseAddress?: string | null | undefined;
|
|
199
|
+
baseSymbol?: string | null | undefined;
|
|
200
|
+
quoteAddress?: string | null | undefined;
|
|
201
|
+
quoteSymbol?: string | null | undefined;
|
|
202
|
+
network?: string | null | undefined;
|
|
203
|
+
pairAddress?: string | null | undefined;
|
|
204
|
+
txes?: number | null | undefined;
|
|
205
|
+
txesNear24h?: number | null | undefined;
|
|
206
|
+
txUsers?: number | null | undefined;
|
|
207
|
+
txUserNear24h?: number | null | undefined;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
data: undefined;
|
|
210
|
+
error: null;
|
|
211
|
+
isError: false;
|
|
212
|
+
isPending: true;
|
|
213
|
+
isLoading: true;
|
|
214
|
+
isLoadingError: false;
|
|
215
|
+
isRefetchError: false;
|
|
216
|
+
isSuccess: false;
|
|
217
|
+
status: "pending";
|
|
218
|
+
dataUpdatedAt: number;
|
|
219
|
+
errorUpdatedAt: number;
|
|
220
|
+
failureCount: number;
|
|
221
|
+
failureReason: Error | null;
|
|
222
|
+
errorUpdateCount: number;
|
|
223
|
+
isFetched: boolean;
|
|
224
|
+
isFetchedAfterMount: boolean;
|
|
225
|
+
isFetching: boolean;
|
|
226
|
+
isInitialLoading: boolean;
|
|
227
|
+
isPaused: boolean;
|
|
228
|
+
isPlaceholderData: boolean;
|
|
229
|
+
isRefetching: boolean;
|
|
230
|
+
isStale: boolean;
|
|
231
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
232
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
233
|
+
} | {
|
|
234
|
+
dashboard: {
|
|
235
|
+
fee?: string | null | undefined;
|
|
236
|
+
volume?: string | null | undefined;
|
|
237
|
+
totalFee?: string | null | undefined;
|
|
238
|
+
totalVolume?: string | null | undefined;
|
|
239
|
+
tvl?: string | null | undefined;
|
|
240
|
+
turnover?: string | null | undefined;
|
|
241
|
+
liquidity?: string | null | undefined;
|
|
242
|
+
baseReserve?: string | null | undefined;
|
|
243
|
+
quoteReserve?: string | null | undefined;
|
|
244
|
+
baseVolume?: string | null | undefined;
|
|
245
|
+
quoteVolume?: string | null | undefined;
|
|
246
|
+
basePrice?: string | null | undefined;
|
|
247
|
+
quotePrice?: string | null | undefined;
|
|
248
|
+
price?: string | null | undefined;
|
|
249
|
+
baseFee?: string | null | undefined;
|
|
250
|
+
quoteFee?: string | null | undefined;
|
|
251
|
+
pair?: string | null | undefined;
|
|
252
|
+
poolType?: string | null | undefined;
|
|
253
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
254
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
255
|
+
baseAddress?: string | null | undefined;
|
|
256
|
+
baseSymbol?: string | null | undefined;
|
|
257
|
+
quoteAddress?: string | null | undefined;
|
|
258
|
+
quoteSymbol?: string | null | undefined;
|
|
259
|
+
network?: string | null | undefined;
|
|
260
|
+
pairAddress?: string | null | undefined;
|
|
261
|
+
txes?: number | null | undefined;
|
|
262
|
+
txesNear24h?: number | null | undefined;
|
|
263
|
+
txUsers?: number | null | undefined;
|
|
264
|
+
txUserNear24h?: number | null | undefined;
|
|
265
|
+
} | null | undefined;
|
|
266
|
+
data: undefined;
|
|
267
|
+
error: null;
|
|
268
|
+
isError: false;
|
|
269
|
+
isPending: true;
|
|
270
|
+
isLoadingError: false;
|
|
271
|
+
isRefetchError: false;
|
|
272
|
+
isSuccess: false;
|
|
273
|
+
status: "pending";
|
|
274
|
+
dataUpdatedAt: number;
|
|
275
|
+
errorUpdatedAt: number;
|
|
276
|
+
failureCount: number;
|
|
277
|
+
failureReason: Error | null;
|
|
278
|
+
errorUpdateCount: number;
|
|
279
|
+
isFetched: boolean;
|
|
280
|
+
isFetchedAfterMount: boolean;
|
|
281
|
+
isFetching: boolean;
|
|
282
|
+
isLoading: boolean;
|
|
283
|
+
isInitialLoading: boolean;
|
|
284
|
+
isPaused: boolean;
|
|
285
|
+
isPlaceholderData: boolean;
|
|
286
|
+
isRefetching: boolean;
|
|
287
|
+
isStale: boolean;
|
|
288
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
289
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
290
|
+
};
|