@dodoex/widgets 3.0.2-zetachain.1 → 3.0.2-zetachain.100
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-DGhgtyWa.cjs → helper-DZptdd1t.cjs} +1 -1
- package/dist/{helper-Bct7Q4pS.js → helper-V9fGeXOZ.js} +1 -1
- package/dist/index-B3ZiUuFP.js +12 -0
- package/dist/index-B7zZMG4O.cjs +31 -0
- package/dist/index-DDfmmN6V.js +31 -0
- package/dist/index-DlTaDVo4.js +78 -0
- package/dist/{index-qhP3zdCm.cjs → index-DnX2W2uu.cjs} +2 -2
- package/dist/{index-BNVFHPfO.cjs → index-HW3lVO8O.cjs} +6 -6
- 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 +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 +5 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +4 -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 +48 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -1
- package/dist/types/components/Swap/components/TokenCard/WalletConnectBtn.d.ts +11 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +3 -3
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +4 -3
- package/dist/types/components/Swap/index.d.ts +2 -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 +3 -2
- package/dist/types/components/TokenSelect.d.ts +2 -1
- package/dist/types/components/TokenStatusButton.d.ts +1 -1
- package/dist/types/components/Tooltip/QuestionTooltip.d.ts +1 -1
- package/dist/types/components/UserOptionsProvider.d.ts +1 -1
- package/dist/types/components/Widget/index.d.ts +15 -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 +4 -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 +17 -1
- package/dist/types/constants/sessionStorage.d.ts +1 -0
- package/dist/types/constants/tokenList.d.ts +8 -9
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +5 -25
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useFeeList.d.ts +9 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +134 -48
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +1 -2
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +4 -1
- package/dist/types/hooks/Bridge/utils.d.ts +6 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +0 -2
- package/dist/types/hooks/ConnectWallet/useBTCWalletStore.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/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/useForecastSlippageList.d.ts +43 -5
- package/dist/types/hooks/Swap/usePrivacySwapStatus.d.ts +10 -0
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +43 -5
- package/dist/types/hooks/Swap/useSwitchToSupplierChain.d.ts +13 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +93 -30
- package/dist/types/hooks/Token/type.d.ts +3 -1
- package/dist/types/hooks/Token/useInitTokenList.d.ts +2 -2
- package/dist/types/hooks/Token/useSelectChainList.d.ts +5 -5
- package/dist/types/hooks/Token/useTokenList.d.ts +4 -7
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +2 -2
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +1 -4
- package/dist/types/hooks/Token/useTokenStatus.d.ts +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 +20 -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/hooks/useLiquidityProviders.d.ts +38 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +73 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +43 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +59 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +4 -3
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +5 -3
- 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 +9 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/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/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/usePoolDetail.d.ts +87 -5
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +3 -3
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/index.d.ts +1 -1
- package/package.json +31 -30
- 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-BD9H2gwP.cjs +0 -31
- package/dist/index-CS7qpuAF.js +0 -78
- package/dist/index-CfUgXFFJ.js +0 -12
- package/dist/index-DQAZ3zsA.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/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/OnlyV3Toggle.d.ts +0 -7
- /package/dist/types/hooks/{Bridge/useFetchRoutePriceBridge.test.d.ts → useAddressValidation.test.d.ts} +0 -0
- /package/dist/types/{widgets/MiningWidget/hooks → hooks}/useRefetch.d.ts +0 -0
|
@@ -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, }: {
|
|
@@ -63,6 +63,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
63
63
|
isLoadingError: false;
|
|
64
64
|
isRefetchError: true;
|
|
65
65
|
isSuccess: false;
|
|
66
|
+
isPlaceholderData: false;
|
|
66
67
|
status: "error";
|
|
67
68
|
dataUpdatedAt: number;
|
|
68
69
|
errorUpdatedAt: number;
|
|
@@ -74,11 +75,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
74
75
|
isFetching: boolean;
|
|
75
76
|
isInitialLoading: boolean;
|
|
76
77
|
isPaused: boolean;
|
|
77
|
-
isPlaceholderData: boolean;
|
|
78
78
|
isRefetching: boolean;
|
|
79
79
|
isStale: boolean;
|
|
80
80
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
81
81
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
82
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
82
83
|
} | {
|
|
83
84
|
poolDetail: {
|
|
84
85
|
address: string;
|
|
@@ -139,6 +140,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
139
140
|
isLoadingError: false;
|
|
140
141
|
isRefetchError: false;
|
|
141
142
|
isSuccess: true;
|
|
143
|
+
isPlaceholderData: false;
|
|
142
144
|
status: "success";
|
|
143
145
|
dataUpdatedAt: number;
|
|
144
146
|
errorUpdatedAt: number;
|
|
@@ -150,11 +152,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
150
152
|
isFetching: boolean;
|
|
151
153
|
isInitialLoading: boolean;
|
|
152
154
|
isPaused: boolean;
|
|
153
|
-
isPlaceholderData: boolean;
|
|
154
155
|
isRefetching: boolean;
|
|
155
156
|
isStale: boolean;
|
|
156
157
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
157
158
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
159
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
158
160
|
} | {
|
|
159
161
|
poolDetail: {
|
|
160
162
|
address: string;
|
|
@@ -215,6 +217,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
215
217
|
isLoadingError: true;
|
|
216
218
|
isRefetchError: false;
|
|
217
219
|
isSuccess: false;
|
|
220
|
+
isPlaceholderData: false;
|
|
218
221
|
status: "error";
|
|
219
222
|
dataUpdatedAt: number;
|
|
220
223
|
errorUpdatedAt: number;
|
|
@@ -226,11 +229,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
226
229
|
isFetching: boolean;
|
|
227
230
|
isInitialLoading: boolean;
|
|
228
231
|
isPaused: boolean;
|
|
229
|
-
isPlaceholderData: boolean;
|
|
230
232
|
isRefetching: boolean;
|
|
231
233
|
isStale: boolean;
|
|
232
234
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
233
235
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
236
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
234
237
|
} | {
|
|
235
238
|
poolDetail: {
|
|
236
239
|
address: string;
|
|
@@ -291,6 +294,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
291
294
|
isLoadingError: false;
|
|
292
295
|
isRefetchError: false;
|
|
293
296
|
isSuccess: false;
|
|
297
|
+
isPlaceholderData: false;
|
|
294
298
|
status: "pending";
|
|
295
299
|
dataUpdatedAt: number;
|
|
296
300
|
errorUpdatedAt: number;
|
|
@@ -302,11 +306,11 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
302
306
|
isFetching: boolean;
|
|
303
307
|
isInitialLoading: boolean;
|
|
304
308
|
isPaused: boolean;
|
|
305
|
-
isPlaceholderData: boolean;
|
|
306
309
|
isRefetching: boolean;
|
|
307
310
|
isStale: boolean;
|
|
308
311
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
309
312
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
313
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
310
314
|
} | {
|
|
311
315
|
poolDetail: {
|
|
312
316
|
address: string;
|
|
@@ -366,6 +370,7 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
366
370
|
isLoadingError: false;
|
|
367
371
|
isRefetchError: false;
|
|
368
372
|
isSuccess: false;
|
|
373
|
+
isPlaceholderData: false;
|
|
369
374
|
status: "pending";
|
|
370
375
|
dataUpdatedAt: number;
|
|
371
376
|
errorUpdatedAt: number;
|
|
@@ -378,9 +383,86 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
378
383
|
isLoading: boolean;
|
|
379
384
|
isInitialLoading: boolean;
|
|
380
385
|
isPaused: boolean;
|
|
381
|
-
isPlaceholderData: boolean;
|
|
382
386
|
isRefetching: boolean;
|
|
383
387
|
isStale: boolean;
|
|
384
388
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
385
389
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
390
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
391
|
+
} | {
|
|
392
|
+
poolDetail: {
|
|
393
|
+
address: string;
|
|
394
|
+
type: PoolType;
|
|
395
|
+
chainId: ChainId;
|
|
396
|
+
baseToken: TokenInfo;
|
|
397
|
+
quoteToken: TokenInfo;
|
|
398
|
+
miningAddress: string;
|
|
399
|
+
apy: {
|
|
400
|
+
miningBaseApy?: any | null;
|
|
401
|
+
miningQuoteApy?: any | null;
|
|
402
|
+
transactionBaseApy?: any | null;
|
|
403
|
+
transactionQuoteApy?: any | null;
|
|
404
|
+
metromMiningApy?: any | null;
|
|
405
|
+
} | null | undefined;
|
|
406
|
+
baseApy: string | undefined;
|
|
407
|
+
quoteApy: string | undefined;
|
|
408
|
+
isCpPool: boolean;
|
|
409
|
+
cpAddress: string | undefined;
|
|
410
|
+
cpLiquidator: string | undefined;
|
|
411
|
+
cpCreator: string | undefined;
|
|
412
|
+
cpCreatedAtTimestamp: string | undefined;
|
|
413
|
+
id: string;
|
|
414
|
+
creator: any;
|
|
415
|
+
owner?: any | null;
|
|
416
|
+
traderCount: any;
|
|
417
|
+
volumeBaseToken: any;
|
|
418
|
+
volumeQuoteToken: any;
|
|
419
|
+
volumeUSD: any;
|
|
420
|
+
feeBase: any;
|
|
421
|
+
feeQuote: any;
|
|
422
|
+
mtFeeRate: any;
|
|
423
|
+
lpFeeRate: any;
|
|
424
|
+
i?: any | null;
|
|
425
|
+
k?: any | null;
|
|
426
|
+
baseReserve: any;
|
|
427
|
+
quoteReserve: any;
|
|
428
|
+
createdAtTimestamp: any;
|
|
429
|
+
lastTradePrice: any;
|
|
430
|
+
baseLpToken?: {
|
|
431
|
+
id: string;
|
|
432
|
+
symbol: string;
|
|
433
|
+
name: string;
|
|
434
|
+
decimals: any;
|
|
435
|
+
} | null;
|
|
436
|
+
quoteLpToken?: {
|
|
437
|
+
id: string;
|
|
438
|
+
symbol: string;
|
|
439
|
+
name: string;
|
|
440
|
+
decimals: any;
|
|
441
|
+
} | null;
|
|
442
|
+
} | null;
|
|
443
|
+
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
444
|
+
isError: false;
|
|
445
|
+
error: null;
|
|
446
|
+
isPending: false;
|
|
447
|
+
isLoading: false;
|
|
448
|
+
isLoadingError: false;
|
|
449
|
+
isRefetchError: false;
|
|
450
|
+
isSuccess: true;
|
|
451
|
+
isPlaceholderData: true;
|
|
452
|
+
status: "success";
|
|
453
|
+
dataUpdatedAt: number;
|
|
454
|
+
errorUpdatedAt: number;
|
|
455
|
+
failureCount: number;
|
|
456
|
+
failureReason: Error | null;
|
|
457
|
+
errorUpdateCount: number;
|
|
458
|
+
isFetched: boolean;
|
|
459
|
+
isFetchedAfterMount: boolean;
|
|
460
|
+
isFetching: boolean;
|
|
461
|
+
isInitialLoading: boolean;
|
|
462
|
+
isPaused: boolean;
|
|
463
|
+
isRefetching: boolean;
|
|
464
|
+
isStale: boolean;
|
|
465
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery, Error>>;
|
|
466
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
467
|
+
promise: Promise<import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery>;
|
|
386
468
|
};
|
|
@@ -9,10 +9,10 @@ export declare function useUniV2CreatePairs({ baseToken, quoteToken, baseAmount,
|
|
|
9
9
|
pairAddress: string | undefined;
|
|
10
10
|
pair: import("@uniswap/v2-sdk").Pair | null;
|
|
11
11
|
isInvalidPair: boolean;
|
|
12
|
-
price:
|
|
13
|
-
invertedPrice:
|
|
12
|
+
price: BigNumber | undefined;
|
|
13
|
+
invertedPrice: BigNumber | undefined;
|
|
14
14
|
priceLoading: boolean;
|
|
15
|
-
liquidityMinted:
|
|
15
|
+
liquidityMinted: BigNumber | undefined;
|
|
16
16
|
shareOfPool: string;
|
|
17
17
|
isExists: boolean;
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
2
1
|
import { Pair } from '@uniswap/v2-sdk';
|
|
3
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
4
4
|
export declare function useUniV2Pairs({ pool, baseAmount, quoteAmount, }: {
|
|
5
5
|
pool?: {
|
|
6
6
|
type: string;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-zetachain.
|
|
3
|
+
"version": "3.0.2-zetachain.100",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -58,31 +58,26 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@
|
|
62
|
-
"@dodoex/
|
|
61
|
+
"@bitcoinerlab/secp256k1": "1.2.0",
|
|
62
|
+
"@dodoex/api": "3.0.3-zetachain.22",
|
|
63
|
+
"@dodoex/components": "3.0.3-zetachain.14",
|
|
63
64
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "1.
|
|
65
|
-
"@dodoex/icons": "
|
|
65
|
+
"@dodoex/dodo-contract-request": "1.19.0-alpha.2",
|
|
66
|
+
"@dodoex/icons": "2.0.3-zetachain.1",
|
|
66
67
|
"@emotion/react": "^11.10.0",
|
|
67
68
|
"@emotion/styled": "^11.10.0",
|
|
68
|
-
"@ethersproject/bignumber": "^5.
|
|
69
|
-
"@ethersproject/contracts": "^5.
|
|
70
|
-
"@
|
|
71
|
-
"@lingui/
|
|
72
|
-
"@lingui/
|
|
69
|
+
"@ethersproject/bignumber": "^5.8.0",
|
|
70
|
+
"@ethersproject/contracts": "^5.8.0",
|
|
71
|
+
"@ethersproject/units": "^5.8.0",
|
|
72
|
+
"@lingui/core": "^4.14.1",
|
|
73
|
+
"@lingui/macro": "^4.14.1",
|
|
74
|
+
"@lingui/react": "^4.14.1",
|
|
73
75
|
"@reduxjs/toolkit": "^1.6.1",
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@uniswap/sdk-core": "^5.9.0",
|
|
78
|
-
"@uniswap/v2-sdk": "^4.6.2",
|
|
79
|
-
"@web3-react/core": "8.2.0",
|
|
80
|
-
"@web3-react/eip1193": "8.2.0",
|
|
81
|
-
"@web3-react/metamask": "8.2.1",
|
|
82
|
-
"@web3-react/types": "8.2.0",
|
|
83
|
-
"@web3-react/walletconnect-v2": "8.3.6",
|
|
76
|
+
"@tanstack/react-query": "^5.74.3",
|
|
77
|
+
"@uniswap/sdk-core": "^7.7.1",
|
|
78
|
+
"@uniswap/v2-sdk": "^4.15.2",
|
|
84
79
|
"axios": "^0.27.2",
|
|
85
|
-
"bignumber.js": "^9.0
|
|
80
|
+
"bignumber.js": "^9.3.0",
|
|
86
81
|
"d3": "7.6.1",
|
|
87
82
|
"dayjs": "^1.11.11",
|
|
88
83
|
"identicon.js": "^2.3.3",
|
|
@@ -99,23 +94,29 @@
|
|
|
99
94
|
"react-window": "^1.8.8",
|
|
100
95
|
"recharts": "^2.12.7",
|
|
101
96
|
"rmc-date-picker": "^6.0.10",
|
|
102
|
-
"semantic-release": "^19.0.2",
|
|
103
97
|
"tiny-invariant": "^1.1.0",
|
|
104
|
-
"zustand": "
|
|
98
|
+
"zustand": "4.4.0"
|
|
105
99
|
},
|
|
106
100
|
"peerDependencies": {
|
|
107
101
|
"@babel/runtime": ">=7.17.0",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
102
|
+
"@reown/appkit": "^1.7.5",
|
|
103
|
+
"@reown/appkit-adapter-solana": "^1.7.5",
|
|
104
|
+
"@reown/appkit-utils": "^1.7.5",
|
|
105
|
+
"@reown/appkit-common": "^1.7.5",
|
|
106
|
+
"@solana/spl-token": "^0.4.13",
|
|
107
|
+
"@solana/web3.js": "1.98.2",
|
|
108
|
+
"bitcoinjs-lib": "6.1.7",
|
|
109
|
+
"@dodoex/btc-connect-react": "^1.5.10",
|
|
110
|
+
"@ethersproject/providers": "^5.8.0",
|
|
111
|
+
"react": "^18.0.0",
|
|
112
|
+
"react-dom": "^18.0.0"
|
|
110
113
|
},
|
|
111
114
|
"devDependencies": {
|
|
112
115
|
"@babel/preset-env": "^7.16.11",
|
|
113
116
|
"@babel/preset-react": "^7.18.6",
|
|
114
117
|
"@babel/preset-typescript": "^7.16.7",
|
|
115
118
|
"@lingui/babel-preset-react": "^2.9.2",
|
|
116
|
-
"@lingui/cli": "^4.
|
|
117
|
-
"@nomicfoundation/hardhat-network-helpers": "^1.0.6",
|
|
118
|
-
"@nomiclabs/hardhat-ethers": "^2.1.1",
|
|
119
|
+
"@lingui/cli": "^4.14.1",
|
|
119
120
|
"@rollup/plugin-babel": "^6.0.4",
|
|
120
121
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
121
122
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -132,14 +133,14 @@
|
|
|
132
133
|
"@types/identicon.js": "^2.3.1",
|
|
133
134
|
"@types/jest": "^29.0.3",
|
|
134
135
|
"@types/lodash": "^4.14.184",
|
|
136
|
+
"@types/react": "^18.0.0",
|
|
137
|
+
"@types/react-dom": "^18.0.0",
|
|
135
138
|
"@types/react-infinite-scroller": "^1.2.5",
|
|
136
139
|
"@types/react-transition-group": "^4.4.11",
|
|
137
140
|
"@types/react-window": "^1.8.5",
|
|
138
141
|
"babel-plugin-macros": "^3.1.0",
|
|
139
142
|
"babel-runtime": "^6.26.0",
|
|
140
143
|
"dotenv": "^16.0.2",
|
|
141
|
-
"ethers": "^5.7.1",
|
|
142
|
-
"hardhat": "^2.22.13",
|
|
143
144
|
"identity-obj-proxy": "^3.0.0",
|
|
144
145
|
"jest": "^29.0.3",
|
|
145
146
|
"jest-environment-hardhat": "^1.1.9",
|