@dodoex/widgets 3.9.0 → 3.10.0-stable.1
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/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-sBrBH-H_.js → helper-BVGQRRSR.js} +1 -1
- package/dist/{helper-GJHB4oq8.cjs → helper-C8fviKG0.cjs} +1 -1
- package/dist/{index-DKnPJ0nB.cjs → index-7WI5hFkB.cjs} +2 -2
- package/dist/{index-CcMfM2YS.cjs → index-BKd6sNpq.cjs} +5 -5
- package/dist/index-D5dMWrSl.cjs +34 -0
- package/dist/index-DF43ao7D.js +12 -0
- package/dist/index-XapahtHF.js +34 -0
- package/dist/index-rIaPrNwl.js +78 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/AddTokenToMetamask.d.ts +1 -1
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +1 -1
- package/dist/types/components/AutoButton.d.ts +1 -1
- package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +2 -3
- package/dist/types/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +1 -1
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +3 -3
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +1 -1
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +1 -1
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +1 -1
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +1 -1
- package/dist/types/components/Bridge/CompareRoute.d.ts +4 -0
- package/dist/types/components/Bridge/RouteVision.d.ts +7 -0
- package/dist/types/components/Bridge/RouteVisionModal.d.ts +5 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +1 -1
- package/dist/types/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +1 -1
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -1
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +1 -1
- package/dist/types/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +1 -1
- package/dist/types/components/Bridge/SelectBridgeDialog/index.d.ts +1 -1
- package/dist/types/components/CardWidgets.d.ts +19 -10
- package/dist/types/components/Confirm.d.ts +1 -1
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +3 -2
- package/dist/types/components/CopyTooltipToast.d.ts +1 -1
- package/dist/types/components/DataCard/DataCardGroup.d.ts +1 -1
- package/dist/types/components/ErrorMessageDialog.d.ts +3 -2
- package/dist/types/components/GoBack.d.ts +1 -1
- package/dist/types/components/HowItWorks.d.ts +6 -6
- package/dist/types/components/LiquidityLpPartnerReward.d.ts +1 -1
- package/dist/types/components/List/EmptyList.d.ts +2 -2
- package/dist/types/components/List/FailedList.d.ts +1 -1
- package/dist/types/components/LoadMore.d.ts +1 -1
- package/dist/types/components/LoadingRotation.d.ts +1 -1
- package/dist/types/components/Message/Countdown.d.ts +1 -1
- package/dist/types/components/Message/index.d.ts +1 -1
- package/dist/types/components/RiskDialog.d.ts +1 -1
- package/dist/types/components/Select.d.ts +1 -1
- package/dist/types/components/SelectChain.d.ts +3 -3
- package/dist/types/components/SpaceBetweenItem.d.ts +1 -1
- package/dist/types/components/SquaredGoBack.d.ts +5 -0
- package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +4 -0
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +8 -0
- package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +1 -1
- package/dist/types/components/Swap/SwapOrderHistory/RefundModal.d.ts +9 -0
- package/dist/types/components/Swap/SwapOrderHistory/RoutingCard.d.ts +2 -1
- package/dist/types/components/Swap/SwapOrderHistory/RoutingVision.d.ts +6 -5
- package/dist/types/components/Swap/SwapOrderHistory/SameChainOrderList.d.ts +3 -0
- package/dist/types/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +2 -1
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +6 -4
- package/dist/types/components/Swap/components/Dialog.d.ts +2 -2
- package/dist/types/components/Swap/components/FiatEntryAndGasRefuel.d.ts +1 -0
- package/dist/types/components/Swap/components/ReceiveAddressInputModal.d.ts +10 -0
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +2 -1
- package/dist/types/components/Swap/components/RouteVisionModal.d.ts +7 -0
- package/dist/types/components/Swap/components/SettingsDialog/NumberInput.d.ts +1 -1
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/MoreTradeSetting.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/CurveChart.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/SlippageSlider.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/index.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +3 -3
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +2 -4
- package/dist/types/components/Swap/components/SwapSettingsDialog/SupplierSelect.d.ts +5 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +4 -2
- package/dist/types/components/Swap/components/SwitchBox.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +2 -1
- package/dist/types/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +48 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -1
- package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +11 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +3 -3
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +4 -3
- package/dist/types/components/Swap/index.d.ts +2 -4
- package/dist/types/components/Table.d.ts +1 -1
- package/dist/types/components/TextSwitch.d.ts +1 -1
- package/dist/types/components/Token/TokenItem.d.ts +1 -1
- package/dist/types/components/TokenLogoPair.d.ts +1 -1
- package/dist/types/components/TokenLogoSimple.d.ts +2 -1
- package/dist/types/components/TokenPairStatusButton.d.ts +1 -1
- package/dist/types/components/TokenPicker/PopularToken.d.ts +1 -1
- package/dist/types/components/TokenPicker/SelectChainItem.d.ts +1 -1
- package/dist/types/components/TokenPicker/TokenItem.d.ts +4 -4
- package/dist/types/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +1 -1
- package/dist/types/components/TokenPicker/index.d.ts +3 -2
- package/dist/types/components/TokenSelect.d.ts +2 -1
- package/dist/types/components/TokenStatusButton.d.ts +1 -1
- package/dist/types/components/Tooltip/QuestionTooltip.d.ts +1 -1
- package/dist/types/components/UserOptionsProvider.d.ts +1 -1
- package/dist/types/components/Widget/index.d.ts +15 -17
- package/dist/types/components/WidgetConfirm.d.ts +1 -1
- package/dist/types/components/WidgetContainer.d.ts +2 -1
- package/dist/types/components/WidgetDialog.d.ts +1 -1
- package/dist/types/components/WithExecutionDialog/index.d.ts +2 -3
- package/dist/types/components/chart/components/Display.d.ts +1 -1
- package/dist/types/components/chart/components/NumberInput.d.ts +1 -1
- package/dist/types/components/chart/components/TogglePriceIcon.d.ts +2 -2
- package/dist/types/components/chart/components/TokenLogo.d.ts +1 -1
- package/dist/types/components/chart/depth-chart/DepthChartKonva.d.ts +1 -1
- package/dist/types/components/chart/depth-chart-v2/index.d.ts +1 -1
- package/dist/types/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +1 -1
- package/dist/types/components/chart/liquidity-chart/useGridLine.d.ts +1 -1
- package/dist/types/components/chart/liquidity-chart/useHorizontalLabel.d.ts +1 -1
- package/dist/types/components/chart/liquidity-chart/useLiquidityLine.d.ts +2 -2
- package/dist/types/components/chart/liquidity-chart/useMiddleLine.d.ts +1 -1
- package/dist/types/constants/address.d.ts +6 -0
- package/dist/types/constants/api.d.ts +98 -6
- package/dist/types/constants/chainList.d.ts +10 -0
- package/dist/types/constants/chains.d.ts +17 -1
- package/dist/types/constants/sessionStorage.d.ts +1 -0
- package/dist/types/constants/tokenList.d.ts +8 -9
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +5 -25
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useFeeList.d.ts +9 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +134 -48
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +4 -1
- package/dist/types/hooks/Bridge/utils.d.ts +6 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +0 -2
- package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +1 -12
- package/dist/types/hooks/Submission/spec.d.ts +0 -1
- package/dist/types/hooks/Submission/types.d.ts +29 -1
- package/dist/types/hooks/Submission/useExecution.d.ts +1 -1
- package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +1 -1
- package/dist/types/hooks/Swap/useBridgeSlippage.d.ts +3 -0
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +384 -0
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +2 -1
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +2 -4
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +50 -12
- package/dist/types/hooks/Swap/usePrivacySwapStatus.d.ts +10 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -2
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +50 -12
- package/dist/types/hooks/Swap/useSwitchToSupplierChain.d.ts +13 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +169 -29
- package/dist/types/hooks/Token/type.d.ts +3 -1
- package/dist/types/hooks/Token/useInitTokenList.d.ts +2 -2
- package/dist/types/hooks/Token/useSelectChainList.d.ts +5 -5
- package/dist/types/hooks/Token/useTokenList.d.ts +4 -7
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +1 -4
- package/dist/types/hooks/Token/useTokenStatus.d.ts +31 -5
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +22 -1
- package/dist/types/hooks/contract/useFetchMultiTokensForSingleChain.d.ts +20 -0
- package/dist/types/hooks/contract/useFetchTokens.d.ts +9 -4
- package/dist/types/hooks/useAddressValidation.d.ts +2 -0
- package/dist/types/hooks/useGlobalState.d.ts +2 -0
- package/dist/types/hooks/useGraphQLRequests.d.ts +2 -2
- package/dist/types/hooks/useRouteVisionData.d.ts +17 -1
- package/dist/types/index.d.ts +27 -35
- package/dist/types/providers/i18n.d.ts +1 -1
- package/dist/types/router/types.d.ts +5 -0
- package/dist/types/utils/CaipNetworksUtil.d.ts +5 -0
- package/dist/types/utils/address.d.ts +1 -1
- package/dist/types/utils/btc.d.ts +42 -0
- package/dist/types/utils/chains.d.ts +1 -1
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/formatter.d.ts +0 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/reown-types.d.ts +28 -0
- package/dist/types/utils/solana.d.ts +7 -0
- package/dist/types/utils/token.d.ts +1 -1
- package/dist/types/utils/ton.d.ts +3 -0
- package/dist/types/utils/wallet.d.ts +2 -0
- package/dist/types/utils/zetachain_btc_test.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolCard.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolPicker.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardDetailList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardTokenSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/SectionTitle.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StakingRules.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StepTitle.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDexList.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +27 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/index.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/CreateMiningTypeSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/RewardForm.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/SingleTokenSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/TokenPairSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningDetail/MiningInfo.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningDetail/RewardCard.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/MiningDetail/index.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningDetail/widgets.d.ts +4 -4
- package/dist/types/widgets/MiningWidget/MiningList/components/APRSection.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/MiningList/components/CloseButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/GoBack.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/ManageButtonList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningCardLayout.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListEmpty.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListLoading.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningStatusTabSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTags.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTitle.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MyStakedSection.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/OperateButtonList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/RewardsSection.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/SearchComponents.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/ShareModeSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/TVLSection.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/TokenAmountPopover.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/UnknownUSDPopover.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/UsersIcon.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/widgets.d.ts +5 -5
- package/dist/types/widgets/MiningWidget/MiningList/dom.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenTrigger.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +5 -4
- package/dist/types/widgets/MiningWidget/MiningList/index.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/MiningList/my-created/MyCreatedMining.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/my-created/OperateArea.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/my-created/RewardCard.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/my-created/index.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/AssociatedMine.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimTips.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/GetLpLink.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/InputArea.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/PercentageSelectButtonGroup.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardListCard.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardTokenTable.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeTokenSelect.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/index.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/StakeButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/Widgets.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/helper.d.ts +2 -1
- package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +8 -2
- package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/ConfirmDialog.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/CreateItem.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/FeeEdit.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/MyLiqidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +3 -6
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSetList.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +9 -9
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/GasWrapGasTokenError.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +1 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/RatioSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/TokenPairSelect.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +4 -3
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +45 -12
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +265 -17
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +85 -17
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +181 -17
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +8 -6
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +4 -8
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +9 -6
- package/dist/types/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/CreatePoolBtn.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterGroup.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/SortButtonGroup.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TableSortButton.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/tags.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +55 -1
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +41 -7
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +9 -8
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +4 -7
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +2 -4
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +4 -5
- package/dist/types/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/GSPPairRiskWarning.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +2 -6
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +10 -4
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +55 -8
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +2 -5
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/curve/Add.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/AddOrRemove.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/curve/CurvePoolDetail.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/OperateDialog.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/Remove.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/ApyTooltip.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/CoinReservePieChart.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/CoinsLogoList.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/LiquidityProvidersTable.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/OperateButtonContainer.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/curve/components/ParametersTable.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/PoolTitle.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/PoolTotalStats.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/components/SlippageBonus.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/curve/components/SwapsTable.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/useLiquidityProviders.d.ts +268 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/useLpTokenBalances.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolDetail.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolSwapList.d.ts +310 -0
- package/dist/types/widgets/PoolWidget/curve/types.d.ts +44 -0
- package/dist/types/widgets/PoolWidget/curve/utils.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +10 -11
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +351 -18
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +4 -4
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +6 -3
- package/dist/types/widgets/PoolWidget/index.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/utils.d.ts +7 -3
- package/package.json +4 -4
- package/dist/28442382d977858a.svg +0 -9
- package/dist/8de9a184d4ef0a11.svg +0 -6
- package/dist/assets/bundle-DSSoJu9z.css +0 -297
- package/dist/b3f16b2626f03378.svg +0 -10
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/index-C8rp6R1p.js +0 -78
- package/dist/index-CuS8svoM.js +0 -12
- package/dist/index-DOzaJQ79.js +0 -31
- package/dist/index-pvGJ8Vpc.cjs +0 -31
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -4
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -1
- package/dist/types/components/SubmittedDialog.d.ts +0 -6
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +0 -5
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +0 -7
- package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +0 -8
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
- package/dist/types/hooks/ConnectWallet/web3.d.ts +0 -10
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +0 -15
- /package/dist/types/hooks/{Bridge/useFetchRoutePriceBridge.test.d.ts → useAddressValidation.test.d.ts} +0 -0
- /package/dist/types/{widgets/MiningWidget/hooks → hooks}/useRefetch.d.ts +0 -0
- /package/dist/types/{hooks/Chain/useChainList.test.d.ts → tests/1-get-account-state.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useFetchFiatPrice.test.d.ts → tests/1-send-ton.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useFetchRoutePrice.test.d.ts → utils/sui_test.d.ts} +0 -0
- /package/dist/types/{hooks/Swap/useMarginAmount.test.d.ts → utils/ton_test.d.ts} +0 -0
|
@@ -9,4 +9,4 @@ export declare function useAMMV2AddLiquidity({ baseToken, quoteToken, baseAmount
|
|
|
9
9
|
isExists?: boolean;
|
|
10
10
|
successBack?: () => void;
|
|
11
11
|
submittedBack?: () => void;
|
|
12
|
-
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult
|
|
12
|
+
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult, Error, void, unknown>;
|
|
@@ -8,4 +8,4 @@ export declare function useAMMV2RemoveLiquidity({ baseToken, quoteToken, baseAmo
|
|
|
8
8
|
slippage: number;
|
|
9
9
|
fee: number | undefined;
|
|
10
10
|
submittedBack?: () => void;
|
|
11
|
-
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult
|
|
11
|
+
}): import("@tanstack/react-query").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult, Error, void, unknown>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PoolType } from '@dodoex/api';
|
|
2
|
-
import { BigNumber } from 'bignumber.js';
|
|
3
2
|
type Balance = BigNumber | null | undefined;
|
|
4
3
|
export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): undefined[] | BigNumber[];
|
|
5
4
|
export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
@@ -15,28 +14,28 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
15
14
|
};
|
|
16
15
|
}): {
|
|
17
16
|
/** existing base lp balance */
|
|
18
|
-
totalBaseLpBalance:
|
|
17
|
+
totalBaseLpBalance: BigNumber | null | undefined;
|
|
19
18
|
/** existing quote lp balance */
|
|
20
|
-
totalQuoteLpBalance:
|
|
19
|
+
totalQuoteLpBalance: BigNumber | null | undefined;
|
|
21
20
|
/** the total deposited base lp balance */
|
|
22
|
-
baseReserve:
|
|
21
|
+
baseReserve: BigNumber | undefined;
|
|
23
22
|
/** the total deposited quote lp balance */
|
|
24
|
-
quoteReserve:
|
|
23
|
+
quoteReserve: BigNumber | undefined;
|
|
25
24
|
/** classical base equilibrium target */
|
|
26
|
-
classicalBaseTarget:
|
|
25
|
+
classicalBaseTarget: BigNumber | undefined;
|
|
27
26
|
/** classical quote equilibrium target */
|
|
28
|
-
classicalQuoteTarget:
|
|
27
|
+
classicalQuoteTarget: BigNumber | undefined;
|
|
29
28
|
/** the user's existing base lp balance */
|
|
30
|
-
userBaseLpBalance:
|
|
29
|
+
userBaseLpBalance: Balance;
|
|
31
30
|
/** the user's existing quote lp balance */
|
|
32
|
-
userQuoteLpBalance:
|
|
31
|
+
userQuoteLpBalance: Balance;
|
|
33
32
|
/** The number of base that can be obtained when a user withdraws from the pool */
|
|
34
|
-
userBaseLpToTokenBalance:
|
|
33
|
+
userBaseLpToTokenBalance: BigNumber | undefined;
|
|
35
34
|
/** The number of quote that can be obtained when a user withdraws from the pool */
|
|
36
35
|
userQuoteLpToTokenBalance: BigNumber | null | undefined;
|
|
37
36
|
baseLpToTokenProportion: BigNumber | undefined;
|
|
38
37
|
quoteLpToTokenProportion: BigNumber | undefined;
|
|
39
|
-
isSinglePool:
|
|
38
|
+
isSinglePool: boolean;
|
|
40
39
|
userLpBalanceLoading: boolean;
|
|
41
40
|
userLpToTokenBalanceLoading: boolean;
|
|
42
41
|
userLpBalanceError: boolean;
|
|
@@ -1,10 +1,61 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
1
|
+
import { ChainId, PoolType } from '@dodoex/api';
|
|
2
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
2
3
|
export declare function usePoolDetail({ id, chainId, }: {
|
|
3
4
|
id: string | undefined;
|
|
4
5
|
chainId: ChainId | undefined;
|
|
5
6
|
}): {
|
|
6
|
-
poolDetail:
|
|
7
|
-
|
|
7
|
+
poolDetail: {
|
|
8
|
+
address: string;
|
|
9
|
+
type: PoolType;
|
|
10
|
+
chainId: ChainId;
|
|
11
|
+
baseToken: TokenInfo;
|
|
12
|
+
quoteToken: TokenInfo;
|
|
13
|
+
miningAddress: string;
|
|
14
|
+
apy: {
|
|
15
|
+
miningBaseApy?: any | null;
|
|
16
|
+
miningQuoteApy?: any | null;
|
|
17
|
+
transactionBaseApy?: any | null;
|
|
18
|
+
transactionQuoteApy?: any | null;
|
|
19
|
+
metromMiningApy?: any | null;
|
|
20
|
+
} | null | undefined;
|
|
21
|
+
baseApy: string | undefined;
|
|
22
|
+
quoteApy: string | undefined;
|
|
23
|
+
isCpPool: boolean;
|
|
24
|
+
cpAddress: string | undefined;
|
|
25
|
+
cpLiquidator: string | undefined;
|
|
26
|
+
cpCreator: string | undefined;
|
|
27
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
28
|
+
id: string;
|
|
29
|
+
creator: any;
|
|
30
|
+
owner?: any | null;
|
|
31
|
+
traderCount: any;
|
|
32
|
+
volumeBaseToken: any;
|
|
33
|
+
volumeQuoteToken: any;
|
|
34
|
+
volumeUSD: any;
|
|
35
|
+
feeBase: any;
|
|
36
|
+
feeQuote: any;
|
|
37
|
+
mtFeeRate: any;
|
|
38
|
+
lpFeeRate: any;
|
|
39
|
+
i?: any | null;
|
|
40
|
+
k?: any | null;
|
|
41
|
+
baseReserve: any;
|
|
42
|
+
quoteReserve: any;
|
|
43
|
+
createdAtTimestamp: any;
|
|
44
|
+
lastTradePrice: any;
|
|
45
|
+
baseLpToken?: {
|
|
46
|
+
id: string;
|
|
47
|
+
symbol: string;
|
|
48
|
+
name: string;
|
|
49
|
+
decimals: any;
|
|
50
|
+
} | null;
|
|
51
|
+
quoteLpToken?: {
|
|
52
|
+
id: string;
|
|
53
|
+
symbol: string;
|
|
54
|
+
name: string;
|
|
55
|
+
decimals: any;
|
|
56
|
+
} | null;
|
|
57
|
+
} | null;
|
|
58
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
8
59
|
error: Error;
|
|
9
60
|
isError: true;
|
|
10
61
|
isPending: false;
|
|
@@ -12,6 +63,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
12
63
|
isLoadingError: false;
|
|
13
64
|
isRefetchError: true;
|
|
14
65
|
isSuccess: false;
|
|
66
|
+
isPlaceholderData: false;
|
|
15
67
|
status: "error";
|
|
16
68
|
dataUpdatedAt: number;
|
|
17
69
|
errorUpdatedAt: number;
|
|
@@ -23,14 +75,64 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
23
75
|
isFetching: boolean;
|
|
24
76
|
isInitialLoading: boolean;
|
|
25
77
|
isPaused: boolean;
|
|
26
|
-
isPlaceholderData: boolean;
|
|
27
78
|
isRefetching: boolean;
|
|
28
79
|
isStale: boolean;
|
|
29
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
80
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
30
81
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
82
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
31
83
|
} | {
|
|
32
|
-
poolDetail:
|
|
33
|
-
|
|
84
|
+
poolDetail: {
|
|
85
|
+
address: string;
|
|
86
|
+
type: PoolType;
|
|
87
|
+
chainId: ChainId;
|
|
88
|
+
baseToken: TokenInfo;
|
|
89
|
+
quoteToken: TokenInfo;
|
|
90
|
+
miningAddress: string;
|
|
91
|
+
apy: {
|
|
92
|
+
miningBaseApy?: any | null;
|
|
93
|
+
miningQuoteApy?: any | null;
|
|
94
|
+
transactionBaseApy?: any | null;
|
|
95
|
+
transactionQuoteApy?: any | null;
|
|
96
|
+
metromMiningApy?: any | null;
|
|
97
|
+
} | null | undefined;
|
|
98
|
+
baseApy: string | undefined;
|
|
99
|
+
quoteApy: string | undefined;
|
|
100
|
+
isCpPool: boolean;
|
|
101
|
+
cpAddress: string | undefined;
|
|
102
|
+
cpLiquidator: string | undefined;
|
|
103
|
+
cpCreator: string | undefined;
|
|
104
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
105
|
+
id: string;
|
|
106
|
+
creator: any;
|
|
107
|
+
owner?: any | null;
|
|
108
|
+
traderCount: any;
|
|
109
|
+
volumeBaseToken: any;
|
|
110
|
+
volumeQuoteToken: any;
|
|
111
|
+
volumeUSD: any;
|
|
112
|
+
feeBase: any;
|
|
113
|
+
feeQuote: any;
|
|
114
|
+
mtFeeRate: any;
|
|
115
|
+
lpFeeRate: any;
|
|
116
|
+
i?: any | null;
|
|
117
|
+
k?: any | null;
|
|
118
|
+
baseReserve: any;
|
|
119
|
+
quoteReserve: any;
|
|
120
|
+
createdAtTimestamp: any;
|
|
121
|
+
lastTradePrice: any;
|
|
122
|
+
baseLpToken?: {
|
|
123
|
+
id: string;
|
|
124
|
+
symbol: string;
|
|
125
|
+
name: string;
|
|
126
|
+
decimals: any;
|
|
127
|
+
} | null;
|
|
128
|
+
quoteLpToken?: {
|
|
129
|
+
id: string;
|
|
130
|
+
symbol: string;
|
|
131
|
+
name: string;
|
|
132
|
+
decimals: any;
|
|
133
|
+
} | null;
|
|
134
|
+
} | null;
|
|
135
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
34
136
|
error: null;
|
|
35
137
|
isError: false;
|
|
36
138
|
isPending: false;
|
|
@@ -38,6 +140,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
38
140
|
isLoadingError: false;
|
|
39
141
|
isRefetchError: false;
|
|
40
142
|
isSuccess: true;
|
|
143
|
+
isPlaceholderData: false;
|
|
41
144
|
status: "success";
|
|
42
145
|
dataUpdatedAt: number;
|
|
43
146
|
errorUpdatedAt: number;
|
|
@@ -49,13 +152,63 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
49
152
|
isFetching: boolean;
|
|
50
153
|
isInitialLoading: boolean;
|
|
51
154
|
isPaused: boolean;
|
|
52
|
-
isPlaceholderData: boolean;
|
|
53
155
|
isRefetching: boolean;
|
|
54
156
|
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
157
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
56
158
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
159
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
57
160
|
} | {
|
|
58
|
-
poolDetail:
|
|
161
|
+
poolDetail: {
|
|
162
|
+
address: string;
|
|
163
|
+
type: PoolType;
|
|
164
|
+
chainId: ChainId;
|
|
165
|
+
baseToken: TokenInfo;
|
|
166
|
+
quoteToken: TokenInfo;
|
|
167
|
+
miningAddress: string;
|
|
168
|
+
apy: {
|
|
169
|
+
miningBaseApy?: any | null;
|
|
170
|
+
miningQuoteApy?: any | null;
|
|
171
|
+
transactionBaseApy?: any | null;
|
|
172
|
+
transactionQuoteApy?: any | null;
|
|
173
|
+
metromMiningApy?: any | null;
|
|
174
|
+
} | null | undefined;
|
|
175
|
+
baseApy: string | undefined;
|
|
176
|
+
quoteApy: string | undefined;
|
|
177
|
+
isCpPool: boolean;
|
|
178
|
+
cpAddress: string | undefined;
|
|
179
|
+
cpLiquidator: string | undefined;
|
|
180
|
+
cpCreator: string | undefined;
|
|
181
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
182
|
+
id: string;
|
|
183
|
+
creator: any;
|
|
184
|
+
owner?: any | null;
|
|
185
|
+
traderCount: any;
|
|
186
|
+
volumeBaseToken: any;
|
|
187
|
+
volumeQuoteToken: any;
|
|
188
|
+
volumeUSD: any;
|
|
189
|
+
feeBase: any;
|
|
190
|
+
feeQuote: any;
|
|
191
|
+
mtFeeRate: any;
|
|
192
|
+
lpFeeRate: any;
|
|
193
|
+
i?: any | null;
|
|
194
|
+
k?: any | null;
|
|
195
|
+
baseReserve: any;
|
|
196
|
+
quoteReserve: any;
|
|
197
|
+
createdAtTimestamp: any;
|
|
198
|
+
lastTradePrice: any;
|
|
199
|
+
baseLpToken?: {
|
|
200
|
+
id: string;
|
|
201
|
+
symbol: string;
|
|
202
|
+
name: string;
|
|
203
|
+
decimals: any;
|
|
204
|
+
} | null;
|
|
205
|
+
quoteLpToken?: {
|
|
206
|
+
id: string;
|
|
207
|
+
symbol: string;
|
|
208
|
+
name: string;
|
|
209
|
+
decimals: any;
|
|
210
|
+
} | null;
|
|
211
|
+
} | null;
|
|
59
212
|
data: undefined;
|
|
60
213
|
error: Error;
|
|
61
214
|
isError: true;
|
|
@@ -64,6 +217,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
64
217
|
isLoadingError: true;
|
|
65
218
|
isRefetchError: false;
|
|
66
219
|
isSuccess: false;
|
|
220
|
+
isPlaceholderData: false;
|
|
67
221
|
status: "error";
|
|
68
222
|
dataUpdatedAt: number;
|
|
69
223
|
errorUpdatedAt: number;
|
|
@@ -75,13 +229,63 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
75
229
|
isFetching: boolean;
|
|
76
230
|
isInitialLoading: boolean;
|
|
77
231
|
isPaused: boolean;
|
|
78
|
-
isPlaceholderData: boolean;
|
|
79
232
|
isRefetching: boolean;
|
|
80
233
|
isStale: boolean;
|
|
81
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
234
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
82
235
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
236
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
83
237
|
} | {
|
|
84
|
-
poolDetail:
|
|
238
|
+
poolDetail: {
|
|
239
|
+
address: string;
|
|
240
|
+
type: PoolType;
|
|
241
|
+
chainId: ChainId;
|
|
242
|
+
baseToken: TokenInfo;
|
|
243
|
+
quoteToken: TokenInfo;
|
|
244
|
+
miningAddress: string;
|
|
245
|
+
apy: {
|
|
246
|
+
miningBaseApy?: any | null;
|
|
247
|
+
miningQuoteApy?: any | null;
|
|
248
|
+
transactionBaseApy?: any | null;
|
|
249
|
+
transactionQuoteApy?: any | null;
|
|
250
|
+
metromMiningApy?: any | null;
|
|
251
|
+
} | null | undefined;
|
|
252
|
+
baseApy: string | undefined;
|
|
253
|
+
quoteApy: string | undefined;
|
|
254
|
+
isCpPool: boolean;
|
|
255
|
+
cpAddress: string | undefined;
|
|
256
|
+
cpLiquidator: string | undefined;
|
|
257
|
+
cpCreator: string | undefined;
|
|
258
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
259
|
+
id: string;
|
|
260
|
+
creator: any;
|
|
261
|
+
owner?: any | null;
|
|
262
|
+
traderCount: any;
|
|
263
|
+
volumeBaseToken: any;
|
|
264
|
+
volumeQuoteToken: any;
|
|
265
|
+
volumeUSD: any;
|
|
266
|
+
feeBase: any;
|
|
267
|
+
feeQuote: any;
|
|
268
|
+
mtFeeRate: any;
|
|
269
|
+
lpFeeRate: any;
|
|
270
|
+
i?: any | null;
|
|
271
|
+
k?: any | null;
|
|
272
|
+
baseReserve: any;
|
|
273
|
+
quoteReserve: any;
|
|
274
|
+
createdAtTimestamp: any;
|
|
275
|
+
lastTradePrice: any;
|
|
276
|
+
baseLpToken?: {
|
|
277
|
+
id: string;
|
|
278
|
+
symbol: string;
|
|
279
|
+
name: string;
|
|
280
|
+
decimals: any;
|
|
281
|
+
} | null;
|
|
282
|
+
quoteLpToken?: {
|
|
283
|
+
id: string;
|
|
284
|
+
symbol: string;
|
|
285
|
+
name: string;
|
|
286
|
+
decimals: any;
|
|
287
|
+
} | null;
|
|
288
|
+
} | null;
|
|
85
289
|
data: undefined;
|
|
86
290
|
error: null;
|
|
87
291
|
isError: false;
|
|
@@ -90,6 +294,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
90
294
|
isLoadingError: false;
|
|
91
295
|
isRefetchError: false;
|
|
92
296
|
isSuccess: false;
|
|
297
|
+
isPlaceholderData: false;
|
|
93
298
|
status: "pending";
|
|
94
299
|
dataUpdatedAt: number;
|
|
95
300
|
errorUpdatedAt: number;
|
|
@@ -101,13 +306,63 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
101
306
|
isFetching: boolean;
|
|
102
307
|
isInitialLoading: boolean;
|
|
103
308
|
isPaused: boolean;
|
|
104
|
-
isPlaceholderData: boolean;
|
|
105
309
|
isRefetching: boolean;
|
|
106
310
|
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
311
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
108
312
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
313
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
109
314
|
} | {
|
|
110
|
-
poolDetail:
|
|
315
|
+
poolDetail: {
|
|
316
|
+
address: string;
|
|
317
|
+
type: PoolType;
|
|
318
|
+
chainId: ChainId;
|
|
319
|
+
baseToken: TokenInfo;
|
|
320
|
+
quoteToken: TokenInfo;
|
|
321
|
+
miningAddress: string;
|
|
322
|
+
apy: {
|
|
323
|
+
miningBaseApy?: any | null;
|
|
324
|
+
miningQuoteApy?: any | null;
|
|
325
|
+
transactionBaseApy?: any | null;
|
|
326
|
+
transactionQuoteApy?: any | null;
|
|
327
|
+
metromMiningApy?: any | null;
|
|
328
|
+
} | null | undefined;
|
|
329
|
+
baseApy: string | undefined;
|
|
330
|
+
quoteApy: string | undefined;
|
|
331
|
+
isCpPool: boolean;
|
|
332
|
+
cpAddress: string | undefined;
|
|
333
|
+
cpLiquidator: string | undefined;
|
|
334
|
+
cpCreator: string | undefined;
|
|
335
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
336
|
+
id: string;
|
|
337
|
+
creator: any;
|
|
338
|
+
owner?: any | null;
|
|
339
|
+
traderCount: any;
|
|
340
|
+
volumeBaseToken: any;
|
|
341
|
+
volumeQuoteToken: any;
|
|
342
|
+
volumeUSD: any;
|
|
343
|
+
feeBase: any;
|
|
344
|
+
feeQuote: any;
|
|
345
|
+
mtFeeRate: any;
|
|
346
|
+
lpFeeRate: any;
|
|
347
|
+
i?: any | null;
|
|
348
|
+
k?: any | null;
|
|
349
|
+
baseReserve: any;
|
|
350
|
+
quoteReserve: any;
|
|
351
|
+
createdAtTimestamp: any;
|
|
352
|
+
lastTradePrice: any;
|
|
353
|
+
baseLpToken?: {
|
|
354
|
+
id: string;
|
|
355
|
+
symbol: string;
|
|
356
|
+
name: string;
|
|
357
|
+
decimals: any;
|
|
358
|
+
} | null;
|
|
359
|
+
quoteLpToken?: {
|
|
360
|
+
id: string;
|
|
361
|
+
symbol: string;
|
|
362
|
+
name: string;
|
|
363
|
+
decimals: any;
|
|
364
|
+
} | null;
|
|
365
|
+
} | null;
|
|
111
366
|
data: undefined;
|
|
112
367
|
error: null;
|
|
113
368
|
isError: false;
|
|
@@ -115,6 +370,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
115
370
|
isLoadingError: false;
|
|
116
371
|
isRefetchError: false;
|
|
117
372
|
isSuccess: false;
|
|
373
|
+
isPlaceholderData: false;
|
|
118
374
|
status: "pending";
|
|
119
375
|
dataUpdatedAt: number;
|
|
120
376
|
errorUpdatedAt: number;
|
|
@@ -127,9 +383,86 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
127
383
|
isLoading: boolean;
|
|
128
384
|
isInitialLoading: boolean;
|
|
129
385
|
isPaused: boolean;
|
|
130
|
-
isPlaceholderData: boolean;
|
|
131
386
|
isRefetching: boolean;
|
|
132
387
|
isStale: boolean;
|
|
133
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
388
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
134
389
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
390
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
391
|
+
} | {
|
|
392
|
+
poolDetail: {
|
|
393
|
+
address: string;
|
|
394
|
+
type: PoolType;
|
|
395
|
+
chainId: ChainId;
|
|
396
|
+
baseToken: TokenInfo;
|
|
397
|
+
quoteToken: TokenInfo;
|
|
398
|
+
miningAddress: string;
|
|
399
|
+
apy: {
|
|
400
|
+
miningBaseApy?: any | null;
|
|
401
|
+
miningQuoteApy?: any | null;
|
|
402
|
+
transactionBaseApy?: any | null;
|
|
403
|
+
transactionQuoteApy?: any | null;
|
|
404
|
+
metromMiningApy?: any | null;
|
|
405
|
+
} | null | undefined;
|
|
406
|
+
baseApy: string | undefined;
|
|
407
|
+
quoteApy: string | undefined;
|
|
408
|
+
isCpPool: boolean;
|
|
409
|
+
cpAddress: string | undefined;
|
|
410
|
+
cpLiquidator: string | undefined;
|
|
411
|
+
cpCreator: string | undefined;
|
|
412
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
413
|
+
id: string;
|
|
414
|
+
creator: any;
|
|
415
|
+
owner?: any | null;
|
|
416
|
+
traderCount: any;
|
|
417
|
+
volumeBaseToken: any;
|
|
418
|
+
volumeQuoteToken: any;
|
|
419
|
+
volumeUSD: any;
|
|
420
|
+
feeBase: any;
|
|
421
|
+
feeQuote: any;
|
|
422
|
+
mtFeeRate: any;
|
|
423
|
+
lpFeeRate: any;
|
|
424
|
+
i?: any | null;
|
|
425
|
+
k?: any | null;
|
|
426
|
+
baseReserve: any;
|
|
427
|
+
quoteReserve: any;
|
|
428
|
+
createdAtTimestamp: any;
|
|
429
|
+
lastTradePrice: any;
|
|
430
|
+
baseLpToken?: {
|
|
431
|
+
id: string;
|
|
432
|
+
symbol: string;
|
|
433
|
+
name: string;
|
|
434
|
+
decimals: any;
|
|
435
|
+
} | null;
|
|
436
|
+
quoteLpToken?: {
|
|
437
|
+
id: string;
|
|
438
|
+
symbol: string;
|
|
439
|
+
name: string;
|
|
440
|
+
decimals: any;
|
|
441
|
+
} | null;
|
|
442
|
+
} | null;
|
|
443
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
444
|
+
isError: false;
|
|
445
|
+
error: null;
|
|
446
|
+
isPending: false;
|
|
447
|
+
isLoading: false;
|
|
448
|
+
isLoadingError: false;
|
|
449
|
+
isRefetchError: false;
|
|
450
|
+
isSuccess: true;
|
|
451
|
+
isPlaceholderData: true;
|
|
452
|
+
status: "success";
|
|
453
|
+
dataUpdatedAt: number;
|
|
454
|
+
errorUpdatedAt: number;
|
|
455
|
+
failureCount: number;
|
|
456
|
+
failureReason: Error | null;
|
|
457
|
+
errorUpdateCount: number;
|
|
458
|
+
isFetched: boolean;
|
|
459
|
+
isFetchedAfterMount: boolean;
|
|
460
|
+
isFetching: boolean;
|
|
461
|
+
isInitialLoading: boolean;
|
|
462
|
+
isPaused: boolean;
|
|
463
|
+
isRefetching: boolean;
|
|
464
|
+
isStale: boolean;
|
|
465
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
466
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
467
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
135
468
|
};
|
|
@@ -3,14 +3,14 @@ import { Theme } from '@dodoex/components';
|
|
|
3
3
|
import BigNumber from 'bignumber.js';
|
|
4
4
|
export declare const getPoolTypeTag: (type: PoolType, quoteReserve: BigNumber | undefined | null, theme: Theme) => {
|
|
5
5
|
typeLabel: string;
|
|
6
|
-
typeColor:
|
|
7
|
-
typeBgColor:
|
|
6
|
+
typeColor: string;
|
|
7
|
+
typeBgColor: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const usePoolTypeTag: ({ type, quoteReserve, }: {
|
|
10
10
|
type: PoolType;
|
|
11
11
|
quoteReserve: BigNumber | undefined | null;
|
|
12
12
|
}) => {
|
|
13
13
|
typeLabel: string;
|
|
14
|
-
typeColor:
|
|
15
|
-
typeBgColor:
|
|
14
|
+
typeColor: string;
|
|
15
|
+
typeBgColor: string;
|
|
16
16
|
};
|
|
@@ -9,10 +9,10 @@ export declare function useUniV2CreatePairs({ baseToken, quoteToken, baseAmount,
|
|
|
9
9
|
pairAddress: string | undefined;
|
|
10
10
|
pair: import("@uniswap/v2-sdk").Pair | null;
|
|
11
11
|
isInvalidPair: boolean;
|
|
12
|
-
price:
|
|
13
|
-
invertedPrice:
|
|
12
|
+
price: BigNumber | undefined;
|
|
13
|
+
invertedPrice: BigNumber | undefined;
|
|
14
14
|
priceLoading: boolean;
|
|
15
|
-
liquidityMinted:
|
|
15
|
+
liquidityMinted: BigNumber | undefined;
|
|
16
16
|
shareOfPool: string;
|
|
17
17
|
isExists: boolean;
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
2
1
|
import { Pair } from '@uniswap/v2-sdk';
|
|
3
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
4
|
export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
5
5
|
pool?: {
|
|
6
6
|
type: string;
|
|
@@ -15,8 +15,11 @@ export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
|
15
15
|
pair: Pair | null;
|
|
16
16
|
price: BigNumber | undefined;
|
|
17
17
|
invertedPrice: BigNumber | undefined;
|
|
18
|
-
reserveQuery: import("@tanstack/react-query").UseQueryResult<
|
|
19
|
-
|
|
18
|
+
reserveQuery: import("@tanstack/react-query").UseQueryResult<{
|
|
19
|
+
baseReserve: BigNumber;
|
|
20
|
+
quoteReserve: BigNumber;
|
|
21
|
+
} | null, Error>;
|
|
22
|
+
totalBaseLpQuery: import("@tanstack/react-query").UseQueryResult<BigNumber | null, Error>;
|
|
20
23
|
liquidityMinted: BigNumber | undefined;
|
|
21
24
|
poolTokenPercentage: BigNumber | undefined;
|
|
22
25
|
shareOfPool: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as AMMV3Create } from './AMMV3/AddLiquidityV3';
|
|
2
2
|
export { AMMV3PositionsView } from './AMMV3/AMMV3PositionsView';
|
|
3
3
|
export { AMMV3PositionManage } from './AMMV3/AMMV3PositionManage';
|
|
4
|
-
export declare function Pool(): JSX.Element;
|
|
4
|
+
export declare function Pool(): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
|
|
1
|
+
import { AMMV3Api, ChainId, ExcludeNone, PoolApi, PoolType } from '@dodoex/api';
|
|
2
2
|
import { TokenInfo } from '../../hooks/Token';
|
|
3
3
|
import { OperatePool } from './PoolOperate/types';
|
|
4
|
-
export declare const poolApi:
|
|
5
|
-
export declare const ammV3Api:
|
|
4
|
+
export declare const poolApi: PoolApi;
|
|
5
|
+
export declare const ammV3Api: AMMV3Api;
|
|
6
6
|
export type FetchLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
|
|
7
7
|
export type FetchMyLiquidityListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchMyLiquidityList)['__apiType'], undefined>>['liquidity_list']>['lqList'];
|
|
8
8
|
export type FetchMyCreateListLqList = ExcludeNone<ReturnType<Exclude<(typeof PoolApi.graphql.fetchDashboardPairList)['__apiType'], undefined>>['dashboard_pairs_list']>['list'];
|
|
@@ -19,3 +19,7 @@ export declare function convertFetchMyLiquidityToOperateData(lqData: ExcludeNone
|
|
|
19
19
|
export declare function convertFetchPoolToOperateData(pool: FetchPoolList[0], chainId: number): OperatePool;
|
|
20
20
|
export declare function getPoolAMMOrPMM(type: PoolType): "AMM V2" | "AMM V3" | "PMM";
|
|
21
21
|
export declare function getIsAMMV2DynamicFeeContractByChainId(chainId: number): boolean;
|
|
22
|
+
export declare function toColorfulNumString({ input, decimals, }: {
|
|
23
|
+
input?: BigNumber | number | string | null;
|
|
24
|
+
decimals?: number;
|
|
25
|
+
}): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-stable.1",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.
|
|
61
|
+
"@dodoex/api": "3.5.0-stable.1",
|
|
62
62
|
"@dodoex/components": "^3.1.0",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "
|
|
64
|
+
"@dodoex/dodo-contract-request": "1.25.0-alpha.2",
|
|
65
65
|
"@dodoex/icons": "^2.0.3",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|
|
@@ -152,4 +152,4 @@
|
|
|
152
152
|
"ts-jest": "^29.0.1",
|
|
153
153
|
"typescript": "^5.6.3"
|
|
154
154
|
}
|
|
155
|
-
}
|
|
155
|
+
}
|