@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,15 @@
1
+ import React from 'react';
2
+ export default function WidgetConfirm({ open, onClose, title, children, singleBtn, danger, singleBtnText, cancelText, confirmText, disabledConfirm, confirmLoading, isManualClose, onConfirm, }: React.PropsWithChildren<{
3
+ open: boolean;
4
+ onClose: () => void;
5
+ title?: React.ReactNode;
6
+ singleBtn?: boolean;
7
+ danger?: boolean;
8
+ singleBtnText?: React.ReactNode;
9
+ cancelText?: React.ReactNode;
10
+ confirmText?: React.ReactNode;
11
+ disabledConfirm?: boolean;
12
+ confirmLoading?: boolean;
13
+ isManualClose?: boolean;
14
+ onConfirm?: () => void;
15
+ }>): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@dodoex/components';
3
+ export default function WidgetContainer({ sx, ...props }: BoxProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export interface WidgetDialogProps {
3
+ open: boolean;
4
+ onClose?: () => void;
5
+ afterClose?: () => void;
6
+ title?: string | React.ReactNode;
7
+ titleCenter?: boolean;
8
+ rightSlot?: React.ReactNode;
9
+ canBack?: boolean;
10
+ children: React.ReactNode;
11
+ width?: number | string;
12
+ height?: number | string;
13
+ testId?: string;
14
+ }
15
+ export default function WidgetDialog({ open, onClose, afterClose, title, titleCenter, rightSlot, canBack, children, width, height, testId, }: WidgetDialogProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const BaseButton: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -0,0 +1,9 @@
1
+ import React, { CSSProperties } from 'react';
2
+ declare type Props = {
3
+ display?: CSSProperties['display'];
4
+ hidden?: boolean;
5
+ children?: JSX.Element | Array<JSX.Element | undefined> | string | undefined;
6
+ style?: React.CSSProperties;
7
+ };
8
+ export declare const Display: React.MemoExoticComponent<({ display, hidden, children, style, }: Props) => JSX.Element>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const Input: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ error?: boolean | undefined;
7
+ }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare function NumberInput({ value, onChange, onBlur, }: {
3
+ value: string;
4
+ onChange?: (v: string) => void;
5
+ onBlur?: () => void;
6
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface ISwtichBtn extends React.HTMLProps<HTMLInputElement> {
3
+ shouldSwitch?: boolean;
4
+ variant?: 'dark' | 'light';
5
+ }
6
+ export declare const TogglePriceIcon: ({ shouldSwitch, variant }: ISwtichBtn) => JSX.Element;
7
+ export declare const ToggleIconWithoutBg: () => JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare function TokenLogo({ src, width }: {
3
+ src: string;
4
+ width: number;
5
+ }): JSX.Element;
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { PMMModel, PmmModelParams } from '@dodoex/api';
3
+ import BigNumber from 'bignumber.js';
4
+ import { BaseMinAndZoomMultiples } from './helper';
5
+ export declare const bgColor = "rgba(38, 39, 41, 0.3)";
6
+ export interface ColorMap {
7
+ grid?: string;
8
+ midPriceLine?: string;
9
+ leftBg?: (string | number)[];
10
+ leftLine?: string;
11
+ leftColor?: string;
12
+ rightBg?: (string | number)[];
13
+ rightLine?: string;
14
+ rightColor?: string;
15
+ tooltipBg?: string;
16
+ tooltipColor?: string;
17
+ }
18
+ export declare type Props = {
19
+ width: number;
20
+ height: number;
21
+ params: PmmModelParams;
22
+ midPrice: BigNumber;
23
+ pmmModel: PMMModel;
24
+ baseTokenSymbol: string;
25
+ quoteTokenSymbol: string;
26
+ baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
27
+ colorMap?: ColorMap;
28
+ setBaseMinAndZoomMultiples: React.Dispatch<React.SetStateAction<BaseMinAndZoomMultiples>>;
29
+ };
30
+ export declare function DepthChartKonva({ width, height, midPrice, pmmModel, params, baseTokenSymbol, quoteTokenSymbol, baseMinAndZoomMultiples, colorMap, setBaseMinAndZoomMultiples, }: Props): JSX.Element;
@@ -0,0 +1,125 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import Konva from 'konva';
3
+ import { PMMModel } from '@dodoex/api';
4
+ export declare function colorRgb(str: string): string;
5
+ export declare type EvaluatedPoint = {
6
+ side: 'bid' | 'ask' | 'no-one';
7
+ vert: BigNumber;
8
+ base: BigNumber;
9
+ quote: BigNumber;
10
+ };
11
+ export declare type BaseMinAndZoomMultiples = {
12
+ baseMin: BigNumber;
13
+ zoomMultiples: number;
14
+ /** Price impact point active display hover */
15
+ targetMarginPriceX: number;
16
+ };
17
+ export declare function evalPoint({ val, model, }: {
18
+ val: BigNumber;
19
+ model: PMMModel;
20
+ midPrice: BigNumber;
21
+ }): EvaluatedPoint;
22
+ /**
23
+ * Returns two vertical coordinates, buyBaseVert on the left and sellBaseVert on the right.
24
+ * @param param0
25
+ */
26
+ export declare function computeBaseVert({ midPrice, q, q0, pmmModel, }: {
27
+ midPrice: BigNumber;
28
+ q: number;
29
+ q0: number;
30
+ pmmModel: PMMModel;
31
+ }): {
32
+ buyBaseVert: BigNumber;
33
+ sellBaseVert: BigNumber;
34
+ };
35
+ /**
36
+ * // 1000/800 The price represented by one pixel
37
+ // Maximum value on the right side of the middle price = middle price * 10 = middle price * 10^1
38
+ // Calculate the x-axis coordinate (price): middle price*10^(xPortion*x)+middle price; x is the number of equal parts that divide the right half into 50 parts
39
+ * @param chartWidth icon width
40
+ * @param zoomMultiples magnification factors
41
+ * @returns
42
+ */
43
+ export declare function computeXPortion(chartWidth: number, zoomMultiples?: number): BigNumber;
44
+ export declare function updateTooltip({ tooltip, x, chartWidth, chartHeight, buyBaseVert, sellBaseVert, pmmModel, midPrice, baseTokenSymbol, quoteTokenSymbol, t, baseMinAndZoomMultiples, isHover, color, leftColor, rightColor, }: {
45
+ x: number;
46
+ tooltip: Konva.Layer;
47
+ chartWidth: number;
48
+ chartHeight: number;
49
+ buyBaseVert: BigNumber;
50
+ sellBaseVert: BigNumber;
51
+ pmmModel: PMMModel;
52
+ midPrice: BigNumber;
53
+ baseTokenSymbol: string;
54
+ quoteTokenSymbol: string;
55
+ t: any;
56
+ baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
57
+ isHover?: boolean;
58
+ color?: string;
59
+ leftColor?: string;
60
+ rightColor?: string;
61
+ }): void;
62
+ /**
63
+ * Calculate the minimum value on the left by pulling distance or button click
64
+ */
65
+ export declare function computeBaseMinByDistance({ dragDistance, prevBaseMin, chartWidth, zoomMultiples, }: {
66
+ dragDistance: number;
67
+ prevBaseMin: BigNumber;
68
+ chartWidth: number;
69
+ zoomMultiples: number;
70
+ }): BigNumber;
71
+ export declare const baseZoomMultiples = 1;
72
+ export declare function computeZoomMultiplesWhenZoom({ prevZoomMultiples, zoomIn, }: {
73
+ prevZoomMultiples: number;
74
+ zoomIn: boolean;
75
+ }): number;
76
+ /**
77
+ * Given a price target corresponding to the abscissa, calculate the abscissa of the point
78
+ * The buying impact point is at the left 1/4 position
79
+ * The selling impact point is 3/4 on the right
80
+ *
81
+ * Returns a coordinate point, baseMin and zoomMultiples
82
+ *
83
+ * Take the initial state as the starting point, that is, midPrice * 10 ^ -1 as the starting point of the horizontal axis, and it is a left-right symmetrical state, that is, the logarithm of the horizontal axis is from -1 -> 0 -> 1
84
+ *
85
+ * type === 'sell'
86
+ * targetPrice = midPrice * 10 ^ n
87
+ * n = Math.log10(targetPrice / midPrice)
88
+ * n = maxN * (3 / 4)
89
+ *
90
+ * If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
91
+ * If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If you still do not adjust the zoom factor, hit the specified point directly, otherwise you need to adjust the zoom factor (avoid inputting extremely small values) The value cannot be scaled to the specified range, resulting in stuck)
92
+ */
93
+ export declare function computeTargetXByTargetPrice({ type, targetPrice, midPrice, width, }: {
94
+ type: 'buy' | 'sell';
95
+ targetPrice: BigNumber;
96
+ midPrice: BigNumber;
97
+ width: number;
98
+ }): {
99
+ zoomMultiples: BigNumber;
100
+ targetX: number;
101
+ };
102
+ /**
103
+ * If the new price is within the existing range, the zoom factor will not be adjusted (the price impact will not change the shape of the graph after graph scaling or translation)
104
+ * If it is not within the current interval, check whether it is midPrice * 10 ^-1 and midPrice * 10^1. If it is within the range, adjust the zoom factor to 1, and then impact to the specified point, otherwise you need to adjust the zoom factor ( Avoid entering extremely small values ​​that may result in inability to scale to the specified range and cause stucks)
105
+ *
106
+ * Returns an abscissa and a flag indicating whether to skip
107
+ */
108
+ export declare function beforePriceImpactEffect({ currentBaseMinAndZoomMultiples, targetPrice, midPrice, width, }: {
109
+ currentBaseMinAndZoomMultiples: BaseMinAndZoomMultiples;
110
+ targetPrice: BigNumber;
111
+ midPrice: BigNumber;
112
+ width: number;
113
+ }): {
114
+ isSkip: boolean;
115
+ targetX: number;
116
+ baseMin: BigNumber;
117
+ zoomMultiples: number;
118
+ };
119
+ /**
120
+ * Recalculate baseMin after the zoom factor changes
121
+ */
122
+ export declare function computeBaseAfterZoom({ midPrice, zoomMultiples, }: {
123
+ midPrice: BigNumber;
124
+ zoomMultiples: number;
125
+ }): BigNumber;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import BigNumber from 'bignumber.js';
3
+ import { ColorMap } from './DepthChartKonva';
4
+ import { PMMModel, PmmModelParams } from '@dodoex/api';
5
+ declare type Props = {
6
+ chartId: string;
7
+ width?: number;
8
+ baseTokenSymbol: string;
9
+ quoteTokenSymbol: string;
10
+ pmmModel?: PMMModel;
11
+ pmmParams?: PmmModelParams;
12
+ midPrice?: BigNumber;
13
+ height?: number;
14
+ notShowAmountInput?: boolean;
15
+ colorMap?: ColorMap;
16
+ };
17
+ declare const DepthChart: React.FC<Props>;
18
+ export default DepthChart;
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const AmountInputContainer: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const InputSectionWrapper: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ borderColor?: string | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const PriceImpactWrapper: import("@emotion/styled").StyledComponent<{
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
20
+ export declare const OptButtonGroup: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any> | undefined;
23
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
24
+ export declare const OptButton: import("@emotion/styled").StyledComponent<{
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ } & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ }, {}, {}>;
@@ -0,0 +1,21 @@
1
+ import { PMMModel } from '@dodoex/api';
2
+ import BigNumber from 'bignumber.js';
3
+ import { BaseMinAndZoomMultiples } from './helper';
4
+ export declare function useDepthLinePoints({ chartHeight, chartWidth, midPrice, xPoints, pmmModel, baseMinAndZoomMultiples, buyYPortion, sellYPortion, }: {
5
+ chartHeight: number;
6
+ chartWidth: number;
7
+ xPoints: number;
8
+ midPrice: BigNumber;
9
+ baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
10
+ buyYPortion: BigNumber;
11
+ sellYPortion: BigNumber;
12
+ pmmModel: PMMModel;
13
+ }): {
14
+ quoteLinePoints: number[];
15
+ quoteLineAreaPoints: number[];
16
+ quoteLineAreaLinearGradientEndPointY: number;
17
+ baseLinePoints: number[];
18
+ baseLineAreaPoints: number[];
19
+ baseLineAreaLinearGradientEndPointY: number;
20
+ midPriceLinePoints: number[];
21
+ };
@@ -0,0 +1,9 @@
1
+ export declare function useGridLinePoints({ chartHeight, chartWidth, horizontalLineCount, verticalLineCount, }: {
2
+ chartHeight: number;
3
+ chartWidth: number;
4
+ horizontalLineCount: number;
5
+ verticalLineCount: number;
6
+ }): {
7
+ horizontalGridLines: number[][];
8
+ verticalGridLines: number[][];
9
+ };
@@ -0,0 +1,15 @@
1
+ import { BaseMinAndZoomMultiples } from './helper';
2
+ export declare function useHorizontalLabelPoints({ chartHeight, chartWidth, xAxisPoints, oneXPx, baseMinAndZoomMultiples, }: {
3
+ chartHeight: number;
4
+ chartWidth: number;
5
+ xAxisPoints: number;
6
+ oneXPx: number;
7
+ baseMinAndZoomMultiples: BaseMinAndZoomMultiples;
8
+ }): {
9
+ horizontalLabelTickPoints: number[][];
10
+ horizontalLabelTextPoints: {
11
+ x: number;
12
+ y: number;
13
+ text: string;
14
+ }[];
15
+ };
@@ -0,0 +1,19 @@
1
+ import { PmmModelParams } from '@dodoex/api';
2
+ import BigNumber from 'bignumber.js';
3
+ /**
4
+ * Calculate marginPrice for buying or selling target baseToken
5
+ * @param param0
6
+ * @returns
7
+ */
8
+ export declare function computeMarginPrice({ params, target, isBuy, }: {
9
+ params: PmmModelParams;
10
+ target: BigNumber;
11
+ isBuy?: boolean;
12
+ }): BigNumber;
13
+ /**
14
+ * Calculate the margin price for selling target baseTokens
15
+ */
16
+ export declare function computeSellMarginPrice({ params, target, }: {
17
+ params: PmmModelParams;
18
+ target: BigNumber;
19
+ }): BigNumber;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare function DepthChartV2({ title, titleColor, description, descriptionColor, buttonColor, placeholder, }: {
3
+ title: string;
4
+ titleColor: string;
5
+ description: string;
6
+ descriptionColor: string;
7
+ buttonColor: string;
8
+ placeholder: React.ReactElement;
9
+ }): JSX.Element;
10
+ export default DepthChartV2;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare const Title: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const Description: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const OptButton: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ }, {}, {}>;
@@ -0,0 +1,9 @@
1
+ declare type Props = {
2
+ id: string;
3
+ };
4
+ /**
5
+ * 防止鼠标在图上滚动滚轮时页面上下滑动
6
+ * @param param0
7
+ */
8
+ export declare const usePreventWheel: ({ id }: Props) => void;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function chartT(key: string, params: any): string;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { PMMModel, PmmModelParams } from '@dodoex/api';
3
+ import BigNumber from 'bignumber.js';
4
+ export declare const bgColor = "rgba(38, 39, 41, 0.3)";
5
+ export interface ColorMap {
6
+ grid?: string;
7
+ midPriceLine?: string;
8
+ leftBg?: (string | number)[];
9
+ leftLine?: string;
10
+ leftColor?: string;
11
+ rightBg?: (string | number)[];
12
+ rightLine?: string;
13
+ rightColor?: string;
14
+ tooltipBg?: string;
15
+ tooltipColor?: string;
16
+ textColor?: string;
17
+ }
18
+ export declare type Props = {
19
+ width: number;
20
+ height: number;
21
+ params: PmmModelParams;
22
+ midPrice: BigNumber;
23
+ pmmModel: PMMModel;
24
+ baseTokenSymbol: string;
25
+ quoteTokenSymbol: string;
26
+ colorMap?: ColorMap;
27
+ };
28
+ export declare function LiquidityChartKonva({ width, height, params, baseTokenSymbol, quoteTokenSymbol, colorMap, }: Props): JSX.Element;
@@ -0,0 +1,47 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { StatAreaPoint } from './usePoints';
3
+ export declare function computePointYByHeight({ maxHeight, gridAreaHeight, value, }: {
4
+ maxHeight: BigNumber;
5
+ gridAreaHeight: number;
6
+ value: BigNumber;
7
+ }): number;
8
+ export declare function computeHeightByPointY({ maxY, gridAreaHeight, y, }: {
9
+ maxY: BigNumber;
10
+ gridAreaHeight: number;
11
+ y: number;
12
+ }): BigNumber;
13
+ /**
14
+ * Obtain the closest data point from the data point collection through the coordinate point x and a series of point data subsets from the point to the center line.
15
+ */
16
+ export declare function getStatAreaPointByX({ targetPrice, areaPoints, isLeft, }: {
17
+ targetPrice: BigNumber;
18
+ areaPoints: StatAreaPoint[];
19
+ isLeft: boolean;
20
+ }): {
21
+ targetAreaStatPoint: StatAreaPoint | null;
22
+ targetAreaStatPoints: StatAreaPoint[];
23
+ };
24
+ /**
25
+ * Given a pixel's x-coordinate, width, logarithm of the minimum value of the abscissa, and logarithm of the maximum value of the abscissa, calculate the logarithmic coordinate corresponding to the point
26
+ */
27
+ export declare function computeTargetPrice({ x, width, minXLN10, maxXLN10, }: {
28
+ x: number;
29
+ width: number;
30
+ minXLN10: BigNumber;
31
+ maxXLN10: BigNumber;
32
+ }): BigNumber;
33
+ /**
34
+ * Given the logarithm of a coordinate, the width, the logarithm of the minimum value of the abscissa, and the logarithm of the maximum value of the abscissa, calculate the x coordinate corresponding to the point
35
+ */
36
+ export declare function computeTargetX({ width, targetLN10, minXLN10, maxXLN10, }: {
37
+ width: number;
38
+ targetLN10: BigNumber;
39
+ minXLN10: BigNumber;
40
+ maxXLN10: BigNumber;
41
+ }): number;
42
+ /**
43
+ * Calculate logarithm
44
+ */
45
+ export declare function computeTargetLN({ target }: {
46
+ target: BigNumber;
47
+ }): BigNumber;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { PMMModel, PmmModelParams } from '@dodoex/api';
3
+ import BigNumber from 'bignumber.js';
4
+ import { ColorMap } from './LiquidityChartKonva';
5
+ declare type Props = {
6
+ width?: number;
7
+ height?: number;
8
+ baseTokenSymbol: string;
9
+ quoteTokenSymbol: string;
10
+ pmmModel?: PMMModel;
11
+ pmmParams?: PmmModelParams;
12
+ midPrice?: BigNumber;
13
+ notShowTipText?: boolean;
14
+ colorMap?: ColorMap;
15
+ };
16
+ declare const LiquidityChart: React.FC<Props>;
17
+ export default LiquidityChart;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const TipWrapper: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare function useGridLine({ gridAreaHeight, gridAreaWidth, horizontalLineCount, verticalLineCount, color, }: {
3
+ gridAreaHeight: number;
4
+ gridAreaWidth: number;
5
+ horizontalLineCount: number;
6
+ verticalLineCount: number;
7
+ color?: string;
8
+ }): JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import BigNumber from 'bignumber.js';
3
+ export declare function useHorizontalLabel({ minXLN10, maxXLN10, labelCount, gridAreaHeight, gridAreaWidth, color, }: {
4
+ minXLN10: BigNumber;
5
+ maxXLN10: BigNumber;
6
+ labelCount: number;
7
+ gridAreaHeight: number;
8
+ gridAreaWidth: number;
9
+ color?: string;
10
+ }): JSX.Element;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import BigNumber from 'bignumber.js';
3
+ import { ColorMap } from './LiquidityChartKonva';
4
+ import { StatAreaPoint } from './usePoints';
5
+ export declare function useLiquidityLine({ leftStatAreaPoints, rightStatAreaPoints, minXLN10, maxXLN10, maxLeftHeight, maxRightHeight, gridAreaWidth, gridAreaHeight, colorMap, }: {
6
+ leftStatAreaPoints: Array<StatAreaPoint>;
7
+ rightStatAreaPoints: Array<StatAreaPoint>;
8
+ minXLN10: BigNumber;
9
+ maxXLN10: BigNumber;
10
+ maxLeftHeight: BigNumber;
11
+ maxRightHeight: BigNumber;
12
+ gridAreaWidth: number;
13
+ gridAreaHeight: number;
14
+ colorMap: ColorMap;
15
+ }): {
16
+ leftLine: JSX.Element;
17
+ rightLine: JSX.Element;
18
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare function useMiddleLine({ gridAreaHeight, gridAreaWidth, color, }: {
3
+ gridAreaHeight: number;
4
+ gridAreaWidth: number;
5
+ color?: string;
6
+ }): JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { PmmModelParams } from '@dodoex/api';
2
+ import BigNumber from 'bignumber.js';
3
+ /**
4
+ * data point
5
+ */
6
+ export declare type StatPoint = {
7
+ giveAmount: BigNumber;
8
+ getAmount: BigNumber;
9
+ price: BigNumber;
10
+ };
11
+ /**
12
+ * Drawing method:
13
+ Substitute the minimum value to get the height of the center point, which is the bottom edge of the area chart. Substitute the maximum value to get the vertex of the area chart. The length of the bottom edge from the vertex is the price range.
14
+
15
+ Divide the total area into one hundred equal parts. Calculate each part on the basis of the previous part. Substitute the new area into the formula to get a new price. The difference from the previous price is the width of the rectangle. The area is divided by The width is the height of the rectangle, which is the ordinate.
16
+
17
+ First, calculate a series of points as a point set based on the rectangular accumulation method.
18
+
19
+ When the mouse hovers, the abscissa is the price. Find the closest price in the point set. Use this price as the end point and the center line as the starting point to get a subset of the point set. You can draw a line by combining the center line and the abscissa. The area of ​​the trapezoid can be drawn.
20
+
21
+ Update: Taking Δl as the ordinate, Δl = (the difference between the quantity passed in from the previous point and the next point) * (the difference between the quantity obtained from the previous point and the next point)
22
+ */
23
+ export declare type StatAreaPoint = {
24
+ area: BigNumber;
25
+ price: BigNumber;
26
+ middlePrice: BigNumber;
27
+ rectangleHeight: BigNumber;
28
+ };
29
+ export declare function usePoints({ params }: {
30
+ params: PmmModelParams;
31
+ }): {
32
+ leftStatAreaPoints: StatAreaPoint[];
33
+ rightStatAreaPoints: StatAreaPoint[];
34
+ maxLeftHeight: BigNumber;
35
+ maxRightHeight: BigNumber;
36
+ minXLN10: BigNumber;
37
+ maxXLN10: BigNumber;
38
+ middlePriceLN10: BigNumber;
39
+ };
@@ -0,0 +1,3 @@
1
+ export declare const labelPadding = 12;
2
+ export declare const toolTipMarginBottom = 6;
3
+ export declare const chartOffsetYBCToolTip: number;
@@ -1,3 +1,4 @@
1
+ import { ContractRequests, GraphQLRequests, TokenApi } from '@dodoex/api';
1
2
  import { ChainId } from './chains';
2
3
  export declare enum APIServiceKey {
3
4
  routePrice = "routePrice",
@@ -14,3 +15,7 @@ export declare const getCGTokenListAPI: (chainId: ChainId) => any;
14
15
  export declare const RoutePriceAPI = "https://api.dodoex.io/route-service/v2/widget/getdodoroute";
15
16
  export declare const FiatPriceAPI = "https://api.dodoex.io/frontend-price-api/current/batch";
16
17
  export declare function getAPIService(key: APIServiceKey, serviceProps?: Partial<APIServices>): string;
18
+ export declare const contractRequests: ContractRequests;
19
+ export declare const tokenContractRequests: ContractRequests;
20
+ export declare const tokenApi: TokenApi;
21
+ export declare const graphQLRequests: GraphQLRequests;
@@ -7,3 +7,4 @@ export interface ChainListItem {
7
7
  mainnet?: ChainId;
8
8
  }
9
9
  export declare const chainListMap: Map<ChainId, ChainListItem>;
10
+ export declare const isTestNet: (chainId: ChainId) => boolean;