@dodoex/widgets 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/219f8611c6c9e6e2.svg +0 -6
- package/dist/34acf2e58b457195.svg +0 -9
- package/dist/44df077bd19df476.svg +0 -10
- package/dist/5c5d298f247819e1.svg +0 -10
- package/dist/assets/bundle-DSSoJu9z.css +0 -297
- package/dist/cjs/locales/en-US.js +0 -1
- package/dist/cjs/locales/zh-CN.js +0 -1
- package/dist/helper--JcxUF0e.cjs +0 -1
- package/dist/helper-Br9ZsWpc.js +0 -1
- package/dist/index-2zKuftsi.js +0 -12
- package/dist/index-BGMcZUXG.cjs +0 -12
- package/dist/index-CsEPPTrH.cjs +0 -78
- package/dist/index-DZPo6BJK.js +0 -78
- package/dist/index-D_q015ww.cjs +0 -31
- package/dist/index-TwpDYFih.js +0 -31
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -1
- package/dist/locales/en-US.js +0 -1
- package/dist/locales/zh-CN.js +0 -1
- package/dist/types/components/AddTokenToMetamask.d.ts +0 -8
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +0 -23
- package/dist/types/components/AutoButton.d.ts +0 -6
- package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +0 -5
- package/dist/types/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -4
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -17
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -15
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -5
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -13
- package/dist/types/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -9
- package/dist/types/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -3
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -19
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -11
- package/dist/types/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -10
- package/dist/types/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
- package/dist/types/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -7
- package/dist/types/components/CardWidgets.d.ts +0 -51
- package/dist/types/components/Confirm.d.ts +0 -17
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -4
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +0 -7
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -1
- package/dist/types/components/CopyTooltipToast.d.ts +0 -10
- package/dist/types/components/DataCard/DataCardGroup.d.ts +0 -8
- package/dist/types/components/DateTimePickerInput/components/MobileDateTimePicker.d.ts +0 -13
- package/dist/types/components/DateTimePickerInput/components/PCDateTimePicker.d.ts +0 -12
- package/dist/types/components/DateTimePickerInput/index.d.ts +0 -10
- package/dist/types/components/DateTimePickerInput/utils/index.d.ts +0 -1
- package/dist/types/components/Dialog.d.ts +0 -1
- package/dist/types/components/ErrorMessageDialog.d.ts +0 -4
- package/dist/types/components/GoBack.d.ts +0 -5
- package/dist/types/components/HowItWorks.d.ts +0 -10
- package/dist/types/components/LiquidityLpPartnerReward.d.ts +0 -23
- package/dist/types/components/List/EmptyList.d.ts +0 -8
- package/dist/types/components/List/FailedList.d.ts +0 -5
- package/dist/types/components/LoadMore.d.ts +0 -8
- package/dist/types/components/LoadingRotation.d.ts +0 -3
- package/dist/types/components/Message/Countdown.d.ts +0 -12
- package/dist/types/components/Message/index.d.ts +0 -2
- package/dist/types/components/RiskDialog.d.ts +0 -7
- package/dist/types/components/Select.d.ts +0 -15
- package/dist/types/components/SelectChain.d.ts +0 -13
- package/dist/types/components/SpaceBetweenItem.d.ts +0 -5
- package/dist/types/components/SubmittedDialog.d.ts +0 -6
- package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +0 -10
- package/dist/types/components/Swap/SwapOrderHistory/RoutingCard.d.ts +0 -7
- package/dist/types/components/Swap/SwapOrderHistory/RoutingVision.d.ts +0 -25
- package/dist/types/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +0 -5
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +0 -4
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +0 -5
- package/dist/types/components/Swap/components/Dialog.d.ts +0 -17
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +0 -22
- package/dist/types/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -7
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +0 -6
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +0 -7
- package/dist/types/components/Swap/components/SwapSettingsDialog/MoreTradeSetting.d.ts +0 -4
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/CurveChart.d.ts +0 -9
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/SlippageSlider.d.ts +0 -9
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/index.d.ts +0 -12
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useHoverSlider.d.ts +0 -8
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSlippageSlider.d.ts +0 -14
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSuccessRate.d.ts +0 -10
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +0 -6
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +0 -8
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +0 -10
- package/dist/types/components/Swap/components/SwitchBox.d.ts +0 -5
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +0 -12
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +0 -15
- package/dist/types/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -6
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -20
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +0 -40
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -9
- package/dist/types/components/Swap/index.d.ts +0 -17
- package/dist/types/components/SwitchChainDialog/index.d.ts +0 -6
- package/dist/types/components/Table.d.ts +0 -6
- package/dist/types/components/TextSwitch.d.ts +0 -13
- package/dist/types/components/Token/TokenItem.d.ts +0 -9
- package/dist/types/components/TokenLogo.d.ts +0 -20
- package/dist/types/components/TokenLogoPair.d.ts +0 -16
- package/dist/types/components/TokenLogoSimple.d.ts +0 -18
- package/dist/types/components/TokenPairStatusButton.d.ts +0 -6
- package/dist/types/components/TokenPicker/PopularToken.d.ts +0 -6
- package/dist/types/components/TokenPicker/SelectChainItem.d.ts +0 -6
- package/dist/types/components/TokenPicker/TokenItem.d.ts +0 -10
- package/dist/types/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -1
- package/dist/types/components/TokenPicker/index.d.ts +0 -25
- package/dist/types/components/TokenSelect.d.ts +0 -21
- package/dist/types/components/TokenStatusButton.d.ts +0 -6
- package/dist/types/components/Tooltip/QuestionTooltip.d.ts +0 -2
- package/dist/types/components/Tooltip/index.d.ts +0 -1
- package/dist/types/components/UserOptionsProvider.d.ts +0 -7
- package/dist/types/components/Widget/index.d.ts +0 -101
- package/dist/types/components/WidgetConfirm.d.ts +0 -15
- package/dist/types/components/WidgetContainer.d.ts +0 -5
- package/dist/types/components/WidgetDialog.d.ts +0 -14
- package/dist/types/components/WithExecutionDialog/index.d.ts +0 -6
- package/dist/types/components/chart/components/BaseButton.d.ts +0 -4
- package/dist/types/components/chart/components/Display.d.ts +0 -9
- package/dist/types/components/chart/components/Input.d.ts +0 -6
- package/dist/types/components/chart/components/NumberInput.d.ts +0 -5
- package/dist/types/components/chart/components/TogglePriceIcon.d.ts +0 -7
- package/dist/types/components/chart/components/TokenLogo.d.ts +0 -4
- package/dist/types/components/chart/depth-chart/DepthChartKonva.d.ts +0 -29
- package/dist/types/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
- package/dist/types/components/chart/depth-chart/helper.d.ts +0 -125
- package/dist/types/components/chart/depth-chart/index.d.ts +0 -17
- package/dist/types/components/chart/depth-chart/index.styled.d.ts +0 -28
- package/dist/types/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
- package/dist/types/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
- package/dist/types/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
- package/dist/types/components/chart/depth-chart/utils.d.ts +0 -19
- package/dist/types/components/chart/depth-chart-v2/index.d.ts +0 -9
- package/dist/types/components/chart/depth-chart-v2/index.styled.d.ts +0 -14
- package/dist/types/components/chart/hooks/usePreventWheel.d.ts +0 -9
- package/dist/types/components/chart/i18n.d.ts +0 -1
- package/dist/types/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -27
- package/dist/types/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
- package/dist/types/components/chart/liquidity-chart/helper.d.ts +0 -47
- package/dist/types/components/chart/liquidity-chart/index.d.ts +0 -16
- package/dist/types/components/chart/liquidity-chart/index.styled.d.ts +0 -8
- package/dist/types/components/chart/liquidity-chart/useGridLine.d.ts +0 -7
- package/dist/types/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -9
- package/dist/types/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -17
- package/dist/types/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -5
- package/dist/types/components/chart/liquidity-chart/usePoints.d.ts +0 -39
- package/dist/types/components/chart/utils.d.ts +0 -3
- package/dist/types/constants/address.d.ts +0 -1
- package/dist/types/constants/api.d.ts +0 -19
- package/dist/types/constants/chainList.d.ts +0 -10
- package/dist/types/constants/chains.d.ts +0 -20
- package/dist/types/constants/locales.d.ts +0 -3
- package/dist/types/constants/localstorage.d.ts +0 -14
- package/dist/types/constants/pool.d.ts +0 -9
- package/dist/types/constants/sessionStorage.d.ts +0 -2
- package/dist/types/constants/swap.d.ts +0 -7
- package/dist/types/constants/testId.d.ts +0 -11
- package/dist/types/constants/token.d.ts +0 -2
- package/dist/types/constants/tokenList.d.ts +0 -9
- package/dist/types/constants/wallet.d.ts +0 -22
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +0 -28
- package/dist/types/hooks/Bridge/index.d.ts +0 -4
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +0 -15
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
- package/dist/types/hooks/Chain/useChainList.d.ts +0 -2
- 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/index.d.ts +0 -3
- package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -1
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +0 -13
- 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/Submission/getExecutionErrorMsg.d.ts +0 -2
- package/dist/types/hooks/Submission/index.d.ts +0 -9
- package/dist/types/hooks/Submission/spec.d.ts +0 -56
- package/dist/types/hooks/Submission/types.d.ts +0 -95
- package/dist/types/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -16
- package/dist/types/hooks/Submission/useExecution.d.ts +0 -27
- package/dist/types/hooks/Submission/useInflights.d.ts +0 -5
- package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +0 -18
- package/dist/types/hooks/Swap/index.d.ts +0 -4
- package/dist/types/hooks/Swap/useCustomSlippage.d.ts +0 -10
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +0 -13
- package/dist/types/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
- package/dist/types/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +0 -40
- package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +0 -172
- package/dist/types/hooks/Swap/useInitDefaultToken.d.ts +0 -10
- package/dist/types/hooks/Swap/useMarginAmount.d.ts +0 -8
- package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +0 -1
- package/dist/types/hooks/Swap/usePriceTimer.d.ts +0 -5
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +0 -2
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +0 -37
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +0 -174
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +0 -242
- package/dist/types/hooks/Token/index.d.ts +0 -4
- package/dist/types/hooks/Token/type.d.ts +0 -31
- package/dist/types/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
- package/dist/types/hooks/Token/useFindTokenByAddress.d.ts +0 -1
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
- package/dist/types/hooks/Token/useGetCGTokenList.d.ts +0 -15
- package/dist/types/hooks/Token/useGetTokenStatus.d.ts +0 -14
- package/dist/types/hooks/Token/useInitTokenList.d.ts +0 -6
- package/dist/types/hooks/Token/useSelectChainList.d.ts +0 -6
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenList.d.ts +0 -35
- package/dist/types/hooks/Token/useTokenList.test.d.ts +0 -1
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
- package/dist/types/hooks/Token/useTokenStatus.d.ts +0 -21
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +0 -1
- package/dist/types/hooks/contract/index.d.ts +0 -3
- package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +0 -3
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +0 -21
- package/dist/types/hooks/contract/useFetchTokens.d.ts +0 -14
- package/dist/types/hooks/contract/wallet.d.ts +0 -25
- package/dist/types/hooks/setting/useDefaultSlippage.d.ts +0 -4
- package/dist/types/hooks/setting/useGetAPIService.d.ts +0 -2
- package/dist/types/hooks/setting/useSetAutoSlippage.d.ts +0 -13
- package/dist/types/hooks/style/useWidgetDevice.d.ts +0 -6
- package/dist/types/hooks/useFetchFiatPriceBatch.d.ts +0 -4
- package/dist/types/hooks/useGlobalState.d.ts +0 -32
- package/dist/types/hooks/useGraphQLRequests.d.ts +0 -3
- package/dist/types/hooks/useMessageState.d.ts +0 -17
- package/dist/types/hooks/useRouteVisionData.d.ts +0 -15
- package/dist/types/hooks/useTokenState.d.ts +0 -18
- package/dist/types/index.d.ts +0 -44
- package/dist/types/providers/i18n.d.ts +0 -9
- package/dist/types/providers/queryClient/index.d.ts +0 -2
- package/dist/types/providers/useInitContractRequest.d.ts +0 -1
- package/dist/types/router/index.d.ts +0 -10
- package/dist/types/router/types.d.ts +0 -48
- package/dist/types/utils/address.d.ts +0 -33
- package/dist/types/utils/address.test.d.ts +0 -1
- package/dist/types/utils/browser.d.ts +0 -9
- package/dist/types/utils/bytes.d.ts +0 -3
- package/dist/types/utils/chains.d.ts +0 -2
- package/dist/types/utils/chains.test.d.ts +0 -1
- package/dist/types/utils/formatter.d.ts +0 -50
- package/dist/types/utils/formatter.test.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -5
- package/dist/types/utils/time.d.ts +0 -12
- package/dist/types/utils/time.test.d.ts +0 -1
- package/dist/types/utils/token.d.ts +0 -30
- package/dist/types/utils/token.test.d.ts +0 -1
- package/dist/types/utils/utils.d.ts +0 -2
- package/dist/types/utils/wallet.d.ts +0 -8
- package/dist/types/utils/wallet.test.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolCard.d.ts +0 -18
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolPicker.d.ts +0 -22
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardDetailList.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardTokenSelect.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/MiningCreate/components/SectionTitle.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StakingRules.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StepTitle.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/reducers.d.ts +0 -56
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMiningTypeList.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDefaultStakeToken.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDexList.d.ts +0 -16
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +0 -38
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolTokenBalance.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPair.d.ts +0 -17
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPairStatus.d.ts +0 -19
- package/dist/types/widgets/MiningWidget/MiningCreate/index.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.d.ts +0 -13
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/CreateMiningTypeSelect.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/RewardForm.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/SingleTokenSelect.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/TokenPairSelect.d.ts +0 -11
- package/dist/types/widgets/MiningWidget/MiningCreate/types.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +0 -26
- package/dist/types/widgets/MiningWidget/MiningDetail/MiningInfo.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/MiningDetail/RewardCard.d.ts +0 -10
- package/dist/types/widgets/MiningWidget/MiningDetail/index.d.ts +0 -23
- package/dist/types/widgets/MiningWidget/MiningDetail/widgets.d.ts +0 -23
- package/dist/types/widgets/MiningWidget/MiningList/components/APRSection.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningList/components/CloseButton.d.ts +0 -3
- package/dist/types/widgets/MiningWidget/MiningList/components/GoBack.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/components/ManageButtonList.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningCardLayout.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListEmpty.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListLoading.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningStatusTabSelect.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTags.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTitle.d.ts +0 -30
- package/dist/types/widgets/MiningWidget/MiningList/components/MyStakedSection.d.ts +0 -10
- package/dist/types/widgets/MiningWidget/MiningList/components/OperateButtonList.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningList/components/RewardsSection.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/MiningList/components/SearchComponents.d.ts +0 -15
- package/dist/types/widgets/MiningWidget/MiningList/components/ShareModeSelect.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningList/components/TVLSection.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/components/TokenAmountPopover.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/MiningList/components/UnknownUSDPopover.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/MiningList/components/UsersIcon.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/MiningList/components/widgets.d.ts +0 -26
- package/dist/types/widgets/MiningWidget/MiningList/contexts.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningList/dom.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.d.ts +0 -22
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useGetLpLink.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useHasUnclaimedReward.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useMyStakedLoading.d.ts +0 -11
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useOperateHooks.d.ts +0 -17
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenInfo.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenTrigger.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStakedInfo.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useTotalRewardUSD.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/index.d.ts +0 -16
- package/dist/types/widgets/MiningWidget/MiningList/mining-types/BaseMiningCard.d.ts +0 -17
- package/dist/types/widgets/MiningWidget/MiningList/my-created/MyCreatedMining.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/MiningList/my-created/OperateArea.d.ts +0 -10
- package/dist/types/widgets/MiningWidget/MiningList/my-created/RewardCard.d.ts +0 -10
- package/dist/types/widgets/MiningWidget/MiningList/my-created/index.d.ts +0 -8
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/AssociatedMine.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimButton.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimTips.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/GetLpLink.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/InputArea.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/PercentageSelectButtonGroup.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardListCard.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardTokenTable.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeButton.d.ts +0 -25
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeTokenSelect.d.ts +0 -10
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.d.ts +0 -15
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/index.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/utils.d.ts +0 -24
- package/dist/types/widgets/MiningWidget/MiningList/utils.d.ts +0 -41
- package/dist/types/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
- package/dist/types/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -4
- package/dist/types/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -7
- package/dist/types/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -11
- package/dist/types/widgets/MiningWidget/OperateArea/Widgets.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +0 -14
- package/dist/types/widgets/MiningWidget/helper.d.ts +0 -2
- package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +0 -69
- package/dist/types/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/hooks/useMiningBlockNumber.d.ts +0 -6
- package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +0 -11
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/hooks/useMiningListContractDataMap.d.ts +0 -12
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +0 -11
- package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +0 -1
- package/dist/types/widgets/MiningWidget/hooks/useRefetch.d.ts +0 -5
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +0 -28
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -18
- package/dist/types/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
- package/dist/types/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -9
- package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +0 -30
- package/dist/types/widgets/MiningWidget/types.d.ts +0 -210
- package/dist/types/widgets/PoolWidget/AMMV2Create/ConfirmDialog.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/AMMV2Create/CreateItem.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV2Create/FeeEdit.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV2Create/MyLiqidity.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/AMMV2Create/index.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/types.d.ts +0 -50
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/utils.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV3/components/shared.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +0 -55
- package/dist/types/widgets/PoolWidget/AMMV3/constants/misc.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useContract.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedPositionInfo.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useIsTickAtLimit.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useRangeHopCallbacks.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useSwapTaxes.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +0 -46
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3MintActionHandlers.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3PositionFees.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3Positions.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +0 -55
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/constants.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/baseCurrency.d.ts +0 -49
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/currency.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +0 -32
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/fraction.d.ts +0 -24
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/percent.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/price.d.ts +0 -38
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrency.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/token.d.ts +0 -48
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/index.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/computePriceImpact.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sortedInsert.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sqrt.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +0 -32
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/index.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/pool.d.ts +0 -81
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/position.d.ts +0 -131
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/route.d.ts +0 -26
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tick.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickDataProvider.d.ts +0 -31
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickListDataProvider.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/trade.d.ts +0 -220
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/index.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/internalConstants.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/multicall.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/nonfungiblePositionManager.d.ts +0 -159
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/payments.d.ts +0 -24
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/quoter.d.ts +0 -37
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/selfPermit.d.ts +0 -25
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/staker.d.ts +0 -101
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/swapRouter.d.ts +0 -51
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/calldata.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/computePoolAddress.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/fullMath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/index.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/isSorted.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/liquidityMath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/mostSignificantBit.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/nearestUsableTick.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/position.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/priceTickConversions.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/swapMath.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickLibrary.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickList.d.ts +0 -23
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickMath.d.ts +0 -34
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/v3swap.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/AMMV3/types/position.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/AMMV3/types.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/AMMV3/utils/computeSurroundingTicks.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/utils/formatTickPrice.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/AMMV3/utils/getTickToPrice.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/AMMV3/utils/maxAmountSpend.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/utils/slippage.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseCurrencyAmount.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseTick.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/AMMV3/utils.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolCreate/components/GasWrapGasTokenError.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/RatioSetting.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/TokenPairSelect.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -90
- package/dist/types/widgets/PoolWidget/PoolCreate/types.d.ts +0 -39
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -40
- package/dist/types/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -27
- package/dist/types/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -315
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolList/components/CreatePoolBtn.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -61
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/PoolOperate/components/GSPPairRiskWarning.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -53
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -35
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +0 -34
- package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -87
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
- package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2Balance.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -49
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -386
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +0 -27
- package/dist/types/widgets/PoolWidget/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/utils.d.ts +0 -21
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BigintIsh, Rounding } from '../../constants';
|
|
2
|
-
import { Currency } from '../currency';
|
|
3
|
-
import { Fraction } from './fraction';
|
|
4
|
-
import { CurrencyAmount } from './currencyAmount';
|
|
5
|
-
export declare class Price<TBase extends Currency, TQuote extends Currency> extends Fraction {
|
|
6
|
-
readonly baseCurrency: TBase;
|
|
7
|
-
readonly quoteCurrency: TQuote;
|
|
8
|
-
readonly scalar: Fraction;
|
|
9
|
-
/**
|
|
10
|
-
* Construct a price, either with the base and quote currency amount, or the
|
|
11
|
-
* @param args
|
|
12
|
-
*/
|
|
13
|
-
constructor(...args: [TBase, TQuote, BigintIsh, BigintIsh] | [{
|
|
14
|
-
baseAmount: CurrencyAmount<TBase>;
|
|
15
|
-
quoteAmount: CurrencyAmount<TQuote>;
|
|
16
|
-
}]);
|
|
17
|
-
/**
|
|
18
|
-
* Flip the price, switching the base and quote currency
|
|
19
|
-
*/
|
|
20
|
-
invert(): Price<TQuote, TBase>;
|
|
21
|
-
/**
|
|
22
|
-
* Multiply the price by another price, returning a new price. The other price must have the same base currency as this price's quote currency
|
|
23
|
-
* @param other the other price
|
|
24
|
-
*/
|
|
25
|
-
multiply<TOtherQuote extends Currency>(other: Price<TQuote, TOtherQuote>): Price<TBase, TOtherQuote>;
|
|
26
|
-
/**
|
|
27
|
-
* Return the amount of quote currency corresponding to a given amount of the base currency
|
|
28
|
-
* @param currencyAmount the amount of base currency to quote against the price
|
|
29
|
-
*/
|
|
30
|
-
quote(currencyAmount: CurrencyAmount<TBase>): CurrencyAmount<TQuote>;
|
|
31
|
-
/**
|
|
32
|
-
* Get the value scaled by decimals for formatting
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
private get adjustedForDecimals();
|
|
36
|
-
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
37
|
-
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { Currency, NativeCurrencyClass, Token } from '..';
|
|
3
|
-
export declare class NativeCurrency implements NativeCurrencyClass {
|
|
4
|
-
constructor(chainId: number);
|
|
5
|
-
chainId: ChainId;
|
|
6
|
-
decimals: number;
|
|
7
|
-
name: string;
|
|
8
|
-
symbol: string;
|
|
9
|
-
isNative: true;
|
|
10
|
-
isToken: false;
|
|
11
|
-
address: string;
|
|
12
|
-
equals(currency: Currency): boolean;
|
|
13
|
-
get wrapped(): Token;
|
|
14
|
-
private static _cachedNativeCurrency;
|
|
15
|
-
static onChain(chainId: number): NativeCurrency;
|
|
16
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from '@ethersproject/bignumber';
|
|
2
|
-
import { BaseCurrency } from './baseCurrency';
|
|
3
|
-
import { Currency } from './currency';
|
|
4
|
-
/**
|
|
5
|
-
* Represents an ERC20 token with a unique address and some metadata.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Token extends BaseCurrency {
|
|
8
|
-
readonly isNative: false;
|
|
9
|
-
readonly isToken: true;
|
|
10
|
-
/**
|
|
11
|
-
* The contract address on the chain on which this token lives
|
|
12
|
-
*/
|
|
13
|
-
readonly address: string;
|
|
14
|
-
/**
|
|
15
|
-
* Relevant for fee-on-transfer (FOT) token taxes,
|
|
16
|
-
* Not every ERC20 token is FOT token, so this field is optional
|
|
17
|
-
*/
|
|
18
|
-
readonly buyFeeBps?: BigNumber;
|
|
19
|
-
readonly sellFeeBps?: BigNumber;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param chainId {@link BaseCurrency#chainId}
|
|
23
|
-
* @param address The contract address on the chain on which this token lives
|
|
24
|
-
* @param decimals {@link BaseCurrency#decimals}
|
|
25
|
-
* @param symbol {@link BaseCurrency#symbol}
|
|
26
|
-
* @param name {@link BaseCurrency#name}
|
|
27
|
-
* @param bypassChecksum If true it only checks for length === 42, startsWith 0x and contains only hex characters
|
|
28
|
-
* @param buyFeeBps Buy fee tax for FOT tokens, in basis points
|
|
29
|
-
* @param sellFeeBps Sell fee tax for FOT tokens, in basis points
|
|
30
|
-
*/
|
|
31
|
-
constructor(chainId: number, address: string, decimals: number, symbol?: string, name?: string, bypassChecksum?: boolean, buyFeeBps?: BigNumber, sellFeeBps?: BigNumber);
|
|
32
|
-
/**
|
|
33
|
-
* Returns true if the two tokens are equivalent, i.e. have the same chainId and address.
|
|
34
|
-
* @param other other token to compare
|
|
35
|
-
*/
|
|
36
|
-
equals(other: Currency): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Returns true if the address of this token sorts before the address of the other token
|
|
39
|
-
* @param other other token to compare
|
|
40
|
-
* @throws if the tokens have the same address
|
|
41
|
-
* @throws if the tokens are on different chains
|
|
42
|
-
*/
|
|
43
|
-
sortsBefore(other: Token): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Return this token, which does not need to be wrapped
|
|
46
|
-
*/
|
|
47
|
-
get wrapped(): Token;
|
|
48
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Currency, CurrencyAmount, Percent, Price } from '../entities';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the percent difference between the mid price and the execution price, i.e. price impact.
|
|
4
|
-
* @param midPrice mid price before the trade
|
|
5
|
-
* @param inputAmount the input amount of the trade
|
|
6
|
-
* @param outputAmount the output amount of the trade
|
|
7
|
-
*/
|
|
8
|
-
export declare function computePriceImpact<TBase extends Currency, TQuote extends Currency>(midPrice: Price<TBase, TQuote>, inputAmount: CurrencyAmount<TBase>, outputAmount: CurrencyAmount<TQuote>): Percent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sortedInsert<T>(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null;
|
package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validates an address and returns the parsed (checksummed) version of that address
|
|
3
|
-
* @param address the unchecksummed hex address
|
|
4
|
-
*/
|
|
5
|
-
export declare function validateAndParseAddress(address: string): string;
|
|
6
|
-
/**
|
|
7
|
-
* Checks if an address is valid by checking 0x prefix, length === 42 and hex encoding.
|
|
8
|
-
* @param address the unchecksummed hex address
|
|
9
|
-
*/
|
|
10
|
-
export declare function checkValidAddress(address: string): string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '../sdk-core';
|
|
2
|
-
/**
|
|
3
|
-
* Taiko UniswapV3Factory
|
|
4
|
-
* @see https://taikoscan.io/address/0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2?tab=contract#code
|
|
5
|
-
*/
|
|
6
|
-
export declare const FACTORY_ADDRESS = "0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2";
|
|
7
|
-
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
8
|
-
export declare const POOL_INIT_CODE_HASH = "0x5ccd5621c1bb9e44ce98cef8b90d31eb2423dec3793b6239232cefae976936ea";
|
|
9
|
-
/**
|
|
10
|
-
* Taiko POOL_INIT_CODE_HASH
|
|
11
|
-
* @see PoolAddress.sol
|
|
12
|
-
* @see https://taikoscan.io/address/0x202bEE65B164aEcBb6A2318438bf46bEF14E1072?tab=contract#code#F12#L6
|
|
13
|
-
*/
|
|
14
|
-
export declare function poolInitCodeHash(chainId?: ChainId): string;
|
|
15
|
-
/**
|
|
16
|
-
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
17
|
-
*/
|
|
18
|
-
export declare enum FeeAmount {
|
|
19
|
-
LOWEST = 100,
|
|
20
|
-
LOW_200 = 200,
|
|
21
|
-
LOW_300 = 300,
|
|
22
|
-
LOW_400 = 400,
|
|
23
|
-
LOW = 500,
|
|
24
|
-
MEDIUM = 3000,
|
|
25
|
-
HIGH = 10000
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The default factory tick spacings by fee amount.
|
|
29
|
-
*/
|
|
30
|
-
export declare const TICK_SPACINGS: {
|
|
31
|
-
[amount in FeeAmount]: number;
|
|
32
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { BigintIsh, CurrencyAmount, Price, Token } from '../../sdk-core';
|
|
3
|
-
import { FeeAmount } from '../constants';
|
|
4
|
-
import { Tick, TickConstructorArgs } from './tick';
|
|
5
|
-
import { TickDataProvider } from './tickDataProvider';
|
|
6
|
-
/**
|
|
7
|
-
* Represents a V3 pool
|
|
8
|
-
*/
|
|
9
|
-
export declare class Pool {
|
|
10
|
-
readonly token0: Token;
|
|
11
|
-
readonly token1: Token;
|
|
12
|
-
readonly fee: FeeAmount;
|
|
13
|
-
readonly sqrtRatioX96: JSBI;
|
|
14
|
-
readonly liquidity: JSBI;
|
|
15
|
-
readonly tickCurrent: number;
|
|
16
|
-
readonly tickDataProvider: TickDataProvider;
|
|
17
|
-
private _token0Price?;
|
|
18
|
-
private _token1Price?;
|
|
19
|
-
static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: string, factoryAddressOverride?: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Construct a pool
|
|
22
|
-
* @param tokenA One of the tokens in the pool
|
|
23
|
-
* @param tokenB The other token in the pool
|
|
24
|
-
* @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool
|
|
25
|
-
* @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0
|
|
26
|
-
* @param liquidity The current value of in range liquidity
|
|
27
|
-
* @param tickCurrent The current tick of the pool
|
|
28
|
-
* @param ticks The current state of the pool ticks or a data provider that can return tick data
|
|
29
|
-
*/
|
|
30
|
-
constructor(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtRatioX96: BigintIsh, liquidity: BigintIsh, tickCurrent: number, ticks?: TickDataProvider | (Tick | TickConstructorArgs)[]);
|
|
31
|
-
/**
|
|
32
|
-
* Returns true if the token is either token0 or token1
|
|
33
|
-
* @param token The token to check
|
|
34
|
-
* @returns True if token is either token0 or token
|
|
35
|
-
*/
|
|
36
|
-
involvesToken(token: Token): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0
|
|
39
|
-
*/
|
|
40
|
-
get token0Price(): Price<Token, Token>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1
|
|
43
|
-
*/
|
|
44
|
-
get token1Price(): Price<Token, Token>;
|
|
45
|
-
/**
|
|
46
|
-
* Return the price of the given token in terms of the other token in the pool.
|
|
47
|
-
* @param token The token to return price of
|
|
48
|
-
* @returns The price of the given token, in terms of the other.
|
|
49
|
-
*/
|
|
50
|
-
priceOf(token: Token): Price<Token, Token>;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the chain ID of the tokens in the pool.
|
|
53
|
-
*/
|
|
54
|
-
get chainId(): number;
|
|
55
|
-
/**
|
|
56
|
-
* Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade
|
|
57
|
-
* @param inputAmount The input amount for which to quote the output amount
|
|
58
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit
|
|
59
|
-
* @returns The output amount and the pool with updated state
|
|
60
|
-
*/
|
|
61
|
-
getOutputAmount(inputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
62
|
-
/**
|
|
63
|
-
* Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
|
|
64
|
-
* @param outputAmount the output amount for which to quote the input amount
|
|
65
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
66
|
-
* @returns The input amount and the pool with updated state
|
|
67
|
-
*/
|
|
68
|
-
getInputAmount(outputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
69
|
-
/**
|
|
70
|
-
* Executes a swap
|
|
71
|
-
* @param zeroForOne Whether the amount in is token0 or token1
|
|
72
|
-
* @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
|
|
73
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
74
|
-
* @returns amountCalculated
|
|
75
|
-
* @returns sqrtRatioX96
|
|
76
|
-
* @returns liquidity
|
|
77
|
-
* @returns tickCurrent
|
|
78
|
-
*/
|
|
79
|
-
private swap;
|
|
80
|
-
get tickSpacing(): number;
|
|
81
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { BigintIsh, CurrencyAmount, Percent, Price, Token } from '../../sdk-core';
|
|
3
|
-
import { Pool } from './pool';
|
|
4
|
-
interface PositionConstructorArgs {
|
|
5
|
-
pool: Pool;
|
|
6
|
-
tickLower: number;
|
|
7
|
-
tickUpper: number;
|
|
8
|
-
liquidity: BigintIsh;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents a position on a Uniswap V3 Pool
|
|
12
|
-
*/
|
|
13
|
-
export declare class Position {
|
|
14
|
-
readonly pool: Pool;
|
|
15
|
-
readonly tickLower: number;
|
|
16
|
-
readonly tickUpper: number;
|
|
17
|
-
readonly liquidity: JSBI;
|
|
18
|
-
private _token0Amount;
|
|
19
|
-
private _token1Amount;
|
|
20
|
-
private _mintAmounts;
|
|
21
|
-
/**
|
|
22
|
-
* Constructs a position for a given pool with the given liquidity
|
|
23
|
-
* @param pool For which pool the liquidity is assigned
|
|
24
|
-
* @param liquidity The amount of liquidity that is in the position
|
|
25
|
-
* @param tickLower The lower tick of the position
|
|
26
|
-
* @param tickUpper The upper tick of the position
|
|
27
|
-
*/
|
|
28
|
-
constructor({ pool, liquidity, tickLower, tickUpper, }: PositionConstructorArgs);
|
|
29
|
-
/**
|
|
30
|
-
* Returns the price of token0 at the lower tick
|
|
31
|
-
*/
|
|
32
|
-
get token0PriceLower(): Price<Token, Token>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns the price of token0 at the upper tick
|
|
35
|
-
*/
|
|
36
|
-
get token0PriceUpper(): Price<Token, Token>;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the amount of token0 that this position's liquidity could be burned for at the current pool price
|
|
39
|
-
*/
|
|
40
|
-
get amount0(): CurrencyAmount<Token>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the amount of token1 that this position's liquidity could be burned for at the current pool price
|
|
43
|
-
*/
|
|
44
|
-
get amount1(): CurrencyAmount<Token>;
|
|
45
|
-
/**
|
|
46
|
-
* Returns the lower and upper sqrt ratios if the price 'slips' up to slippage tolerance percentage
|
|
47
|
-
* @param slippageTolerance The amount by which the price can 'slip' before the transaction will revert
|
|
48
|
-
* @returns The sqrt ratios after slippage
|
|
49
|
-
*/
|
|
50
|
-
private ratiosAfterSlippage;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the minimum amounts that must be sent in order to safely mint the amount of liquidity held by the position
|
|
53
|
-
* with the given slippage tolerance
|
|
54
|
-
* @param slippageTolerance Tolerance of unfavorable slippage from the current price
|
|
55
|
-
* @returns The amounts, with slippage
|
|
56
|
-
*/
|
|
57
|
-
mintAmountsWithSlippage(slippageTolerance: Percent): Readonly<{
|
|
58
|
-
amount0: JSBI;
|
|
59
|
-
amount1: JSBI;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the minimum amounts that should be requested in order to safely burn the amount of liquidity held by the
|
|
63
|
-
* position with the given slippage tolerance
|
|
64
|
-
* @param slippageTolerance tolerance of unfavorable slippage from the current price
|
|
65
|
-
* @returns The amounts, with slippage
|
|
66
|
-
*/
|
|
67
|
-
burnAmountsWithSlippage(slippageTolerance: Percent): Readonly<{
|
|
68
|
-
amount0: JSBI;
|
|
69
|
-
amount1: JSBI;
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the minimum amounts that must be sent in order to mint the amount of liquidity held by the position at
|
|
73
|
-
* the current price for the pool
|
|
74
|
-
*/
|
|
75
|
-
get mintAmounts(): Readonly<{
|
|
76
|
-
amount0: JSBI;
|
|
77
|
-
amount1: JSBI;
|
|
78
|
-
}>;
|
|
79
|
-
/**
|
|
80
|
-
* Computes the maximum amount of liquidity received for a given amount of token0, token1,
|
|
81
|
-
* and the prices at the tick boundaries.
|
|
82
|
-
* @param pool The pool for which the position should be created
|
|
83
|
-
* @param tickLower The lower tick of the position
|
|
84
|
-
* @param tickUpper The upper tick of the position
|
|
85
|
-
* @param amount0 token0 amount
|
|
86
|
-
* @param amount1 token1 amount
|
|
87
|
-
* @param useFullPrecision If false, liquidity will be maximized according to what the router can calculate,
|
|
88
|
-
* not what core can theoretically support
|
|
89
|
-
* @returns The amount of liquidity for the position
|
|
90
|
-
*/
|
|
91
|
-
static fromAmounts({ pool, tickLower, tickUpper, amount0, amount1, useFullPrecision, }: {
|
|
92
|
-
pool: Pool;
|
|
93
|
-
tickLower: number;
|
|
94
|
-
tickUpper: number;
|
|
95
|
-
amount0: BigintIsh;
|
|
96
|
-
amount1: BigintIsh;
|
|
97
|
-
useFullPrecision: boolean;
|
|
98
|
-
}): Position;
|
|
99
|
-
/**
|
|
100
|
-
* Computes a position with the maximum amount of liquidity received for a given amount of token0, assuming an unlimited amount of token1
|
|
101
|
-
* @param pool The pool for which the position is created
|
|
102
|
-
* @param tickLower The lower tick
|
|
103
|
-
* @param tickUpper The upper tick
|
|
104
|
-
* @param amount0 The desired amount of token0
|
|
105
|
-
* @param useFullPrecision If true, liquidity will be maximized according to what the router can calculate,
|
|
106
|
-
* not what core can theoretically support
|
|
107
|
-
* @returns The position
|
|
108
|
-
*/
|
|
109
|
-
static fromAmount0({ pool, tickLower, tickUpper, amount0, useFullPrecision, }: {
|
|
110
|
-
pool: Pool;
|
|
111
|
-
tickLower: number;
|
|
112
|
-
tickUpper: number;
|
|
113
|
-
amount0: BigintIsh;
|
|
114
|
-
useFullPrecision: boolean;
|
|
115
|
-
}): Position;
|
|
116
|
-
/**
|
|
117
|
-
* Computes a position with the maximum amount of liquidity received for a given amount of token1, assuming an unlimited amount of token0
|
|
118
|
-
* @param pool The pool for which the position is created
|
|
119
|
-
* @param tickLower The lower tick
|
|
120
|
-
* @param tickUpper The upper tick
|
|
121
|
-
* @param amount1 The desired amount of token1
|
|
122
|
-
* @returns The position
|
|
123
|
-
*/
|
|
124
|
-
static fromAmount1({ pool, tickLower, tickUpper, amount1, }: {
|
|
125
|
-
pool: Pool;
|
|
126
|
-
tickLower: number;
|
|
127
|
-
tickUpper: number;
|
|
128
|
-
amount1: BigintIsh;
|
|
129
|
-
}): Position;
|
|
130
|
-
}
|
|
131
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Currency, Price, Token } from '../../sdk-core';
|
|
2
|
-
import { Pool } from './pool';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a list of pools through which a swap can occur
|
|
5
|
-
* @template TInput The input token
|
|
6
|
-
* @template TOutput The output token
|
|
7
|
-
*/
|
|
8
|
-
export declare class Route<TInput extends Currency, TOutput extends Currency> {
|
|
9
|
-
readonly pools: Pool[];
|
|
10
|
-
readonly tokenPath: Token[];
|
|
11
|
-
readonly input: TInput;
|
|
12
|
-
readonly output: TOutput;
|
|
13
|
-
private _midPrice;
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of route.
|
|
16
|
-
* @param pools An array of `Pool` objects, ordered by the route the swap will take
|
|
17
|
-
* @param input The input token
|
|
18
|
-
* @param output The output token
|
|
19
|
-
*/
|
|
20
|
-
constructor(pools: Pool[], input: TInput, output: TOutput);
|
|
21
|
-
get chainId(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the mid price of the route
|
|
24
|
-
*/
|
|
25
|
-
get midPrice(): Price<TInput, TOutput>;
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { BigintIsh } from '../../sdk-core';
|
|
3
|
-
export interface TickConstructorArgs {
|
|
4
|
-
index: number;
|
|
5
|
-
liquidityGross: BigintIsh;
|
|
6
|
-
liquidityNet: BigintIsh;
|
|
7
|
-
}
|
|
8
|
-
export declare class Tick {
|
|
9
|
-
readonly index: number;
|
|
10
|
-
readonly liquidityGross: JSBI;
|
|
11
|
-
readonly liquidityNet: JSBI;
|
|
12
|
-
constructor({ index, liquidityGross, liquidityNet }: TickConstructorArgs);
|
|
13
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BigintIsh } from '../../sdk-core';
|
|
2
|
-
/**
|
|
3
|
-
* Provides information about ticks
|
|
4
|
-
*/
|
|
5
|
-
export interface TickDataProvider {
|
|
6
|
-
/**
|
|
7
|
-
* Return information corresponding to a specific tick
|
|
8
|
-
* @param tick the tick to load
|
|
9
|
-
*/
|
|
10
|
-
getTick(tick: number): Promise<{
|
|
11
|
-
liquidityNet: BigintIsh;
|
|
12
|
-
}>;
|
|
13
|
-
/**
|
|
14
|
-
* Return the next tick that is initialized within a single word
|
|
15
|
-
* @param tick The current tick
|
|
16
|
-
* @param lte Whether the next tick should be lte the current tick
|
|
17
|
-
* @param tickSpacing The tick spacing of the pool
|
|
18
|
-
*/
|
|
19
|
-
nextInitializedTickWithinOneWord(tick: number, lte: boolean, tickSpacing: number): Promise<[number, boolean]>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This tick data provider does not know how to fetch any tick data. It throws whenever it is required. Useful if you
|
|
23
|
-
* do not need to load tick data for your use case.
|
|
24
|
-
*/
|
|
25
|
-
export declare class NoTickDataProvider implements TickDataProvider {
|
|
26
|
-
private static ERROR_MESSAGE;
|
|
27
|
-
getTick(_tick: number): Promise<{
|
|
28
|
-
liquidityNet: BigintIsh;
|
|
29
|
-
}>;
|
|
30
|
-
nextInitializedTickWithinOneWord(_tick: number, _lte: boolean, _tickSpacing: number): Promise<[number, boolean]>;
|
|
31
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BigintIsh } from '../../sdk-core';
|
|
2
|
-
import { Tick, TickConstructorArgs } from './tick';
|
|
3
|
-
import { TickDataProvider } from './tickDataProvider';
|
|
4
|
-
/**
|
|
5
|
-
* A data provider for ticks that is backed by an in-memory array of ticks.
|
|
6
|
-
*/
|
|
7
|
-
export declare class TickListDataProvider implements TickDataProvider {
|
|
8
|
-
private ticks;
|
|
9
|
-
constructor(ticks: (Tick | TickConstructorArgs)[], tickSpacing: number);
|
|
10
|
-
getTick(tick: number): Promise<{
|
|
11
|
-
liquidityNet: BigintIsh;
|
|
12
|
-
liquidityGross: BigintIsh;
|
|
13
|
-
}>;
|
|
14
|
-
nextInitializedTickWithinOneWord(tick: number, lte: boolean, tickSpacing: number): Promise<[number, boolean]>;
|
|
15
|
-
}
|