@imtbl/checkout-widgets 2.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (552) hide show
  1. package/LICENSE.md +176 -0
  2. package/README.md +3 -0
  3. package/dist/browser/AddTokensWidget-QGKGQBKZ.js +1 -0
  4. package/dist/browser/BridgeWidget-2JZZV7LZ.js +1 -0
  5. package/dist/browser/CommerceWidget-IVNOVHCZ.js +1 -0
  6. package/dist/browser/ConnectWidget-ZM6T4NZJ.js +1 -0
  7. package/dist/browser/OnRampWidget-CXSJR4D2.js +1 -0
  8. package/dist/browser/SaleWidget-NS5UQNBN.js +1 -0
  9. package/dist/browser/SwapWidget-3DWYEOCD.js +1 -0
  10. package/dist/browser/WalletWidget-XWB6VELR.js +1 -0
  11. package/dist/browser/chunk-273L75VZ.js +26 -0
  12. package/dist/browser/chunk-3AHRPZYV.js +2 -0
  13. package/dist/browser/chunk-5AVK5XOU.js +4 -0
  14. package/dist/browser/chunk-5U7AR7XV.js +1 -0
  15. package/dist/browser/chunk-65KT4KZW.js +1 -0
  16. package/dist/browser/chunk-AWLYHJ5L.js +2 -0
  17. package/dist/browser/chunk-BVF4MRFQ.js +2 -0
  18. package/dist/browser/chunk-DVUYKTGV.js +2 -0
  19. package/dist/browser/chunk-ECAH5RC3.js +1 -0
  20. package/dist/browser/chunk-EEDQFEKZ.js +2 -0
  21. package/dist/browser/chunk-EZWBOX2K.js +1 -0
  22. package/dist/browser/chunk-I3HZNWUF.js +1 -0
  23. package/dist/browser/chunk-JF3XWEEL.js +2 -0
  24. package/dist/browser/chunk-JV43EWXA.js +1 -0
  25. package/dist/browser/chunk-K3KIUMY7.js +1 -0
  26. package/dist/browser/chunk-KOBELCOG.js +1 -0
  27. package/dist/browser/chunk-MADECDXT.js +2 -0
  28. package/dist/browser/chunk-ME7FB46X.js +1 -0
  29. package/dist/browser/chunk-NNMZJ5NV.js +2 -0
  30. package/dist/browser/chunk-OPMBNAY3.js +1 -0
  31. package/dist/browser/chunk-P7Y5EGBN.js +1 -0
  32. package/dist/browser/chunk-QJTHBCR2.js +1 -0
  33. package/dist/browser/chunk-QPOHDTWR.js +12 -0
  34. package/dist/browser/chunk-R5TRMOBS.js +1 -0
  35. package/dist/browser/chunk-R7NCCCUY.js +1 -0
  36. package/dist/browser/chunk-RTSPX46P.js +1 -0
  37. package/dist/browser/chunk-UNEH2WXY.js +1 -0
  38. package/dist/browser/chunk-UNLLKACC.js +1 -0
  39. package/dist/browser/chunk-WCTMM2S2.js +2 -0
  40. package/dist/browser/chunk-WWUSGIQB.js +2 -0
  41. package/dist/browser/chunk-XE2T4YRZ.js +2 -0
  42. package/dist/browser/chunk-Y7N65KJX.js +1 -0
  43. package/dist/browser/chunk-YOCWSYBR.js +1 -0
  44. package/dist/browser/chunk-Z52PVTUZ.js +2 -0
  45. package/dist/browser/index.cdn.js +2611 -0
  46. package/dist/browser/index.js +14 -0
  47. package/dist/node/AddTokensWidget-JVV5SAXW.js +1 -0
  48. package/dist/node/AddTokensWidget-LS55AEAX.cjs +1 -0
  49. package/dist/node/BridgeWidget-ANWHTETV.cjs +1 -0
  50. package/dist/node/BridgeWidget-BEHWLY4M.js +1 -0
  51. package/dist/node/CommerceWidget-572UHGHP.js +1 -0
  52. package/dist/node/CommerceWidget-RJBIBYDR.cjs +1 -0
  53. package/dist/node/ConnectWidget-KSU76TQZ.cjs +1 -0
  54. package/dist/node/ConnectWidget-SUTP57IU.js +1 -0
  55. package/dist/node/OnRampWidget-KWATCRL6.cjs +1 -0
  56. package/dist/node/OnRampWidget-XTLZQCYU.js +1 -0
  57. package/dist/node/SaleWidget-AKMOR4MS.cjs +1 -0
  58. package/dist/node/SaleWidget-MHO7WXRH.js +1 -0
  59. package/dist/node/SwapWidget-MNOU735K.js +1 -0
  60. package/dist/node/SwapWidget-OAO2LUH7.cjs +1 -0
  61. package/dist/node/WalletWidget-3O2ZGGS3.js +1 -0
  62. package/dist/node/WalletWidget-6EVH2BKX.cjs +1 -0
  63. package/dist/node/chunk-22SKYDXN.cjs +13 -0
  64. package/dist/node/chunk-2MYO4ISV.js +13 -0
  65. package/dist/node/chunk-3U2JWMZP.js +1 -0
  66. package/dist/node/chunk-3YTH4LI4.js +1 -0
  67. package/dist/node/chunk-4IFPHDUT.js +1 -0
  68. package/dist/node/chunk-6H2BBDML.js +1 -0
  69. package/dist/node/chunk-6TWJH2AM.js +1 -0
  70. package/dist/node/chunk-7UY5KYHG.cjs +1 -0
  71. package/dist/node/chunk-AAYNER66.js +1 -0
  72. package/dist/node/chunk-AIYMKAUY.cjs +1 -0
  73. package/dist/node/chunk-BYAQUPEK.js +1 -0
  74. package/dist/node/chunk-C6FRHKWB.js +2 -0
  75. package/dist/node/chunk-CB2MUIJZ.cjs +1 -0
  76. package/dist/node/chunk-FNPSTVDH.cjs +1 -0
  77. package/dist/node/chunk-GLDQ7MF4.js +1 -0
  78. package/dist/node/chunk-GNHN2ICF.cjs +1 -0
  79. package/dist/node/chunk-HDLNJM65.js +1 -0
  80. package/dist/node/chunk-HI6MCAVV.cjs +1 -0
  81. package/dist/node/chunk-HZLDGMYD.js +1 -0
  82. package/dist/node/chunk-HZNOURGW.js +1 -0
  83. package/dist/node/chunk-JKILWATI.js +1 -0
  84. package/dist/node/chunk-K52NEJW2.cjs +1 -0
  85. package/dist/node/chunk-KGOQ6VFE.js +1 -0
  86. package/dist/node/chunk-KNH42REY.js +1 -0
  87. package/dist/node/chunk-KSTBNWCA.js +1 -0
  88. package/dist/node/chunk-KWBEZYZZ.cjs +1 -0
  89. package/dist/node/chunk-LJK7NSTD.js +1 -0
  90. package/dist/node/chunk-MD2VWWAQ.js +1 -0
  91. package/dist/node/chunk-MKJ4R6WO.cjs +1 -0
  92. package/dist/node/chunk-NZFR53NE.cjs +1 -0
  93. package/dist/node/chunk-OQQYEFTA.js +1 -0
  94. package/dist/node/chunk-OXPQRBCG.js +1 -0
  95. package/dist/node/chunk-PBOKGTIX.cjs +1 -0
  96. package/dist/node/chunk-PH7MBID7.cjs +2 -0
  97. package/dist/node/chunk-PUPRBAZB.cjs +1 -0
  98. package/dist/node/chunk-QCLRQLDO.cjs +1 -0
  99. package/dist/node/chunk-QHSNFLEV.cjs +1 -0
  100. package/dist/node/chunk-QRVHE5Y7.cjs +1 -0
  101. package/dist/node/chunk-QYNUE7DW.js +1 -0
  102. package/dist/node/chunk-RA25BPS6.cjs +1 -0
  103. package/dist/node/chunk-RJ7GFDCE.cjs +26 -0
  104. package/dist/node/chunk-RLN6G3DA.js +1 -0
  105. package/dist/node/chunk-ROFHVMKI.cjs +1 -0
  106. package/dist/node/chunk-RXF5UFTS.cjs +1 -0
  107. package/dist/node/chunk-SLZNA32D.cjs +1 -0
  108. package/dist/node/chunk-TR6RIRY5.js +1 -0
  109. package/dist/node/chunk-U35NC4YR.js +1 -0
  110. package/dist/node/chunk-U3UYGXTO.cjs +1 -0
  111. package/dist/node/chunk-U5NIPQGN.js +1 -0
  112. package/dist/node/chunk-UAFMLOWU.cjs +1 -0
  113. package/dist/node/chunk-UQ6XJRZD.cjs +1 -0
  114. package/dist/node/chunk-VBZYATUZ.cjs +1 -0
  115. package/dist/node/chunk-VRNYQKKE.js +1 -0
  116. package/dist/node/chunk-WFETTIGN.cjs +1 -0
  117. package/dist/node/chunk-WM3DCFTT.cjs +1 -0
  118. package/dist/node/chunk-WMW6GDIT.cjs +1 -0
  119. package/dist/node/chunk-WRCRJRRN.cjs +1 -0
  120. package/dist/node/chunk-WX7AXFHF.js +1 -0
  121. package/dist/node/chunk-XOR3FOOQ.cjs +1 -0
  122. package/dist/node/chunk-XPPN74JV.js +1 -0
  123. package/dist/node/chunk-Y4BXGSPS.cjs +1 -0
  124. package/dist/node/chunk-YWKKC4WT.cjs +1 -0
  125. package/dist/node/chunk-YZP7VIZZ.js +1 -0
  126. package/dist/node/chunk-Z3BWDS2L.js +1 -0
  127. package/dist/node/chunk-ZDBKUGOB.js +26 -0
  128. package/dist/node/chunk-ZESSPNGI.js +1 -0
  129. package/dist/node/chunk-ZHUX33PW.cjs +1 -0
  130. package/dist/node/chunk-ZMA2BB4P.js +1 -0
  131. package/dist/node/index.cjs +13 -0
  132. package/dist/node/index.js +13 -0
  133. package/dist/types/components/Body/SimpleTextBody.d.ts +5 -0
  134. package/dist/types/components/Body/SimpleTextBodyStyles.d.ts +10 -0
  135. package/dist/types/components/CenteredBoxContent/CenteredBoxContent.d.ts +5 -0
  136. package/dist/types/components/CenteredBoxContent/CenteredBoxStyles.d.ts +6 -0
  137. package/dist/types/components/ChangedYourMindDrawer/ChangedYourMindDrawer.d.ts +8 -0
  138. package/dist/types/components/CoinSelector/CoinSelector.d.ts +12 -0
  139. package/dist/types/components/CoinSelector/CoinSelectorOption.d.ts +15 -0
  140. package/dist/types/components/CoinSelector/CoinSelectorStyles.d.ts +12 -0
  141. package/dist/types/components/ConnectLoader/ConnectLoader.d.ts +21 -0
  142. package/dist/types/components/ConnectLoader/ConnectLoaderSuccess.d.ts +5 -0
  143. package/dist/types/components/EOAWarningDrawer/EOAWarningDrawer.d.ts +5 -0
  144. package/dist/types/components/Fees/FeeStyles.d.ts +18 -0
  145. package/dist/types/components/Fees/Fees.d.ts +14 -0
  146. package/dist/types/components/FeesBreakdown/FeeItem.d.ts +9 -0
  147. package/dist/types/components/FeesBreakdown/FeesBreakdown.d.ts +13 -0
  148. package/dist/types/components/FeesBreakdown/FeesBreakdownStyles.d.ts +28 -0
  149. package/dist/types/components/Footer/FooterButton.d.ts +9 -0
  150. package/dist/types/components/Footer/FooterLogo.d.ts +4 -0
  151. package/dist/types/components/Footer/FooterStyles.d.ts +41 -0
  152. package/dist/types/components/Footer/QuickswapFooter.d.ts +7 -0
  153. package/dist/types/components/FormComponents/FormControlWrapper/FormControlWrapper.d.ts +12 -0
  154. package/dist/types/components/FormComponents/SelectForm/SelectForm.d.ts +21 -0
  155. package/dist/types/components/FormComponents/SelectInput/SelectInput.d.ts +34 -0
  156. package/dist/types/components/FormComponents/SelectInput/SelectInputStyles.d.ts +12 -0
  157. package/dist/types/components/FormComponents/TextInputForm/TextInputForm.d.ts +21 -0
  158. package/dist/types/components/Handover/Handover.d.ts +5 -0
  159. package/dist/types/components/Handover/HandoverAnimation.d.ts +4 -0
  160. package/dist/types/components/Handover/HandoverContent.d.ts +9 -0
  161. package/dist/types/components/Header/HeaderNavigation.d.ts +10 -0
  162. package/dist/types/components/Header/HeaderStyles.d.ts +6 -0
  163. package/dist/types/components/Hero/BridgeHero.d.ts +1 -0
  164. package/dist/types/components/Hero/CreditCardWarningHero.d.ts +1 -0
  165. package/dist/types/components/Hero/EthereumPlanetHero.d.ts +1 -0
  166. package/dist/types/components/Hero/HeroImageStyles.d.ts +19 -0
  167. package/dist/types/components/Hero/IMXCoinsHero.d.ts +1 -0
  168. package/dist/types/components/Hero/ImmutablePlanetHero.d.ts +1 -0
  169. package/dist/types/components/Hero/MetamaskConnectHero.d.ts +1 -0
  170. package/dist/types/components/Hero/NoServiceHero.d.ts +1 -0
  171. package/dist/types/components/Hero/PassportConnectHero.d.ts +1 -0
  172. package/dist/types/components/Hero/RocketHero.d.ts +6 -0
  173. package/dist/types/components/Hero/SanctionsHero.d.ts +1 -0
  174. package/dist/types/components/Hero/SatelliteHero.d.ts +1 -0
  175. package/dist/types/components/Hero/SpendingCapHero.d.ts +1 -0
  176. package/dist/types/components/Hero/TransferAssetsL1WarningHero.d.ts +1 -0
  177. package/dist/types/components/Hero/WalletApproveHero.d.ts +1 -0
  178. package/dist/types/components/Hero/WalletWarningHero.d.ts +1 -0
  179. package/dist/types/components/Hero/WarningHero.d.ts +1 -0
  180. package/dist/types/components/NetworkSwitchDrawer/NetworkSwitchDrawer.d.ts +10 -0
  181. package/dist/types/components/NotEnoughGas/NotEnoughGas.d.ts +11 -0
  182. package/dist/types/components/NotEnoughGas/NotEnoughGasStyles.d.ts +40 -0
  183. package/dist/types/components/NotEnoughImx/NotEnoughImx.d.ts +11 -0
  184. package/dist/types/components/NotEnoughImx/NotEnoughImxStyles.d.ts +33 -0
  185. package/dist/types/components/RawImage/RawImage.d.ts +6 -0
  186. package/dist/types/components/RawImage/RawImageStyles.d.ts +22 -0
  187. package/dist/types/components/SimpleLayout/SimpleLayout.d.ts +13 -0
  188. package/dist/types/components/SimpleLayout/SimpleLayoutStyles.d.ts +49 -0
  189. package/dist/types/components/Status/StatusBox.d.ts +7 -0
  190. package/dist/types/components/Status/StatusType.d.ts +7 -0
  191. package/dist/types/components/Status/StatusView.d.ts +14 -0
  192. package/dist/types/components/Status/StatusViewStyles.d.ts +22 -0
  193. package/dist/types/components/ThemeProvider/ThemeProvider.d.ts +10 -0
  194. package/dist/types/components/ThemeProvider/themeProviderStyles.d.ts +9 -0
  195. package/dist/types/components/TokenImage/TokenImage.d.ts +19 -0
  196. package/dist/types/components/TransactionRejected/TransactionRejected.d.ts +8 -0
  197. package/dist/types/components/TransactionRejected/TransactionRejectedStyles.d.ts +26 -0
  198. package/dist/types/components/Transactions/ChangeWallet.d.ts +4 -0
  199. package/dist/types/components/Transactions/ChangeWalletStyles.d.ts +31 -0
  200. package/dist/types/components/Transactions/ClaimWithdrawalInProgress.d.ts +6 -0
  201. package/dist/types/components/Transactions/EmptyStateNotConnected.d.ts +5 -0
  202. package/dist/types/components/Transactions/EmptyStateNotConnectedStyles.d.ts +10 -0
  203. package/dist/types/components/Transactions/NoTransactions.d.ts +8 -0
  204. package/dist/types/components/Transactions/NotEnoughEthToWithdraw.d.ts +6 -0
  205. package/dist/types/components/Transactions/NotEnoughEthToWithdrawStyles.d.ts +37 -0
  206. package/dist/types/components/Transactions/Shimmer.d.ts +1 -0
  207. package/dist/types/components/Transactions/SupportMessage.d.ts +7 -0
  208. package/dist/types/components/Transactions/SupportMessageStyles.d.ts +9 -0
  209. package/dist/types/components/Transactions/TransactionDetails.d.ts +7 -0
  210. package/dist/types/components/Transactions/TransactionItem.d.ts +18 -0
  211. package/dist/types/components/Transactions/TransactionItemWithdrawPending.d.ts +13 -0
  212. package/dist/types/components/Transactions/TransactionList.d.ts +13 -0
  213. package/dist/types/components/Transactions/TransactionListStyles.d.ts +16 -0
  214. package/dist/types/components/Transactions/Transactions.d.ts +6 -0
  215. package/dist/types/components/Transactions/TransactionsStyles.d.ts +26 -0
  216. package/dist/types/components/Transactions/noTransactionStyles.d.ts +26 -0
  217. package/dist/types/components/Transactions/transactionItemStyles.d.ts +30 -0
  218. package/dist/types/components/Transactions/transactionsType.d.ts +6 -0
  219. package/dist/types/components/Transak/TransakEvents.d.ts +42 -0
  220. package/dist/types/components/Transak/TransakIframe.d.ts +13 -0
  221. package/dist/types/components/Transak/TransakTypes.d.ts +9 -0
  222. package/dist/types/components/Transak/useTransakEvents.d.ts +24 -0
  223. package/dist/types/components/Transak/useTransakIframe.d.ts +41 -0
  224. package/dist/types/components/UnableToConnectDrawer/UnableToConnectDrawer.d.ts +8 -0
  225. package/dist/types/components/WalletDrawer/ConnectWalletDrawer.d.ts +23 -0
  226. package/dist/types/components/WalletDrawer/DeliverToWalletDrawer.d.ts +9 -0
  227. package/dist/types/components/WalletDrawer/PayWithWalletDrawer.d.ts +12 -0
  228. package/dist/types/components/WalletDrawer/WalletConnectItem.d.ts +7 -0
  229. package/dist/types/components/WalletDrawer/WalletDrawer.d.ts +25 -0
  230. package/dist/types/components/WalletDrawer/WalletDrawerEvents.d.ts +6 -0
  231. package/dist/types/components/WalletDrawer/WalletDrawerStyles.d.ts +7 -0
  232. package/dist/types/components/WalletDrawer/WalletItem.d.ts +15 -0
  233. package/dist/types/components/WithdrawalQueueDrawer/WithdrawalQueueDrawer.d.ts +14 -0
  234. package/dist/types/context/analytics-provider/CustomAnalyticsProvider.d.ts +7 -0
  235. package/dist/types/context/analytics-provider/SegmentAnalyticsProvider.d.ts +42 -0
  236. package/dist/types/context/analytics-provider/SetupAnalytics.d.ts +7 -0
  237. package/dist/types/context/connect-loader-context/ConnectLoader.test.d.ts +1 -0
  238. package/dist/types/context/connect-loader-context/ConnectLoaderContext.d.ts +48 -0
  239. package/dist/types/context/connect-loader-context/test-components/ConnectLoaderTestComponent.d.ts +7 -0
  240. package/dist/types/context/crypto-fiat-context/CryptoFiat.d.ts +4 -0
  241. package/dist/types/context/crypto-fiat-context/CryptoFiatContext.d.ts +45 -0
  242. package/dist/types/context/crypto-fiat-context/CryptoFiatContext.test.d.ts +1 -0
  243. package/dist/types/context/crypto-fiat-context/CryptoFiatProvider.d.ts +9 -0
  244. package/dist/types/context/crypto-fiat-context/test-components/CryptoFiatTestComponent.d.ts +5 -0
  245. package/dist/types/context/event-target-context/EventTarget.test.d.ts +1 -0
  246. package/dist/types/context/event-target-context/EventTargetContext.d.ts +24 -0
  247. package/dist/types/context/event-target-context/test-components/EventTargetTestComponent.d.ts +7 -0
  248. package/dist/types/context/handover-context/HandoverContext.d.ts +29 -0
  249. package/dist/types/context/handover-context/HandoverProvider.d.ts +11 -0
  250. package/dist/types/context/providers-context/ProvidersContext.d.ts +59 -0
  251. package/dist/types/context/view-context/AddTokensViewContextTypes.d.ts +29 -0
  252. package/dist/types/context/view-context/BridgeViewContextTypes.d.ts +66 -0
  253. package/dist/types/context/view-context/CheckoutWidgetViewContextTypes.d.ts +53 -0
  254. package/dist/types/context/view-context/ConnectViewContextTypes.d.ts +18 -0
  255. package/dist/types/context/view-context/OnRampViewContextTypes.d.ts +35 -0
  256. package/dist/types/context/view-context/PurchaseViewContextTypes.d.ts +20 -0
  257. package/dist/types/context/view-context/SaleViewContextTypes.d.ts +44 -0
  258. package/dist/types/context/view-context/SwapViewContextTypes.d.ts +64 -0
  259. package/dist/types/context/view-context/ViewContext.d.ts +75 -0
  260. package/dist/types/context/view-context/ViewContext.test.d.ts +1 -0
  261. package/dist/types/context/view-context/ViewType.d.ts +4 -0
  262. package/dist/types/context/view-context/WalletViewContextTypes.d.ts +26 -0
  263. package/dist/types/context/view-context/test-components/ViewContextTestComponent.d.ts +7 -0
  264. package/dist/types/factory.d.ts +9 -0
  265. package/dist/types/hooks/useMount.d.ts +9 -0
  266. package/dist/types/i18n.d.ts +2 -0
  267. package/dist/types/index.d.ts +1 -0
  268. package/dist/types/lib/addressUtils.d.ts +1 -0
  269. package/dist/types/lib/addressUtils.test.d.ts +1 -0
  270. package/dist/types/lib/analytics/identifyUser.d.ts +8 -0
  271. package/dist/types/lib/analytics/identifyUser.test.d.ts +1 -0
  272. package/dist/types/lib/animation/listAnimation.d.ts +23 -0
  273. package/dist/types/lib/async/cancellablePromise.d.ts +19 -0
  274. package/dist/types/lib/async/cancellablePromise.test.d.ts +1 -0
  275. package/dist/types/lib/balance.d.ts +15 -0
  276. package/dist/types/lib/balance.test.d.ts +1 -0
  277. package/dist/types/lib/chains.d.ts +5 -0
  278. package/dist/types/lib/chains.test.d.ts +1 -0
  279. package/dist/types/lib/clients/checkoutApi.d.ts +39 -0
  280. package/dist/types/lib/clients/checkoutApi.test.d.ts +1 -0
  281. package/dist/types/lib/clients/checkoutApiType.d.ts +34 -0
  282. package/dist/types/lib/clients/index.d.ts +2 -0
  283. package/dist/types/lib/connectEIP6963Provider.d.ts +10 -0
  284. package/dist/types/lib/constants.d.ts +88 -0
  285. package/dist/types/lib/eip1193Events.d.ts +12 -0
  286. package/dist/types/lib/feeEstimation.d.ts +5 -0
  287. package/dist/types/lib/feeEstimation.test.d.ts +1 -0
  288. package/dist/types/lib/fetchTokenSymbols.d.ts +2 -0
  289. package/dist/types/lib/fetchTokenSymbols.test.d.ts +1 -0
  290. package/dist/types/lib/gasBalanceCheck.d.ts +2 -0
  291. package/dist/types/lib/gasBalanceCheck.test.d.ts +1 -0
  292. package/dist/types/lib/hooks/useAsyncMemo.d.ts +5 -0
  293. package/dist/types/lib/hooks/useBalance.d.ts +11 -0
  294. package/dist/types/lib/hooks/useDebounce.d.ts +2 -0
  295. package/dist/types/lib/hooks/useHandover.d.ts +12 -0
  296. package/dist/types/lib/hooks/useInjectedProviders.d.ts +16 -0
  297. package/dist/types/lib/hooks/useInterval.d.ts +1 -0
  298. package/dist/types/lib/hooks/useIsSmallScreen.d.ts +4 -0
  299. package/dist/types/lib/hooks/usePortalId.d.ts +1 -0
  300. package/dist/types/lib/hooks/useQuoteOrder.d.ts +12 -0
  301. package/dist/types/lib/hooks/useSignOrder.d.ts +12 -0
  302. package/dist/types/lib/hooks/useWalletConnect.d.ts +15 -0
  303. package/dist/types/lib/index.d.ts +6 -0
  304. package/dist/types/lib/logoUtils.d.ts +3 -0
  305. package/dist/types/lib/metrics.d.ts +3 -0
  306. package/dist/types/lib/networkStyles.d.ts +22 -0
  307. package/dist/types/lib/networkUtils.d.ts +3 -0
  308. package/dist/types/lib/orchestrationEvents.d.ts +14 -0
  309. package/dist/types/lib/primary-sales.d.ts +221 -0
  310. package/dist/types/lib/provider/index.d.ts +2 -0
  311. package/dist/types/lib/provider/providers.d.ts +3 -0
  312. package/dist/types/lib/provider/providers.test.d.ts +1 -0
  313. package/dist/types/lib/provider/utils.d.ts +21 -0
  314. package/dist/types/lib/provider/utils.test.d.ts +1 -0
  315. package/dist/types/lib/providerEvents.d.ts +2 -0
  316. package/dist/types/lib/retry.d.ts +7 -0
  317. package/dist/types/lib/retry.test.d.ts +1 -0
  318. package/dist/types/lib/squid/components/SquidFooter.d.ts +1 -0
  319. package/dist/types/lib/squid/components/SquidIcon.d.ts +5 -0
  320. package/dist/types/lib/squid/config.d.ts +2 -0
  321. package/dist/types/lib/squid/functions/convertToUsd.d.ts +3 -0
  322. package/dist/types/lib/squid/functions/fetchBalances.d.ts +5 -0
  323. package/dist/types/lib/squid/functions/fetchChains.d.ts +9 -0
  324. package/dist/types/lib/squid/functions/fetchTokens.d.ts +2 -0
  325. package/dist/types/lib/squid/functions/getRouteAndTokenBalances.d.ts +8 -0
  326. package/dist/types/lib/squid/functions/getRouteChains.d.ts +12 -0
  327. package/dist/types/lib/squid/functions/getTotalRouteFees.d.ts +12 -0
  328. package/dist/types/lib/squid/functions/isSquidNativeToken.d.ts +1 -0
  329. package/dist/types/lib/squid/functions/sortRoutesByFastestTime.d.ts +2 -0
  330. package/dist/types/lib/squid/hooks/useExecute.d.ts +13 -0
  331. package/dist/types/lib/squid/hooks/useRoutes.d.ts +9 -0
  332. package/dist/types/lib/squid/hooks/useSquid.d.ts +3 -0
  333. package/dist/types/lib/squid/hooks/useTokens.d.ts +3 -0
  334. package/dist/types/lib/squid/types.d.ts +40 -0
  335. package/dist/types/lib/storage.d.ts +4 -0
  336. package/dist/types/lib/theme.d.ts +3 -0
  337. package/dist/types/lib/theme.test.d.ts +1 -0
  338. package/dist/types/lib/utils.d.ts +28 -0
  339. package/dist/types/lib/utils.test.d.ts +1 -0
  340. package/dist/types/lib/validations/amountInputValidations.d.ts +1 -0
  341. package/dist/types/lib/validations/amountInputValidations.test.d.ts +1 -0
  342. package/dist/types/lib/validations/widgetValidators.d.ts +3 -0
  343. package/dist/types/lib/validations/widgetValidators.test.d.ts +1 -0
  344. package/dist/types/lib/walletConnect.d.ts +40 -0
  345. package/dist/types/lib/withDefaultWidgetConfig.d.ts +11 -0
  346. package/dist/types/lib/withDefaultWidgetConfig.test.d.ts +1 -0
  347. package/dist/types/setupTests.d.ts +1 -0
  348. package/dist/types/views/error/ErrorView.d.ts +8 -0
  349. package/dist/types/views/error/ServiceUnavailableErrorView.d.ts +5 -0
  350. package/dist/types/views/error/ServiceUnavailableToRegionErrorView.d.ts +10 -0
  351. package/dist/types/views/error/serviceTypes.d.ts +5 -0
  352. package/dist/types/views/loading/LoadingView.d.ts +7 -0
  353. package/dist/types/views/top-up/TopUpMenuItem.d.ts +14 -0
  354. package/dist/types/views/top-up/TopUpView.d.ts +29 -0
  355. package/dist/types/widgets/BaseWidgetRoot.d.ts +39 -0
  356. package/dist/types/widgets/add-tokens/AddTokensRoot.d.ts +8 -0
  357. package/dist/types/widgets/add-tokens/AddTokensWidget.d.ts +6 -0
  358. package/dist/types/widgets/add-tokens/AddTokensWidgetEvents.d.ts +5 -0
  359. package/dist/types/widgets/add-tokens/components/AddressMissmatchDrawer.d.ts +5 -0
  360. package/dist/types/widgets/add-tokens/components/FiatOption.d.ts +11 -0
  361. package/dist/types/widgets/add-tokens/components/OnboardingDrawer.d.ts +5 -0
  362. package/dist/types/widgets/add-tokens/components/Options.d.ts +16 -0
  363. package/dist/types/widgets/add-tokens/components/OptionsDrawer.d.ts +17 -0
  364. package/dist/types/widgets/add-tokens/components/RouteFees.d.ts +9 -0
  365. package/dist/types/widgets/add-tokens/components/RouteOption.d.ts +14 -0
  366. package/dist/types/widgets/add-tokens/components/SelectedRouteOption.d.ts +14 -0
  367. package/dist/types/widgets/add-tokens/components/SelectedWallet.d.ts +20 -0
  368. package/dist/types/widgets/add-tokens/components/TokenDrawerMenu.d.ts +12 -0
  369. package/dist/types/widgets/add-tokens/context/AddTokensContext.d.ts +87 -0
  370. package/dist/types/widgets/add-tokens/functions/amountValidation.d.ts +10 -0
  371. package/dist/types/widgets/add-tokens/functions/checkSanctionedAddresses.d.ts +2 -0
  372. package/dist/types/widgets/add-tokens/functions/convertToNetworkChangeableProvider.d.ts +2 -0
  373. package/dist/types/widgets/add-tokens/functions/delay.d.ts +1 -0
  374. package/dist/types/widgets/add-tokens/functions/errorType.d.ts +1 -0
  375. package/dist/types/widgets/add-tokens/functions/getDurationFormatted.d.ts +1 -0
  376. package/dist/types/widgets/add-tokens/functions/getFormattedNumber.d.ts +9 -0
  377. package/dist/types/widgets/add-tokens/functions/onboardingState.d.ts +7 -0
  378. package/dist/types/widgets/add-tokens/hooks/useError.d.ts +5 -0
  379. package/dist/types/widgets/add-tokens/types.d.ts +28 -0
  380. package/dist/types/widgets/add-tokens/utils/animation.d.ts +1 -0
  381. package/dist/types/widgets/add-tokens/utils/config.d.ts +6 -0
  382. package/dist/types/widgets/add-tokens/views/AddTokens.d.ts +16 -0
  383. package/dist/types/widgets/add-tokens/views/Review.d.ts +9 -0
  384. package/dist/types/widgets/bridge/BridgeWidget.d.ts +8 -0
  385. package/dist/types/widgets/bridge/BridgeWidgetEvents.d.ts +5 -0
  386. package/dist/types/widgets/bridge/BridgeWidgetRoot.d.ts +8 -0
  387. package/dist/types/widgets/bridge/components/BridgeForm.d.ts +13 -0
  388. package/dist/types/widgets/bridge/components/BridgeFormStyles.d.ts +18 -0
  389. package/dist/types/widgets/bridge/components/BridgeReviewSummary.d.ts +1 -0
  390. package/dist/types/widgets/bridge/components/BridgeReviewSummaryStyles.d.ts +65 -0
  391. package/dist/types/widgets/bridge/components/NetworkItem.d.ts +10 -0
  392. package/dist/types/widgets/bridge/components/TokenSelectShimmer.d.ts +4 -0
  393. package/dist/types/widgets/bridge/components/WalletAndNetworkSelector.d.ts +1 -0
  394. package/dist/types/widgets/bridge/components/WalletAndNetworkSelectorStyles.d.ts +15 -0
  395. package/dist/types/widgets/bridge/components/WalletNetworkButton.d.ts +16 -0
  396. package/dist/types/widgets/bridge/components/WalletNetworkButtonStyles.d.ts +51 -0
  397. package/dist/types/widgets/bridge/context/BridgeContext.d.ts +78 -0
  398. package/dist/types/widgets/bridge/context/BridgeContext.test.d.ts +1 -0
  399. package/dist/types/widgets/bridge/functions/BridgeFees.d.ts +4 -0
  400. package/dist/types/widgets/bridge/functions/BridgeFormValidator.d.ts +3 -0
  401. package/dist/types/widgets/bridge/functions/TransferErc20.d.ts +2 -0
  402. package/dist/types/widgets/bridge/test-components/BridgeWidgetTestComponent.d.ts +8 -0
  403. package/dist/types/widgets/bridge/views/ApproveTransaction.d.ts +12 -0
  404. package/dist/types/widgets/bridge/views/Bridge.d.ts +8 -0
  405. package/dist/types/widgets/bridge/views/BridgeReview.d.ts +1 -0
  406. package/dist/types/widgets/bridge/views/ClaimWithdrawal.d.ts +5 -0
  407. package/dist/types/widgets/bridge/views/MoveInProgress.d.ts +5 -0
  408. package/dist/types/widgets/bridge/views/WalletNetworkSelectionView.d.ts +5 -0
  409. package/dist/types/widgets/connect/ConnectWidget.d.ts +16 -0
  410. package/dist/types/widgets/connect/ConnectWidgetRoot.d.ts +8 -0
  411. package/dist/types/widgets/connect/components/BrowserWalletItem.d.ts +6 -0
  412. package/dist/types/widgets/connect/components/NonPassportWarningDrawer.d.ts +5 -0
  413. package/dist/types/widgets/connect/components/WalletConnectItem.d.ts +5 -0
  414. package/dist/types/widgets/connect/components/WalletItem.d.ts +10 -0
  415. package/dist/types/widgets/connect/components/WalletList.d.ts +9 -0
  416. package/dist/types/widgets/connect/components/WalletListStyles.d.ts +8 -0
  417. package/dist/types/widgets/connect/connectWidgetEvents.d.ts +6 -0
  418. package/dist/types/widgets/connect/connectWidgetStyles.d.ts +17 -0
  419. package/dist/types/widgets/connect/context/ConnectContext.d.ts +50 -0
  420. package/dist/types/widgets/connect/context/ConnectContext.test.d.ts +1 -0
  421. package/dist/types/widgets/connect/views/ConnectWallet.d.ts +11 -0
  422. package/dist/types/widgets/connect/views/ReadyToConnect.d.ts +6 -0
  423. package/dist/types/widgets/connect/views/SwitchNetworkEth.d.ts +1 -0
  424. package/dist/types/widgets/connect/views/SwitchNetworkZkEVM.d.ts +1 -0
  425. package/dist/types/widgets/immutable-commerce/CommerceWidget.d.ts +10 -0
  426. package/dist/types/widgets/immutable-commerce/CommerceWidgetEvents.d.ts +6 -0
  427. package/dist/types/widgets/immutable-commerce/CommerceWidgetRoot.d.ts +66 -0
  428. package/dist/types/widgets/immutable-commerce/context/CommerceContext.d.ts +37 -0
  429. package/dist/types/widgets/immutable-commerce/functions/deduplicateSaleItemsArray.d.ts +2 -0
  430. package/dist/types/widgets/immutable-commerce/functions/getCommerceWidgetEvent.d.ts +5 -0
  431. package/dist/types/widgets/immutable-commerce/functions/getConnectLoaderParams.d.ts +7 -0
  432. package/dist/types/widgets/immutable-commerce/functions/getFlowRequiresContext.d.ts +8 -0
  433. package/dist/types/widgets/immutable-commerce/functions/getViewFromOrchestrationEventType.d.ts +5 -0
  434. package/dist/types/widgets/immutable-commerce/functions/isOrchestrationEvent.d.ts +7 -0
  435. package/dist/types/widgets/immutable-commerce/functions/isValidCommerceFlow.d.ts +7 -0
  436. package/dist/types/widgets/immutable-commerce/hooks/useMount.d.ts +5 -0
  437. package/dist/types/widgets/immutable-commerce/hooks/useWidgetEvents.d.ts +6 -0
  438. package/dist/types/widgets/on-ramp/OnRampWidget.d.ts +6 -0
  439. package/dist/types/widgets/on-ramp/OnRampWidgetEvents.d.ts +3 -0
  440. package/dist/types/widgets/on-ramp/OnRampWidgetRoot.d.ts +9 -0
  441. package/dist/types/widgets/on-ramp/TransakEvents.d.ts +19 -0
  442. package/dist/types/widgets/on-ramp/views/OnRampMain.d.ts +10 -0
  443. package/dist/types/widgets/on-ramp/views/OrderInProgress.d.ts +1 -0
  444. package/dist/types/widgets/on-ramp/views/onRampStyles.d.ts +14 -0
  445. package/dist/types/widgets/purchase/PurchaseWidget.d.ts +6 -0
  446. package/dist/types/widgets/purchase/PurchaseWidgetEvents.d.ts +5 -0
  447. package/dist/types/widgets/purchase/PurchaseWidgetRoot.d.ts +8 -0
  448. package/dist/types/widgets/purchase/context/PurchaseContext.d.ts +24 -0
  449. package/dist/types/widgets/purchase/types.d.ts +0 -0
  450. package/dist/types/widgets/purchase/views/Purchase.d.ts +7 -0
  451. package/dist/types/widgets/purchase/views/Review.d.ts +1 -0
  452. package/dist/types/widgets/sale/SaleWidget.d.ts +13 -0
  453. package/dist/types/widgets/sale/SaleWidgetEvents.d.ts +8 -0
  454. package/dist/types/widgets/sale/SaleWidgetRoot.d.ts +10 -0
  455. package/dist/types/widgets/sale/components/CoinsDrawer.d.ts +19 -0
  456. package/dist/types/widgets/sale/components/CoinsDrawerItem.d.ts +17 -0
  457. package/dist/types/widgets/sale/components/CreditCardWarningDrawer.d.ts +1 -0
  458. package/dist/types/widgets/sale/components/FundingRouteExecute/FundingRouteExecute.d.ts +7 -0
  459. package/dist/types/widgets/sale/components/OrderFees.d.ts +15 -0
  460. package/dist/types/widgets/sale/components/OrderItem.d.ts +14 -0
  461. package/dist/types/widgets/sale/components/OrderItems.d.ts +12 -0
  462. package/dist/types/widgets/sale/components/OrderReview.d.ts +15 -0
  463. package/dist/types/widgets/sale/components/PaymentOption.d.ts +12 -0
  464. package/dist/types/widgets/sale/components/PaymentOptions.d.ts +11 -0
  465. package/dist/types/widgets/sale/components/SelectCoinDropdown.d.ts +13 -0
  466. package/dist/types/widgets/sale/components/WithCard.d.ts +9 -0
  467. package/dist/types/widgets/sale/context/SaleContextProvider.d.ts +57 -0
  468. package/dist/types/widgets/sale/functions/fetchFundingBalances.d.ts +20 -0
  469. package/dist/types/widgets/sale/functions/fetchFundingBalancesUtils.d.ts +12 -0
  470. package/dist/types/widgets/sale/functions/fetchFundingBalancesUtils.test.d.ts +4 -0
  471. package/dist/types/widgets/sale/functions/fundingBalanceFees.d.ts +7 -0
  472. package/dist/types/widgets/sale/functions/fundingBalanceFees.test.d.ts +2 -0
  473. package/dist/types/widgets/sale/functions/getTopUpViewData.d.ts +16 -0
  474. package/dist/types/widgets/sale/functions/getTopUpViewData.test.d.ts +1 -0
  475. package/dist/types/widgets/sale/functions/signUtils.d.ts +3 -0
  476. package/dist/types/widgets/sale/functions/transformToOrderQuote.d.ts +28 -0
  477. package/dist/types/widgets/sale/functions/transformToOrderQuote.test.d.ts +1 -0
  478. package/dist/types/widgets/sale/functions/utils.d.ts +5 -0
  479. package/dist/types/widgets/sale/functions/utils.test.d.ts +1 -0
  480. package/dist/types/widgets/sale/hooks/useFundingBalances.d.ts +10 -0
  481. package/dist/types/widgets/sale/hooks/useHandoverSteps.d.ts +26 -0
  482. package/dist/types/widgets/sale/hooks/useQuoteOrder.d.ts +21 -0
  483. package/dist/types/widgets/sale/hooks/useSaleEvents.d.ts +36 -0
  484. package/dist/types/widgets/sale/hooks/useSignOrder.d.ts +12 -0
  485. package/dist/types/widgets/sale/types.d.ts +119 -0
  486. package/dist/types/widgets/sale/utils/analytics.d.ts +3 -0
  487. package/dist/types/widgets/sale/utils/config.d.ts +4 -0
  488. package/dist/types/widgets/sale/utils/pricing.d.ts +2 -0
  489. package/dist/types/widgets/sale/utils/pricing.test.d.ts +1 -0
  490. package/dist/types/widgets/sale/views/LoadingHandover.d.ts +7 -0
  491. package/dist/types/widgets/sale/views/OrderSummary.d.ts +6 -0
  492. package/dist/types/widgets/sale/views/PayWithCard.d.ts +1 -0
  493. package/dist/types/widgets/sale/views/PayWithCoins.d.ts +1 -0
  494. package/dist/types/widgets/sale/views/PaymentMethods.d.ts +1 -0
  495. package/dist/types/widgets/sale/views/SaleErrorView.d.ts +10 -0
  496. package/dist/types/widgets/swap/GeoblockLoader.d.ts +8 -0
  497. package/dist/types/widgets/swap/SwapStyles.d.ts +26 -0
  498. package/dist/types/widgets/swap/SwapWidget.d.ts +6 -0
  499. package/dist/types/widgets/swap/SwapWidgetEvents.d.ts +4 -0
  500. package/dist/types/widgets/swap/SwapWidgetRoot.d.ts +10 -0
  501. package/dist/types/widgets/swap/components/SwapButton.d.ts +6 -0
  502. package/dist/types/widgets/swap/components/SwapButtonStyles.d.ts +9 -0
  503. package/dist/types/widgets/swap/components/SwapForm.d.ts +8 -0
  504. package/dist/types/widgets/swap/components/TokenSelect.d.ts +10 -0
  505. package/dist/types/widgets/swap/components/UnableToSwap.d.ts +6 -0
  506. package/dist/types/widgets/swap/components/UnableToSwapStyles.d.ts +40 -0
  507. package/dist/types/widgets/swap/components/swapFormTypes.d.ts +8 -0
  508. package/dist/types/widgets/swap/context/SwapContext.d.ts +73 -0
  509. package/dist/types/widgets/swap/context/SwapContext.test.d.ts +6 -0
  510. package/dist/types/widgets/swap/functions/FetchQuote.d.ts +6 -0
  511. package/dist/types/widgets/swap/functions/FetchQuote.test.d.ts +1 -0
  512. package/dist/types/widgets/swap/functions/SwapValidator.d.ts +5 -0
  513. package/dist/types/widgets/swap/functions/SwapValidator.test.d.ts +1 -0
  514. package/dist/types/widgets/swap/functions/processGasFree.d.ts +8 -0
  515. package/dist/types/widgets/swap/functions/processGasFree.test.d.ts +1 -0
  516. package/dist/types/widgets/swap/functions/processQuoteToken.d.ts +8 -0
  517. package/dist/types/widgets/swap/functions/processSecondaryFees.d.ts +10 -0
  518. package/dist/types/widgets/swap/functions/processSecondaryFees.test.d.ts +1 -0
  519. package/dist/types/widgets/swap/functions/swapConversionRate.d.ts +4 -0
  520. package/dist/types/widgets/swap/functions/swapConversionRate.test.d.ts +1 -0
  521. package/dist/types/widgets/swap/functions/swapFees.d.ts +18 -0
  522. package/dist/types/widgets/swap/functions/swapFees.test.d.ts +1 -0
  523. package/dist/types/widgets/swap/helpers.d.ts +10 -0
  524. package/dist/types/widgets/swap/test-components/SwapWidgetTestComponent.d.ts +8 -0
  525. package/dist/types/widgets/swap/views/ApproveERC20Onboarding.d.ts +5 -0
  526. package/dist/types/widgets/swap/views/SwapCoins.d.ts +11 -0
  527. package/dist/types/widgets/swap/views/SwapInProgress.d.ts +8 -0
  528. package/dist/types/widgets/wallet/WalletWidget.d.ts +8 -0
  529. package/dist/types/widgets/wallet/WalletWidgetEvents.d.ts +4 -0
  530. package/dist/types/widgets/wallet/WalletWidgetRoot.d.ts +8 -0
  531. package/dist/types/widgets/wallet/components/BalanceItem/BalanceItem.d.ts +8 -0
  532. package/dist/types/widgets/wallet/components/BalanceItem/BalanceItemStyles.d.ts +3 -0
  533. package/dist/types/widgets/wallet/components/NetworkMenu/NetworkMenu.d.ts +1 -0
  534. package/dist/types/widgets/wallet/components/NetworkMenu/NetworkMenuStyles.d.ts +22 -0
  535. package/dist/types/widgets/wallet/components/TokenBalanceList/TokenBalanceList.d.ts +9 -0
  536. package/dist/types/widgets/wallet/components/TokenBalanceList/TokenBalanceListStyles.d.ts +14 -0
  537. package/dist/types/widgets/wallet/components/TotalTokenBalance/TotalTokenBalance.d.ts +6 -0
  538. package/dist/types/widgets/wallet/components/TotalTokenBalance/TotalTokenBalanceStyles.d.ts +20 -0
  539. package/dist/types/widgets/wallet/components/TransferAssetsL1Warning.d.ts +6 -0
  540. package/dist/types/widgets/wallet/components/WalletAddress/WalletAddress.d.ts +6 -0
  541. package/dist/types/widgets/wallet/context/WalletContext.d.ts +54 -0
  542. package/dist/types/widgets/wallet/context/WalletContext.test.d.ts +1 -0
  543. package/dist/types/widgets/wallet/functions/tokenBalances.d.ts +12 -0
  544. package/dist/types/widgets/wallet/functions/tokenBalances.test.d.ts +1 -0
  545. package/dist/types/widgets/wallet/test-components/WalletWidgetTestComponent.d.ts +8 -0
  546. package/dist/types/widgets/wallet/tokenDataStub.d.ts +6 -0
  547. package/dist/types/widgets/wallet/views/CoinInfo.d.ts +1 -0
  548. package/dist/types/widgets/wallet/views/Settings.d.ts +4 -0
  549. package/dist/types/widgets/wallet/views/SettingsStyles.d.ts +9 -0
  550. package/dist/types/widgets/wallet/views/WalletBalances.d.ts +8 -0
  551. package/dist/types/widgets/wallet/views/WalletBalancesStyles.d.ts +23 -0
  552. package/package.json +116 -0
@@ -0,0 +1,53 @@
1
+ import { BridgeWidgetConfiguration, BridgeWidgetParams, OnrampWidgetConfiguration, OnRampWidgetParams, SaleWidgetConfiguration, SaleWidgetParams, SwapWidgetConfiguration, SwapWidgetParams, AddTokensWidgetParams, AddTokensWidgetConfiguration, CommerceFlowType, ConnectWidgetParams, ConnectWidgetConfiguration, WalletWidgetParams, WalletWidgetConfiguration } from '@imtbl/checkout-sdk';
2
+ import { ViewType } from './ViewType';
3
+ export type CheckoutWidgetView = ConnectView | WalletView | AddTokensView | SaleView | SwapView | OnRampView | BrdigeView;
4
+ interface ConnectView extends ViewType {
5
+ type: CommerceFlowType.CONNECT;
6
+ data: {
7
+ params: ConnectWidgetParams;
8
+ config: ConnectWidgetConfiguration;
9
+ };
10
+ }
11
+ interface WalletView extends ViewType {
12
+ type: CommerceFlowType.WALLET;
13
+ data: {
14
+ params: WalletWidgetParams;
15
+ config: WalletWidgetConfiguration;
16
+ };
17
+ }
18
+ interface AddTokensView extends ViewType {
19
+ type: CommerceFlowType.ADD_TOKENS;
20
+ data: {
21
+ params: AddTokensWidgetParams;
22
+ config: AddTokensWidgetConfiguration;
23
+ };
24
+ }
25
+ interface SaleView extends ViewType {
26
+ type: CommerceFlowType.SALE;
27
+ data: {
28
+ params: Required<SaleWidgetParams>;
29
+ config: SaleWidgetConfiguration;
30
+ };
31
+ }
32
+ interface SwapView extends ViewType {
33
+ type: CommerceFlowType.SWAP;
34
+ data: {
35
+ params: SwapWidgetParams;
36
+ config: SwapWidgetConfiguration;
37
+ };
38
+ }
39
+ interface OnRampView extends ViewType {
40
+ type: CommerceFlowType.ONRAMP;
41
+ data: {
42
+ params: OnRampWidgetParams;
43
+ config: OnrampWidgetConfiguration;
44
+ };
45
+ }
46
+ interface BrdigeView extends ViewType {
47
+ type: CommerceFlowType.BRIDGE;
48
+ data: {
49
+ params: BridgeWidgetParams;
50
+ config: BridgeWidgetConfiguration;
51
+ };
52
+ }
53
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ViewType } from './ViewType';
2
+ export declare enum ConnectWidgetViews {
3
+ CONNECT_WALLET = "CONNECT_WALLET",
4
+ PASSPORT = "PASSPORT",
5
+ SWITCH_NETWORK = "SWITCH_NETWORK",
6
+ SUCCESS = "SUCCESS"
7
+ }
8
+ export type ConnectWidgetView = ConnectWalletView | SwitchNetworkView | ConnectSuccessView;
9
+ interface ConnectWalletView extends ViewType {
10
+ type: ConnectWidgetViews.CONNECT_WALLET;
11
+ }
12
+ interface SwitchNetworkView extends ViewType {
13
+ type: ConnectWidgetViews.SWITCH_NETWORK;
14
+ }
15
+ interface ConnectSuccessView extends ViewType {
16
+ type: ConnectWidgetViews.SUCCESS;
17
+ }
18
+ export {};
@@ -0,0 +1,35 @@
1
+ import { ViewType } from './ViewType';
2
+ export declare enum OnRampWidgetViews {
3
+ ONRAMP = "ONRAMP",
4
+ IN_PROGRESS_LOADING = "IN_PROGRESS_LOADING",
5
+ IN_PROGRESS = "IN_PROGRESS",
6
+ SUCCESS = "SUCCESS",
7
+ FAIL = "FAIL"
8
+ }
9
+ export type OnRampWidgetView = OnRampView | OnRampInProgressLoadingView | OnRampInProgressView | OnRampSuccessView | OnRampFailView;
10
+ interface OnRampView extends ViewType {
11
+ type: OnRampWidgetViews.ONRAMP;
12
+ data?: PrefilledOnRampData;
13
+ }
14
+ interface OnRampInProgressLoadingView extends ViewType {
15
+ type: OnRampWidgetViews.IN_PROGRESS_LOADING;
16
+ }
17
+ interface OnRampInProgressView extends ViewType {
18
+ type: OnRampWidgetViews.IN_PROGRESS;
19
+ }
20
+ export interface OnRampSuccessView extends ViewType {
21
+ type: OnRampWidgetViews.SUCCESS;
22
+ data: {
23
+ transactionHash: string;
24
+ };
25
+ }
26
+ export interface OnRampFailView extends ViewType {
27
+ type: OnRampWidgetViews.FAIL;
28
+ reason?: string;
29
+ data?: PrefilledOnRampData;
30
+ }
31
+ interface PrefilledOnRampData {
32
+ amount?: string;
33
+ tokenAddress?: string;
34
+ }
35
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ViewType } from './ViewType';
2
+ export declare enum PurchaseWidgetViews {
3
+ PURCHASE = "PURCHASE",
4
+ REVIEW = "REVIEW",
5
+ GEO_BLOCK_ERROR = "GEO_BLOCK_ERROR"
6
+ }
7
+ export type PurchaseWidgetView = PurchaseView | PurchaseReview | GeoBlockErrorView;
8
+ interface PurchaseView extends ViewType {
9
+ type: PurchaseWidgetViews.PURCHASE;
10
+ }
11
+ interface PurchaseReview extends ViewType {
12
+ type: PurchaseWidgetViews.REVIEW;
13
+ data: PurchaseReviewData;
14
+ }
15
+ interface GeoBlockErrorView extends ViewType {
16
+ type: PurchaseWidgetViews.GEO_BLOCK_ERROR;
17
+ }
18
+ export interface PurchaseReviewData {
19
+ }
20
+ export {};
@@ -0,0 +1,44 @@
1
+ import { SaleErrorTypes } from '../../widgets/sale/types';
2
+ import { ViewType } from './ViewType';
3
+ export declare enum SaleWidgetViews {
4
+ PAYMENT_METHODS = "PAYMENT_METHODS",
5
+ PAY_WITH_COINS = "PAY_WITH_COINS",
6
+ PAY_WITH_CARD = "PAY_WITH_CARD",
7
+ ORDER_SUMMARY = "ORDER_SUMMARY",
8
+ SALE_SUCCESS = "SALE_SUCCESS",
9
+ SALE_FAIL = "SALE_FAIL"
10
+ }
11
+ export type SaleWidgetView = SaleMethodsView | SaleWithCoinsView | SaleWithCardView | OrderSummaryView | SaleSuccessView | SaleFailView;
12
+ interface SaleMethodsView extends ViewType {
13
+ type: SaleWidgetViews.PAYMENT_METHODS;
14
+ data?: {
15
+ showInsufficientCoinsBanner?: boolean;
16
+ };
17
+ }
18
+ interface SaleWithCoinsView extends ViewType {
19
+ type: SaleWidgetViews.PAY_WITH_COINS;
20
+ }
21
+ interface SaleWithCardView extends ViewType {
22
+ type: SaleWidgetViews.PAY_WITH_CARD;
23
+ }
24
+ interface OrderSummaryView extends ViewType {
25
+ type: SaleWidgetViews.ORDER_SUMMARY;
26
+ subView: OrderSummarySubViews;
27
+ }
28
+ interface SaleSuccessView extends ViewType {
29
+ type: SaleWidgetViews.SALE_SUCCESS;
30
+ }
31
+ interface SaleFailView extends ViewType {
32
+ type: SaleWidgetViews.SALE_FAIL;
33
+ data?: {
34
+ errorType: SaleErrorTypes;
35
+ transactionHash?: string;
36
+ [key: string]: unknown;
37
+ };
38
+ }
39
+ export declare enum OrderSummarySubViews {
40
+ INIT = "INIT",
41
+ REVIEW_ORDER = "REVIEW_ORDER",
42
+ EXECUTE_FUNDING_ROUTE = "EXECUTE_FUNDING_ROUTE"
43
+ }
44
+ export {};
@@ -0,0 +1,64 @@
1
+ import { Quote } from '@imtbl/dex-sdk';
2
+ import { TransactionRequest, TransactionResponse } from 'ethers';
3
+ import { ViewType } from './ViewType';
4
+ export declare enum SwapWidgetViews {
5
+ SWAP = "SWAP",
6
+ IN_PROGRESS = "IN_PROGRESS",
7
+ SUCCESS = "SUCCESS",
8
+ FAIL = "FAIL",
9
+ PRICE_SURGE = "PRICE_SURGE",
10
+ APPROVE_ERC20 = "APPROVE_ERC20_SWAP",
11
+ SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE"
12
+ }
13
+ export type SwapWidgetView = SwapView | SwapInProgressView | SwapSuccessView | PriceSurgeView | SwapFailView | ApproveERC20View | ServiceUnavailableView;
14
+ export interface SwapSuccessView extends ViewType {
15
+ type: SwapWidgetViews.SUCCESS;
16
+ data: {
17
+ fromTokenAddress: string;
18
+ fromAmount: string;
19
+ toTokenAddress: string;
20
+ toAmount: string;
21
+ transactionHash: string;
22
+ };
23
+ }
24
+ interface SwapFailView extends ViewType {
25
+ type: SwapWidgetViews.FAIL;
26
+ data: PrefilledSwapForm;
27
+ reason?: string;
28
+ }
29
+ interface PriceSurgeView extends ViewType {
30
+ type: SwapWidgetViews.PRICE_SURGE;
31
+ data: PrefilledSwapForm;
32
+ }
33
+ interface SwapView extends ViewType {
34
+ type: SwapWidgetViews.SWAP;
35
+ data?: PrefilledSwapForm;
36
+ }
37
+ interface ApproveERC20View extends ViewType {
38
+ type: SwapWidgetViews.APPROVE_ERC20;
39
+ data: ApproveERC20SwapData;
40
+ }
41
+ interface ServiceUnavailableView extends ViewType {
42
+ type: SwapWidgetViews.SERVICE_UNAVAILABLE;
43
+ }
44
+ interface SwapInProgressView extends ViewType {
45
+ type: SwapWidgetViews.IN_PROGRESS;
46
+ data: {
47
+ transactionResponse: TransactionResponse;
48
+ swapForm: PrefilledSwapForm;
49
+ };
50
+ }
51
+ export interface ApproveERC20SwapData {
52
+ approveTransaction?: TransactionRequest;
53
+ transaction: TransactionRequest;
54
+ info: Quote;
55
+ swapFormInfo: PrefilledSwapForm;
56
+ autoProceed: boolean;
57
+ }
58
+ export interface PrefilledSwapForm {
59
+ fromAmount: string;
60
+ fromTokenAddress: string;
61
+ toTokenAddress: string;
62
+ toAmount?: string;
63
+ }
64
+ export {};
@@ -0,0 +1,75 @@
1
+ import { ReactNode } from 'react';
2
+ import { ConnectWidgetView } from './ConnectViewContextTypes';
3
+ import { WalletWidgetView } from './WalletViewContextTypes';
4
+ import { PrefilledSwapForm, SwapWidgetView } from './SwapViewContextTypes';
5
+ import { BridgeWidgetView } from './BridgeViewContextTypes';
6
+ import { SaleWidgetView } from './SaleViewContextTypes';
7
+ import { ViewType } from './ViewType';
8
+ import { OnRampWidgetView } from './OnRampViewContextTypes';
9
+ import { AddTokensWidgetView } from './AddTokensViewContextTypes';
10
+ import { CheckoutWidgetView } from './CheckoutWidgetViewContextTypes';
11
+ import { PurchaseWidgetView } from './PurchaseViewContextTypes';
12
+ export declare enum SharedViews {
13
+ LOADING_VIEW = "LOADING_VIEW",
14
+ ERROR_VIEW = "ERROR_VIEW",
15
+ SUCCESS_VIEW = "SUCCESS_VIEW",
16
+ TOP_UP_VIEW = "TOP_UP_VIEW",
17
+ SERVICE_UNAVAILABLE_ERROR_VIEW = "SERVICE_UNAVAILABLE_ERROR_VIEW"
18
+ }
19
+ export type SharedView = LoadingView | ErrorView | ServiceUnavailableErrorView | TopUpView;
20
+ interface LoadingView extends ViewType {
21
+ type: SharedViews.LOADING_VIEW;
22
+ }
23
+ export interface ErrorView extends ViewType {
24
+ type: SharedViews.ERROR_VIEW;
25
+ error: Error;
26
+ tryAgain?: () => Promise<any>;
27
+ }
28
+ interface ServiceUnavailableErrorView extends ViewType {
29
+ type: SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW;
30
+ error: Error;
31
+ }
32
+ interface TopUpView extends ViewType {
33
+ type: SharedViews.TOP_UP_VIEW;
34
+ swapData?: PrefilledSwapForm;
35
+ }
36
+ export type View = SharedView | ConnectWidgetView | WalletWidgetView | SwapWidgetView | OnRampWidgetView | SaleWidgetView | BridgeWidgetView | AddTokensWidgetView | CheckoutWidgetView | PurchaseWidgetView;
37
+ export interface ViewState {
38
+ view: View;
39
+ history: View[];
40
+ }
41
+ export declare const initialViewState: ViewState;
42
+ export interface ViewContextState {
43
+ viewState: ViewState;
44
+ viewDispatch: React.Dispatch<ViewAction>;
45
+ }
46
+ export interface ViewAction {
47
+ payload: ViewActionPayload;
48
+ }
49
+ type ViewActionPayload = UpdateViewPayload | GoBackPayload | GoBackToPayload;
50
+ export declare enum ViewActions {
51
+ UPDATE_VIEW = "UPDATE_VIEW",
52
+ GO_BACK = "GO_BACK",
53
+ GO_BACK_TO = "GO_BACK_TO"
54
+ }
55
+ export interface UpdateViewPayload {
56
+ type: ViewActions.UPDATE_VIEW;
57
+ view: View;
58
+ currentViewData?: any;
59
+ }
60
+ export interface GoBackPayload {
61
+ type: ViewActions.GO_BACK;
62
+ }
63
+ export interface GoBackToPayload {
64
+ type: ViewActions.GO_BACK_TO;
65
+ view: View;
66
+ }
67
+ export declare const ViewContext: import("react").Context<ViewContextState>;
68
+ export type Reducer<S, A> = (prevState: S, action: A) => S;
69
+ export declare const viewReducer: Reducer<ViewState, ViewAction>;
70
+ export declare const useViewState: (initialState?: ViewState) => readonly [ViewState, import("react").Dispatch<ViewAction>];
71
+ type ViewContextProviderProps = {
72
+ children: ReactNode;
73
+ };
74
+ export declare function ViewContextProvider({ children }: ViewContextProviderProps): import("@emotion/react/jsx-runtime").JSX.Element;
75
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface ViewType {
2
+ type: string;
3
+ data?: any;
4
+ }
@@ -0,0 +1,26 @@
1
+ import { ViewType } from './ViewType';
2
+ export declare enum WalletWidgetViews {
3
+ WALLET_BALANCES = "WALLET_BALANCES",
4
+ SETTINGS = "SETTINGS",
5
+ COIN_INFO = "COIN_INFO",
6
+ SUCCESS = "SUCCESS",
7
+ FAIL = "FAIL"
8
+ }
9
+ export type WalletWidgetView = WalletBalancesView | WalletSettingsView | WalletCoinInfoView | WalletSuccessView | WalletFailView;
10
+ interface WalletFailView extends ViewType {
11
+ type: WalletWidgetViews.FAIL;
12
+ reason: string;
13
+ }
14
+ interface WalletBalancesView extends ViewType {
15
+ type: WalletWidgetViews.WALLET_BALANCES;
16
+ }
17
+ interface WalletSettingsView extends ViewType {
18
+ type: WalletWidgetViews.SETTINGS;
19
+ }
20
+ interface WalletCoinInfoView extends ViewType {
21
+ type: WalletWidgetViews.COIN_INFO;
22
+ }
23
+ interface WalletSuccessView extends ViewType {
24
+ type: WalletWidgetViews.SUCCESS;
25
+ }
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { WidgetTheme } from '@imtbl/checkout-sdk';
3
+ export interface TestProps {
4
+ children: React.ReactNode;
5
+ theme?: WidgetTheme;
6
+ }
7
+ export declare function ViewContextTestComponent({ children, theme }: TestProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Checkout, IWidgetsFactory, IWidgetsFactoryCreate, WidgetConfiguration, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
2
+ import './i18n';
3
+ export declare class WidgetsFactory implements IWidgetsFactory {
4
+ private sdk;
5
+ private widgetConfig;
6
+ constructor(sdk: Checkout, widgetConfig: WidgetConfiguration);
7
+ updateProvider(provider: WrappedBrowserProvider): void;
8
+ create: IWidgetsFactoryCreate;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * useMount hook to runs only once when the component mounts
3
+ * after mounting condition is met
4
+ *
5
+ * @param fn function to run
6
+ * @param shouldMount function to check mount condition
7
+ * @param deps dependencies to watch for changes
8
+ */
9
+ export declare const useMount: (fn: () => void, shouldMount?: () => boolean, deps?: unknown[]) => void;
@@ -0,0 +1,2 @@
1
+ import i18n from 'i18next';
2
+ export default i18n;
@@ -0,0 +1 @@
1
+ export * from './factory';
@@ -0,0 +1 @@
1
+ export declare function abbreviateAddress(address: string): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { WrappedBrowserProvider } from '@imtbl/checkout-sdk';
2
+ /**
3
+ * identifyUser - function to identify a user by their wallet address and call the function to raise analytics
4
+ * @param identify - The identify function from the useAnalytics() hook
5
+ * @param provider - the WrappedBrowserProvider used to find the user's walletAddress
6
+ * @param options - additional options to pass to the identify function
7
+ */
8
+ export declare function identifyUser(identify: (id: string, attributes: Record<string, any>, options?: Record<string, any>) => void, provider: WrappedBrowserProvider, options?: Record<string, any>): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export declare const listVariants: {
2
+ hidden: {
3
+ opacity: number;
4
+ };
5
+ show: {
6
+ opacity: number;
7
+ };
8
+ };
9
+ export declare const listItemVariants: {
10
+ hidden: {
11
+ y: number;
12
+ opacity: number;
13
+ };
14
+ show: (i: any) => {
15
+ y: number;
16
+ opacity: number;
17
+ transition: {
18
+ delay: number;
19
+ duration: number;
20
+ ease: string;
21
+ };
22
+ };
23
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * CancellablePromise extends a promise by adding the ability to flag it as cancelled.
3
+ */
4
+ export declare class CancellablePromise<T> {
5
+ static id: number;
6
+ promiseId: number;
7
+ private promise;
8
+ private isCancelled;
9
+ private onCancel;
10
+ private rejectPromise;
11
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
12
+ static all<T>(values: Array<CancellablePromise<T> | PromiseLike<T>>): CancellablePromise<T[]>;
13
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): CancellablePromise<TResult1 | TResult2>;
14
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): CancellablePromise<T | TResult>;
15
+ finally(onfinally?: (() => void) | undefined | null): CancellablePromise<T>;
16
+ cancel(): void;
17
+ onCancelled(callback: () => void): void;
18
+ get cancelled(): boolean;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ChainId, Checkout, GetBalanceResult, GetTokenAllowListResult, WrappedBrowserProvider, TokenFilterTypes } from '@imtbl/checkout-sdk';
2
+ import { RetryType } from './retry';
3
+ export type GetAllowedBalancesParamsType = {
4
+ checkout: Checkout;
5
+ provider: WrappedBrowserProvider;
6
+ allowTokenListType: TokenFilterTypes;
7
+ allowZero?: boolean;
8
+ retryPolicy?: RetryType;
9
+ chainId?: ChainId;
10
+ };
11
+ export type GetAllowedBalancesResultType = {
12
+ allowList: GetTokenAllowListResult;
13
+ allowedBalances: GetBalanceResult[];
14
+ };
15
+ export declare const getAllowedBalances: ({ checkout, provider, allowTokenListType, chainId, allowZero, retryPolicy, }: GetAllowedBalancesParamsType) => Promise<GetAllowedBalancesResultType | undefined>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ChainId, ChainName, ChainSlug } from '@imtbl/checkout-sdk';
2
+ export declare function getChainNameById(chainId: ChainId): ChainName;
3
+ export declare function getChainSlugById(chainId: ChainId): ChainSlug;
4
+ export declare function getChainIdBySlug(chainSlug: ChainSlug): ChainId;
5
+ export declare function getNativeSymbolByChainSlug(chainSlug: ChainSlug): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import { Environment } from '@imtbl/config';
2
+ import { ENV_DEVELOPMENT } from '../constants';
3
+ import { TransactionType, Transactions } from './checkoutApiType';
4
+ type GetTransactions = {
5
+ txType: TransactionType;
6
+ fromAddress: string;
7
+ };
8
+ /**
9
+ * Checkout API class provides a client abstraction for the Checkout API.
10
+ */
11
+ export declare class CheckoutApi {
12
+ readonly url: string;
13
+ readonly ttl: number;
14
+ readonly env: Environment;
15
+ private cacheMap;
16
+ private setCache;
17
+ private getCache;
18
+ /**
19
+ * Checkout API constructor
20
+ * @param env target chain
21
+ * @param ttl cache TTL
22
+ */
23
+ constructor(params: {
24
+ env: Environment | typeof ENV_DEVELOPMENT;
25
+ ttl?: number;
26
+ });
27
+ /**
28
+ * isHttpError verifies if the error is a HTTP error
29
+ * @param err error to evaluate
30
+ */
31
+ static isHttpError: (err: any) => boolean;
32
+ /**
33
+ * getTransactions fetches a list of blockchain transactions.
34
+ * @param txType transaction type
35
+ * @param fromAddress transactions executed from address
36
+ */
37
+ getTransactions(params: GetTransactions): Promise<Transactions>;
38
+ }
39
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ export declare enum TransactionType {
2
+ BRIDGE = "bridge"
3
+ }
4
+ export declare const TransactionStatus: {
5
+ readonly IN_PROGRESS: "in_progress";
6
+ readonly WITHDRAWAL_PENDING: "withdrawal_pending";
7
+ };
8
+ export type Transactions = {
9
+ result: Transaction[];
10
+ };
11
+ export type CurrentStatus = {
12
+ status: string;
13
+ withdrawal_ready_at?: string;
14
+ index?: number;
15
+ };
16
+ export type TransactionDetails = {
17
+ amount: string;
18
+ from_address: string;
19
+ from_chain: string;
20
+ from_token_address: string;
21
+ to_address: string;
22
+ to_chain: string;
23
+ to_token_address: string;
24
+ current_status: CurrentStatus;
25
+ };
26
+ export type BlockchainMetadata = {
27
+ transaction_hash: string;
28
+ };
29
+ export type Transaction = {
30
+ tx_type: TransactionType;
31
+ details: TransactionDetails;
32
+ blockchain_metadata: BlockchainMetadata;
33
+ created_at: string;
34
+ };
@@ -0,0 +1,2 @@
1
+ export * from './checkoutApi';
2
+ export * from './checkoutApiType';
@@ -0,0 +1,10 @@
1
+ import { Checkout, EIP6963ProviderDetail, WrappedBrowserProvider } from '@imtbl/checkout-sdk';
2
+ export declare enum ConnectEIP6963ProviderError {
3
+ CONNECT_ERROR = "CONNECT_ERROR",
4
+ USER_REJECTED_REQUEST_ERROR = "USER_REJECTED_REQUEST_ERROR"
5
+ }
6
+ export type ConnectEIP6963ProviderResult = {
7
+ provider: WrappedBrowserProvider;
8
+ providerName: string;
9
+ };
10
+ export declare const connectEIP6963Provider: (providerDetail: EIP6963ProviderDetail, checkout: Checkout, shouldRequestWalletPermissions?: boolean) => Promise<ConnectEIP6963ProviderResult>;
@@ -0,0 +1,88 @@
1
+ import { Environment } from '@imtbl/config';
2
+ import { WalletProviderName, WidgetTheme } from '@imtbl/checkout-sdk';
3
+ import { RetryType } from './retry';
4
+ export declare const ENV_DEVELOPMENT: Environment;
5
+ export declare const NATIVE = "native";
6
+ export declare const DEFAULT_TOKEN_DECIMALS = 18;
7
+ export declare const DEFAULT_TOKEN_FORMATTING_DECIMALS = 5;
8
+ export declare const DEFAULT_GT_ONE_TOKEN_FORMATTING_DECIMALS = 2;
9
+ export declare const DEFAULT_TOKEN_VALIDATION_DECIMALS = 5;
10
+ export declare const ESTIMATE_DEBOUNCE = 700;
11
+ export declare const IMX_TOKEN_SYMBOL = "IMX";
12
+ export declare const ETH_TOKEN_SYMBOL = "ETH";
13
+ export declare const ZERO_BALANCE_STRING = "0.0";
14
+ export declare const FAQS_LINK = "https://support.immutable.com/hc/en-us/categories/9383180060815-FAQs";
15
+ /**
16
+ * Delay between retries (milliseconds)
17
+ */
18
+ export declare const DEFAULT_RETRY_DELAY: number;
19
+ /**
20
+ * Default retry policy for fetching balances from remote.
21
+ */
22
+ export declare const DEFAULT_BALANCE_RETRY_POLICY: RetryType;
23
+ /**
24
+ * Default retry policy for fetching transactions from remote.
25
+ */
26
+ export declare const DEFAULT_TRANSACTIONS_RETRY_POLICY: RetryType;
27
+ /**
28
+ * Commerce Widget default env
29
+ */
30
+ export declare const DEFAULT_ENV = Environment.SANDBOX;
31
+ /**
32
+ * Commerce Widget default theme
33
+ */
34
+ export declare const DEFAULT_THEME = WidgetTheme.DARK;
35
+ /**
36
+ * Commerce Widget default provider
37
+ */
38
+ export declare const DEFAULT_PROVIDER = WalletProviderName.METAMASK;
39
+ /**
40
+ * Commerce Widget default onramp enabled flag
41
+ */
42
+ export declare const DEFAULT_ON_RAMP_ENABLED = true;
43
+ /**
44
+ * Commerce Widget default swap enabled flag
45
+ */
46
+ export declare const DEFAULT_SWAP_ENABLED = true;
47
+ /**
48
+ * Commerce Widget default bridge enabled flag
49
+ */
50
+ export declare const DEFAULT_BRIDGE_ENABLED = true;
51
+ /**
52
+ * Commerce Widget default add tokens enabled flag
53
+ */
54
+ export declare const DEFAULT_ADD_TOKENS_ENABLED = true;
55
+ /**
56
+ * Commerce Widget default refresh quote interval
57
+ */
58
+ export declare const DEFAULT_QUOTE_REFRESH_INTERVAL = 30000;
59
+ /**
60
+ * Base URL for the checkout CDN based on the environment.
61
+ */
62
+ export declare const CHECKOUT_CDN_BASE_URL: {
63
+ [x: string]: string;
64
+ sandbox: string;
65
+ production: string;
66
+ };
67
+ /**
68
+ * URL for axelar scan based on the environment
69
+ */
70
+ export declare const AXELAR_SCAN_URL: {
71
+ [x: string]: string;
72
+ sandbox: string;
73
+ production: string;
74
+ };
75
+ /**
76
+ * URL for passport based on environment
77
+ */
78
+ export declare const PASSPORT_URL: {
79
+ [x: string]: string;
80
+ sandbox: string;
81
+ production: string;
82
+ };
83
+ export declare const IMAGE_RESIZER_URL: {
84
+ [x: string]: string;
85
+ sandbox: string;
86
+ production: string;
87
+ };
88
+ export declare const WITHDRAWAL_CLAIM_GAS_LIMIT = 91000;