@dodoex/widgets 3.0.0-beta.3 → 3.0.0-beta.4

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 (765) hide show
  1. package/package.json +3 -3
  2. package/dist/cjs/e2e/connect.test.d.ts +0 -6
  3. package/dist/cjs/e2e/constants.d.ts +0 -87
  4. package/dist/cjs/e2e/default.test.d.ts +0 -6
  5. package/dist/cjs/e2e/setup.d.ts +0 -4
  6. package/dist/cjs/failed-list-e6c1e563-7122998d.cjs +0 -1
  7. package/dist/cjs/helper-889c5e9a.cjs +0 -1
  8. package/dist/cjs/helper-CT7gzva6.cjs +0 -1
  9. package/dist/cjs/helper-DbNa5407.cjs +0 -1
  10. package/dist/cjs/index-183743c8.cjs +0 -45
  11. package/dist/cjs/index-1904ef51.cjs +0 -50
  12. package/dist/cjs/index-19cf4c6e.cjs +0 -50
  13. package/dist/cjs/index-1a21b21a.cjs +0 -45
  14. package/dist/cjs/index-246a9973.cjs +0 -50
  15. package/dist/cjs/index-256d5f78.cjs +0 -12
  16. package/dist/cjs/index-385J8FnP.cjs +0 -58
  17. package/dist/cjs/index-39149ce7.cjs +0 -45
  18. package/dist/cjs/index-4190bae6.cjs +0 -58
  19. package/dist/cjs/index-457c65f3.cjs +0 -78
  20. package/dist/cjs/index-4qnGWy2s.cjs +0 -58
  21. package/dist/cjs/index-5eca89d2.cjs +0 -50
  22. package/dist/cjs/index-64af8ffd.cjs +0 -45
  23. package/dist/cjs/index-Btn_JJqA.cjs +0 -78
  24. package/dist/cjs/index-C7VFgrL1.cjs +0 -12
  25. package/dist/cjs/index-DrSpvsIR.cjs +0 -78
  26. package/dist/cjs/index-Dvm2UvHH.cjs +0 -12
  27. package/dist/cjs/index-f2a80623.cjs +0 -45
  28. package/dist/cjs/locales/en-US.js +0 -5
  29. package/dist/cjs/locales/zh-CN.js +0 -5
  30. package/dist/cjs/lottie-01f67a00.cjs +0 -1
  31. package/dist/cjs/lottie-09dbe581.cjs +0 -1
  32. package/dist/cjs/lottie-2035df95.cjs +0 -1
  33. package/dist/cjs/lottie-7e742196.cjs +0 -1
  34. package/dist/cjs/lottie-924a2436.cjs +0 -1
  35. package/dist/cjs/lottie-b9cf6aee.cjs +0 -1
  36. package/dist/cjs/lottie-bG8uL7Ic.cjs +0 -1
  37. package/dist/cjs/lottie-c4b6404b.cjs +0 -1
  38. package/dist/cjs/lottie-ed4f1473.cjs +0 -1
  39. package/dist/cjs/lottie-edc8e0b8.cjs +0 -1
  40. package/dist/cjs/lottie-f516f300.cjs +0 -1
  41. package/dist/cjs/lottie-tdKuZHBg.cjs +0 -1
  42. package/dist/cjs/no-found-89a3b4af-9c7e1488.cjs +0 -1
  43. package/dist/cjs/no-result-01c60834-3e379801.cjs +0 -1
  44. package/dist/cjs/src/components/AddressWithLinkAndCopy.d.ts +0 -22
  45. package/dist/cjs/src/components/AutoButton.d.ts +0 -7
  46. package/dist/cjs/src/components/Bridge/BridgeRouteShortCard.d.ts +0 -6
  47. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -5
  48. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -18
  49. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -16
  50. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -6
  51. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
  52. package/dist/cjs/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -14
  53. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -10
  54. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -4
  55. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -20
  56. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -12
  57. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -11
  58. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
  59. package/dist/cjs/src/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -8
  60. package/dist/cjs/src/components/Confirm.d.ts +0 -15
  61. package/dist/cjs/src/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
  62. package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +0 -8
  63. package/dist/cjs/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
  64. package/dist/cjs/src/components/CopyTooltipToast.d.ts +0 -9
  65. package/dist/cjs/src/components/DataCard/DataCardGroup.d.ts +0 -9
  66. package/dist/cjs/src/components/Dialog.d.ts +0 -1
  67. package/dist/cjs/src/components/ErrorMessageDialog.d.ts +0 -5
  68. package/dist/cjs/src/components/GoBack.d.ts +0 -6
  69. package/dist/cjs/src/components/HowItWorks.d.ts +0 -11
  70. package/dist/cjs/src/components/List/EmptyList.d.ts +0 -7
  71. package/dist/cjs/src/components/List/FailedList.d.ts +0 -6
  72. package/dist/cjs/src/components/RiskDialog.d.ts +0 -7
  73. package/dist/cjs/src/components/SelectChain.d.ts +0 -12
  74. package/dist/cjs/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
  75. package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +0 -6
  76. package/dist/cjs/src/components/Swap/components/Dialog.d.ts +0 -15
  77. package/dist/cjs/src/components/Swap/components/ReviewDialog.d.ts +0 -21
  78. package/dist/cjs/src/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -8
  79. package/dist/cjs/src/components/Swap/components/SettingsDialog/index.d.ts +0 -7
  80. package/dist/cjs/src/components/Swap/components/SwitchBox.d.ts +0 -5
  81. package/dist/cjs/src/components/Swap/components/TokenCard/BalanceText.d.ts +0 -11
  82. package/dist/cjs/src/components/Swap/components/TokenCard/NumberInput.d.ts +0 -16
  83. package/dist/cjs/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -7
  84. package/dist/cjs/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
  85. package/dist/cjs/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -18
  86. package/dist/cjs/src/components/Swap/components/TokenCard/index.d.ts +0 -36
  87. package/dist/cjs/src/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -10
  88. package/dist/cjs/src/components/Swap/index.d.ts +0 -7
  89. package/dist/cjs/src/components/SwitchChainDialog/index.d.ts +0 -7
  90. package/dist/cjs/src/components/Token/TokenItem.d.ts +0 -9
  91. package/dist/cjs/src/components/TokenLogo.d.ts +0 -18
  92. package/dist/cjs/src/components/TokenLogoPair.d.ts +0 -17
  93. package/dist/cjs/src/components/TokenLogoSimple.d.ts +0 -13
  94. package/dist/cjs/src/components/TokenPicker/PopularToken.d.ts +0 -7
  95. package/dist/cjs/src/components/TokenPicker/SelectChainItem.d.ts +0 -7
  96. package/dist/cjs/src/components/TokenPicker/TokenItem.d.ts +0 -10
  97. package/dist/cjs/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -2
  98. package/dist/cjs/src/components/TokenPicker/index.d.ts +0 -24
  99. package/dist/cjs/src/components/TokenStatusButton.d.ts +0 -7
  100. package/dist/cjs/src/components/Tooltip/QuestionTooltip.d.ts +0 -3
  101. package/dist/cjs/src/components/Tooltip/index.d.ts +0 -1
  102. package/dist/cjs/src/components/Widget/i18n.d.ts +0 -9
  103. package/dist/cjs/src/components/Widget/index.d.ts +0 -33
  104. package/dist/cjs/src/components/WidgetConfirm.d.ts +0 -15
  105. package/dist/cjs/src/components/WidgetContainer.d.ts +0 -3
  106. package/dist/cjs/src/components/WidgetDialog.d.ts +0 -15
  107. package/dist/cjs/src/components/WithExecutionDialog/index.d.ts +0 -5
  108. package/dist/cjs/src/components/chart/components/BaseButton.d.ts +0 -5
  109. package/dist/cjs/src/components/chart/components/Display.d.ts +0 -9
  110. package/dist/cjs/src/components/chart/components/Input.d.ts +0 -7
  111. package/dist/cjs/src/components/chart/components/NumberInput.d.ts +0 -6
  112. package/dist/cjs/src/components/chart/components/TogglePriceIcon.d.ts +0 -8
  113. package/dist/cjs/src/components/chart/components/TokenLogo.d.ts +0 -5
  114. package/dist/cjs/src/components/chart/depth-chart/DepthChartKonva.d.ts +0 -30
  115. package/dist/cjs/src/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
  116. package/dist/cjs/src/components/chart/depth-chart/helper.d.ts +0 -125
  117. package/dist/cjs/src/components/chart/depth-chart/index.d.ts +0 -18
  118. package/dist/cjs/src/components/chart/depth-chart/index.styled.d.ts +0 -29
  119. package/dist/cjs/src/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
  120. package/dist/cjs/src/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
  121. package/dist/cjs/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
  122. package/dist/cjs/src/components/chart/depth-chart/utils.d.ts +0 -19
  123. package/dist/cjs/src/components/chart/depth-chart-v2/index.d.ts +0 -10
  124. package/dist/cjs/src/components/chart/depth-chart-v2/index.styled.d.ts +0 -15
  125. package/dist/cjs/src/components/chart/hooks/usePreventWheel.d.ts +0 -9
  126. package/dist/cjs/src/components/chart/i18n.d.ts +0 -1
  127. package/dist/cjs/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -28
  128. package/dist/cjs/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
  129. package/dist/cjs/src/components/chart/liquidity-chart/helper.d.ts +0 -47
  130. package/dist/cjs/src/components/chart/liquidity-chart/index.d.ts +0 -17
  131. package/dist/cjs/src/components/chart/liquidity-chart/index.styled.d.ts +0 -9
  132. package/dist/cjs/src/components/chart/liquidity-chart/useGridLine.d.ts +0 -8
  133. package/dist/cjs/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -10
  134. package/dist/cjs/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -18
  135. package/dist/cjs/src/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -6
  136. package/dist/cjs/src/components/chart/liquidity-chart/usePoints.d.ts +0 -39
  137. package/dist/cjs/src/components/chart/utils.d.ts +0 -3
  138. package/dist/cjs/src/constants/address.d.ts +0 -1
  139. package/dist/cjs/src/constants/api.d.ts +0 -20
  140. package/dist/cjs/src/constants/chainList.d.ts +0 -10
  141. package/dist/cjs/src/constants/chains.d.ts +0 -34
  142. package/dist/cjs/src/constants/locales.d.ts +0 -3
  143. package/dist/cjs/src/constants/localstorage.d.ts +0 -14
  144. package/dist/cjs/src/constants/pool.d.ts +0 -7
  145. package/dist/cjs/src/constants/sessionStorage.d.ts +0 -2
  146. package/dist/cjs/src/constants/swap.d.ts +0 -7
  147. package/dist/cjs/src/constants/testId.d.ts +0 -10
  148. package/dist/cjs/src/constants/token.d.ts +0 -2
  149. package/dist/cjs/src/constants/tokenList.d.ts +0 -9
  150. package/dist/cjs/src/constants/wallet.d.ts +0 -23
  151. package/dist/cjs/src/hooks/Bridge/createBridgeOrder.d.ts +0 -28
  152. package/dist/cjs/src/hooks/Bridge/index.d.ts +0 -4
  153. package/dist/cjs/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
  154. package/dist/cjs/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
  155. package/dist/cjs/src/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
  156. package/dist/cjs/src/hooks/Bridge/useSendRoute.d.ts +0 -16
  157. package/dist/cjs/src/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
  158. package/dist/cjs/src/hooks/Chain/useChainList.d.ts +0 -2
  159. package/dist/cjs/src/hooks/Chain/useChainList.test.d.ts +0 -1
  160. package/dist/cjs/src/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
  161. package/dist/cjs/src/hooks/ConnectWallet/index.d.ts +0 -3
  162. package/dist/cjs/src/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -2
  163. package/dist/cjs/src/hooks/ConnectWallet/useSwitchChain.d.ts +0 -10
  164. package/dist/cjs/src/hooks/ConnectWallet/useWalletInfo.d.ts +0 -6
  165. package/dist/cjs/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
  166. package/dist/cjs/src/hooks/ConnectWallet/web3.d.ts +0 -10
  167. package/dist/cjs/src/hooks/Submission/getExecutionErrorMsg.d.ts +0 -2
  168. package/dist/cjs/src/hooks/Submission/index.d.ts +0 -10
  169. package/dist/cjs/src/hooks/Submission/spec.d.ts +0 -56
  170. package/dist/cjs/src/hooks/Submission/types.d.ts +0 -79
  171. package/dist/cjs/src/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -15
  172. package/dist/cjs/src/hooks/Submission/useExecution.d.ts +0 -32
  173. package/dist/cjs/src/hooks/Submission/useInflights.d.ts +0 -5
  174. package/dist/cjs/src/hooks/Swap/index.d.ts +0 -5
  175. package/dist/cjs/src/hooks/Swap/useExecuteSwap.d.ts +0 -12
  176. package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
  177. package/dist/cjs/src/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
  178. package/dist/cjs/src/hooks/Swap/useFetchRoutePrice.d.ts +0 -37
  179. package/dist/cjs/src/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
  180. package/dist/cjs/src/hooks/Swap/useInitDefaultToken.d.ts +0 -10
  181. package/dist/cjs/src/hooks/Swap/useMarginAmount.d.ts +0 -8
  182. package/dist/cjs/src/hooks/Swap/useMarginAmount.test.d.ts +0 -1
  183. package/dist/cjs/src/hooks/Swap/usePriceTimer.d.ts +0 -5
  184. package/dist/cjs/src/hooks/Swap/useSlippageLimit.d.ts +0 -2
  185. package/dist/cjs/src/hooks/Token/index.d.ts +0 -4
  186. package/dist/cjs/src/hooks/Token/type.d.ts +0 -25
  187. package/dist/cjs/src/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
  188. package/dist/cjs/src/hooks/Token/useFetchTokenAllowance.d.ts +0 -13
  189. package/dist/cjs/src/hooks/Token/useFindTokenByAddress.d.ts +0 -1
  190. package/dist/cjs/src/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
  191. package/dist/cjs/src/hooks/Token/useGetAllowance.d.ts +0 -3
  192. package/dist/cjs/src/hooks/Token/useGetAllowance.test.d.ts +0 -1
  193. package/dist/cjs/src/hooks/Token/useGetBalance.d.ts +0 -2
  194. package/dist/cjs/src/hooks/Token/useGetBalance.test.d.ts +0 -1
  195. package/dist/cjs/src/hooks/Token/useGetCGTokenList.d.ts +0 -15
  196. package/dist/cjs/src/hooks/Token/useGetTokenStatus.d.ts +0 -13
  197. package/dist/cjs/src/hooks/Token/useGetTokenStatus.test.d.ts +0 -1
  198. package/dist/cjs/src/hooks/Token/useInitTokenList.d.ts +0 -6
  199. package/dist/cjs/src/hooks/Token/useSelectChainList.d.ts +0 -7
  200. package/dist/cjs/src/hooks/Token/useSelectChainList.test.d.ts +0 -1
  201. package/dist/cjs/src/hooks/Token/useTokenList.d.ts +0 -36
  202. package/dist/cjs/src/hooks/Token/useTokenList.test.d.ts +0 -1
  203. package/dist/cjs/src/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
  204. package/dist/cjs/src/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
  205. package/dist/cjs/src/hooks/Token/useTokenStatus.d.ts +0 -20
  206. package/dist/cjs/src/hooks/Token/useTokenStatus.test.d.ts +0 -1
  207. package/dist/cjs/src/hooks/Widget/useInitPropsToRedux.d.ts +0 -2
  208. package/dist/cjs/src/hooks/contract/abis/erc20ABI.d.ts +0 -30
  209. package/dist/cjs/src/hooks/contract/abis/erc20Helper.d.ts +0 -16
  210. package/dist/cjs/src/hooks/contract/abis/multicallABI.d.ts +0 -34
  211. package/dist/cjs/src/hooks/contract/batch.d.ts +0 -18
  212. package/dist/cjs/src/hooks/contract/contractConfig.d.ts +0 -9
  213. package/dist/cjs/src/hooks/contract/index.d.ts +0 -3
  214. package/dist/cjs/src/hooks/contract/provider.d.ts +0 -2
  215. package/dist/cjs/src/hooks/contract/token.d.ts +0 -10
  216. package/dist/cjs/src/hooks/contract/useFetchBlockNumber.d.ts +0 -3
  217. package/dist/cjs/src/hooks/contract/useFetchETHBalance.d.ts +0 -21
  218. package/dist/cjs/src/hooks/contract/useFetchTokens.d.ts +0 -14
  219. package/dist/cjs/src/hooks/contract/useMultiContract.d.ts +0 -14
  220. package/dist/cjs/src/hooks/contract/wallet.d.ts +0 -16
  221. package/dist/cjs/src/hooks/setting/useDefaultSlippage.d.ts +0 -4
  222. package/dist/cjs/src/hooks/setting/useGetAPIService.d.ts +0 -2
  223. package/dist/cjs/src/hooks/setting/useSetAutoSlippage.d.ts +0 -13
  224. package/dist/cjs/src/hooks/style/useWidgetDevice.d.ts +0 -6
  225. package/dist/cjs/src/hooks/usePrevious.d.ts +0 -1
  226. package/dist/cjs/src/index.d.ts +0 -12
  227. package/dist/cjs/src/providers/GlobalConfigContext.d.ts +0 -21
  228. package/dist/cjs/src/providers/i18n.d.ts +0 -9
  229. package/dist/cjs/src/providers/queryClient/index.d.ts +0 -2
  230. package/dist/cjs/src/providers/queryClient.d.ts +0 -2
  231. package/dist/cjs/src/router/index.d.ts +0 -9
  232. package/dist/cjs/src/router/types.d.ts +0 -35
  233. package/dist/cjs/src/store/actions/globals.d.ts +0 -9
  234. package/dist/cjs/src/store/actions/index.d.ts +0 -4
  235. package/dist/cjs/src/store/actions/settings.d.ts +0 -6
  236. package/dist/cjs/src/store/actions/token.d.ts +0 -8
  237. package/dist/cjs/src/store/actions/wallet.d.ts +0 -7
  238. package/dist/cjs/src/store/index.d.ts +0 -12
  239. package/dist/cjs/src/store/reducers/globals.d.ts +0 -23
  240. package/dist/cjs/src/store/reducers/index.d.ts +0 -17
  241. package/dist/cjs/src/store/reducers/settings.d.ts +0 -13
  242. package/dist/cjs/src/store/reducers/token.d.ts +0 -24
  243. package/dist/cjs/src/store/reducers/wallet.d.ts +0 -14
  244. package/dist/cjs/src/store/selectors/globals.d.ts +0 -7
  245. package/dist/cjs/src/store/selectors/settings.d.ts +0 -4
  246. package/dist/cjs/src/store/selectors/token.d.ts +0 -9
  247. package/dist/cjs/src/store/selectors/wallet.d.ts +0 -7
  248. package/dist/cjs/src/utils/address.d.ts +0 -15
  249. package/dist/cjs/src/utils/address.test.d.ts +0 -1
  250. package/dist/cjs/src/utils/bytes.d.ts +0 -3
  251. package/dist/cjs/src/utils/chains.d.ts +0 -2
  252. package/dist/cjs/src/utils/chains.test.d.ts +0 -1
  253. package/dist/cjs/src/utils/formatter.d.ts +0 -48
  254. package/dist/cjs/src/utils/formatter.test.d.ts +0 -1
  255. package/dist/cjs/src/utils/index.d.ts +0 -5
  256. package/dist/cjs/src/utils/time.d.ts +0 -9
  257. package/dist/cjs/src/utils/time.test.d.ts +0 -1
  258. package/dist/cjs/src/utils/token.d.ts +0 -30
  259. package/dist/cjs/src/utils/token.test.d.ts +0 -1
  260. package/dist/cjs/src/utils/utils.d.ts +0 -1
  261. package/dist/cjs/src/utils/wallet.d.ts +0 -8
  262. package/dist/cjs/src/utils/wallet.test.d.ts +0 -1
  263. package/dist/cjs/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -7
  264. package/dist/cjs/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
  265. package/dist/cjs/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -5
  266. package/dist/cjs/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -5
  267. package/dist/cjs/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -8
  268. package/dist/cjs/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -9
  269. package/dist/cjs/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -8
  270. package/dist/cjs/src/widgets/MiningWidget/OperateArea/index.d.ts +0 -13
  271. package/dist/cjs/src/widgets/MiningWidget/helper.d.ts +0 -2
  272. package/dist/cjs/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -4
  273. package/dist/cjs/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -17
  274. package/dist/cjs/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -5
  275. package/dist/cjs/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
  276. package/dist/cjs/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -5
  277. package/dist/cjs/src/widgets/MiningWidget/types.d.ts +0 -58
  278. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -10
  279. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -11
  280. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -11
  281. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -5
  282. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
  283. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -6
  284. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -13
  285. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -12
  286. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -4
  287. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
  288. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -7
  289. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -8
  290. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
  291. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
  292. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -14
  293. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
  294. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
  295. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
  296. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
  297. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
  298. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -5
  299. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/index.d.ts +0 -2
  300. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -6
  301. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
  302. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -12
  303. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -8
  304. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -6
  305. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -78
  306. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/types.d.ts +0 -35
  307. package/dist/cjs/src/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -18
  308. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -24
  309. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -6
  310. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -5
  311. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -15
  312. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -6
  313. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
  314. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
  315. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -10
  316. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -6
  317. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
  318. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
  319. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -290
  320. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
  321. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
  322. package/dist/cjs/src/widgets/PoolWidget/PoolDetail/index.d.ts +0 -2
  323. package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
  324. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
  325. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -11
  326. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -5
  327. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -8
  328. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -8
  329. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -3
  330. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -5
  331. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -18
  332. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -9
  333. package/dist/cjs/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -6
  334. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
  335. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -48
  336. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -15
  337. package/dist/cjs/src/widgets/PoolWidget/PoolList/index.d.ts +0 -2
  338. package/dist/cjs/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -4
  339. package/dist/cjs/src/widgets/PoolWidget/PoolModify/index.d.ts +0 -2
  340. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -8
  341. package/dist/cjs/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
  342. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -9
  343. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +0 -18
  344. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +0 -8
  345. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -9
  346. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +0 -8
  347. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -9
  348. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +0 -18
  349. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -9
  350. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -10
  351. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
  352. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -8
  353. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -8
  354. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -18
  355. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -12
  356. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
  357. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
  358. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -46
  359. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
  360. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
  361. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
  362. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -33
  363. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/index.d.ts +0 -14
  364. package/dist/cjs/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -17
  365. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
  366. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
  367. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
  368. package/dist/cjs/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
  369. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -48
  370. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
  371. package/dist/cjs/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
  372. package/dist/cjs/src/widgets/PoolWidget/index.d.ts +0 -2
  373. package/dist/cjs/src/widgets/PoolWidget/list/AddLiquidity.d.ts +0 -9
  374. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +0 -8
  375. package/dist/cjs/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +0 -8
  376. package/dist/cjs/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +0 -5
  377. package/dist/cjs/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +0 -17
  378. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +0 -9
  379. package/dist/cjs/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +0 -6
  380. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +0 -6
  381. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +0 -58
  382. package/dist/cjs/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +0 -15
  383. package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +0 -17
  384. package/dist/e2e/connect.test.d.ts +0 -6
  385. package/dist/e2e/constants.d.ts +0 -87
  386. package/dist/e2e/default.test.d.ts +0 -6
  387. package/dist/e2e/setup.d.ts +0 -4
  388. package/dist/failed-list-e6c1e563-478d73e0.js +0 -1
  389. package/dist/helper-7cc29594.js +0 -1
  390. package/dist/helper-BpKL-WX0.js +0 -1
  391. package/dist/helper-DaQkFXvn.js +0 -1
  392. package/dist/index-0e954ab8.js +0 -45
  393. package/dist/index-41db7f0e.js +0 -45
  394. package/dist/index-Ch7GewG2.js +0 -58
  395. package/dist/index-CyP7hQDk.js +0 -12
  396. package/dist/index-D9EItTW1.js +0 -58
  397. package/dist/index-DDPHAzsy.js +0 -78
  398. package/dist/index-DhQe6anS.js +0 -12
  399. package/dist/index-DksR3nfe.js +0 -78
  400. package/dist/index-ae19eed4.js +0 -12
  401. package/dist/index-b07aac90.js +0 -45
  402. package/dist/index-c1a581ca.js +0 -50
  403. package/dist/index-c9dbe645.js +0 -50
  404. package/dist/index-cdf23d80.js +0 -50
  405. package/dist/index-d9d9a2cd.js +0 -78
  406. package/dist/index-db2c9b8f.js +0 -58
  407. package/dist/index-e58d24e5.js +0 -50
  408. package/dist/index-ee546021.js +0 -45
  409. package/dist/index-f055c418.js +0 -45
  410. package/dist/locales/en-US.js +0 -5
  411. package/dist/locales/zh-CN.js +0 -5
  412. package/dist/lottie-0a7cf033.js +0 -1
  413. package/dist/lottie-449d7c9a.js +0 -1
  414. package/dist/lottie-48250155.js +0 -1
  415. package/dist/lottie-9678ebc9.js +0 -1
  416. package/dist/lottie-9b618308.js +0 -1
  417. package/dist/lottie-CljBQMvS.js +0 -1
  418. package/dist/lottie-CvNBrPAN.js +0 -1
  419. package/dist/lottie-b4708423.js +0 -1
  420. package/dist/lottie-baaed8fa.js +0 -1
  421. package/dist/lottie-d6631244.js +0 -1
  422. package/dist/lottie-ed5a9dfd.js +0 -1
  423. package/dist/lottie-f76894b7.js +0 -1
  424. package/dist/no-found-89a3b4af-763d58f5.js +0 -1
  425. package/dist/no-result-01c60834-7921d2fa.js +0 -1
  426. package/dist/src/components/AddressWithLinkAndCopy.d.ts +0 -22
  427. package/dist/src/components/AutoButton.d.ts +0 -7
  428. package/dist/src/components/Bridge/BridgeRouteShortCard.d.ts +0 -6
  429. package/dist/src/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +0 -5
  430. package/dist/src/components/Bridge/BridgeSummaryDialog/index.d.ts +0 -18
  431. package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +0 -16
  432. package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +0 -6
  433. package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +0 -6
  434. package/dist/src/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +0 -14
  435. package/dist/src/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +0 -10
  436. package/dist/src/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +0 -4
  437. package/dist/src/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +0 -20
  438. package/dist/src/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +0 -12
  439. package/dist/src/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +0 -11
  440. package/dist/src/components/Bridge/SelectBridgeDialog/index.d.ts +0 -9
  441. package/dist/src/components/Bridge/SelectBridgeDialog/productList.d.ts +0 -8
  442. package/dist/src/components/Confirm.d.ts +0 -15
  443. package/dist/src/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
  444. package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +0 -8
  445. package/dist/src/components/ConnectWallet/OpenConnectWalletInfo.d.ts +0 -2
  446. package/dist/src/components/CopyTooltipToast.d.ts +0 -9
  447. package/dist/src/components/DataCard/DataCardGroup.d.ts +0 -9
  448. package/dist/src/components/Dialog.d.ts +0 -1
  449. package/dist/src/components/ErrorMessageDialog.d.ts +0 -5
  450. package/dist/src/components/GoBack.d.ts +0 -6
  451. package/dist/src/components/HowItWorks.d.ts +0 -11
  452. package/dist/src/components/List/EmptyList.d.ts +0 -7
  453. package/dist/src/components/List/FailedList.d.ts +0 -6
  454. package/dist/src/components/RiskDialog.d.ts +0 -7
  455. package/dist/src/components/SelectChain.d.ts +0 -12
  456. package/dist/src/components/Swap/components/ConnectWallet/ConnectWalletDialog.d.ts +0 -5
  457. package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +0 -6
  458. package/dist/src/components/Swap/components/Dialog.d.ts +0 -15
  459. package/dist/src/components/Swap/components/ReviewDialog.d.ts +0 -21
  460. package/dist/src/components/Swap/components/SettingsDialog/NumberInput.d.ts +0 -8
  461. package/dist/src/components/Swap/components/SettingsDialog/index.d.ts +0 -7
  462. package/dist/src/components/Swap/components/SwitchBox.d.ts +0 -5
  463. package/dist/src/components/Swap/components/TokenCard/BalanceText.d.ts +0 -11
  464. package/dist/src/components/Swap/components/TokenCard/NumberInput.d.ts +0 -16
  465. package/dist/src/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +0 -7
  466. package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +0 -8
  467. package/dist/src/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +0 -18
  468. package/dist/src/components/Swap/components/TokenCard/index.d.ts +0 -36
  469. package/dist/src/components/Swap/components/TokenPairPriceWithToggle.d.ts +0 -10
  470. package/dist/src/components/Swap/index.d.ts +0 -7
  471. package/dist/src/components/SwitchChainDialog/index.d.ts +0 -7
  472. package/dist/src/components/Token/TokenItem.d.ts +0 -9
  473. package/dist/src/components/TokenLogo.d.ts +0 -18
  474. package/dist/src/components/TokenLogoPair.d.ts +0 -17
  475. package/dist/src/components/TokenLogoSimple.d.ts +0 -13
  476. package/dist/src/components/TokenPicker/PopularToken.d.ts +0 -7
  477. package/dist/src/components/TokenPicker/SelectChainItem.d.ts +0 -7
  478. package/dist/src/components/TokenPicker/TokenItem.d.ts +0 -10
  479. package/dist/src/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +0 -2
  480. package/dist/src/components/TokenPicker/index.d.ts +0 -24
  481. package/dist/src/components/TokenStatusButton.d.ts +0 -7
  482. package/dist/src/components/Tooltip/QuestionTooltip.d.ts +0 -3
  483. package/dist/src/components/Tooltip/index.d.ts +0 -1
  484. package/dist/src/components/Widget/i18n.d.ts +0 -9
  485. package/dist/src/components/Widget/index.d.ts +0 -33
  486. package/dist/src/components/WidgetConfirm.d.ts +0 -15
  487. package/dist/src/components/WidgetContainer.d.ts +0 -3
  488. package/dist/src/components/WidgetDialog.d.ts +0 -15
  489. package/dist/src/components/WithExecutionDialog/index.d.ts +0 -5
  490. package/dist/src/components/chart/components/BaseButton.d.ts +0 -5
  491. package/dist/src/components/chart/components/Display.d.ts +0 -9
  492. package/dist/src/components/chart/components/Input.d.ts +0 -7
  493. package/dist/src/components/chart/components/NumberInput.d.ts +0 -6
  494. package/dist/src/components/chart/components/TogglePriceIcon.d.ts +0 -8
  495. package/dist/src/components/chart/components/TokenLogo.d.ts +0 -5
  496. package/dist/src/components/chart/depth-chart/DepthChartKonva.d.ts +0 -30
  497. package/dist/src/components/chart/depth-chart/__tests__/utils.test.d.ts +0 -1
  498. package/dist/src/components/chart/depth-chart/helper.d.ts +0 -125
  499. package/dist/src/components/chart/depth-chart/index.d.ts +0 -18
  500. package/dist/src/components/chart/depth-chart/index.styled.d.ts +0 -29
  501. package/dist/src/components/chart/depth-chart/useDepthLinePoints.d.ts +0 -21
  502. package/dist/src/components/chart/depth-chart/useGridLinePoints.d.ts +0 -9
  503. package/dist/src/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +0 -15
  504. package/dist/src/components/chart/depth-chart/utils.d.ts +0 -19
  505. package/dist/src/components/chart/depth-chart-v2/index.d.ts +0 -10
  506. package/dist/src/components/chart/depth-chart-v2/index.styled.d.ts +0 -15
  507. package/dist/src/components/chart/hooks/usePreventWheel.d.ts +0 -9
  508. package/dist/src/components/chart/i18n.d.ts +0 -1
  509. package/dist/src/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +0 -28
  510. package/dist/src/components/chart/liquidity-chart/__tests__/helper.test.d.ts +0 -1
  511. package/dist/src/components/chart/liquidity-chart/helper.d.ts +0 -47
  512. package/dist/src/components/chart/liquidity-chart/index.d.ts +0 -17
  513. package/dist/src/components/chart/liquidity-chart/index.styled.d.ts +0 -9
  514. package/dist/src/components/chart/liquidity-chart/useGridLine.d.ts +0 -8
  515. package/dist/src/components/chart/liquidity-chart/useHorizontalLabel.d.ts +0 -10
  516. package/dist/src/components/chart/liquidity-chart/useLiquidityLine.d.ts +0 -18
  517. package/dist/src/components/chart/liquidity-chart/useMiddleLine.d.ts +0 -6
  518. package/dist/src/components/chart/liquidity-chart/usePoints.d.ts +0 -39
  519. package/dist/src/components/chart/utils.d.ts +0 -3
  520. package/dist/src/constants/address.d.ts +0 -1
  521. package/dist/src/constants/api.d.ts +0 -20
  522. package/dist/src/constants/chainList.d.ts +0 -10
  523. package/dist/src/constants/chains.d.ts +0 -34
  524. package/dist/src/constants/locales.d.ts +0 -3
  525. package/dist/src/constants/localstorage.d.ts +0 -14
  526. package/dist/src/constants/pool.d.ts +0 -7
  527. package/dist/src/constants/sessionStorage.d.ts +0 -2
  528. package/dist/src/constants/swap.d.ts +0 -7
  529. package/dist/src/constants/testId.d.ts +0 -10
  530. package/dist/src/constants/token.d.ts +0 -2
  531. package/dist/src/constants/tokenList.d.ts +0 -9
  532. package/dist/src/constants/wallet.d.ts +0 -23
  533. package/dist/src/hooks/Bridge/createBridgeOrder.d.ts +0 -28
  534. package/dist/src/hooks/Bridge/index.d.ts +0 -4
  535. package/dist/src/hooks/Bridge/useExecuteBridgeRoute.d.ts +0 -7
  536. package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.d.ts +0 -102
  537. package/dist/src/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +0 -1
  538. package/dist/src/hooks/Bridge/useSendRoute.d.ts +0 -16
  539. package/dist/src/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +0 -1
  540. package/dist/src/hooks/Chain/useChainList.d.ts +0 -2
  541. package/dist/src/hooks/Chain/useChainList.test.d.ts +0 -1
  542. package/dist/src/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +0 -9
  543. package/dist/src/hooks/ConnectWallet/index.d.ts +0 -3
  544. package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +0 -2
  545. package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +0 -10
  546. package/dist/src/hooks/ConnectWallet/useWalletInfo.d.ts +0 -6
  547. package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +0 -17
  548. package/dist/src/hooks/ConnectWallet/web3.d.ts +0 -10
  549. package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +0 -2
  550. package/dist/src/hooks/Submission/index.d.ts +0 -10
  551. package/dist/src/hooks/Submission/spec.d.ts +0 -56
  552. package/dist/src/hooks/Submission/types.d.ts +0 -79
  553. package/dist/src/hooks/Submission/useBalanceUpdateLoading.d.ts +0 -15
  554. package/dist/src/hooks/Submission/useExecution.d.ts +0 -32
  555. package/dist/src/hooks/Submission/useInflights.d.ts +0 -5
  556. package/dist/src/hooks/Swap/index.d.ts +0 -5
  557. package/dist/src/hooks/Swap/useExecuteSwap.d.ts +0 -12
  558. package/dist/src/hooks/Swap/useFetchFiatPrice.d.ts +0 -13
  559. package/dist/src/hooks/Swap/useFetchFiatPrice.test.d.ts +0 -1
  560. package/dist/src/hooks/Swap/useFetchRoutePrice.d.ts +0 -37
  561. package/dist/src/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
  562. package/dist/src/hooks/Swap/useInitDefaultToken.d.ts +0 -10
  563. package/dist/src/hooks/Swap/useMarginAmount.d.ts +0 -8
  564. package/dist/src/hooks/Swap/useMarginAmount.test.d.ts +0 -1
  565. package/dist/src/hooks/Swap/usePriceTimer.d.ts +0 -5
  566. package/dist/src/hooks/Swap/useSlippageLimit.d.ts +0 -2
  567. package/dist/src/hooks/Token/index.d.ts +0 -4
  568. package/dist/src/hooks/Token/type.d.ts +0 -25
  569. package/dist/src/hooks/Token/useDisabledTokenSwitch.d.ts +0 -5
  570. package/dist/src/hooks/Token/useFetchTokenAllowance.d.ts +0 -13
  571. package/dist/src/hooks/Token/useFindTokenByAddress.d.ts +0 -1
  572. package/dist/src/hooks/Token/useFindTokenByAddress.test.d.ts +0 -1
  573. package/dist/src/hooks/Token/useGetAllowance.d.ts +0 -3
  574. package/dist/src/hooks/Token/useGetAllowance.test.d.ts +0 -1
  575. package/dist/src/hooks/Token/useGetBalance.d.ts +0 -2
  576. package/dist/src/hooks/Token/useGetBalance.test.d.ts +0 -1
  577. package/dist/src/hooks/Token/useGetCGTokenList.d.ts +0 -15
  578. package/dist/src/hooks/Token/useGetTokenStatus.d.ts +0 -13
  579. package/dist/src/hooks/Token/useGetTokenStatus.test.d.ts +0 -1
  580. package/dist/src/hooks/Token/useInitTokenList.d.ts +0 -6
  581. package/dist/src/hooks/Token/useSelectChainList.d.ts +0 -7
  582. package/dist/src/hooks/Token/useSelectChainList.test.d.ts +0 -1
  583. package/dist/src/hooks/Token/useTokenList.d.ts +0 -36
  584. package/dist/src/hooks/Token/useTokenList.test.d.ts +0 -1
  585. package/dist/src/hooks/Token/useTokenListDefaultToken.d.ts +0 -30
  586. package/dist/src/hooks/Token/useTokenListFetchBalance.d.ts +0 -12
  587. package/dist/src/hooks/Token/useTokenStatus.d.ts +0 -20
  588. package/dist/src/hooks/Token/useTokenStatus.test.d.ts +0 -1
  589. package/dist/src/hooks/Widget/useInitPropsToRedux.d.ts +0 -2
  590. package/dist/src/hooks/contract/abis/erc20ABI.d.ts +0 -30
  591. package/dist/src/hooks/contract/abis/erc20Helper.d.ts +0 -16
  592. package/dist/src/hooks/contract/abis/multicallABI.d.ts +0 -34
  593. package/dist/src/hooks/contract/batch.d.ts +0 -18
  594. package/dist/src/hooks/contract/contractConfig.d.ts +0 -9
  595. package/dist/src/hooks/contract/index.d.ts +0 -3
  596. package/dist/src/hooks/contract/provider.d.ts +0 -2
  597. package/dist/src/hooks/contract/token.d.ts +0 -10
  598. package/dist/src/hooks/contract/useFetchBlockNumber.d.ts +0 -3
  599. package/dist/src/hooks/contract/useFetchETHBalance.d.ts +0 -21
  600. package/dist/src/hooks/contract/useFetchTokens.d.ts +0 -14
  601. package/dist/src/hooks/contract/useMultiContract.d.ts +0 -14
  602. package/dist/src/hooks/contract/wallet.d.ts +0 -16
  603. package/dist/src/hooks/setting/useDefaultSlippage.d.ts +0 -4
  604. package/dist/src/hooks/setting/useGetAPIService.d.ts +0 -2
  605. package/dist/src/hooks/setting/useSetAutoSlippage.d.ts +0 -13
  606. package/dist/src/hooks/style/useWidgetDevice.d.ts +0 -6
  607. package/dist/src/hooks/usePrevious.d.ts +0 -1
  608. package/dist/src/index.d.ts +0 -12
  609. package/dist/src/providers/GlobalConfigContext.d.ts +0 -21
  610. package/dist/src/providers/i18n.d.ts +0 -9
  611. package/dist/src/providers/queryClient/index.d.ts +0 -2
  612. package/dist/src/providers/queryClient.d.ts +0 -2
  613. package/dist/src/router/index.d.ts +0 -9
  614. package/dist/src/router/types.d.ts +0 -35
  615. package/dist/src/store/actions/globals.d.ts +0 -9
  616. package/dist/src/store/actions/index.d.ts +0 -4
  617. package/dist/src/store/actions/settings.d.ts +0 -6
  618. package/dist/src/store/actions/token.d.ts +0 -8
  619. package/dist/src/store/actions/wallet.d.ts +0 -7
  620. package/dist/src/store/index.d.ts +0 -12
  621. package/dist/src/store/reducers/globals.d.ts +0 -23
  622. package/dist/src/store/reducers/index.d.ts +0 -17
  623. package/dist/src/store/reducers/settings.d.ts +0 -13
  624. package/dist/src/store/reducers/token.d.ts +0 -24
  625. package/dist/src/store/reducers/wallet.d.ts +0 -14
  626. package/dist/src/store/selectors/globals.d.ts +0 -7
  627. package/dist/src/store/selectors/settings.d.ts +0 -4
  628. package/dist/src/store/selectors/token.d.ts +0 -9
  629. package/dist/src/store/selectors/wallet.d.ts +0 -7
  630. package/dist/src/utils/address.d.ts +0 -15
  631. package/dist/src/utils/address.test.d.ts +0 -1
  632. package/dist/src/utils/bytes.d.ts +0 -3
  633. package/dist/src/utils/chains.d.ts +0 -2
  634. package/dist/src/utils/chains.test.d.ts +0 -1
  635. package/dist/src/utils/formatter.d.ts +0 -48
  636. package/dist/src/utils/formatter.test.d.ts +0 -1
  637. package/dist/src/utils/index.d.ts +0 -5
  638. package/dist/src/utils/time.d.ts +0 -9
  639. package/dist/src/utils/time.test.d.ts +0 -1
  640. package/dist/src/utils/token.d.ts +0 -30
  641. package/dist/src/utils/token.test.d.ts +0 -1
  642. package/dist/src/utils/utils.d.ts +0 -1
  643. package/dist/src/utils/wallet.d.ts +0 -8
  644. package/dist/src/utils/wallet.test.d.ts +0 -1
  645. package/dist/src/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +0 -7
  646. package/dist/src/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +0 -20
  647. package/dist/src/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +0 -5
  648. package/dist/src/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +0 -5
  649. package/dist/src/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +0 -8
  650. package/dist/src/widgets/MiningWidget/OperateArea/StakeButton.d.ts +0 -9
  651. package/dist/src/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +0 -8
  652. package/dist/src/widgets/MiningWidget/OperateArea/index.d.ts +0 -13
  653. package/dist/src/widgets/MiningWidget/helper.d.ts +0 -2
  654. package/dist/src/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +0 -4
  655. package/dist/src/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +0 -17
  656. package/dist/src/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +0 -5
  657. package/dist/src/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +0 -13
  658. package/dist/src/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +0 -5
  659. package/dist/src/widgets/MiningWidget/types.d.ts +0 -58
  660. package/dist/src/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +0 -10
  661. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +0 -11
  662. package/dist/src/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +0 -11
  663. package/dist/src/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +0 -5
  664. package/dist/src/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +0 -6
  665. package/dist/src/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +0 -6
  666. package/dist/src/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +0 -13
  667. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +0 -12
  668. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +0 -4
  669. package/dist/src/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +0 -6
  670. package/dist/src/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +0 -7
  671. package/dist/src/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +0 -8
  672. package/dist/src/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +0 -5
  673. package/dist/src/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +0 -6
  674. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +0 -14
  675. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +0 -26
  676. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +0 -6
  677. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +0 -13
  678. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +0 -8
  679. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +0 -4
  680. package/dist/src/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +0 -5
  681. package/dist/src/widgets/PoolWidget/PoolCreate/index.d.ts +0 -2
  682. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +0 -6
  683. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +0 -7
  684. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +0 -12
  685. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +0 -8
  686. package/dist/src/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +0 -6
  687. package/dist/src/widgets/PoolWidget/PoolCreate/reducer.d.ts +0 -78
  688. package/dist/src/widgets/PoolWidget/PoolCreate/types.d.ts +0 -35
  689. package/dist/src/widgets/PoolWidget/PoolCreate/utils.d.ts +0 -18
  690. package/dist/src/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +0 -24
  691. package/dist/src/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +0 -6
  692. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +0 -5
  693. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +0 -15
  694. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +0 -6
  695. package/dist/src/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +0 -5
  696. package/dist/src/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +0 -5
  697. package/dist/src/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +0 -10
  698. package/dist/src/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +0 -6
  699. package/dist/src/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +0 -5
  700. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +0 -159
  701. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +0 -290
  702. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +0 -166
  703. package/dist/src/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +0 -245
  704. package/dist/src/widgets/PoolWidget/PoolDetail/index.d.ts +0 -2
  705. package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +0 -12
  706. package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +0 -11
  707. package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +0 -11
  708. package/dist/src/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +0 -5
  709. package/dist/src/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +0 -8
  710. package/dist/src/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +0 -8
  711. package/dist/src/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +0 -3
  712. package/dist/src/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +0 -5
  713. package/dist/src/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +0 -18
  714. package/dist/src/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +0 -9
  715. package/dist/src/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +0 -6
  716. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +0 -6
  717. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +0 -48
  718. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +0 -15
  719. package/dist/src/widgets/PoolWidget/PoolList/index.d.ts +0 -2
  720. package/dist/src/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +0 -4
  721. package/dist/src/widgets/PoolWidget/PoolModify/index.d.ts +0 -2
  722. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +0 -8
  723. package/dist/src/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +0 -7
  724. package/dist/src/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +0 -9
  725. package/dist/src/widgets/PoolWidget/PoolOperate/Footer.d.ts +0 -18
  726. package/dist/src/widgets/PoolWidget/PoolOperate/LiquidityInfo.d.ts +0 -8
  727. package/dist/src/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +0 -9
  728. package/dist/src/widgets/PoolWidget/PoolOperate/Ratio.d.ts +0 -8
  729. package/dist/src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +0 -9
  730. package/dist/src/widgets/PoolWidget/PoolOperate/SlippageSetting.d.ts +0 -18
  731. package/dist/src/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +0 -9
  732. package/dist/src/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +0 -10
  733. package/dist/src/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +0 -6
  734. package/dist/src/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +0 -8
  735. package/dist/src/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +0 -8
  736. package/dist/src/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +0 -18
  737. package/dist/src/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +0 -12
  738. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +0 -13
  739. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +0 -19
  740. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -46
  741. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +0 -26
  742. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
  743. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +0 -14
  744. package/dist/src/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +0 -33
  745. package/dist/src/widgets/PoolWidget/PoolOperate/index.d.ts +0 -14
  746. package/dist/src/widgets/PoolWidget/PoolOperate/types.d.ts +0 -17
  747. package/dist/src/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +0 -86
  748. package/dist/src/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +0 -22
  749. package/dist/src/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +0 -36
  750. package/dist/src/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +0 -33
  751. package/dist/src/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +0 -48
  752. package/dist/src/widgets/PoolWidget/hooks/usePoolDetail.d.ts +0 -341
  753. package/dist/src/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +0 -16
  754. package/dist/src/widgets/PoolWidget/index.d.ts +0 -2
  755. package/dist/src/widgets/PoolWidget/list/AddLiquidity.d.ts +0 -9
  756. package/dist/src/widgets/PoolWidget/list/components/FilterAddressTags.d.ts +0 -8
  757. package/dist/src/widgets/PoolWidget/list/components/FilterTokenTags.d.ts +0 -8
  758. package/dist/src/widgets/PoolWidget/list/components/LoadingCard.d.ts +0 -5
  759. package/dist/src/widgets/PoolWidget/list/components/PoolApyTooltip.d.ts +0 -17
  760. package/dist/src/widgets/PoolWidget/list/components/TokenAndPoolFilter.d.ts +0 -9
  761. package/dist/src/widgets/PoolWidget/list/components/TokenListPoolItem.d.ts +0 -6
  762. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterChainId.d.ts +0 -6
  763. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListFilterTokenAndPool.d.ts +0 -58
  764. package/dist/src/widgets/PoolWidget/list/hooks/usePoolListTabs.d.ts +0 -15
  765. package/dist/src/widgets/PoolWidget/utils.d.ts +0 -17
@@ -1,8 +0,0 @@
1
- export declare const isETHChain: (chainId?: number) => {
2
- /** ETH mainnet */
3
- isMainnet: boolean;
4
- isRinkeby: boolean;
5
- isETH: boolean;
6
- isGor: boolean;
7
- };
8
- export declare const reloadWindow: (interval?: number) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export default function LpTokenMiningOperate({ chainId, account, poolAddress, goLpLink, }: {
3
- chainId: number;
4
- account: string | undefined;
5
- poolAddress: string;
6
- goLpLink?: () => void;
7
- }): JSX.Element;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import BigNumber from 'bignumber.js';
3
- import type { TokenInfo } from '../../../hooks/Token';
4
- import { FetchMiningListItem } from '../types';
5
- declare type Tokens = Array<TokenInfo & {
6
- symbolEle?: string;
7
- }>;
8
- export declare function AssociatedMine({ chainId, loading, miningItem, miningContractAddress, stakedTokenUSD, miningTitle, associatedMineSectionShort, stakedTokenList, rewardTokenList, isEnded, }: {
9
- chainId: number;
10
- loading?: boolean;
11
- miningItem: FetchMiningListItem;
12
- miningContractAddress: string;
13
- miningTitle: string | undefined;
14
- associatedMineSectionShort?: boolean;
15
- stakedTokenUSD: BigNumber | undefined;
16
- stakedTokenList: Tokens;
17
- rewardTokenList: Tokens;
18
- isEnded?: boolean;
19
- }): JSX.Element;
20
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { FetchMiningListItem } from '../types';
3
- export default function ClaimButton({ miningItem, }: {
4
- miningItem: FetchMiningListItem;
5
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export default function GetLpLink({ tokenSymbol, goLpLink, }: {
3
- tokenSymbol: string | undefined;
4
- goLpLink: () => Promise<void> | void;
5
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from '@dodoex/components';
3
- import { FetchMiningListItem } from '../types';
4
- export declare function RewardListCard({ miningItem, loading, sx, }: {
5
- miningItem: FetchMiningListItem;
6
- loading?: boolean;
7
- sx?: BoxProps['sx'];
8
- }): JSX.Element;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { FetchMiningListItem } from '../types';
3
- import { usePoolBalanceInfo } from '../../PoolWidget/hooks/usePoolBalanceInfo';
4
- export declare function StakeButton({ goLpLink, amount, miningItem, balanceInfo, }: {
5
- amount: string;
6
- miningItem: FetchMiningListItem;
7
- balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
8
- goLpLink?: () => Promise<void> | void;
9
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import BigNumber from 'bignumber.js';
3
- import { FetchMiningListItem } from '../types';
4
- export default function UnstakeButton({ amount, miningItem, overrideBalance, }: {
5
- amount: string;
6
- miningItem: FetchMiningListItem;
7
- overrideBalance: BigNumber | undefined | null;
8
- }): JSX.Element;
@@ -1,13 +0,0 @@
1
- import { FetchMiningListItem, OperateType } from '../types';
2
- import { MiningStatusE } from '@dodoex/api';
3
- import React from 'react';
4
- export default function OperateArea({ chainId, status, loading, operateType, setOperateType, miningItem, associatedMineSectionVisible, goLpLink, }: {
5
- chainId: number;
6
- status: MiningStatusE;
7
- loading?: boolean;
8
- operateType: OperateType;
9
- setOperateType: React.Dispatch<React.SetStateAction<OperateType>>;
10
- miningItem: FetchMiningListItem;
11
- associatedMineSectionVisible?: boolean;
12
- goLpLink?: () => void;
13
- }): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { MiningApi } from '@dodoex/api';
2
- export declare const miningApi: MiningApi;
@@ -1,4 +0,0 @@
1
- import { FetchMiningListItem } from '../types';
2
- export declare const useClaimMiningSubmit: ({ miningItem, }: {
3
- miningItem: FetchMiningListItem;
4
- }) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
@@ -1,17 +0,0 @@
1
- import { FetchMiningListItem } from '../types';
2
- import BigNumber from 'bignumber.js';
3
- export declare function useRewardListAmount({ miningItem, }: {
4
- miningItem: FetchMiningListItem;
5
- }): {
6
- data: {
7
- amount: BigNumber | null | undefined;
8
- address: string;
9
- symbol: string;
10
- decimals: number;
11
- usdPrice: string;
12
- }[];
13
- pending: boolean;
14
- error: boolean;
15
- totalReward: BigNumber;
16
- totalRewardUSD: BigNumber;
17
- };
@@ -1,5 +0,0 @@
1
- import { FetchMiningListItem } from '../types';
2
- export declare const useStakeMiningSubmit: ({ miningItem, amount, }: {
3
- miningItem: FetchMiningListItem;
4
- amount: string;
5
- }) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
@@ -1,13 +0,0 @@
1
- import { MiningStatusE } from '@dodoex/api';
2
- import { FetchMiningListItem } from '../types';
3
- export declare function useStatusAndStartBlockNumber({ miningItem, }: {
4
- miningItem: FetchMiningListItem;
5
- }): {
6
- status: MiningStatusE;
7
- miningStatusList: {
8
- status: MiningStatusE;
9
- firstStartTime: import("bignumber.js").BigNumber | undefined;
10
- lastEndTime: import("bignumber.js").BigNumber | undefined;
11
- currentTime: import("bignumber.js").BigNumber;
12
- }[];
13
- };
@@ -1,5 +0,0 @@
1
- import { FetchMiningListItem } from '../types';
2
- export declare const useUnstakeMiningSubmit: ({ miningItem, amount, }: {
3
- miningItem: FetchMiningListItem;
4
- amount: string;
5
- }) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
@@ -1,58 +0,0 @@
1
- import { ExcludeNone, MiningApi } from '@dodoex/api';
2
- import BigNumber from 'bignumber.js';
3
- export declare type FetchMiningList = ExcludeNone<ReturnType<Exclude<typeof MiningApi.graphql.fetchMiningList['__apiType'], undefined>>['mining_list']>['list'];
4
- export declare type FetchMiningListItem = ExcludeNone<FetchMiningList>[0] | undefined;
5
- export declare type OperateType = null | 'stake' | 'unstake' | 'claim';
6
- export interface MiningTokenI {
7
- address: string | undefined;
8
- decimals: number | undefined;
9
- symbol: string | undefined;
10
- }
11
- /** The original token corresponding to lptoken has a price */
12
- export interface MiningERC20TokenI extends MiningTokenI {
13
- usdPrice: BigNumber | undefined;
14
- logoImg: string | undefined;
15
- }
16
- /** lptoken, a token obtained by pledging the original token, has no price */
17
- export interface MiningLpTokenI extends MiningTokenI {
18
- }
19
- /** Reward tokens */
20
- export interface MiningRewardTokenI extends MiningERC20TokenI {
21
- /**
22
- * Block height when rewards start to be released: If not configured, it defaults to undefined and is considered to have ended.
23
- */
24
- startBlock: BigNumber | undefined;
25
- /**
26
- * The timestamp corresponding to the block height when rewards start to be released; unit: seconds
27
- */
28
- startTime: BigNumber | undefined;
29
- /**
30
- * Block height released after reward ends: If not configured, it defaults to undefined and is considered to have ended.
31
- */
32
- endBlock: BigNumber | undefined;
33
- /**
34
- * The timestamp corresponding to the block height released after the reward ends; unit: seconds
35
- */
36
- endTime: BigNumber | undefined;
37
- /** The number of rewards released per block */
38
- rewardPerBlock: BigNumber | undefined;
39
- /** The apy returned by the interface is inaccurate and not timely. It is only used for initial rendering and subsequent front-end calculations */
40
- initialApr: BigNumber | undefined;
41
- }
42
- /**
43
- * One mining project may correspond to multiple mining contracts. For example, classic mining bilateral pledge can obtain respective lpToken and then pledge them into different mining contracts. This mining project is equivalent to two mining projects, 1 to 2 , but the front end needs to be displayed on a card
44
- *
45
- * Avoid using identifiers such as base or quote in the data structure, and use array records to record this kind of 1-to-2 mining.
46
- */
47
- export interface MiningMiningI {
48
- /** lpToken.address-miningContractAddress */
49
- id: string;
50
- sourceToken: Array<MiningERC20TokenI>;
51
- lpToken: MiningLpTokenI;
52
- /** Mining contract: one mining contract corresponds to one lptoken */
53
- miningContractAddress: string | undefined;
54
- /**
55
- * The v2 version has only one reward token; v3 may have multiple;
56
- */
57
- rewardTokenList: MiningRewardTokenI[];
58
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { StateProps } from '../reducer';
3
- export default function ConfirmInfoDialog({ on, onClose, state, onConfirm, isModify, loading, }: {
4
- on: boolean;
5
- onClose: () => void;
6
- state: StateProps;
7
- onConfirm: () => void;
8
- isModify?: boolean;
9
- loading?: boolean;
10
- }): JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { PMMModel, PmmModelParams } from '@dodoex/api';
3
- import { BigNumber } from 'bignumber.js';
4
- import { TokenInfo } from '../../../../hooks/Token';
5
- export default function DepthAndLiquidityChart({ baseToken, quoteToken, pmmParams, pmmModel, midPrice, }: {
6
- baseToken: TokenInfo | null;
7
- quoteToken: TokenInfo | null;
8
- pmmParams?: PmmModelParams;
9
- pmmModel?: PMMModel;
10
- midPrice?: BigNumber;
11
- }): JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { StateProps } from '../reducer';
3
- export declare function DepthChartWrapper({ selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, baseAmount, quoteAmount, }: {
4
- selectedVersion: StateProps['selectedVersion'];
5
- baseToken: StateProps['baseToken'];
6
- quoteToken: StateProps['quoteToken'];
7
- initPrice: StateProps['initPrice'];
8
- slippageCoefficient: StateProps['slippageCoefficient'];
9
- baseAmount: StateProps['baseAmount'];
10
- quoteAmount: StateProps['quoteAmount'];
11
- }): JSX.Element | null;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export default function EmptyChart({ height, text, }: {
3
- height?: number | string;
4
- text?: string;
5
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { StateProps } from '../reducer';
3
- export declare function FeeRateCard({ currentStep, feeRate, }: {
4
- currentStep: StateProps['currentStep'];
5
- feeRate: StateProps['feeRate'];
6
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export default function FixedInitPriceConfirm({ on, onClose, onConfirm, }: {
3
- on: boolean;
4
- onClose: () => void;
5
- onConfirm?: () => void;
6
- }): JSX.Element;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { StateProps } from '../reducer';
3
- import { SectionStatusT } from '../types';
4
- export declare function LqSettingsShow({ status, selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, baseAmount, quoteAmount, }: {
5
- status: SectionStatusT;
6
- selectedVersion: StateProps['selectedVersion'];
7
- baseToken: StateProps['baseToken'];
8
- quoteToken: StateProps['quoteToken'];
9
- initPrice: StateProps['initPrice'];
10
- slippageCoefficient: StateProps['slippageCoefficient'];
11
- baseAmount: StateProps['baseAmount'];
12
- quoteAmount: StateProps['quoteAmount'];
13
- }): JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from '@dodoex/components';
3
- export default function RadioButton({ title, subTitle, description, selected, onClick, children, sx, titleSx, }: {
4
- title: string;
5
- subTitle?: React.ReactNode;
6
- description: string;
7
- selected: boolean;
8
- onClick: () => void;
9
- children?: React.ReactNode;
10
- sx?: BoxProps['sx'];
11
- titleSx?: BoxProps['sx'];
12
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function RadioButtonIcon({ selected }: {
3
- selected: boolean;
4
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- export declare function RadioButtonTag({ color, backgroundColor, tagKey, }: {
3
- color: CSSProperties['color'];
4
- backgroundColor: CSSProperties['backgroundColor'];
5
- tagKey: string;
6
- }): JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { SectionStatusT } from '../types';
3
- export declare function SectionTitle({ index, titleKey, status, }: {
4
- index: number;
5
- titleKey: string;
6
- status: SectionStatusT;
7
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function SelectAndInput({ errorMsg, isCustomized, onClick, value, onChange, }: {
3
- errorMsg: string;
4
- isCustomized: boolean;
5
- onClick: () => void;
6
- value: string;
7
- onChange: (v: string) => void;
8
- }): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { StateProps } from '../reducer';
3
- export declare function StepTitle({ currentStep, }: {
4
- currentStep: StateProps['currentStep'];
5
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { SectionStatusT, VersionItem } from '../types';
3
- export declare function VersionChartExample({ versionItem, status, }: {
4
- versionItem: VersionItem;
5
- status: SectionStatusT;
6
- }): JSX.Element;
@@ -1,14 +0,0 @@
1
- import { TokenInfo } from '../../../../../hooks/Token';
2
- import { Version as PoolVersionE } from '../../types';
3
- export declare const useCreatePoolSubmit: ({ selectedVersion, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, }: {
4
- selectedVersion: PoolVersionE;
5
- baseToken: TokenInfo | null;
6
- quoteToken: TokenInfo | null;
7
- baseAmount: string;
8
- quoteAmount: string;
9
- feeRate: string;
10
- initPrice: string;
11
- slippageCoefficient: string;
12
- }) => {
13
- getCreateParams: () => Promise<any>;
14
- };
@@ -1,26 +0,0 @@
1
- import { Version } from '../types';
2
- export declare enum PoolTemplate {
3
- standard = 1,
4
- singleToken = 2,
5
- pagged = 3,
6
- marketMaker = 4
7
- }
8
- export declare const useCreatePmm: ({ selectedVersion, baseAmount, quoteAmount, initPrice, slippageCoefficient, }: {
9
- selectedVersion: Version;
10
- baseAmount?: string | undefined;
11
- quoteAmount?: string | undefined;
12
- initPrice: string;
13
- slippageCoefficient: string;
14
- }) => {
15
- pmmParams: {
16
- i: number;
17
- k: number;
18
- b: number;
19
- b0: number;
20
- q: number;
21
- q0: number;
22
- R: number;
23
- } | undefined;
24
- pmmModel: import("@dodoex/api").PMMModel | undefined;
25
- midPrice: import("bignumber.js").BigNumber | undefined;
26
- };
@@ -1,6 +0,0 @@
1
- export default function useDefaultTokens(): {
2
- defaultBaseToken: import("../../../..").TokenInfo | null;
3
- defaultQuoteToken: import("../../../..").TokenInfo | null;
4
- defaultBaseTokenLoading: boolean | undefined;
5
- defaultQuoteTokenLoading: boolean | undefined;
6
- };
@@ -1,13 +0,0 @@
1
- import { RadioButtonT } from '../types';
2
- export declare const getFeeRateList: () => ({
3
- title: string;
4
- description: string;
5
- value: string;
6
- tag?: undefined;
7
- } | {
8
- title: string;
9
- description: string;
10
- value: string;
11
- tag: string;
12
- })[];
13
- export declare function useFeeRateList(): RadioButtonT[];
@@ -1,8 +0,0 @@
1
- import { RadioButtonT } from '../types';
2
- import { StateProps } from '../reducer';
3
- export declare const getDefaultSlippageCoefficientList: ({ selectedVersion, }: {
4
- selectedVersion: StateProps['selectedVersion'];
5
- }) => string[];
6
- export declare function useSlippageCoefficientList({ selectedVersion, }: {
7
- selectedVersion: StateProps['selectedVersion'];
8
- }): RadioButtonT[];
@@ -1,4 +0,0 @@
1
- import { Version } from '../types';
2
- export declare const validFeeRate: (feeRateStr?: string) => string;
3
- export declare const validSlippageCoefficient: (slippageCoefficientStr: string, selectedVersion: Version) => string;
4
- export declare function validInitPrice(selectedVersion: Version, initPrice: string, quoteTokenDecimals: number): string;
@@ -1,5 +0,0 @@
1
- import { Version, VersionItem } from '../types';
2
- export declare function useVersionList(): {
3
- versionList: VersionItem[];
4
- versionMap: Record<Version, VersionItem>;
5
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function PoolCreate(): JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { Actions, StateProps } from '../reducer';
3
- export declare function BottomButtonGroup({ state, dispatch, }: {
4
- state: StateProps;
5
- dispatch: Dispatch<Actions>;
6
- }): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { Actions, StateProps } from '../reducer';
3
- export declare function FeeRateSetting({ dispatch, feeRate, isFeeRateCustomized: isCustomized, }: {
4
- dispatch: Dispatch<Actions>;
5
- feeRate: StateProps['feeRate'];
6
- isFeeRateCustomized: StateProps['isFeeRateCustomized'];
7
- }): JSX.Element;
@@ -1,12 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { Actions, StateProps } from '../reducer';
3
- export declare function InitPriceSetting({ isEdit, selectedVersion, isFixedRatio, leftTokenAddress, baseToken, quoteToken, fixedRatioPrice, dispatch, }: {
4
- isEdit?: boolean;
5
- selectedVersion: StateProps['selectedVersion'];
6
- isFixedRatio: StateProps['isFixedRatio'];
7
- leftTokenAddress: StateProps['leftTokenAddress'];
8
- baseToken: StateProps['baseToken'];
9
- quoteToken: StateProps['quoteToken'];
10
- fixedRatioPrice: StateProps['fixedRatioPrice'];
11
- dispatch: Dispatch<Actions>;
12
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { Actions, StateProps } from '../reducer';
3
- export declare function SlippageCoefficientSetting({ dispatch, slippageCoefficient, selectedVersion, isCustomized, }: {
4
- dispatch: Dispatch<Actions>;
5
- slippageCoefficient: StateProps['slippageCoefficient'];
6
- selectedVersion: StateProps['selectedVersion'];
7
- isCustomized: StateProps['isSlippageCoefficientCustomized'];
8
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { Actions, StateProps } from '../reducer';
3
- export default function VersionSelect({ selectedVersion, dispatch, }: {
4
- selectedVersion: StateProps['selectedVersion'];
5
- dispatch: React.Dispatch<Actions>;
6
- }): JSX.Element;
@@ -1,78 +0,0 @@
1
- import { Version } from './types';
2
- import { TokenInfo } from '../../../hooks/Token';
3
- export interface StateProps {
4
- currentStep: 0 | 1 | 2;
5
- selectedVersion: Version;
6
- baseToken: TokenInfo | null;
7
- quoteToken: TokenInfo | null;
8
- baseAmount: string;
9
- quoteAmount: string;
10
- /**
11
- * Whether to fix the exchange rate fixedRatioPrice to the current legal currency price, true means no modification is allowed
12
- * single-token is not fixed by default and cannot be fixed, and can be modified
13
- * After fixing, when modifying the quantity, standard needs to keep the ratio of baseAmount, quoteAmount, fixedRatioPrice unchanged. Pegged needs to be linked regardless of whether it is fixed or not. dpp does not need to, and the three can be modified independently.
14
- */
15
- isFixedRatio: boolean;
16
- /**
17
- * PmmState.i
18
- * The value of standard pool is always DEFAULT_INIT_PRICE_STANDARD
19
- * Other types can be modified, the initial value is DEFAULT_INIT_PRICE
20
- * The value of this field for single-token, pegged and dpp types is synchronized with fixedRatioPrice
21
- */
22
- initPrice: string;
23
- /**
24
- * Exchange rate, price, exchange ratio, price ratio
25
- * Except for single-token types, use the initial fiat price to initialize this field
26
- * single-token defaults to empty, others default to 1
27
- */
28
- fixedRatioPrice: string;
29
- /** The token on the left side of the exchange rate input box */
30
- leftTokenAddress: TokenInfo['address'] | undefined;
31
- slippageCoefficient: string;
32
- isSlippageCoefficientCustomized: boolean;
33
- feeRate: string | '0.01' | '0.3' | '1';
34
- isFeeRateCustomized: boolean;
35
- }
36
- declare type Pool = any;
37
- export declare enum Types {
38
- SetCurrentStep = 1,
39
- SelectNewVersion = 2,
40
- UpdateBaseToken = 3,
41
- UpdateQuoteToken = 4,
42
- SwitchTokens = 5,
43
- UpdateBaseAmount = 6,
44
- UpdateQuoteAmount = 7,
45
- UpdateIsFixedRatio = 8,
46
- UpdateFixedRatioPrice = 9,
47
- InitFixedRatioPrice = 10,
48
- ToggleLeftToken = 11,
49
- UpdateSlippageCoefficient = 12,
50
- UpdateIsSlippageCoefficientCustomized = 13,
51
- UpdateFeeRate = 14,
52
- UpdateIsFeeRateCustomized = 15,
53
- InitEditParameters = 16
54
- }
55
- declare type Payload = {
56
- [Types.SetCurrentStep]: StateProps['currentStep'];
57
- [Types.SelectNewVersion]: Version;
58
- [Types.UpdateBaseToken]: TokenInfo;
59
- [Types.UpdateQuoteToken]: TokenInfo;
60
- [Types.SwitchTokens]: undefined;
61
- [Types.UpdateBaseAmount]: string;
62
- [Types.UpdateQuoteAmount]: string;
63
- [Types.UpdateIsFixedRatio]: boolean;
64
- [Types.UpdateFixedRatioPrice]: string;
65
- [Types.InitFixedRatioPrice]: {
66
- baseTokenFiatPrice: number | undefined;
67
- quoteTokenFiatPrice: number | undefined;
68
- };
69
- [Types.ToggleLeftToken]: undefined;
70
- [Types.UpdateSlippageCoefficient]: string;
71
- [Types.UpdateIsSlippageCoefficientCustomized]: boolean;
72
- [Types.UpdateFeeRate]: StateProps['feeRate'];
73
- [Types.UpdateIsFeeRateCustomized]: boolean;
74
- [Types.InitEditParameters]: Pool;
75
- };
76
- export declare type Actions = ActionMap<Payload>[keyof ActionMap<Payload>];
77
- export declare function reducer(state: StateProps, action: Actions): StateProps;
78
- export {};
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- export declare enum Version {
3
- /** DVM; public pool */
4
- standard = "standard",
5
- /** DVM: quoteReserve = 0; public pool */
6
- singleToken = "single-token",
7
- /** DSP */
8
- pegged = "pagged",
9
- /** DPP; private pool */
10
- marketMakerPool = "market-maker-pool"
11
- }
12
- export interface VersionItem {
13
- version: Version;
14
- title: string;
15
- description: string;
16
- exampleImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
17
- title?: string | undefined;
18
- }>;
19
- exampleDarkImgUrl: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
20
- title?: string | undefined;
21
- }>;
22
- docUrl: string;
23
- initPriceLabel: string;
24
- initPriceTips?: string;
25
- initPriceTipsLink?: string;
26
- }
27
- export declare type SectionStatusT = 'waiting' | 'running' | 'completed';
28
- export interface RadioButtonT {
29
- title: string;
30
- description: string;
31
- value: string;
32
- tag?: string;
33
- tagColor?: string;
34
- tagBackgroundColor?: string;
35
- }
@@ -1,18 +0,0 @@
1
- import BigNumber from 'bignumber.js';
2
- import { TokenInfo } from '../../../hooks/Token';
3
- import { Version } from './types';
4
- export declare const DEFAULT_FEE_RATE = "0.3";
5
- export declare const MIN_FEE_RATE = 0.01;
6
- export declare const MAX_FEE_RATE = 10;
7
- export declare const DEFAULT_INIT_PRICE = "1";
8
- export declare const DEFAULT_INIT_PRICE_STANDARD = "0.0000000000001";
9
- export declare const MAX_INIT_PRICE = 100000000;
10
- export declare const DEFAULT_SLIPPAGE_COEFFICIENT = "1";
11
- export declare const DEFAULT_SLIPPAGE_COEFFICIENT_PEGGED = "0.0001";
12
- export declare const MAX_SLIPPAGE_COEFFICIENT_PEGGED = "0.1";
13
- export declare function computeInitPriceText({ selectedVersion, quoteToken, initPrice, midPrice, }: {
14
- selectedVersion: Version;
15
- quoteToken: TokenInfo;
16
- initPrice: string;
17
- midPrice?: BigNumber;
18
- }): string | null;