@dodoex/widgets 3.0.2-zetachain.9 → 3.0.2-zetachain.90
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-NNpjOKxF.js → helper-ON7ZoNEk.js} +1 -1
- package/dist/{helper-FbyxhhSC.cjs → helper-fx_MZi0J.cjs} +1 -1
- package/dist/index-C9ghP2M4.cjs +31 -0
- package/dist/{index-BurxQscW.cjs → index-CWX7NCbt.cjs} +5 -5
- package/dist/index-Chi8nF8y.js +31 -0
- package/dist/{index-CRa1CIIy.cjs → index-D-jdLxoT.cjs} +2 -2
- package/dist/{index-BOC7ZzTG.js → index-DH81UfLb.js} +4 -4
- package/dist/index-DgGA5DwX.js +12 -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 +1 -1
- 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 +2 -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 +2 -1
- package/dist/types/components/SpaceBetweenItem.d.ts +1 -1
- package/dist/types/components/SquaredGoBack.d.ts +1 -1
- package/dist/types/components/Swap/SwapOrderHistory/CrossChainOrderList.d.ts +4 -0
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +7 -0
- package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +1 -1
- 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 +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/SupplierSelect.d.ts +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +3 -1
- 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/PercentageSelectButtonGroup.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenCardSwap.d.ts +47 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +2 -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 -2
- 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 +2 -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 -13
- package/dist/types/components/WidgetConfirm.d.ts +1 -1
- package/dist/types/components/WidgetContainer.d.ts +1 -1
- package/dist/types/components/WidgetDialog.d.ts +1 -1
- package/dist/types/components/WithExecutionDialog/index.d.ts +1 -1
- 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 +2 -0
- package/dist/types/constants/api.d.ts +95 -4
- package/dist/types/constants/chainList.d.ts +8 -0
- package/dist/types/constants/chains.d.ts +1 -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 +131 -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/useSwitchChain.d.ts +1 -9
- 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/Swap/useBridgeSlippage.d.ts +3 -0
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +372 -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/useTradeSwapOrderList.d.ts +34 -36
- package/dist/types/hooks/Token/type.d.ts +2 -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 +2 -6
- 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 +23 -1
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +6 -5
- 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 +0 -1
- package/dist/types/hooks/useRouteVisionData.d.ts +17 -1
- package/dist/types/index.d.ts +26 -32
- package/dist/types/providers/i18n.d.ts +1 -1
- package/dist/types/router/types.d.ts +5 -0
- package/dist/types/utils/address.d.ts +1 -1
- package/dist/types/utils/btc.d.ts +23 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +0 -1
- package/dist/types/utils/solana.d.ts +7 -0
- package/dist/types/utils/token.d.ts +1 -1
- 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/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/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 +3 -3
- 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/hooks/helper.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -1
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +3 -3
- 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 +2 -2
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +1 -1
- 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/PoolCreate/components/BaseInfoCardList.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +2 -1
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.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 +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +3 -2
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +4 -2
- 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 +1 -1
- 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/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 +2 -2
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +41 -7
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +2 -3
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +2 -1
- 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 +2 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +3 -2
- 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 +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +43 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +2 -2
- 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/usePoolBalanceInfo.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/index.d.ts +1 -1
- package/package.json +20 -16
- package/dist/28442382d977858a.svg +0 -9
- package/dist/assets/bundle-DSSoJu9z.css +0 -297
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/index-BsPQ0-s8.js +0 -12
- package/dist/index-DcAwBN_0.cjs +0 -31
- package/dist/index-DnOVnmk6.js +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/Swap/components/ConnectWallet/index.d.ts +0 -5
- package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
- package/dist/types/hooks/Chain/useChainList.test.d.ts +0 -1
- 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/Swap/useFetchFiatPrice.test.d.ts +0 -1
- package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
- package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- 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
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export declare function useLiquidityProviders({ chainId, address, }: {
|
|
2
|
+
chainId: number | undefined;
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
}): {
|
|
5
|
+
list: {
|
|
6
|
+
id: string;
|
|
7
|
+
time: any;
|
|
8
|
+
user: string;
|
|
9
|
+
action: string;
|
|
10
|
+
assets?: Array<{
|
|
11
|
+
amount: any;
|
|
12
|
+
token: {
|
|
13
|
+
id: string;
|
|
14
|
+
address: string;
|
|
15
|
+
name: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
decimals: number;
|
|
18
|
+
logoImg?: string | null;
|
|
19
|
+
tokenIndex?: number | null;
|
|
20
|
+
};
|
|
21
|
+
}> | null;
|
|
22
|
+
}[] | null | undefined;
|
|
23
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery;
|
|
24
|
+
error: Error;
|
|
25
|
+
isError: true;
|
|
26
|
+
isPending: false;
|
|
27
|
+
isLoading: false;
|
|
28
|
+
isLoadingError: false;
|
|
29
|
+
isRefetchError: true;
|
|
30
|
+
isSuccess: false;
|
|
31
|
+
isPlaceholderData: false;
|
|
32
|
+
status: "error";
|
|
33
|
+
dataUpdatedAt: number;
|
|
34
|
+
errorUpdatedAt: number;
|
|
35
|
+
failureCount: number;
|
|
36
|
+
failureReason: Error | null;
|
|
37
|
+
errorUpdateCount: number;
|
|
38
|
+
isFetched: boolean;
|
|
39
|
+
isFetchedAfterMount: boolean;
|
|
40
|
+
isFetching: boolean;
|
|
41
|
+
isInitialLoading: boolean;
|
|
42
|
+
isPaused: boolean;
|
|
43
|
+
isRefetching: boolean;
|
|
44
|
+
isStale: boolean;
|
|
45
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
46
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
47
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
48
|
+
} | {
|
|
49
|
+
list: {
|
|
50
|
+
id: string;
|
|
51
|
+
time: any;
|
|
52
|
+
user: string;
|
|
53
|
+
action: string;
|
|
54
|
+
assets?: Array<{
|
|
55
|
+
amount: any;
|
|
56
|
+
token: {
|
|
57
|
+
id: string;
|
|
58
|
+
address: string;
|
|
59
|
+
name: string;
|
|
60
|
+
symbol: string;
|
|
61
|
+
decimals: number;
|
|
62
|
+
logoImg?: string | null;
|
|
63
|
+
tokenIndex?: number | null;
|
|
64
|
+
};
|
|
65
|
+
}> | null;
|
|
66
|
+
}[] | null | undefined;
|
|
67
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery;
|
|
68
|
+
error: null;
|
|
69
|
+
isError: false;
|
|
70
|
+
isPending: false;
|
|
71
|
+
isLoading: false;
|
|
72
|
+
isLoadingError: false;
|
|
73
|
+
isRefetchError: false;
|
|
74
|
+
isSuccess: true;
|
|
75
|
+
isPlaceholderData: false;
|
|
76
|
+
status: "success";
|
|
77
|
+
dataUpdatedAt: number;
|
|
78
|
+
errorUpdatedAt: number;
|
|
79
|
+
failureCount: number;
|
|
80
|
+
failureReason: Error | null;
|
|
81
|
+
errorUpdateCount: number;
|
|
82
|
+
isFetched: boolean;
|
|
83
|
+
isFetchedAfterMount: boolean;
|
|
84
|
+
isFetching: boolean;
|
|
85
|
+
isInitialLoading: boolean;
|
|
86
|
+
isPaused: boolean;
|
|
87
|
+
isRefetching: boolean;
|
|
88
|
+
isStale: boolean;
|
|
89
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
90
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
91
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
92
|
+
} | {
|
|
93
|
+
list: {
|
|
94
|
+
id: string;
|
|
95
|
+
time: any;
|
|
96
|
+
user: string;
|
|
97
|
+
action: string;
|
|
98
|
+
assets?: Array<{
|
|
99
|
+
amount: any;
|
|
100
|
+
token: {
|
|
101
|
+
id: string;
|
|
102
|
+
address: string;
|
|
103
|
+
name: string;
|
|
104
|
+
symbol: string;
|
|
105
|
+
decimals: number;
|
|
106
|
+
logoImg?: string | null;
|
|
107
|
+
tokenIndex?: number | null;
|
|
108
|
+
};
|
|
109
|
+
}> | null;
|
|
110
|
+
}[] | null | undefined;
|
|
111
|
+
data: undefined;
|
|
112
|
+
error: Error;
|
|
113
|
+
isError: true;
|
|
114
|
+
isPending: false;
|
|
115
|
+
isLoading: false;
|
|
116
|
+
isLoadingError: true;
|
|
117
|
+
isRefetchError: false;
|
|
118
|
+
isSuccess: false;
|
|
119
|
+
isPlaceholderData: false;
|
|
120
|
+
status: "error";
|
|
121
|
+
dataUpdatedAt: number;
|
|
122
|
+
errorUpdatedAt: number;
|
|
123
|
+
failureCount: number;
|
|
124
|
+
failureReason: Error | null;
|
|
125
|
+
errorUpdateCount: number;
|
|
126
|
+
isFetched: boolean;
|
|
127
|
+
isFetchedAfterMount: boolean;
|
|
128
|
+
isFetching: boolean;
|
|
129
|
+
isInitialLoading: boolean;
|
|
130
|
+
isPaused: boolean;
|
|
131
|
+
isRefetching: boolean;
|
|
132
|
+
isStale: boolean;
|
|
133
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
134
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
135
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
136
|
+
} | {
|
|
137
|
+
list: {
|
|
138
|
+
id: string;
|
|
139
|
+
time: any;
|
|
140
|
+
user: string;
|
|
141
|
+
action: string;
|
|
142
|
+
assets?: Array<{
|
|
143
|
+
amount: any;
|
|
144
|
+
token: {
|
|
145
|
+
id: string;
|
|
146
|
+
address: string;
|
|
147
|
+
name: string;
|
|
148
|
+
symbol: string;
|
|
149
|
+
decimals: number;
|
|
150
|
+
logoImg?: string | null;
|
|
151
|
+
tokenIndex?: number | null;
|
|
152
|
+
};
|
|
153
|
+
}> | null;
|
|
154
|
+
}[] | null | undefined;
|
|
155
|
+
data: undefined;
|
|
156
|
+
error: null;
|
|
157
|
+
isError: false;
|
|
158
|
+
isPending: true;
|
|
159
|
+
isLoading: true;
|
|
160
|
+
isLoadingError: false;
|
|
161
|
+
isRefetchError: false;
|
|
162
|
+
isSuccess: false;
|
|
163
|
+
isPlaceholderData: false;
|
|
164
|
+
status: "pending";
|
|
165
|
+
dataUpdatedAt: number;
|
|
166
|
+
errorUpdatedAt: number;
|
|
167
|
+
failureCount: number;
|
|
168
|
+
failureReason: Error | null;
|
|
169
|
+
errorUpdateCount: number;
|
|
170
|
+
isFetched: boolean;
|
|
171
|
+
isFetchedAfterMount: boolean;
|
|
172
|
+
isFetching: boolean;
|
|
173
|
+
isInitialLoading: boolean;
|
|
174
|
+
isPaused: boolean;
|
|
175
|
+
isRefetching: boolean;
|
|
176
|
+
isStale: boolean;
|
|
177
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
178
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
179
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
180
|
+
} | {
|
|
181
|
+
list: {
|
|
182
|
+
id: string;
|
|
183
|
+
time: any;
|
|
184
|
+
user: string;
|
|
185
|
+
action: string;
|
|
186
|
+
assets?: Array<{
|
|
187
|
+
amount: any;
|
|
188
|
+
token: {
|
|
189
|
+
id: string;
|
|
190
|
+
address: string;
|
|
191
|
+
name: string;
|
|
192
|
+
symbol: string;
|
|
193
|
+
decimals: number;
|
|
194
|
+
logoImg?: string | null;
|
|
195
|
+
tokenIndex?: number | null;
|
|
196
|
+
};
|
|
197
|
+
}> | null;
|
|
198
|
+
}[] | null | undefined;
|
|
199
|
+
data: undefined;
|
|
200
|
+
error: null;
|
|
201
|
+
isError: false;
|
|
202
|
+
isPending: true;
|
|
203
|
+
isLoadingError: false;
|
|
204
|
+
isRefetchError: false;
|
|
205
|
+
isSuccess: false;
|
|
206
|
+
isPlaceholderData: false;
|
|
207
|
+
status: "pending";
|
|
208
|
+
dataUpdatedAt: number;
|
|
209
|
+
errorUpdatedAt: number;
|
|
210
|
+
failureCount: number;
|
|
211
|
+
failureReason: Error | null;
|
|
212
|
+
errorUpdateCount: number;
|
|
213
|
+
isFetched: boolean;
|
|
214
|
+
isFetchedAfterMount: boolean;
|
|
215
|
+
isFetching: boolean;
|
|
216
|
+
isLoading: boolean;
|
|
217
|
+
isInitialLoading: boolean;
|
|
218
|
+
isPaused: boolean;
|
|
219
|
+
isRefetching: boolean;
|
|
220
|
+
isStale: boolean;
|
|
221
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
222
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
223
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
224
|
+
} | {
|
|
225
|
+
list: {
|
|
226
|
+
id: string;
|
|
227
|
+
time: any;
|
|
228
|
+
user: string;
|
|
229
|
+
action: string;
|
|
230
|
+
assets?: Array<{
|
|
231
|
+
amount: any;
|
|
232
|
+
token: {
|
|
233
|
+
id: string;
|
|
234
|
+
address: string;
|
|
235
|
+
name: string;
|
|
236
|
+
symbol: string;
|
|
237
|
+
decimals: number;
|
|
238
|
+
logoImg?: string | null;
|
|
239
|
+
tokenIndex?: number | null;
|
|
240
|
+
};
|
|
241
|
+
}> | null;
|
|
242
|
+
}[] | null | undefined;
|
|
243
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery;
|
|
244
|
+
isError: false;
|
|
245
|
+
error: null;
|
|
246
|
+
isPending: false;
|
|
247
|
+
isLoading: false;
|
|
248
|
+
isLoadingError: false;
|
|
249
|
+
isRefetchError: false;
|
|
250
|
+
isSuccess: true;
|
|
251
|
+
isPlaceholderData: true;
|
|
252
|
+
status: "success";
|
|
253
|
+
dataUpdatedAt: number;
|
|
254
|
+
errorUpdatedAt: number;
|
|
255
|
+
failureCount: number;
|
|
256
|
+
failureReason: Error | null;
|
|
257
|
+
errorUpdateCount: number;
|
|
258
|
+
isFetched: boolean;
|
|
259
|
+
isFetchedAfterMount: boolean;
|
|
260
|
+
isFetching: boolean;
|
|
261
|
+
isInitialLoading: boolean;
|
|
262
|
+
isPaused: boolean;
|
|
263
|
+
isRefetching: boolean;
|
|
264
|
+
isStale: boolean;
|
|
265
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery, Error>>;
|
|
266
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
267
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolLiquidityHistoryQuery>;
|
|
268
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export declare function useLpTokenBalances({ pool, account, }: {
|
|
4
|
+
pool: CurvePoolT | undefined;
|
|
5
|
+
account: string | undefined;
|
|
6
|
+
}): {
|
|
7
|
+
lpTokenTotalSupply: BigNumber | null;
|
|
8
|
+
tokenBalances: BigNumber[] | null;
|
|
9
|
+
lpTokenBalance: BigNumber | null;
|
|
10
|
+
userTokenBalances: BigNumber[] | null;
|
|
11
|
+
lpTokenBalanceLoading: boolean;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export declare function usePoolDetail({ address, chainId, }: {
|
|
4
|
+
address: string | undefined;
|
|
5
|
+
chainId: ChainId | undefined;
|
|
6
|
+
}): {
|
|
7
|
+
poolDetail: CurvePoolT | undefined;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
error: Error | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export declare function usePoolListFilterTokenAndPool(): {
|
|
4
|
+
filterTokens: TokenInfo[];
|
|
5
|
+
filterAddressLqList: CurvePoolT[];
|
|
6
|
+
handleDeleteToken: (token: TokenInfo) => void;
|
|
7
|
+
handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
|
|
8
|
+
handleChangeFilterAddress: (lqList: CurvePoolT[]) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
export declare function usePoolSwapList({ chainId, address, }: {
|
|
2
|
+
chainId: number | undefined;
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
}): {
|
|
5
|
+
swapList: {
|
|
6
|
+
id: string;
|
|
7
|
+
time: any;
|
|
8
|
+
user: string;
|
|
9
|
+
paidAmount: any;
|
|
10
|
+
receivedAmount: any;
|
|
11
|
+
paidToken: {
|
|
12
|
+
id: string;
|
|
13
|
+
address: string;
|
|
14
|
+
name: string;
|
|
15
|
+
symbol: string;
|
|
16
|
+
decimals: number;
|
|
17
|
+
logoImg?: string | null;
|
|
18
|
+
tokenIndex?: number | null;
|
|
19
|
+
};
|
|
20
|
+
receivedToken: {
|
|
21
|
+
id: string;
|
|
22
|
+
address: string;
|
|
23
|
+
name: string;
|
|
24
|
+
symbol: string;
|
|
25
|
+
decimals: number;
|
|
26
|
+
logoImg?: string | null;
|
|
27
|
+
tokenIndex?: number | null;
|
|
28
|
+
};
|
|
29
|
+
}[] | null | undefined;
|
|
30
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery;
|
|
31
|
+
error: Error;
|
|
32
|
+
isError: true;
|
|
33
|
+
isPending: false;
|
|
34
|
+
isLoading: false;
|
|
35
|
+
isLoadingError: false;
|
|
36
|
+
isRefetchError: true;
|
|
37
|
+
isSuccess: false;
|
|
38
|
+
isPlaceholderData: false;
|
|
39
|
+
status: "error";
|
|
40
|
+
dataUpdatedAt: number;
|
|
41
|
+
errorUpdatedAt: number;
|
|
42
|
+
failureCount: number;
|
|
43
|
+
failureReason: Error | null;
|
|
44
|
+
errorUpdateCount: number;
|
|
45
|
+
isFetched: boolean;
|
|
46
|
+
isFetchedAfterMount: boolean;
|
|
47
|
+
isFetching: boolean;
|
|
48
|
+
isInitialLoading: boolean;
|
|
49
|
+
isPaused: boolean;
|
|
50
|
+
isRefetching: boolean;
|
|
51
|
+
isStale: boolean;
|
|
52
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
53
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
55
|
+
} | {
|
|
56
|
+
swapList: {
|
|
57
|
+
id: string;
|
|
58
|
+
time: any;
|
|
59
|
+
user: string;
|
|
60
|
+
paidAmount: any;
|
|
61
|
+
receivedAmount: any;
|
|
62
|
+
paidToken: {
|
|
63
|
+
id: string;
|
|
64
|
+
address: string;
|
|
65
|
+
name: string;
|
|
66
|
+
symbol: string;
|
|
67
|
+
decimals: number;
|
|
68
|
+
logoImg?: string | null;
|
|
69
|
+
tokenIndex?: number | null;
|
|
70
|
+
};
|
|
71
|
+
receivedToken: {
|
|
72
|
+
id: string;
|
|
73
|
+
address: string;
|
|
74
|
+
name: string;
|
|
75
|
+
symbol: string;
|
|
76
|
+
decimals: number;
|
|
77
|
+
logoImg?: string | null;
|
|
78
|
+
tokenIndex?: number | null;
|
|
79
|
+
};
|
|
80
|
+
}[] | null | undefined;
|
|
81
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery;
|
|
82
|
+
error: null;
|
|
83
|
+
isError: false;
|
|
84
|
+
isPending: false;
|
|
85
|
+
isLoading: false;
|
|
86
|
+
isLoadingError: false;
|
|
87
|
+
isRefetchError: false;
|
|
88
|
+
isSuccess: true;
|
|
89
|
+
isPlaceholderData: false;
|
|
90
|
+
status: "success";
|
|
91
|
+
dataUpdatedAt: number;
|
|
92
|
+
errorUpdatedAt: number;
|
|
93
|
+
failureCount: number;
|
|
94
|
+
failureReason: Error | null;
|
|
95
|
+
errorUpdateCount: number;
|
|
96
|
+
isFetched: boolean;
|
|
97
|
+
isFetchedAfterMount: boolean;
|
|
98
|
+
isFetching: boolean;
|
|
99
|
+
isInitialLoading: boolean;
|
|
100
|
+
isPaused: boolean;
|
|
101
|
+
isRefetching: boolean;
|
|
102
|
+
isStale: boolean;
|
|
103
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
104
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
105
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
106
|
+
} | {
|
|
107
|
+
swapList: {
|
|
108
|
+
id: string;
|
|
109
|
+
time: any;
|
|
110
|
+
user: string;
|
|
111
|
+
paidAmount: any;
|
|
112
|
+
receivedAmount: any;
|
|
113
|
+
paidToken: {
|
|
114
|
+
id: string;
|
|
115
|
+
address: string;
|
|
116
|
+
name: string;
|
|
117
|
+
symbol: string;
|
|
118
|
+
decimals: number;
|
|
119
|
+
logoImg?: string | null;
|
|
120
|
+
tokenIndex?: number | null;
|
|
121
|
+
};
|
|
122
|
+
receivedToken: {
|
|
123
|
+
id: string;
|
|
124
|
+
address: string;
|
|
125
|
+
name: string;
|
|
126
|
+
symbol: string;
|
|
127
|
+
decimals: number;
|
|
128
|
+
logoImg?: string | null;
|
|
129
|
+
tokenIndex?: number | null;
|
|
130
|
+
};
|
|
131
|
+
}[] | null | undefined;
|
|
132
|
+
data: undefined;
|
|
133
|
+
error: Error;
|
|
134
|
+
isError: true;
|
|
135
|
+
isPending: false;
|
|
136
|
+
isLoading: false;
|
|
137
|
+
isLoadingError: true;
|
|
138
|
+
isRefetchError: false;
|
|
139
|
+
isSuccess: false;
|
|
140
|
+
isPlaceholderData: false;
|
|
141
|
+
status: "error";
|
|
142
|
+
dataUpdatedAt: number;
|
|
143
|
+
errorUpdatedAt: number;
|
|
144
|
+
failureCount: number;
|
|
145
|
+
failureReason: Error | null;
|
|
146
|
+
errorUpdateCount: number;
|
|
147
|
+
isFetched: boolean;
|
|
148
|
+
isFetchedAfterMount: boolean;
|
|
149
|
+
isFetching: boolean;
|
|
150
|
+
isInitialLoading: boolean;
|
|
151
|
+
isPaused: boolean;
|
|
152
|
+
isRefetching: boolean;
|
|
153
|
+
isStale: boolean;
|
|
154
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
155
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
156
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
157
|
+
} | {
|
|
158
|
+
swapList: {
|
|
159
|
+
id: string;
|
|
160
|
+
time: any;
|
|
161
|
+
user: string;
|
|
162
|
+
paidAmount: any;
|
|
163
|
+
receivedAmount: any;
|
|
164
|
+
paidToken: {
|
|
165
|
+
id: string;
|
|
166
|
+
address: string;
|
|
167
|
+
name: string;
|
|
168
|
+
symbol: string;
|
|
169
|
+
decimals: number;
|
|
170
|
+
logoImg?: string | null;
|
|
171
|
+
tokenIndex?: number | null;
|
|
172
|
+
};
|
|
173
|
+
receivedToken: {
|
|
174
|
+
id: string;
|
|
175
|
+
address: string;
|
|
176
|
+
name: string;
|
|
177
|
+
symbol: string;
|
|
178
|
+
decimals: number;
|
|
179
|
+
logoImg?: string | null;
|
|
180
|
+
tokenIndex?: number | null;
|
|
181
|
+
};
|
|
182
|
+
}[] | null | undefined;
|
|
183
|
+
data: undefined;
|
|
184
|
+
error: null;
|
|
185
|
+
isError: false;
|
|
186
|
+
isPending: true;
|
|
187
|
+
isLoading: true;
|
|
188
|
+
isLoadingError: false;
|
|
189
|
+
isRefetchError: false;
|
|
190
|
+
isSuccess: false;
|
|
191
|
+
isPlaceholderData: false;
|
|
192
|
+
status: "pending";
|
|
193
|
+
dataUpdatedAt: number;
|
|
194
|
+
errorUpdatedAt: number;
|
|
195
|
+
failureCount: number;
|
|
196
|
+
failureReason: Error | null;
|
|
197
|
+
errorUpdateCount: number;
|
|
198
|
+
isFetched: boolean;
|
|
199
|
+
isFetchedAfterMount: boolean;
|
|
200
|
+
isFetching: boolean;
|
|
201
|
+
isInitialLoading: boolean;
|
|
202
|
+
isPaused: boolean;
|
|
203
|
+
isRefetching: boolean;
|
|
204
|
+
isStale: boolean;
|
|
205
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
206
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
207
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
208
|
+
} | {
|
|
209
|
+
swapList: {
|
|
210
|
+
id: string;
|
|
211
|
+
time: any;
|
|
212
|
+
user: string;
|
|
213
|
+
paidAmount: any;
|
|
214
|
+
receivedAmount: any;
|
|
215
|
+
paidToken: {
|
|
216
|
+
id: string;
|
|
217
|
+
address: string;
|
|
218
|
+
name: string;
|
|
219
|
+
symbol: string;
|
|
220
|
+
decimals: number;
|
|
221
|
+
logoImg?: string | null;
|
|
222
|
+
tokenIndex?: number | null;
|
|
223
|
+
};
|
|
224
|
+
receivedToken: {
|
|
225
|
+
id: string;
|
|
226
|
+
address: string;
|
|
227
|
+
name: string;
|
|
228
|
+
symbol: string;
|
|
229
|
+
decimals: number;
|
|
230
|
+
logoImg?: string | null;
|
|
231
|
+
tokenIndex?: number | null;
|
|
232
|
+
};
|
|
233
|
+
}[] | null | undefined;
|
|
234
|
+
data: undefined;
|
|
235
|
+
error: null;
|
|
236
|
+
isError: false;
|
|
237
|
+
isPending: true;
|
|
238
|
+
isLoadingError: false;
|
|
239
|
+
isRefetchError: false;
|
|
240
|
+
isSuccess: false;
|
|
241
|
+
isPlaceholderData: false;
|
|
242
|
+
status: "pending";
|
|
243
|
+
dataUpdatedAt: number;
|
|
244
|
+
errorUpdatedAt: number;
|
|
245
|
+
failureCount: number;
|
|
246
|
+
failureReason: Error | null;
|
|
247
|
+
errorUpdateCount: number;
|
|
248
|
+
isFetched: boolean;
|
|
249
|
+
isFetchedAfterMount: boolean;
|
|
250
|
+
isFetching: boolean;
|
|
251
|
+
isLoading: boolean;
|
|
252
|
+
isInitialLoading: boolean;
|
|
253
|
+
isPaused: boolean;
|
|
254
|
+
isRefetching: boolean;
|
|
255
|
+
isStale: boolean;
|
|
256
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
257
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
258
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
259
|
+
} | {
|
|
260
|
+
swapList: {
|
|
261
|
+
id: string;
|
|
262
|
+
time: any;
|
|
263
|
+
user: string;
|
|
264
|
+
paidAmount: any;
|
|
265
|
+
receivedAmount: any;
|
|
266
|
+
paidToken: {
|
|
267
|
+
id: string;
|
|
268
|
+
address: string;
|
|
269
|
+
name: string;
|
|
270
|
+
symbol: string;
|
|
271
|
+
decimals: number;
|
|
272
|
+
logoImg?: string | null;
|
|
273
|
+
tokenIndex?: number | null;
|
|
274
|
+
};
|
|
275
|
+
receivedToken: {
|
|
276
|
+
id: string;
|
|
277
|
+
address: string;
|
|
278
|
+
name: string;
|
|
279
|
+
symbol: string;
|
|
280
|
+
decimals: number;
|
|
281
|
+
logoImg?: string | null;
|
|
282
|
+
tokenIndex?: number | null;
|
|
283
|
+
};
|
|
284
|
+
}[] | null | undefined;
|
|
285
|
+
data: import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery;
|
|
286
|
+
isError: false;
|
|
287
|
+
error: null;
|
|
288
|
+
isPending: false;
|
|
289
|
+
isLoading: false;
|
|
290
|
+
isLoadingError: false;
|
|
291
|
+
isRefetchError: false;
|
|
292
|
+
isSuccess: true;
|
|
293
|
+
isPlaceholderData: true;
|
|
294
|
+
status: "success";
|
|
295
|
+
dataUpdatedAt: number;
|
|
296
|
+
errorUpdatedAt: number;
|
|
297
|
+
failureCount: number;
|
|
298
|
+
failureReason: Error | null;
|
|
299
|
+
errorUpdateCount: number;
|
|
300
|
+
isFetched: boolean;
|
|
301
|
+
isFetchedAfterMount: boolean;
|
|
302
|
+
isFetching: boolean;
|
|
303
|
+
isInitialLoading: boolean;
|
|
304
|
+
isPaused: boolean;
|
|
305
|
+
isRefetching: boolean;
|
|
306
|
+
isStale: boolean;
|
|
307
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery, Error>>;
|
|
308
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
309
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").Curve_Stableswap_Ng_GetPoolSwapInfoQuery>;
|
|
310
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
3
|
+
import { OperateTab } from '../PoolOperate/hooks/usePoolOperateTabs';
|
|
4
|
+
/**
|
|
5
|
+
* CurveStableSwapNG
|
|
6
|
+
*
|
|
7
|
+
* @see https://zetachain-testnet.blockscout.com/token/0xDddfBCc76166d741c2dfa6b6a90769df398b9969?tab=read_contract
|
|
8
|
+
*/
|
|
9
|
+
export type CurvePoolT = {
|
|
10
|
+
chainId: ChainId;
|
|
11
|
+
name: string;
|
|
12
|
+
address: string;
|
|
13
|
+
symbol: string;
|
|
14
|
+
decimals: number;
|
|
15
|
+
fee: string;
|
|
16
|
+
coins: TokenInfo[];
|
|
17
|
+
apy: string | null;
|
|
18
|
+
dailyApy: string | null;
|
|
19
|
+
weeklyApy: string | null;
|
|
20
|
+
tvl: string | null;
|
|
21
|
+
volume: string | null;
|
|
22
|
+
dailyVolumeUsd: string | null;
|
|
23
|
+
traderCount: string | null;
|
|
24
|
+
liquidityUtilization: string | null;
|
|
25
|
+
daoFee: string | null;
|
|
26
|
+
virtualPrice: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* export const POOL_TYPE_PLAIN = "plain";
|
|
29
|
+
export const POOL_TYPE_META = "meta";
|
|
30
|
+
现在有两种池子类型
|
|
31
|
+
11:44
|
|
32
|
+
PlainPoolDeployed
|
|
33
|
+
MetaPoolDeployed
|
|
34
|
+
创建池的时候事件不同
|
|
35
|
+
*/
|
|
36
|
+
poolType: 'plain' | 'meta';
|
|
37
|
+
a: string | null;
|
|
38
|
+
offpegFeeMultiplier: string | null;
|
|
39
|
+
lpTokenBalance: string | null;
|
|
40
|
+
};
|
|
41
|
+
export type OperateCurvePoolT = {
|
|
42
|
+
pool: CurvePoolT;
|
|
43
|
+
type: OperateTab;
|
|
44
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChainId, CurveApi, ExcludeNone } from '@dodoex/api';
|
|
2
|
+
import { CurvePoolT } from './types';
|
|
3
|
+
export declare const curveApi: CurveApi;
|
|
4
|
+
export declare function convertRawPoolListToCurvePoolListT(rawPoolList: ExcludeNone<ReturnType<Exclude<(typeof CurveApi.graphql.curve_stableswap_ng_getAllPools)['__apiType'], undefined>>['curve_stableswap_ng_getAllPools']>['lqList'], chainId: ChainId | undefined): CurvePoolT[];
|
|
@@ -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, }: {
|
|
@@ -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,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;
|