@dodoex/widgets 3.0.2-neox.1 → 3.0.2-nero.0
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 +154 -156
- package/dist/28442382d977858a.svg +0 -9
- package/dist/8de9a184d4ef0a11.svg +0 -6
- package/dist/9cc2b17a1958d960.svg +0 -3
- 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/f7a5110e71722a0c.svg +0 -10
- package/dist/helper-CuTmbsue.cjs +0 -1
- package/dist/helper-u3n5TpaA.js +0 -1
- package/dist/index-BEVRr0PH.js +0 -32
- package/dist/index-BgJpw3jN.cjs +0 -12
- package/dist/index-BvjPNHer.js +0 -78
- package/dist/index-DGfFyxhb.cjs +0 -78
- package/dist/index-DogPNaZV.cjs +0 -32
- package/dist/index-iIQatzFL.js +0 -12
- 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 -22
- 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 -7
- 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 -1
- 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 -12
- package/dist/types/components/SpaceBetweenItem.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/SwapInfoCard.d.ts +0 -9
- 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 -5
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +0 -6
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +0 -8
- package/dist/types/components/Swap/components/SwitchBox.d.ts +0 -5
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +0 -14
- 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 -12
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -19
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +0 -41
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -21
- package/dist/types/components/Swap/index.d.ts +0 -9
- 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 -72
- 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 -10
- 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 -92
- package/dist/types/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -16
- package/dist/types/hooks/Submission/useExecution.d.ts +0 -25
- 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 -7
- package/dist/types/hooks/useFetchFiatPriceBatch.d.ts +0 -4
- 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/index.d.ts +0 -41
- 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/store/actions/globals.d.ts +0 -9
- package/dist/types/store/actions/index.d.ts +0 -4
- package/dist/types/store/actions/settings.d.ts +0 -3
- package/dist/types/store/actions/token.d.ts +0 -7
- package/dist/types/store/actions/wallet.d.ts +0 -6
- package/dist/types/store/index.d.ts +0 -12
- package/dist/types/store/reducers/globals.d.ts +0 -21
- package/dist/types/store/reducers/index.d.ts +0 -17
- package/dist/types/store/reducers/settings.d.ts +0 -8
- package/dist/types/store/reducers/token.d.ts +0 -22
- package/dist/types/store/reducers/wallet.d.ts +0 -13
- package/dist/types/store/selectors/globals.d.ts +0 -7
- package/dist/types/store/selectors/settings.d.ts +0 -2
- package/dist/types/store/selectors/token.d.ts +0 -6
- package/dist/types/store/selectors/wallet.d.ts +0 -6
- package/dist/types/utils/address.d.ts +0 -26
- 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 -18
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +0 -16
- 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 -12
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +0 -4
- 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 -23
- 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 -14
- 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 -5
- 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 -13
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +0 -5
- 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 -5
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +0 -6
- 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 -15
- 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 -1
- 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 -15
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +0 -10
- 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 -6
- 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 -4
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -4
- 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 -4
- 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 -4
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -10
- 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 -6
- 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 -18
- 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/hooks/usePoolListFilterChainId.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -50
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +0 -4
- 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 -10
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -8
- 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 -8
- 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 -17
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
- 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 -48
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
- 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,9 +0,0 @@
|
|
|
1
|
-
import { SupportedLang } from '../constants/locales';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface LangProviderProps {
|
|
4
|
-
locale?: SupportedLang;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function loadI18(locale?: SupportedLang): Promise<void>;
|
|
8
|
-
export declare function LangProvider({ locale, children }: LangProviderProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useInitContractRequest(): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Page } from './types';
|
|
2
|
-
export { PageType } from './types';
|
|
3
|
-
export type { Page } from './types';
|
|
4
|
-
interface RouterState {
|
|
5
|
-
page?: Page;
|
|
6
|
-
historyList: Array<Page>;
|
|
7
|
-
push: (page: Page) => void;
|
|
8
|
-
back: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const useRouterStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RouterState>>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { PoolTab } from '../widgets/PoolWidget/PoolList/hooks/usePoolListTabs';
|
|
3
|
-
export declare enum PageType {
|
|
4
|
-
Pool = "pool",
|
|
5
|
-
PoolDetail = "poolDetail",
|
|
6
|
-
CreatePool = "createPool",
|
|
7
|
-
ModifyPool = "modifyPool",
|
|
8
|
-
MiningList = "miningList",
|
|
9
|
-
MiningDetail = "miningDetail",
|
|
10
|
-
createPoolAMMV2 = "createPoolAMMV2",
|
|
11
|
-
createPoolAMMV3 = "createPoolAMMV3"
|
|
12
|
-
}
|
|
13
|
-
interface PageTypeParams {
|
|
14
|
-
[PageType.Pool]: {
|
|
15
|
-
tab?: PoolTab;
|
|
16
|
-
} | undefined;
|
|
17
|
-
[PageType.PoolDetail]: {
|
|
18
|
-
address: string;
|
|
19
|
-
chainId: ChainId;
|
|
20
|
-
};
|
|
21
|
-
[PageType.ModifyPool]: {
|
|
22
|
-
address: string;
|
|
23
|
-
chainId: ChainId;
|
|
24
|
-
};
|
|
25
|
-
[PageType.CreatePool]: {
|
|
26
|
-
fromAddress?: string;
|
|
27
|
-
toAddress?: string;
|
|
28
|
-
} | undefined;
|
|
29
|
-
[PageType.MiningList]: {
|
|
30
|
-
chainId: number;
|
|
31
|
-
};
|
|
32
|
-
[PageType.MiningDetail]: {
|
|
33
|
-
chainId: number;
|
|
34
|
-
miningContractAddress: string | undefined;
|
|
35
|
-
stakeTokenAddress: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
[PageType.createPoolAMMV2]: undefined;
|
|
38
|
-
[PageType.createPoolAMMV3]: {
|
|
39
|
-
from?: string;
|
|
40
|
-
to?: string;
|
|
41
|
-
fee?: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}
|
|
44
|
-
export interface Page<T extends PageType = PageType> {
|
|
45
|
-
type: T;
|
|
46
|
-
params?: PageTypeParams[T];
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { ContractStatus } from '../reducers/globals';
|
|
3
|
-
export declare const setContractStatus: (contractStatus: ContractStatus) => AppThunkAction;
|
|
4
|
-
export declare const setAutoConnectLoading: (loading: boolean) => AppThunkAction;
|
|
5
|
-
export declare const setAutoSlippage: (autoSlippage: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
value: number | null;
|
|
8
|
-
}) => AppThunkAction;
|
|
9
|
-
export declare const setAutoSlippageLoading: (loading: boolean) => AppThunkAction;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
-
import { RootState } from '../reducers';
|
|
3
|
-
export type AppThunkAction<Ret = void> = ThunkAction<Ret, RootState, unknown, Action<string>>;
|
|
4
|
-
export type AppThunkDispatch = ThunkDispatch<RootState, unknown, Action<string>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { TokenList, TokenInfo } from '../../hooks/Token';
|
|
3
|
-
import { SlippageWithToken } from '../reducers/token';
|
|
4
|
-
export declare const setTokenList: (tokenList: TokenList) => AppThunkAction;
|
|
5
|
-
export declare const setPopularTokenList: (popularTokenList: TokenList) => AppThunkAction;
|
|
6
|
-
export declare const setSlippageWithTokens: (slippageWithTokens: SlippageWithToken[]) => AppThunkAction;
|
|
7
|
-
export declare const setDefaultToToken: (token: TokenInfo) => AppThunkAction;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
import { State } from '../reducers/wallet';
|
|
4
|
-
export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
5
|
-
export declare const setBlockNumber: (blockNumber: number) => AppThunkAction;
|
|
6
|
-
export declare const setOpenConnectWalletInfo: (openConnectWalletInfo: State["openConnectWalletInfo"]) => AppThunkAction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @ts-ignore */
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
3
|
-
settings: import("./reducers/settings").State;
|
|
4
|
-
wallet: import("./reducers/wallet").State;
|
|
5
|
-
token: import("./reducers/token").State;
|
|
6
|
-
globals: import("./reducers/globals").State;
|
|
7
|
-
}>, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
8
|
-
settings: import("./reducers/settings").State;
|
|
9
|
-
wallet: import("./reducers/wallet").State;
|
|
10
|
-
token: import("./reducers/token").State;
|
|
11
|
-
globals: import("./reducers/globals").State;
|
|
12
|
-
}>, import("redux").AnyAction>]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
export declare enum ContractStatus {
|
|
3
|
-
Initial = "Initial",
|
|
4
|
-
Pending = "Pending",
|
|
5
|
-
ApproveSuccess = "ApproveSuccess",
|
|
6
|
-
TxSuccess = "TxSuccess",
|
|
7
|
-
Failed = "Failed"
|
|
8
|
-
}
|
|
9
|
-
export interface State {
|
|
10
|
-
contractStatus?: ContractStatus;
|
|
11
|
-
autoConnectLoading?: boolean;
|
|
12
|
-
showCoingecko?: boolean;
|
|
13
|
-
/** source: props.getAutoSlippage */
|
|
14
|
-
autoSlippage?: {
|
|
15
|
-
loading: boolean;
|
|
16
|
-
value: number | null;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare const initialState: State;
|
|
20
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
21
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { State as settingsState } from './settings';
|
|
2
|
-
import { State as walletState } from './wallet';
|
|
3
|
-
import { State as tokenState } from './token';
|
|
4
|
-
import { State as globalState } from './globals';
|
|
5
|
-
export interface RootState {
|
|
6
|
-
settings: settingsState;
|
|
7
|
-
wallet: walletState;
|
|
8
|
-
token: tokenState;
|
|
9
|
-
globals: globalState;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: () => import("redux").Reducer<import("redux").CombinedState<{
|
|
12
|
-
settings: settingsState;
|
|
13
|
-
wallet: walletState;
|
|
14
|
-
token: tokenState;
|
|
15
|
-
globals: globalState;
|
|
16
|
-
}>, import("redux").AnyAction>;
|
|
17
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
export type Slippage = string | null;
|
|
3
|
-
export type State = {
|
|
4
|
-
slippage: Slippage;
|
|
5
|
-
};
|
|
6
|
-
export declare const initialState: State;
|
|
7
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
8
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { AnyAction } from 'redux';
|
|
3
|
-
import type { TokenList } from '../../hooks/Token';
|
|
4
|
-
export type AccountBalance = {
|
|
5
|
-
tokenBalances?: BigNumber;
|
|
6
|
-
tokenAllowances?: BigNumber;
|
|
7
|
-
};
|
|
8
|
-
export type AccountBalances = {
|
|
9
|
-
[key in string]: AccountBalance;
|
|
10
|
-
};
|
|
11
|
-
export type SlippageWithToken = {
|
|
12
|
-
slippage: string;
|
|
13
|
-
tokens: string[];
|
|
14
|
-
};
|
|
15
|
-
export type State = {
|
|
16
|
-
tokenList: TokenList;
|
|
17
|
-
popularTokenList: TokenList;
|
|
18
|
-
slippageWithTokens: SlippageWithToken[];
|
|
19
|
-
};
|
|
20
|
-
export declare const initialState: State;
|
|
21
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
22
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
export type State = {
|
|
4
|
-
fromTokenChainId?: ChainId;
|
|
5
|
-
latestBlockNumber: number;
|
|
6
|
-
openConnectWalletInfo: boolean | {
|
|
7
|
-
/** Wallet is connected, chainID needs to be switched */
|
|
8
|
-
chainId?: ChainId;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const initialState: State;
|
|
12
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
13
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getContractStatus: (state?: RootState) => import("../reducers/globals").ContractStatus | undefined;
|
|
3
|
-
export declare const getAutoConnectLoading: (state?: RootState) => boolean | undefined;
|
|
4
|
-
export declare const getAutoSlippage: (state?: RootState) => {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
value: number | null;
|
|
7
|
-
} | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { RootState } from '../reducers';
|
|
3
|
-
export declare const getTokenList: (state?: RootState) => import("../../hooks/Token").TokenList;
|
|
4
|
-
export declare const getAllTokenList: (state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
5
|
-
export declare const getPopularTokenList: (chainId: ChainId, state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
6
|
-
export declare const getSlippageWithTokens: (state?: RootState) => import("../reducers/token").SlippageWithToken[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getFromTokenChainId: (state?: RootState) => import("@dodoex/api").ChainId | undefined;
|
|
3
|
-
export declare const getLatestBlockNumber: (state?: RootState) => number;
|
|
4
|
-
export declare const getOpenConnectWalletInfo: (state?: RootState) => boolean | {
|
|
5
|
-
chainId?: import("@dodoex/api").ChainId;
|
|
6
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo } from '../hooks/Token';
|
|
3
|
-
export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
|
|
4
|
-
export declare function isAddress(value: any): boolean;
|
|
5
|
-
export declare function isETHAddress(addr: string): boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Returns true if the string value is zero in hex
|
|
8
|
-
* @param hexNumberString
|
|
9
|
-
*/
|
|
10
|
-
export default function isZero(hexNumberString: string): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* truncate pool address: 0xeBa959390016dd81419A189e5ef6F3B6720e5A90 => 0xeBa9...5A90
|
|
13
|
-
* @param address pool address
|
|
14
|
-
*/
|
|
15
|
-
export declare function truncatePoolAddress(address: string): string;
|
|
16
|
-
export declare function sortsAddress(address0: string, address1: string): boolean;
|
|
17
|
-
export declare function getEtherscanPage(chainId: ChainId, id?: string | null, prefix?: string): string;
|
|
18
|
-
export declare function openEtherscanPage(path: string | undefined, chainId: ChainId, customUrl?: string): Promise<void>;
|
|
19
|
-
export declare const getUniInitCodeHash: (chainId: number) => "0x67a372377cf6d7f78cfdcc9df0bc21e1139bd49e5a47c33ee0de5389a4396410" | "0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" | "0x593ac4223f084467e0d81c9091be3e5fc936d3674e385bae66ee8ec3b54e07dd" | "0x007722521498f3d29a63d1eb6ab35e202874706c77ce73d45c1ad9da88174a3f";
|
|
20
|
-
export declare function sortsBefore(tokenA: TokenInfo, tokenB: TokenInfo): boolean;
|
|
21
|
-
export declare const computePairAddress: ({ factoryAddress, tokenA, tokenB, fee, }: {
|
|
22
|
-
factoryAddress: string;
|
|
23
|
-
tokenA: TokenInfo;
|
|
24
|
-
tokenB: TokenInfo;
|
|
25
|
-
fee: number;
|
|
26
|
-
}) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wait for a certain css selector to be loaded. Make sure that the selector can be loaded before calling it. Otherwise, retryCount should be passed in.
|
|
3
|
-
* @param selector css selector
|
|
4
|
-
*/
|
|
5
|
-
export declare const waitElement: (selector: string, { time, wrapper, retryCount, }?: {
|
|
6
|
-
time?: number;
|
|
7
|
-
wrapper?: Document | Element;
|
|
8
|
-
retryCount?: number;
|
|
9
|
-
}) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { BigNumber } from 'bignumber.js';
|
|
2
|
-
/**
|
|
3
|
-
* format to readable number, like: 0.00 -> 0, 1.00 -> 1, 1.235 -> 1.23, 1.230 -> 1.23
|
|
4
|
-
* @param input
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, exponentialDecimalsAmount, showIntegerOnly, showDecimalsOnly, noGroupSeparator, roundingMode, }: {
|
|
7
|
-
input: BigNumber | number | string;
|
|
8
|
-
showDecimals?: number;
|
|
9
|
-
showIntegerOnly?: boolean;
|
|
10
|
-
showDecimalsOnly?: boolean;
|
|
11
|
-
showPrecisionDecimals?: number;
|
|
12
|
-
exponentialDecimalsAmount?: number;
|
|
13
|
-
noGroupSeparator?: boolean;
|
|
14
|
-
roundingMode?: BigNumber.RoundingMode;
|
|
15
|
-
}): string;
|
|
16
|
-
export declare function formatTokenAmountNumber({ input, decimals, showPrecisionDecimals, exponentialDecimalsAmount, noGroupSeparator, }: {
|
|
17
|
-
input?: BigNumber | number | string | null;
|
|
18
|
-
decimals?: number;
|
|
19
|
-
showPrecisionDecimals?: number;
|
|
20
|
-
exponentialDecimalsAmount?: number;
|
|
21
|
-
noGroupSeparator?: boolean;
|
|
22
|
-
}): string;
|
|
23
|
-
export declare const fixedString: (raw: string | number | BigNumber, showDecimals?: number) => string;
|
|
24
|
-
export declare const fixedInputStringToFormattedNumber: (inputValue: string, inputTokenShowDecimals: number) => string | null;
|
|
25
|
-
export declare const toWei: (amount: BigNumber | string | number, decimals: number, notDp?: boolean) => BigNumber;
|
|
26
|
-
export declare const byWei: (amount: BigNumber | string | number, decimals: number) => BigNumber;
|
|
27
|
-
export declare const getDecimalLimit: (decimals: number | undefined | null) => number;
|
|
28
|
-
export declare function getIntegerNumber(v: number): number;
|
|
29
|
-
/**
|
|
30
|
-
* format to short number, like: -0.12 -> 0, 0.0000123->0.000012, 123.234 -> 123.23, 1234.12 -> 1.23K, 1000000.123->1.00M
|
|
31
|
-
* @param n
|
|
32
|
-
*/
|
|
33
|
-
export declare function formatShortNumber(n?: BigNumber, showDecimals?: number): string;
|
|
34
|
-
export declare function formatExponentialNotation(n?: BigNumber): string;
|
|
35
|
-
/**
|
|
36
|
-
* format to percentage number
|
|
37
|
-
* @param param0 input number
|
|
38
|
-
*/
|
|
39
|
-
export declare function formatPercentageNumber({ input, showDecimals,
|
|
40
|
-
/** The percentage is rounded by default. */
|
|
41
|
-
roundingMode, }: {
|
|
42
|
-
input?: BigNumber | string | number | null;
|
|
43
|
-
showDecimals?: number;
|
|
44
|
-
roundingMode?: BigNumber.RoundingMode;
|
|
45
|
-
}): string;
|
|
46
|
-
export declare const formatApy: (amount: BigNumber, showDecimals?: number) => string;
|
|
47
|
-
export declare function formatUnknownTokenSymbol(token?: {
|
|
48
|
-
symbol: string;
|
|
49
|
-
name: string;
|
|
50
|
-
} | null): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* time formatter
|
|
3
|
-
* output => 17mins54s or 17 Minutes
|
|
4
|
-
*/
|
|
5
|
-
export declare function formatReadableTimeDuration({ start, end, showSecondUnit, }: {
|
|
6
|
-
start?: number;
|
|
7
|
-
end?: number;
|
|
8
|
-
showSecondUnit?: boolean;
|
|
9
|
-
}): string | null;
|
|
10
|
-
export declare function getTimeText(time: Date, split?: string, { noYear, }?: {
|
|
11
|
-
noYear?: boolean;
|
|
12
|
-
}): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../hooks/Token';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
export declare const getTokenSymbolDisplay: (baseToken: TokenInfo) => string;
|
|
5
|
-
export declare const getSwapTxValue: ({ tokenAmount, tokenAddress, chainId, }: {
|
|
6
|
-
tokenAmount: string | number | BigNumber;
|
|
7
|
-
tokenAddress: string;
|
|
8
|
-
chainId: ChainId;
|
|
9
|
-
}) => string;
|
|
10
|
-
export declare function getTokenPairCompareText({ fromToken, toToken, fromFiatPrice, toFiatPrice, reverse, showDecimals, }: {
|
|
11
|
-
fromToken: TokenInfo | undefined;
|
|
12
|
-
toToken: TokenInfo | undefined;
|
|
13
|
-
fromFiatPrice: BigNumber | undefined;
|
|
14
|
-
toFiatPrice: BigNumber | undefined;
|
|
15
|
-
reverse?: boolean;
|
|
16
|
-
showDecimals?: number;
|
|
17
|
-
}): {
|
|
18
|
-
comparePrice: BigNumber | null;
|
|
19
|
-
comparePriceText: string;
|
|
20
|
-
loading: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare function getShowDecimals(decimals: string | number): 4 | 6;
|
|
23
|
-
export declare function convertFetchTokenToTokenInfo(token: {
|
|
24
|
-
id?: string | null;
|
|
25
|
-
address?: string | null;
|
|
26
|
-
symbol?: string | null;
|
|
27
|
-
name?: string | null;
|
|
28
|
-
decimals?: number | null;
|
|
29
|
-
logoImg?: string | null | undefined;
|
|
30
|
-
} | undefined | null, chainId: ChainId | number): TokenInfo | null | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { DexConfigI } from '../../types';
|
|
3
|
-
export default function PoolCard({ id: address, activePlatform, baseToken, quoteToken, baseReserve, quoteReserve, basePrice, quotePrice, creator, createdAtTimestamp, checked, onClick, children, loading, }: {
|
|
4
|
-
id: string;
|
|
5
|
-
activePlatform: DexConfigI | null;
|
|
6
|
-
baseToken: TokenInfo;
|
|
7
|
-
quoteToken: TokenInfo;
|
|
8
|
-
baseReserve: string;
|
|
9
|
-
quoteReserve: string;
|
|
10
|
-
creator?: string;
|
|
11
|
-
createdAtTimestamp?: string;
|
|
12
|
-
basePrice: number;
|
|
13
|
-
quotePrice: number;
|
|
14
|
-
checked?: boolean;
|
|
15
|
-
onClick: () => void;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
}): JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { DexKey } from '../hooks/useDexList';
|
|
3
|
-
export interface PoolInfo {
|
|
4
|
-
id: string;
|
|
5
|
-
baseReserve: string;
|
|
6
|
-
quoteReserve: string;
|
|
7
|
-
baseToken: TokenInfo;
|
|
8
|
-
quoteToken: TokenInfo;
|
|
9
|
-
basePrice: number;
|
|
10
|
-
quotePrice: number;
|
|
11
|
-
creator?: string;
|
|
12
|
-
createdAtTimestamp?: string;
|
|
13
|
-
}
|
|
14
|
-
interface Props {
|
|
15
|
-
on: boolean;
|
|
16
|
-
onClose: () => void;
|
|
17
|
-
onConfirm: (pool: PoolInfo) => void;
|
|
18
|
-
platform?: DexKey;
|
|
19
|
-
handleGotoCreatePool?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export default function PoolPicker({ on, onClose, onConfirm, platform, handleGotoCreatePool, }: Props): JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Actions, StateProps } from '../hooks/reducers';
|
|
2
|
-
import { SectionStatusT } from '../types';
|
|
3
|
-
export declare function RewardDetailList({ rewards, status, dispatch, }: {
|
|
4
|
-
rewards: StateProps['rewards'];
|
|
5
|
-
status: SectionStatusT;
|
|
6
|
-
dispatch: React.Dispatch<Actions>;
|
|
7
|
-
}): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { useGetTokenStatus } from '../../../../hooks/Token/useGetTokenStatus';
|
|
3
|
-
import { RewardStatus } from '../types';
|
|
4
|
-
export declare function RewardTokenSelect({ token, onClick, rewardStatus, submitApprove, }: {
|
|
5
|
-
token: TokenInfo | undefined;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
rewardStatus: RewardStatus | undefined;
|
|
8
|
-
submitApprove: ReturnType<typeof useGetTokenStatus>['submitApprove'];
|
|
9
|
-
}): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StateProps } from '../hooks/reducers';
|
|
2
|
-
import { SectionStatusT } from '../types';
|
|
3
|
-
export declare function StakingRules({ status, tokenType, saveAToken, pool, }: {
|
|
4
|
-
status: SectionStatusT;
|
|
5
|
-
tokenType: StateProps['tokenType'];
|
|
6
|
-
saveAToken: StateProps['saveAToken'];
|
|
7
|
-
pool: StateProps['pool'];
|
|
8
|
-
}): JSX.Element;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { PoolInfo } from '../components/PoolPicker';
|
|
3
|
-
export declare enum TokenType {
|
|
4
|
-
SINGLE = 1,
|
|
5
|
-
LP = 2
|
|
6
|
-
}
|
|
7
|
-
export interface RewardI {
|
|
8
|
-
token: TokenInfo | undefined;
|
|
9
|
-
total: string;
|
|
10
|
-
startTime: number | null;
|
|
11
|
-
endTime: number | null;
|
|
12
|
-
}
|
|
13
|
-
export interface StateProps {
|
|
14
|
-
tokenType: TokenType;
|
|
15
|
-
saveAToken?: TokenInfo;
|
|
16
|
-
isHadSetDefaultRewardToken?: boolean;
|
|
17
|
-
pool: PoolInfo | undefined;
|
|
18
|
-
rewards: RewardI[];
|
|
19
|
-
isInitCache: boolean;
|
|
20
|
-
currentStep: 0 | 1 | 2 | 3;
|
|
21
|
-
confirmModalVisible: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function init(): StateProps;
|
|
24
|
-
export declare enum Types {
|
|
25
|
-
updateTokenType = 1,
|
|
26
|
-
updateSaveAToken = 2,
|
|
27
|
-
updatePlatform = 3,
|
|
28
|
-
updatePool = 4,
|
|
29
|
-
updateReward = 5,
|
|
30
|
-
addReward = 6,
|
|
31
|
-
removeReward = 7,
|
|
32
|
-
reset = 8,
|
|
33
|
-
cover = 9,
|
|
34
|
-
updateInitCache = 10,
|
|
35
|
-
SetCurrentStep = 11,
|
|
36
|
-
SetConfirmModalVisible = 12
|
|
37
|
-
}
|
|
38
|
-
interface PayloadRewardI extends Partial<RewardI> {
|
|
39
|
-
index: number;
|
|
40
|
-
}
|
|
41
|
-
type Payload = {
|
|
42
|
-
[Types.updateTokenType]: TokenType;
|
|
43
|
-
[Types.updateSaveAToken]: TokenInfo | undefined;
|
|
44
|
-
[Types.updatePool]: PoolInfo | undefined;
|
|
45
|
-
[Types.updateReward]: PayloadRewardI;
|
|
46
|
-
[Types.addReward]: undefined;
|
|
47
|
-
[Types.removeReward]: number;
|
|
48
|
-
[Types.reset]: undefined;
|
|
49
|
-
[Types.cover]: StateProps;
|
|
50
|
-
[Types.updateInitCache]: boolean;
|
|
51
|
-
[Types.SetCurrentStep]: StateProps['currentStep'];
|
|
52
|
-
[Types.SetConfirmModalVisible]: boolean;
|
|
53
|
-
};
|
|
54
|
-
export type Actions = ActionMap<Payload>[keyof ActionMap<Payload>];
|
|
55
|
-
export declare function reducer(state: StateProps, action: Actions): StateProps;
|
|
56
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { LpTokenPlatformID } from '../../types';
|
|
3
|
-
export declare const useCreateMining: ({ submittedBack, handleGotoMiningList, }?: {
|
|
4
|
-
submittedBack?: () => void;
|
|
5
|
-
handleGotoMiningList?: () => void;
|
|
6
|
-
}) => {
|
|
7
|
-
state: import("./reducers").StateProps;
|
|
8
|
-
dispatch: import("react").Dispatch<import("./reducers").Actions>;
|
|
9
|
-
createMutation: import("@tanstack/react-query").UseMutationResult<void, Error, LpTokenPlatformID | undefined, unknown>;
|
|
10
|
-
blockNumber: BigNumber;
|
|
11
|
-
blockTime: number;
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DexConfigI } from '../../types';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
export type DexKey = 'dodo' | 'pancakeV2';
|
|
4
|
-
export declare function useDexList(): {
|
|
5
|
-
dexListObj: Record<DexKey, DexConfigI>;
|
|
6
|
-
GetGeneralUniInfo: (chainId: number) => {
|
|
7
|
-
name: string;
|
|
8
|
-
factoryAddress: string;
|
|
9
|
-
initHash: string;
|
|
10
|
-
fee?: number;
|
|
11
|
-
}[];
|
|
12
|
-
getChainDexList: (chainId: ChainId, filterCreateMiningEnable?: boolean) => {
|
|
13
|
-
key: DexKey;
|
|
14
|
-
value: JSX.Element;
|
|
15
|
-
}[];
|
|
16
|
-
};
|