@dodoex/widgets 3.0.2-zetachain.7 → 3.0.2-zetachain.71
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-oJAuyUpK.js → helper-B3coH4jk.js} +1 -1
- package/dist/{helper-j1IEQn2t.cjs → helper-DtnfPDgy.cjs} +1 -1
- package/dist/index-BQLNplBh.js +12 -0
- package/dist/index-CWTOOdkA.js +31 -0
- package/dist/{index-V97YGwdP.js → index-Daz9Ygb-.js} +4 -4
- package/dist/{index-DATNqJ1U.cjs → index-DgcJshud.cjs} +5 -5
- package/dist/index-Dw878sEE.cjs +31 -0
- package/dist/{index-DeckOMJe.cjs → index-WBuCPRYy.cjs} +2 -2
- 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 +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 +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/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 +42 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +1 -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 +130 -48
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +1 -2
- 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 +3 -5
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +28 -29
- 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/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/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/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 +11 -0
- 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 +3 -2
- 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/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/b3f16b2626f03378.svg +0 -10
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/index-C9rercVA.cjs +0 -31
- package/dist/index-CSxsrabl.js +0 -12
- package/dist/index-DAd-7IGc.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
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolTypeFilter.d.ts +0 -7
|
@@ -53,6 +53,18 @@ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: Token
|
|
|
53
53
|
transactionQuoteApy?: any | null;
|
|
54
54
|
metromMiningApy?: any | null;
|
|
55
55
|
} | null;
|
|
56
|
+
apyList?: Array<{
|
|
57
|
+
miningBaseApy?: any | null;
|
|
58
|
+
miningQuoteApy?: any | null;
|
|
59
|
+
transactionBaseApy?: any | null;
|
|
60
|
+
transactionQuoteApy?: any | null;
|
|
61
|
+
metromMiningApy?: any | null;
|
|
62
|
+
timeRange?: string | null;
|
|
63
|
+
} | null> | null;
|
|
64
|
+
volumeList?: Array<{
|
|
65
|
+
volume?: any | null;
|
|
66
|
+
timeRange?: string | null;
|
|
67
|
+
} | null> | null;
|
|
56
68
|
} | null;
|
|
57
69
|
} | null)[] | null | undefined;
|
|
58
70
|
handleDeleteToken: (token: TokenInfo) => void;
|
|
@@ -1,16 +1,50 @@
|
|
|
1
|
+
export declare enum PoolTopTab {
|
|
2
|
+
ALM = "ALM",
|
|
3
|
+
NORMAL = "NORMAL",
|
|
4
|
+
MULTI_TOKEN = "MULTI_TOKEN"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ALMPoolTab {
|
|
7
|
+
ALL = "ALL",
|
|
8
|
+
MY = "MY"
|
|
9
|
+
}
|
|
1
10
|
export declare enum PoolTab {
|
|
2
11
|
addLiquidity = "add-liquidity",
|
|
3
12
|
myLiquidity = "my-liquidity",
|
|
4
13
|
myCreated = "my-created"
|
|
5
14
|
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
export declare enum MultiTokenPoolTab {
|
|
16
|
+
ALL = "ALL",
|
|
17
|
+
MY = "MY"
|
|
18
|
+
}
|
|
19
|
+
export declare function usePoolListTabs(): {
|
|
20
|
+
poolTopTab: PoolTopTab;
|
|
21
|
+
normalPoolTab: PoolTab;
|
|
22
|
+
almPoolTab: ALMPoolTab;
|
|
23
|
+
multiTokenPoolTab: MultiTokenPoolTab;
|
|
24
|
+
topTabs: {
|
|
25
|
+
key: PoolTopTab;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
normalTabs: {
|
|
12
29
|
key: PoolTab;
|
|
13
30
|
value: string;
|
|
14
31
|
}[];
|
|
15
|
-
|
|
32
|
+
almTabs: {
|
|
33
|
+
key: ALMPoolTab;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
multiTokenTabs: {
|
|
37
|
+
key: MultiTokenPoolTab;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
handleChangePoolTab: ({ topTab, poolTab, }: {
|
|
41
|
+
topTab: PoolTopTab.NORMAL;
|
|
42
|
+
poolTab: PoolTab;
|
|
43
|
+
} | {
|
|
44
|
+
topTab: PoolTopTab.ALM;
|
|
45
|
+
poolTab: ALMPoolTab;
|
|
46
|
+
} | {
|
|
47
|
+
topTab: PoolTopTab.MULTI_TOKEN;
|
|
48
|
+
poolTab: MultiTokenPoolTab;
|
|
49
|
+
}) => void;
|
|
16
50
|
};
|
|
@@ -2,15 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Page, PageType } from '../../../router/types';
|
|
3
3
|
import { PoolOperateProps } from '../PoolOperate';
|
|
4
4
|
import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
|
|
5
|
-
export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter,
|
|
5
|
+
export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, operatePool: operatePoolProps, onOperatePool, getMigrationPairAndMining, }: {
|
|
6
6
|
params?: Page<PageType.Pool>['params'];
|
|
7
7
|
scrollRef?: React.RefObject<any>;
|
|
8
8
|
tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
|
|
9
|
-
operatePMMPoolElement?: React.ReactElement;
|
|
10
9
|
operatePool?: Partial<PoolOperateProps> | null;
|
|
11
10
|
onOperatePool?: (pool: Partial<PoolOperateProps> | null) => boolean;
|
|
12
11
|
getMigrationPairAndMining?: (p: {
|
|
13
12
|
address: string;
|
|
14
13
|
chainId: number;
|
|
15
14
|
}) => void;
|
|
16
|
-
}): JSX.Element;
|
|
15
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { usePoolDetail } from '../../hooks/usePoolDetail';
|
|
2
3
|
import { StateProps } from '../../PoolCreate/reducer';
|
|
3
4
|
export declare function BottomButtonGroup({ state, pool, loading, }: {
|
|
4
5
|
state: StateProps;
|
|
5
6
|
pool?: ReturnType<typeof usePoolDetail>['poolDetail'];
|
|
6
7
|
loading: boolean;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
|
|
3
|
+
import { OperatePool } from './types';
|
|
3
4
|
export declare function AddPoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
|
|
4
5
|
submittedBack?: () => void;
|
|
5
6
|
onlyShowSide?: 'base' | 'quote';
|
|
6
7
|
pool?: OperatePool;
|
|
7
8
|
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface PoolOperateInnerProps {
|
|
|
7
7
|
errorRefetch?: () => void;
|
|
8
8
|
submittedBack?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export default function PoolOperateInner({ pool, operate, hidePoolInfo, errorRefetch, submittedBack, }: PoolOperateInnerProps): JSX.Element;
|
|
10
|
+
export default function PoolOperateInner({ pool, operate, hidePoolInfo, errorRefetch, submittedBack, }: PoolOperateInnerProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
|
|
3
|
+
import { OperatePool } from './types';
|
|
3
4
|
export declare function RemovePoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
|
|
4
5
|
submittedBack?: () => void;
|
|
5
6
|
onlyShowSide?: 'base' | 'quote';
|
|
6
7
|
pool?: OperatePool;
|
|
7
8
|
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
4
|
export default function ComparePrice({ lqAndDodoCompareText, baseToken, quoteToken, midPrice, }: {
|
|
4
5
|
lqAndDodoCompareText: string;
|
|
5
6
|
baseToken?: TokenInfo;
|
|
6
7
|
quoteToken?: TokenInfo;
|
|
7
8
|
midPrice?: BigNumber;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GSPPairRiskWarning: () => JSX.Element;
|
|
1
|
+
export declare const GSPPairRiskWarning: () => import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface LiquidityInfoProps {
|
|
|
6
6
|
pool: OperatePool;
|
|
7
7
|
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
8
|
}
|
|
9
|
-
export default function LiquidityInfo({ loading: loadingProps, hidePoolInfo, pool, balanceInfo, }: LiquidityInfoProps): JSX.Element;
|
|
9
|
+
export default function LiquidityInfo({ loading: loadingProps, hidePoolInfo, pool, balanceInfo, }: LiquidityInfoProps): import("react").JSX.Element;
|
|
@@ -16,4 +16,4 @@ export default function SlippageSetting({ type, disabled, value, onChange, sx, }
|
|
|
16
16
|
value: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION;
|
|
17
17
|
onChange: (val: number | typeof AUTO_SWAP_SLIPPAGE_PROTECTION) => void;
|
|
18
18
|
sx?: BoxProps['sx'];
|
|
19
|
-
}): JSX.Element;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export default function TokenList({ pool, checkTokenType, setCheckToken, balance
|
|
|
8
8
|
balanceInfo?: ReturnType<typeof usePoolBalanceInfo>;
|
|
9
9
|
baseTokenBalanceUpdateLoading: boolean;
|
|
10
10
|
quoteBalanceUpdateLoading: boolean;
|
|
11
|
-
}): JSX.Element | null;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
@@ -11,7 +11,7 @@ export interface PoolOperateProps {
|
|
|
11
11
|
hidePoolInfo?: boolean;
|
|
12
12
|
sx?: BoxProps['sx'];
|
|
13
13
|
}
|
|
14
|
-
export declare function PoolOperate({ onClose, pool: poolProps, address, operate, chainId, hasMining, hidePoolInfo, sx, }: PoolOperateProps): JSX.Element;
|
|
14
|
+
export declare function PoolOperate({ onClose, pool: poolProps, address, operate, chainId, hasMining, hidePoolInfo, sx, }: PoolOperateProps): import("react").JSX.Element;
|
|
15
15
|
export default function PoolOperateDialog({ modal, ...props }: PoolOperateProps & {
|
|
16
16
|
modal?: boolean;
|
|
17
|
-
}): JSX.Element;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OperateCurvePoolT } from './types';
|
|
2
|
+
export interface AddOrRemoveProps {
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
poolDetailBtnVisible?: boolean;
|
|
5
|
+
operateCurvePool: OperateCurvePoolT;
|
|
6
|
+
}
|
|
7
|
+
export declare const AddOrRemove: ({ onClose, poolDetailBtnVisible, operateCurvePool, }: AddOrRemoveProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OperateCurvePoolT } from './types';
|
|
4
|
+
export interface AllPoolsProps {
|
|
5
|
+
account?: string;
|
|
6
|
+
scrollParentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
7
|
+
activeChainId: ChainId | undefined;
|
|
8
|
+
operateCurvePool: OperateCurvePoolT | null;
|
|
9
|
+
setOperateCurvePool: React.Dispatch<React.SetStateAction<OperateCurvePoolT | null>>;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
isMyPool?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const AllPools: ({ account, scrollParentRef, activeChainId, operateCurvePool, setOperateCurvePool, children, isMyPool, }: AllPoolsProps) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OperateCurvePoolT } from './types';
|
|
2
|
+
export interface OperateDialogProps {
|
|
3
|
+
poolDetailBtnVisible?: boolean;
|
|
4
|
+
operateCurvePool: OperateCurvePoolT;
|
|
5
|
+
setOperateCurvePool?: React.Dispatch<React.SetStateAction<OperateCurvePoolT | null>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const OperateDialog: ({ poolDetailBtnVisible, operateCurvePool, setOperateCurvePool, }: OperateDialogProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
export declare function ApyTooltip({ apy, dailyApy, weeklyApy, sx, }: {
|
|
3
|
+
apy: string | null | undefined;
|
|
4
|
+
dailyApy: string | null | undefined;
|
|
5
|
+
weeklyApy: string | null | undefined;
|
|
6
|
+
sx?: BoxProps['sx'];
|
|
7
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CurvePoolT } from '../types';
|
|
2
|
+
export interface CoinReservePieChartProps {
|
|
3
|
+
poolDetail: CurvePoolT | undefined;
|
|
4
|
+
tokenBalances: BigNumber[] | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const CoinReservePieChart: ({ poolDetail, tokenBalances, }: CoinReservePieChartProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export default function FilterAddressTags({ lqList, onDeleteTag, sx, }: {
|
|
4
|
+
lqList: CurvePoolT[];
|
|
5
|
+
onDeleteTag: () => void;
|
|
6
|
+
sx?: BoxProps['sx'];
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
@@ -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
|
+
};
|