@dodoex/widgets 2.6.7 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) 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 +1 -3
  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/Token/TokenItem.d.ts +9 -0
  58. package/dist/cjs/src/components/TokenLogo.d.ts +3 -1
  59. package/dist/cjs/src/components/TokenLogoPair.d.ts +17 -0
  60. package/dist/cjs/src/components/TokenLogoSimple.d.ts +13 -0
  61. package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +3 -1
  62. package/dist/cjs/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
  63. package/dist/cjs/src/components/TokenPicker/index.d.ts +8 -3
  64. package/dist/cjs/src/components/TokenStatusButton.d.ts +7 -0
  65. package/dist/cjs/src/components/Widget/index.d.ts +3 -1
  66. package/dist/cjs/src/components/WidgetConfirm.d.ts +15 -0
  67. package/dist/cjs/src/components/WidgetContainer.d.ts +3 -0
  68. package/dist/cjs/src/components/WidgetDialog.d.ts +15 -0
  69. package/dist/cjs/src/components/chart/components/BaseButton.d.ts +5 -0
  70. package/dist/cjs/src/components/chart/components/Display.d.ts +9 -0
  71. package/dist/cjs/src/components/chart/components/Input.d.ts +7 -0
  72. package/dist/cjs/src/components/chart/components/NumberInput.d.ts +6 -0
  73. package/dist/cjs/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
  74. package/dist/cjs/src/components/chart/components/TokenLogo.d.ts +5 -0
  75. package/dist/cjs/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
  76. package/dist/cjs/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
  77. package/dist/cjs/src/components/chart/depth-chart/helper.d.ts +125 -0
  78. package/dist/cjs/src/components/chart/depth-chart/index.d.ts +18 -0
  79. package/dist/cjs/src/components/chart/depth-chart/index.styled.d.ts +29 -0
  80. package/dist/cjs/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
  81. package/dist/cjs/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
  82. package/dist/cjs/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
  83. package/dist/cjs/src/components/chart/depth-chart/utils.d.ts +19 -0
  84. package/dist/cjs/src/components/chart/depth-chart-v2/index.d.ts +10 -0
  85. package/dist/cjs/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
  86. package/dist/cjs/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
  87. package/dist/cjs/src/components/chart/i18n.d.ts +1 -0
  88. package/dist/cjs/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
  89. package/dist/cjs/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
  90. package/dist/cjs/src/components/chart/liquidity-chart/helper.d.ts +47 -0
  91. package/dist/cjs/src/components/chart/liquidity-chart/index.d.ts +17 -0
  92. package/dist/cjs/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
  93. package/dist/cjs/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
  94. package/dist/cjs/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
  95. package/dist/cjs/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
  96. package/dist/cjs/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
  97. package/dist/cjs/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
  98. package/dist/cjs/src/components/chart/utils.d.ts +3 -0
  99. package/dist/cjs/src/constants/api.d.ts +5 -0
  100. package/dist/cjs/src/constants/chainList.d.ts +1 -0
  101. package/dist/cjs/src/constants/chains.d.ts +24 -31
  102. package/dist/cjs/src/constants/localstorage.d.ts +2 -0
  103. package/dist/cjs/src/constants/pool.d.ts +7 -0
  104. package/dist/cjs/src/constants/sessionStorage.d.ts +2 -0
  105. package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
  106. package/dist/cjs/src/hooks/Chain/useChainList.d.ts +2 -0
  107. package/dist/cjs/src/hooks/Chain/useChainList.test.d.ts +1 -0
  108. package/dist/cjs/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
  109. package/dist/cjs/src/hooks/Submission/types.d.ts +31 -2
  110. package/dist/cjs/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
  111. package/dist/cjs/src/hooks/Submission/useExecution.d.ts +3 -2
  112. package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
  113. package/dist/cjs/src/hooks/Token/useTokenList.d.ts +9 -3
  114. package/dist/cjs/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
  115. package/dist/cjs/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
  116. package/dist/cjs/src/hooks/Token/useTokenStatus.d.ts +20 -0
  117. package/dist/cjs/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
  118. package/dist/cjs/src/hooks/contract/index.d.ts +0 -2
  119. package/dist/cjs/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
  120. package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +4 -10
  121. package/dist/cjs/src/hooks/contract/wallet.d.ts +1 -1
  122. package/dist/cjs/src/hooks/style/useWidgetDevice.d.ts +6 -0
  123. package/dist/cjs/src/hooks/usePrevious.d.ts +1 -0
  124. package/dist/cjs/src/index.d.ts +6 -0
  125. package/dist/cjs/src/providers/GlobalConfigContext.d.ts +21 -0
  126. package/dist/cjs/src/providers/i18n.d.ts +9 -0
  127. package/dist/cjs/src/providers/queryClient/index.d.ts +2 -0
  128. package/dist/cjs/src/providers/queryClient.d.ts +2 -0
  129. package/dist/cjs/src/router/index.d.ts +9 -0
  130. package/dist/cjs/src/router/types.d.ts +35 -0
  131. package/dist/cjs/src/store/actions/token.d.ts +1 -8
  132. package/dist/cjs/src/store/actions/wallet.d.ts +2 -0
  133. package/dist/cjs/src/store/index.d.ts +7 -1
  134. package/dist/cjs/src/store/reducers/token.d.ts +0 -7
  135. package/dist/cjs/src/store/reducers/wallet.d.ts +4 -0
  136. package/dist/cjs/src/store/selectors/token.d.ts +0 -10
  137. package/dist/cjs/src/store/selectors/wallet.d.ts +5 -2
  138. package/dist/cjs/src/utils/address.d.ts +2 -2
  139. package/dist/cjs/src/utils/bytes.d.ts +3 -0
  140. package/dist/cjs/src/utils/formatter.d.ts +24 -1
  141. package/dist/cjs/src/utils/token.d.ts +21 -0
  142. package/dist/cjs/src/utils/utils.d.ts +1 -0
  143. package/dist/cjs/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
  144. package/dist/cjs/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
  145. package/dist/cjs/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
  146. package/dist/cjs/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
  147. package/dist/cjs/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
  148. package/dist/cjs/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
  149. package/dist/cjs/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
  150. package/dist/cjs/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
  151. package/dist/cjs/src/widgets/MiningWidget/helper.d.ts +2 -0
  152. package/dist/cjs/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
  153. package/dist/cjs/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
  154. package/dist/cjs/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
  155. package/dist/cjs/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  156. package/dist/cjs/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
  157. package/dist/cjs/src/widgets/MiningWidget/types.d.ts +58 -0
  158. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
  159. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
  160. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
  161. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
  162. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
  163. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
  164. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
  165. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
  166. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
  167. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
  168. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
  169. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
  170. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
  171. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
  172. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
  173. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
  174. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
  175. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
  176. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
  177. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
  178. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
  179. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
  180. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
  181. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
  182. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
  183. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
  184. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
  185. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
  186. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
  187. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
  188. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
  189. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
  190. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
  191. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
  192. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
  193. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
  194. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
  195. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
  196. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
  197. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
  198. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
  199. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
  200. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
  201. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
  202. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
  203. package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
  204. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
  205. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
  206. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
  207. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
  208. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
  209. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
  210. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
  211. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
  212. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
  213. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
  214. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
  215. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
  216. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
  217. package/dist/cjs/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
  218. package/dist/cjs/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
  219. package/dist/cjs/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
  220. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
  221. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
  222. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
  223. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
  224. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
  225. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
  226. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
  227. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
  228. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -0
  229. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
  230. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
  231. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
  232. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
  233. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
  234. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
  235. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
  236. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
  237. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
  238. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
  239. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
  240. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  241. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
  242. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
  243. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
  244. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
  245. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
  246. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
  247. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
  248. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
  249. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
  250. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
  251. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
  252. package/dist/cjs/src/widgets/PoolWidget/index.d.ts +2 -0
  253. package/dist/cjs/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
  254. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
  255. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
  256. package/dist/cjs/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
  257. package/dist/cjs/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
  258. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
  259. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
  260. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
  261. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
  262. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
  263. package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +17 -0
  264. package/dist/failed-list-e6c1e563-478d73e0.js +1 -0
  265. package/dist/helper-7cc29594.js +1 -0
  266. package/dist/index-0e954ab8.js +45 -0
  267. package/dist/index-41db7f0e.js +45 -0
  268. package/dist/index-ae19eed4.js +12 -0
  269. package/dist/index-b07aac90.js +45 -0
  270. package/dist/index-c1a581ca.js +50 -0
  271. package/dist/index-c9dbe645.js +50 -0
  272. package/dist/index-cdf23d80.js +50 -0
  273. package/dist/index-d9d9a2cd.js +78 -0
  274. package/dist/index-db2c9b8f.js +58 -0
  275. package/dist/index-e58d24e5.js +50 -0
  276. package/dist/index-ee546021.js +45 -0
  277. package/dist/index-f055c418.js +45 -0
  278. package/dist/index.js +1 -45
  279. package/dist/locales/en-US.js +1 -1
  280. package/dist/locales/zh-CN.js +1 -1
  281. package/dist/lottie-0a7cf033.js +1 -0
  282. package/dist/lottie-449d7c9a.js +1 -0
  283. package/dist/lottie-48250155.js +1 -0
  284. package/dist/lottie-9678ebc9.js +1 -0
  285. package/dist/lottie-9b618308.js +1 -0
  286. package/dist/lottie-b4708423.js +1 -0
  287. package/dist/lottie-baaed8fa.js +1 -0
  288. package/dist/lottie-d6631244.js +1 -0
  289. package/dist/lottie-ed5a9dfd.js +1 -0
  290. package/dist/lottie-f76894b7.js +1 -0
  291. package/dist/no-found-89a3b4af-763d58f5.js +1 -0
  292. package/dist/no-result-01c60834-7921d2fa.js +1 -0
  293. package/dist/src/components/AddressWithLinkAndCopy.d.ts +22 -0
  294. package/dist/src/components/AutoButton.d.ts +7 -0
  295. package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +1 -2
  296. package/dist/src/components/Confirm.d.ts +15 -0
  297. package/dist/src/components/ConnectWallet/ConnectWalletDialog.d.ts +5 -0
  298. package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +8 -0
  299. package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +2 -0
  300. package/dist/src/components/CopyTooltipToast.d.ts +9 -0
  301. package/dist/src/components/DataCard/DataCardGroup.d.ts +9 -0
  302. package/dist/src/components/Dialog.d.ts +1 -0
  303. package/dist/src/components/GoBack.d.ts +6 -0
  304. package/dist/src/components/HowItWorks.d.ts +11 -0
  305. package/dist/src/components/List/EmptyList.d.ts +7 -0
  306. package/dist/src/components/List/FailedList.d.ts +6 -0
  307. package/dist/src/components/RiskDialog.d.ts +7 -0
  308. package/dist/src/components/SelectChain.d.ts +12 -0
  309. package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +1 -3
  310. package/dist/src/components/Swap/components/Dialog.d.ts +2 -1
  311. package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +4 -2
  312. package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +12 -9
  313. package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +7 -0
  314. package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +4 -3
  315. package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +6 -1
  316. package/dist/src/components/Swap/components/TokenCard/index.d.ts +16 -3
  317. package/dist/src/components/Swap/index.d.ts +1 -3
  318. package/dist/src/components/Token/TokenItem.d.ts +9 -0
  319. package/dist/src/components/TokenLogo.d.ts +3 -1
  320. package/dist/src/components/TokenLogoPair.d.ts +17 -0
  321. package/dist/src/components/TokenLogoSimple.d.ts +13 -0
  322. package/dist/src/components/TokenPicker/TokenItem.d.ts +3 -1
  323. package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +2 -0
  324. package/dist/src/components/TokenPicker/index.d.ts +8 -3
  325. package/dist/src/components/TokenStatusButton.d.ts +7 -0
  326. package/dist/src/components/Widget/index.d.ts +3 -1
  327. package/dist/src/components/WidgetConfirm.d.ts +15 -0
  328. package/dist/src/components/WidgetContainer.d.ts +3 -0
  329. package/dist/src/components/WidgetDialog.d.ts +15 -0
  330. package/dist/src/components/chart/components/BaseButton.d.ts +5 -0
  331. package/dist/src/components/chart/components/Display.d.ts +9 -0
  332. package/dist/src/components/chart/components/Input.d.ts +7 -0
  333. package/dist/src/components/chart/components/NumberInput.d.ts +6 -0
  334. package/dist/src/components/chart/components/TogglePriceIcon.d.ts +8 -0
  335. package/dist/src/components/chart/components/TokenLogo.d.ts +5 -0
  336. package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +30 -0
  337. package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
  338. package/dist/src/components/chart/depth-chart/helper.d.ts +125 -0
  339. package/dist/src/components/chart/depth-chart/index.d.ts +18 -0
  340. package/dist/src/components/chart/depth-chart/index.styled.d.ts +29 -0
  341. package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
  342. package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
  343. package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
  344. package/dist/src/components/chart/depth-chart/utils.d.ts +19 -0
  345. package/dist/src/components/chart/depth-chart-v2/index.d.ts +10 -0
  346. package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +15 -0
  347. package/dist/src/components/chart/hooks/usePreventWheel.d.ts +9 -0
  348. package/dist/src/components/chart/i18n.d.ts +1 -0
  349. package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +28 -0
  350. package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
  351. package/dist/src/components/chart/liquidity-chart/helper.d.ts +47 -0
  352. package/dist/src/components/chart/liquidity-chart/index.d.ts +17 -0
  353. package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +9 -0
  354. package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +8 -0
  355. package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +10 -0
  356. package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +18 -0
  357. package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +6 -0
  358. package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +39 -0
  359. package/dist/src/components/chart/utils.d.ts +3 -0
  360. package/dist/src/constants/api.d.ts +5 -0
  361. package/dist/src/constants/chainList.d.ts +1 -0
  362. package/dist/src/constants/chains.d.ts +24 -31
  363. package/dist/src/constants/localstorage.d.ts +2 -0
  364. package/dist/src/constants/pool.d.ts +7 -0
  365. package/dist/src/constants/sessionStorage.d.ts +2 -0
  366. package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +2 -1
  367. package/dist/src/hooks/Chain/useChainList.d.ts +2 -0
  368. package/dist/src/hooks/Chain/useChainList.test.d.ts +1 -0
  369. package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +6 -0
  370. package/dist/src/hooks/Submission/types.d.ts +31 -2
  371. package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +15 -0
  372. package/dist/src/hooks/Submission/useExecution.d.ts +3 -2
  373. package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +3 -3
  374. package/dist/src/hooks/Token/useTokenList.d.ts +9 -3
  375. package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
  376. package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +5 -2
  377. package/dist/src/hooks/Token/useTokenStatus.d.ts +20 -0
  378. package/dist/src/hooks/Token/useTokenStatus.test.d.ts +1 -0
  379. package/dist/src/hooks/contract/index.d.ts +0 -2
  380. package/dist/src/hooks/contract/useFetchETHBalance.d.ts +21 -1
  381. package/dist/src/hooks/contract/useFetchTokens.d.ts +4 -10
  382. package/dist/src/hooks/contract/wallet.d.ts +1 -1
  383. package/dist/src/hooks/style/useWidgetDevice.d.ts +6 -0
  384. package/dist/src/hooks/usePrevious.d.ts +1 -0
  385. package/dist/src/index.d.ts +6 -0
  386. package/dist/src/providers/GlobalConfigContext.d.ts +21 -0
  387. package/dist/src/providers/i18n.d.ts +9 -0
  388. package/dist/src/providers/queryClient/index.d.ts +2 -0
  389. package/dist/src/providers/queryClient.d.ts +2 -0
  390. package/dist/src/router/index.d.ts +9 -0
  391. package/dist/src/router/types.d.ts +35 -0
  392. package/dist/src/store/actions/token.d.ts +1 -8
  393. package/dist/src/store/actions/wallet.d.ts +2 -0
  394. package/dist/src/store/index.d.ts +7 -1
  395. package/dist/src/store/reducers/token.d.ts +0 -7
  396. package/dist/src/store/reducers/wallet.d.ts +4 -0
  397. package/dist/src/store/selectors/token.d.ts +0 -10
  398. package/dist/src/store/selectors/wallet.d.ts +5 -2
  399. package/dist/src/utils/address.d.ts +2 -2
  400. package/dist/src/utils/bytes.d.ts +3 -0
  401. package/dist/src/utils/formatter.d.ts +24 -1
  402. package/dist/src/utils/token.d.ts +21 -0
  403. package/dist/src/utils/utils.d.ts +1 -0
  404. package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +7 -0
  405. package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
  406. package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +5 -0
  407. package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +5 -0
  408. package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +8 -0
  409. package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +9 -0
  410. package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +8 -0
  411. package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +13 -0
  412. package/dist/src/widgets/MiningWidget/helper.d.ts +2 -0
  413. package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +4 -0
  414. package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +17 -0
  415. package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -0
  416. package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  417. package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -0
  418. package/dist/src/widgets/MiningWidget/types.d.ts +58 -0
  419. package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +10 -0
  420. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +11 -0
  421. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +11 -0
  422. package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +5 -0
  423. package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
  424. package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +6 -0
  425. package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +13 -0
  426. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +12 -0
  427. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +4 -0
  428. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
  429. package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +7 -0
  430. package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +8 -0
  431. package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
  432. package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
  433. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +14 -0
  434. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
  435. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
  436. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
  437. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
  438. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
  439. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +5 -0
  440. package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +2 -0
  441. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +6 -0
  442. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
  443. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +12 -0
  444. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +8 -0
  445. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +6 -0
  446. package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +78 -0
  447. package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +35 -0
  448. package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +18 -0
  449. package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +24 -0
  450. package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +6 -0
  451. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +5 -0
  452. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +15 -0
  453. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +6 -0
  454. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
  455. package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
  456. package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +10 -0
  457. package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +6 -0
  458. package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
  459. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
  460. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +290 -0
  461. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
  462. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
  463. package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +2 -0
  464. package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +12 -0
  465. package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
  466. package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +11 -0
  467. package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +5 -0
  468. package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +8 -0
  469. package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +8 -0
  470. package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -0
  471. package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +5 -0
  472. package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +18 -0
  473. package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +9 -0
  474. package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +6 -0
  475. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
  476. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +48 -0
  477. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +15 -0
  478. package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +2 -0
  479. package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +4 -0
  480. package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +2 -0
  481. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +8 -0
  482. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
  483. package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +9 -0
  484. package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +18 -0
  485. package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +8 -0
  486. package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +9 -0
  487. package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +8 -0
  488. package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +9 -0
  489. package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +18 -0
  490. package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +9 -0
  491. package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +10 -0
  492. package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
  493. package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +8 -0
  494. package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +8 -0
  495. package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +18 -0
  496. package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +12 -0
  497. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
  498. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
  499. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +46 -0
  500. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
  501. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  502. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
  503. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +33 -0
  504. package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +14 -0
  505. package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +17 -0
  506. package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +86 -0
  507. package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
  508. package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
  509. package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
  510. package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +48 -0
  511. package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +341 -0
  512. package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
  513. package/dist/src/widgets/PoolWidget/index.d.ts +2 -0
  514. package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +9 -0
  515. package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +8 -0
  516. package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +8 -0
  517. package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +5 -0
  518. package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +17 -0
  519. package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +9 -0
  520. package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +6 -0
  521. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +6 -0
  522. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +58 -0
  523. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +15 -0
  524. package/dist/src/widgets/PoolWidget/utils.d.ts +17 -0
  525. package/package.json +12 -2
  526. package/dist/cjs/tokenList-ee5e15c8.cjs +0 -1
  527. package/dist/tokenList-4ef211de.js +0 -1
@@ -0,0 +1,12 @@
1
+ import t from"@emotion/styled";import{merge as e}from"lodash";import{useMemo as i,useRef as r}from"react";import{l as n,g as o,m as l}from"./helper-7cc29594.js";import{Line as s,Text as a,Stage as d,Layer as p,Rect as g,Circle as m,Label as u,Tag as h}from"react-konva";import{j as c,f as x}from"./index-db2c9b8f.js";import f from"bignumber.js";import{solveQuadraticFunctionForTarget as L,PMMState as b,PMMHelper as w}from"@dodoex/api";import"@lingui/core";import"@lingui/react";import"@dodoex/icons";import"react-dom";import"react-redux";import"identicon.js";import"@web3-react/core";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"@reduxjs/toolkit";import"redux";import"@tanstack/react-query";import"react-window";import"@ethersproject/bignumber";import"dayjs";import"axios";import"zustand";import"react-infinite-scroller";import"@emotion/react";import"recharts";const A=t.div`
2
+ height: 100%;
3
+ position: relative;
4
+ `,y=t.div`
5
+ text-align: center;
6
+ margin-top: 17.1px;
7
+ margin-bottom: 88.41px;
8
+ color: #606066;
9
+ font-size: 12px;
10
+ line-height: 17px;
11
+ font-weight: 400;
12
+ `;function N({maxHeight:t,gridAreaHeight:e,value:i}){const r=new f(e).minus(36),n=r.div(t);return r.minus(i.multipliedBy(n)).plus(36).toNumber()}function P({targetPrice:t,areaPoints:e,isLeft:i}){for(let r=0;r<e.length;r++){const n=e[r],o=r<e.length-1?e[r+1]:null;if(!o)return{targetAreaStatPoint:n,targetAreaStatPoints:e};if(i){if(t.lte(n.middlePrice)&&t.gte(o.middlePrice))return{targetAreaStatPoint:n,targetAreaStatPoints:e.slice(0,r+1)}}else if(t.gte(n.middlePrice)&&t.lte(o.middlePrice))return{targetAreaStatPoint:n,targetAreaStatPoints:e.slice(0,r+1)}}return{targetAreaStatPoint:null,targetAreaStatPoints:[]}}function v({x:t,width:e,minXLN10:i,maxXLN10:r}){const n=new f(t).div(e).multipliedBy(r.minus(i)).plus(i);return new f(10**n.toNumber())}function j({width:t,targetLN10:e,minXLN10:i,maxXLN10:r}){return e.minus(i).div(r.minus(i)).multipliedBy(t).toNumber()}function H({target:t}){return new f(Math.log10(t.toNumber()))}function S({width:t,height:A,params:y,baseTokenSymbol:S,quoteTokenSymbol:X,colorMap:k}){const{maxLeftHeight:B,maxRightHeight:C,leftStatAreaPoints:F,rightStatAreaPoints:M,minXLN10:W,maxXLN10:T}=function({params:t}){return i((()=>{const e=new f(t.b),i=new f(t.q);let r=new f(t.b0);const n=new f(t.q0),o=new f(t.i),l=new f(t.k),{R:s}=t;1===s&&r.eq(e)&&(r=L(e,i.minus(n),new f(1).div(o),l));const a=new b({i:o,K:l,B:e,Q:i,B0:r,Q0:n,R:s,mtFeeRate:new f(0),lpFeeRate:new f(0)}),d=new w,p=new f(a.B),g=[],m=[];let u=new f(0),h=new f(0);const c=d.GetMidPrice(a),x=i.gt(0)?e.div(i):new f(1);for(let t=0;t<=250;t++){let e=p.multipliedBy(t/100).multipliedBy(c.multipliedBy(x).multipliedBy(4));0===t&&(e=p.multipliedBy(1e-11));const i=null==d?void 0:d.QuerySellBase(e,a);if(i.isNaN()||!i.gt(0))g.push({giveAmount:e,getAmount:new f(0),price:new f(0)});else{const t=i.div(e);g.push({giveAmount:e,getAmount:i,price:t})}}for(let t=0;t<=250;t++){let e=p.multipliedBy(t/100).multipliedBy(c.multipliedBy(4));0===t&&(e=p.multipliedBy(1e-11));const i=null==d?void 0:d.QuerySellQuote(e,a);if(i.isNaN()||!i.gt(0))m.push({giveAmount:e,getAmount:new f(0),price:new f(0)});else{const t=e.dividedBy(i);m.push({giveAmount:e,getAmount:i,price:t})}}if(g.length<2&&m.length<2)return{leftStatAreaPoints:[],rightStatAreaPoints:[],maxLeftHeight:new f(10).multipliedBy(1.2),maxRightHeight:new f(10).multipliedBy(1.2),middlePriceLN10:new f(0),minXLN10:new f(-1),maxXLN10:new f(1)};const A=[];for(let t=1;t<g.length;t++){const e=g[t],{giveAmount:i,getAmount:r,price:n}=e,o=g[t-1];if(!n.isNaN()&&n.gt(0)&&o){const e=n.minus(o.price).abs(),l=i.minus(o.giveAmount).abs(),s=r.minus(o.getAmount).abs().multipliedBy(l);1===t&&A.push({area:r,price:n,middlePrice:n.plus(e.div(1.1)),rectangleHeight:s.plus(s.multipliedBy(.03))}),A.push({area:r,price:n,middlePrice:n.plus(e.div(2)),rectangleHeight:s}),u=f.max(s,u)}}const y=[];for(let t=1;t<m.length;t++){const e=m[t],{giveAmount:i,getAmount:r,price:n}=e,o=m[t-1],l=o.price,s=o.giveAmount,a=o.getAmount;if(!n.isNaN()&&n.gt(0)&&o){const e=n.minus(l).abs(),o=i.minus(s).abs(),d=r.minus(a).abs().multipliedBy(o);1===t&&y.push({area:r,price:n,middlePrice:n.minus(e.div(1.1)),rectangleHeight:d.plus(d.multipliedBy(.03))}),y.push({area:r,price:n,middlePrice:n.minus(e.div(2)),rectangleHeight:d}),h=f.max(d,h)}}const N=g.length>0?g[g.length-1]:m[0],P=m.length>0?m[0]:g[0],v=m.length>0?m[m.length-1]:g[0],j=N.price,H=v.price,S=P.price,X=new f(Math.log10(S.toNumber()));let k=j.gt(0)?new f(Math.log10(j.toNumber())):new f(-Math.log10(H.toNumber())),B=H.gt(0)?new f(Math.log10(H.toNumber())):new f(-Math.log10(j.toNumber()));const C=f.max(X.minus(k).abs(),B.minus(X).abs());return k=X.minus(C),B=X.plus(C),{leftStatAreaPoints:A,rightStatAreaPoints:y,maxLeftHeight:u.multipliedBy(1.2),maxRightHeight:h.multipliedBy(1.2),minXLN10:k,maxXLN10:B,middlePriceLN10:X}}),[t])}({params:y}),J=A-30.13,q=r(null),O=e({grid:"#2A2A2D",midPriceLine:"#313335",leftBg:[0,"rgba(38, 39, 41, 0.3)",1,"#31645d"],leftLine:"#55f6db",leftColor:"",rightBg:[0,"rgba(38, 39, 41, 0.3)",1,"#67303d"],rightLine:"#ff4f73",rightColor:"",tooltipBg:"#121212",tooltipColor:void 0,textColor:"#606066"},k),R=e=>{var i;const{current:r}=q,n=e.target;if(n&&r){const e=null===(i=n.getStage())||void 0===i?void 0:i.getPointerPosition();if(e){const{x:i}=e,n=t/2;if(Math.abs(i-n)<=2)return;if(i<=2||t-i<=2)return;const s=v({x:i,width:t,minXLN10:W,maxXLN10:T});let a=null,d=[];const p=i<n;if(p){const t=P({areaPoints:F,targetPrice:s,isLeft:p});a=t.targetAreaStatPoint,d=t.targetAreaStatPoints}else{const t=P({areaPoints:M,targetPrice:s,isLeft:p});a=t.targetAreaStatPoint,d=t.targetAreaStatPoints}if(a){const e=H({target:a.middlePrice}),n=j({minXLN10:W,maxXLN10:T,width:t,targetLN10:e}),s=N({maxHeight:p?B:C,gridAreaHeight:J,value:a.rectangleHeight}),g=r.findOne("#tooltip"),m=r.findOne("#toolTipVertLine"),u=r.findOne("#joinCircle"),h=r.findOne("#tooltip-Text"),c=r.findOne("#tooltip-tag"),f=r.findOne("#priceTextLabel"),L=null==f?void 0:f.findOne("#priceTextLabel-text"),b=r.findOne("#area");null==g||g.position({x:n,y:s-5-6}),null==h||h.fill(O.tooltipColor||(p?"#00FAD9":"#FF5072")),null==h||h.text(p?o("pool.chart.liquidity-chart-buy",{amount:x(a.area),symbol:S,price:x(a.price)}):o("pool.chart.liquidity-chart-sell",{amount:x(a.area),symbol:X,price:x(a.price)})),g&&c&&(g.width()/2>i?(c.pointerDirection("left"),c.pointerHeight(15),c.pointerWidth(8),g.offsetX(-11),g.offsetY(-11)):g.width()/2+i>t?(c.pointerDirection("right"),c.pointerHeight(15),c.pointerWidth(8),g.offsetX(11),g.offsetY(-11)):(c.pointerDirection("down"),c.pointerHeight(8),c.pointerWidth(15),g.offsetX(0),g.offsetY(0))),null==m||m.points([n,J,n,s]),null==m||m.stroke(p?"#55f6db":"#ff4f73");let w=p?"rgb(86, 246, 218)":"#FF5072",A=p?"rgba(86, 246, 218, 0.3)":"rgba(255, 80, 114, 0.3)";O.leftLine&&O.rightLine&&(w=p?O.leftLine:O.rightLine,A=p?`rgba(${l(O.leftLine)}, 0.4)`:`rgba(${l(O.rightLine)}, 0.4)`),u&&(u.x(n),u.y(s),u.fill(w),u.stroke(A)),f&&(f.x(n),f.y(J+8.08+1),f.offsetX(f.width()/2),f.x()-f.width()/2<0?f.x(f.width()/2):f.x()+f.width()/2>t?f.x(t-f.width()/2):f.x(i)),L&&(L.fill(O.tooltipColor||(p?"#00FAD9":"#FF5072")),L.text(x(a.price)));const y=[];for(const e of d){const{middlePrice:i,rectangleHeight:r}=e,n=H({target:i}),o=j({minXLN10:W,maxXLN10:T,width:t,targetLN10:n}),l=N({maxHeight:p?B:C,gridAreaHeight:J,value:r});y.push(o,l+1)}const P=y.slice(),[v,k]=P;p?(P.push(n,s),P.push(n,J),P.push(v,J),P.push(v,k)):(P.unshift(v,J),P.unshift(n,J),P.unshift(n,s)),b&&(b.points(P),b.fill(p?O.leftLine||"#2c5b56":O.rightLine||"#7b3a48")),r.show()}}}},D=function({gridAreaHeight:t,gridAreaWidth:e,horizontalLineCount:r,verticalLineCount:n,color:o="#2A2A2D"}){return i((()=>{const i=[],l=t/(r+1),a=[],d=e/(n+1);for(let t=0;t<r;t++){const r=l*(t+1);i.push([0,r,e,r])}for(let e=0;e<n;e++){const i=d*(e+1);a.push([i,0,i,t])}return c.exports.jsxs(c.exports.Fragment,{children:[i.map(((t,e)=>c.exports.jsx(s,{points:t,stroke:o,strokeWidth:1,lineCap:"round",lineJoin:"round",tension:1,listening:!1},e))),a.map(((t,e)=>c.exports.jsx(s,{points:t,stroke:o,strokeWidth:1,lineCap:"round",lineJoin:"round",tension:1,listening:!1},e)))]})}),[t,e,r,n,o])}({gridAreaHeight:J,gridAreaWidth:t,horizontalLineCount:9,verticalLineCount:7,color:O.grid}),z=function({minXLN10:t,maxXLN10:e,labelCount:r,gridAreaHeight:n,gridAreaWidth:o,color:l="#606066"}){return i((()=>{const i=o/(r+1),d=[],p=[];for(let l=0;l<r;l++){const r=i/2+i*l;d.push({x:r,y:n+10.08+1,text:x(v({x:i*(l+1),width:o,minXLN10:t,maxXLN10:e}))});const s=i*(l+1);p.push([s,n+1,s,n+4+1])}return c.exports.jsxs(c.exports.Fragment,{children:[d.map(((t,e)=>c.exports.jsx(a,{x:t.x,y:t.y,text:t.text,fontSize:14,fontFamily:"Manrope",fill:l,width:i,padding:0,align:"center",verticalAlign:"bottom",listening:!1},e))),p.map(((t,e)=>c.exports.jsx(s,{points:t,stroke:l,strokeWidth:1,lineCap:"butt",lineJoin:"miter",tension:1,listening:!1},e)))]})}),[t,e,n,o,r])}({gridAreaHeight:J,gridAreaWidth:t,labelCount:7,minXLN10:W,maxXLN10:T,color:O.textColor}),G=function({gridAreaHeight:t,gridAreaWidth:e,color:r="#606066"}){return i((()=>{const i=e/2;return c.exports.jsx(s,{points:[i,0,i,t-1],stroke:r,strokeWidth:1,lineCap:"round",lineJoin:"round",tension:1,listening:!1})}),[t,e,r])}({gridAreaHeight:J,gridAreaWidth:t,color:O.midPriceLine}),{leftLine:Q,rightLine:E}=function({leftStatAreaPoints:t,rightStatAreaPoints:e,minXLN10:r,maxXLN10:n,maxLeftHeight:o,maxRightHeight:l,gridAreaWidth:a,gridAreaHeight:d,colorMap:p}){return{leftLine:i((()=>{if(t.length<1)return c.exports.jsx(c.exports.Fragment,{});const e=[];let i=d;for(const l of t){const{middlePrice:t,rectangleHeight:s}=l,p=H({target:t}),g=j({minXLN10:r,maxXLN10:n,width:a,targetLN10:p}),m=N({maxHeight:o,gridAreaHeight:d,value:s});e.push(g,m),m<i&&(i=m)}const l=e.slice(),[g,m]=l,u=l[l.length-1],h=l[l.length-2];return l.push(h,u),l.push(h,d),l.push(g,d),l.push(g,m),c.exports.jsxs(c.exports.Fragment,{children:[c.exports.jsx(s,{points:l,closed:!0,listening:!1,lineCap:"round",lineJoin:"round",fillLinearGradientStartPoint:{x:0,y:d},fillLinearGradientEndPoint:{x:0,y:i},fillLinearGradientColorStops:p.leftBg}),c.exports.jsx(s,{points:e,stroke:p.leftLine,strokeWidth:2,lineCap:"round",lineJoin:"round",listening:!1})]})}),[t,a,r,n,d,o]),rightLine:i((()=>{if(e.length<1)return c.exports.jsx(c.exports.Fragment,{});const t=[];let i=d;for(const o of e){const{middlePrice:e,rectangleHeight:s}=o,p=H({target:e}),g=j({minXLN10:r,maxXLN10:n,width:a,targetLN10:p}),m=N({maxHeight:l,gridAreaHeight:d,value:s});t.push(g,m),m<i&&(i=m)}const o=t.slice(),[g]=o;return o.unshift(g,d),o.unshift(a,d),c.exports.jsxs(c.exports.Fragment,{children:[c.exports.jsx(s,{points:o,closed:!0,listening:!1,lineCap:"round",lineJoin:"round",fillLinearGradientStartPoint:{x:0,y:d},fillLinearGradientEndPoint:{x:0,y:i},fillLinearGradientColorStops:p.rightBg}),c.exports.jsx(s,{points:t,stroke:p.rightLine,strokeWidth:2,lineCap:"round",lineJoin:"round",listening:!1})]})}),[e,a,r,n,d,l])}}({leftStatAreaPoints:F,rightStatAreaPoints:M,minXLN10:W,maxXLN10:T,maxLeftHeight:B,maxRightHeight:C,gridAreaWidth:t,gridAreaHeight:J,colorMap:O});return c.exports.jsxs(d,{width:t,height:A,onMouseMove:R,onMouseOver:R,onMouseEnter:R,onMouseOut:()=>{const{current:t}=q;t&&t.hide()},children:[c.exports.jsxs(p,{children:[c.exports.jsx(g,{x:0,y:0,width:t,height:J,stroke:O.grid,strokeWidth:1}),D,z,Q,E,G]}),c.exports.jsxs(p,{ref:q,visible:!1,children:[c.exports.jsx(s,{points:[],closed:!0,listening:!1,lineCap:"round",lineJoin:"round",id:"area"}),c.exports.jsx(s,{points:[],strokeWidth:1,stroke:"#ff4f73",lineJoin:"round",lineCap:"round",dash:[4,6],id:"toolTipVertLine"}),c.exports.jsx(m,{x:0,y:0,radius:5,fill:"#FF5072",stroke:"rgba(255, 80, 114, 0.3)",strokeWidth:12,id:"joinCircle"}),c.exports.jsxs(u,{listening:!1,x:0,y:0,id:"priceTextLabel",children:[c.exports.jsx(h,{fill:O.tooltipBg,id:"priceTextLabel-tag"}),c.exports.jsx(a,{text:"-",fontSize:14,fontFamily:"Manrope",padding:2,fill:"#FF5072",id:"priceTextLabel-text"})]}),c.exports.jsxs(u,{listening:!1,id:"tooltip",children:[c.exports.jsx(h,{fill:O.tooltipBg,pointerDirection:"down",pointerWidth:15,pointerHeight:8,cornerRadius:8,lineJoin:"round",id:"tooltip-tag"}),c.exports.jsx(a,{text:"",fontFamily:"Manrope",fontSize:12,lineHeight:17/12,padding:n,fill:"#FF5072",id:"tooltip-Text"})]})]})]})}const X=({width:t=834,height:e=462,baseTokenSymbol:i,quoteTokenSymbol:r,pmmModel:n,pmmParams:l,midPrice:s,notShowTipText:a,colorMap:d})=>c.exports.jsxs(A,{children:[void 0!==l&&void 0!==s&&void 0!==n&&void 0!==s&&c.exports.jsx(S,{width:t,height:e,params:l,midPrice:s,pmmModel:n,baseTokenSymbol:i,quoteTokenSymbol:r,colorMap:d}),a?"":c.exports.jsxs(y,{children:["* ",o("pool.chart.liquidity-chart-tip",{baseTokenSymbol:i})]})]});export{X as default};