@dodoex/widgets 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/219f8611c6c9e6e2.svg +6 -0
- package/dist/34acf2e58b457195.svg +9 -0
- package/dist/44df077bd19df476.svg +10 -0
- package/dist/5c5d298f247819e1.svg +10 -0
- package/dist/assets/bundle-DSSoJu9z.css +297 -0
- package/dist/cjs/locales/en-US.js +1 -0
- package/dist/cjs/locales/zh-CN.js +1 -0
- package/dist/helper-Be7aLbEq.js +1 -0
- package/dist/helper-dEfhJEkX.cjs +1 -0
- package/dist/index-3B5w0yNs.js +78 -0
- package/dist/index-BK2jeS15.cjs +31 -0
- package/dist/index-BQ7ViRDq.js +31 -0
- package/dist/index-BiM6Z6o7.cjs +78 -0
- package/dist/index-DAXZvHWe.js +12 -0
- package/dist/index-IayNVRuq.cjs +12 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/en-US.js +1 -0
- package/dist/locales/zh-CN.js +1 -0
- package/dist/types/components/AddTokenToMetamask.d.ts +8 -0
- package/dist/types/components/AddressWithLinkAndCopy.d.ts +23 -0
- package/dist/types/components/AutoButton.d.ts +6 -0
- package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +5 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +4 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +17 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +15 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +5 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +6 -0
- package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +13 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +9 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +3 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +19 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +11 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +10 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/index.d.ts +9 -0
- package/dist/types/components/Bridge/SelectBridgeDialog/productList.d.ts +7 -0
- package/dist/types/components/CardWidgets.d.ts +51 -0
- package/dist/types/components/Confirm.d.ts +17 -0
- package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +4 -0
- package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +7 -0
- package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +1 -0
- package/dist/types/components/CopyTooltipToast.d.ts +10 -0
- package/dist/types/components/DataCard/DataCardGroup.d.ts +8 -0
- package/dist/types/components/DateTimePickerInput/components/MobileDateTimePicker.d.ts +13 -0
- package/dist/types/components/DateTimePickerInput/components/PCDateTimePicker.d.ts +12 -0
- package/dist/types/components/DateTimePickerInput/index.d.ts +10 -0
- package/dist/types/components/DateTimePickerInput/utils/index.d.ts +1 -0
- package/dist/types/components/Dialog.d.ts +1 -0
- package/dist/types/components/ErrorMessageDialog.d.ts +4 -0
- package/dist/types/components/GoBack.d.ts +5 -0
- package/dist/types/components/HowItWorks.d.ts +10 -0
- package/dist/types/components/LiquidityLpPartnerReward.d.ts +23 -0
- package/dist/types/components/List/EmptyList.d.ts +8 -0
- package/dist/types/components/List/FailedList.d.ts +5 -0
- package/dist/types/components/LoadMore.d.ts +8 -0
- package/dist/types/components/LoadingRotation.d.ts +3 -0
- package/dist/types/components/Message/Countdown.d.ts +12 -0
- package/dist/types/components/Message/index.d.ts +2 -0
- package/dist/types/components/RiskDialog.d.ts +7 -0
- package/dist/types/components/Select.d.ts +15 -0
- package/dist/types/components/SelectChain.d.ts +13 -0
- package/dist/types/components/SpaceBetweenItem.d.ts +5 -0
- package/dist/types/components/SubmittedDialog.d.ts +6 -0
- package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +10 -0
- package/dist/types/components/Swap/SwapOrderHistory/RoutingCard.d.ts +7 -0
- package/dist/types/components/Swap/SwapOrderHistory/RoutingVision.d.ts +25 -0
- package/dist/types/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +5 -0
- package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +4 -0
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +5 -0
- package/dist/types/components/Swap/components/Dialog.d.ts +17 -0
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +22 -0
- package/dist/types/components/Swap/components/SettingsDialog/NumberInput.d.ts +7 -0
- package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +6 -0
- package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +7 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/MoreTradeSetting.d.ts +4 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/CurveChart.d.ts +9 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/SlippageSlider.d.ts +9 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/index.d.ts +12 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useHoverSlider.d.ts +8 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSlippageSlider.d.ts +14 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSuccessRate.d.ts +10 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +6 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +8 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +10 -0
- package/dist/types/components/Swap/components/SwitchBox.d.ts +5 -0
- package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +12 -0
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +15 -0
- package/dist/types/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +6 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +8 -0
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +20 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +40 -0
- package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +9 -0
- package/dist/types/components/Swap/index.d.ts +17 -0
- package/dist/types/components/SwitchChainDialog/index.d.ts +6 -0
- package/dist/types/components/Table.d.ts +6 -0
- package/dist/types/components/TextSwitch.d.ts +13 -0
- package/dist/types/components/Token/TokenItem.d.ts +9 -0
- package/dist/types/components/TokenLogo.d.ts +20 -0
- package/dist/types/components/TokenLogoPair.d.ts +16 -0
- package/dist/types/components/TokenLogoSimple.d.ts +18 -0
- package/dist/types/components/TokenPairStatusButton.d.ts +6 -0
- package/dist/types/components/TokenPicker/PopularToken.d.ts +6 -0
- package/dist/types/components/TokenPicker/SelectChainItem.d.ts +6 -0
- package/dist/types/components/TokenPicker/TokenItem.d.ts +10 -0
- package/dist/types/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +1 -0
- package/dist/types/components/TokenPicker/index.d.ts +25 -0
- package/dist/types/components/TokenSelect.d.ts +21 -0
- package/dist/types/components/TokenStatusButton.d.ts +6 -0
- package/dist/types/components/Tooltip/QuestionTooltip.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/UserOptionsProvider.d.ts +7 -0
- package/dist/types/components/Widget/index.d.ts +101 -0
- package/dist/types/components/WidgetConfirm.d.ts +15 -0
- package/dist/types/components/WidgetContainer.d.ts +5 -0
- package/dist/types/components/WidgetDialog.d.ts +14 -0
- package/dist/types/components/WithExecutionDialog/index.d.ts +6 -0
- package/dist/types/components/chart/components/BaseButton.d.ts +4 -0
- package/dist/types/components/chart/components/Display.d.ts +9 -0
- package/dist/types/components/chart/components/Input.d.ts +6 -0
- package/dist/types/components/chart/components/NumberInput.d.ts +5 -0
- package/dist/types/components/chart/components/TogglePriceIcon.d.ts +7 -0
- package/dist/types/components/chart/components/TokenLogo.d.ts +4 -0
- package/dist/types/components/chart/depth-chart/DepthChartKonva.d.ts +29 -0
- package/dist/types/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/types/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/types/components/chart/depth-chart/index.d.ts +17 -0
- package/dist/types/components/chart/depth-chart/index.styled.d.ts +28 -0
- package/dist/types/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/types/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/types/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/types/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/types/components/chart/depth-chart-v2/index.d.ts +9 -0
- package/dist/types/components/chart/depth-chart-v2/index.styled.d.ts +14 -0
- package/dist/types/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/types/components/chart/i18n.d.ts +1 -0
- package/dist/types/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +27 -0
- package/dist/types/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/types/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/types/components/chart/liquidity-chart/index.d.ts +16 -0
- package/dist/types/components/chart/liquidity-chart/index.styled.d.ts +8 -0
- package/dist/types/components/chart/liquidity-chart/useGridLine.d.ts +7 -0
- package/dist/types/components/chart/liquidity-chart/useHorizontalLabel.d.ts +9 -0
- package/dist/types/components/chart/liquidity-chart/useLiquidityLine.d.ts +17 -0
- package/dist/types/components/chart/liquidity-chart/useMiddleLine.d.ts +5 -0
- package/dist/types/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/types/components/chart/utils.d.ts +3 -0
- package/dist/types/constants/address.d.ts +1 -0
- package/dist/types/constants/api.d.ts +19 -0
- package/dist/types/constants/chainList.d.ts +10 -0
- package/dist/types/constants/chains.d.ts +20 -0
- package/dist/types/constants/locales.d.ts +3 -0
- package/dist/types/constants/localstorage.d.ts +14 -0
- package/dist/types/constants/pool.d.ts +9 -0
- package/dist/types/constants/sessionStorage.d.ts +2 -0
- package/dist/types/constants/swap.d.ts +7 -0
- package/dist/types/constants/testId.d.ts +11 -0
- package/dist/types/constants/token.d.ts +2 -0
- package/dist/types/constants/tokenList.d.ts +9 -0
- package/dist/types/constants/wallet.d.ts +22 -0
- package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +28 -0
- package/dist/types/hooks/Bridge/index.d.ts +4 -0
- package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +7 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +102 -0
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +1 -0
- package/dist/types/hooks/Bridge/useSendRoute.d.ts +15 -0
- package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -0
- package/dist/types/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/types/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
- package/dist/types/hooks/ConnectWallet/index.d.ts +3 -0
- package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -0
- package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +13 -0
- package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +8 -0
- package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
- package/dist/types/hooks/ConnectWallet/web3.d.ts +10 -0
- package/dist/types/hooks/Submission/getExecutionErrorMsg.d.ts +2 -0
- package/dist/types/hooks/Submission/index.d.ts +9 -0
- package/dist/types/hooks/Submission/spec.d.ts +56 -0
- package/dist/types/hooks/Submission/types.d.ts +95 -0
- package/dist/types/hooks/Submission/useBalanceUpdateLoading.d.ts +16 -0
- package/dist/types/hooks/Submission/useExecution.d.ts +27 -0
- package/dist/types/hooks/Submission/useInflights.d.ts +5 -0
- package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
- package/dist/types/hooks/Swap/index.d.ts +4 -0
- package/dist/types/hooks/Swap/useCustomSlippage.d.ts +10 -0
- package/dist/types/hooks/Swap/useExecuteSwap.d.ts +13 -0
- package/dist/types/hooks/Swap/useFetchFiatPrice.d.ts +13 -0
- package/dist/types/hooks/Swap/useFetchFiatPrice.test.d.ts +1 -0
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +40 -0
- package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
- package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +172 -0
- package/dist/types/hooks/Swap/useInitDefaultToken.d.ts +10 -0
- package/dist/types/hooks/Swap/useMarginAmount.d.ts +8 -0
- package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +1 -0
- package/dist/types/hooks/Swap/usePriceTimer.d.ts +5 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -0
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +37 -0
- package/dist/types/hooks/Swap/useSwapSlippage.d.ts +174 -0
- package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
- package/dist/types/hooks/Token/index.d.ts +4 -0
- package/dist/types/hooks/Token/type.d.ts +31 -0
- package/dist/types/hooks/Token/useDisabledTokenSwitch.d.ts +5 -0
- package/dist/types/hooks/Token/useFindTokenByAddress.d.ts +1 -0
- package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
- package/dist/types/hooks/Token/useGetCGTokenList.d.ts +15 -0
- package/dist/types/hooks/Token/useGetTokenStatus.d.ts +14 -0
- package/dist/types/hooks/Token/useInitTokenList.d.ts +6 -0
- package/dist/types/hooks/Token/useSelectChainList.d.ts +6 -0
- package/dist/types/hooks/Token/useSelectChainList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenList.d.ts +35 -0
- package/dist/types/hooks/Token/useTokenList.test.d.ts +1 -0
- package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +12 -0
- package/dist/types/hooks/Token/useTokenStatus.d.ts +21 -0
- package/dist/types/hooks/Token/useTokenStatus.test.d.ts +1 -0
- package/dist/types/hooks/contract/index.d.ts +3 -0
- package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +3 -0
- package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -0
- package/dist/types/hooks/contract/useFetchTokens.d.ts +14 -0
- package/dist/types/hooks/contract/wallet.d.ts +25 -0
- package/dist/types/hooks/setting/useDefaultSlippage.d.ts +4 -0
- package/dist/types/hooks/setting/useGetAPIService.d.ts +2 -0
- package/dist/types/hooks/setting/useSetAutoSlippage.d.ts +13 -0
- package/dist/types/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/types/hooks/useFetchFiatPriceBatch.d.ts +4 -0
- package/dist/types/hooks/useGlobalState.d.ts +32 -0
- package/dist/types/hooks/useGraphQLRequests.d.ts +3 -0
- package/dist/types/hooks/useMessageState.d.ts +17 -0
- package/dist/types/hooks/useRouteVisionData.d.ts +15 -0
- package/dist/types/hooks/useTokenState.d.ts +18 -0
- package/dist/types/index.d.ts +44 -0
- package/dist/types/providers/i18n.d.ts +9 -0
- package/dist/types/providers/queryClient/index.d.ts +2 -0
- package/dist/types/providers/useInitContractRequest.d.ts +1 -0
- package/dist/types/router/index.d.ts +10 -0
- package/dist/types/router/types.d.ts +48 -0
- package/dist/types/utils/address.d.ts +33 -0
- package/dist/types/utils/address.test.d.ts +1 -0
- package/dist/types/utils/browser.d.ts +9 -0
- package/dist/types/utils/bytes.d.ts +3 -0
- package/dist/types/utils/chains.d.ts +2 -0
- package/dist/types/utils/chains.test.d.ts +1 -0
- package/dist/types/utils/formatter.d.ts +50 -0
- package/dist/types/utils/formatter.test.d.ts +1 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/dist/types/utils/time.d.ts +12 -0
- package/dist/types/utils/time.test.d.ts +1 -0
- package/dist/types/utils/token.d.ts +30 -0
- package/dist/types/utils/token.test.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/types/utils/wallet.d.ts +8 -0
- package/dist/types/utils/wallet.test.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolCard.d.ts +18 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolPicker.d.ts +22 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardDetailList.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardTokenSelect.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/SectionTitle.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StakingRules.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/components/StepTitle.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/reducers.d.ts +56 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMiningTypeList.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDefaultStakeToken.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDexList.d.ts +16 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +38 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolTokenBalance.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPair.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPairStatus.d.ts +19 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/index.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/CreateMiningTypeSelect.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/RewardForm.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/SingleTokenSelect.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/TokenPairSelect.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/types.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +26 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/MiningInfo.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/RewardCard.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/index.d.ts +23 -0
- package/dist/types/widgets/MiningWidget/MiningDetail/widgets.d.ts +23 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/APRSection.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/CloseButton.d.ts +3 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/GoBack.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/ManageButtonList.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningCardLayout.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListEmpty.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningListLoading.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningStatusTabSelect.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTags.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MiningTitle.d.ts +30 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/MyStakedSection.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/OperateButtonList.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/RewardsSection.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/SearchComponents.d.ts +15 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/ShareModeSelect.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/TVLSection.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/TokenAmountPopover.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/UnknownUSDPopover.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/UsersIcon.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/components/widgets.d.ts +26 -0
- package/dist/types/widgets/MiningWidget/MiningList/contexts.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/dom.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.d.ts +22 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useGetLpLink.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useHasUnclaimedReward.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useMyStakedLoading.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useOperateHooks.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenInfo.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenTrigger.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStakedInfo.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/MiningList/hooks/useTotalRewardUSD.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/index.d.ts +16 -0
- package/dist/types/widgets/MiningWidget/MiningList/mining-types/BaseMiningCard.d.ts +17 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/MyCreatedMining.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/OperateArea.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/RewardCard.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/my-created/index.d.ts +8 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/AssociatedMine.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimButton.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimTips.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/GetLpLink.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/InputArea.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardListCard.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardTokenTable.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeButton.d.ts +25 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeTokenSelect.d.ts +10 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.d.ts +15 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/index.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/MiningList/operate-area/utils.d.ts +24 -0
- package/dist/types/widgets/MiningWidget/MiningList/utils.d.ts +41 -0
- package/dist/types/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/types/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +4 -0
- package/dist/types/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +7 -0
- package/dist/types/widgets/MiningWidget/OperateArea/StakeButton.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/OperateArea/Widgets.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +14 -0
- package/dist/types/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +69 -0
- package/dist/types/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningBlockNumber.d.ts +6 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/hooks/useMiningListContractDataMap.d.ts +12 -0
- package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +11 -0
- package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +1 -0
- package/dist/types/widgets/MiningWidget/hooks/useRefetch.d.ts +5 -0
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +28 -0
- package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +18 -0
- package/dist/types/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/types/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +9 -0
- package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +30 -0
- package/dist/types/widgets/MiningWidget/types.d.ts +210 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/ConfirmDialog.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/CreateItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/FeeEdit.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/MyLiqidity.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV2Create/index.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/types.d.ts +50 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/utils.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/shared.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +55 -0
- package/dist/types/widgets/PoolWidget/AMMV3/constants/misc.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useContract.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedPositionInfo.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useIsTickAtLimit.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useRangeHopCallbacks.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useSwapTaxes.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +46 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3MintActionHandlers.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3PositionFees.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3Positions.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +55 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/constants.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/currency.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/token.d.ts +48 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/index.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/pool.d.ts +81 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/position.d.ts +131 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/route.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tick.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/trade.d.ts +220 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/index.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/internalConstants.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/multicall.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/payments.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/quoter.d.ts +37 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/selfPermit.d.ts +25 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/staker.d.ts +101 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/swapRouter.d.ts +51 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/calldata.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/index.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/position.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickList.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types/position.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/computeSurroundingTicks.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/formatTickPrice.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/getTickToPrice.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/maxAmountSpend.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/slippage.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseCurrencyAmount.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseTick.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/GasWrapGasTokenError.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/RatioSetting.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/TokenPairSelect.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/reducer.d.ts +90 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/types.d.ts +39 -0
- package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +40 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +27 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +315 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/CreatePoolBtn.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +61 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/GSPPairRiskWarning.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +53 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +35 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +87 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2Balance.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +386 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +27 -0
- package/dist/types/widgets/PoolWidget/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/utils.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import Konva from 'konva';
|
|
3
|
+
import { PMMModel } from '@dodoex/api';
|
|
4
|
+
export declare function colorRgb(str: string): string;
|
|
5
|
+
export type EvaluatedPoint = {
|
|
6
|
+
side: 'bid' | 'ask' | 'no-one';
|
|
7
|
+
vert: BigNumber;
|
|
8
|
+
base: BigNumber;
|
|
9
|
+
quote: BigNumber;
|
|
10
|
+
};
|
|
11
|
+
export type BaseMinAndZoomMultiples = {
|
|
12
|
+
baseMin: BigNumber;
|
|
13
|
+
zoomMultiples: number;
|
|
14
|
+
/** Price impact point active display hover */
|
|
15
|
+
targetMarginPriceX: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function evalPoint({ val, model, }: {
|
|
18
|
+
val: BigNumber;
|
|
19
|
+
model: PMMModel;
|
|
20
|
+
midPrice: BigNumber;
|
|
21
|
+
}): EvaluatedPoint;
|
|
22
|
+
/**
|
|
23
|
+
* Returns two vertical coordinates, buyBaseVert on the left and sellBaseVert on the right.
|
|
24
|
+
* @param param0
|
|
25
|
+
*/
|
|
26
|
+
export declare function computeBaseVert({ midPrice, q, q0, pmmModel, }: {
|
|
27
|
+
midPrice: BigNumber;
|
|
28
|
+
q: number;
|
|
29
|
+
q0: number;
|
|
30
|
+
pmmModel: PMMModel;
|
|
31
|
+
}): {
|
|
32
|
+
buyBaseVert: BigNumber;
|
|
33
|
+
sellBaseVert: BigNumber;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* // 1000/800 The price represented by one pixel
|
|
37
|
+
// Maximum value on the right side of the middle price = middle price * 10 = middle price * 10^1
|
|
38
|
+
// Calculate the x-axis coordinate (price): middle price*10^(xPortion*x)+middle price; x is the number of equal parts that divide the right half into 50 parts
|
|
39
|
+
* @param chartWidth icon width
|
|
40
|
+
* @param zoomMultiples magnification factors
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare function computeXPortion(chartWidth: number, zoomMultiples?: number): BigNumber;
|
|
44
|
+
export declare function updateTooltip({ tooltip, x, chartWidth, chartHeight, buyBaseVert, sellBaseVert, pmmModel, midPrice, baseTokenSymbol, quoteTokenSymbol, t, baseMinAndZoomMultiples, isHover, color, leftColor, rightColor, }: {
|
|
45
|
+
x: number;
|
|
46
|
+
tooltip: Konva.Layer;
|
|
47
|
+
chartWidth: number;
|
|
48
|
+
chartHeight: number;
|
|
49
|
+
buyBaseVert: BigNumber;
|
|
50
|
+
sellBaseVert: BigNumber;
|
|
51
|
+
pmmModel: PMMModel;
|
|
52
|
+
midPrice: BigNumber;
|
|
53
|
+
baseTokenSymbol: string;
|
|
54
|
+
quoteTokenSymbol: string;
|
|
55
|
+
t: any;
|
|
56
|
+
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
57
|
+
isHover?: boolean;
|
|
58
|
+
color?: string;
|
|
59
|
+
leftColor?: string;
|
|
60
|
+
rightColor?: string;
|
|
61
|
+
}): void;
|
|
62
|
+
/**
|
|
63
|
+
* Calculate the minimum value on the left by pulling distance or button click
|
|
64
|
+
*/
|
|
65
|
+
export declare function computeBaseMinByDistance({ dragDistance, prevBaseMin, chartWidth, zoomMultiples, }: {
|
|
66
|
+
dragDistance: number;
|
|
67
|
+
prevBaseMin: BigNumber;
|
|
68
|
+
chartWidth: number;
|
|
69
|
+
zoomMultiples: number;
|
|
70
|
+
}): BigNumber;
|
|
71
|
+
export declare const baseZoomMultiples = 1;
|
|
72
|
+
export declare function computeZoomMultiplesWhenZoom({ prevZoomMultiples, zoomIn, }: {
|
|
73
|
+
prevZoomMultiples: number;
|
|
74
|
+
zoomIn: boolean;
|
|
75
|
+
}): number;
|
|
76
|
+
/**
|
|
77
|
+
* Given a price target corresponding to the abscissa, calculate the abscissa of the point
|
|
78
|
+
* The buying impact point is at the left 1/4 position
|
|
79
|
+
* The selling impact point is 3/4 on the right
|
|
80
|
+
*
|
|
81
|
+
* Returns a coordinate point, baseMin and zoomMultiples
|
|
82
|
+
*
|
|
83
|
+
* Take the initial state as the starting point, that is, midPrice * 10 ^ -1 as the starting point of the horizontal axis, and it is a left-right symmetrical state, that is, the logarithm of the horizontal axis is from -1 -> 0 -> 1
|
|
84
|
+
*
|
|
85
|
+
* type === 'sell'
|
|
86
|
+
* targetPrice = midPrice * 10 ^ n
|
|
87
|
+
* n = Math.log10(targetPrice / midPrice)
|
|
88
|
+
* n = maxN * (3 / 4)
|
|
89
|
+
*
|
|
90
|
+
* If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
|
|
91
|
+
* If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If you still do not adjust the zoom factor, hit the specified point directly, otherwise you need to adjust the zoom factor (avoid inputting extremely small values) The value cannot be scaled to the specified range, resulting in stuck)
|
|
92
|
+
*/
|
|
93
|
+
export declare function computeTargetXByTargetPrice({ type, targetPrice, midPrice, width, }: {
|
|
94
|
+
type: 'buy' | 'sell';
|
|
95
|
+
targetPrice: BigNumber;
|
|
96
|
+
midPrice: BigNumber;
|
|
97
|
+
width: number;
|
|
98
|
+
}): {
|
|
99
|
+
zoomMultiples: BigNumber;
|
|
100
|
+
targetX: number;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
|
|
104
|
+
* If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If it is within the range, adjust the zoom factor to 1, and then impact to the specified point, otherwise you need to adjust the zoom factor ( Avoid entering extremely small values that may result in inability to scale to the specified range and cause stucks)
|
|
105
|
+
*
|
|
106
|
+
* Returns an abscissa and a flag indicating whether to skip
|
|
107
|
+
*/
|
|
108
|
+
export declare function beforePriceImpactEffect({ currentBaseMinAndZoomMultiples, targetPrice, midPrice, width, }: {
|
|
109
|
+
currentBaseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
110
|
+
targetPrice: BigNumber;
|
|
111
|
+
midPrice: BigNumber;
|
|
112
|
+
width: number;
|
|
113
|
+
}): {
|
|
114
|
+
isSkip: boolean;
|
|
115
|
+
targetX: number;
|
|
116
|
+
baseMin: BigNumber;
|
|
117
|
+
zoomMultiples: number;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Recalculate baseMin after the zoom factor changes
|
|
121
|
+
*/
|
|
122
|
+
export declare function computeBaseAfterZoom({ midPrice, zoomMultiples, }: {
|
|
123
|
+
midPrice: BigNumber;
|
|
124
|
+
zoomMultiples: number;
|
|
125
|
+
}): BigNumber;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { ColorMap } from './DepthChartKonva';
|
|
3
|
+
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
4
|
+
type Props = {
|
|
5
|
+
chartId: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
baseTokenSymbol: string;
|
|
8
|
+
quoteTokenSymbol: string;
|
|
9
|
+
pmmModel?: PMMModel;
|
|
10
|
+
pmmParams?: PmmModelParams;
|
|
11
|
+
midPrice?: BigNumber;
|
|
12
|
+
height?: number;
|
|
13
|
+
notShowAmountInput?: boolean;
|
|
14
|
+
colorMap?: ColorMap;
|
|
15
|
+
};
|
|
16
|
+
declare const DepthChart: React.FC<Props>;
|
|
17
|
+
export default DepthChart;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const AmountInputContainer: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const InputSectionWrapper: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
} & {
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const PriceImpactWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
19
|
+
export declare const OptButtonGroup: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
+
export declare const OptButton: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
} & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
27
|
+
theme?: import("@emotion/react").Theme;
|
|
28
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PMMModel } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { BaseMinAndZoomMultiples } from './helper';
|
|
4
|
+
export declare function useDepthLinePoints({ chartHeight, chartWidth, midPrice, xPoints, pmmModel, baseMinAndZoomMultiples, buyYPortion, sellYPortion, }: {
|
|
5
|
+
chartHeight: number;
|
|
6
|
+
chartWidth: number;
|
|
7
|
+
xPoints: number;
|
|
8
|
+
midPrice: BigNumber;
|
|
9
|
+
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
10
|
+
buyYPortion: BigNumber;
|
|
11
|
+
sellYPortion: BigNumber;
|
|
12
|
+
pmmModel: PMMModel;
|
|
13
|
+
}): {
|
|
14
|
+
quoteLinePoints: number[];
|
|
15
|
+
quoteLineAreaPoints: number[];
|
|
16
|
+
quoteLineAreaLinearGradientEndPointY: number;
|
|
17
|
+
baseLinePoints: number[];
|
|
18
|
+
baseLineAreaPoints: number[];
|
|
19
|
+
baseLineAreaLinearGradientEndPointY: number;
|
|
20
|
+
midPriceLinePoints: number[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useGridLinePoints({ chartHeight, chartWidth, horizontalLineCount, verticalLineCount, }: {
|
|
2
|
+
chartHeight: number;
|
|
3
|
+
chartWidth: number;
|
|
4
|
+
horizontalLineCount: number;
|
|
5
|
+
verticalLineCount: number;
|
|
6
|
+
}): {
|
|
7
|
+
horizontalGridLines: number[][];
|
|
8
|
+
verticalGridLines: number[][];
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseMinAndZoomMultiples } from './helper';
|
|
2
|
+
export declare function useHorizontalLabelPoints({ chartHeight, chartWidth, xAxisPoints, oneXPx, baseMinAndZoomMultiples, }: {
|
|
3
|
+
chartHeight: number;
|
|
4
|
+
chartWidth: number;
|
|
5
|
+
xAxisPoints: number;
|
|
6
|
+
oneXPx: number;
|
|
7
|
+
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
8
|
+
}): {
|
|
9
|
+
horizontalLabelTickPoints: number[][];
|
|
10
|
+
horizontalLabelTextPoints: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
text: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PmmModelParams } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
/**
|
|
4
|
+
* Calculate marginPrice for buying or selling target baseToken
|
|
5
|
+
* @param param0
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function computeMarginPrice({ params, target, isBuy, }: {
|
|
9
|
+
params: PmmModelParams;
|
|
10
|
+
target: BigNumber;
|
|
11
|
+
isBuy?: boolean;
|
|
12
|
+
}): BigNumber;
|
|
13
|
+
/**
|
|
14
|
+
* Calculate the margin price for selling target baseTokens
|
|
15
|
+
*/
|
|
16
|
+
export declare function computeSellMarginPrice({ params, target, }: {
|
|
17
|
+
params: PmmModelParams;
|
|
18
|
+
target: BigNumber;
|
|
19
|
+
}): BigNumber;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function DepthChartV2({ title, titleColor, description, descriptionColor, buttonColor, placeholder, }: {
|
|
2
|
+
title: string;
|
|
3
|
+
titleColor: string;
|
|
4
|
+
description: string;
|
|
5
|
+
descriptionColor: string;
|
|
6
|
+
buttonColor: string;
|
|
7
|
+
placeholder: React.ReactElement;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export default DepthChartV2;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Title: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const Description: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const OptButton: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
} & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
}, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chartT(key: string, params: any): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
export declare const bgColor = "rgba(38, 39, 41, 0.3)";
|
|
4
|
+
export interface ColorMap {
|
|
5
|
+
grid?: string;
|
|
6
|
+
midPriceLine?: string;
|
|
7
|
+
leftBg?: (string | number)[];
|
|
8
|
+
leftLine?: string;
|
|
9
|
+
leftColor?: string;
|
|
10
|
+
rightBg?: (string | number)[];
|
|
11
|
+
rightLine?: string;
|
|
12
|
+
rightColor?: string;
|
|
13
|
+
tooltipBg?: string;
|
|
14
|
+
tooltipColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
}
|
|
17
|
+
export type Props = {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
params: PmmModelParams;
|
|
21
|
+
midPrice: BigNumber;
|
|
22
|
+
pmmModel: PMMModel;
|
|
23
|
+
baseTokenSymbol: string;
|
|
24
|
+
quoteTokenSymbol: string;
|
|
25
|
+
colorMap?: ColorMap;
|
|
26
|
+
};
|
|
27
|
+
export declare function LiquidityChartKonva({ width, height, params, baseTokenSymbol, quoteTokenSymbol, colorMap, }: Props): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { StatAreaPoint } from './usePoints';
|
|
3
|
+
export declare function computePointYByHeight({ maxHeight, gridAreaHeight, value, }: {
|
|
4
|
+
maxHeight: BigNumber;
|
|
5
|
+
gridAreaHeight: number;
|
|
6
|
+
value: BigNumber;
|
|
7
|
+
}): number;
|
|
8
|
+
export declare function computeHeightByPointY({ maxY, gridAreaHeight, y, }: {
|
|
9
|
+
maxY: BigNumber;
|
|
10
|
+
gridAreaHeight: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}): BigNumber;
|
|
13
|
+
/**
|
|
14
|
+
* Obtain the closest data point from the data point collection through the coordinate point x and a series of point data subsets from the point to the center line.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getStatAreaPointByX({ targetPrice, areaPoints, isLeft, }: {
|
|
17
|
+
targetPrice: BigNumber;
|
|
18
|
+
areaPoints: StatAreaPoint[];
|
|
19
|
+
isLeft: boolean;
|
|
20
|
+
}): {
|
|
21
|
+
targetAreaStatPoint: StatAreaPoint | null;
|
|
22
|
+
targetAreaStatPoints: StatAreaPoint[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Given a pixel's x-coordinate, width, logarithm of the minimum value of the abscissa, and logarithm of the maximum value of the abscissa, calculate the logarithmic coordinate corresponding to the point
|
|
26
|
+
*/
|
|
27
|
+
export declare function computeTargetPrice({ x, width, minXLN10, maxXLN10, }: {
|
|
28
|
+
x: number;
|
|
29
|
+
width: number;
|
|
30
|
+
minXLN10: BigNumber;
|
|
31
|
+
maxXLN10: BigNumber;
|
|
32
|
+
}): BigNumber;
|
|
33
|
+
/**
|
|
34
|
+
* Given the logarithm of a coordinate, the width, the logarithm of the minimum value of the abscissa, and the logarithm of the maximum value of the abscissa, calculate the x coordinate corresponding to the point
|
|
35
|
+
*/
|
|
36
|
+
export declare function computeTargetX({ width, targetLN10, minXLN10, maxXLN10, }: {
|
|
37
|
+
width: number;
|
|
38
|
+
targetLN10: BigNumber;
|
|
39
|
+
minXLN10: BigNumber;
|
|
40
|
+
maxXLN10: BigNumber;
|
|
41
|
+
}): number;
|
|
42
|
+
/**
|
|
43
|
+
* Calculate logarithm
|
|
44
|
+
*/
|
|
45
|
+
export declare function computeTargetLN({ target }: {
|
|
46
|
+
target: BigNumber;
|
|
47
|
+
}): BigNumber;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { ColorMap } from './LiquidityChartKonva';
|
|
4
|
+
type Props = {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
baseTokenSymbol: string;
|
|
8
|
+
quoteTokenSymbol: string;
|
|
9
|
+
pmmModel?: PMMModel;
|
|
10
|
+
pmmParams?: PmmModelParams;
|
|
11
|
+
midPrice?: BigNumber;
|
|
12
|
+
notShowTipText?: boolean;
|
|
13
|
+
colorMap?: ColorMap;
|
|
14
|
+
};
|
|
15
|
+
declare const LiquidityChart: React.FC<Props>;
|
|
16
|
+
export default LiquidityChart;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const TipWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useGridLine({ gridAreaHeight, gridAreaWidth, horizontalLineCount, verticalLineCount, color, }: {
|
|
2
|
+
gridAreaHeight: number;
|
|
3
|
+
gridAreaWidth: number;
|
|
4
|
+
horizontalLineCount: number;
|
|
5
|
+
verticalLineCount: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare function useHorizontalLabel({ minXLN10, maxXLN10, labelCount, gridAreaHeight, gridAreaWidth, color, }: {
|
|
3
|
+
minXLN10: BigNumber;
|
|
4
|
+
maxXLN10: BigNumber;
|
|
5
|
+
labelCount: number;
|
|
6
|
+
gridAreaHeight: number;
|
|
7
|
+
gridAreaWidth: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { ColorMap } from './LiquidityChartKonva';
|
|
3
|
+
import { StatAreaPoint } from './usePoints';
|
|
4
|
+
export declare function useLiquidityLine({ leftStatAreaPoints, rightStatAreaPoints, minXLN10, maxXLN10, maxLeftHeight, maxRightHeight, gridAreaWidth, gridAreaHeight, colorMap, }: {
|
|
5
|
+
leftStatAreaPoints: Array<StatAreaPoint>;
|
|
6
|
+
rightStatAreaPoints: Array<StatAreaPoint>;
|
|
7
|
+
minXLN10: BigNumber;
|
|
8
|
+
maxXLN10: BigNumber;
|
|
9
|
+
maxLeftHeight: BigNumber;
|
|
10
|
+
maxRightHeight: BigNumber;
|
|
11
|
+
gridAreaWidth: number;
|
|
12
|
+
gridAreaHeight: number;
|
|
13
|
+
colorMap: ColorMap;
|
|
14
|
+
}): {
|
|
15
|
+
leftLine: JSX.Element;
|
|
16
|
+
rightLine: JSX.Element;
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PmmModelParams } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
/**
|
|
4
|
+
* data point
|
|
5
|
+
*/
|
|
6
|
+
export type StatPoint = {
|
|
7
|
+
giveAmount: BigNumber;
|
|
8
|
+
getAmount: BigNumber;
|
|
9
|
+
price: BigNumber;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Drawing method:
|
|
13
|
+
Substitute the minimum value to get the height of the center point, which is the bottom edge of the area chart. Substitute the maximum value to get the vertex of the area chart. The length of the bottom edge from the vertex is the price range.
|
|
14
|
+
|
|
15
|
+
Divide the total area into one hundred equal parts. Calculate each part on the basis of the previous part. Substitute the new area into the formula to get a new price. The difference from the previous price is the width of the rectangle. The area is divided by The width is the height of the rectangle, which is the ordinate.
|
|
16
|
+
|
|
17
|
+
First, calculate a series of points as a point set based on the rectangular accumulation method.
|
|
18
|
+
|
|
19
|
+
When the mouse hovers, the abscissa is the price. Find the closest price in the point set. Use this price as the end point and the center line as the starting point to get a subset of the point set. You can draw a line by combining the center line and the abscissa. The area of the trapezoid can be drawn.
|
|
20
|
+
|
|
21
|
+
Update: Taking Δl as the ordinate, Δl = (the difference between the quantity passed in from the previous point and the next point) * (the difference between the quantity obtained from the previous point and the next point)
|
|
22
|
+
*/
|
|
23
|
+
export type StatAreaPoint = {
|
|
24
|
+
area: BigNumber;
|
|
25
|
+
price: BigNumber;
|
|
26
|
+
middlePrice: BigNumber;
|
|
27
|
+
rectangleHeight: BigNumber;
|
|
28
|
+
};
|
|
29
|
+
export declare function usePoints({ params }: {
|
|
30
|
+
params: PmmModelParams;
|
|
31
|
+
}): {
|
|
32
|
+
leftStatAreaPoints: StatAreaPoint[];
|
|
33
|
+
rightStatAreaPoints: StatAreaPoint[];
|
|
34
|
+
maxLeftHeight: BigNumber;
|
|
35
|
+
maxRightHeight: BigNumber;
|
|
36
|
+
minXLN10: BigNumber;
|
|
37
|
+
maxXLN10: BigNumber;
|
|
38
|
+
middlePriceLN10: BigNumber;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmptyAddress = "0x0000000000000000000000000000000000000000";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ContractRequests, TokenApi, ChainId } from '@dodoex/api';
|
|
2
|
+
export declare enum APIServiceKey {
|
|
3
|
+
routePrice = "routePrice",
|
|
4
|
+
fiatPrice = "fiatPrice",
|
|
5
|
+
bridgeRoutePrice = "bridgeRoutePrice",
|
|
6
|
+
bridgeEncode = "bridgeEncode",
|
|
7
|
+
bridgeCreateRoute = "bridgeCreateRoute"
|
|
8
|
+
}
|
|
9
|
+
export type APIServices = {
|
|
10
|
+
[key in APIServiceKey]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const AppUrl = "https://app.dodoex.io";
|
|
13
|
+
export declare const getCGTokenListAPI: (chainId: ChainId) => any;
|
|
14
|
+
export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/v2/widget/getdodoroute";
|
|
15
|
+
export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api/current/batch";
|
|
16
|
+
export declare function getAPIService(key: APIServiceKey, serviceProps?: Partial<APIServices>): string;
|
|
17
|
+
export declare const contractRequests: ContractRequests;
|
|
18
|
+
export declare const tokenContractRequests: ContractRequests;
|
|
19
|
+
export declare const tokenApi: TokenApi;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import { ReactComponent as ETHereumLogo } from '../assets/logo/networks/eth.svg';
|
|
3
|
+
export interface ChainListItem {
|
|
4
|
+
chainId: ChainId;
|
|
5
|
+
logo: typeof ETHereumLogo;
|
|
6
|
+
name: string;
|
|
7
|
+
mainnet?: ChainId;
|
|
8
|
+
}
|
|
9
|
+
export declare const chainListMap: Map<ChainId, ChainListItem>;
|
|
10
|
+
export declare const isTestNet: (chainId: ChainId) => boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export { etherTokenAddress, basicTokenMap } from '@dodoex/api';
|
|
3
|
+
export declare const rpcServerMap: {
|
|
4
|
+
[key in ChainId]: Array<string>;
|
|
5
|
+
};
|
|
6
|
+
export declare const getRpcSingleUrlMap: (newRpcServerMap?: {
|
|
7
|
+
[chainId: number]: string[];
|
|
8
|
+
}) => { [key in ChainId]: string; };
|
|
9
|
+
export declare const scanUrlDomainMap: {
|
|
10
|
+
[key in ChainId]: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ThegraphKeyMap: {
|
|
13
|
+
[key in ChainId]: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const blockTimeMap: {
|
|
16
|
+
[key in ChainId]: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const dexKeysMap: {
|
|
19
|
+
[key in ChainId]: string[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TokenInfo } from '../hooks/Token';
|
|
2
|
+
import { ChainId } from '@dodoex/api';
|
|
3
|
+
export declare function getAuthSwitchCache(): boolean;
|
|
4
|
+
export declare function setAuthSwitchCache(isAuto: boolean): void;
|
|
5
|
+
export interface LastTokenCache {
|
|
6
|
+
chainId: ChainId;
|
|
7
|
+
address: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function getLastToken(side: TokenInfo['side']): LastTokenCache | null;
|
|
10
|
+
export declare function setLastToken(side: TokenInfo['side'], token: LastTokenCache | null): void;
|
|
11
|
+
export declare function getLastSlippage(isBridge: boolean): number | null;
|
|
12
|
+
export declare function setLastSlippage(isBridge: boolean, slippage: number | string | null): void;
|
|
13
|
+
export declare const RiskOncePageLocalStorage: Record<string, string>;
|
|
14
|
+
export declare function getIsPoolEditRiskWarningOpen(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const AUTO_SWAP_SLIPPAGE_PROTECTION = "auto";
|
|
2
|
+
export declare const AUTO_LIQUIDITY_SLIPPAGE_PROTECTION = "0.1";
|
|
3
|
+
export declare const AUTO_AMM_V2_LIQUIDITY_SLIPPAGE_PROTECTION = "0.5";
|
|
4
|
+
export declare const AUTO_AMM_V3_LIQUIDITY_SLIPPAGE_PROTECTION = "0.5";
|
|
5
|
+
/**
|
|
6
|
+
* slippage protection
|
|
7
|
+
* First read out the reserve of the pool base and quote. If the slippage is 1%, then it is reserve * 0.99 and pass in func.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SLIPPAGE_PROTECTION = 0.01;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const AUTO_SWAP_SLIPPAGE_PROTECTION = "auto";
|
|
2
|
+
export declare const PRICE_IMPACT_THRESHOLD = 15;
|
|
3
|
+
export declare const DEFAULT_SWAP_SLIPPAGE = 0.2;
|
|
4
|
+
export declare const MAX_SWAP_SLIPPAGE = 50;
|
|
5
|
+
export declare const DEFAULT_SWAP_DDL = 20;
|
|
6
|
+
export declare const MIN_GAS_LIMIT = 30000;
|
|
7
|
+
export declare const DEFAULT_BRIDGE_SLIPPAGE = 0.5;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const connectWalletBtn = "connect-wallet-btn";
|
|
2
|
+
export declare const swapAlertSelectTokenBtn = "swap-alert-select-token-btn";
|
|
3
|
+
export declare const swapReviewBtn = "swap-review-btn";
|
|
4
|
+
export declare const swapSelectTokenBtn = "swap-select-token-btn";
|
|
5
|
+
export declare const swapAlertEnterAmountBtn = "swap-alert-enter-amount-btn";
|
|
6
|
+
export declare const swapAlertFetchPriceBtn = "swap-alert-fetch-price-btn";
|
|
7
|
+
export declare const swapAlertInsufficientBalanceBtn = "swap-alert-insufficient-balance-btn";
|
|
8
|
+
export declare const numberInputWrapper = "number-input-wrapper";
|
|
9
|
+
export declare const selectTokenBtn = "select-token-btn";
|
|
10
|
+
export declare const tokenPickerWrapper = "token-picker-wrapper";
|
|
11
|
+
export declare const tokenPickerItem = "token-picker-item";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum WalletType {
|
|
2
|
+
INTEGRATOR = "integrator",
|
|
3
|
+
METAMASK = "metamask",
|
|
4
|
+
WALLET_CONNECT = "walletConnect"
|
|
5
|
+
}
|
|
6
|
+
export declare const WalletMap: {
|
|
7
|
+
metamask: {
|
|
8
|
+
name: string;
|
|
9
|
+
type: WalletType;
|
|
10
|
+
icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
11
|
+
title?: string;
|
|
12
|
+
}>;
|
|
13
|
+
link: string;
|
|
14
|
+
};
|
|
15
|
+
walletConnect: {
|
|
16
|
+
name: string;
|
|
17
|
+
type: WalletType;
|
|
18
|
+
icon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
19
|
+
title?: string;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
};
|