@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.
Files changed (541) hide show
  1. package/dist/b3f16b2626f03378.svg +10 -0
  2. package/dist/cjs/b3f16b2626f03378.svg +10 -0
  3. package/dist/cjs/failed-list-e6c1e563-7122998d.cjs +1 -0
  4. package/dist/cjs/helper-889c5e9a.cjs +1 -0
  5. package/dist/cjs/index-183743c8.cjs +45 -0
  6. package/dist/cjs/index-1904ef51.cjs +50 -0
  7. package/dist/cjs/index-19cf4c6e.cjs +50 -0
  8. package/dist/cjs/index-1a21b21a.cjs +45 -0
  9. package/dist/cjs/index-246a9973.cjs +50 -0
  10. package/dist/cjs/index-256d5f78.cjs +12 -0
  11. package/dist/cjs/index-39149ce7.cjs +45 -0
  12. package/dist/cjs/index-4190bae6.cjs +58 -0
  13. package/dist/cjs/index-457c65f3.cjs +78 -0
  14. package/dist/cjs/index-5eca89d2.cjs +50 -0
  15. package/dist/cjs/index-64af8ffd.cjs +45 -0
  16. package/dist/cjs/index-f2a80623.cjs +45 -0
  17. package/dist/cjs/index.cjs +1 -45
  18. package/dist/cjs/locales/en-US.js +1 -1
  19. package/dist/cjs/locales/zh-CN.js +1 -1
  20. package/dist/cjs/lottie-01f67a00.cjs +1 -0
  21. package/dist/cjs/lottie-09dbe581.cjs +1 -0
  22. package/dist/cjs/lottie-2035df95.cjs +1 -0
  23. package/dist/cjs/lottie-7e742196.cjs +1 -0
  24. package/dist/cjs/lottie-924a2436.cjs +1 -0
  25. package/dist/cjs/lottie-b9cf6aee.cjs +1 -0
  26. package/dist/cjs/lottie-c4b6404b.cjs +1 -0
  27. package/dist/cjs/lottie-ed4f1473.cjs +1 -0
  28. package/dist/cjs/lottie-edc8e0b8.cjs +1 -0
  29. package/dist/cjs/lottie-f516f300.cjs +1 -0
  30. package/dist/cjs/no-found-89a3b4af-9c7e1488.cjs +1 -0
  31. package/dist/cjs/no-result-01c60834-3e379801.cjs +1 -0
  32. package/dist/cjs/src/components/AddressWithLinkAndCopy.d.ts +22 -0
  33. package/dist/cjs/src/components/AutoButton.d.ts +7 -0
  34. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -2
  35. package/dist/cjs/src/components/Confirm.d.ts +15 -0
  36. package/dist/cjs/src/components/ConnectWallet/ConnectWalletDialog.d.ts +5 -0
  37. package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
  38. package/dist/cjs/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
  39. package/dist/cjs/src/components/CopyTooltipToast.d.ts +9 -0
  40. package/dist/cjs/src/components/DataCard/DataCardGroup.d.ts +9 -0
  41. package/dist/cjs/src/components/Dialog.d.ts +1 -0
  42. package/dist/cjs/src/components/GoBack.d.ts +6 -0
  43. package/dist/cjs/src/components/HowItWorks.d.ts +11 -0
  44. package/dist/cjs/src/components/List/EmptyList.d.ts +7 -0
  45. package/dist/cjs/src/components/List/FailedList.d.ts +6 -0
  46. package/dist/cjs/src/components/RiskDialog.d.ts +7 -0
  47. package/dist/cjs/src/components/SelectChain.d.ts +12 -0
  48. package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +2 -4
  49. package/dist/cjs/src/components/Swap/components/Dialog.d.ts +2 -1
  50. package/dist/cjs/src/components/Swap/components/TokenCard/BalanceText.d.ts +4 -2
  51. package/dist/cjs/src/components/Swap/components/TokenCard/NumberInput.d.ts +12 -9
  52. package/dist/cjs/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
  53. package/dist/cjs/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +4 -3
  54. package/dist/cjs/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +6 -1
  55. package/dist/cjs/src/components/Swap/components/TokenCard/index.d.ts +16 -3
  56. package/dist/cjs/src/components/Swap/index.d.ts +1 -3
  57. package/dist/cjs/src/components/SwitchChainDialog/index.d.ts +1 -1
  58. package/dist/cjs/src/components/Token/TokenItem.d.ts +9 -0
  59. package/dist/cjs/src/components/TokenLogo.d.ts +3 -1
  60. package/dist/cjs/src/components/TokenLogoPair.d.ts +17 -0
  61. package/dist/cjs/src/components/TokenLogoSimple.d.ts +13 -0
  62. package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +3 -1
  63. package/dist/cjs/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
  64. package/dist/cjs/src/components/TokenPicker/index.d.ts +9 -4
  65. package/dist/cjs/src/components/TokenStatusButton.d.ts +7 -0
  66. package/dist/cjs/src/components/Widget/index.d.ts +4 -2
  67. package/dist/cjs/src/components/WidgetConfirm.d.ts +15 -0
  68. package/dist/cjs/src/components/WidgetContainer.d.ts +3 -0
  69. package/dist/cjs/src/components/WidgetDialog.d.ts +15 -0
  70. package/dist/cjs/src/components/chart/components/BaseButton.d.ts +5 -0
  71. package/dist/cjs/src/components/chart/components/Display.d.ts +9 -0
  72. package/dist/cjs/src/components/chart/components/Input.d.ts +7 -0
  73. package/dist/cjs/src/components/chart/components/NumberInput.d.ts +6 -0
  74. package/dist/cjs/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
  75. package/dist/cjs/src/components/chart/components/TokenLogo.d.ts +5 -0
  76. package/dist/cjs/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
  77. package/dist/cjs/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
  78. package/dist/cjs/src/components/chart/depth-chart/helper.d.ts +125 -0
  79. package/dist/cjs/src/components/chart/depth-chart/index.d.ts +18 -0
  80. package/dist/cjs/src/components/chart/depth-chart/index.styled.d.ts +29 -0
  81. package/dist/cjs/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
  82. package/dist/cjs/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
  83. package/dist/cjs/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
  84. package/dist/cjs/src/components/chart/depth-chart/utils.d.ts +19 -0
  85. package/dist/cjs/src/components/chart/depth-chart-v2/index.d.ts +10 -0
  86. package/dist/cjs/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
  87. package/dist/cjs/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
  88. package/dist/cjs/src/components/chart/i18n.d.ts +1 -0
  89. package/dist/cjs/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
  90. package/dist/cjs/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
  91. package/dist/cjs/src/components/chart/liquidity-chart/helper.d.ts +47 -0
  92. package/dist/cjs/src/components/chart/liquidity-chart/index.d.ts +17 -0
  93. package/dist/cjs/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
  94. package/dist/cjs/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
  95. package/dist/cjs/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
  96. package/dist/cjs/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
  97. package/dist/cjs/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
  98. package/dist/cjs/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
  99. package/dist/cjs/src/components/chart/utils.d.ts +3 -0
  100. package/dist/cjs/src/constants/api.d.ts +5 -1
  101. package/dist/cjs/src/constants/chainList.d.ts +2 -1
  102. package/dist/cjs/src/constants/chains.d.ts +24 -31
  103. package/dist/cjs/src/constants/localstorage.d.ts +3 -1
  104. package/dist/cjs/src/constants/pool.d.ts +7 -0
  105. package/dist/cjs/src/constants/sessionStorage.d.ts +2 -0
  106. package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
  107. package/dist/cjs/src/hooks/Chain/useChainList.d.ts +2 -0
  108. package/dist/cjs/src/hooks/Chain/useChainList.test.d.ts +1 -0
  109. package/dist/cjs/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  110. package/dist/cjs/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
  111. package/dist/cjs/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
  112. package/dist/cjs/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
  113. package/dist/cjs/src/hooks/ConnectWallet/web3.d.ts +1 -1
  114. package/dist/cjs/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
  115. package/dist/cjs/src/hooks/Submission/types.d.ts +31 -2
  116. package/dist/cjs/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
  117. package/dist/cjs/src/hooks/Submission/useExecution.d.ts +3 -2
  118. package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
  119. package/dist/cjs/src/hooks/Token/useTokenList.d.ts +10 -4
  120. package/dist/cjs/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
  121. package/dist/cjs/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
  122. package/dist/cjs/src/hooks/Token/useTokenStatus.d.ts +20 -0
  123. package/dist/cjs/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
  124. package/dist/cjs/src/hooks/contract/index.d.ts +0 -2
  125. package/dist/cjs/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
  126. package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +4 -10
  127. package/dist/cjs/src/hooks/contract/wallet.d.ts +1 -1
  128. package/dist/cjs/src/hooks/style/useWidgetDevice.d.ts +6 -0
  129. package/dist/cjs/src/hooks/usePrevious.d.ts +1 -0
  130. package/dist/cjs/src/index.d.ts +6 -0
  131. package/dist/cjs/src/providers/GlobalConfigContext.d.ts +21 -0
  132. package/dist/cjs/src/providers/i18n.d.ts +9 -0
  133. package/dist/cjs/src/providers/queryClient/index.d.ts +2 -0
  134. package/dist/cjs/src/providers/queryClient.d.ts +2 -0
  135. package/dist/cjs/src/router/index.d.ts +9 -0
  136. package/dist/cjs/src/router/types.d.ts +35 -0
  137. package/dist/cjs/src/store/actions/token.d.ts +1 -8
  138. package/dist/cjs/src/store/actions/wallet.d.ts +3 -1
  139. package/dist/cjs/src/store/index.d.ts +7 -1
  140. package/dist/cjs/src/store/reducers/token.d.ts +0 -7
  141. package/dist/cjs/src/store/reducers/wallet.d.ts +5 -1
  142. package/dist/cjs/src/store/selectors/token.d.ts +1 -11
  143. package/dist/cjs/src/store/selectors/wallet.d.ts +5 -2
  144. package/dist/cjs/src/utils/address.d.ts +3 -3
  145. package/dist/cjs/src/utils/bytes.d.ts +3 -0
  146. package/dist/cjs/src/utils/chains.d.ts +1 -1
  147. package/dist/cjs/src/utils/formatter.d.ts +24 -1
  148. package/dist/cjs/src/utils/token.d.ts +22 -1
  149. package/dist/cjs/src/utils/utils.d.ts +1 -0
  150. package/dist/cjs/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
  151. package/dist/cjs/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
  152. package/dist/cjs/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
  153. package/dist/cjs/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
  154. package/dist/cjs/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
  155. package/dist/cjs/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
  156. package/dist/cjs/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
  157. package/dist/cjs/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
  158. package/dist/cjs/src/widgets/MiningWidget/helper.d.ts +2 -0
  159. package/dist/cjs/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
  160. package/dist/cjs/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
  161. package/dist/cjs/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
  162. package/dist/cjs/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  163. package/dist/cjs/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
  164. package/dist/cjs/src/widgets/MiningWidget/types.d.ts +58 -0
  165. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
  166. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
  167. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
  168. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
  169. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
  170. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
  171. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
  172. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
  173. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
  174. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
  175. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
  176. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
  177. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
  178. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
  179. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
  180. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
  181. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
  182. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
  183. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
  184. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
  185. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
  186. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
  187. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
  188. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
  189. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
  190. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
  191. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
  192. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
  193. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
  194. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
  195. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
  196. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
  197. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
  198. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
  199. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
  200. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
  201. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
  202. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
  203. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
  204. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
  205. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
  206. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
  207. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
  208. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
  209. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
  210. package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
  211. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
  212. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
  213. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
  214. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
  215. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
  216. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
  217. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
  218. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
  219. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
  220. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
  221. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
  222. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
  223. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
  224. package/dist/cjs/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
  225. package/dist/cjs/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
  226. package/dist/cjs/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
  227. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
  228. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
  229. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
  230. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
  231. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
  232. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
  233. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
  234. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
  235. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -0
  236. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
  237. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
  238. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
  239. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
  240. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
  241. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
  242. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
  243. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
  244. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
  245. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
  246. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
  247. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  248. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
  249. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
  250. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
  251. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
  252. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
  253. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
  254. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
  255. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
  256. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
  257. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
  258. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
  259. package/dist/cjs/src/widgets/PoolWidget/index.d.ts +2 -0
  260. package/dist/cjs/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
  261. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
  262. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
  263. package/dist/cjs/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
  264. package/dist/cjs/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
  265. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
  266. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
  267. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
  268. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
  269. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
  270. package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +17 -0
  271. package/dist/failed-list-e6c1e563-478d73e0.js +1 -0
  272. package/dist/helper-7cc29594.js +1 -0
  273. package/dist/index-0e954ab8.js +45 -0
  274. package/dist/index-41db7f0e.js +45 -0
  275. package/dist/index-ae19eed4.js +12 -0
  276. package/dist/index-b07aac90.js +45 -0
  277. package/dist/index-c1a581ca.js +50 -0
  278. package/dist/index-c9dbe645.js +50 -0
  279. package/dist/index-cdf23d80.js +50 -0
  280. package/dist/index-d9d9a2cd.js +78 -0
  281. package/dist/index-db2c9b8f.js +58 -0
  282. package/dist/index-e58d24e5.js +50 -0
  283. package/dist/index-ee546021.js +45 -0
  284. package/dist/index-f055c418.js +45 -0
  285. package/dist/index.js +1 -45
  286. package/dist/locales/en-US.js +1 -1
  287. package/dist/locales/zh-CN.js +1 -1
  288. package/dist/lottie-0a7cf033.js +1 -0
  289. package/dist/lottie-449d7c9a.js +1 -0
  290. package/dist/lottie-48250155.js +1 -0
  291. package/dist/lottie-9678ebc9.js +1 -0
  292. package/dist/lottie-9b618308.js +1 -0
  293. package/dist/lottie-b4708423.js +1 -0
  294. package/dist/lottie-baaed8fa.js +1 -0
  295. package/dist/lottie-d6631244.js +1 -0
  296. package/dist/lottie-ed5a9dfd.js +1 -0
  297. package/dist/lottie-f76894b7.js +1 -0
  298. package/dist/no-found-89a3b4af-763d58f5.js +1 -0
  299. package/dist/no-result-01c60834-7921d2fa.js +1 -0
  300. package/dist/src/components/AddressWithLinkAndCopy.d.ts +22 -0
  301. package/dist/src/components/AutoButton.d.ts +7 -0
  302. package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -2
  303. package/dist/src/components/Confirm.d.ts +15 -0
  304. package/dist/src/components/ConnectWallet/ConnectWalletDialog.d.ts +5 -0
  305. package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
  306. package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
  307. package/dist/src/components/CopyTooltipToast.d.ts +9 -0
  308. package/dist/src/components/DataCard/DataCardGroup.d.ts +9 -0
  309. package/dist/src/components/Dialog.d.ts +1 -0
  310. package/dist/src/components/GoBack.d.ts +6 -0
  311. package/dist/src/components/HowItWorks.d.ts +11 -0
  312. package/dist/src/components/List/EmptyList.d.ts +7 -0
  313. package/dist/src/components/List/FailedList.d.ts +6 -0
  314. package/dist/src/components/RiskDialog.d.ts +7 -0
  315. package/dist/src/components/SelectChain.d.ts +12 -0
  316. package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +2 -4
  317. package/dist/src/components/Swap/components/Dialog.d.ts +2 -1
  318. package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +4 -2
  319. package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +12 -9
  320. package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
  321. package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +4 -3
  322. package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +6 -1
  323. package/dist/src/components/Swap/components/TokenCard/index.d.ts +16 -3
  324. package/dist/src/components/Swap/index.d.ts +1 -3
  325. package/dist/src/components/SwitchChainDialog/index.d.ts +1 -1
  326. package/dist/src/components/Token/TokenItem.d.ts +9 -0
  327. package/dist/src/components/TokenLogo.d.ts +3 -1
  328. package/dist/src/components/TokenLogoPair.d.ts +17 -0
  329. package/dist/src/components/TokenLogoSimple.d.ts +13 -0
  330. package/dist/src/components/TokenPicker/TokenItem.d.ts +3 -1
  331. package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
  332. package/dist/src/components/TokenPicker/index.d.ts +9 -4
  333. package/dist/src/components/TokenStatusButton.d.ts +7 -0
  334. package/dist/src/components/Widget/index.d.ts +4 -2
  335. package/dist/src/components/WidgetConfirm.d.ts +15 -0
  336. package/dist/src/components/WidgetContainer.d.ts +3 -0
  337. package/dist/src/components/WidgetDialog.d.ts +15 -0
  338. package/dist/src/components/chart/components/BaseButton.d.ts +5 -0
  339. package/dist/src/components/chart/components/Display.d.ts +9 -0
  340. package/dist/src/components/chart/components/Input.d.ts +7 -0
  341. package/dist/src/components/chart/components/NumberInput.d.ts +6 -0
  342. package/dist/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
  343. package/dist/src/components/chart/components/TokenLogo.d.ts +5 -0
  344. package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
  345. package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
  346. package/dist/src/components/chart/depth-chart/helper.d.ts +125 -0
  347. package/dist/src/components/chart/depth-chart/index.d.ts +18 -0
  348. package/dist/src/components/chart/depth-chart/index.styled.d.ts +29 -0
  349. package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
  350. package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
  351. package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
  352. package/dist/src/components/chart/depth-chart/utils.d.ts +19 -0
  353. package/dist/src/components/chart/depth-chart-v2/index.d.ts +10 -0
  354. package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
  355. package/dist/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
  356. package/dist/src/components/chart/i18n.d.ts +1 -0
  357. package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
  358. package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
  359. package/dist/src/components/chart/liquidity-chart/helper.d.ts +47 -0
  360. package/dist/src/components/chart/liquidity-chart/index.d.ts +17 -0
  361. package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
  362. package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
  363. package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
  364. package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
  365. package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
  366. package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
  367. package/dist/src/components/chart/utils.d.ts +3 -0
  368. package/dist/src/constants/api.d.ts +5 -1
  369. package/dist/src/constants/chainList.d.ts +2 -1
  370. package/dist/src/constants/chains.d.ts +24 -31
  371. package/dist/src/constants/localstorage.d.ts +3 -1
  372. package/dist/src/constants/pool.d.ts +7 -0
  373. package/dist/src/constants/sessionStorage.d.ts +2 -0
  374. package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
  375. package/dist/src/hooks/Chain/useChainList.d.ts +2 -0
  376. package/dist/src/hooks/Chain/useChainList.test.d.ts +1 -0
  377. package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  378. package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
  379. package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
  380. package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
  381. package/dist/src/hooks/ConnectWallet/web3.d.ts +1 -1
  382. package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
  383. package/dist/src/hooks/Submission/types.d.ts +31 -2
  384. package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
  385. package/dist/src/hooks/Submission/useExecution.d.ts +3 -2
  386. package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
  387. package/dist/src/hooks/Token/useTokenList.d.ts +10 -4
  388. package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
  389. package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
  390. package/dist/src/hooks/Token/useTokenStatus.d.ts +20 -0
  391. package/dist/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
  392. package/dist/src/hooks/contract/index.d.ts +0 -2
  393. package/dist/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
  394. package/dist/src/hooks/contract/useFetchTokens.d.ts +4 -10
  395. package/dist/src/hooks/contract/wallet.d.ts +1 -1
  396. package/dist/src/hooks/style/useWidgetDevice.d.ts +6 -0
  397. package/dist/src/hooks/usePrevious.d.ts +1 -0
  398. package/dist/src/index.d.ts +6 -0
  399. package/dist/src/providers/GlobalConfigContext.d.ts +21 -0
  400. package/dist/src/providers/i18n.d.ts +9 -0
  401. package/dist/src/providers/queryClient/index.d.ts +2 -0
  402. package/dist/src/providers/queryClient.d.ts +2 -0
  403. package/dist/src/router/index.d.ts +9 -0
  404. package/dist/src/router/types.d.ts +35 -0
  405. package/dist/src/store/actions/token.d.ts +1 -8
  406. package/dist/src/store/actions/wallet.d.ts +3 -1
  407. package/dist/src/store/index.d.ts +7 -1
  408. package/dist/src/store/reducers/token.d.ts +0 -7
  409. package/dist/src/store/reducers/wallet.d.ts +5 -1
  410. package/dist/src/store/selectors/token.d.ts +1 -11
  411. package/dist/src/store/selectors/wallet.d.ts +5 -2
  412. package/dist/src/utils/address.d.ts +3 -3
  413. package/dist/src/utils/bytes.d.ts +3 -0
  414. package/dist/src/utils/chains.d.ts +1 -1
  415. package/dist/src/utils/formatter.d.ts +24 -1
  416. package/dist/src/utils/token.d.ts +22 -1
  417. package/dist/src/utils/utils.d.ts +1 -0
  418. package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
  419. package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
  420. package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
  421. package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
  422. package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
  423. package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
  424. package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
  425. package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
  426. package/dist/src/widgets/MiningWidget/helper.d.ts +2 -0
  427. package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
  428. package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
  429. package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
  430. package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  431. package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
  432. package/dist/src/widgets/MiningWidget/types.d.ts +58 -0
  433. package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
  434. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
  435. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
  436. package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
  437. package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
  438. package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
  439. package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
  440. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
  441. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
  442. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
  443. package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
  444. package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
  445. package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
  446. package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
  447. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
  448. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
  449. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
  450. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
  451. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
  452. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
  453. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
  454. package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
  455. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
  456. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
  457. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
  458. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
  459. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
  460. package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
  461. package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
  462. package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
  463. package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
  464. package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
  465. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
  466. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
  467. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
  468. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
  469. package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
  470. package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
  471. package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
  472. package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
  473. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
  474. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
  475. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
  476. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
  477. package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
  478. package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
  479. package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
  480. package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
  481. package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
  482. package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
  483. package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
  484. package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
  485. package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
  486. package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
  487. package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
  488. package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
  489. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
  490. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
  491. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
  492. package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
  493. package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
  494. package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
  495. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
  496. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
  497. package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
  498. package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
  499. package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
  500. package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
  501. package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
  502. package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
  503. package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -0
  504. package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
  505. package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
  506. package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
  507. package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
  508. package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
  509. package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
  510. package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
  511. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
  512. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
  513. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
  514. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
  515. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  516. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
  517. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
  518. package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
  519. package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
  520. package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
  521. package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
  522. package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
  523. package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
  524. package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
  525. package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
  526. package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
  527. package/dist/src/widgets/PoolWidget/index.d.ts +2 -0
  528. package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
  529. package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
  530. package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
  531. package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
  532. package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
  533. package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
  534. package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
  535. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
  536. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
  537. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
  538. package/dist/src/widgets/PoolWidget/utils.d.ts +17 -0
  539. package/package.json +12 -2
  540. package/dist/cjs/tokenList-ee5e15c8.cjs +0 -1
  541. package/dist/tokenList-4ef211de.js +0 -1
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { Actions, StateProps } from '../reducer';
3
+ export default function VersionSelect({ selectedVersion, dispatch, }: {
4
+ selectedVersion: StateProps['selectedVersion'];
5
+ dispatch: React.Dispatch<Actions>;
6
+ }): JSX.Element;
@@ -0,0 +1,78 @@
1
+ import { Version } from './types';
2
+ import { TokenInfo } from '../../../hooks/Token';
3
+ export interface StateProps {
4
+ currentStep: 0 | 1 | 2;
5
+ selectedVersion: Version;
6
+ baseToken: TokenInfo | null;
7
+ quoteToken: TokenInfo | null;
8
+ baseAmount: string;
9
+ quoteAmount: string;
10
+ /**
11
+ * Whether to fix the exchange rate fixedRatioPrice to the current legal currency price, true means no modification is allowed
12
+ * single-token is not fixed by default and cannot be fixed, and can be modified
13
+ * After fixing, when modifying the quantity, standard needs to keep the ratio of baseAmount, quoteAmount, fixedRatioPrice unchanged. Pegged needs to be linked regardless of whether it is fixed or not. dpp does not need to, and the three can be modified independently.
14
+ */
15
+ isFixedRatio: boolean;
16
+ /**
17
+ * PmmState.i
18
+ * The value of standard pool is always DEFAULT_INIT_PRICE_STANDARD
19
+ * Other types can be modified, the initial value is DEFAULT_INIT_PRICE
20
+ * The value of this field for single-token, pegged and dpp types is synchronized with fixedRatioPrice
21
+ */
22
+ initPrice: string;
23
+ /**
24
+ * Exchange rate, price, exchange ratio, price ratio
25
+ * Except for single-token types, use the initial fiat price to initialize this field
26
+ * single-token defaults to empty, others default to 1
27
+ */
28
+ fixedRatioPrice: string;
29
+ /** The token on the left side of the exchange rate input box */
30
+ leftTokenAddress: TokenInfo['address'] | undefined;
31
+ slippageCoefficient: string;
32
+ isSlippageCoefficientCustomized: boolean;
33
+ feeRate: string | '0.01' | '0.3' | '1';
34
+ isFeeRateCustomized: boolean;
35
+ }
36
+ declare type Pool = any;
37
+ export declare enum Types {
38
+ SetCurrentStep = 1,
39
+ SelectNewVersion = 2,
40
+ UpdateBaseToken = 3,
41
+ UpdateQuoteToken = 4,
42
+ SwitchTokens = 5,
43
+ UpdateBaseAmount = 6,
44
+ UpdateQuoteAmount = 7,
45
+ UpdateIsFixedRatio = 8,
46
+ UpdateFixedRatioPrice = 9,
47
+ InitFixedRatioPrice = 10,
48
+ ToggleLeftToken = 11,
49
+ UpdateSlippageCoefficient = 12,
50
+ UpdateIsSlippageCoefficientCustomized = 13,
51
+ UpdateFeeRate = 14,
52
+ UpdateIsFeeRateCustomized = 15,
53
+ InitEditParameters = 16
54
+ }
55
+ declare type Payload = {
56
+ [Types.SetCurrentStep]: StateProps['currentStep'];
57
+ [Types.SelectNewVersion]: Version;
58
+ [Types.UpdateBaseToken]: TokenInfo;
59
+ [Types.UpdateQuoteToken]: TokenInfo;
60
+ [Types.SwitchTokens]: undefined;
61
+ [Types.UpdateBaseAmount]: string;
62
+ [Types.UpdateQuoteAmount]: string;
63
+ [Types.UpdateIsFixedRatio]: boolean;
64
+ [Types.UpdateFixedRatioPrice]: string;
65
+ [Types.InitFixedRatioPrice]: {
66
+ baseTokenFiatPrice: number | undefined;
67
+ quoteTokenFiatPrice: number | undefined;
68
+ };
69
+ [Types.ToggleLeftToken]: undefined;
70
+ [Types.UpdateSlippageCoefficient]: string;
71
+ [Types.UpdateIsSlippageCoefficientCustomized]: boolean;
72
+ [Types.UpdateFeeRate]: StateProps['feeRate'];
73
+ [Types.UpdateIsFeeRateCustomized]: boolean;
74
+ [Types.InitEditParameters]: Pool;
75
+ };
76
+ export declare type Actions = ActionMap<Payload>[keyof ActionMap<Payload>];
77
+ export declare function reducer(state: StateProps, action: Actions): StateProps;
78
+ export {};
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export declare enum Version {
3
+ /** DVM; public pool */
4
+ standard = "standard",
5
+ /** DVM: quoteReserve = 0; public pool */
6
+ singleToken = "single-token",
7
+ /** DSP */
8
+ pegged = "pagged",
9
+ /** DPP; private pool */
10
+ marketMakerPool = "market-maker-pool"
11
+ }
12
+ export interface VersionItem {
13
+ version: Version;
14
+ title: string;
15
+ description: string;
16
+ exampleImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
17
+ title?: string | undefined;
18
+ }>;
19
+ exampleDarkImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
20
+ title?: string | undefined;
21
+ }>;
22
+ docUrl: string;
23
+ initPriceLabel: string;
24
+ initPriceTips?: string;
25
+ initPriceTipsLink?: string;
26
+ }
27
+ export declare type SectionStatusT = 'waiting' | 'running' | 'completed';
28
+ export interface RadioButtonT {
29
+ title: string;
30
+ description: string;
31
+ value: string;
32
+ tag?: string;
33
+ tagColor?: string;
34
+ tagBackgroundColor?: string;
35
+ }
@@ -0,0 +1,18 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { TokenInfo } from '../../../hooks/Token';
3
+ import { Version } from './types';
4
+ export declare const DEFAULT_FEE_RATE = "0.3";
5
+ export declare const MIN_FEE_RATE = 0.01;
6
+ export declare const MAX_FEE_RATE = 10;
7
+ export declare const DEFAULT_INIT_PRICE = "1";
8
+ export declare const DEFAULT_INIT_PRICE_STANDARD = "0.0000000000001";
9
+ export declare const MAX_INIT_PRICE = 100000000;
10
+ export declare const DEFAULT_SLIPPAGE_COEFFICIENT = "1";
11
+ export declare const DEFAULT_SLIPPAGE_COEFFICIENT_PEGGED = "0.0001";
12
+ export declare const MAX_SLIPPAGE_COEFFICIENT_PEGGED = "0.1";
13
+ export declare function computeInitPriceText({ selectedVersion, quoteToken, initPrice, midPrice, }: {
14
+ selectedVersion: Version;
15
+ quoteToken: TokenInfo;
16
+ initPrice: string;
17
+ midPrice?: BigNumber;
18
+ }): string | null;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@dodoex/components';
3
+ import BigNumber from 'bignumber.js';
4
+ export declare function BaseQuotePie({ shortNumber, pieSize, baseReserve, baseAmount, quoteAmount, baseTokenSymbol, quoteTokenSymbol, quoteTokenDecimals, baseTokenDecimals, baseTvlRate, quoteTvlRate, disabledAmount, disabledRate, disabledPercentage, loading, sx, pieRadius: pieRadiusProp, }: {
5
+ baseReserve?: BigNumber;
6
+ /** Quantity converted by midPrice, used to calculate percentages */
7
+ baseAmount?: BigNumber;
8
+ baseTokenDecimals?: number;
9
+ baseTokenSymbol?: string;
10
+ quoteAmount?: BigNumber;
11
+ quoteTokenDecimals?: number;
12
+ quoteTokenSymbol?: string;
13
+ pieSize?: 'small' | 'default';
14
+ shortNumber?: boolean;
15
+ /** Already calculated proportion */
16
+ baseTvlRate?: string;
17
+ quoteTvlRate?: string;
18
+ disabledAmount?: boolean;
19
+ disabledRate?: boolean;
20
+ disabledPercentage?: boolean;
21
+ loading?: boolean;
22
+ sx?: BoxProps['sx'];
23
+ pieRadius?: number;
24
+ }): JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../hooks/usePoolDetail';
3
+ export default function ChartInfo({ poolDetail, chart24hDataFirst, }: {
4
+ poolDetail?: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ chart24hDataFirst?: boolean;
6
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../../hooks/usePoolDetail';
3
+ export default function LiquidityProvidersTable({ poolDetail, }: {
4
+ poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ }): JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@dodoex/components';
3
+ import { ChainId } from '@dodoex/api';
4
+ import { usePoolDetail } from '../../../hooks/usePoolDetail';
5
+ export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
6
+ export declare function TokenWithSymbolRtL({ chainId, address, symbol, amount, sx, }: {
7
+ chainId: ChainId;
8
+ address: string;
9
+ symbol: string;
10
+ amount: string;
11
+ sx?: BoxProps['sx'];
12
+ }): JSX.Element;
13
+ export default function ParametersTable({ detail, }: {
14
+ detail: ReturnType<typeof usePoolDetail>['poolDetail'];
15
+ }): JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../../hooks/usePoolDetail';
3
+ export declare function formatDateTimeStr(timestamp?: number, short?: boolean): string;
4
+ export default function SwapsTable({ poolDetail, }: {
5
+ poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
6
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../../hooks/usePoolDetail';
3
+ export default function MoreDetail({ poolDetail, }: {
4
+ poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../hooks/usePoolDetail';
3
+ export default function Overview({ poolDetail, }: {
4
+ poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ }): JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDayData } from '../hooks/usePoolDayData';
3
+ declare type DayData = ReturnType<typeof usePoolDayData>['dayDataList']['0'];
4
+ export default function StatBarChart({ unit, data, masterKey, sumKey, }: {
5
+ unit: string;
6
+ data: DayData[];
7
+ masterKey: keyof DayData;
8
+ sumKey: keyof DayData;
9
+ }): JSX.Element;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../hooks/usePoolDetail';
3
+ export default function TitleInfo({ poolDetail, loading, }: {
4
+ poolDetail?: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ loading: boolean;
6
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { usePoolDetail } from '../../hooks/usePoolDetail';
3
+ export default function TotalLiquidity({ poolDetail, }: {
4
+ poolDetail: ReturnType<typeof usePoolDetail>['poolDetail'];
5
+ }): JSX.Element;
@@ -0,0 +1,159 @@
1
+ import { PoolType } from '@dodoex/api';
2
+ import BigNumber from 'bignumber.js';
3
+ import { TokenInfo } from '../../../../hooks/Token';
4
+ export declare type LpItem = {
5
+ userId: string;
6
+ baseSupplied: string;
7
+ quoteSupplied: string;
8
+ baseTokenSymbol: string;
9
+ baseTokenAddress: string;
10
+ quoteTokenSymbol: string;
11
+ quoteTokenAddress: string;
12
+ sharePercentage: string;
13
+ dollarValue: string;
14
+ dollarValueBN: BigNumber;
15
+ };
16
+ export declare function useLiquidityProviders({ pool, }: {
17
+ pool: {
18
+ chainId: number;
19
+ address: string;
20
+ type: PoolType;
21
+ baseToken: TokenInfo;
22
+ quoteToken: TokenInfo;
23
+ } | null | undefined;
24
+ }): {
25
+ isLoading: boolean;
26
+ errorRefetch: (() => void) | undefined;
27
+ list: LpItem[];
28
+ data: import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery;
29
+ error: Error;
30
+ isError: true;
31
+ isPending: false;
32
+ isLoadingError: false;
33
+ isRefetchError: true;
34
+ isSuccess: false;
35
+ status: "error";
36
+ dataUpdatedAt: number;
37
+ errorUpdatedAt: number;
38
+ failureCount: number;
39
+ failureReason: Error | null;
40
+ errorUpdateCount: number;
41
+ isFetched: boolean;
42
+ isFetchedAfterMount: boolean;
43
+ isFetching: boolean;
44
+ isInitialLoading: boolean;
45
+ isPaused: boolean;
46
+ isPlaceholderData: boolean;
47
+ isRefetching: boolean;
48
+ isStale: boolean;
49
+ 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").FetchLiquidityPositionsQuery, Error>>;
50
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
51
+ } | {
52
+ isLoading: boolean;
53
+ errorRefetch: (() => void) | undefined;
54
+ list: LpItem[];
55
+ data: import("@dodoex/api/dist/gql/graphql").FetchLiquidityPositionsQuery;
56
+ error: null;
57
+ isError: false;
58
+ isPending: false;
59
+ isLoadingError: false;
60
+ isRefetchError: false;
61
+ isSuccess: true;
62
+ status: "success";
63
+ dataUpdatedAt: number;
64
+ errorUpdatedAt: number;
65
+ failureCount: number;
66
+ failureReason: Error | null;
67
+ errorUpdateCount: number;
68
+ isFetched: boolean;
69
+ isFetchedAfterMount: boolean;
70
+ isFetching: boolean;
71
+ isInitialLoading: boolean;
72
+ isPaused: boolean;
73
+ isPlaceholderData: boolean;
74
+ isRefetching: boolean;
75
+ isStale: boolean;
76
+ 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").FetchLiquidityPositionsQuery, Error>>;
77
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
78
+ } | {
79
+ isLoading: boolean;
80
+ errorRefetch: (() => void) | undefined;
81
+ list: LpItem[];
82
+ data: undefined;
83
+ error: Error;
84
+ isError: true;
85
+ isPending: false;
86
+ isLoadingError: true;
87
+ isRefetchError: false;
88
+ isSuccess: false;
89
+ status: "error";
90
+ dataUpdatedAt: number;
91
+ errorUpdatedAt: number;
92
+ failureCount: number;
93
+ failureReason: Error | null;
94
+ errorUpdateCount: number;
95
+ isFetched: boolean;
96
+ isFetchedAfterMount: boolean;
97
+ isFetching: boolean;
98
+ isInitialLoading: boolean;
99
+ isPaused: boolean;
100
+ isPlaceholderData: boolean;
101
+ isRefetching: boolean;
102
+ isStale: boolean;
103
+ 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").FetchLiquidityPositionsQuery, Error>>;
104
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
105
+ } | {
106
+ isLoading: boolean;
107
+ errorRefetch: (() => void) | undefined;
108
+ list: LpItem[];
109
+ data: undefined;
110
+ error: null;
111
+ isError: false;
112
+ isPending: true;
113
+ isLoadingError: false;
114
+ isRefetchError: false;
115
+ isSuccess: false;
116
+ status: "pending";
117
+ dataUpdatedAt: number;
118
+ errorUpdatedAt: number;
119
+ failureCount: number;
120
+ failureReason: Error | null;
121
+ errorUpdateCount: number;
122
+ isFetched: boolean;
123
+ isFetchedAfterMount: boolean;
124
+ isFetching: boolean;
125
+ isInitialLoading: boolean;
126
+ isPaused: boolean;
127
+ isPlaceholderData: boolean;
128
+ isRefetching: boolean;
129
+ isStale: boolean;
130
+ 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").FetchLiquidityPositionsQuery, Error>>;
131
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
132
+ } | {
133
+ isLoading: boolean;
134
+ errorRefetch: (() => void) | undefined;
135
+ list: LpItem[];
136
+ data: undefined;
137
+ error: null;
138
+ isError: false;
139
+ isPending: true;
140
+ isLoadingError: false;
141
+ isRefetchError: false;
142
+ isSuccess: false;
143
+ status: "pending";
144
+ dataUpdatedAt: number;
145
+ errorUpdatedAt: number;
146
+ failureCount: number;
147
+ failureReason: Error | null;
148
+ errorUpdateCount: number;
149
+ isFetched: boolean;
150
+ isFetchedAfterMount: boolean;
151
+ isFetching: boolean;
152
+ isInitialLoading: boolean;
153
+ isPaused: boolean;
154
+ isPlaceholderData: boolean;
155
+ isRefetching: boolean;
156
+ isStale: boolean;
157
+ 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").FetchLiquidityPositionsQuery, Error>>;
158
+ fetchStatus: import("@tanstack/query-core/build/legacy/queryClient-MRqjmcFa").a6;
159
+ };