@dodoex/widgets 3.2.2 → 3.2.3

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 (595) hide show
  1. package/dist/219f8611c6c9e6e2.svg +6 -0
  2. package/dist/34acf2e58b457195.svg +9 -0
  3. package/dist/44df077bd19df476.svg +10 -0
  4. package/dist/5c5d298f247819e1.svg +10 -0
  5. package/dist/assets/bundle-DSSoJu9z.css +297 -0
  6. package/dist/cjs/locales/en-US.js +1 -0
  7. package/dist/cjs/locales/zh-CN.js +1 -0
  8. package/dist/helper-Be7aLbEq.js +1 -0
  9. package/dist/helper-dEfhJEkX.cjs +1 -0
  10. package/dist/index-3B5w0yNs.js +78 -0
  11. package/dist/index-BK2jeS15.cjs +31 -0
  12. package/dist/index-BQ7ViRDq.js +31 -0
  13. package/dist/index-BiM6Z6o7.cjs +78 -0
  14. package/dist/index-DAXZvHWe.js +12 -0
  15. package/dist/index-IayNVRuq.cjs +12 -0
  16. package/dist/index.cjs +1 -0
  17. package/dist/index.js +1 -0
  18. package/dist/locales/en-US.js +1 -0
  19. package/dist/locales/zh-CN.js +1 -0
  20. package/dist/types/components/AddTokenToMetamask.d.ts +8 -0
  21. package/dist/types/components/AddressWithLinkAndCopy.d.ts +23 -0
  22. package/dist/types/components/AutoButton.d.ts +6 -0
  23. package/dist/types/components/Bridge/BridgeRouteShortCard.d.ts +5 -0
  24. package/dist/types/components/Bridge/BridgeSummaryDialog/BridgeSummaryDetail.d.ts +4 -0
  25. package/dist/types/components/Bridge/BridgeSummaryDialog/index.d.ts +17 -0
  26. package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/CrossStep.d.ts +15 -0
  27. package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/EtherscanLinkButton.d.ts +5 -0
  28. package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/RouteSteps.d.ts +6 -0
  29. package/dist/types/components/Bridge/BridgeSummaryDialog/orderInfoModal/SwapStep.d.ts +13 -0
  30. package/dist/types/components/Bridge/SelectBridgeDialog/BridgeLogo.d.ts +9 -0
  31. package/dist/types/components/Bridge/SelectBridgeDialog/DirectionLine.d.ts +3 -0
  32. package/dist/types/components/Bridge/SelectBridgeDialog/RouteCard.d.ts +19 -0
  33. package/dist/types/components/Bridge/SelectBridgeDialog/RouteTagList.d.ts +11 -0
  34. package/dist/types/components/Bridge/SelectBridgeDialog/TokenWithChain.d.ts +10 -0
  35. package/dist/types/components/Bridge/SelectBridgeDialog/index.d.ts +9 -0
  36. package/dist/types/components/Bridge/SelectBridgeDialog/productList.d.ts +7 -0
  37. package/dist/types/components/CardWidgets.d.ts +51 -0
  38. package/dist/types/components/Confirm.d.ts +17 -0
  39. package/dist/types/components/ConnectWallet/ConnectWalletDialog.d.ts +4 -0
  40. package/dist/types/components/ConnectWallet/NeedConnectButton.d.ts +7 -0
  41. package/dist/types/components/ConnectWallet/OpenConnectWalletInfo.d.ts +1 -0
  42. package/dist/types/components/CopyTooltipToast.d.ts +10 -0
  43. package/dist/types/components/DataCard/DataCardGroup.d.ts +8 -0
  44. package/dist/types/components/DateTimePickerInput/components/MobileDateTimePicker.d.ts +13 -0
  45. package/dist/types/components/DateTimePickerInput/components/PCDateTimePicker.d.ts +12 -0
  46. package/dist/types/components/DateTimePickerInput/index.d.ts +10 -0
  47. package/dist/types/components/DateTimePickerInput/utils/index.d.ts +1 -0
  48. package/dist/types/components/Dialog.d.ts +1 -0
  49. package/dist/types/components/ErrorMessageDialog.d.ts +4 -0
  50. package/dist/types/components/GoBack.d.ts +5 -0
  51. package/dist/types/components/HowItWorks.d.ts +10 -0
  52. package/dist/types/components/LiquidityLpPartnerReward.d.ts +23 -0
  53. package/dist/types/components/List/EmptyList.d.ts +8 -0
  54. package/dist/types/components/List/FailedList.d.ts +5 -0
  55. package/dist/types/components/LoadMore.d.ts +8 -0
  56. package/dist/types/components/LoadingRotation.d.ts +3 -0
  57. package/dist/types/components/Message/Countdown.d.ts +12 -0
  58. package/dist/types/components/Message/index.d.ts +2 -0
  59. package/dist/types/components/RiskDialog.d.ts +7 -0
  60. package/dist/types/components/Select.d.ts +15 -0
  61. package/dist/types/components/SelectChain.d.ts +13 -0
  62. package/dist/types/components/SpaceBetweenItem.d.ts +5 -0
  63. package/dist/types/components/SubmittedDialog.d.ts +6 -0
  64. package/dist/types/components/Swap/SwapOrderHistory/PriceWithToggle.d.ts +10 -0
  65. package/dist/types/components/Swap/SwapOrderHistory/RoutingCard.d.ts +7 -0
  66. package/dist/types/components/Swap/SwapOrderHistory/RoutingVision.d.ts +25 -0
  67. package/dist/types/components/Swap/SwapOrderHistory/SameOrderCard.d.ts +5 -0
  68. package/dist/types/components/Swap/SwapOrderHistory/index.d.ts +4 -0
  69. package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +5 -0
  70. package/dist/types/components/Swap/components/Dialog.d.ts +17 -0
  71. package/dist/types/components/Swap/components/ReviewDialog.d.ts +22 -0
  72. package/dist/types/components/Swap/components/SettingsDialog/NumberInput.d.ts +7 -0
  73. package/dist/types/components/Swap/components/SettingsDialog/index.d.ts +6 -0
  74. package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +7 -0
  75. package/dist/types/components/Swap/components/SwapSettingsDialog/MoreTradeSetting.d.ts +4 -0
  76. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/CurveChart.d.ts +9 -0
  77. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/SlippageSlider.d.ts +9 -0
  78. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/index.d.ts +12 -0
  79. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useHoverSlider.d.ts +8 -0
  80. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSlippageSlider.d.ts +14 -0
  81. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageCurveChart/useSuccessRate.d.ts +10 -0
  82. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +6 -0
  83. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +8 -0
  84. package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +10 -0
  85. package/dist/types/components/Swap/components/SwitchBox.d.ts +5 -0
  86. package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +12 -0
  87. package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +15 -0
  88. package/dist/types/components/Swap/components/TokenCard/PercentageSelectButtonGroup.d.ts +6 -0
  89. package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +8 -0
  90. package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +20 -0
  91. package/dist/types/components/Swap/components/TokenCard/index.d.ts +40 -0
  92. package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +9 -0
  93. package/dist/types/components/Swap/index.d.ts +17 -0
  94. package/dist/types/components/SwitchChainDialog/index.d.ts +6 -0
  95. package/dist/types/components/Table.d.ts +6 -0
  96. package/dist/types/components/TextSwitch.d.ts +13 -0
  97. package/dist/types/components/Token/TokenItem.d.ts +9 -0
  98. package/dist/types/components/TokenLogo.d.ts +20 -0
  99. package/dist/types/components/TokenLogoPair.d.ts +16 -0
  100. package/dist/types/components/TokenLogoSimple.d.ts +18 -0
  101. package/dist/types/components/TokenPairStatusButton.d.ts +6 -0
  102. package/dist/types/components/TokenPicker/PopularToken.d.ts +6 -0
  103. package/dist/types/components/TokenPicker/SelectChainItem.d.ts +6 -0
  104. package/dist/types/components/TokenPicker/TokenItem.d.ts +10 -0
  105. package/dist/types/components/TokenPicker/TokenSearchLoadingSkelton.d.ts +1 -0
  106. package/dist/types/components/TokenPicker/index.d.ts +25 -0
  107. package/dist/types/components/TokenSelect.d.ts +21 -0
  108. package/dist/types/components/TokenStatusButton.d.ts +6 -0
  109. package/dist/types/components/Tooltip/QuestionTooltip.d.ts +2 -0
  110. package/dist/types/components/Tooltip/index.d.ts +1 -0
  111. package/dist/types/components/UserOptionsProvider.d.ts +7 -0
  112. package/dist/types/components/Widget/index.d.ts +101 -0
  113. package/dist/types/components/WidgetConfirm.d.ts +15 -0
  114. package/dist/types/components/WidgetContainer.d.ts +5 -0
  115. package/dist/types/components/WidgetDialog.d.ts +14 -0
  116. package/dist/types/components/WithExecutionDialog/index.d.ts +6 -0
  117. package/dist/types/components/chart/components/BaseButton.d.ts +4 -0
  118. package/dist/types/components/chart/components/Display.d.ts +9 -0
  119. package/dist/types/components/chart/components/Input.d.ts +6 -0
  120. package/dist/types/components/chart/components/NumberInput.d.ts +5 -0
  121. package/dist/types/components/chart/components/TogglePriceIcon.d.ts +7 -0
  122. package/dist/types/components/chart/components/TokenLogo.d.ts +4 -0
  123. package/dist/types/components/chart/depth-chart/DepthChartKonva.d.ts +29 -0
  124. package/dist/types/components/chart/depth-chart/__tests__/utils.test.d.ts +1 -0
  125. package/dist/types/components/chart/depth-chart/helper.d.ts +125 -0
  126. package/dist/types/components/chart/depth-chart/index.d.ts +17 -0
  127. package/dist/types/components/chart/depth-chart/index.styled.d.ts +28 -0
  128. package/dist/types/components/chart/depth-chart/useDepthLinePoints.d.ts +21 -0
  129. package/dist/types/components/chart/depth-chart/useGridLinePoints.d.ts +9 -0
  130. package/dist/types/components/chart/depth-chart/useHorizontalLabelPoints.d.ts +15 -0
  131. package/dist/types/components/chart/depth-chart/utils.d.ts +19 -0
  132. package/dist/types/components/chart/depth-chart-v2/index.d.ts +9 -0
  133. package/dist/types/components/chart/depth-chart-v2/index.styled.d.ts +14 -0
  134. package/dist/types/components/chart/hooks/usePreventWheel.d.ts +9 -0
  135. package/dist/types/components/chart/i18n.d.ts +1 -0
  136. package/dist/types/components/chart/liquidity-chart/LiquidityChartKonva.d.ts +27 -0
  137. package/dist/types/components/chart/liquidity-chart/__tests__/helper.test.d.ts +1 -0
  138. package/dist/types/components/chart/liquidity-chart/helper.d.ts +47 -0
  139. package/dist/types/components/chart/liquidity-chart/index.d.ts +16 -0
  140. package/dist/types/components/chart/liquidity-chart/index.styled.d.ts +8 -0
  141. package/dist/types/components/chart/liquidity-chart/useGridLine.d.ts +7 -0
  142. package/dist/types/components/chart/liquidity-chart/useHorizontalLabel.d.ts +9 -0
  143. package/dist/types/components/chart/liquidity-chart/useLiquidityLine.d.ts +17 -0
  144. package/dist/types/components/chart/liquidity-chart/useMiddleLine.d.ts +5 -0
  145. package/dist/types/components/chart/liquidity-chart/usePoints.d.ts +39 -0
  146. package/dist/types/components/chart/utils.d.ts +3 -0
  147. package/dist/types/constants/address.d.ts +1 -0
  148. package/dist/types/constants/api.d.ts +19 -0
  149. package/dist/types/constants/chainList.d.ts +10 -0
  150. package/dist/types/constants/chains.d.ts +20 -0
  151. package/dist/types/constants/locales.d.ts +3 -0
  152. package/dist/types/constants/localstorage.d.ts +14 -0
  153. package/dist/types/constants/pool.d.ts +9 -0
  154. package/dist/types/constants/sessionStorage.d.ts +2 -0
  155. package/dist/types/constants/swap.d.ts +7 -0
  156. package/dist/types/constants/testId.d.ts +11 -0
  157. package/dist/types/constants/token.d.ts +2 -0
  158. package/dist/types/constants/tokenList.d.ts +9 -0
  159. package/dist/types/constants/wallet.d.ts +22 -0
  160. package/dist/types/hooks/Bridge/createBridgeOrder.d.ts +28 -0
  161. package/dist/types/hooks/Bridge/index.d.ts +4 -0
  162. package/dist/types/hooks/Bridge/useExecuteBridgeRoute.d.ts +7 -0
  163. package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +102 -0
  164. package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.test.d.ts +1 -0
  165. package/dist/types/hooks/Bridge/useSendRoute.d.ts +15 -0
  166. package/dist/types/hooks/Bridge/useSwitchBridgeOrSwapSlippage.d.ts +1 -0
  167. package/dist/types/hooks/Chain/useChainList.d.ts +2 -0
  168. package/dist/types/hooks/Chain/useChainList.test.d.ts +1 -0
  169. package/dist/types/hooks/ConnectWallet/Connectors/JsonRpcConnector.d.ts +9 -0
  170. package/dist/types/hooks/ConnectWallet/index.d.ts +3 -0
  171. package/dist/types/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -0
  172. package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +13 -0
  173. package/dist/types/hooks/ConnectWallet/useWalletInfo.d.ts +8 -0
  174. package/dist/types/hooks/ConnectWallet/useWeb3Connectors.d.ts +17 -0
  175. package/dist/types/hooks/ConnectWallet/web3.d.ts +10 -0
  176. package/dist/types/hooks/Submission/getExecutionErrorMsg.d.ts +2 -0
  177. package/dist/types/hooks/Submission/index.d.ts +9 -0
  178. package/dist/types/hooks/Submission/spec.d.ts +56 -0
  179. package/dist/types/hooks/Submission/types.d.ts +95 -0
  180. package/dist/types/hooks/Submission/useBalanceUpdateLoading.d.ts +16 -0
  181. package/dist/types/hooks/Submission/useExecution.d.ts +27 -0
  182. package/dist/types/hooks/Submission/useInflights.d.ts +5 -0
  183. package/dist/types/hooks/Submission/useSubmissionStatusColor.d.ts +18 -0
  184. package/dist/types/hooks/Swap/index.d.ts +4 -0
  185. package/dist/types/hooks/Swap/useCustomSlippage.d.ts +10 -0
  186. package/dist/types/hooks/Swap/useExecuteSwap.d.ts +13 -0
  187. package/dist/types/hooks/Swap/useFetchFiatPrice.d.ts +13 -0
  188. package/dist/types/hooks/Swap/useFetchFiatPrice.test.d.ts +1 -0
  189. package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +40 -0
  190. package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
  191. package/dist/types/hooks/Swap/useForecastSlippageList.d.ts +172 -0
  192. package/dist/types/hooks/Swap/useInitDefaultToken.d.ts +10 -0
  193. package/dist/types/hooks/Swap/useMarginAmount.d.ts +8 -0
  194. package/dist/types/hooks/Swap/useMarginAmount.test.d.ts +1 -0
  195. package/dist/types/hooks/Swap/usePriceTimer.d.ts +5 -0
  196. package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -0
  197. package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +37 -0
  198. package/dist/types/hooks/Swap/useSwapSlippage.d.ts +174 -0
  199. package/dist/types/hooks/Swap/useTradeSwapOrderList.d.ts +242 -0
  200. package/dist/types/hooks/Token/index.d.ts +4 -0
  201. package/dist/types/hooks/Token/type.d.ts +31 -0
  202. package/dist/types/hooks/Token/useDisabledTokenSwitch.d.ts +5 -0
  203. package/dist/types/hooks/Token/useFindTokenByAddress.d.ts +1 -0
  204. package/dist/types/hooks/Token/useFindTokenByAddress.test.d.ts +1 -0
  205. package/dist/types/hooks/Token/useGetCGTokenList.d.ts +15 -0
  206. package/dist/types/hooks/Token/useGetTokenStatus.d.ts +14 -0
  207. package/dist/types/hooks/Token/useInitTokenList.d.ts +6 -0
  208. package/dist/types/hooks/Token/useSelectChainList.d.ts +6 -0
  209. package/dist/types/hooks/Token/useSelectChainList.test.d.ts +1 -0
  210. package/dist/types/hooks/Token/useTokenList.d.ts +35 -0
  211. package/dist/types/hooks/Token/useTokenList.test.d.ts +1 -0
  212. package/dist/types/hooks/Token/useTokenListDefaultToken.d.ts +30 -0
  213. package/dist/types/hooks/Token/useTokenListFetchBalance.d.ts +12 -0
  214. package/dist/types/hooks/Token/useTokenStatus.d.ts +21 -0
  215. package/dist/types/hooks/Token/useTokenStatus.test.d.ts +1 -0
  216. package/dist/types/hooks/contract/index.d.ts +3 -0
  217. package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +3 -0
  218. package/dist/types/hooks/contract/useFetchETHBalance.d.ts +21 -0
  219. package/dist/types/hooks/contract/useFetchTokens.d.ts +14 -0
  220. package/dist/types/hooks/contract/wallet.d.ts +25 -0
  221. package/dist/types/hooks/setting/useDefaultSlippage.d.ts +4 -0
  222. package/dist/types/hooks/setting/useGetAPIService.d.ts +2 -0
  223. package/dist/types/hooks/setting/useSetAutoSlippage.d.ts +13 -0
  224. package/dist/types/hooks/style/useWidgetDevice.d.ts +6 -0
  225. package/dist/types/hooks/useFetchFiatPriceBatch.d.ts +4 -0
  226. package/dist/types/hooks/useGlobalState.d.ts +32 -0
  227. package/dist/types/hooks/useGraphQLRequests.d.ts +3 -0
  228. package/dist/types/hooks/useMessageState.d.ts +17 -0
  229. package/dist/types/hooks/useRouteVisionData.d.ts +15 -0
  230. package/dist/types/hooks/useTokenState.d.ts +18 -0
  231. package/dist/types/index.d.ts +44 -0
  232. package/dist/types/providers/i18n.d.ts +9 -0
  233. package/dist/types/providers/queryClient/index.d.ts +2 -0
  234. package/dist/types/providers/useInitContractRequest.d.ts +1 -0
  235. package/dist/types/router/index.d.ts +10 -0
  236. package/dist/types/router/types.d.ts +48 -0
  237. package/dist/types/utils/address.d.ts +33 -0
  238. package/dist/types/utils/address.test.d.ts +1 -0
  239. package/dist/types/utils/browser.d.ts +9 -0
  240. package/dist/types/utils/bytes.d.ts +3 -0
  241. package/dist/types/utils/chains.d.ts +2 -0
  242. package/dist/types/utils/chains.test.d.ts +1 -0
  243. package/dist/types/utils/formatter.d.ts +50 -0
  244. package/dist/types/utils/formatter.test.d.ts +1 -0
  245. package/dist/types/utils/index.d.ts +5 -0
  246. package/dist/types/utils/time.d.ts +12 -0
  247. package/dist/types/utils/time.test.d.ts +1 -0
  248. package/dist/types/utils/token.d.ts +30 -0
  249. package/dist/types/utils/token.test.d.ts +1 -0
  250. package/dist/types/utils/utils.d.ts +2 -0
  251. package/dist/types/utils/wallet.d.ts +8 -0
  252. package/dist/types/utils/wallet.test.d.ts +1 -0
  253. package/dist/types/widgets/MiningWidget/LpTokenMiningOperate/index.d.ts +6 -0
  254. package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolCard.d.ts +18 -0
  255. package/dist/types/widgets/MiningWidget/MiningCreate/components/PoolPicker.d.ts +22 -0
  256. package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardDetailList.d.ts +7 -0
  257. package/dist/types/widgets/MiningWidget/MiningCreate/components/RewardTokenSelect.d.ts +9 -0
  258. package/dist/types/widgets/MiningWidget/MiningCreate/components/SectionTitle.d.ts +6 -0
  259. package/dist/types/widgets/MiningWidget/MiningCreate/components/StakingRules.d.ts +8 -0
  260. package/dist/types/widgets/MiningWidget/MiningCreate/components/StepTitle.d.ts +4 -0
  261. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/reducers.d.ts +56 -0
  262. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMining.d.ts +12 -0
  263. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useCreateMiningTypeList.d.ts +6 -0
  264. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDefaultStakeToken.d.ts +5 -0
  265. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useDexList.d.ts +16 -0
  266. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolPairList.d.ts +38 -0
  267. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/usePoolTokenBalance.d.ts +6 -0
  268. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useRewardsStatus.d.ts +9 -0
  269. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPair.d.ts +17 -0
  270. package/dist/types/widgets/MiningWidget/MiningCreate/hooks/useTokenPairStatus.d.ts +19 -0
  271. package/dist/types/widgets/MiningWidget/MiningCreate/index.d.ts +5 -0
  272. package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/BottomButtonGroup.d.ts +13 -0
  273. package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/CreateMiningTypeSelect.d.ts +6 -0
  274. package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/RewardForm.d.ts +14 -0
  275. package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/SingleTokenSelect.d.ts +5 -0
  276. package/dist/types/widgets/MiningWidget/MiningCreate/operate-widgets/TokenPairSelect.d.ts +11 -0
  277. package/dist/types/widgets/MiningWidget/MiningCreate/types.d.ts +14 -0
  278. package/dist/types/widgets/MiningWidget/MiningCreate/utils.d.ts +26 -0
  279. package/dist/types/widgets/MiningWidget/MiningDetail/MiningInfo.d.ts +14 -0
  280. package/dist/types/widgets/MiningWidget/MiningDetail/RewardCard.d.ts +10 -0
  281. package/dist/types/widgets/MiningWidget/MiningDetail/index.d.ts +23 -0
  282. package/dist/types/widgets/MiningWidget/MiningDetail/widgets.d.ts +23 -0
  283. package/dist/types/widgets/MiningWidget/MiningList/components/APRSection.d.ts +8 -0
  284. package/dist/types/widgets/MiningWidget/MiningList/components/CloseButton.d.ts +3 -0
  285. package/dist/types/widgets/MiningWidget/MiningList/components/GoBack.d.ts +5 -0
  286. package/dist/types/widgets/MiningWidget/MiningList/components/ManageButtonList.d.ts +7 -0
  287. package/dist/types/widgets/MiningWidget/MiningList/components/MiningCardLayout.d.ts +8 -0
  288. package/dist/types/widgets/MiningWidget/MiningList/components/MiningListEmpty.d.ts +4 -0
  289. package/dist/types/widgets/MiningWidget/MiningList/components/MiningListLoading.d.ts +1 -0
  290. package/dist/types/widgets/MiningWidget/MiningList/components/MiningStatusTabSelect.d.ts +5 -0
  291. package/dist/types/widgets/MiningWidget/MiningList/components/MiningTags.d.ts +6 -0
  292. package/dist/types/widgets/MiningWidget/MiningList/components/MiningTitle.d.ts +30 -0
  293. package/dist/types/widgets/MiningWidget/MiningList/components/MyStakedSection.d.ts +10 -0
  294. package/dist/types/widgets/MiningWidget/MiningList/components/OperateButtonList.d.ts +8 -0
  295. package/dist/types/widgets/MiningWidget/MiningList/components/RewardsSection.d.ts +14 -0
  296. package/dist/types/widgets/MiningWidget/MiningList/components/SearchComponents.d.ts +15 -0
  297. package/dist/types/widgets/MiningWidget/MiningList/components/ShareModeSelect.d.ts +6 -0
  298. package/dist/types/widgets/MiningWidget/MiningList/components/TVLSection.d.ts +5 -0
  299. package/dist/types/widgets/MiningWidget/MiningList/components/TokenAmountPopover.d.ts +12 -0
  300. package/dist/types/widgets/MiningWidget/MiningList/components/UnknownUSDPopover.d.ts +7 -0
  301. package/dist/types/widgets/MiningWidget/MiningList/components/UsersIcon.d.ts +1 -0
  302. package/dist/types/widgets/MiningWidget/MiningList/components/widgets.d.ts +26 -0
  303. package/dist/types/widgets/MiningWidget/MiningList/contexts.d.ts +8 -0
  304. package/dist/types/widgets/MiningWidget/MiningList/dom.d.ts +2 -0
  305. package/dist/types/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.d.ts +22 -0
  306. package/dist/types/widgets/MiningWidget/MiningList/hooks/useGetLpLink.d.ts +7 -0
  307. package/dist/types/widgets/MiningWidget/MiningList/hooks/useHasUnclaimedReward.d.ts +4 -0
  308. package/dist/types/widgets/MiningWidget/MiningList/hooks/useMyStakedLoading.d.ts +11 -0
  309. package/dist/types/widgets/MiningWidget/MiningList/hooks/useOperateHooks.d.ts +17 -0
  310. package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenInfo.d.ts +12 -0
  311. package/dist/types/widgets/MiningWidget/MiningList/hooks/useRewardTokenTrigger.d.ts +5 -0
  312. package/dist/types/widgets/MiningWidget/MiningList/hooks/useStakedInfo.d.ts +12 -0
  313. package/dist/types/widgets/MiningWidget/MiningList/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  314. package/dist/types/widgets/MiningWidget/MiningList/hooks/useTotalRewardUSD.d.ts +5 -0
  315. package/dist/types/widgets/MiningWidget/MiningList/index.d.ts +16 -0
  316. package/dist/types/widgets/MiningWidget/MiningList/mining-types/BaseMiningCard.d.ts +17 -0
  317. package/dist/types/widgets/MiningWidget/MiningList/my-created/MyCreatedMining.d.ts +6 -0
  318. package/dist/types/widgets/MiningWidget/MiningList/my-created/OperateArea.d.ts +10 -0
  319. package/dist/types/widgets/MiningWidget/MiningList/my-created/RewardCard.d.ts +10 -0
  320. package/dist/types/widgets/MiningWidget/MiningList/my-created/index.d.ts +8 -0
  321. package/dist/types/widgets/MiningWidget/MiningList/operate-area/AssociatedMine.d.ts +9 -0
  322. package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimButton.d.ts +9 -0
  323. package/dist/types/widgets/MiningWidget/MiningList/operate-area/ClaimTips.d.ts +1 -0
  324. package/dist/types/widgets/MiningWidget/MiningList/operate-area/GetLpLink.d.ts +4 -0
  325. package/dist/types/widgets/MiningWidget/MiningList/operate-area/InputArea.d.ts +14 -0
  326. package/dist/types/widgets/MiningWidget/MiningList/operate-area/PercentageSelectButtonGroup.d.ts +7 -0
  327. package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardListCard.d.ts +5 -0
  328. package/dist/types/widgets/MiningWidget/MiningList/operate-area/RewardTokenTable.d.ts +5 -0
  329. package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeButton.d.ts +25 -0
  330. package/dist/types/widgets/MiningWidget/MiningList/operate-area/StakeTokenSelect.d.ts +10 -0
  331. package/dist/types/widgets/MiningWidget/MiningList/operate-area/UnstakeButton.d.ts +15 -0
  332. package/dist/types/widgets/MiningWidget/MiningList/operate-area/index.d.ts +2 -0
  333. package/dist/types/widgets/MiningWidget/MiningList/operate-area/utils.d.ts +24 -0
  334. package/dist/types/widgets/MiningWidget/MiningList/utils.d.ts +41 -0
  335. package/dist/types/widgets/MiningWidget/OperateArea/AssociateMine.d.ts +20 -0
  336. package/dist/types/widgets/MiningWidget/OperateArea/ClaimButton.d.ts +4 -0
  337. package/dist/types/widgets/MiningWidget/OperateArea/GetLpLink.d.ts +4 -0
  338. package/dist/types/widgets/MiningWidget/OperateArea/RewardListCard.d.ts +7 -0
  339. package/dist/types/widgets/MiningWidget/OperateArea/StakeButton.d.ts +12 -0
  340. package/dist/types/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +11 -0
  341. package/dist/types/widgets/MiningWidget/OperateArea/Widgets.d.ts +2 -0
  342. package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +14 -0
  343. package/dist/types/widgets/MiningWidget/helper.d.ts +2 -0
  344. package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +69 -0
  345. package/dist/types/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +5 -0
  346. package/dist/types/widgets/MiningWidget/hooks/useMiningBlockNumber.d.ts +6 -0
  347. package/dist/types/widgets/MiningWidget/hooks/useMiningItem.d.ts +11 -0
  348. package/dist/types/widgets/MiningWidget/hooks/useMiningList.d.ts +12 -0
  349. package/dist/types/widgets/MiningWidget/hooks/useMiningListContractDataMap.d.ts +12 -0
  350. package/dist/types/widgets/MiningWidget/hooks/useMyCreatedMiningList.d.ts +11 -0
  351. package/dist/types/widgets/MiningWidget/hooks/usePrevious.d.ts +1 -0
  352. package/dist/types/widgets/MiningWidget/hooks/useRefetch.d.ts +5 -0
  353. package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +28 -0
  354. package/dist/types/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +18 -0
  355. package/dist/types/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +9 -0
  356. package/dist/types/widgets/MiningWidget/hooks/useStatusAndStartBlockNumber.d.ts +13 -0
  357. package/dist/types/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +9 -0
  358. package/dist/types/widgets/MiningWidget/hooks/utils.d.ts +30 -0
  359. package/dist/types/widgets/MiningWidget/types.d.ts +210 -0
  360. package/dist/types/widgets/PoolWidget/AMMV2Create/ConfirmDialog.d.ts +18 -0
  361. package/dist/types/widgets/PoolWidget/AMMV2Create/CreateItem.d.ts +5 -0
  362. package/dist/types/widgets/PoolWidget/AMMV2Create/FeeEdit.d.ts +7 -0
  363. package/dist/types/widgets/PoolWidget/AMMV2Create/MyLiqidity.d.ts +6 -0
  364. package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +21 -0
  365. package/dist/types/widgets/PoolWidget/AMMV2Create/index.d.ts +1 -0
  366. package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionManage.d.ts +12 -0
  367. package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +16 -0
  368. package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +9 -0
  369. package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +5 -0
  370. package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +4 -0
  371. package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +18 -0
  372. package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +8 -0
  373. package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +10 -0
  374. package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +8 -0
  375. package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +4 -0
  376. package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +18 -0
  377. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +10 -0
  378. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
  379. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
  380. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
  381. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +6 -0
  382. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
  383. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +12 -0
  384. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +17 -0
  385. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +22 -0
  386. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/types.d.ts +50 -0
  387. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
  388. package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/utils.d.ts +14 -0
  389. package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +6 -0
  390. package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +12 -0
  391. package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +11 -0
  392. package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +17 -0
  393. package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +21 -0
  394. package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +9 -0
  395. package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +10 -0
  396. package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +21 -0
  397. package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +7 -0
  398. package/dist/types/widgets/PoolWidget/AMMV3/components/shared.d.ts +4 -0
  399. package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +55 -0
  400. package/dist/types/widgets/PoolWidget/AMMV3/constants/misc.d.ts +17 -0
  401. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useContract.d.ts +2 -0
  402. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedPositionInfo.d.ts +7 -0
  403. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.d.ts +20 -0
  404. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useIsTickAtLimit.d.ts +5 -0
  405. package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +20 -0
  406. package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +22 -0
  407. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useRangeHopCallbacks.d.ts +15 -0
  408. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useSwapTaxes.d.ts +5 -0
  409. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +46 -0
  410. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3MintActionHandlers.d.ts +11 -0
  411. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3PositionFees.d.ts +8 -0
  412. package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3Positions.d.ts +13 -0
  413. package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +55 -0
  414. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +6 -0
  415. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +10 -0
  416. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/constants.d.ts +12 -0
  417. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
  418. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/currency.d.ts +3 -0
  419. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
  420. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
  421. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
  422. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
  423. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
  424. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/index.d.ts +4 -0
  425. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
  426. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
  427. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/token.d.ts +48 -0
  428. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/index.d.ts +5 -0
  429. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
  430. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/index.d.ts +4 -0
  431. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
  432. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sqrt.d.ts +7 -0
  433. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
  434. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +32 -0
  435. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/index.d.ts +7 -0
  436. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/pool.d.ts +81 -0
  437. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/position.d.ts +131 -0
  438. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/route.d.ts +26 -0
  439. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tick.d.ts +13 -0
  440. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
  441. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
  442. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/trade.d.ts +220 -0
  443. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/index.d.ts +10 -0
  444. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/internalConstants.d.ts +6 -0
  445. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/multicall.d.ts +10 -0
  446. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
  447. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/payments.d.ts +24 -0
  448. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/quoter.d.ts +37 -0
  449. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/selfPermit.d.ts +25 -0
  450. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/staker.d.ts +101 -0
  451. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/swapRouter.d.ts +51 -0
  452. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/calldata.d.ts +20 -0
  453. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
  454. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
  455. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
  456. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
  457. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/index.d.ts +18 -0
  458. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
  459. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
  460. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
  461. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
  462. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
  463. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/position.d.ts +8 -0
  464. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
  465. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
  466. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
  467. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
  468. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickList.d.ts +23 -0
  469. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
  470. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
  471. package/dist/types/widgets/PoolWidget/AMMV3/types/position.d.ts +20 -0
  472. package/dist/types/widgets/PoolWidget/AMMV3/types.d.ts +10 -0
  473. package/dist/types/widgets/PoolWidget/AMMV3/utils/computeSurroundingTicks.d.ts +4 -0
  474. package/dist/types/widgets/PoolWidget/AMMV3/utils/formatTickPrice.d.ts +9 -0
  475. package/dist/types/widgets/PoolWidget/AMMV3/utils/getTickToPrice.d.ts +2 -0
  476. package/dist/types/widgets/PoolWidget/AMMV3/utils/maxAmountSpend.d.ts +6 -0
  477. package/dist/types/widgets/PoolWidget/AMMV3/utils/slippage.d.ts +2 -0
  478. package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseCurrencyAmount.d.ts +6 -0
  479. package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseTick.d.ts +4 -0
  480. package/dist/types/widgets/PoolWidget/AMMV3/utils.d.ts +9 -0
  481. package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +16 -0
  482. package/dist/types/widgets/PoolWidget/PoolCreate/components/ConfirmInfoDialog.d.ts +9 -0
  483. package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthAndLiquidityChart.d.ts +10 -0
  484. package/dist/types/widgets/PoolWidget/PoolCreate/components/DepthChartWrapper.d.ts +10 -0
  485. package/dist/types/widgets/PoolWidget/PoolCreate/components/EmptyChart.d.ts +4 -0
  486. package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +6 -0
  487. package/dist/types/widgets/PoolWidget/PoolCreate/components/FixedInitPriceConfirm.d.ts +5 -0
  488. package/dist/types/widgets/PoolWidget/PoolCreate/components/GasWrapGasTokenError.d.ts +12 -0
  489. package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +14 -0
  490. package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +14 -0
  491. package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +7 -0
  492. package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButton.d.ts +11 -0
  493. package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonIcon.d.ts +3 -0
  494. package/dist/types/widgets/PoolWidget/PoolCreate/components/RadioButtonTag.d.ts +6 -0
  495. package/dist/types/widgets/PoolWidget/PoolCreate/components/SectionTitle.d.ts +6 -0
  496. package/dist/types/widgets/PoolWidget/PoolCreate/components/SelectAndInput.d.ts +7 -0
  497. package/dist/types/widgets/PoolWidget/PoolCreate/components/StepTitle.d.ts +5 -0
  498. package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +6 -0
  499. package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +7 -0
  500. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/contract/useCreatePoolSubmit.d.ts +15 -0
  501. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useCreatePmm.d.ts +26 -0
  502. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useDefaultTokens.d.ts +6 -0
  503. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useFeeRateList.d.ts +13 -0
  504. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +16 -0
  505. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useSlippageCoefficientList.d.ts +8 -0
  506. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useValidation.d.ts +4 -0
  507. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +12 -0
  508. package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -0
  509. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.d.ts +10 -0
  510. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/FeeRateSetting.d.ts +7 -0
  511. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +16 -0
  512. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +11 -0
  513. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/RatioSetting.d.ts +13 -0
  514. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/SlippageCoefficientSetting.d.ts +9 -0
  515. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/TokenPairSelect.d.ts +8 -0
  516. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +7 -0
  517. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/widgets.d.ts +7 -0
  518. package/dist/types/widgets/PoolWidget/PoolCreate/reducer.d.ts +90 -0
  519. package/dist/types/widgets/PoolWidget/PoolCreate/types.d.ts +39 -0
  520. package/dist/types/widgets/PoolWidget/PoolCreate/utils.d.ts +40 -0
  521. package/dist/types/widgets/PoolWidget/PoolDetail/components/BaseQuotePie.d.ts +27 -0
  522. package/dist/types/widgets/PoolWidget/PoolDetail/components/ChartInfo.d.ts +5 -0
  523. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/LiquidityProvidersTable.d.ts +4 -0
  524. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/ParametersTable.d.ts +14 -0
  525. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/SwapsTable.d.ts +5 -0
  526. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +5 -0
  527. package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +5 -0
  528. package/dist/types/widgets/PoolWidget/PoolDetail/components/StatBarChart.d.ts +9 -0
  529. package/dist/types/widgets/PoolWidget/PoolDetail/components/TitleInfo.d.ts +5 -0
  530. package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +5 -0
  531. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/useLiquidityProviders.d.ts +159 -0
  532. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDashboard.d.ts +315 -0
  533. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolDayData.d.ts +166 -0
  534. package/dist/types/widgets/PoolWidget/PoolDetail/hooks/usePoolSwapList.d.ts +245 -0
  535. package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +5 -0
  536. package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +17 -0
  537. package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +11 -0
  538. package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +15 -0
  539. package/dist/types/widgets/PoolWidget/PoolList/components/AddingOrRemovingBtn.d.ts +4 -0
  540. package/dist/types/widgets/PoolWidget/PoolList/components/CreatePoolBtn.d.ts +3 -0
  541. package/dist/types/widgets/PoolWidget/PoolList/components/FilterAddressTags.d.ts +7 -0
  542. package/dist/types/widgets/PoolWidget/PoolList/components/FilterTokenTags.d.ts +7 -0
  543. package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +4 -0
  544. package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +8 -0
  545. package/dist/types/widgets/PoolWidget/PoolList/components/LoadingCard.d.ts +4 -0
  546. package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
  547. package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +19 -0
  548. package/dist/types/widgets/PoolWidget/PoolList/components/SkeletonTable.d.ts +3 -0
  549. package/dist/types/widgets/PoolWidget/PoolList/components/TokenAndPoolFilter.d.ts +8 -0
  550. package/dist/types/widgets/PoolWidget/PoolList/components/TokenListPoolItem.d.ts +5 -0
  551. package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
  552. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +6 -0
  553. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +61 -0
  554. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +16 -0
  555. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +12 -0
  556. package/dist/types/widgets/PoolWidget/PoolModify/SectionTitle.d.ts +3 -0
  557. package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +5 -0
  558. package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/BottomButtonGroup.d.ts +7 -0
  559. package/dist/types/widgets/PoolWidget/PoolModify/operate-widgets/FeeRateSetting.d.ts +7 -0
  560. package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +8 -0
  561. package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +12 -0
  562. package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +10 -0
  563. package/dist/types/widgets/PoolWidget/PoolOperate/components/ComparePrice.d.ts +8 -0
  564. package/dist/types/widgets/PoolWidget/PoolOperate/components/GSPPairRiskWarning.d.ts +1 -0
  565. package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +9 -0
  566. package/dist/types/widgets/PoolWidget/PoolOperate/components/OperateBtn.d.ts +6 -0
  567. package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +12 -0
  568. package/dist/types/widgets/PoolWidget/PoolOperate/components/SliderPercentageCard.d.ts +7 -0
  569. package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +19 -0
  570. package/dist/types/widgets/PoolWidget/PoolOperate/components/TokenList.d.ts +11 -0
  571. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useCheckToken.d.ts +13 -0
  572. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useComparePrice.d.ts +19 -0
  573. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useLiquidityOperateAmount.d.ts +53 -0
  574. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePercentageRemove.d.ts +26 -0
  575. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  576. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/usePoolOrMiningTabs.d.ts +14 -0
  577. package/dist/types/widgets/PoolWidget/PoolOperate/hooks/useRemoveLiquidityTokenStatus.d.ts +35 -0
  578. package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +20 -0
  579. package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +34 -0
  580. package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +87 -0
  581. package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +22 -0
  582. package/dist/types/widgets/PoolWidget/hooks/contract/useOperateLiquidity.d.ts +36 -0
  583. package/dist/types/widgets/PoolWidget/hooks/contract/useWithdrawInfo.d.ts +33 -0
  584. package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +12 -0
  585. package/dist/types/widgets/PoolWidget/hooks/useAMMV2Balance.d.ts +13 -0
  586. package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +11 -0
  587. package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +49 -0
  588. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +386 -0
  589. package/dist/types/widgets/PoolWidget/hooks/usePoolListMyLiquidity.d.ts +15 -0
  590. package/dist/types/widgets/PoolWidget/hooks/usePoolTypeTag.d.ts +16 -0
  591. package/dist/types/widgets/PoolWidget/hooks/useUniV2CreatePairs.d.ts +18 -0
  592. package/dist/types/widgets/PoolWidget/hooks/useUniV2Pairs.d.ts +27 -0
  593. package/dist/types/widgets/PoolWidget/index.d.ts +4 -0
  594. package/dist/types/widgets/PoolWidget/utils.d.ts +21 -0
  595. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ import { Interface } from '@ethersproject/abi';
2
+ import { BigintIsh, Currency, CurrencyAmount, TradeType } from '../sdk-core';
3
+ import { Route } from './entities';
4
+ import { MethodParameters } from './utils';
5
+ /**
6
+ * Optional arguments to send to the quoter.
7
+ */
8
+ export interface QuoteOptions {
9
+ /**
10
+ * The optional price limit for the trade.
11
+ */
12
+ sqrtPriceLimitX96?: BigintIsh;
13
+ /**
14
+ * The optional quoter interface to use
15
+ */
16
+ useQuoterV2?: boolean;
17
+ }
18
+ /**
19
+ * Represents the Uniswap V3 QuoterV1 contract with a method for returning the formatted
20
+ * calldata needed to call the quoter contract.
21
+ */
22
+ export declare abstract class SwapQuoter {
23
+ static V1INTERFACE: Interface;
24
+ static V2INTERFACE: Interface;
25
+ /**
26
+ * Produces the on-chain method name of the appropriate function within QuoterV2,
27
+ * and the relevant hex encoded parameters.
28
+ * @template TInput The input token, either Ether or an ERC-20
29
+ * @template TOutput The output token, either Ether or an ERC-20
30
+ * @param route The swap route, a list of pools through which a swap can occur
31
+ * @param amount The amount of the quote, either an amount in, or an amount out
32
+ * @param tradeType The trade type, either exact input or exact output
33
+ * @param options The optional params including price limit and Quoter contract switch
34
+ * @returns The formatted calldata
35
+ */
36
+ static quoteCallParameters<TInput extends Currency, TOutput extends Currency>(route: Route<TInput, TOutput>, amount: CurrencyAmount<TInput | TOutput>, tradeType: TradeType, options?: QuoteOptions): MethodParameters;
37
+ }
@@ -0,0 +1,25 @@
1
+ import { Interface } from '@ethersproject/abi';
2
+ import { BigintIsh, Token } from '../sdk-core';
3
+ export interface StandardPermitArguments {
4
+ v: 0 | 1 | 27 | 28;
5
+ r: string;
6
+ s: string;
7
+ amount: BigintIsh;
8
+ deadline: BigintIsh;
9
+ }
10
+ export interface AllowedPermitArguments {
11
+ v: 0 | 1 | 27 | 28;
12
+ r: string;
13
+ s: string;
14
+ nonce: BigintIsh;
15
+ expiry: BigintIsh;
16
+ }
17
+ export type PermitOptions = StandardPermitArguments | AllowedPermitArguments;
18
+ export declare abstract class SelfPermit {
19
+ static INTERFACE: Interface;
20
+ /**
21
+ * Cannot be constructed.
22
+ */
23
+ private constructor();
24
+ static encodePermit(token: Token, options: PermitOptions): string;
25
+ }
@@ -0,0 +1,101 @@
1
+ import { Interface } from '@ethersproject/abi';
2
+ import { BigintIsh, Token } from '../sdk-core';
3
+ import { Pool } from './entities';
4
+ import { MethodParameters } from './utils/calldata';
5
+ export type FullWithdrawOptions = ClaimOptions & WithdrawOptions;
6
+ /**
7
+ * Represents a unique staking program.
8
+ */
9
+ export interface IncentiveKey {
10
+ /**
11
+ * The token rewarded for participating in the staking program.
12
+ */
13
+ rewardToken: Token;
14
+ /**
15
+ * The pool that the staked positions must provide in.
16
+ */
17
+ pool: Pool;
18
+ /**
19
+ * The time when the incentive program begins.
20
+ */
21
+ startTime: BigintIsh;
22
+ /**
23
+ * The time that the incentive program ends.
24
+ */
25
+ endTime: BigintIsh;
26
+ /**
27
+ * The address which receives any remaining reward tokens at `endTime`.
28
+ */
29
+ refundee: string;
30
+ }
31
+ /**
32
+ * Options to specify when claiming rewards.
33
+ */
34
+ export interface ClaimOptions {
35
+ /**
36
+ * The id of the NFT
37
+ */
38
+ tokenId: BigintIsh;
39
+ /**
40
+ * Address to send rewards to.
41
+ */
42
+ recipient: string;
43
+ /**
44
+ * The amount of `rewardToken` to claim. 0 claims all.
45
+ */
46
+ amount?: BigintIsh;
47
+ }
48
+ /**
49
+ * Options to specify when withdrawing a position.
50
+ */
51
+ export interface WithdrawOptions {
52
+ /**
53
+ * Set when withdrawing. The position will be sent to `owner` on withdraw.
54
+ */
55
+ owner: string;
56
+ /**
57
+ * Set when withdrawing. `data` is passed to `safeTransferFrom` when transferring the position from contract back to owner.
58
+ */
59
+ data?: string;
60
+ }
61
+ export declare abstract class Staker {
62
+ static INTERFACE: Interface;
63
+ protected constructor();
64
+ private static INCENTIVE_KEY_ABI;
65
+ /**
66
+ * To claim rewards, must unstake and then claim.
67
+ * @param incentiveKey The unique identifier of a staking program.
68
+ * @param options Options for producing the calldata to claim. Can't claim unless you unstake.
69
+ * @returns The calldatas for 'unstakeToken' and 'claimReward'.
70
+ */
71
+ private static encodeClaim;
72
+ /**
73
+ *
74
+ * Note: A `tokenId` can be staked in many programs but to claim rewards and continue the program you must unstake, claim, and then restake.
75
+ * @param incentiveKeys An IncentiveKey or array of IncentiveKeys that `tokenId` is staked in.
76
+ * Input an array of IncentiveKeys to claim rewards for each program.
77
+ * @param options ClaimOptions to specify tokenId, recipient, and amount wanting to collect.
78
+ * Note that you can only specify one amount and one recipient across the various programs if you are collecting from multiple programs at once.
79
+ * @returns
80
+ */
81
+ static collectRewards(incentiveKeys: IncentiveKey | IncentiveKey[], options: ClaimOptions): MethodParameters;
82
+ /**
83
+ *
84
+ * @param incentiveKeys A list of incentiveKeys to unstake from. Should include all incentiveKeys (unique staking programs) that `options.tokenId` is staked in.
85
+ * @param withdrawOptions Options for producing claim calldata and withdraw calldata. Can't withdraw without unstaking all programs for `tokenId`.
86
+ * @returns Calldata for unstaking, claiming, and withdrawing.
87
+ */
88
+ static withdrawToken(incentiveKeys: IncentiveKey | IncentiveKey[], withdrawOptions: FullWithdrawOptions): MethodParameters;
89
+ /**
90
+ *
91
+ * @param incentiveKeys A single IncentiveKey or array of IncentiveKeys to be encoded and used in the data parameter in `safeTransferFrom`
92
+ * @returns An IncentiveKey as a string
93
+ */
94
+ static encodeDeposit(incentiveKeys: IncentiveKey | IncentiveKey[]): string;
95
+ /**
96
+ *
97
+ * @param incentiveKey An `IncentiveKey` which represents a unique staking program.
98
+ * @returns An encoded IncentiveKey to be read by ethers
99
+ */
100
+ private static _encodeIncentiveKey;
101
+ }
@@ -0,0 +1,51 @@
1
+ import { Interface } from '@ethersproject/abi';
2
+ import { BigintIsh, Currency, Percent, TradeType } from '../sdk-core';
3
+ import { Trade } from './entities/trade';
4
+ import { FeeOptions } from './payments';
5
+ import { PermitOptions } from './selfPermit';
6
+ import { MethodParameters } from './utils/calldata';
7
+ /**
8
+ * Options for producing the arguments to send calls to the router.
9
+ */
10
+ export interface SwapOptions {
11
+ /**
12
+ * How much the execution price is allowed to move unfavorably from the trade execution price.
13
+ */
14
+ slippageTolerance: Percent;
15
+ /**
16
+ * The account that should receive the output.
17
+ */
18
+ recipient: string;
19
+ /**
20
+ * When the transaction expires, in epoch seconds.
21
+ */
22
+ deadline: BigintIsh;
23
+ /**
24
+ * The optional permit parameters for spending the input.
25
+ */
26
+ inputTokenPermit?: PermitOptions;
27
+ /**
28
+ * The optional price limit for the trade.
29
+ */
30
+ sqrtPriceLimitX96?: BigintIsh;
31
+ /**
32
+ * Optional information for taking a fee on output.
33
+ */
34
+ fee?: FeeOptions;
35
+ }
36
+ /**
37
+ * Represents the Uniswap V3 SwapRouter, and has static methods for helping execute trades.
38
+ */
39
+ export declare abstract class SwapRouter {
40
+ static INTERFACE: Interface;
41
+ /**
42
+ * Cannot be constructed.
43
+ */
44
+ private constructor();
45
+ /**
46
+ * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade.
47
+ * @param trade to produce call parameters for
48
+ * @param options options for the call parameters
49
+ */
50
+ static swapCallParameters(trades: Trade<Currency, Currency, TradeType> | Trade<Currency, Currency, TradeType>[], options: SwapOptions): MethodParameters;
51
+ }
@@ -0,0 +1,20 @@
1
+ import { BigintIsh } from '../../sdk-core';
2
+ /**
3
+ * Generated method parameters for executing a call.
4
+ */
5
+ export interface MethodParameters {
6
+ /**
7
+ * The hex encoded calldata to perform the given operation
8
+ */
9
+ calldata: string;
10
+ /**
11
+ * The amount of ether (wei) to send in hex.
12
+ */
13
+ value: string;
14
+ }
15
+ /**
16
+ * Converts a big int to a hex string
17
+ * @param bigintIsh
18
+ * @returns The hex encoded calldata
19
+ */
20
+ export declare function toHex(bigintIsh: BigintIsh): string;
@@ -0,0 +1,21 @@
1
+ import { ChainId } from '../../sdk-core';
2
+ import { Token } from '../../sdk-core/entities/token';
3
+ import { FeeAmount } from '../constants';
4
+ /**
5
+ * Computes a pool address
6
+ * @param factoryAddress The Uniswap V3 factory address
7
+ * @param tokenA The first token of the pair, irrespective of sort order
8
+ * @param tokenB The second token of the pair, irrespective of sort order
9
+ * @param fee The fee tier of the pool
10
+ * @param initCodeHashManualOverride Override the init code hash used to compute the pool address if necessary
11
+ * @param chainId
12
+ * @returns The pool address
13
+ */
14
+ export declare function computePoolAddress({ factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride, chainId, }: {
15
+ factoryAddress: string;
16
+ tokenA: Token;
17
+ tokenB: Token;
18
+ fee: FeeAmount;
19
+ initCodeHashManualOverride?: string;
20
+ chainId?: ChainId;
21
+ }): string;
@@ -0,0 +1,8 @@
1
+ import { Currency } from '../../sdk-core';
2
+ import { Route } from '../entities/route';
3
+ /**
4
+ * Converts a route to a hex encoded path
5
+ * @param route the v3 path to convert to an encoded path
6
+ * @param exactOutput whether the route should be encoded in reverse, for making exact output swaps
7
+ */
8
+ export declare function encodeRouteToPath(route: Route<Currency, Currency>, exactOutput: boolean): string;
@@ -0,0 +1,9 @@
1
+ import JSBI from 'jsbi';
2
+ import { BigintIsh } from '../../sdk-core';
3
+ /**
4
+ * Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
5
+ * @param amount1 The numerator amount i.e., the amount of token1
6
+ * @param amount0 The denominator amount i.e., the amount of token0
7
+ * @returns The sqrt ratio
8
+ */
9
+ export declare function encodeSqrtRatioX96(amount1: BigintIsh, amount0: BigintIsh): JSBI;
@@ -0,0 +1,8 @@
1
+ import JSBI from 'jsbi';
2
+ export declare abstract class FullMath {
3
+ /**
4
+ * Cannot be constructed.
5
+ */
6
+ private constructor();
7
+ static mulDivRoundingUp(a: JSBI, b: JSBI, denominator: JSBI): JSBI;
8
+ }
@@ -0,0 +1,18 @@
1
+ export * from './calldata';
2
+ export * from './computePoolAddress';
3
+ export * from './encodeRouteToPath';
4
+ export * from './encodeSqrtRatioX96';
5
+ export * from './fullMath';
6
+ export * from './isSorted';
7
+ export * from './liquidityMath';
8
+ export * from './maxLiquidityForAmounts';
9
+ export * from './mostSignificantBit';
10
+ export * from './nearestUsableTick';
11
+ export * from './position';
12
+ export * from './priceTickConversions';
13
+ export * from './sqrtPriceMath';
14
+ export * from './v3swap';
15
+ export * from './swapMath';
16
+ export * from './tickLibrary';
17
+ export * from './tickList';
18
+ export * from './tickMath';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Determines if a tick list is sorted
3
+ * @param list The tick list
4
+ * @param comparator The comparator
5
+ * @returns true if sorted
6
+ */
7
+ export declare function isSorted<T>(list: Array<T>, comparator: (a: T, b: T) => number): boolean;
@@ -0,0 +1,8 @@
1
+ import JSBI from 'jsbi';
2
+ export declare abstract class LiquidityMath {
3
+ /**
4
+ * Cannot be constructed.
5
+ */
6
+ private constructor();
7
+ static addDelta(x: JSBI, y: JSBI): JSBI;
8
+ }
@@ -0,0 +1,14 @@
1
+ import JSBI from 'jsbi';
2
+ import { BigintIsh } from '../../sdk-core';
3
+ /**
4
+ * Computes the maximum amount of liquidity received for a given amount of token0, token1,
5
+ * and the prices at the tick boundaries.
6
+ * @param sqrtRatioCurrentX96 the current price
7
+ * @param sqrtRatioAX96 price at lower boundary
8
+ * @param sqrtRatioBX96 price at upper boundary
9
+ * @param amount0 token0 amount
10
+ * @param amount1 token1 amount
11
+ * @param useFullPrecision if false, liquidity will be maximized according to what the router can calculate,
12
+ * not what core can theoretically support
13
+ */
14
+ export declare function maxLiquidityForAmounts(sqrtRatioCurrentX96: JSBI, sqrtRatioAX96: JSBI, sqrtRatioBX96: JSBI, amount0: BigintIsh, amount1: BigintIsh, useFullPrecision: boolean): JSBI;
@@ -0,0 +1,2 @@
1
+ import JSBI from 'jsbi';
2
+ export declare function mostSignificantBit(x: JSBI): number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the closest tick that is nearest a given tick and usable for the given tick spacing
3
+ * @param tick the target tick
4
+ * @param tickSpacing the spacing of the pool
5
+ */
6
+ export declare function nearestUsableTick(tick: number, tickSpacing: number): number;
@@ -0,0 +1,8 @@
1
+ import JSBI from 'jsbi';
2
+ export declare abstract class PositionLibrary {
3
+ /**
4
+ * Cannot be constructed.
5
+ */
6
+ private constructor();
7
+ static getTokensOwed(feeGrowthInside0LastX128: JSBI, feeGrowthInside1LastX128: JSBI, liquidity: JSBI, feeGrowthInside0X128: JSBI, feeGrowthInside1X128: JSBI): JSBI[];
8
+ }
@@ -0,0 +1,15 @@
1
+ import { Price, Token } from '../../sdk-core';
2
+ /**
3
+ * Returns a price object corresponding to the input tick and the base/quote token
4
+ * Inputs must be tokens because the address order is used to interpret the price represented by the tick
5
+ * @param baseToken the base token of the price
6
+ * @param quoteToken the quote token of the price
7
+ * @param tick the tick for which to return the price
8
+ */
9
+ export declare function tickToPrice(baseToken: Token, quoteToken: Token, tick: number): Price<Token, Token>;
10
+ /**
11
+ * Returns the first tick for which the given price is greater than or equal to the tick price
12
+ * @param price for which to return the closest tick that represents a price less than or equal to the input price,
13
+ * i.e. the price of the returned tick is less than or equal to the input price
14
+ */
15
+ export declare function priceToClosestTick(price: Price<Token, Token>): number;
@@ -0,0 +1,13 @@
1
+ import JSBI from 'jsbi';
2
+ export declare abstract class SqrtPriceMath {
3
+ /**
4
+ * Cannot be constructed.
5
+ */
6
+ private constructor();
7
+ static getAmount0Delta(sqrtRatioAX96: JSBI, sqrtRatioBX96: JSBI, liquidity: JSBI, roundUp: boolean): JSBI;
8
+ static getAmount1Delta(sqrtRatioAX96: JSBI, sqrtRatioBX96: JSBI, liquidity: JSBI, roundUp: boolean): JSBI;
9
+ static getNextSqrtPriceFromInput(sqrtPX96: JSBI, liquidity: JSBI, amountIn: JSBI, zeroForOne: boolean): JSBI;
10
+ static getNextSqrtPriceFromOutput(sqrtPX96: JSBI, liquidity: JSBI, amountOut: JSBI, zeroForOne: boolean): JSBI;
11
+ private static getNextSqrtPriceFromAmount0RoundingUp;
12
+ private static getNextSqrtPriceFromAmount1RoundingDown;
13
+ }
@@ -0,0 +1,9 @@
1
+ import JSBI from 'jsbi';
2
+ import { FeeAmount } from '../constants';
3
+ export declare abstract class SwapMath {
4
+ /**
5
+ * Cannot be constructed.
6
+ */
7
+ private constructor();
8
+ static computeSwapStep(sqrtRatioCurrentX96: JSBI, sqrtRatioTargetX96: JSBI, liquidity: JSBI, amountRemaining: JSBI, feePips: JSBI | FeeAmount): [JSBI, JSBI, JSBI, JSBI];
9
+ }
@@ -0,0 +1,14 @@
1
+ import JSBI from 'jsbi';
2
+ interface FeeGrowthOutside {
3
+ feeGrowthOutside0X128: JSBI;
4
+ feeGrowthOutside1X128: JSBI;
5
+ }
6
+ export declare function subIn256(x: JSBI, y: JSBI): JSBI;
7
+ export declare abstract class TickLibrary {
8
+ /**
9
+ * Cannot be constructed.
10
+ */
11
+ private constructor();
12
+ static getFeeGrowthInside(feeGrowthOutsideLower: FeeGrowthOutside, feeGrowthOutsideUpper: FeeGrowthOutside, tickLower: number, tickUpper: number, tickCurrent: number, feeGrowthGlobal0X128: JSBI, feeGrowthGlobal1X128: JSBI): JSBI[];
13
+ }
14
+ export {};
@@ -0,0 +1,23 @@
1
+ import { Tick } from '../entities/tick';
2
+ /**
3
+ * Utility methods for interacting with sorted lists of ticks
4
+ */
5
+ export declare abstract class TickList {
6
+ /**
7
+ * Cannot be constructed
8
+ */
9
+ private constructor();
10
+ static validateList(ticks: Tick[], tickSpacing: number): void;
11
+ static isBelowSmallest(ticks: readonly Tick[], tick: number): boolean;
12
+ static isAtOrAboveLargest(ticks: readonly Tick[], tick: number): boolean;
13
+ static getTick(ticks: readonly Tick[], index: number): Tick;
14
+ /**
15
+ * Finds the largest tick in the list of ticks that is less than or equal to tick
16
+ * @param ticks list of ticks
17
+ * @param tick tick to find the largest tick that is less than or equal to tick
18
+ * @private
19
+ */
20
+ private static binarySearch;
21
+ static nextInitializedTick(ticks: readonly Tick[], tick: number, lte: boolean): Tick;
22
+ static nextInitializedTickWithinOneWord(ticks: readonly Tick[], tick: number, lte: boolean, tickSpacing: number): [number, boolean];
23
+ }
@@ -0,0 +1,34 @@
1
+ import JSBI from 'jsbi';
2
+ export declare abstract class TickMath {
3
+ /**
4
+ * Cannot be constructed.
5
+ */
6
+ private constructor();
7
+ /**
8
+ * The minimum tick that can be used on any pool.
9
+ */
10
+ static MIN_TICK: number;
11
+ /**
12
+ * The maximum tick that can be used on any pool.
13
+ */
14
+ static MAX_TICK: number;
15
+ /**
16
+ * The sqrt ratio corresponding to the minimum tick that could be used on any pool.
17
+ */
18
+ static MIN_SQRT_RATIO: JSBI;
19
+ /**
20
+ * The sqrt ratio corresponding to the maximum tick that could be used on any pool.
21
+ */
22
+ static MAX_SQRT_RATIO: JSBI;
23
+ /**
24
+ * Returns the sqrt ratio as a Q64.96 for the given tick. The sqrt ratio is computed as sqrt(1.0001)^tick
25
+ * @param tick the tick for which to compute the sqrt ratio
26
+ */
27
+ static getSqrtRatioAtTick(tick: number): JSBI;
28
+ /**
29
+ * Returns the tick corresponding to a given sqrt ratio, s.t. #getSqrtRatioAtTick(tick) <= sqrtRatioX96
30
+ * and #getSqrtRatioAtTick(tick + 1) > sqrtRatioX96
31
+ * @param sqrtRatioX96 the sqrt ratio as a Q64.96 for which to compute the tick
32
+ */
33
+ static getTickAtSqrtRatio(sqrtRatioX96: JSBI): number;
34
+ }
@@ -0,0 +1,8 @@
1
+ import JSBI from 'jsbi';
2
+ import { TickDataProvider } from '../entities/tickDataProvider';
3
+ export declare function v3Swap(fee: JSBI, sqrtRatioX96: JSBI, tickCurrent: number, liquidity: JSBI, tickSpacing: number, tickDataProvider: TickDataProvider, zeroForOne: boolean, amountSpecified: JSBI, sqrtPriceLimitX96?: JSBI): Promise<{
4
+ amountCalculated: JSBI;
5
+ sqrtRatioX96: JSBI;
6
+ liquidity: JSBI;
7
+ tickCurrent: number;
8
+ }>;
@@ -0,0 +1,20 @@
1
+ import { FeeAmount } from '../sdks/v3-sdk';
2
+ export interface PositionDetails {
3
+ nonce: string;
4
+ tokenId: string;
5
+ operator: string;
6
+ token0: string;
7
+ token1: string;
8
+ fee: FeeAmount;
9
+ tickLower: number;
10
+ tickUpper: number;
11
+ liquidity: string;
12
+ feeGrowthInside0LastX128: string;
13
+ feeGrowthInside1LastX128: string;
14
+ tokensOwed0: string;
15
+ tokensOwed1: string;
16
+ }
17
+ export declare enum PositionField {
18
+ TOKEN0 = "TOKEN0",
19
+ TOKEN1 = "TOKEN1"
20
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum Field {
2
+ CURRENCY_A = "CURRENCY_A",
3
+ CURRENCY_B = "CURRENCY_B"
4
+ }
5
+ export declare enum Bound {
6
+ LOWER = "LOWER",
7
+ UPPER = "UPPER"
8
+ }
9
+ export type FullRange = true;
10
+ export type OperateType = null | 'stake' | 'unstake' | 'claim';
@@ -0,0 +1,4 @@
1
+ import { Ticks } from '@dodoex/api';
2
+ import { TickProcessed } from '../hooks/usePoolTickData';
3
+ import { Token } from '../sdks/sdk-core';
4
+ export default function computeSurroundingTicks(token0: Token, token1: Token, activeTickProcessed: TickProcessed, sortedTickData: Ticks, pivot: number, ascending: boolean): TickProcessed[];
@@ -0,0 +1,9 @@
1
+ import { Currency, Price } from '../sdks/sdk-core';
2
+ import { Bound } from '../types';
3
+ export declare function formatTickPrice({ price, atLimit, direction, }: {
4
+ price?: Price<Currency, Currency> | string;
5
+ atLimit: {
6
+ [bound in Bound]?: boolean | undefined;
7
+ };
8
+ direction: Bound;
9
+ }): string;
@@ -0,0 +1,2 @@
1
+ import { Price, Token } from '../sdks/sdk-core';
2
+ export declare function getTickToPrice(baseToken?: Token, quoteToken?: Token, tick?: number): Price<Token, Token> | undefined;
@@ -0,0 +1,6 @@
1
+ import { Currency, CurrencyAmount } from '../sdks/sdk-core';
2
+ /**
3
+ * Given some token amount, return the max that can be spent of it
4
+ * @param currencyAmount to return max of
5
+ */
6
+ export declare function maxAmountSpend(currencyAmount?: CurrencyAmount<Currency>): CurrencyAmount<Currency> | undefined;
@@ -0,0 +1,2 @@
1
+ import { Percent } from '../sdks/sdk-core';
2
+ export declare function toSlippagePercent(slippage: string | number): Percent;
@@ -0,0 +1,6 @@
1
+ import { Currency, CurrencyAmount } from '../sdks/sdk-core';
2
+ /**
3
+ * Parses a CurrencyAmount from the passed string.
4
+ * Returns the CurrencyAmount, or undefined if parsing fails.
5
+ */
6
+ export default function tryParseCurrencyAmount<T extends Currency>(value?: string, currency?: T): CurrencyAmount<T> | undefined;
@@ -0,0 +1,4 @@
1
+ import { Currency, Price, Token } from '../sdks/sdk-core';
2
+ import { FeeAmount } from '../sdks/v3-sdk';
3
+ export declare function tryParsePrice<T extends Currency>(baseToken?: T, quoteToken?: T, value?: string): Price<T, T> | undefined;
4
+ export declare function tryParseTick(baseToken?: Token, quoteToken?: Token, feeAmount?: FeeAmount, value?: string): number | undefined;
@@ -0,0 +1,9 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import { TokenInfo } from '../../../hooks/Token';
3
+ import { Token } from './sdks/sdk-core';
4
+ import { NativeCurrency } from './sdks/sdk-core/entities/nativeCurrency';
5
+ export declare function getNativeAddress(chainId: ChainId): string;
6
+ export declare function areAddressesEqual(a1: Maybe<Address>, a2: Maybe<Address>): boolean;
7
+ export declare const isNativeCurrencyAddress: (chainId: ChainId, address: Maybe<Address>) => boolean;
8
+ export declare function buildCurrency(token: TokenInfo | null): Token | NativeCurrency | undefined;
9
+ export declare function convertBackToTokenInfo(currency: Token | NativeCurrency | undefined | null): TokenInfo | undefined;
@@ -0,0 +1,16 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ import BigNumber from 'bignumber.js';
3
+ import { StateProps } from '../reducer';
4
+ import { SectionStatusT } from '../types';
5
+ export declare function BaseInfoCardList({ chainId, status, selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, midPrice, sx, cardBg, }: {
6
+ chainId: number | undefined;
7
+ status: SectionStatusT;
8
+ selectedVersion: StateProps['selectedVersion'];
9
+ baseToken: StateProps['baseToken'];
10
+ quoteToken: StateProps['quoteToken'];
11
+ initPrice: StateProps['initPrice'];
12
+ slippageCoefficient: StateProps['slippageCoefficient'];
13
+ midPrice: BigNumber | undefined;
14
+ sx?: BoxProps['sx'];
15
+ cardBg: string;
16
+ }): JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { StateProps } from '../reducer';
2
+ export default function ConfirmInfoDialog({ on, onClose, state, onConfirm, isModify, loading, }: {
3
+ on: boolean;
4
+ onClose: () => void;
5
+ state: StateProps;
6
+ onConfirm: () => void;
7
+ isModify?: boolean;
8
+ loading?: boolean;
9
+ }): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { PMMModel, PmmModelParams } from '@dodoex/api';
2
+ import { BigNumber } from 'bignumber.js';
3
+ import { TokenInfo } from '../../../../hooks/Token';
4
+ export default function DepthAndLiquidityChart({ baseToken, quoteToken, pmmParams, pmmModel, midPrice, }: {
5
+ baseToken: TokenInfo | null;
6
+ quoteToken: TokenInfo | null;
7
+ pmmParams?: PmmModelParams;
8
+ pmmModel?: PMMModel;
9
+ midPrice?: BigNumber;
10
+ }): JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { StateProps } from '../reducer';
2
+ export declare function DepthChartWrapper({ selectedVersion, baseToken, quoteToken, initPrice, slippageCoefficient, baseAmount, quoteAmount, }: {
3
+ selectedVersion: StateProps['selectedVersion'];
4
+ baseToken: StateProps['baseToken'];
5
+ quoteToken: StateProps['quoteToken'];
6
+ initPrice: StateProps['initPrice'];
7
+ slippageCoefficient: StateProps['slippageCoefficient'];
8
+ baseAmount: StateProps['baseAmount'];
9
+ quoteAmount: StateProps['quoteAmount'];
10
+ }): JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export default function EmptyChart({ height, text, }: {
2
+ height?: number | string;
3
+ text?: string;
4
+ }): JSX.Element;