@dodoex/widgets 2.6.6 → 3.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b3f16b2626f03378.svg +10 -0
- package/dist/cjs/b3f16b2626f03378.svg +10 -0
- package/dist/cjs/helper-889c5e9a.cjs +1 -0
- package/dist/cjs/index-256d5f78.cjs +12 -0
- package/dist/cjs/index-4190bae6.cjs +58 -0
- package/dist/cjs/index-457c65f3.cjs +78 -0
- package/dist/cjs/index.cjs +1 -45
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/cjs/lottie-edc8e0b8.cjs +1 -0
- package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -2
- package/dist/cjs/src/components/Confirm.d.ts +15 -0
- package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +2 -1
- package/dist/cjs/src/components/GoBack.d.ts +6 -0
- package/dist/cjs/src/components/HowItWorks.d.ts +11 -0
- package/dist/cjs/src/components/RiskDialog.d.ts +7 -0
- package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +1 -3
- package/dist/cjs/src/components/Swap/components/Dialog.d.ts +2 -1
- package/dist/cjs/src/components/Swap/components/TokenCard/BalanceText.d.ts +4 -2
- package/dist/cjs/src/components/Swap/components/TokenCard/NumberInput.d.ts +12 -9
- package/dist/cjs/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/cjs/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +4 -3
- package/dist/cjs/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +6 -1
- package/dist/cjs/src/components/Swap/components/TokenCard/index.d.ts +16 -3
- package/dist/cjs/src/components/Swap/index.d.ts +1 -3
- package/dist/cjs/src/components/Token/TokenItem.d.ts +9 -0
- package/dist/cjs/src/components/TokenLogo.d.ts +3 -1
- package/dist/cjs/src/components/TokenLogoPair.d.ts +3 -2
- package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +3 -1
- package/dist/cjs/src/components/TokenPicker/index.d.ts +8 -3
- package/dist/cjs/src/components/TokenStatusButton.d.ts +7 -0
- package/dist/cjs/src/components/Widget/index.d.ts +3 -1
- package/dist/cjs/src/components/WidgetConfirm.d.ts +15 -0
- package/dist/cjs/src/components/WidgetContainer.d.ts +3 -0
- package/dist/cjs/src/components/WidgetDialog.d.ts +15 -0
- package/dist/cjs/src/components/chart/components/BaseButton.d.ts +5 -0
- package/dist/cjs/src/components/chart/components/Display.d.ts +9 -0
- package/dist/cjs/src/components/chart/components/Input.d.ts +7 -0
- package/dist/cjs/src/components/chart/components/NumberInput.d.ts +6 -0
- package/dist/cjs/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
- package/dist/cjs/src/components/chart/components/TokenLogo.d.ts +5 -0
- package/dist/cjs/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
- package/dist/cjs/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/cjs/src/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/cjs/src/components/chart/depth-chart/index.d.ts +18 -0
- package/dist/cjs/src/components/chart/depth-chart/index.styled.d.ts +29 -0
- package/dist/cjs/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/cjs/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/cjs/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/cjs/src/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/cjs/src/components/chart/depth-chart-v2/index.d.ts +10 -0
- package/dist/cjs/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
- package/dist/cjs/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/cjs/src/components/chart/i18n.d.ts +1 -0
- package/dist/cjs/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
- package/dist/cjs/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/cjs/src/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/cjs/src/components/chart/liquidity-chart/index.d.ts +17 -0
- package/dist/cjs/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
- package/dist/cjs/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
- package/dist/cjs/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
- package/dist/cjs/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
- package/dist/cjs/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
- package/dist/cjs/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/cjs/src/components/chart/utils.d.ts +3 -0
- package/dist/cjs/src/constants/api.d.ts +5 -0
- package/dist/cjs/src/constants/chainList.d.ts +1 -0
- package/dist/cjs/src/constants/chains.d.ts +24 -31
- package/dist/cjs/src/constants/localstorage.d.ts +2 -0
- package/dist/cjs/src/constants/pool.d.ts +5 -0
- package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/cjs/src/hooks/Submission/types.d.ts +31 -2
- package/dist/cjs/src/hooks/Submission/useExecution.d.ts +3 -2
- package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
- package/dist/cjs/src/hooks/Token/useTokenList.d.ts +9 -3
- package/dist/cjs/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/cjs/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
- package/dist/cjs/src/hooks/Token/useTokenStatus.d.ts +4 -1
- package/dist/cjs/src/hooks/contract/index.d.ts +0 -2
- package/dist/cjs/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
- package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +4 -10
- package/dist/cjs/src/hooks/contract/wallet.d.ts +1 -1
- package/dist/cjs/src/index.d.ts +6 -0
- package/dist/cjs/src/providers/GlobalConfigContext.d.ts +14 -0
- package/dist/cjs/src/router/index.d.ts +2 -0
- package/dist/cjs/src/router/types.d.ts +17 -4
- package/dist/cjs/src/store/actions/token.d.ts +1 -8
- package/dist/cjs/src/store/actions/wallet.d.ts +2 -0
- package/dist/cjs/src/store/index.d.ts +7 -1
- package/dist/cjs/src/store/reducers/token.d.ts +0 -7
- package/dist/cjs/src/store/reducers/wallet.d.ts +4 -0
- package/dist/cjs/src/store/selectors/token.d.ts +0 -10
- package/dist/cjs/src/store/selectors/wallet.d.ts +5 -2
- package/dist/cjs/src/utils/address.d.ts +2 -2
- package/dist/cjs/src/utils/bytes.d.ts +3 -0
- package/dist/cjs/src/utils/formatter.d.ts +24 -1
- package/dist/cjs/src/utils/token.d.ts +21 -0
- package/dist/cjs/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
- package/dist/cjs/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
- package/dist/cjs/src/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/cjs/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
- package/dist/cjs/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
- package/dist/cjs/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
- package/dist/cjs/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/cjs/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
- package/dist/cjs/src/widgets/MiningWidget/types.d.ts +58 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +3 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +4 -1
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +4 -2
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +1 -1
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +3 -1
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +9 -3
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -2
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +8 -3
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
- package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +4 -7
- package/dist/helper-7cc29594.js +1 -0
- package/dist/index-ae19eed4.js +12 -0
- package/dist/index-d9d9a2cd.js +78 -0
- package/dist/index-db2c9b8f.js +58 -0
- package/dist/index.js +1 -45
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/lottie-f76894b7.js +1 -0
- package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -2
- package/dist/src/components/Confirm.d.ts +15 -0
- package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +2 -1
- package/dist/src/components/GoBack.d.ts +6 -0
- package/dist/src/components/HowItWorks.d.ts +11 -0
- package/dist/src/components/RiskDialog.d.ts +7 -0
- package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +1 -3
- package/dist/src/components/Swap/components/Dialog.d.ts +2 -1
- package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +4 -2
- package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +12 -9
- package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
- package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +4 -3
- package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +6 -1
- package/dist/src/components/Swap/components/TokenCard/index.d.ts +16 -3
- package/dist/src/components/Swap/index.d.ts +1 -3
- package/dist/src/components/Token/TokenItem.d.ts +9 -0
- package/dist/src/components/TokenLogo.d.ts +3 -1
- package/dist/src/components/TokenLogoPair.d.ts +3 -2
- package/dist/src/components/TokenPicker/TokenItem.d.ts +3 -1
- package/dist/src/components/TokenPicker/index.d.ts +8 -3
- package/dist/src/components/TokenStatusButton.d.ts +7 -0
- package/dist/src/components/Widget/index.d.ts +3 -1
- package/dist/src/components/WidgetConfirm.d.ts +15 -0
- package/dist/src/components/WidgetContainer.d.ts +3 -0
- package/dist/src/components/WidgetDialog.d.ts +15 -0
- package/dist/src/components/chart/components/BaseButton.d.ts +5 -0
- package/dist/src/components/chart/components/Display.d.ts +9 -0
- package/dist/src/components/chart/components/Input.d.ts +7 -0
- package/dist/src/components/chart/components/NumberInput.d.ts +6 -0
- package/dist/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
- package/dist/src/components/chart/components/TokenLogo.d.ts +5 -0
- package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
- package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
- package/dist/src/components/chart/depth-chart/helper.d.ts +125 -0
- package/dist/src/components/chart/depth-chart/index.d.ts +18 -0
- package/dist/src/components/chart/depth-chart/index.styled.d.ts +29 -0
- package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
- package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
- package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
- package/dist/src/components/chart/depth-chart/utils.d.ts +19 -0
- package/dist/src/components/chart/depth-chart-v2/index.d.ts +10 -0
- package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
- package/dist/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
- package/dist/src/components/chart/i18n.d.ts +1 -0
- package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
- package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
- package/dist/src/components/chart/liquidity-chart/helper.d.ts +47 -0
- package/dist/src/components/chart/liquidity-chart/index.d.ts +17 -0
- package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
- package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
- package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
- package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
- package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
- package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
- package/dist/src/components/chart/utils.d.ts +3 -0
- package/dist/src/constants/api.d.ts +5 -0
- package/dist/src/constants/chainList.d.ts +1 -0
- package/dist/src/constants/chains.d.ts +24 -31
- package/dist/src/constants/localstorage.d.ts +2 -0
- package/dist/src/constants/pool.d.ts +5 -0
- package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/src/hooks/Submission/types.d.ts +31 -2
- package/dist/src/hooks/Submission/useExecution.d.ts +3 -2
- package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
- package/dist/src/hooks/Token/useTokenList.d.ts +9 -3
- package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
- package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
- package/dist/src/hooks/Token/useTokenStatus.d.ts +4 -1
- package/dist/src/hooks/contract/index.d.ts +0 -2
- package/dist/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
- package/dist/src/hooks/contract/useFetchTokens.d.ts +4 -10
- package/dist/src/hooks/contract/wallet.d.ts +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/providers/GlobalConfigContext.d.ts +14 -0
- package/dist/src/router/index.d.ts +2 -0
- package/dist/src/router/types.d.ts +17 -4
- package/dist/src/store/actions/token.d.ts +1 -8
- package/dist/src/store/actions/wallet.d.ts +2 -0
- package/dist/src/store/index.d.ts +7 -1
- package/dist/src/store/reducers/token.d.ts +0 -7
- package/dist/src/store/reducers/wallet.d.ts +4 -0
- package/dist/src/store/selectors/token.d.ts +0 -10
- package/dist/src/store/selectors/wallet.d.ts +5 -2
- package/dist/src/utils/address.d.ts +2 -2
- package/dist/src/utils/bytes.d.ts +3 -0
- package/dist/src/utils/formatter.d.ts +24 -1
- package/dist/src/utils/token.d.ts +21 -0
- package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
- package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
- package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
- package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
- package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
- package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
- package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
- package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
- package/dist/src/widgets/MiningWidget/helper.d.ts +2 -0
- package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
- package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
- package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
- package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
- package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
- package/dist/src/widgets/MiningWidget/types.d.ts +58 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
- package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
- package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
- package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
- package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
- package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
- package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
- package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
- package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +3 -2
- package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +4 -1
- package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +4 -2
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +1 -1
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +3 -1
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +9 -3
- package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -2
- package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
- package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
- package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
- package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
- package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +8 -3
- package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
- package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
- package/dist/src/widgets/PoolWidget/utils.d.ts +4 -7
- package/package.json +12 -2
|
@@ -1 +1,21 @@
|
|
|
1
|
-
export default function useFetchETHBalance(chainId?: number):
|
|
1
|
+
export default function useFetchETHBalance(chainId?: number): import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
2
|
+
symbol: string;
|
|
3
|
+
address: string;
|
|
4
|
+
name: string;
|
|
5
|
+
decimals: number;
|
|
6
|
+
balance: import("bignumber.js").BigNumber;
|
|
7
|
+
allowance: import("bignumber.js").BigNumber;
|
|
8
|
+
account: string;
|
|
9
|
+
spender: string | undefined;
|
|
10
|
+
chainId: number;
|
|
11
|
+
} | {
|
|
12
|
+
address: string;
|
|
13
|
+
decimals: number;
|
|
14
|
+
symbol: string;
|
|
15
|
+
name: string;
|
|
16
|
+
balance: import("bignumber.js").BigNumber;
|
|
17
|
+
spender: string | undefined;
|
|
18
|
+
allowance: import("bignumber.js").BigNumber;
|
|
19
|
+
chainId: number;
|
|
20
|
+
account?: undefined;
|
|
21
|
+
} | null, Error>;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
1
|
import { TokenList } from '../Token';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
declare type TokenInfoMap = Map<string, {
|
|
5
4
|
balance: BigNumber;
|
|
6
5
|
allowance: BigNumber;
|
|
7
|
-
|
|
8
|
-
symbol?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
};
|
|
6
|
+
}>;
|
|
11
7
|
export default function useFetchTokens({ tokenList, addresses: addressesProps, blockNumber, chainId, skip, }: {
|
|
12
8
|
tokenList?: TokenList;
|
|
13
9
|
addresses?: string[];
|
|
14
10
|
blockNumber?: number;
|
|
15
11
|
chainId?: number;
|
|
16
12
|
skip?: boolean;
|
|
17
|
-
}):
|
|
18
|
-
data: TokenResult[] | undefined;
|
|
19
|
-
};
|
|
13
|
+
}): TokenInfoMap;
|
|
20
14
|
export {};
|
|
@@ -13,4 +13,4 @@ export declare enum WatchResult {
|
|
|
13
13
|
export declare const getEstimateGas: (params: any, provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
14
14
|
export declare const getGasPrice: (provider: JsonRpcProvider) => Promise<EthersBigNumber | null>;
|
|
15
15
|
export declare const sendTransaction: (params: Deferrable<TransactionRequest>, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
|
16
|
-
export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider
|
|
16
|
+
export declare const approve: (tokenAddress: string, accountAddress: string, contractAddress: string, allowance: BigNumber, provider: JsonRpcProvider) => Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,5 +2,11 @@
|
|
|
2
2
|
import { WidgetProps } from './components/Widget';
|
|
3
3
|
export declare type SwapWidgetProps = WidgetProps;
|
|
4
4
|
export type { TokenInfo } from './hooks/Token/type';
|
|
5
|
+
export { Swap } from './components/Swap';
|
|
6
|
+
export { Pool } from './widgets/PoolWidget';
|
|
7
|
+
export { default as PoolOperate } from './widgets/PoolWidget/PoolOperate';
|
|
8
|
+
export type { PoolOperateProps } from './widgets/PoolWidget/PoolOperate';
|
|
9
|
+
export declare function WidgetProvider({ children, ...props }: React.PropsWithChildren<WidgetProps>): void;
|
|
5
10
|
export declare function SwapWidget(props: SwapWidgetProps): JSX.Element;
|
|
11
|
+
export declare function PoolWidget(props: SwapWidgetProps): JSX.Element;
|
|
6
12
|
export declare function InitSwapWidget(props: SwapWidgetProps): void;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TokenInfo } from '../hooks/Token';
|
|
2
3
|
export interface GlobalFunctionConfig {
|
|
4
|
+
widgetRef?: React.RefObject<HTMLDivElement>;
|
|
3
5
|
/** If true is returned, the default wallet connection logic will not be executed */
|
|
4
6
|
onConnectWalletClick?: () => boolean | Promise<boolean>;
|
|
7
|
+
/** When the token balance is insufficient, users can purchase or swap callbacks */
|
|
8
|
+
gotoBuyToken?: (params: {
|
|
9
|
+
token: TokenInfo;
|
|
10
|
+
account: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
getTokenLogoUrl?: (params: {
|
|
13
|
+
address?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
url?: string;
|
|
17
|
+
chainId?: number;
|
|
18
|
+
}) => string;
|
|
5
19
|
}
|
|
6
20
|
export declare const GlobalConfigContext: import("react").Context<GlobalFunctionConfig>;
|
|
7
21
|
export declare const useGlobalConfig: () => GlobalFunctionConfig;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Page } from './types';
|
|
2
2
|
interface RouterState {
|
|
3
3
|
page?: Page;
|
|
4
|
+
historyList: Array<Page>;
|
|
4
5
|
push: (page: Page) => void;
|
|
6
|
+
back: () => void;
|
|
5
7
|
}
|
|
6
8
|
export declare const useRouterStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RouterState>>;
|
|
7
9
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ChainId } from '../constants/chains';
|
|
2
|
-
import { PoolTab } from '../widgets/PoolWidget/
|
|
2
|
+
import { PoolTab } from '../widgets/PoolWidget/PoolList/hooks/usePoolListTabs';
|
|
3
3
|
export declare enum PageType {
|
|
4
4
|
Pool = "pool",
|
|
5
5
|
PoolDetail = "poolDetail",
|
|
6
|
-
CreatePool = "createPool"
|
|
6
|
+
CreatePool = "createPool",
|
|
7
|
+
ModifyPool = "modifyPool",
|
|
8
|
+
MiningDetail = "miningDetail"
|
|
7
9
|
}
|
|
8
10
|
interface PageTypeParams {
|
|
9
11
|
[PageType.Pool]: {
|
|
@@ -13,10 +15,21 @@ interface PageTypeParams {
|
|
|
13
15
|
address: string;
|
|
14
16
|
chainId: ChainId;
|
|
15
17
|
};
|
|
16
|
-
[PageType.
|
|
18
|
+
[PageType.ModifyPool]: {
|
|
19
|
+
address: string;
|
|
20
|
+
chainId: ChainId;
|
|
21
|
+
};
|
|
22
|
+
[PageType.CreatePool]: {
|
|
23
|
+
fromAddress?: string;
|
|
24
|
+
toAddress?: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
[PageType.MiningDetail]: {
|
|
27
|
+
address: string;
|
|
28
|
+
chainId: ChainId;
|
|
29
|
+
};
|
|
17
30
|
}
|
|
18
31
|
export interface Page<T extends PageType = PageType> {
|
|
19
32
|
type: T;
|
|
20
|
-
params
|
|
33
|
+
params?: PageTypeParams[T];
|
|
21
34
|
}
|
|
22
35
|
export {};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
1
|
import { AppThunkAction } from '.';
|
|
3
2
|
import { TokenList, TokenInfo } from '../../hooks/Token';
|
|
4
|
-
import {
|
|
3
|
+
import { SlippageWithToken } from '../reducers/token';
|
|
5
4
|
export declare const setTokenList: (tokenList: TokenList) => AppThunkAction;
|
|
6
5
|
export declare const setPopularTokenList: (popularTokenList: TokenList) => AppThunkAction;
|
|
7
6
|
export declare const setSlippageWithTokens: (slippageWithTokens: SlippageWithToken[]) => AppThunkAction;
|
|
8
7
|
export declare const setDefaultFromToken: (token: TokenInfo) => AppThunkAction;
|
|
9
8
|
export declare const setDefaultToToken: (token: TokenInfo) => AppThunkAction;
|
|
10
|
-
export declare const setEthBalance: (chainId: number, balance: BigNumber) => AppThunkAction;
|
|
11
|
-
export declare const setTokenBalances: (accountBalances: AccountBalances) => AppThunkAction;
|
|
12
|
-
export declare const setTokenAllowances: (allowance: BigNumber) => AppThunkAction;
|
|
13
|
-
export declare const setBalanceLoadings: (balanceLoadings: {
|
|
14
|
-
[x: string]: boolean;
|
|
15
|
-
}) => AppThunkAction;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AppThunkAction } from '.';
|
|
2
2
|
import { ChainId } from '../../constants/chains';
|
|
3
|
+
import { State } from '../reducers/wallet';
|
|
3
4
|
export declare const setDefaultChainId: (chainId: ChainId) => AppThunkAction;
|
|
4
5
|
export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
5
6
|
export declare const setBlockNumber: (blockNumber: number) => AppThunkAction;
|
|
7
|
+
export declare const setOpenConnectWalletInfo: (openConnectWalletInfo: State['openConnectWalletInfo']) => AppThunkAction;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/** @ts-ignore */
|
|
1
2
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
2
3
|
settings: import("./reducers/settings").State;
|
|
3
4
|
wallet: import("./reducers/wallet").State;
|
|
4
5
|
token: import("./reducers/token").State;
|
|
5
6
|
globals: import("./reducers/globals").State;
|
|
6
|
-
}>, import("redux").AnyAction,
|
|
7
|
+
}>, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
8
|
+
settings: import("./reducers/settings").State;
|
|
9
|
+
wallet: import("./reducers/wallet").State;
|
|
10
|
+
token: import("./reducers/token").State;
|
|
11
|
+
globals: import("./reducers/globals").State;
|
|
12
|
+
}>, import("redux").AnyAction, undefined>]>;
|
|
@@ -15,13 +15,6 @@ export declare type SlippageWithToken = {
|
|
|
15
15
|
export declare type State = {
|
|
16
16
|
tokenList: TokenList;
|
|
17
17
|
popularTokenList: TokenList;
|
|
18
|
-
ethBalance: {
|
|
19
|
-
[key: number]: BigNumber;
|
|
20
|
-
};
|
|
21
|
-
accountBalances: AccountBalances;
|
|
22
|
-
balanceLoadings: {
|
|
23
|
-
[key in string]: boolean;
|
|
24
|
-
};
|
|
25
18
|
slippageWithTokens: SlippageWithToken[];
|
|
26
19
|
defaultFromToken?: DefaultTokenInfo;
|
|
27
20
|
defaultToToken?: DefaultTokenInfo;
|
|
@@ -4,6 +4,10 @@ export declare type State = {
|
|
|
4
4
|
chainId: ChainId;
|
|
5
5
|
fromTokenChainId?: ChainId;
|
|
6
6
|
latestBlockNumber: number;
|
|
7
|
+
openConnectWalletInfo: boolean | {
|
|
8
|
+
/** Wallet is connected, chainID needs to be switched */
|
|
9
|
+
chainId?: ChainId;
|
|
10
|
+
};
|
|
7
11
|
};
|
|
8
12
|
export declare const initialState: State;
|
|
9
13
|
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
1
|
import { ChainId } from '../../constants/chains';
|
|
3
2
|
import type { DefaultTokenInfo } from '../../hooks/Token';
|
|
4
3
|
import { RootState } from '../reducers';
|
|
@@ -6,14 +5,5 @@ export declare const getTokenList: (state?: RootState) => import("../../hooks/To
|
|
|
6
5
|
export declare const getAllTokenList: (state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
7
6
|
export declare const getPopularTokenList: (chainId: ChainId, state?: RootState) => import("../../hooks/Token").TokenInfo[];
|
|
8
7
|
export declare const getSlippageWithTokens: (state?: RootState) => import("../reducers/token").SlippageWithToken[];
|
|
9
|
-
export declare const getAccountBalances: (state?: RootState) => import("../reducers/token").AccountBalances;
|
|
10
|
-
export declare const getEthBalance: (state?: RootState) => {
|
|
11
|
-
[key: number]: BigNumber;
|
|
12
|
-
};
|
|
13
8
|
export declare const getDefaultFromToken: (state?: RootState) => DefaultTokenInfo | undefined;
|
|
14
9
|
export declare const getDefaultToToken: (state?: RootState) => DefaultTokenInfo | undefined;
|
|
15
|
-
export declare const getTokenBalance: (tokenAddress: string, state?: RootState) => BigNumber;
|
|
16
|
-
export declare const getTokenAllowance: (tokenAddress: string, state?: RootState) => void;
|
|
17
|
-
export declare const getBalanceLoadings: (state?: RootState) => {
|
|
18
|
-
[x: string]: boolean;
|
|
19
|
-
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getDefaultChainId: (state?: RootState) => import("
|
|
3
|
-
export declare const getFromTokenChainId: (state?: RootState) => import("
|
|
2
|
+
export declare const getDefaultChainId: (state?: RootState) => import("@dodoex/api").ChainId;
|
|
3
|
+
export declare const getFromTokenChainId: (state?: RootState) => import("@dodoex/api").ChainId | undefined;
|
|
4
4
|
export declare const getLatestBlockNumber: (state?: RootState) => number;
|
|
5
|
+
export declare const getOpenConnectWalletInfo: (state?: RootState) => boolean | {
|
|
6
|
+
chainId?: import("@dodoex/api").ChainId | undefined;
|
|
7
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChainId } from '../constants/chains';
|
|
2
2
|
export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
|
|
3
|
-
export declare function isAddress(value: any):
|
|
3
|
+
export declare function isAddress(value: any): boolean;
|
|
4
4
|
export declare function isETHAddress(addr: string): boolean;
|
|
5
5
|
/**
|
|
6
6
|
* Returns true if the string value is zero in hex
|
|
@@ -12,4 +12,4 @@ export default function isZero(hexNumberString: string): boolean;
|
|
|
12
12
|
* @param address pool address
|
|
13
13
|
*/
|
|
14
14
|
export declare function truncatePoolAddress(address: string): string;
|
|
15
|
-
export declare function getEtherscanPage(
|
|
15
|
+
export declare function getEtherscanPage(chainId: ChainId, id?: string | null, prefix?: string): string;
|
|
@@ -3,13 +3,14 @@ import { BigNumber } from 'bignumber.js';
|
|
|
3
3
|
* format to readable number, like: 0.00 -> 0, 1.00 -> 1, 1.235 -> 1.23, 1.230 -> 1.23
|
|
4
4
|
* @param input
|
|
5
5
|
*/
|
|
6
|
-
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, showIntegerOnly, showDecimalsOnly, noGroupSeparator, }: {
|
|
6
|
+
export declare function formatReadableNumber({ input, showDecimals, showPrecisionDecimals, showIntegerOnly, showDecimalsOnly, noGroupSeparator, roundingMode, }: {
|
|
7
7
|
input: BigNumber | number | string;
|
|
8
8
|
showDecimals?: number;
|
|
9
9
|
showIntegerOnly?: boolean;
|
|
10
10
|
showDecimalsOnly?: boolean;
|
|
11
11
|
showPrecisionDecimals?: number;
|
|
12
12
|
noGroupSeparator?: boolean;
|
|
13
|
+
roundingMode?: BigNumber.RoundingMode;
|
|
13
14
|
}): string;
|
|
14
15
|
export declare function formatTokenAmountNumber({ input, decimals, showPrecisionDecimals, noGroupSeparator, }: {
|
|
15
16
|
input?: BigNumber | number | string | null;
|
|
@@ -23,3 +24,25 @@ export declare const toWei: (amount: BigNumber | string | number, decimals: numb
|
|
|
23
24
|
export declare const byWei: (amount: BigNumber | string | number, decimals: number) => BigNumber;
|
|
24
25
|
export declare const getDecimalLimit: (decimals: number | undefined | null) => number;
|
|
25
26
|
export declare function getIntegerNumber(v: number): number;
|
|
27
|
+
/**
|
|
28
|
+
* format to short number, like: -0.12 -> 0, 0.0000123->0.000012, 123.234 -> 123.23, 1234.12 -> 1.23K, 1000000.123->1.00M
|
|
29
|
+
* @param n
|
|
30
|
+
*/
|
|
31
|
+
export declare function formatShortNumber(n?: BigNumber, showDecimals?: number): string;
|
|
32
|
+
export declare function formatExponentialNotation(n?: BigNumber): string;
|
|
33
|
+
/**
|
|
34
|
+
* format to percentage number
|
|
35
|
+
* @param param0 input number
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatPercentageNumber({ input, showDecimals,
|
|
38
|
+
/** The percentage is rounded by default. */
|
|
39
|
+
roundingMode, }: {
|
|
40
|
+
input?: BigNumber | string | number | null;
|
|
41
|
+
showDecimals?: number;
|
|
42
|
+
roundingMode?: BigNumber.RoundingMode;
|
|
43
|
+
}): string;
|
|
44
|
+
export declare const formatApy: (amount: BigNumber, showDecimals?: number) => string;
|
|
45
|
+
export declare function formatUnknownTokenSymbol(token?: {
|
|
46
|
+
symbol: string;
|
|
47
|
+
name: string;
|
|
48
|
+
} | null): string;
|
|
@@ -7,3 +7,24 @@ export declare const getSwapTxValue: ({ tokenAmount, tokenAddress, chainId, }: {
|
|
|
7
7
|
tokenAddress: string;
|
|
8
8
|
chainId: ChainId;
|
|
9
9
|
}) => string;
|
|
10
|
+
export declare function getTokenPairCompareText({ fromToken, toToken, fromFiatPrice, toFiatPrice, reverse, showDecimals, }: {
|
|
11
|
+
fromToken: TokenInfo | undefined;
|
|
12
|
+
toToken: TokenInfo | undefined;
|
|
13
|
+
fromFiatPrice: BigNumber | undefined;
|
|
14
|
+
toFiatPrice: BigNumber | undefined;
|
|
15
|
+
reverse?: boolean;
|
|
16
|
+
showDecimals?: number;
|
|
17
|
+
}): {
|
|
18
|
+
comparePrice: BigNumber | null;
|
|
19
|
+
comparePriceText: string;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare function getShowDecimals(decimals: string | number): 6 | 4;
|
|
23
|
+
export declare function convertFetchTokenToTokenInfo(token: {
|
|
24
|
+
id?: string | null;
|
|
25
|
+
address?: string | null;
|
|
26
|
+
symbol?: string | null;
|
|
27
|
+
name?: string | null;
|
|
28
|
+
decimals?: number | null;
|
|
29
|
+
logoImg?: string | null | undefined;
|
|
30
|
+
} | undefined | null, chainId: ChainId | number): TokenInfo | null | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import type { TokenInfo } from '../../../hooks/Token';
|
|
4
|
+
import { FetchMiningListItem } from '../types';
|
|
5
|
+
declare type Tokens = Array<TokenInfo & {
|
|
6
|
+
symbolEle?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function AssociatedMine({ chainId, loading, miningItem, miningContractAddress, stakedTokenUSD, miningTitle, associatedMineSectionShort, stakedTokenList, rewardTokenList, isEnded, }: {
|
|
9
|
+
chainId: number;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
miningItem: FetchMiningListItem;
|
|
12
|
+
miningContractAddress: string;
|
|
13
|
+
miningTitle: string | undefined;
|
|
14
|
+
associatedMineSectionShort?: boolean;
|
|
15
|
+
stakedTokenUSD: BigNumber | undefined;
|
|
16
|
+
stakedTokenList: Tokens;
|
|
17
|
+
rewardTokenList: Tokens;
|
|
18
|
+
isEnded?: boolean;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
import { FetchMiningListItem } from '../types';
|
|
4
|
+
export declare function RewardListCard({ miningItem, loading, sx, }: {
|
|
5
|
+
miningItem: FetchMiningListItem;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
sx?: BoxProps['sx'];
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FetchMiningListItem } from '../types';
|
|
3
|
+
import { usePoolBalanceInfo } from '../../PoolWidget/hooks/usePoolBalanceInfo';
|
|
4
|
+
export declare function StakeButton({ goLpLink, amount, miningItem, balanceInfo, }: {
|
|
5
|
+
amount: string;
|
|
6
|
+
miningItem: FetchMiningListItem;
|
|
7
|
+
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
|
+
goLpLink?: () => Promise<void> | void;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { FetchMiningListItem } from '../types';
|
|
4
|
+
export default function UnstakeButton({ amount, miningItem, overrideBalance, }: {
|
|
5
|
+
amount: string;
|
|
6
|
+
miningItem: FetchMiningListItem;
|
|
7
|
+
overrideBalance: BigNumber | undefined | null;
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FetchMiningListItem, OperateType } from '../types';
|
|
2
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export default function OperateArea({ chainId, status, loading, operateType, setOperateType, miningItem, associatedMineSectionVisible, goLpLink, }: {
|
|
5
|
+
chainId: number;
|
|
6
|
+
status: MiningStatusE;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
operateType: OperateType;
|
|
9
|
+
setOperateType: React.Dispatch<React.SetStateAction<OperateType>>;
|
|
10
|
+
miningItem: FetchMiningListItem;
|
|
11
|
+
associatedMineSectionVisible?: boolean;
|
|
12
|
+
goLpLink?: () => void;
|
|
13
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FetchMiningListItem } from '../types';
|
|
2
|
+
export declare const useClaimMiningSubmit: ({ miningItem, }: {
|
|
3
|
+
miningItem: FetchMiningListItem;
|
|
4
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FetchMiningListItem } from '../types';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
export declare function useRewardListAmount({ miningItem, }: {
|
|
4
|
+
miningItem: FetchMiningListItem;
|
|
5
|
+
}): {
|
|
6
|
+
data: {
|
|
7
|
+
amount: BigNumber | null | undefined;
|
|
8
|
+
address: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
decimals: number;
|
|
11
|
+
usdPrice: string;
|
|
12
|
+
}[];
|
|
13
|
+
pending: boolean;
|
|
14
|
+
error: boolean;
|
|
15
|
+
totalReward: BigNumber;
|
|
16
|
+
totalRewardUSD: BigNumber;
|
|
17
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FetchMiningListItem } from '../types';
|
|
2
|
+
export declare const useStakeMiningSubmit: ({ miningItem, amount, }: {
|
|
3
|
+
miningItem: FetchMiningListItem;
|
|
4
|
+
amount: string;
|
|
5
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MiningStatusE } from '@dodoex/api';
|
|
2
|
+
import { FetchMiningListItem } from '../types';
|
|
3
|
+
export declare function useStatusAndStartBlockNumber({ miningItem, }: {
|
|
4
|
+
miningItem: FetchMiningListItem;
|
|
5
|
+
}): {
|
|
6
|
+
status: MiningStatusE;
|
|
7
|
+
miningStatusList: {
|
|
8
|
+
status: MiningStatusE;
|
|
9
|
+
firstStartTime: import("bignumber.js").BigNumber | undefined;
|
|
10
|
+
lastEndTime: import("bignumber.js").BigNumber | undefined;
|
|
11
|
+
currentTime: import("bignumber.js").BigNumber;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FetchMiningListItem } from '../types';
|
|
2
|
+
export declare const useUnstakeMiningSubmit: ({ miningItem, amount, }: {
|
|
3
|
+
miningItem: FetchMiningListItem;
|
|
4
|
+
amount: string;
|
|
5
|
+
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ExcludeNone, MiningApi } from '@dodoex/api';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
export declare type FetchMiningList = ExcludeNone<ReturnType<Exclude<typeof MiningApi.graphql.fetchMiningList['__apiType'], undefined>>['mining_list']>['list'];
|
|
4
|
+
export declare type FetchMiningListItem = ExcludeNone<FetchMiningList>[0] | undefined;
|
|
5
|
+
export declare type OperateType = null | 'stake' | 'unstake' | 'claim';
|
|
6
|
+
export interface MiningTokenI {
|
|
7
|
+
address: string | undefined;
|
|
8
|
+
decimals: number | undefined;
|
|
9
|
+
symbol: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/** The original token corresponding to lptoken has a price */
|
|
12
|
+
export interface MiningERC20TokenI extends MiningTokenI {
|
|
13
|
+
usdPrice: BigNumber | undefined;
|
|
14
|
+
logoImg: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
/** lptoken, a token obtained by pledging the original token, has no price */
|
|
17
|
+
export interface MiningLpTokenI extends MiningTokenI {
|
|
18
|
+
}
|
|
19
|
+
/** Reward tokens */
|
|
20
|
+
export interface MiningRewardTokenI extends MiningERC20TokenI {
|
|
21
|
+
/**
|
|
22
|
+
* Block height when rewards start to be released: If not configured, it defaults to undefined and is considered to have ended.
|
|
23
|
+
*/
|
|
24
|
+
startBlock: BigNumber | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The timestamp corresponding to the block height when rewards start to be released; unit: seconds
|
|
27
|
+
*/
|
|
28
|
+
startTime: BigNumber | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Block height released after reward ends: If not configured, it defaults to undefined and is considered to have ended.
|
|
31
|
+
*/
|
|
32
|
+
endBlock: BigNumber | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The timestamp corresponding to the block height released after the reward ends; unit: seconds
|
|
35
|
+
*/
|
|
36
|
+
endTime: BigNumber | undefined;
|
|
37
|
+
/** The number of rewards released per block */
|
|
38
|
+
rewardPerBlock: BigNumber | undefined;
|
|
39
|
+
/** The apy returned by the interface is inaccurate and not timely. It is only used for initial rendering and subsequent front-end calculations */
|
|
40
|
+
initialApr: BigNumber | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* One mining project may correspond to multiple mining contracts. For example, classic mining bilateral pledge can obtain respective lpToken and then pledge them into different mining contracts. This mining project is equivalent to two mining projects, 1 to 2 , but the front end needs to be displayed on a card
|
|
44
|
+
*
|
|
45
|
+
* Avoid using identifiers such as base or quote in the data structure, and use array records to record this kind of 1-to-2 mining.
|
|
46
|
+
*/
|
|
47
|
+
export interface MiningMiningI {
|
|
48
|
+
/** lpToken.address-miningContractAddress */
|
|
49
|
+
id: string;
|
|
50
|
+
sourceToken: Array<MiningERC20TokenI>;
|
|
51
|
+
lpToken: MiningLpTokenI;
|
|
52
|
+
/** Mining contract: one mining contract corresponds to one lptoken */
|
|
53
|
+
miningContractAddress: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The v2 version has only one reward token; v3 may have multiple;
|
|
56
|
+
*/
|
|
57
|
+
rewardTokenList: MiningRewardTokenI[];
|
|
58
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StateProps } from '../reducer';
|
|
3
|
+
export default function ConfirmInfoDialog({ on, onClose, state, onConfirm, isModify, loading, }: {
|
|
4
|
+
on: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
state: StateProps;
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
isModify?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PMMModel, PmmModelParams } from '@dodoex/api';
|
|
3
|
+
import { BigNumber } from 'bignumber.js';
|
|
4
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
5
|
+
export default function DepthAndLiquidityChart({ baseToken, quoteToken, pmmParams, pmmModel, midPrice, }: {
|
|
6
|
+
baseToken: TokenInfo | null;
|
|
7
|
+
quoteToken: TokenInfo | null;
|
|
8
|
+
pmmParams?: PmmModelParams;
|
|
9
|
+
pmmModel?: PMMModel;
|
|
10
|
+
midPrice?: BigNumber;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StateProps } from '../reducer';
|
|
3
|
+
export declare function DepthChartWrapper({ selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, baseAmount, quoteAmount, }: {
|
|
4
|
+
selectedVersion: StateProps['selectedVersion'];
|
|
5
|
+
baseToken: StateProps['baseToken'];
|
|
6
|
+
quoteToken: StateProps['quoteToken'];
|
|
7
|
+
initPrice: StateProps['initPrice'];
|
|
8
|
+
slippageCoefficient: StateProps['slippageCoefficient'];
|
|
9
|
+
baseAmount: StateProps['baseAmount'];
|
|
10
|
+
quoteAmount: StateProps['quoteAmount'];
|
|
11
|
+
}): JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StateProps } from '../reducer';
|
|
3
|
+
import { SectionStatusT } from '../types';
|
|
4
|
+
export declare function LqSettingsShow({ status, selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, baseAmount, quoteAmount, }: {
|
|
5
|
+
status: SectionStatusT;
|
|
6
|
+
selectedVersion: StateProps['selectedVersion'];
|
|
7
|
+
baseToken: StateProps['baseToken'];
|
|
8
|
+
quoteToken: StateProps['quoteToken'];
|
|
9
|
+
initPrice: StateProps['initPrice'];
|
|
10
|
+
slippageCoefficient: StateProps['slippageCoefficient'];
|
|
11
|
+
baseAmount: StateProps['baseAmount'];
|
|
12
|
+
quoteAmount: StateProps['quoteAmount'];
|
|
13
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from '@dodoex/components';
|
|
3
|
+
export default function RadioButton({ title, subTitle, description, selected, onClick, children, sx, titleSx, }: {
|
|
4
|
+
title: string;
|
|
5
|
+
subTitle?: React.ReactNode;
|
|
6
|
+
description: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
sx?: BoxProps['sx'];
|
|
11
|
+
titleSx?: BoxProps['sx'];
|
|
12
|
+
}): JSX.Element;
|