@dodoex/widgets 2.6.7 → 3.0.0-beta.1
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/failed-list-e6c1e563-7122998d.cjs +1 -0
- package/dist/cjs/helper-889c5e9a.cjs +1 -0
- package/dist/cjs/index-183743c8.cjs +45 -0
- package/dist/cjs/index-1904ef51.cjs +50 -0
- package/dist/cjs/index-19cf4c6e.cjs +50 -0
- package/dist/cjs/index-1a21b21a.cjs +45 -0
- package/dist/cjs/index-246a9973.cjs +50 -0
- package/dist/cjs/index-256d5f78.cjs +12 -0
- package/dist/cjs/index-39149ce7.cjs +45 -0
- package/dist/cjs/index-4190bae6.cjs +58 -0
- package/dist/cjs/index-457c65f3.cjs +78 -0
- package/dist/cjs/index-5eca89d2.cjs +50 -0
- package/dist/cjs/index-64af8ffd.cjs +45 -0
- package/dist/cjs/index-f2a80623.cjs +45 -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-01f67a00.cjs +1 -0
- package/dist/cjs/lottie-09dbe581.cjs +1 -0
- package/dist/cjs/lottie-2035df95.cjs +1 -0
- package/dist/cjs/lottie-7e742196.cjs +1 -0
- package/dist/cjs/lottie-924a2436.cjs +1 -0
- package/dist/cjs/lottie-b9cf6aee.cjs +1 -0
- package/dist/cjs/lottie-c4b6404b.cjs +1 -0
- package/dist/cjs/lottie-ed4f1473.cjs +1 -0
- package/dist/cjs/lottie-edc8e0b8.cjs +1 -0
- package/dist/cjs/lottie-f516f300.cjs +1 -0
- package/dist/cjs/no-found-89a3b4af-9c7e1488.cjs +1 -0
- package/dist/cjs/no-result-01c60834-3e379801.cjs +1 -0
- package/dist/cjs/src/components/AddressWithLinkAndCopy.d.ts +22 -0
- package/dist/cjs/src/components/AutoButton.d.ts +7 -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/ConnectWalletDialog.d.ts +5 -0
- package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
- package/dist/cjs/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/cjs/src/components/CopyTooltipToast.d.ts +9 -0
- package/dist/cjs/src/components/DataCard/DataCardGroup.d.ts +9 -0
- package/dist/cjs/src/components/Dialog.d.ts +1 -0
- 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/List/EmptyList.d.ts +7 -0
- package/dist/cjs/src/components/List/FailedList.d.ts +6 -0
- package/dist/cjs/src/components/RiskDialog.d.ts +7 -0
- package/dist/cjs/src/components/SelectChain.d.ts +12 -0
- package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +2 -4
- 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/SwitchChainDialog/index.d.ts +1 -1
- 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 +17 -0
- package/dist/cjs/src/components/TokenLogoSimple.d.ts +13 -0
- package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +3 -1
- package/dist/cjs/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
- package/dist/cjs/src/components/TokenPicker/index.d.ts +9 -4
- package/dist/cjs/src/components/TokenStatusButton.d.ts +7 -0
- package/dist/cjs/src/components/Widget/index.d.ts +4 -2
- 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 -1
- package/dist/cjs/src/constants/chainList.d.ts +2 -1
- package/dist/cjs/src/constants/chains.d.ts +24 -31
- package/dist/cjs/src/constants/localstorage.d.ts +3 -1
- package/dist/cjs/src/constants/pool.d.ts +7 -0
- package/dist/cjs/src/constants/sessionStorage.d.ts +2 -0
- package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/cjs/src/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/cjs/src/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/cjs/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
- package/dist/cjs/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
- package/dist/cjs/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
- package/dist/cjs/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
- package/dist/cjs/src/hooks/ConnectWallet/web3.d.ts +1 -1
- package/dist/cjs/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
- package/dist/cjs/src/hooks/Submission/types.d.ts +31 -2
- package/dist/cjs/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
- 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 +10 -4
- 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 +20 -0
- package/dist/cjs/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
- 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/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/cjs/src/hooks/usePrevious.d.ts +1 -0
- package/dist/cjs/src/index.d.ts +6 -0
- package/dist/cjs/src/providers/GlobalConfigContext.d.ts +21 -0
- package/dist/cjs/src/providers/i18n.d.ts +9 -0
- package/dist/cjs/src/providers/queryClient/index.d.ts +2 -0
- package/dist/cjs/src/providers/queryClient.d.ts +2 -0
- package/dist/cjs/src/router/index.d.ts +9 -0
- package/dist/cjs/src/router/types.d.ts +35 -0
- package/dist/cjs/src/store/actions/token.d.ts +1 -8
- package/dist/cjs/src/store/actions/wallet.d.ts +3 -1
- 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 +5 -1
- package/dist/cjs/src/store/selectors/token.d.ts +1 -11
- package/dist/cjs/src/store/selectors/wallet.d.ts +5 -2
- package/dist/cjs/src/utils/address.d.ts +3 -3
- package/dist/cjs/src/utils/bytes.d.ts +3 -0
- package/dist/cjs/src/utils/chains.d.ts +1 -1
- package/dist/cjs/src/utils/formatter.d.ts +24 -1
- package/dist/cjs/src/utils/token.d.ts +22 -1
- package/dist/cjs/src/utils/utils.d.ts +1 -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 +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -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 +46 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
- package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
- 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 +48 -0
- 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/index.d.ts +2 -0
- package/dist/cjs/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/cjs/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
- package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +17 -0
- package/dist/failed-list-e6c1e563-478d73e0.js +1 -0
- package/dist/helper-7cc29594.js +1 -0
- package/dist/index-0e954ab8.js +45 -0
- package/dist/index-41db7f0e.js +45 -0
- package/dist/index-ae19eed4.js +12 -0
- package/dist/index-b07aac90.js +45 -0
- package/dist/index-c1a581ca.js +50 -0
- package/dist/index-c9dbe645.js +50 -0
- package/dist/index-cdf23d80.js +50 -0
- package/dist/index-d9d9a2cd.js +78 -0
- package/dist/index-db2c9b8f.js +58 -0
- package/dist/index-e58d24e5.js +50 -0
- package/dist/index-ee546021.js +45 -0
- package/dist/index-f055c418.js +45 -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-0a7cf033.js +1 -0
- package/dist/lottie-449d7c9a.js +1 -0
- package/dist/lottie-48250155.js +1 -0
- package/dist/lottie-9678ebc9.js +1 -0
- package/dist/lottie-9b618308.js +1 -0
- package/dist/lottie-b4708423.js +1 -0
- package/dist/lottie-baaed8fa.js +1 -0
- package/dist/lottie-d6631244.js +1 -0
- package/dist/lottie-ed5a9dfd.js +1 -0
- package/dist/lottie-f76894b7.js +1 -0
- package/dist/no-found-89a3b4af-763d58f5.js +1 -0
- package/dist/no-result-01c60834-7921d2fa.js +1 -0
- package/dist/src/components/AddressWithLinkAndCopy.d.ts +22 -0
- package/dist/src/components/AutoButton.d.ts +7 -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/ConnectWalletDialog.d.ts +5 -0
- package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
- package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
- package/dist/src/components/CopyTooltipToast.d.ts +9 -0
- package/dist/src/components/DataCard/DataCardGroup.d.ts +9 -0
- package/dist/src/components/Dialog.d.ts +1 -0
- package/dist/src/components/GoBack.d.ts +6 -0
- package/dist/src/components/HowItWorks.d.ts +11 -0
- package/dist/src/components/List/EmptyList.d.ts +7 -0
- package/dist/src/components/List/FailedList.d.ts +6 -0
- package/dist/src/components/RiskDialog.d.ts +7 -0
- package/dist/src/components/SelectChain.d.ts +12 -0
- package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +2 -4
- 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/SwitchChainDialog/index.d.ts +1 -1
- 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 +17 -0
- package/dist/src/components/TokenLogoSimple.d.ts +13 -0
- package/dist/src/components/TokenPicker/TokenItem.d.ts +3 -1
- package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
- package/dist/src/components/TokenPicker/index.d.ts +9 -4
- package/dist/src/components/TokenStatusButton.d.ts +7 -0
- package/dist/src/components/Widget/index.d.ts +4 -2
- 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 -1
- package/dist/src/constants/chainList.d.ts +2 -1
- package/dist/src/constants/chains.d.ts +24 -31
- package/dist/src/constants/localstorage.d.ts +3 -1
- package/dist/src/constants/pool.d.ts +7 -0
- package/dist/src/constants/sessionStorage.d.ts +2 -0
- package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
- package/dist/src/hooks/Chain/useChainList.d.ts +2 -0
- package/dist/src/hooks/Chain/useChainList.test.d.ts +1 -0
- package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
- package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
- package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
- package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
- package/dist/src/hooks/ConnectWallet/web3.d.ts +1 -1
- package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
- package/dist/src/hooks/Submission/types.d.ts +31 -2
- package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
- 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 +10 -4
- 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 +20 -0
- package/dist/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
- 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/hooks/style/useWidgetDevice.d.ts +6 -0
- package/dist/src/hooks/usePrevious.d.ts +1 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/providers/GlobalConfigContext.d.ts +21 -0
- package/dist/src/providers/i18n.d.ts +9 -0
- package/dist/src/providers/queryClient/index.d.ts +2 -0
- package/dist/src/providers/queryClient.d.ts +2 -0
- package/dist/src/router/index.d.ts +9 -0
- package/dist/src/router/types.d.ts +35 -0
- package/dist/src/store/actions/token.d.ts +1 -8
- package/dist/src/store/actions/wallet.d.ts +3 -1
- 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 +5 -1
- package/dist/src/store/selectors/token.d.ts +1 -11
- package/dist/src/store/selectors/wallet.d.ts +5 -2
- package/dist/src/utils/address.d.ts +3 -3
- package/dist/src/utils/bytes.d.ts +3 -0
- package/dist/src/utils/chains.d.ts +1 -1
- package/dist/src/utils/formatter.d.ts +24 -1
- package/dist/src/utils/token.d.ts +22 -1
- package/dist/src/utils/utils.d.ts +1 -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 +9 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -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 +46 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
- package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
- 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 +48 -0
- 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/index.d.ts +2 -0
- package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
- package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
- package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
- package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
- package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
- package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
- package/dist/src/widgets/PoolWidget/utils.d.ts +17 -0
- package/package.json +12 -2
- package/dist/cjs/tokenList-ee5e15c8.cjs +0 -1
- package/dist/tokenList-4ef211de.js +0 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export declare function usePoolDashboard({ address, chainId, }: {
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
chainId: ChainId | undefined;
|
|
5
|
+
}): {
|
|
6
|
+
dashboard: {
|
|
7
|
+
fee?: string | null | undefined;
|
|
8
|
+
volume?: string | null | undefined;
|
|
9
|
+
totalFee?: string | null | undefined;
|
|
10
|
+
totalVolume?: string | null | undefined;
|
|
11
|
+
tvl?: string | null | undefined;
|
|
12
|
+
turnover?: string | null | undefined;
|
|
13
|
+
liquidity?: string | null | undefined;
|
|
14
|
+
baseReserve?: string | null | undefined;
|
|
15
|
+
quoteReserve?: string | null | undefined;
|
|
16
|
+
baseVolume?: string | null | undefined;
|
|
17
|
+
quoteVolume?: string | null | undefined;
|
|
18
|
+
basePrice?: string | null | undefined;
|
|
19
|
+
quotePrice?: string | null | undefined;
|
|
20
|
+
price?: string | null | undefined;
|
|
21
|
+
baseFee?: string | null | undefined;
|
|
22
|
+
quoteFee?: string | null | undefined;
|
|
23
|
+
pair?: string | null | undefined;
|
|
24
|
+
poolType?: string | null | undefined;
|
|
25
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
26
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
27
|
+
baseAddress?: string | null | undefined;
|
|
28
|
+
baseSymbol?: string | null | undefined;
|
|
29
|
+
quoteAddress?: string | null | undefined;
|
|
30
|
+
quoteSymbol?: string | null | undefined;
|
|
31
|
+
network?: string | null | undefined;
|
|
32
|
+
pairAddress?: string | null | undefined;
|
|
33
|
+
txes?: number | null | undefined;
|
|
34
|
+
txesNear24h?: number | null | undefined;
|
|
35
|
+
txUsers?: number | null | undefined;
|
|
36
|
+
txUserNear24h?: number | null | undefined;
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery;
|
|
39
|
+
error: Error;
|
|
40
|
+
isError: true;
|
|
41
|
+
isPending: false;
|
|
42
|
+
isLoading: false;
|
|
43
|
+
isLoadingError: false;
|
|
44
|
+
isRefetchError: true;
|
|
45
|
+
isSuccess: false;
|
|
46
|
+
status: "error";
|
|
47
|
+
dataUpdatedAt: number;
|
|
48
|
+
errorUpdatedAt: number;
|
|
49
|
+
failureCount: number;
|
|
50
|
+
failureReason: Error | null;
|
|
51
|
+
errorUpdateCount: number;
|
|
52
|
+
isFetched: boolean;
|
|
53
|
+
isFetchedAfterMount: boolean;
|
|
54
|
+
isFetching: boolean;
|
|
55
|
+
isInitialLoading: boolean;
|
|
56
|
+
isPaused: boolean;
|
|
57
|
+
isPlaceholderData: boolean;
|
|
58
|
+
isRefetching: boolean;
|
|
59
|
+
isStale: boolean;
|
|
60
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
61
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
62
|
+
} | {
|
|
63
|
+
dashboard: {
|
|
64
|
+
fee?: string | null | undefined;
|
|
65
|
+
volume?: string | null | undefined;
|
|
66
|
+
totalFee?: string | null | undefined;
|
|
67
|
+
totalVolume?: string | null | undefined;
|
|
68
|
+
tvl?: string | null | undefined;
|
|
69
|
+
turnover?: string | null | undefined;
|
|
70
|
+
liquidity?: string | null | undefined;
|
|
71
|
+
baseReserve?: string | null | undefined;
|
|
72
|
+
quoteReserve?: string | null | undefined;
|
|
73
|
+
baseVolume?: string | null | undefined;
|
|
74
|
+
quoteVolume?: string | null | undefined;
|
|
75
|
+
basePrice?: string | null | undefined;
|
|
76
|
+
quotePrice?: string | null | undefined;
|
|
77
|
+
price?: string | null | undefined;
|
|
78
|
+
baseFee?: string | null | undefined;
|
|
79
|
+
quoteFee?: string | null | undefined;
|
|
80
|
+
pair?: string | null | undefined;
|
|
81
|
+
poolType?: string | null | undefined;
|
|
82
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
83
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
84
|
+
baseAddress?: string | null | undefined;
|
|
85
|
+
baseSymbol?: string | null | undefined;
|
|
86
|
+
quoteAddress?: string | null | undefined;
|
|
87
|
+
quoteSymbol?: string | null | undefined;
|
|
88
|
+
network?: string | null | undefined;
|
|
89
|
+
pairAddress?: string | null | undefined;
|
|
90
|
+
txes?: number | null | undefined;
|
|
91
|
+
txesNear24h?: number | null | undefined;
|
|
92
|
+
txUsers?: number | null | undefined;
|
|
93
|
+
txUserNear24h?: number | null | undefined;
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery;
|
|
96
|
+
error: null;
|
|
97
|
+
isError: false;
|
|
98
|
+
isPending: false;
|
|
99
|
+
isLoading: false;
|
|
100
|
+
isLoadingError: false;
|
|
101
|
+
isRefetchError: false;
|
|
102
|
+
isSuccess: true;
|
|
103
|
+
status: "success";
|
|
104
|
+
dataUpdatedAt: number;
|
|
105
|
+
errorUpdatedAt: number;
|
|
106
|
+
failureCount: number;
|
|
107
|
+
failureReason: Error | null;
|
|
108
|
+
errorUpdateCount: number;
|
|
109
|
+
isFetched: boolean;
|
|
110
|
+
isFetchedAfterMount: boolean;
|
|
111
|
+
isFetching: boolean;
|
|
112
|
+
isInitialLoading: boolean;
|
|
113
|
+
isPaused: boolean;
|
|
114
|
+
isPlaceholderData: boolean;
|
|
115
|
+
isRefetching: boolean;
|
|
116
|
+
isStale: boolean;
|
|
117
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
118
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
119
|
+
} | {
|
|
120
|
+
dashboard: {
|
|
121
|
+
fee?: string | null | undefined;
|
|
122
|
+
volume?: string | null | undefined;
|
|
123
|
+
totalFee?: string | null | undefined;
|
|
124
|
+
totalVolume?: string | null | undefined;
|
|
125
|
+
tvl?: string | null | undefined;
|
|
126
|
+
turnover?: string | null | undefined;
|
|
127
|
+
liquidity?: string | null | undefined;
|
|
128
|
+
baseReserve?: string | null | undefined;
|
|
129
|
+
quoteReserve?: string | null | undefined;
|
|
130
|
+
baseVolume?: string | null | undefined;
|
|
131
|
+
quoteVolume?: string | null | undefined;
|
|
132
|
+
basePrice?: string | null | undefined;
|
|
133
|
+
quotePrice?: string | null | undefined;
|
|
134
|
+
price?: string | null | undefined;
|
|
135
|
+
baseFee?: string | null | undefined;
|
|
136
|
+
quoteFee?: string | null | undefined;
|
|
137
|
+
pair?: string | null | undefined;
|
|
138
|
+
poolType?: string | null | undefined;
|
|
139
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
140
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
141
|
+
baseAddress?: string | null | undefined;
|
|
142
|
+
baseSymbol?: string | null | undefined;
|
|
143
|
+
quoteAddress?: string | null | undefined;
|
|
144
|
+
quoteSymbol?: string | null | undefined;
|
|
145
|
+
network?: string | null | undefined;
|
|
146
|
+
pairAddress?: string | null | undefined;
|
|
147
|
+
txes?: number | null | undefined;
|
|
148
|
+
txesNear24h?: number | null | undefined;
|
|
149
|
+
txUsers?: number | null | undefined;
|
|
150
|
+
txUserNear24h?: number | null | undefined;
|
|
151
|
+
} | null | undefined;
|
|
152
|
+
data: undefined;
|
|
153
|
+
error: Error;
|
|
154
|
+
isError: true;
|
|
155
|
+
isPending: false;
|
|
156
|
+
isLoading: false;
|
|
157
|
+
isLoadingError: true;
|
|
158
|
+
isRefetchError: false;
|
|
159
|
+
isSuccess: false;
|
|
160
|
+
status: "error";
|
|
161
|
+
dataUpdatedAt: number;
|
|
162
|
+
errorUpdatedAt: number;
|
|
163
|
+
failureCount: number;
|
|
164
|
+
failureReason: Error | null;
|
|
165
|
+
errorUpdateCount: number;
|
|
166
|
+
isFetched: boolean;
|
|
167
|
+
isFetchedAfterMount: boolean;
|
|
168
|
+
isFetching: boolean;
|
|
169
|
+
isInitialLoading: boolean;
|
|
170
|
+
isPaused: boolean;
|
|
171
|
+
isPlaceholderData: boolean;
|
|
172
|
+
isRefetching: boolean;
|
|
173
|
+
isStale: boolean;
|
|
174
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
175
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
176
|
+
} | {
|
|
177
|
+
dashboard: {
|
|
178
|
+
fee?: string | null | undefined;
|
|
179
|
+
volume?: string | null | undefined;
|
|
180
|
+
totalFee?: string | null | undefined;
|
|
181
|
+
totalVolume?: string | null | undefined;
|
|
182
|
+
tvl?: string | null | undefined;
|
|
183
|
+
turnover?: string | null | undefined;
|
|
184
|
+
liquidity?: string | null | undefined;
|
|
185
|
+
baseReserve?: string | null | undefined;
|
|
186
|
+
quoteReserve?: string | null | undefined;
|
|
187
|
+
baseVolume?: string | null | undefined;
|
|
188
|
+
quoteVolume?: string | null | undefined;
|
|
189
|
+
basePrice?: string | null | undefined;
|
|
190
|
+
quotePrice?: string | null | undefined;
|
|
191
|
+
price?: string | null | undefined;
|
|
192
|
+
baseFee?: string | null | undefined;
|
|
193
|
+
quoteFee?: string | null | undefined;
|
|
194
|
+
pair?: string | null | undefined;
|
|
195
|
+
poolType?: string | null | undefined;
|
|
196
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
197
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
198
|
+
baseAddress?: string | null | undefined;
|
|
199
|
+
baseSymbol?: string | null | undefined;
|
|
200
|
+
quoteAddress?: string | null | undefined;
|
|
201
|
+
quoteSymbol?: string | null | undefined;
|
|
202
|
+
network?: string | null | undefined;
|
|
203
|
+
pairAddress?: string | null | undefined;
|
|
204
|
+
txes?: number | null | undefined;
|
|
205
|
+
txesNear24h?: number | null | undefined;
|
|
206
|
+
txUsers?: number | null | undefined;
|
|
207
|
+
txUserNear24h?: number | null | undefined;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
data: undefined;
|
|
210
|
+
error: null;
|
|
211
|
+
isError: false;
|
|
212
|
+
isPending: true;
|
|
213
|
+
isLoading: true;
|
|
214
|
+
isLoadingError: false;
|
|
215
|
+
isRefetchError: false;
|
|
216
|
+
isSuccess: false;
|
|
217
|
+
status: "pending";
|
|
218
|
+
dataUpdatedAt: number;
|
|
219
|
+
errorUpdatedAt: number;
|
|
220
|
+
failureCount: number;
|
|
221
|
+
failureReason: Error | null;
|
|
222
|
+
errorUpdateCount: number;
|
|
223
|
+
isFetched: boolean;
|
|
224
|
+
isFetchedAfterMount: boolean;
|
|
225
|
+
isFetching: boolean;
|
|
226
|
+
isInitialLoading: boolean;
|
|
227
|
+
isPaused: boolean;
|
|
228
|
+
isPlaceholderData: boolean;
|
|
229
|
+
isRefetching: boolean;
|
|
230
|
+
isStale: boolean;
|
|
231
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
232
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
233
|
+
} | {
|
|
234
|
+
dashboard: {
|
|
235
|
+
fee?: string | null | undefined;
|
|
236
|
+
volume?: string | null | undefined;
|
|
237
|
+
totalFee?: string | null | undefined;
|
|
238
|
+
totalVolume?: string | null | undefined;
|
|
239
|
+
tvl?: string | null | undefined;
|
|
240
|
+
turnover?: string | null | undefined;
|
|
241
|
+
liquidity?: string | null | undefined;
|
|
242
|
+
baseReserve?: string | null | undefined;
|
|
243
|
+
quoteReserve?: string | null | undefined;
|
|
244
|
+
baseVolume?: string | null | undefined;
|
|
245
|
+
quoteVolume?: string | null | undefined;
|
|
246
|
+
basePrice?: string | null | undefined;
|
|
247
|
+
quotePrice?: string | null | undefined;
|
|
248
|
+
price?: string | null | undefined;
|
|
249
|
+
baseFee?: string | null | undefined;
|
|
250
|
+
quoteFee?: string | null | undefined;
|
|
251
|
+
pair?: string | null | undefined;
|
|
252
|
+
poolType?: string | null | undefined;
|
|
253
|
+
baseVolumeCumulative?: string | null | undefined;
|
|
254
|
+
quoteVolumeCumulative?: string | null | undefined;
|
|
255
|
+
baseAddress?: string | null | undefined;
|
|
256
|
+
baseSymbol?: string | null | undefined;
|
|
257
|
+
quoteAddress?: string | null | undefined;
|
|
258
|
+
quoteSymbol?: string | null | undefined;
|
|
259
|
+
network?: string | null | undefined;
|
|
260
|
+
pairAddress?: string | null | undefined;
|
|
261
|
+
txes?: number | null | undefined;
|
|
262
|
+
txesNear24h?: number | null | undefined;
|
|
263
|
+
txUsers?: number | null | undefined;
|
|
264
|
+
txUserNear24h?: number | null | undefined;
|
|
265
|
+
} | null | undefined;
|
|
266
|
+
data: undefined;
|
|
267
|
+
error: null;
|
|
268
|
+
isError: false;
|
|
269
|
+
isPending: true;
|
|
270
|
+
isLoadingError: false;
|
|
271
|
+
isRefetchError: false;
|
|
272
|
+
isSuccess: false;
|
|
273
|
+
status: "pending";
|
|
274
|
+
dataUpdatedAt: number;
|
|
275
|
+
errorUpdatedAt: number;
|
|
276
|
+
failureCount: number;
|
|
277
|
+
failureReason: Error | null;
|
|
278
|
+
errorUpdateCount: number;
|
|
279
|
+
isFetched: boolean;
|
|
280
|
+
isFetchedAfterMount: boolean;
|
|
281
|
+
isFetching: boolean;
|
|
282
|
+
isLoading: boolean;
|
|
283
|
+
isInitialLoading: boolean;
|
|
284
|
+
isPaused: boolean;
|
|
285
|
+
isPlaceholderData: boolean;
|
|
286
|
+
isRefetching: boolean;
|
|
287
|
+
isStale: boolean;
|
|
288
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDashboardQuery, Error>>;
|
|
289
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
290
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export declare function usePoolDayData({ address, chainId, day, }: {
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
chainId: ChainId | undefined;
|
|
5
|
+
day?: number;
|
|
6
|
+
}): {
|
|
7
|
+
dayDataList: {
|
|
8
|
+
volume: number;
|
|
9
|
+
fee: number;
|
|
10
|
+
traders: number;
|
|
11
|
+
date: number;
|
|
12
|
+
tvl: number;
|
|
13
|
+
}[];
|
|
14
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery;
|
|
15
|
+
error: Error;
|
|
16
|
+
isError: true;
|
|
17
|
+
isPending: false;
|
|
18
|
+
isLoading: false;
|
|
19
|
+
isLoadingError: false;
|
|
20
|
+
isRefetchError: true;
|
|
21
|
+
isSuccess: false;
|
|
22
|
+
status: "error";
|
|
23
|
+
dataUpdatedAt: number;
|
|
24
|
+
errorUpdatedAt: number;
|
|
25
|
+
failureCount: number;
|
|
26
|
+
failureReason: Error | null;
|
|
27
|
+
errorUpdateCount: number;
|
|
28
|
+
isFetched: boolean;
|
|
29
|
+
isFetchedAfterMount: boolean;
|
|
30
|
+
isFetching: boolean;
|
|
31
|
+
isInitialLoading: boolean;
|
|
32
|
+
isPaused: boolean;
|
|
33
|
+
isPlaceholderData: boolean;
|
|
34
|
+
isRefetching: boolean;
|
|
35
|
+
isStale: boolean;
|
|
36
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
37
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
38
|
+
} | {
|
|
39
|
+
dayDataList: {
|
|
40
|
+
volume: number;
|
|
41
|
+
fee: number;
|
|
42
|
+
traders: number;
|
|
43
|
+
date: number;
|
|
44
|
+
tvl: number;
|
|
45
|
+
}[];
|
|
46
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery;
|
|
47
|
+
error: null;
|
|
48
|
+
isError: false;
|
|
49
|
+
isPending: false;
|
|
50
|
+
isLoading: false;
|
|
51
|
+
isLoadingError: false;
|
|
52
|
+
isRefetchError: false;
|
|
53
|
+
isSuccess: true;
|
|
54
|
+
status: "success";
|
|
55
|
+
dataUpdatedAt: number;
|
|
56
|
+
errorUpdatedAt: number;
|
|
57
|
+
failureCount: number;
|
|
58
|
+
failureReason: Error | null;
|
|
59
|
+
errorUpdateCount: number;
|
|
60
|
+
isFetched: boolean;
|
|
61
|
+
isFetchedAfterMount: boolean;
|
|
62
|
+
isFetching: boolean;
|
|
63
|
+
isInitialLoading: boolean;
|
|
64
|
+
isPaused: boolean;
|
|
65
|
+
isPlaceholderData: boolean;
|
|
66
|
+
isRefetching: boolean;
|
|
67
|
+
isStale: boolean;
|
|
68
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
69
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
70
|
+
} | {
|
|
71
|
+
dayDataList: {
|
|
72
|
+
volume: number;
|
|
73
|
+
fee: number;
|
|
74
|
+
traders: number;
|
|
75
|
+
date: number;
|
|
76
|
+
tvl: number;
|
|
77
|
+
}[];
|
|
78
|
+
data: undefined;
|
|
79
|
+
error: Error;
|
|
80
|
+
isError: true;
|
|
81
|
+
isPending: false;
|
|
82
|
+
isLoading: false;
|
|
83
|
+
isLoadingError: true;
|
|
84
|
+
isRefetchError: false;
|
|
85
|
+
isSuccess: false;
|
|
86
|
+
status: "error";
|
|
87
|
+
dataUpdatedAt: number;
|
|
88
|
+
errorUpdatedAt: number;
|
|
89
|
+
failureCount: number;
|
|
90
|
+
failureReason: Error | null;
|
|
91
|
+
errorUpdateCount: number;
|
|
92
|
+
isFetched: boolean;
|
|
93
|
+
isFetchedAfterMount: boolean;
|
|
94
|
+
isFetching: boolean;
|
|
95
|
+
isInitialLoading: boolean;
|
|
96
|
+
isPaused: boolean;
|
|
97
|
+
isPlaceholderData: boolean;
|
|
98
|
+
isRefetching: boolean;
|
|
99
|
+
isStale: boolean;
|
|
100
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
101
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
102
|
+
} | {
|
|
103
|
+
dayDataList: {
|
|
104
|
+
volume: number;
|
|
105
|
+
fee: number;
|
|
106
|
+
traders: number;
|
|
107
|
+
date: number;
|
|
108
|
+
tvl: number;
|
|
109
|
+
}[];
|
|
110
|
+
data: undefined;
|
|
111
|
+
error: null;
|
|
112
|
+
isError: false;
|
|
113
|
+
isPending: true;
|
|
114
|
+
isLoading: true;
|
|
115
|
+
isLoadingError: false;
|
|
116
|
+
isRefetchError: false;
|
|
117
|
+
isSuccess: false;
|
|
118
|
+
status: "pending";
|
|
119
|
+
dataUpdatedAt: number;
|
|
120
|
+
errorUpdatedAt: number;
|
|
121
|
+
failureCount: number;
|
|
122
|
+
failureReason: Error | null;
|
|
123
|
+
errorUpdateCount: number;
|
|
124
|
+
isFetched: boolean;
|
|
125
|
+
isFetchedAfterMount: boolean;
|
|
126
|
+
isFetching: boolean;
|
|
127
|
+
isInitialLoading: boolean;
|
|
128
|
+
isPaused: boolean;
|
|
129
|
+
isPlaceholderData: boolean;
|
|
130
|
+
isRefetching: boolean;
|
|
131
|
+
isStale: boolean;
|
|
132
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
133
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
134
|
+
} | {
|
|
135
|
+
dayDataList: {
|
|
136
|
+
volume: number;
|
|
137
|
+
fee: number;
|
|
138
|
+
traders: number;
|
|
139
|
+
date: number;
|
|
140
|
+
tvl: number;
|
|
141
|
+
}[];
|
|
142
|
+
data: undefined;
|
|
143
|
+
error: null;
|
|
144
|
+
isError: false;
|
|
145
|
+
isPending: true;
|
|
146
|
+
isLoadingError: false;
|
|
147
|
+
isRefetchError: false;
|
|
148
|
+
isSuccess: false;
|
|
149
|
+
status: "pending";
|
|
150
|
+
dataUpdatedAt: number;
|
|
151
|
+
errorUpdatedAt: number;
|
|
152
|
+
failureCount: number;
|
|
153
|
+
failureReason: Error | null;
|
|
154
|
+
errorUpdateCount: number;
|
|
155
|
+
isFetched: boolean;
|
|
156
|
+
isFetchedAfterMount: boolean;
|
|
157
|
+
isFetching: boolean;
|
|
158
|
+
isLoading: boolean;
|
|
159
|
+
isInitialLoading: boolean;
|
|
160
|
+
isPaused: boolean;
|
|
161
|
+
isPlaceholderData: boolean;
|
|
162
|
+
isRefetching: boolean;
|
|
163
|
+
isStale: boolean;
|
|
164
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolDayDataQuery, Error>>;
|
|
165
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
166
|
+
};
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
export declare function usePoolSwapList({ chainId, address, first, }: {
|
|
2
|
+
chainId: number | undefined;
|
|
3
|
+
address: string | undefined;
|
|
4
|
+
first?: number;
|
|
5
|
+
}): {
|
|
6
|
+
swapList: {
|
|
7
|
+
id: string;
|
|
8
|
+
timestamp: any;
|
|
9
|
+
from: any;
|
|
10
|
+
baseVolume: any;
|
|
11
|
+
quoteVolume: any;
|
|
12
|
+
feeBase: any;
|
|
13
|
+
feeQuote: any;
|
|
14
|
+
amountIn: any;
|
|
15
|
+
amountOut: any;
|
|
16
|
+
fromToken: {
|
|
17
|
+
id: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
name: string;
|
|
20
|
+
decimals: any;
|
|
21
|
+
};
|
|
22
|
+
toToken: {
|
|
23
|
+
id: string;
|
|
24
|
+
symbol: string;
|
|
25
|
+
name: string;
|
|
26
|
+
decimals: any;
|
|
27
|
+
};
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery;
|
|
30
|
+
error: Error;
|
|
31
|
+
isError: true;
|
|
32
|
+
isPending: false;
|
|
33
|
+
isLoading: false;
|
|
34
|
+
isLoadingError: false;
|
|
35
|
+
isRefetchError: true;
|
|
36
|
+
isSuccess: false;
|
|
37
|
+
status: "error";
|
|
38
|
+
dataUpdatedAt: number;
|
|
39
|
+
errorUpdatedAt: number;
|
|
40
|
+
failureCount: number;
|
|
41
|
+
failureReason: Error | null;
|
|
42
|
+
errorUpdateCount: number;
|
|
43
|
+
isFetched: boolean;
|
|
44
|
+
isFetchedAfterMount: boolean;
|
|
45
|
+
isFetching: boolean;
|
|
46
|
+
isInitialLoading: boolean;
|
|
47
|
+
isPaused: boolean;
|
|
48
|
+
isPlaceholderData: boolean;
|
|
49
|
+
isRefetching: boolean;
|
|
50
|
+
isStale: boolean;
|
|
51
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
52
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
53
|
+
} | {
|
|
54
|
+
swapList: {
|
|
55
|
+
id: string;
|
|
56
|
+
timestamp: any;
|
|
57
|
+
from: any;
|
|
58
|
+
baseVolume: any;
|
|
59
|
+
quoteVolume: any;
|
|
60
|
+
feeBase: any;
|
|
61
|
+
feeQuote: any;
|
|
62
|
+
amountIn: any;
|
|
63
|
+
amountOut: any;
|
|
64
|
+
fromToken: {
|
|
65
|
+
id: string;
|
|
66
|
+
symbol: string;
|
|
67
|
+
name: string;
|
|
68
|
+
decimals: any;
|
|
69
|
+
};
|
|
70
|
+
toToken: {
|
|
71
|
+
id: string;
|
|
72
|
+
symbol: string;
|
|
73
|
+
name: string;
|
|
74
|
+
decimals: any;
|
|
75
|
+
};
|
|
76
|
+
}[] | undefined;
|
|
77
|
+
data: import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery;
|
|
78
|
+
error: null;
|
|
79
|
+
isError: false;
|
|
80
|
+
isPending: false;
|
|
81
|
+
isLoading: false;
|
|
82
|
+
isLoadingError: false;
|
|
83
|
+
isRefetchError: false;
|
|
84
|
+
isSuccess: true;
|
|
85
|
+
status: "success";
|
|
86
|
+
dataUpdatedAt: number;
|
|
87
|
+
errorUpdatedAt: number;
|
|
88
|
+
failureCount: number;
|
|
89
|
+
failureReason: Error | null;
|
|
90
|
+
errorUpdateCount: number;
|
|
91
|
+
isFetched: boolean;
|
|
92
|
+
isFetchedAfterMount: boolean;
|
|
93
|
+
isFetching: boolean;
|
|
94
|
+
isInitialLoading: boolean;
|
|
95
|
+
isPaused: boolean;
|
|
96
|
+
isPlaceholderData: boolean;
|
|
97
|
+
isRefetching: boolean;
|
|
98
|
+
isStale: boolean;
|
|
99
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
100
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
101
|
+
} | {
|
|
102
|
+
swapList: {
|
|
103
|
+
id: string;
|
|
104
|
+
timestamp: any;
|
|
105
|
+
from: any;
|
|
106
|
+
baseVolume: any;
|
|
107
|
+
quoteVolume: any;
|
|
108
|
+
feeBase: any;
|
|
109
|
+
feeQuote: any;
|
|
110
|
+
amountIn: any;
|
|
111
|
+
amountOut: any;
|
|
112
|
+
fromToken: {
|
|
113
|
+
id: string;
|
|
114
|
+
symbol: string;
|
|
115
|
+
name: string;
|
|
116
|
+
decimals: any;
|
|
117
|
+
};
|
|
118
|
+
toToken: {
|
|
119
|
+
id: string;
|
|
120
|
+
symbol: string;
|
|
121
|
+
name: string;
|
|
122
|
+
decimals: any;
|
|
123
|
+
};
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
data: undefined;
|
|
126
|
+
error: Error;
|
|
127
|
+
isError: true;
|
|
128
|
+
isPending: false;
|
|
129
|
+
isLoading: false;
|
|
130
|
+
isLoadingError: true;
|
|
131
|
+
isRefetchError: false;
|
|
132
|
+
isSuccess: false;
|
|
133
|
+
status: "error";
|
|
134
|
+
dataUpdatedAt: number;
|
|
135
|
+
errorUpdatedAt: number;
|
|
136
|
+
failureCount: number;
|
|
137
|
+
failureReason: Error | null;
|
|
138
|
+
errorUpdateCount: number;
|
|
139
|
+
isFetched: boolean;
|
|
140
|
+
isFetchedAfterMount: boolean;
|
|
141
|
+
isFetching: boolean;
|
|
142
|
+
isInitialLoading: boolean;
|
|
143
|
+
isPaused: boolean;
|
|
144
|
+
isPlaceholderData: boolean;
|
|
145
|
+
isRefetching: boolean;
|
|
146
|
+
isStale: boolean;
|
|
147
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
148
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
149
|
+
} | {
|
|
150
|
+
swapList: {
|
|
151
|
+
id: string;
|
|
152
|
+
timestamp: any;
|
|
153
|
+
from: any;
|
|
154
|
+
baseVolume: any;
|
|
155
|
+
quoteVolume: any;
|
|
156
|
+
feeBase: any;
|
|
157
|
+
feeQuote: any;
|
|
158
|
+
amountIn: any;
|
|
159
|
+
amountOut: any;
|
|
160
|
+
fromToken: {
|
|
161
|
+
id: string;
|
|
162
|
+
symbol: string;
|
|
163
|
+
name: string;
|
|
164
|
+
decimals: any;
|
|
165
|
+
};
|
|
166
|
+
toToken: {
|
|
167
|
+
id: string;
|
|
168
|
+
symbol: string;
|
|
169
|
+
name: string;
|
|
170
|
+
decimals: any;
|
|
171
|
+
};
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
data: undefined;
|
|
174
|
+
error: null;
|
|
175
|
+
isError: false;
|
|
176
|
+
isPending: true;
|
|
177
|
+
isLoading: true;
|
|
178
|
+
isLoadingError: false;
|
|
179
|
+
isRefetchError: false;
|
|
180
|
+
isSuccess: false;
|
|
181
|
+
status: "pending";
|
|
182
|
+
dataUpdatedAt: number;
|
|
183
|
+
errorUpdatedAt: number;
|
|
184
|
+
failureCount: number;
|
|
185
|
+
failureReason: Error | null;
|
|
186
|
+
errorUpdateCount: number;
|
|
187
|
+
isFetched: boolean;
|
|
188
|
+
isFetchedAfterMount: boolean;
|
|
189
|
+
isFetching: boolean;
|
|
190
|
+
isInitialLoading: boolean;
|
|
191
|
+
isPaused: boolean;
|
|
192
|
+
isPlaceholderData: boolean;
|
|
193
|
+
isRefetching: boolean;
|
|
194
|
+
isStale: boolean;
|
|
195
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
196
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
197
|
+
} | {
|
|
198
|
+
swapList: {
|
|
199
|
+
id: string;
|
|
200
|
+
timestamp: any;
|
|
201
|
+
from: any;
|
|
202
|
+
baseVolume: any;
|
|
203
|
+
quoteVolume: any;
|
|
204
|
+
feeBase: any;
|
|
205
|
+
feeQuote: any;
|
|
206
|
+
amountIn: any;
|
|
207
|
+
amountOut: any;
|
|
208
|
+
fromToken: {
|
|
209
|
+
id: string;
|
|
210
|
+
symbol: string;
|
|
211
|
+
name: string;
|
|
212
|
+
decimals: any;
|
|
213
|
+
};
|
|
214
|
+
toToken: {
|
|
215
|
+
id: string;
|
|
216
|
+
symbol: string;
|
|
217
|
+
name: string;
|
|
218
|
+
decimals: any;
|
|
219
|
+
};
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
data: undefined;
|
|
222
|
+
error: null;
|
|
223
|
+
isError: false;
|
|
224
|
+
isPending: true;
|
|
225
|
+
isLoadingError: false;
|
|
226
|
+
isRefetchError: false;
|
|
227
|
+
isSuccess: false;
|
|
228
|
+
status: "pending";
|
|
229
|
+
dataUpdatedAt: number;
|
|
230
|
+
errorUpdatedAt: number;
|
|
231
|
+
failureCount: number;
|
|
232
|
+
failureReason: Error | null;
|
|
233
|
+
errorUpdateCount: number;
|
|
234
|
+
isFetched: boolean;
|
|
235
|
+
isFetchedAfterMount: boolean;
|
|
236
|
+
isFetching: boolean;
|
|
237
|
+
isLoading: boolean;
|
|
238
|
+
isInitialLoading: boolean;
|
|
239
|
+
isPaused: boolean;
|
|
240
|
+
isPlaceholderData: boolean;
|
|
241
|
+
isRefetching: boolean;
|
|
242
|
+
isStale: boolean;
|
|
243
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa")._ | undefined) => Promise<import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").ae<import("@dodoex/api/dist/gql/graphql").FetchPoolSwapListQuery, Error>>;
|
|
244
|
+
fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
|
|
245
|
+
};
|