@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,40 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
import { TokenPickerProps } from '../../../TokenPicker';
|
|
4
|
+
import BigNumber from 'bignumber.js';
|
|
5
|
+
import { ChainId } from '@dodoex/api';
|
|
6
|
+
import { BalanceData } from '../../../../hooks/Submission/useBalanceUpdateLoading';
|
|
7
|
+
export interface TokenCardProps {
|
|
8
|
+
amt: string;
|
|
9
|
+
fiatPriceTxt?: string | React.ReactNode;
|
|
10
|
+
sx?: BoxProps['sx'];
|
|
11
|
+
inputSx?: BoxProps['sx'];
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
showMaxBtn?: boolean;
|
|
14
|
+
canClickBalance?: boolean;
|
|
15
|
+
occupiedAddrs?: string[];
|
|
16
|
+
occupiedChainId?: TokenPickerProps['occupiedChainId'];
|
|
17
|
+
onMaxClick?: (max: string) => void;
|
|
18
|
+
token?: TokenInfo | null;
|
|
19
|
+
onInputChange?: (v: string) => void;
|
|
20
|
+
onInputFocus?: () => void;
|
|
21
|
+
onTokenClick?: () => void;
|
|
22
|
+
onTokenChange?: (token: TokenInfo, isOccupied: boolean) => void;
|
|
23
|
+
side?: TokenPickerProps['side'];
|
|
24
|
+
showChainLogo?: boolean;
|
|
25
|
+
showChainName?: boolean;
|
|
26
|
+
defaultLoadBalance?: boolean;
|
|
27
|
+
overrideBalance?: BigNumber | null;
|
|
28
|
+
overrideBalanceLoading?: boolean;
|
|
29
|
+
balanceText?: React.ReactNode;
|
|
30
|
+
showPercentage?: boolean;
|
|
31
|
+
inputReadonlyTooltip?: React.ReactNode;
|
|
32
|
+
inputTypography?: string;
|
|
33
|
+
chainId?: ChainId;
|
|
34
|
+
hideToken?: boolean;
|
|
35
|
+
checkLogBalance?: BalanceData;
|
|
36
|
+
notTokenPickerModal?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare function CardPlus(): JSX.Element;
|
|
39
|
+
export declare function CardPlusConnected(): JSX.Element;
|
|
40
|
+
export declare function TokenCard({ sx, inputSx, amt, token, readOnly, showMaxBtn, canClickBalance, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, chainId, hideToken, checkLogBalance, notTokenPickerModal, }: TokenCardProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
2
|
+
import { RoutePriceStatus } from '../../../hooks/Swap';
|
|
3
|
+
export declare function TokenPairPriceWithToggle({ toToken, fromToken, priceStatus, pricePerToToken, pricePerFromToken, }: {
|
|
4
|
+
toToken: TokenInfo | null;
|
|
5
|
+
fromToken: TokenInfo | null;
|
|
6
|
+
priceStatus: RoutePriceStatus;
|
|
7
|
+
pricePerToToken: number | null;
|
|
8
|
+
pricePerFromToken: number | null;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TokenInfo } from '../../hooks/Token/type';
|
|
3
|
+
import { GetAutoSlippage } from '../../hooks/setting/useSetAutoSlippage';
|
|
4
|
+
export interface SwapProps {
|
|
5
|
+
showPreviewInfoCard?: boolean;
|
|
6
|
+
slippageQuickInput?: boolean;
|
|
7
|
+
/** Higher priority setting slippage */
|
|
8
|
+
getAutoSlippage?: GetAutoSlippage;
|
|
9
|
+
onPayTokenChange?: (token: TokenInfo) => void;
|
|
10
|
+
onReceiveTokenChange?: (token: TokenInfo) => void;
|
|
11
|
+
Header?: (props: {
|
|
12
|
+
isBridge?: boolean;
|
|
13
|
+
onClickSetting: () => void;
|
|
14
|
+
}) => ReactElement | null;
|
|
15
|
+
switchDefualtPrimary?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function Swap({ showPreviewInfoCard, slippageQuickInput, Header, switchDefualtPrimary, getAutoSlippage, onPayTokenChange, onReceiveTokenChange, }?: SwapProps): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
/**
|
|
3
|
+
* Text type Switch button: supports On and Off states
|
|
4
|
+
* @param param0
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function TextSwitch({ checked, onChange, sx, disabled, defualtPrimary, }: {
|
|
8
|
+
sx?: BoxProps['sx'];
|
|
9
|
+
checked: boolean;
|
|
10
|
+
onChange: (v: boolean) => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
defualtPrimary?: boolean;
|
|
13
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function TokenItem({ chainId, address, showName, size, offset, rightContent, }: {
|
|
3
|
+
chainId: number;
|
|
4
|
+
address: string;
|
|
5
|
+
showName: string;
|
|
6
|
+
size: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
rightContent?: React.ReactNode;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { TokenInfo } from '../hooks/Token';
|
|
4
|
+
export interface TokenLogoProps {
|
|
5
|
+
address?: string;
|
|
6
|
+
token?: TokenInfo;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
marginRight?: number;
|
|
10
|
+
url?: string;
|
|
11
|
+
zIndex?: number;
|
|
12
|
+
cross?: boolean;
|
|
13
|
+
sx?: BoxProps['sx'];
|
|
14
|
+
chainId?: number;
|
|
15
|
+
noShowChain?: boolean;
|
|
16
|
+
noBorder?: boolean;
|
|
17
|
+
chainSize?: number;
|
|
18
|
+
logoOffset?: number;
|
|
19
|
+
}
|
|
20
|
+
export default function TokenLogo({ width, height, marginRight, url, zIndex, cross, address: addressProps, token: tokenProps, sx, chainId: chainIdProp, noShowChain, noBorder, chainSize, logoOffset: logoOffsetProps, }: TokenLogoProps): React.ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
export interface TokenLogoPairProps {
|
|
3
|
+
tokens: Array<{
|
|
4
|
+
address?: string;
|
|
5
|
+
logoURI?: string;
|
|
6
|
+
} | string>;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
gap?: number;
|
|
10
|
+
cross?: boolean;
|
|
11
|
+
mr?: number;
|
|
12
|
+
chainId?: number;
|
|
13
|
+
showChainLogo?: boolean;
|
|
14
|
+
sx?: BoxProps['sx'];
|
|
15
|
+
}
|
|
16
|
+
export declare function TokenLogoPair({ tokens, width, height, gap, cross, mr, chainId, showChainLogo: showChainLogoProps, sx, }: TokenLogoPairProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param param0
|
|
5
|
+
* @returns
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
export default function TokenLogoSimple({ address, url, symbol, width, height, marginRight, zIndex, sx, onLoadedLogoUrl, }: {
|
|
9
|
+
address: string | undefined;
|
|
10
|
+
url: string;
|
|
11
|
+
symbol?: string;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
marginRight?: number;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
sx?: BoxProps['sx'];
|
|
17
|
+
onLoadedLogoUrl?: (isLoaded: boolean) => void;
|
|
18
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps } from '@dodoex/components';
|
|
2
|
+
import { useTokenStatus } from '../hooks/Token/useTokenStatus';
|
|
3
|
+
export default function TokenPairStatusButton({ statuses, children, buttonProps, }: React.PropsWithChildren<{
|
|
4
|
+
statuses: Array<ReturnType<typeof useTokenStatus>>;
|
|
5
|
+
buttonProps?: ButtonProps;
|
|
6
|
+
}>): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { TokenInfo } from './../../hooks/Token';
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
export default function TokenItem({ token, disabled, style, balance: balanceBigNumber, onClick, }: {
|
|
5
|
+
token: TokenInfo;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
balance?: BigNumber;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TokenSearchLoadingSkelton(): JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import type { TokenInfo } from '../../hooks/Token';
|
|
3
|
+
import { ChainId } from '@dodoex/api';
|
|
4
|
+
export interface TokenPickerProps {
|
|
5
|
+
chainId?: ChainId;
|
|
6
|
+
value?: TokenInfo | null | Array<TokenInfo>;
|
|
7
|
+
onChange: (token: TokenInfo | Array<TokenInfo>, isOccupied: boolean) => void;
|
|
8
|
+
/** token pair usage */
|
|
9
|
+
occupiedAddrs?: string[];
|
|
10
|
+
/** token pair usage */
|
|
11
|
+
occupiedChainId?: ChainId;
|
|
12
|
+
/** hide props */
|
|
13
|
+
hiddenAddrs?: string[];
|
|
14
|
+
/** only show props */
|
|
15
|
+
showAddrs?: string[];
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
side?: 'from' | 'to';
|
|
18
|
+
defaultLoadBalance?: boolean;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
searchPlaceholder?: string;
|
|
21
|
+
/** like search pool address */
|
|
22
|
+
searchOtherAddress?: (address: string) => Promise<JSX.Element | null>;
|
|
23
|
+
sx?: BoxProps['sx'];
|
|
24
|
+
}
|
|
25
|
+
export default function TokenPicker({ chainId, value, onChange, occupiedAddrs, occupiedChainId, hiddenAddrs, showAddrs, visible, side, defaultLoadBalance, multiple, searchPlaceholder, searchOtherAddress, sx, }: TokenPickerProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TokenInfo } from '../hooks/Token/type';
|
|
2
|
+
import { ChainId } from '@dodoex/api';
|
|
3
|
+
export default function TokenSelect({ token, chainId: chainIdProps, showChainLogo, readonly, showChainName: showChainNameProps, logoSize, chainLogoSize, side, occupiedToken, defaultLoadBalance, notTokenPickerModal, border, px, py, highlightDefault, onTokenClick, onTokenChange, }: {
|
|
4
|
+
token?: TokenInfo | null;
|
|
5
|
+
chainId?: ChainId;
|
|
6
|
+
showChainLogo?: boolean;
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
showChainName?: boolean;
|
|
9
|
+
logoSize?: number;
|
|
10
|
+
chainLogoSize?: number;
|
|
11
|
+
side?: TokenInfo['side'];
|
|
12
|
+
occupiedToken?: TokenInfo;
|
|
13
|
+
defaultLoadBalance?: boolean;
|
|
14
|
+
notTokenPickerModal?: boolean;
|
|
15
|
+
border?: boolean;
|
|
16
|
+
px?: number;
|
|
17
|
+
py?: number;
|
|
18
|
+
highlightDefault?: boolean;
|
|
19
|
+
onTokenClick?: () => void;
|
|
20
|
+
onTokenChange?: (token: TokenInfo, isOccupied: boolean) => void;
|
|
21
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps } from '@dodoex/components';
|
|
2
|
+
import { useTokenStatus } from '../hooks/Token/useTokenStatus';
|
|
3
|
+
export default function TokenStatusButton({ status, children, buttonProps, }: React.PropsWithChildren<{
|
|
4
|
+
status: ReturnType<typeof useTokenStatus>;
|
|
5
|
+
buttonProps?: ButtonProps;
|
|
6
|
+
}>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as QuestionTooltip } from './QuestionTooltip';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetProps } from './Widget';
|
|
3
|
+
export declare const UserOptionsContext: React.Context<WidgetProps | null>;
|
|
4
|
+
type UserOptionsProviderProps = React.PropsWithChildren<WidgetProps>;
|
|
5
|
+
export declare function UserOptionsProvider({ children, ...props }: UserOptionsProviderProps): JSX.Element;
|
|
6
|
+
export declare function useUserOptions<T = WidgetProps>(selector?: (state: WidgetProps) => T): T;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ChainId, ContractRequests, GraphQLRequests } from '@dodoex/api';
|
|
2
|
+
import { EmptyDataIcon, PaletteMode, ThemeOptions } from '@dodoex/components';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
import { APIServices } from '../../constants/api';
|
|
5
|
+
import { SupportedLang } from '../../constants/locales';
|
|
6
|
+
import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
|
|
7
|
+
import { ExecutionProps } from '../../hooks/Submission';
|
|
8
|
+
import { DefaultTokenInfo, TokenInfo } from '../../hooks/Token/type';
|
|
9
|
+
import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
|
|
10
|
+
import { ConfirmProps } from '../Confirm';
|
|
11
|
+
import { DialogProps } from '../Swap/components/Dialog';
|
|
12
|
+
import { Page } from '../../router';
|
|
13
|
+
import { ExecutionCtx } from '../../hooks/Submission/types';
|
|
14
|
+
import { TokenPickerDialogProps } from '../Swap/components/TokenCard/TokenPickerDialog';
|
|
15
|
+
export declare const WIDGET_CLASS_NAME = "dodo-widget-container";
|
|
16
|
+
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps {
|
|
17
|
+
apikey?: string;
|
|
18
|
+
theme?: PartialDeep<ThemeOptions>;
|
|
19
|
+
colorMode?: PaletteMode;
|
|
20
|
+
defaultChainId?: ChainId;
|
|
21
|
+
width?: string | number;
|
|
22
|
+
height?: string | number;
|
|
23
|
+
feeRate?: number;
|
|
24
|
+
rebateTo?: string;
|
|
25
|
+
defaultFromToken?: DefaultTokenInfo;
|
|
26
|
+
defaultToToken?: DefaultTokenInfo;
|
|
27
|
+
locale?: SupportedLang;
|
|
28
|
+
swapSlippage?: number | null;
|
|
29
|
+
bridgeSlippage?: number | null;
|
|
30
|
+
apiServices?: Partial<APIServices>;
|
|
31
|
+
crossChain?: boolean;
|
|
32
|
+
noPowerBy?: boolean;
|
|
33
|
+
noDocumentLink?: boolean;
|
|
34
|
+
onlyChainId?: ChainId;
|
|
35
|
+
supportChainIds?: number[];
|
|
36
|
+
noUI?: boolean;
|
|
37
|
+
noLangProvider?: boolean;
|
|
38
|
+
noAutoConnect?: boolean;
|
|
39
|
+
routerPage?: Page;
|
|
40
|
+
dappMetadata?: {
|
|
41
|
+
name: string;
|
|
42
|
+
logoUrl?: string;
|
|
43
|
+
};
|
|
44
|
+
notSupportPMM?: boolean;
|
|
45
|
+
supportAMMV2?: boolean;
|
|
46
|
+
supportAMMV3?: boolean;
|
|
47
|
+
executionDialogExtra?: any;
|
|
48
|
+
/** When the winding status changes, no pop-up window will be displayed. */
|
|
49
|
+
noSubmissionDialog?: boolean;
|
|
50
|
+
showSubmissionSubmittedDialog?: boolean;
|
|
51
|
+
onProviderChanged?: (provider?: any) => void;
|
|
52
|
+
getStaticJsonRpcProviderByChainId?: Exclude<ConstructorParameters<typeof ContractRequests>[0], undefined>['getProvider'];
|
|
53
|
+
widgetRef?: React.RefObject<HTMLDivElement>;
|
|
54
|
+
/** If true is returned, the default wallet connection logic will not be executed */
|
|
55
|
+
onConnectWalletClick?: () => boolean | Promise<boolean>;
|
|
56
|
+
onSwitchChain?: (chainId?: ChainId) => Promise<boolean>;
|
|
57
|
+
/** When the token balance is insufficient, users can purchase or swap callbacks */
|
|
58
|
+
gotoBuyToken?: (params: {
|
|
59
|
+
token: TokenInfo;
|
|
60
|
+
account: string;
|
|
61
|
+
}) => void;
|
|
62
|
+
getTokenLogoUrl?: (params: {
|
|
63
|
+
address?: string;
|
|
64
|
+
width?: number;
|
|
65
|
+
height?: number;
|
|
66
|
+
url?: string;
|
|
67
|
+
chainId?: number;
|
|
68
|
+
}) => string;
|
|
69
|
+
onSharePool?: (share: {
|
|
70
|
+
chainId: number;
|
|
71
|
+
baseToken?: {
|
|
72
|
+
address: string;
|
|
73
|
+
symbol: string;
|
|
74
|
+
};
|
|
75
|
+
quoteToken?: {
|
|
76
|
+
address: string;
|
|
77
|
+
symbol: string;
|
|
78
|
+
};
|
|
79
|
+
poolId: string;
|
|
80
|
+
apy?: {
|
|
81
|
+
miningBaseApy?: any;
|
|
82
|
+
miningQuoteApy?: any;
|
|
83
|
+
transactionBaseApy?: any;
|
|
84
|
+
transactionQuoteApy?: any;
|
|
85
|
+
} | null;
|
|
86
|
+
isSingle?: boolean;
|
|
87
|
+
}) => void;
|
|
88
|
+
graphQLRequests?: GraphQLRequests;
|
|
89
|
+
ConfirmComponent?: React.FunctionComponent<ConfirmProps>;
|
|
90
|
+
DialogComponent?: React.FunctionComponent<DialogProps>;
|
|
91
|
+
EmptyDataIcon?: React.FunctionComponent<Parameters<typeof EmptyDataIcon>[0]>;
|
|
92
|
+
TokenPickerDialog?: React.FunctionComponent<TokenPickerDialogProps>;
|
|
93
|
+
/** Default deadLine when it cannot be set. Unit: seconds */
|
|
94
|
+
deadLine?: number;
|
|
95
|
+
submission?: ExecutionCtx;
|
|
96
|
+
}
|
|
97
|
+
export { LangProvider } from '../../providers/i18n';
|
|
98
|
+
export { default as Message } from '../Message';
|
|
99
|
+
/** Widgets that do not directly import themes and queryClient libraries */
|
|
100
|
+
export declare function UnstyleWidget(props: PropsWithChildren<WidgetProps>): JSX.Element;
|
|
101
|
+
export declare function Widget(props: PropsWithChildren<WidgetProps>): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function WidgetConfirm({ open, onClose, title, children, singleBtn, danger, singleBtnText, cancelText, confirmText, disabledConfirm, confirmLoading, isManualClose, onConfirm, }: React.PropsWithChildren<{
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
singleBtn?: boolean;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
singleBtnText?: React.ReactNode;
|
|
9
|
+
cancelText?: React.ReactNode;
|
|
10
|
+
confirmText?: React.ReactNode;
|
|
11
|
+
disabledConfirm?: boolean;
|
|
12
|
+
confirmLoading?: boolean;
|
|
13
|
+
isManualClose?: boolean;
|
|
14
|
+
onConfirm?: () => void;
|
|
15
|
+
}>): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const WIDGET_MODULE_CLASS_NAME = "widget-module-container";
|
|
4
|
+
declare const WidgetContainer: React.ForwardRefExoticComponent<Pick<BoxProps, "key" | "nonce" | "id" | "onChange" | "children" | "p" | "slot" | "style" | "title" | "height" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "component" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default WidgetContainer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface WidgetDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
afterClose?: () => void;
|
|
5
|
+
title?: string | React.ReactNode;
|
|
6
|
+
titleCenter?: boolean;
|
|
7
|
+
rightSlot?: React.ReactNode;
|
|
8
|
+
canBack?: boolean;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
testId?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function WidgetDialog({ open, onClose, afterClose, title, titleCenter, rightSlot, canBack, children, width, height, testId, }: WidgetDialogProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExecutionProps } from '../../hooks/Submission';
|
|
3
|
+
export default function WithExecutionDialog({ children, executionStatus, showSubmitLoadingDialog, executionDialogExtra, ...props }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
executionDialogExtra?: any;
|
|
6
|
+
} & ExecutionProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
display?: CSSProperties['display'];
|
|
4
|
+
hidden?: boolean;
|
|
5
|
+
children?: JSX.Element | Array<JSX.Element | undefined> | string | undefined;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export declare const Display: React.MemoExoticComponent<({ display, hidden, children, style, }: Props) => JSX.Element>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ISwtichBtn extends React.HTMLProps<HTMLInputElement> {
|
|
2
|
+
shouldSwitch?: boolean;
|
|
3
|
+
variant?: 'dark' | 'light';
|
|
4
|
+
}
|
|
5
|
+
export declare const TogglePriceIcon: ({ shouldSwitch, variant }: ISwtichBtn) => JSX.Element;
|
|
6
|
+
export declare const ToggleIconWithoutBg: () => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { BaseMinAndZoomMultiples } from './helper';
|
|
4
|
+
export declare const bgColor = "rgba(38, 39, 41, 0.3)";
|
|
5
|
+
export interface ColorMap {
|
|
6
|
+
grid?: string;
|
|
7
|
+
midPriceLine?: string;
|
|
8
|
+
leftBg?: (string | number)[];
|
|
9
|
+
leftLine?: string;
|
|
10
|
+
leftColor?: string;
|
|
11
|
+
rightBg?: (string | number)[];
|
|
12
|
+
rightLine?: string;
|
|
13
|
+
rightColor?: string;
|
|
14
|
+
tooltipBg?: string;
|
|
15
|
+
tooltipColor?: 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
|
+
baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
|
|
26
|
+
colorMap?: ColorMap;
|
|
27
|
+
setBaseMinAndZoomMultiples: React.Dispatch<React.SetStateAction<BaseMinAndZoomMultiples>>;
|
|
28
|
+
};
|
|
29
|
+
export declare function DepthChartKonva({ width, height, midPrice, pmmModel, params, baseTokenSymbol, quoteTokenSymbol, baseMinAndZoomMultiples, colorMap, setBaseMinAndZoomMultiples, }: Props): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|