@dodoex/widgets 3.2.0-pharos.2 → 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/LICENSE +674 -674
- package/README.md +69 -69
- package/package.json +155 -155
- package/dist/28442382d977858a.svg +0 -9
- package/dist/8de9a184d4ef0a11.svg +0 -6
- package/dist/assets/bundle-DSSoJu9z.css +0 -297
- package/dist/b3f16b2626f03378.svg +0 -10
- package/dist/cjs/locales/en-US.js +0 -1
- package/dist/cjs/locales/zh-CN.js +0 -1
- package/dist/ed726d76d93d4899.svg +0 -10
- package/dist/helper-Cym9OSZM.js +0 -1
- package/dist/helper-DiPYZoBp.cjs +0 -1
- package/dist/index-BF5fdOhp.js +0 -12
- package/dist/index-BWVgd-CY.cjs +0 -78
- package/dist/index-CW70V7y-.js +0 -31
- package/dist/index-CkpBCt6Q.cjs +0 -12
- package/dist/index-DVnzyqwU.cjs +0 -31
- package/dist/index-RZNGBoJv.js +0 -78
- 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 -5
- 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 -9
- 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 -11
- 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 -12
- 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 -100
- 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 -5
- 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,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Currency } from '../sdks/sdk-core';
|
|
3
|
-
import { Position } from '../sdks/v3-sdk';
|
|
4
|
-
export declare const PositionPreview: ({ position, title, inRange, baseCurrencyDefault, ticksAtLimit, }: {
|
|
5
|
-
position: Position;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
inRange: boolean;
|
|
8
|
-
baseCurrencyDefault?: Currency;
|
|
9
|
-
ticksAtLimit: {
|
|
10
|
-
[bound: string]: boolean | undefined;
|
|
11
|
-
};
|
|
12
|
-
}) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Currency } from '../sdks/sdk-core';
|
|
3
|
-
import { Position } from '../sdks/v3-sdk';
|
|
4
|
-
export declare const PositionSelectedRangePreview: ({ position, title, baseCurrencyDefault, ticksAtLimit, }: {
|
|
5
|
-
position: Position;
|
|
6
|
-
title?: ReactNode;
|
|
7
|
-
baseCurrencyDefault?: Currency;
|
|
8
|
-
ticksAtLimit: {
|
|
9
|
-
[bound: string]: boolean | undefined;
|
|
10
|
-
};
|
|
11
|
-
}) => JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Currency, Price } from '../sdks/sdk-core';
|
|
2
|
-
import { Position as V3Position } from '../sdks/v3-sdk';
|
|
3
|
-
import { PositionDetails } from '../types/position';
|
|
4
|
-
export interface PriceOrdering {
|
|
5
|
-
priceLower?: Price<Currency, Currency>;
|
|
6
|
-
priceUpper?: Price<Currency, Currency>;
|
|
7
|
-
quote?: Currency;
|
|
8
|
-
base?: Currency;
|
|
9
|
-
}
|
|
10
|
-
export declare function getPriceOrderingFromPositionForUI(position?: V3Position): PriceOrdering;
|
|
11
|
-
export interface PositionViewCardProps {
|
|
12
|
-
p: PositionDetails;
|
|
13
|
-
currency0: Currency | undefined;
|
|
14
|
-
currency1: Currency | undefined;
|
|
15
|
-
onClickManage: () => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const PositionViewCard: ({ p, currency0, currency1, onClickManage, }: PositionViewCardProps) => JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Currency } from '../sdks/sdk-core/entities/currency';
|
|
2
|
-
import { Price } from '../sdks/sdk-core/entities/fractions/price';
|
|
3
|
-
import { Token } from '../sdks/sdk-core/entities/token';
|
|
4
|
-
import { Bound } from '../types';
|
|
5
|
-
export interface RangeSelectorProps {
|
|
6
|
-
priceLower?: Price<Token, Token>;
|
|
7
|
-
priceUpper?: Price<Token, Token>;
|
|
8
|
-
getDecrementLower: () => string;
|
|
9
|
-
getIncrementLower: () => string;
|
|
10
|
-
getDecrementUpper: () => string;
|
|
11
|
-
getIncrementUpper: () => string;
|
|
12
|
-
onLeftRangeInput: (typedValue: string) => void;
|
|
13
|
-
onRightRangeInput: (typedValue: string) => void;
|
|
14
|
-
currencyA?: Currency | null;
|
|
15
|
-
currencyB?: Currency | null;
|
|
16
|
-
feeAmount?: number;
|
|
17
|
-
ticksAtLimit: {
|
|
18
|
-
[bound in Bound]?: boolean | undefined;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const RangeSelector: ({ priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, getDecrementLower, getIncrementLower, getDecrementUpper, getIncrementUpper, currencyA, currencyB, feeAmount, ticksAtLimit, }: RangeSelectorProps) => JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
import { StateProps } from '../reducer';
|
|
3
|
-
export interface RateToggleProps {
|
|
4
|
-
baseToken: StateProps['baseToken'];
|
|
5
|
-
quoteToken: StateProps['quoteToken'];
|
|
6
|
-
handleRateToggle: () => void;
|
|
7
|
-
sx?: BoxProps['sx'];
|
|
8
|
-
}
|
|
9
|
-
export declare const RateToggle: ({ baseToken, quoteToken, handleRateToggle, sx, }: RateToggleProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export interface ButtonsProps {
|
|
3
|
-
chainId: ChainId;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
removed: boolean | undefined;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
error: React.ReactNode;
|
|
8
|
-
onConfirm: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const RemoveButton: ({ chainId, disabled, removed, isLoading, error, onConfirm, }: ButtonsProps) => JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Currency, CurrencyAmount, Price } from '../sdks/sdk-core';
|
|
2
|
-
import { Position } from '../sdks/v3-sdk';
|
|
3
|
-
import { Bound, Field } from '../types';
|
|
4
|
-
export interface ReviewModalProps {
|
|
5
|
-
position?: Position;
|
|
6
|
-
existingPosition?: Position;
|
|
7
|
-
parsedAmounts: {
|
|
8
|
-
[field in Field]?: CurrencyAmount<Currency>;
|
|
9
|
-
};
|
|
10
|
-
priceLower?: Price<Currency, Currency>;
|
|
11
|
-
priceUpper?: Price<Currency, Currency>;
|
|
12
|
-
outOfRange: boolean;
|
|
13
|
-
ticksAtLimit: {
|
|
14
|
-
[bound in Bound]?: boolean | undefined;
|
|
15
|
-
};
|
|
16
|
-
on: boolean;
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
onConfirm: () => void;
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const ReviewModal: ({ on, onClose, position, outOfRange, ticksAtLimit, onConfirm, loading, }: ReviewModalProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Actions, StateProps } from '../reducer';
|
|
2
|
-
export interface TokenPairSelectProps {
|
|
3
|
-
baseToken: StateProps['baseToken'];
|
|
4
|
-
quoteToken: StateProps['quoteToken'];
|
|
5
|
-
dispatch: React.Dispatch<Actions>;
|
|
6
|
-
}
|
|
7
|
-
export declare const TokenPairSelect: ({ baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => JSX.Element;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
declare const gapValues: {
|
|
3
|
-
xs: string;
|
|
4
|
-
sm: string;
|
|
5
|
-
md: string;
|
|
6
|
-
lg: string;
|
|
7
|
-
xl: string;
|
|
8
|
-
};
|
|
9
|
-
export type Gap = keyof typeof gapValues;
|
|
10
|
-
export interface YellowCardProps {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const Card: ({ children, sx, }: {
|
|
14
|
-
sx?: BoxProps["sx"];
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
export declare const LightCard: ({ children, sx, }: {
|
|
18
|
-
sx?: BoxProps["sx"];
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
}) => JSX.Element;
|
|
21
|
-
export declare const YellowCard: ({ children }: YellowCardProps) => JSX.Element;
|
|
22
|
-
export declare function ColumnCenter({ gap, flex, children, style, }: {
|
|
23
|
-
gap?: Gap | string;
|
|
24
|
-
flex?: string;
|
|
25
|
-
children: React.ReactNode;
|
|
26
|
-
style?: BoxProps['sx'];
|
|
27
|
-
}): JSX.Element;
|
|
28
|
-
export declare function AutoColumn({ gap, justify, grow, children, style, }: {
|
|
29
|
-
gap?: Gap | string;
|
|
30
|
-
justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between';
|
|
31
|
-
grow?: true;
|
|
32
|
-
children: React.ReactNode;
|
|
33
|
-
style?: BoxProps['sx'];
|
|
34
|
-
}): JSX.Element;
|
|
35
|
-
export declare function Row({ gap, children, sx, }: {
|
|
36
|
-
gap?: Gap | string;
|
|
37
|
-
children: React.ReactNode;
|
|
38
|
-
sx?: BoxProps['sx'];
|
|
39
|
-
}): JSX.Element;
|
|
40
|
-
export declare function RowBetween({ children, style, }: {
|
|
41
|
-
children: React.ReactNode;
|
|
42
|
-
style?: BoxProps['sx'];
|
|
43
|
-
}): JSX.Element;
|
|
44
|
-
export declare function RowFixed({ gap, justify, children, sx, }: {
|
|
45
|
-
gap?: string;
|
|
46
|
-
justify?: string;
|
|
47
|
-
children: React.ReactNode;
|
|
48
|
-
sx?: BoxProps['sx'];
|
|
49
|
-
}): JSX.Element;
|
|
50
|
-
export declare function DynamicSection({ children, disabled, sx, }: {
|
|
51
|
-
children: React.ReactNode;
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
sx?: BoxProps['sx'];
|
|
54
|
-
}): JSX.Element;
|
|
55
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { Percent } from '../sdks/sdk-core';
|
|
3
|
-
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
4
|
-
export declare const DEFAULT_DEADLINE_FROM_NOW: number;
|
|
5
|
-
export declare const L2_DEADLINE_FROM_NOW: number;
|
|
6
|
-
export declare const DEFAULT_TXN_DISMISS_MS = 10000;
|
|
7
|
-
export declare const L2_TXN_DISMISS_MS = 5000;
|
|
8
|
-
export declare const BIG_INT_ZERO: JSBI;
|
|
9
|
-
export declare const BIPS_BASE = 10000;
|
|
10
|
-
export declare const ONE_BIPS: Percent;
|
|
11
|
-
export declare const ALLOWED_PRICE_IMPACT_LOW: Percent;
|
|
12
|
-
export declare const ALLOWED_PRICE_IMPACT_MEDIUM: Percent;
|
|
13
|
-
export declare const ALLOWED_PRICE_IMPACT_HIGH: Percent;
|
|
14
|
-
export declare const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN: Percent;
|
|
15
|
-
export declare const BLOCKED_PRICE_IMPACT_NON_EXPERT: Percent;
|
|
16
|
-
export declare const ZERO_PERCENT: Percent;
|
|
17
|
-
export declare const ONE_HUNDRED_PERCENT: Percent;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { Pool, Position as V3Position } from '../sdks/v3-sdk';
|
|
3
|
-
import { PositionDetails } from '../types/position';
|
|
4
|
-
export declare function useDerivedPositionInfo(positionDetails: PositionDetails | undefined, baseToken: TokenInfo, quoteToken: TokenInfo): {
|
|
5
|
-
position?: V3Position;
|
|
6
|
-
pool?: Pool;
|
|
7
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Currency, CurrencyAmount, Percent } from '../sdks/sdk-core';
|
|
3
|
-
import { Position } from '../sdks/v3-sdk';
|
|
4
|
-
import { PositionDetails } from '../types/position';
|
|
5
|
-
export declare function useDerivedV3BurnInfo({ percent, position, asWETH, baseToken, quoteToken, }: {
|
|
6
|
-
percent: number;
|
|
7
|
-
position?: PositionDetails;
|
|
8
|
-
asWETH?: boolean;
|
|
9
|
-
baseToken: Maybe<Currency>;
|
|
10
|
-
quoteToken: Maybe<Currency>;
|
|
11
|
-
}): {
|
|
12
|
-
position?: Position;
|
|
13
|
-
liquidityPercentage?: Percent;
|
|
14
|
-
liquidityValue0?: CurrencyAmount<Currency>;
|
|
15
|
-
liquidityValue1?: CurrencyAmount<Currency>;
|
|
16
|
-
feeValue0?: CurrencyAmount<Currency>;
|
|
17
|
-
feeValue1?: CurrencyAmount<Currency>;
|
|
18
|
-
outOfRange: boolean;
|
|
19
|
-
error?: ReactNode;
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import JSBI from 'jsbi';
|
|
3
|
-
import { Currency, Price, Token } from '../sdks/sdk-core';
|
|
4
|
-
import { FeeAmount } from '../sdks/v3-sdk';
|
|
5
|
-
export interface TickProcessed {
|
|
6
|
-
tick: number;
|
|
7
|
-
liquidityActive: JSBI;
|
|
8
|
-
liquidityNet: JSBI;
|
|
9
|
-
price0: string;
|
|
10
|
-
sdkPrice: Price<Token, Token>;
|
|
11
|
-
}
|
|
12
|
-
export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId?: ChainId): {
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
error: any;
|
|
15
|
-
currentTick?: number;
|
|
16
|
-
activeTick?: number;
|
|
17
|
-
liquidity?: JSBI;
|
|
18
|
-
sqrtPriceX96?: JSBI;
|
|
19
|
-
data?: TickProcessed[];
|
|
20
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { BigintIsh, Currency, Token } from '../sdks/sdk-core';
|
|
3
|
-
import { FeeAmount, Pool } from '../sdks/v3-sdk';
|
|
4
|
-
export declare class PoolCache {
|
|
5
|
-
private static MAX_ENTRIES;
|
|
6
|
-
private static pools;
|
|
7
|
-
private static addresses;
|
|
8
|
-
static getPoolAddress(factoryAddress: string, tokenA: Token, tokenB: Token, fee: FeeAmount, chainId: ChainId): string;
|
|
9
|
-
static getPool(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtPriceX96: BigintIsh, liquidity: BigintIsh, tick: number): Pool;
|
|
10
|
-
}
|
|
11
|
-
export declare enum PoolState {
|
|
12
|
-
LOADING = 0,
|
|
13
|
-
NOT_EXISTS = 1,
|
|
14
|
-
EXISTS = 2,
|
|
15
|
-
INVALID = 3
|
|
16
|
-
}
|
|
17
|
-
export declare function usePools(chainId: number | undefined, poolKeys: [
|
|
18
|
-
Currency | undefined,
|
|
19
|
-
Currency | undefined,
|
|
20
|
-
FeeAmount | undefined
|
|
21
|
-
][]): [PoolState, Pool | null][];
|
|
22
|
-
export declare function usePool(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined): [PoolState, Pool | null];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Actions, StateProps } from '../reducer';
|
|
2
|
-
import { Pool } from '../sdks/v3-sdk';
|
|
3
|
-
export declare function useRangeHopCallbacks({ tickLower, tickUpper, pool, state, dispatch, }: {
|
|
4
|
-
tickLower: number | undefined;
|
|
5
|
-
tickUpper: number | undefined;
|
|
6
|
-
pool?: Pool | undefined | null;
|
|
7
|
-
state: StateProps;
|
|
8
|
-
dispatch: React.Dispatch<Actions>;
|
|
9
|
-
}): {
|
|
10
|
-
getDecrementLower: () => string;
|
|
11
|
-
getIncrementLower: () => string;
|
|
12
|
-
getDecrementUpper: () => string;
|
|
13
|
-
getIncrementUpper: () => string;
|
|
14
|
-
getSetFullRange: () => void;
|
|
15
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StateProps } from '../reducer';
|
|
3
|
-
import { Currency, CurrencyAmount, Price, Token } from '../sdks/sdk-core';
|
|
4
|
-
import { Pool, Position } from '../sdks/v3-sdk';
|
|
5
|
-
import { Bound, Field } from '../types';
|
|
6
|
-
import { PoolState } from './usePools';
|
|
7
|
-
export declare function useV3DerivedMintInfo({ state, existingPosition, }: {
|
|
8
|
-
state: StateProps;
|
|
9
|
-
existingPosition?: Position;
|
|
10
|
-
}): {
|
|
11
|
-
pool?: Pool | null;
|
|
12
|
-
poolState: PoolState;
|
|
13
|
-
ticks: {
|
|
14
|
-
[bound in Bound]?: number | undefined;
|
|
15
|
-
};
|
|
16
|
-
price?: Price<Token, Token>;
|
|
17
|
-
pricesAtTicks: {
|
|
18
|
-
[bound in Bound]?: Price<Token, Token> | undefined;
|
|
19
|
-
};
|
|
20
|
-
pricesAtLimit: {
|
|
21
|
-
[bound in Bound]?: Price<Token, Token> | undefined;
|
|
22
|
-
};
|
|
23
|
-
currencies: {
|
|
24
|
-
[field in Field]?: Currency;
|
|
25
|
-
};
|
|
26
|
-
currencyBalances: {
|
|
27
|
-
[field in Field]?: CurrencyAmount<Currency>;
|
|
28
|
-
};
|
|
29
|
-
dependentField: Field;
|
|
30
|
-
parsedAmounts: {
|
|
31
|
-
[field in Field]?: CurrencyAmount<Currency>;
|
|
32
|
-
};
|
|
33
|
-
position?: Position;
|
|
34
|
-
noLiquidity?: boolean;
|
|
35
|
-
errorMessage?: ReactNode;
|
|
36
|
-
invalidPool: boolean;
|
|
37
|
-
outOfRange: boolean;
|
|
38
|
-
invalidRange: boolean;
|
|
39
|
-
depositADisabled: boolean;
|
|
40
|
-
depositBDisabled: boolean;
|
|
41
|
-
invertPrice: boolean;
|
|
42
|
-
ticksAtLimit: {
|
|
43
|
-
[bound in Bound]?: boolean | undefined;
|
|
44
|
-
};
|
|
45
|
-
isTaxed: boolean;
|
|
46
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Actions } from '../reducer';
|
|
2
|
-
export declare function useV3MintActionHandlers({ noLiquidity, dispatch, }: {
|
|
3
|
-
noLiquidity: boolean | undefined;
|
|
4
|
-
dispatch: React.Dispatch<Actions>;
|
|
5
|
-
}): {
|
|
6
|
-
onFieldAInput: (typedValue: string) => void;
|
|
7
|
-
onFieldBInput: (typedValue: string) => void;
|
|
8
|
-
onLeftRangeInput: (typedValue: string) => void;
|
|
9
|
-
onRightRangeInput: (typedValue: string) => void;
|
|
10
|
-
onStartPriceInput: (typedValue: string) => void;
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChainId, Currency, CurrencyAmount } from '../sdks/sdk-core';
|
|
2
|
-
import { Pool } from '../sdks/v3-sdk';
|
|
3
|
-
export declare function useV3PositionFees({ chainId, pool, tokenId, asWETH, }: {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
pool?: Pool;
|
|
6
|
-
tokenId: string;
|
|
7
|
-
asWETH: boolean;
|
|
8
|
-
}): [CurrencyAmount<Currency>, CurrencyAmount<Currency>] | [undefined, undefined];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { PositionDetails } from '../types/position';
|
|
3
|
-
interface UseV3PositionsResults {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
positions?: PositionDetails[];
|
|
6
|
-
}
|
|
7
|
-
interface UseV3PositionResults {
|
|
8
|
-
loading: boolean;
|
|
9
|
-
position?: PositionDetails;
|
|
10
|
-
}
|
|
11
|
-
export declare function useV3PositionFromTokenId(tokenId: string | undefined, chainId: ChainId): UseV3PositionResults;
|
|
12
|
-
export declare function useV3Positions(account: string | null | undefined, chainId: ChainId): UseV3PositionsResults;
|
|
13
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../hooks/Token/type';
|
|
2
|
-
import { Currency } from './sdks/sdk-core';
|
|
3
|
-
import { FeeAmount } from './sdks/v3-sdk';
|
|
4
|
-
import { Field, FullRange } from './types';
|
|
5
|
-
export interface StateProps {
|
|
6
|
-
baseToken: Maybe<Currency>;
|
|
7
|
-
quoteToken: Maybe<Currency>;
|
|
8
|
-
feeAmount: FeeAmount | undefined;
|
|
9
|
-
readonly independentField: Field;
|
|
10
|
-
readonly typedValue: string;
|
|
11
|
-
readonly startPriceTypedValue: string;
|
|
12
|
-
readonly leftRangeTypedValue: string | FullRange;
|
|
13
|
-
readonly rightRangeTypedValue: string | FullRange;
|
|
14
|
-
}
|
|
15
|
-
export declare enum Types {
|
|
16
|
-
UpdateBaseToken = 0,
|
|
17
|
-
UpdateDefaultBaseToken = 1,
|
|
18
|
-
UpdateQuoteToken = 2,
|
|
19
|
-
UpdateDefaultQuoteToken = 3,
|
|
20
|
-
UpdateBaseTokenAndClearQuoteToken = 4,
|
|
21
|
-
UpdateFeeAmount = 5,
|
|
22
|
-
ToggleRate = 6,
|
|
23
|
-
setFullRange = 7,
|
|
24
|
-
typeStartPriceInput = 8,
|
|
25
|
-
typeLeftRangeInput = 9,
|
|
26
|
-
typeRightRangeInput = 10,
|
|
27
|
-
typeInput = 11
|
|
28
|
-
}
|
|
29
|
-
type Payload = {
|
|
30
|
-
[Types.UpdateBaseToken]: TokenInfo;
|
|
31
|
-
[Types.UpdateDefaultBaseToken]: TokenInfo;
|
|
32
|
-
[Types.UpdateQuoteToken]: TokenInfo;
|
|
33
|
-
[Types.UpdateDefaultQuoteToken]: TokenInfo;
|
|
34
|
-
[Types.UpdateBaseTokenAndClearQuoteToken]: TokenInfo;
|
|
35
|
-
[Types.UpdateFeeAmount]: FeeAmount;
|
|
36
|
-
[Types.ToggleRate]: void;
|
|
37
|
-
[Types.setFullRange]: void;
|
|
38
|
-
[Types.typeStartPriceInput]: {
|
|
39
|
-
typedValue: string;
|
|
40
|
-
};
|
|
41
|
-
[Types.typeLeftRangeInput]: {
|
|
42
|
-
typedValue: string;
|
|
43
|
-
};
|
|
44
|
-
[Types.typeRightRangeInput]: {
|
|
45
|
-
typedValue: string;
|
|
46
|
-
};
|
|
47
|
-
[Types.typeInput]: {
|
|
48
|
-
field: Field;
|
|
49
|
-
typedValue: string;
|
|
50
|
-
noLiquidity: boolean;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export type Actions = ActionMap<Payload>[keyof ActionMap<Payload>];
|
|
54
|
-
export declare function reducer(state: StateProps, action: Actions): StateProps;
|
|
55
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export { ChainId } from '@dodoex/api';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare const SUPPORTED_CHAINS: readonly [ChainId.MAINNET, ChainId.ARBITRUM_ONE, ChainId.SEPOLIA, ChainId.TAIKO];
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
*/
|
|
10
|
-
export type SupportedChainsType = (typeof SUPPORTED_CHAINS)[number];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
export type BigintIsh = JSBI | string | number;
|
|
3
|
-
export declare enum TradeType {
|
|
4
|
-
EXACT_INPUT = 0,
|
|
5
|
-
EXACT_OUTPUT = 1
|
|
6
|
-
}
|
|
7
|
-
export declare enum Rounding {
|
|
8
|
-
ROUND_DOWN = 0,
|
|
9
|
-
ROUND_HALF_UP = 1,
|
|
10
|
-
ROUND_UP = 2
|
|
11
|
-
}
|
|
12
|
-
export declare const MaxUint256: JSBI;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
import { Token } from './token';
|
|
3
|
-
/**
|
|
4
|
-
* A currency is any fungible financial instrument, including Ether, all ERC20 tokens, and other chain-native currencies
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether the currency is native to the chain and must be wrapped (e.g. Ether)
|
|
9
|
-
*/
|
|
10
|
-
abstract readonly isNative: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Returns whether the currency is a token that is usable in Uniswap without wrapping
|
|
13
|
-
*/
|
|
14
|
-
abstract readonly isToken: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The chain ID on which this currency resides
|
|
17
|
-
*/
|
|
18
|
-
readonly chainId: number;
|
|
19
|
-
/**
|
|
20
|
-
* The decimals used in representing currency amounts
|
|
21
|
-
*/
|
|
22
|
-
readonly decimals: number;
|
|
23
|
-
/**
|
|
24
|
-
* The symbol of the currency, i.e. a short textual non-unique identifier
|
|
25
|
-
*/
|
|
26
|
-
readonly symbol?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the currency, i.e. a descriptive textual non-unique identifier
|
|
29
|
-
*/
|
|
30
|
-
readonly name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Constructs an instance of the base class `BaseCurrency`.
|
|
33
|
-
* @param chainId the chain ID on which this currency resides
|
|
34
|
-
* @param decimals decimals of the currency
|
|
35
|
-
* @param symbol symbol of the currency
|
|
36
|
-
* @param name of the currency
|
|
37
|
-
*/
|
|
38
|
-
protected constructor(chainId: number, decimals: number, symbol?: string, name?: string);
|
|
39
|
-
/**
|
|
40
|
-
* Returns whether this currency is functionally equivalent to the other currency
|
|
41
|
-
* @param other the other currency
|
|
42
|
-
*/
|
|
43
|
-
abstract equals(other: Currency): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Return the wrapped version of this currency that can be used with the Uniswap contracts. Currencies must
|
|
46
|
-
* implement this to be used in Uniswap
|
|
47
|
-
*/
|
|
48
|
-
abstract get wrapped(): Token;
|
|
49
|
-
}
|
package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { Currency } from '../currency';
|
|
3
|
-
import { Token } from '../token';
|
|
4
|
-
import { Fraction } from './fraction';
|
|
5
|
-
import BigNumber from 'bignumber.js';
|
|
6
|
-
import { BigintIsh, Rounding } from '../../constants';
|
|
7
|
-
export declare class CurrencyAmount<T extends Currency> extends Fraction {
|
|
8
|
-
readonly currency: T;
|
|
9
|
-
readonly decimalScale: JSBI;
|
|
10
|
-
/**
|
|
11
|
-
* Returns a new currency amount instance from the unitless amount of token, i.e. the raw amount
|
|
12
|
-
* @param currency the currency in the amount
|
|
13
|
-
* @param rawAmount the raw token or ether amount
|
|
14
|
-
*/
|
|
15
|
-
static fromRawAmount<T extends Currency>(currency: T, rawAmount: BigintIsh): CurrencyAmount<T>;
|
|
16
|
-
/**
|
|
17
|
-
* Construct a currency amount with a denominator that is not equal to 1
|
|
18
|
-
* @param currency the currency
|
|
19
|
-
* @param numerator the numerator of the fractional token amount
|
|
20
|
-
* @param denominator the denominator of the fractional token amount
|
|
21
|
-
*/
|
|
22
|
-
static fromFractionalAmount<T extends Currency>(currency: T, numerator: BigintIsh, denominator: BigintIsh): CurrencyAmount<T>;
|
|
23
|
-
protected constructor(currency: T, numerator: BigintIsh, denominator?: BigintIsh);
|
|
24
|
-
add(other: CurrencyAmount<T>): CurrencyAmount<T>;
|
|
25
|
-
subtract(other: CurrencyAmount<T>): CurrencyAmount<T>;
|
|
26
|
-
multiply(other: Fraction | BigintIsh): CurrencyAmount<T>;
|
|
27
|
-
divide(other: Fraction | BigintIsh): CurrencyAmount<T>;
|
|
28
|
-
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
29
|
-
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
30
|
-
toExact(): BigNumber;
|
|
31
|
-
get wrapped(): CurrencyAmount<Token>;
|
|
32
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { BigintIsh, Rounding } from '../../constants';
|
|
3
|
-
export declare class Fraction {
|
|
4
|
-
readonly numerator: JSBI;
|
|
5
|
-
readonly denominator: JSBI;
|
|
6
|
-
constructor(numerator: BigintIsh, denominator?: BigintIsh);
|
|
7
|
-
private static tryParseFraction;
|
|
8
|
-
get quotient(): JSBI;
|
|
9
|
-
get remainder(): Fraction;
|
|
10
|
-
invert(): Fraction;
|
|
11
|
-
add(other: Fraction | BigintIsh): Fraction;
|
|
12
|
-
subtract(other: Fraction | BigintIsh): Fraction;
|
|
13
|
-
lessThan(other: Fraction | BigintIsh): boolean;
|
|
14
|
-
equalTo(other: Fraction | BigintIsh): boolean;
|
|
15
|
-
greaterThan(other: Fraction | BigintIsh): boolean;
|
|
16
|
-
multiply(other: Fraction | BigintIsh): Fraction;
|
|
17
|
-
divide(other: Fraction | BigintIsh): Fraction;
|
|
18
|
-
toSignificant(significantDigits: number, format?: object, rounding?: Rounding): string;
|
|
19
|
-
toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string;
|
|
20
|
-
/**
|
|
21
|
-
* Helper method for converting any super class back to a fraction
|
|
22
|
-
*/
|
|
23
|
-
get asFraction(): Fraction;
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BigintIsh, Rounding } from '../../constants';
|
|
2
|
-
import { Fraction } from './fraction';
|
|
3
|
-
export declare class Percent extends Fraction {
|
|
4
|
-
/**
|
|
5
|
-
* This boolean prevents a fraction from being interpreted as a Percent
|
|
6
|
-
*/
|
|
7
|
-
readonly isPercent: true;
|
|
8
|
-
add(other: Fraction | BigintIsh): Percent;
|
|
9
|
-
subtract(other: Fraction | BigintIsh): Percent;
|
|
10
|
-
multiply(other: Fraction | BigintIsh): Percent;
|
|
11
|
-
divide(other: Fraction | BigintIsh): Percent;
|
|
12
|
-
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
13
|
-
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
14
|
-
}
|