@dodoex/widgets 3.2.2 → 3.2.3
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/219f8611c6c9e6e2.svg +6 -0
- package/dist/34acf2e58b457195.svg +9 -0
- package/dist/44df077bd19df476.svg +10 -0
- package/dist/5c5d298f247819e1.svg +10 -0
- package/dist/assets/bundle-DSSoJu9z.css +297 -0
- package/dist/cjs/locales/en-US.js +1 -0
- package/dist/cjs/locales/zh-CN.js +1 -0
- package/dist/helper-Be7aLbEq.js +1 -0
- package/dist/helper-dEfhJEkX.cjs +1 -0
- package/dist/index-3B5w0yNs.js +78 -0
- package/dist/index-BK2jeS15.cjs +31 -0
- package/dist/index-BQ7ViRDq.js +31 -0
- package/dist/index-BiM6Z6o7.cjs +78 -0
- package/dist/index-DAXZvHWe.js +12 -0
- package/dist/index-IayNVRuq.cjs +12 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/en-US.js +1 -0
- package/dist/locales/zh-CN.js +1 -0
- package/dist/types/components/AddTokenToMetamask.d.ts +8 -0
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +23 -0
- package/dist/types/components/AutoButton.d.ts +6 -0
- package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +5 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +4 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +17 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +15 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +5 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +6 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +13 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +9 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +3 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +19 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +11 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +10 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/index.d.ts +9 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/productList.d.ts +7 -0
- package/dist/types/components/CardWidgets.d.ts +51 -0
- package/dist/types/components/Confirm.d.ts +17 -0
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +4 -0
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +7 -0
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +1 -0
- package/dist/types/components/CopyTooltipToast.d.ts +10 -0
- package/dist/types/components/DataCard/DataCardGroup.d.ts +8 -0
- package/dist/types/components/DateTimePickerInput/components/MobileDateTimePicker.d.ts +13 -0
- package/dist/types/components/DateTimePickerInput/components/PCDateTimePicker.d.ts +12 -0
- package/dist/types/components/DateTimePickerInput/index.d.ts +10 -0
- package/dist/types/components/DateTimePickerInput/utils/index.d.ts +1 -0
- package/dist/types/components/Dialog.d.ts +1 -0
- package/dist/types/components/ErrorMessageDialog.d.ts +4 -0
- package/dist/types/components/GoBack.d.ts +5 -0
- package/dist/types/components/HowItWorks.d.ts +10 -0
- package/dist/types/components/LiquidityLpPartnerReward.d.ts +23 -0
- package/dist/types/components/List/EmptyList.d.ts +8 -0
- package/dist/types/components/List/FailedList.d.ts +5 -0
- package/dist/types/components/LoadMore.d.ts +8 -0
- package/dist/types/components/LoadingRotation.d.ts +3 -0
- package/dist/types/components/Message/Countdown.d.ts +12 -0
- package/dist/types/components/Message/index.d.ts +2 -0
- package/dist/types/components/RiskDialog.d.ts +7 -0
- package/dist/types/components/Select.d.ts +15 -0
- package/dist/types/components/SelectChain.d.ts +13 -0
- package/dist/types/components/SpaceBetweenItem.d.ts +5 -0
- package/dist/types/components/SubmittedDialog.d.ts +6 -0
- package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +10 -0
- package/dist/types/components/Swap/SwapOrderHistory/RoutingCard.d.ts +7 -0
- package/dist/types/components/Swap/SwapOrderHistory/RoutingVision.d.ts +25 -0
- package/dist/types/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +5 -0
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +4 -0
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +5 -0
- package/dist/types/components/Swap/components/Dialog.d.ts +17 -0
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +22 -0
- package/dist/types/components/Swap/components/SettingsDialog/NumberInput.d.ts +7 -0
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +6 -0
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +7 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/MoreTradeSetting.d.ts +4 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/CurveChart.d.ts +9 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/SlippageSlider.d.ts +9 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/index.d.ts +12 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useHoverSlider.d.ts +8 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSlippageSlider.d.ts +14 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSuccessRate.d.ts +10 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +6 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +8 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +10 -0
- package/dist/types/components/Swap/components/SwitchBox.d.ts +5 -0
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +12 -0
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +15 -0
- package/dist/types/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +6 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +8 -0
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +20 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +40 -0
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +9 -0
- package/dist/types/components/Swap/index.d.ts +17 -0
- package/dist/types/components/SwitchChainDialog/index.d.ts +6 -0
- package/dist/types/components/Table.d.ts +6 -0
- package/dist/types/components/TextSwitch.d.ts +13 -0
- package/dist/types/components/Token/TokenItem.d.ts +9 -0
- package/dist/types/components/TokenLogo.d.ts +20 -0
- package/dist/types/components/TokenLogoPair.d.ts +16 -0
- package/dist/types/components/TokenLogoSimple.d.ts +18 -0
- package/dist/types/components/TokenPairStatusButton.d.ts +6 -0
- package/dist/types/components/TokenPicker/PopularToken.d.ts +6 -0
- package/dist/types/components/TokenPicker/SelectChainItem.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenItem.d.ts +10 -0
- package/dist/types/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +1 -0
- package/dist/types/components/TokenPicker/index.d.ts +25 -0
- package/dist/types/components/TokenSelect.d.ts +21 -0
- package/dist/types/components/TokenStatusButton.d.ts +6 -0
- package/dist/types/components/Tooltip/QuestionTooltip.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/UserOptionsProvider.d.ts +7 -0
- package/dist/types/components/Widget/index.d.ts +101 -0
- package/dist/types/components/WidgetConfirm.d.ts +15 -0
- package/dist/types/components/WidgetContainer.d.ts +5 -0
- package/dist/types/components/WidgetDialog.d.ts +14 -0
- package/dist/types/components/WithExecutionDialog/index.d.ts +6 -0
- package/dist/types/components/chart/components/BaseButton.d.ts +4 -0
- package/dist/types/components/chart/components/Display.d.ts +9 -0
- package/dist/types/components/chart/components/Input.d.ts +6 -0
- package/dist/types/components/chart/components/NumberInput.d.ts +5 -0
- package/dist/types/components/chart/components/TogglePriceIcon.d.ts +7 -0
- package/dist/types/components/chart/components/TokenLogo.d.ts +4 -0
- package/dist/types/components/chart/depth-chart/DepthChartKonva.d.ts +29 -0
- package/dist/types/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/types/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/types/components/chart/depth-chart/index.d.ts +17 -0
- package/dist/types/components/chart/depth-chart/index.styled.d.ts +28 -0
- package/dist/types/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/types/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/types/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/types/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/types/components/chart/depth-chart-v2/index.d.ts +9 -0
- package/dist/types/components/chart/depth-chart-v2/index.styled.d.ts +14 -0
- package/dist/types/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/types/components/chart/i18n.d.ts +1 -0
- package/dist/types/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +27 -0
- package/dist/types/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/types/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/types/components/chart/liquidity-chart/index.d.ts +16 -0
- package/dist/types/components/chart/liquidity-chart/index.styled.d.ts +8 -0
- package/dist/types/components/chart/liquidity-chart/useGridLine.d.ts +7 -0
- package/dist/types/components/chart/liquidity-chart/useHorizontalLabel.d.ts +9 -0
- package/dist/types/components/chart/liquidity-chart/useLiquidityLine.d.ts +17 -0
- package/dist/types/components/chart/liquidity-chart/useMiddleLine.d.ts +5 -0
- package/dist/types/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/types/components/chart/utils.d.ts +3 -0
- package/dist/types/constants/address.d.ts +1 -0
- package/dist/types/constants/api.d.ts +19 -0
- package/dist/types/constants/chainList.d.ts +10 -0
- package/dist/types/constants/chains.d.ts +20 -0
- package/dist/types/constants/locales.d.ts +3 -0
- package/dist/types/constants/localstorage.d.ts +14 -0
- package/dist/types/constants/pool.d.ts +9 -0
- package/dist/types/constants/sessionStorage.d.ts +2 -0
- package/dist/types/constants/swap.d.ts +7 -0
- package/dist/types/constants/testId.d.ts +11 -0
- package/dist/types/constants/token.d.ts +2 -0
- package/dist/types/constants/tokenList.d.ts +9 -0
- package/dist/types/constants/wallet.d.ts +22 -0
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +28 -0
- package/dist/types/hooks/Bridge/index.d.ts +4 -0
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +7 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +102 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +1 -0
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +15 -0
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -0
- package/dist/types/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/types/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +3 -0
- package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +13 -0
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +8 -0
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/types/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/types/hooks/Submission/getExecutionErrorMsg.d.ts +2 -0
- package/dist/types/hooks/Submission/index.d.ts +9 -0
- package/dist/types/hooks/Submission/spec.d.ts +56 -0
- package/dist/types/hooks/Submission/types.d.ts +95 -0
- package/dist/types/hooks/Submission/useBalanceUpdateLoading.d.ts +16 -0
- package/dist/types/hooks/Submission/useExecution.d.ts +27 -0
- package/dist/types/hooks/Submission/useInflights.d.ts +5 -0
- package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
- package/dist/types/hooks/Swap/index.d.ts +4 -0
- package/dist/types/hooks/Swap/useCustomSlippage.d.ts +10 -0
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +13 -0
- package/dist/types/hooks/Swap/useFetchFiatPrice.d.ts +13 -0
- package/dist/types/hooks/Swap/useFetchFiatPrice.test.d.ts +1 -0
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +40 -0
- package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +172 -0
- package/dist/types/hooks/Swap/useInitDefaultToken.d.ts +10 -0
- package/dist/types/hooks/Swap/useMarginAmount.d.ts +8 -0
- package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +1 -0
- package/dist/types/hooks/Swap/usePriceTimer.d.ts +5 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -0
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +37 -0
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +174 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
- package/dist/types/hooks/Token/index.d.ts +4 -0
- package/dist/types/hooks/Token/type.d.ts +31 -0
- package/dist/types/hooks/Token/useDisabledTokenSwitch.d.ts +5 -0
- package/dist/types/hooks/Token/useFindTokenByAddress.d.ts +1 -0
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/types/hooks/Token/useGetCGTokenList.d.ts +15 -0
- package/dist/types/hooks/Token/useGetTokenStatus.d.ts +14 -0
- package/dist/types/hooks/Token/useInitTokenList.d.ts +6 -0
- package/dist/types/hooks/Token/useSelectChainList.d.ts +6 -0
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenList.d.ts +35 -0
- package/dist/types/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +12 -0
- package/dist/types/hooks/Token/useTokenStatus.d.ts +21 -0
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/types/hooks/contract/index.d.ts +3 -0
- package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +3 -0
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -0
- package/dist/types/hooks/contract/useFetchTokens.d.ts +14 -0
- package/dist/types/hooks/contract/wallet.d.ts +25 -0
- package/dist/types/hooks/setting/useDefaultSlippage.d.ts +4 -0
- package/dist/types/hooks/setting/useGetAPIService.d.ts +2 -0
- package/dist/types/hooks/setting/useSetAutoSlippage.d.ts +13 -0
- package/dist/types/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/types/hooks/useFetchFiatPriceBatch.d.ts +4 -0
- package/dist/types/hooks/useGlobalState.d.ts +32 -0
- package/dist/types/hooks/useGraphQLRequests.d.ts +3 -0
- package/dist/types/hooks/useMessageState.d.ts +17 -0
- package/dist/types/hooks/useRouteVisionData.d.ts +15 -0
- package/dist/types/hooks/useTokenState.d.ts +18 -0
- package/dist/types/index.d.ts +44 -0
- package/dist/types/providers/i18n.d.ts +9 -0
- package/dist/types/providers/queryClient/index.d.ts +2 -0
- package/dist/types/providers/useInitContractRequest.d.ts +1 -0
- package/dist/types/router/index.d.ts +10 -0
- package/dist/types/router/types.d.ts +48 -0
- package/dist/types/utils/address.d.ts +33 -0
- package/dist/types/utils/address.test.d.ts +1 -0
- package/dist/types/utils/browser.d.ts +9 -0
- package/dist/types/utils/bytes.d.ts +3 -0
- package/dist/types/utils/chains.d.ts +2 -0
- package/dist/types/utils/chains.test.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +50 -0
- package/dist/types/utils/formatter.test.d.ts +1 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/time.d.ts +12 -0
- package/dist/types/utils/time.test.d.ts +1 -0
- package/dist/types/utils/token.d.ts +30 -0
- package/dist/types/utils/token.test.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/types/utils/wallet.d.ts +8 -0
- package/dist/types/utils/wallet.test.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolCard.d.ts +18 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolPicker.d.ts +22 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardDetailList.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardTokenSelect.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/SectionTitle.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StakingRules.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StepTitle.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/reducers.d.ts +56 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMiningTypeList.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDefaultStakeToken.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDexList.d.ts +16 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +38 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolTokenBalance.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPair.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPairStatus.d.ts +19 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/index.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/CreateMiningTypeSelect.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/RewardForm.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/SingleTokenSelect.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/TokenPairSelect.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/types.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +26 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/MiningInfo.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/RewardCard.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/index.d.ts +23 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/widgets.d.ts +23 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/APRSection.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/CloseButton.d.ts +3 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/GoBack.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/ManageButtonList.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningCardLayout.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListEmpty.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListLoading.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningStatusTabSelect.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTags.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTitle.d.ts +30 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MyStakedSection.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/OperateButtonList.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/RewardsSection.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/SearchComponents.d.ts +15 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/ShareModeSelect.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/TVLSection.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/TokenAmountPopover.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/UnknownUSDPopover.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/UsersIcon.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/widgets.d.ts +26 -0
- package/dist/types/widgets/MiningWidget/MiningList/contexts.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/dom.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.d.ts +22 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useGetLpLink.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useHasUnclaimedReward.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useMyStakedLoading.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useOperateHooks.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenInfo.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenTrigger.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStakedInfo.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useTotalRewardUSD.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/index.d.ts +16 -0
- package/dist/types/widgets/MiningWidget/MiningList/mining-types/BaseMiningCard.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/MyCreatedMining.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/OperateArea.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/RewardCard.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/index.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/AssociatedMine.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimButton.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimTips.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/GetLpLink.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/InputArea.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardListCard.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardTokenTable.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeButton.d.ts +25 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeTokenSelect.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.d.ts +15 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/index.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/utils.d.ts +24 -0
- package/dist/types/widgets/MiningWidget/MiningList/utils.d.ts +41 -0
- package/dist/types/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/types/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/OperateArea/StakeButton.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/OperateArea/Widgets.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +69 -0
- package/dist/types/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningBlockNumber.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningListContractDataMap.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/hooks/useRefetch.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +28 -0
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +18 -0
- package/dist/types/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +30 -0
- package/dist/types/widgets/MiningWidget/types.d.ts +210 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/ConfirmDialog.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/CreateItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/FeeEdit.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/MyLiqidity.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/index.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/types.d.ts +50 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/utils.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/shared.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +55 -0
- package/dist/types/widgets/PoolWidget/AMMV3/constants/misc.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useContract.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedPositionInfo.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useIsTickAtLimit.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useRangeHopCallbacks.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useSwapTaxes.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +46 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3MintActionHandlers.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3PositionFees.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3Positions.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +55 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/constants.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/currency.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/token.d.ts +48 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/index.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/pool.d.ts +81 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/position.d.ts +131 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/route.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tick.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/trade.d.ts +220 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/index.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/internalConstants.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/multicall.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/payments.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/quoter.d.ts +37 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/selfPermit.d.ts +25 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/staker.d.ts +101 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/swapRouter.d.ts +51 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/calldata.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/index.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/position.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickList.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types/position.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/computeSurroundingTicks.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/formatTickPrice.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/getTickToPrice.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/maxAmountSpend.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/slippage.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseCurrencyAmount.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseTick.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/GasWrapGasTokenError.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/RatioSetting.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/TokenPairSelect.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/reducer.d.ts +90 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/types.d.ts +39 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +40 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +27 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +315 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/CreatePoolBtn.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +61 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/GSPPairRiskWarning.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +53 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +35 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +87 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2Balance.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +386 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +27 -0
- package/dist/types/widgets/PoolWidget/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/utils.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { Currency, CurrencyAmount, Percent, Price, TradeType } from '../../sdk-core';
|
|
2
|
+
import { Pool } from './pool';
|
|
3
|
+
import { Route } from './route';
|
|
4
|
+
/**
|
|
5
|
+
* Trades comparator, an extension of the input output comparator that also considers other dimensions of the trade in ranking them
|
|
6
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
7
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
8
|
+
* @template TTradeType The trade type, either exact input or exact output
|
|
9
|
+
* @param a The first trade to compare
|
|
10
|
+
* @param b The second trade to compare
|
|
11
|
+
* @returns A sorted ordering for two neighboring elements in a trade array
|
|
12
|
+
*/
|
|
13
|
+
export declare function tradeComparator<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType>(a: Trade<TInput, TOutput, TTradeType>, b: Trade<TInput, TOutput, TTradeType>): number;
|
|
14
|
+
export interface BestTradeOptions {
|
|
15
|
+
maxNumResults?: number;
|
|
16
|
+
maxHops?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents a trade executed against a set of routes where some percentage of the input is
|
|
20
|
+
* split across each route.
|
|
21
|
+
*
|
|
22
|
+
* Each route has its own set of pools. Pools can not be re-used across routes.
|
|
23
|
+
*
|
|
24
|
+
* Does not account for slippage, i.e., changes in price environment that can occur between
|
|
25
|
+
* the time the trade is submitted and when it is executed.
|
|
26
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
27
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
28
|
+
* @template TTradeType The trade type, either exact input or exact output
|
|
29
|
+
*/
|
|
30
|
+
export declare class Trade<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType> {
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Deprecated in favor of 'swaps' property. If the trade consists of multiple routes
|
|
33
|
+
* this will return an error.
|
|
34
|
+
*
|
|
35
|
+
* When the trade consists of just a single route, this returns the route of the trade,
|
|
36
|
+
* i.e. which pools the trade goes through.
|
|
37
|
+
*/
|
|
38
|
+
get route(): Route<TInput, TOutput>;
|
|
39
|
+
/**
|
|
40
|
+
* The swaps of the trade, i.e. which routes and how much is swapped in each that
|
|
41
|
+
* make up the trade.
|
|
42
|
+
*/
|
|
43
|
+
readonly swaps: {
|
|
44
|
+
route: Route<TInput, TOutput>;
|
|
45
|
+
inputAmount: CurrencyAmount<TInput>;
|
|
46
|
+
outputAmount: CurrencyAmount<TOutput>;
|
|
47
|
+
}[];
|
|
48
|
+
/**
|
|
49
|
+
* The type of the trade, either exact in or exact out.
|
|
50
|
+
*/
|
|
51
|
+
readonly tradeType: TTradeType;
|
|
52
|
+
/**
|
|
53
|
+
* The cached result of the input amount computation
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
private _inputAmount;
|
|
57
|
+
/**
|
|
58
|
+
* The input amount for the trade assuming no slippage.
|
|
59
|
+
*/
|
|
60
|
+
get inputAmount(): CurrencyAmount<TInput>;
|
|
61
|
+
/**
|
|
62
|
+
* The cached result of the output amount computation
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
private _outputAmount;
|
|
66
|
+
/**
|
|
67
|
+
* The output amount for the trade assuming no slippage.
|
|
68
|
+
*/
|
|
69
|
+
get outputAmount(): CurrencyAmount<TOutput>;
|
|
70
|
+
/**
|
|
71
|
+
* The cached result of the computed execution price
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
private _executionPrice;
|
|
75
|
+
/**
|
|
76
|
+
* The price expressed in terms of output amount/input amount.
|
|
77
|
+
*/
|
|
78
|
+
get executionPrice(): Price<TInput, TOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* The cached result of the price impact computation
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
private _priceImpact;
|
|
84
|
+
/**
|
|
85
|
+
* Returns the percent difference between the route's mid price and the price impact
|
|
86
|
+
*/
|
|
87
|
+
get priceImpact(): Percent;
|
|
88
|
+
/**
|
|
89
|
+
* Constructs an exact in trade with the given amount in and route
|
|
90
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
91
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
92
|
+
* @param route The route of the exact in trade
|
|
93
|
+
* @param amountIn The amount being passed in
|
|
94
|
+
* @returns The exact in trade
|
|
95
|
+
*/
|
|
96
|
+
static exactIn<TInput extends Currency, TOutput extends Currency>(route: Route<TInput, TOutput>, amountIn: CurrencyAmount<TInput>): Promise<Trade<TInput, TOutput, TradeType.EXACT_INPUT>>;
|
|
97
|
+
/**
|
|
98
|
+
* Constructs an exact out trade with the given amount out and route
|
|
99
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
100
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
101
|
+
* @param route The route of the exact out trade
|
|
102
|
+
* @param amountOut The amount returned by the trade
|
|
103
|
+
* @returns The exact out trade
|
|
104
|
+
*/
|
|
105
|
+
static exactOut<TInput extends Currency, TOutput extends Currency>(route: Route<TInput, TOutput>, amountOut: CurrencyAmount<TOutput>): Promise<Trade<TInput, TOutput, TradeType.EXACT_OUTPUT>>;
|
|
106
|
+
/**
|
|
107
|
+
* Constructs a trade by simulating swaps through the given route
|
|
108
|
+
* @template TInput The input token, either Ether or an ERC-20.
|
|
109
|
+
* @template TOutput The output token, either Ether or an ERC-20.
|
|
110
|
+
* @template TTradeType The type of the trade, either exact in or exact out.
|
|
111
|
+
* @param route route to swap through
|
|
112
|
+
* @param amount the amount specified, either input or output, depending on tradeType
|
|
113
|
+
* @param tradeType whether the trade is an exact input or exact output swap
|
|
114
|
+
* @returns The route
|
|
115
|
+
*/
|
|
116
|
+
static fromRoute<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType>(route: Route<TInput, TOutput>, amount: TTradeType extends TradeType.EXACT_INPUT ? CurrencyAmount<TInput> : CurrencyAmount<TOutput>, tradeType: TTradeType): Promise<Trade<TInput, TOutput, TTradeType>>;
|
|
117
|
+
/**
|
|
118
|
+
* Constructs a trade from routes by simulating swaps
|
|
119
|
+
*
|
|
120
|
+
* @template TInput The input token, either Ether or an ERC-20.
|
|
121
|
+
* @template TOutput The output token, either Ether or an ERC-20.
|
|
122
|
+
* @template TTradeType The type of the trade, either exact in or exact out.
|
|
123
|
+
* @param routes the routes to swap through and how much of the amount should be routed through each
|
|
124
|
+
* @param tradeType whether the trade is an exact input or exact output swap
|
|
125
|
+
* @returns The trade
|
|
126
|
+
*/
|
|
127
|
+
static fromRoutes<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType>(routes: {
|
|
128
|
+
amount: TTradeType extends TradeType.EXACT_INPUT ? CurrencyAmount<TInput> : CurrencyAmount<TOutput>;
|
|
129
|
+
route: Route<TInput, TOutput>;
|
|
130
|
+
}[], tradeType: TTradeType): Promise<Trade<TInput, TOutput, TTradeType>>;
|
|
131
|
+
/**
|
|
132
|
+
* Creates a trade without computing the result of swapping through the route. Useful when you have simulated the trade
|
|
133
|
+
* elsewhere and do not have any tick data
|
|
134
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
135
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
136
|
+
* @template TTradeType The type of the trade, either exact in or exact out
|
|
137
|
+
* @param constructorArguments The arguments passed to the trade constructor
|
|
138
|
+
* @returns The unchecked trade
|
|
139
|
+
*/
|
|
140
|
+
static createUncheckedTrade<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType>(constructorArguments: {
|
|
141
|
+
route: Route<TInput, TOutput>;
|
|
142
|
+
inputAmount: CurrencyAmount<TInput>;
|
|
143
|
+
outputAmount: CurrencyAmount<TOutput>;
|
|
144
|
+
tradeType: TTradeType;
|
|
145
|
+
}): Trade<TInput, TOutput, TTradeType>;
|
|
146
|
+
/**
|
|
147
|
+
* Creates a trade without computing the result of swapping through the routes. Useful when you have simulated the trade
|
|
148
|
+
* elsewhere and do not have any tick data
|
|
149
|
+
* @template TInput The input token, either Ether or an ERC-20
|
|
150
|
+
* @template TOutput The output token, either Ether or an ERC-20
|
|
151
|
+
* @template TTradeType The type of the trade, either exact in or exact out
|
|
152
|
+
* @param constructorArguments The arguments passed to the trade constructor
|
|
153
|
+
* @returns The unchecked trade
|
|
154
|
+
*/
|
|
155
|
+
static createUncheckedTradeWithMultipleRoutes<TInput extends Currency, TOutput extends Currency, TTradeType extends TradeType>(constructorArguments: {
|
|
156
|
+
routes: {
|
|
157
|
+
route: Route<TInput, TOutput>;
|
|
158
|
+
inputAmount: CurrencyAmount<TInput>;
|
|
159
|
+
outputAmount: CurrencyAmount<TOutput>;
|
|
160
|
+
}[];
|
|
161
|
+
tradeType: TTradeType;
|
|
162
|
+
}): Trade<TInput, TOutput, TTradeType>;
|
|
163
|
+
/**
|
|
164
|
+
* Construct a trade by passing in the pre-computed property values
|
|
165
|
+
* @param routes The routes through which the trade occurs
|
|
166
|
+
* @param tradeType The type of trade, exact input or exact output
|
|
167
|
+
*/
|
|
168
|
+
private constructor();
|
|
169
|
+
/**
|
|
170
|
+
* Get the minimum amount that must be received from this trade for the given slippage tolerance
|
|
171
|
+
* @param slippageTolerance The tolerance of unfavorable slippage from the execution price of this trade
|
|
172
|
+
* @returns The amount out
|
|
173
|
+
*/
|
|
174
|
+
minimumAmountOut(slippageTolerance: Percent, amountOut?: CurrencyAmount<TOutput>): CurrencyAmount<TOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* Get the maximum amount in that can be spent via this trade for the given slippage tolerance
|
|
177
|
+
* @param slippageTolerance The tolerance of unfavorable slippage from the execution price of this trade
|
|
178
|
+
* @returns The amount in
|
|
179
|
+
*/
|
|
180
|
+
maximumAmountIn(slippageTolerance: Percent, amountIn?: CurrencyAmount<TInput>): CurrencyAmount<TInput>;
|
|
181
|
+
/**
|
|
182
|
+
* Return the execution price after accounting for slippage tolerance
|
|
183
|
+
* @param slippageTolerance the allowed tolerated slippage
|
|
184
|
+
* @returns The execution price
|
|
185
|
+
*/
|
|
186
|
+
worstExecutionPrice(slippageTolerance: Percent): Price<TInput, TOutput>;
|
|
187
|
+
/**
|
|
188
|
+
* Given a list of pools, and a fixed amount in, returns the top `maxNumResults` trades that go from an input token
|
|
189
|
+
* amount to an output token, making at most `maxHops` hops.
|
|
190
|
+
* Note this does not consider aggregation, as routes are linear. It's possible a better route exists by splitting
|
|
191
|
+
* the amount in among multiple routes.
|
|
192
|
+
* @param pools the pools to consider in finding the best trade
|
|
193
|
+
* @param nextAmountIn exact amount of input currency to spend
|
|
194
|
+
* @param currencyOut the desired currency out
|
|
195
|
+
* @param maxNumResults maximum number of results to return
|
|
196
|
+
* @param maxHops maximum number of hops a returned trade can make, e.g. 1 hop goes through a single pool
|
|
197
|
+
* @param currentPools used in recursion; the current list of pools
|
|
198
|
+
* @param currencyAmountIn used in recursion; the original value of the currencyAmountIn parameter
|
|
199
|
+
* @param bestTrades used in recursion; the current list of best trades
|
|
200
|
+
* @returns The exact in trade
|
|
201
|
+
*/
|
|
202
|
+
static bestTradeExactIn<TInput extends Currency, TOutput extends Currency>(pools: Pool[], currencyAmountIn: CurrencyAmount<TInput>, currencyOut: TOutput, { maxNumResults, maxHops }?: BestTradeOptions, currentPools?: Pool[], nextAmountIn?: CurrencyAmount<Currency>, bestTrades?: Trade<TInput, TOutput, TradeType.EXACT_INPUT>[]): Promise<Trade<TInput, TOutput, TradeType.EXACT_INPUT>[]>;
|
|
203
|
+
/**
|
|
204
|
+
* similar to the above method but instead targets a fixed output amount
|
|
205
|
+
* given a list of pools, and a fixed amount out, returns the top `maxNumResults` trades that go from an input token
|
|
206
|
+
* to an output token amount, making at most `maxHops` hops
|
|
207
|
+
* note this does not consider aggregation, as routes are linear. it's possible a better route exists by splitting
|
|
208
|
+
* the amount in among multiple routes.
|
|
209
|
+
* @param pools the pools to consider in finding the best trade
|
|
210
|
+
* @param currencyIn the currency to spend
|
|
211
|
+
* @param currencyAmountOut the desired currency amount out
|
|
212
|
+
* @param nextAmountOut the exact amount of currency out
|
|
213
|
+
* @param maxNumResults maximum number of results to return
|
|
214
|
+
* @param maxHops maximum number of hops a returned trade can make, e.g. 1 hop goes through a single pool
|
|
215
|
+
* @param currentPools used in recursion; the current list of pools
|
|
216
|
+
* @param bestTrades used in recursion; the current list of best trades
|
|
217
|
+
* @returns The exact out trade
|
|
218
|
+
*/
|
|
219
|
+
static bestTradeExactOut<TInput extends Currency, TOutput extends Currency>(pools: Pool[], currencyIn: TInput, currencyAmountOut: CurrencyAmount<TOutput>, { maxNumResults, maxHops }?: BestTradeOptions, currentPools?: Pool[], nextAmountOut?: CurrencyAmount<Currency>, bestTrades?: Trade<TInput, TOutput, TradeType.EXACT_OUTPUT>[]): Promise<Trade<TInput, TOutput, TradeType.EXACT_OUTPUT>[]>;
|
|
220
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './entities';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './multicall';
|
|
5
|
+
export * from './nonfungiblePositionManager';
|
|
6
|
+
export * from './payments';
|
|
7
|
+
export * from './quoter';
|
|
8
|
+
export * from './selfPermit';
|
|
9
|
+
export * from './staker';
|
|
10
|
+
export * from './swapRouter';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Interface } from '@ethersproject/abi';
|
|
2
|
+
export declare abstract class Multicall {
|
|
3
|
+
static INTERFACE: Interface;
|
|
4
|
+
/**
|
|
5
|
+
* Cannot be constructed.
|
|
6
|
+
*/
|
|
7
|
+
private constructor();
|
|
8
|
+
static encodeMulticall(calldatas: string | string[]): string;
|
|
9
|
+
static decodeMulticall(multicall: string): string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { Interface } from '@ethersproject/abi';
|
|
2
|
+
import { TypedDataDomain, TypedDataField } from '@ethersproject/abstract-signer';
|
|
3
|
+
import { BigintIsh, Currency, CurrencyAmount, NativeCurrencyClass as NativeCurrency, Percent } from '../sdk-core';
|
|
4
|
+
import { Pool } from './entities';
|
|
5
|
+
import { Position } from './entities/position';
|
|
6
|
+
import { PermitOptions } from './selfPermit';
|
|
7
|
+
import { MethodParameters } from './utils/calldata';
|
|
8
|
+
export interface MintSpecificOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The account that should receive the minted NFT.
|
|
11
|
+
*/
|
|
12
|
+
recipient: string;
|
|
13
|
+
/**
|
|
14
|
+
* Creates pool if not initialized before mint.
|
|
15
|
+
*/
|
|
16
|
+
createPool?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IncreaseSpecificOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Indicates the ID of the position to increase liquidity for.
|
|
21
|
+
*/
|
|
22
|
+
tokenId: BigintIsh;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Options for producing the calldata to add liquidity.
|
|
26
|
+
*/
|
|
27
|
+
export interface CommonAddLiquidityOptions {
|
|
28
|
+
/**
|
|
29
|
+
* How much the pool price is allowed to move.
|
|
30
|
+
*/
|
|
31
|
+
slippageTolerance: Percent;
|
|
32
|
+
/**
|
|
33
|
+
* When the transaction expires, in epoch seconds.
|
|
34
|
+
*/
|
|
35
|
+
deadline: BigintIsh;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to spend ether. If true, one of the pool tokens must be WETH, by default false
|
|
38
|
+
*/
|
|
39
|
+
useNative?: NativeCurrency;
|
|
40
|
+
/**
|
|
41
|
+
* The optional permit parameters for spending token0
|
|
42
|
+
*/
|
|
43
|
+
token0Permit?: PermitOptions;
|
|
44
|
+
/**
|
|
45
|
+
* The optional permit parameters for spending token1
|
|
46
|
+
*/
|
|
47
|
+
token1Permit?: PermitOptions;
|
|
48
|
+
}
|
|
49
|
+
export type MintOptions = CommonAddLiquidityOptions & MintSpecificOptions;
|
|
50
|
+
export type IncreaseOptions = CommonAddLiquidityOptions & IncreaseSpecificOptions;
|
|
51
|
+
export type AddLiquidityOptions = MintOptions | IncreaseOptions;
|
|
52
|
+
export interface SafeTransferOptions {
|
|
53
|
+
/**
|
|
54
|
+
* The account sending the NFT.
|
|
55
|
+
*/
|
|
56
|
+
sender: string;
|
|
57
|
+
/**
|
|
58
|
+
* The account that should receive the NFT.
|
|
59
|
+
*/
|
|
60
|
+
recipient: string;
|
|
61
|
+
/**
|
|
62
|
+
* The id of the token being sent.
|
|
63
|
+
*/
|
|
64
|
+
tokenId: BigintIsh;
|
|
65
|
+
/**
|
|
66
|
+
* The optional parameter that passes data to the `onERC721Received` call for the staker
|
|
67
|
+
*/
|
|
68
|
+
data?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CollectOptions {
|
|
71
|
+
/**
|
|
72
|
+
* Indicates the ID of the position to collect for.
|
|
73
|
+
*/
|
|
74
|
+
tokenId: BigintIsh;
|
|
75
|
+
/**
|
|
76
|
+
* Expected value of tokensOwed0, including as-of-yet-unaccounted-for fees/liquidity value to be burned
|
|
77
|
+
*/
|
|
78
|
+
expectedCurrencyOwed0: CurrencyAmount<Currency>;
|
|
79
|
+
/**
|
|
80
|
+
* Expected value of tokensOwed1, including as-of-yet-unaccounted-for fees/liquidity value to be burned
|
|
81
|
+
*/
|
|
82
|
+
expectedCurrencyOwed1: CurrencyAmount<Currency>;
|
|
83
|
+
/**
|
|
84
|
+
* The account that should receive the tokens.
|
|
85
|
+
*/
|
|
86
|
+
recipient: string;
|
|
87
|
+
}
|
|
88
|
+
export interface NFTPermitValues {
|
|
89
|
+
spender: string;
|
|
90
|
+
tokenId: BigintIsh;
|
|
91
|
+
deadline: BigintIsh;
|
|
92
|
+
nonce: BigintIsh;
|
|
93
|
+
}
|
|
94
|
+
export interface NFTPermitData {
|
|
95
|
+
domain: TypedDataDomain;
|
|
96
|
+
types: Record<string, TypedDataField[]>;
|
|
97
|
+
values: NFTPermitValues;
|
|
98
|
+
}
|
|
99
|
+
export interface NFTPermitOptions {
|
|
100
|
+
v: 0 | 1 | 27 | 28;
|
|
101
|
+
r: string;
|
|
102
|
+
s: string;
|
|
103
|
+
deadline: BigintIsh;
|
|
104
|
+
spender: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Options for producing the calldata to exit a position.
|
|
108
|
+
*/
|
|
109
|
+
export interface RemoveLiquidityOptions {
|
|
110
|
+
/**
|
|
111
|
+
* The ID of the token to exit
|
|
112
|
+
*/
|
|
113
|
+
tokenId: BigintIsh;
|
|
114
|
+
/**
|
|
115
|
+
* The percentage of position liquidity to exit.
|
|
116
|
+
*/
|
|
117
|
+
liquidityPercentage: Percent;
|
|
118
|
+
/**
|
|
119
|
+
* How much the pool price is allowed to move.
|
|
120
|
+
*/
|
|
121
|
+
slippageTolerance: Percent;
|
|
122
|
+
/**
|
|
123
|
+
* When the transaction expires, in epoch seconds.
|
|
124
|
+
*/
|
|
125
|
+
deadline: BigintIsh;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the NFT should be burned if the entire position is being exited, by default false.
|
|
128
|
+
*/
|
|
129
|
+
burnToken?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The optional permit of the token ID being exited, in case the exit transaction is being sent by an account that does not own the NFT
|
|
132
|
+
*/
|
|
133
|
+
permit?: NFTPermitOptions;
|
|
134
|
+
/**
|
|
135
|
+
* Parameters to be passed on to collect
|
|
136
|
+
*/
|
|
137
|
+
collectOptions: Omit<CollectOptions, 'tokenId'>;
|
|
138
|
+
}
|
|
139
|
+
export declare abstract class NonfungiblePositionManager {
|
|
140
|
+
static INTERFACE: Interface;
|
|
141
|
+
/**
|
|
142
|
+
* Cannot be constructed.
|
|
143
|
+
*/
|
|
144
|
+
private constructor();
|
|
145
|
+
private static encodeCreate;
|
|
146
|
+
static createCallParameters(pool: Pool): MethodParameters;
|
|
147
|
+
static addCallParameters(position: Position, options: AddLiquidityOptions): MethodParameters;
|
|
148
|
+
private static encodeCollect;
|
|
149
|
+
static collectCallParameters(options: CollectOptions): MethodParameters;
|
|
150
|
+
/**
|
|
151
|
+
* Produces the calldata for completely or partially exiting a position
|
|
152
|
+
* @param position The position to exit
|
|
153
|
+
* @param options Additional information necessary for generating the calldata
|
|
154
|
+
* @returns The call parameters
|
|
155
|
+
*/
|
|
156
|
+
static removeCallParameters(position: Position, options: RemoveLiquidityOptions): MethodParameters;
|
|
157
|
+
static safeTransferFromParameters(options: SafeTransferOptions): MethodParameters;
|
|
158
|
+
static getPermitData(permit: NFTPermitValues, positionManagerAddress: string, chainId: number): NFTPermitData;
|
|
159
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import JSBI from 'jsbi';
|
|
2
|
+
import { Interface } from '@ethersproject/abi';
|
|
3
|
+
import { Percent, Token } from '../sdk-core';
|
|
4
|
+
export interface FeeOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The percent of the output that will be taken as a fee.
|
|
7
|
+
*/
|
|
8
|
+
fee: Percent;
|
|
9
|
+
/**
|
|
10
|
+
* The recipient of the fee.
|
|
11
|
+
*/
|
|
12
|
+
recipient: string;
|
|
13
|
+
}
|
|
14
|
+
export declare abstract class Payments {
|
|
15
|
+
static INTERFACE: Interface;
|
|
16
|
+
/**
|
|
17
|
+
* Cannot be constructed.
|
|
18
|
+
*/
|
|
19
|
+
private constructor();
|
|
20
|
+
private static encodeFeeBips;
|
|
21
|
+
static encodeUnwrapWETH9(amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string;
|
|
22
|
+
static encodeSweepToken(token: Token, amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string;
|
|
23
|
+
static encodeRefundETH(): string;
|
|
24
|
+
}
|