@b3dotfun/sdk 0.0.7-alpha.27 → 0.0.7-alpha.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 (749) hide show
  1. package/dist/cjs/anyspend/abis/abi-usdc-base.js +97 -97
  2. package/dist/cjs/anyspend/abis/erc20-staking.js +51 -51
  3. package/dist/cjs/anyspend/constants/index.js +10 -13
  4. package/dist/cjs/anyspend/index.d.ts +2 -4
  5. package/dist/cjs/anyspend/index.js +4 -4
  6. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
  7. package/dist/cjs/anyspend/react/components/AnySpend.js +68 -69
  8. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  9. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +66 -68
  10. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  11. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +101 -158
  12. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  13. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +5 -7
  14. package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +1 -1
  15. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  16. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +20 -21
  17. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +4 -7
  18. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  19. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  20. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +62 -51
  21. package/dist/cjs/anyspend/react/components/common/OrderHistory.js +6 -6
  22. package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +1 -1
  23. package/dist/cjs/anyspend/react/components/common/OrderToken.js +4 -4
  24. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  25. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  26. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  27. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +9 -9
  28. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  29. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +14 -15
  30. package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  31. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +3 -3
  32. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +25 -26
  33. package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  34. package/dist/cjs/anyspend/react/components/common/TokenBalance.js +2 -2
  35. package/dist/cjs/anyspend/react/components/index.d.ts +0 -2
  36. package/dist/cjs/anyspend/react/components/index.js +1 -5
  37. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  38. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +6 -6
  39. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +1 -0
  40. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  41. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +25 -26
  42. package/dist/cjs/anyspend/react/hooks/index.d.ts +2 -1
  43. package/dist/cjs/anyspend/react/hooks/index.js +2 -1
  44. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  45. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  46. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  47. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
  48. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  49. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  50. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  51. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  52. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +3 -3
  53. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  54. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +39 -0
  55. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  56. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  57. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  58. package/dist/cjs/anyspend/react/hooks/useGetGeo.js +1 -1
  59. package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +92 -0
  60. package/dist/cjs/anyspend/react/hooks/usePermitData.js +158 -0
  61. package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  62. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +2 -2
  63. package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +6 -7
  64. package/dist/cjs/anyspend/services/anyspend.d.ts +40 -9
  65. package/dist/cjs/anyspend/services/anyspend.js +24 -11
  66. package/dist/cjs/anyspend/types/custom.js +2 -2
  67. package/dist/cjs/anyspend/types/globalWallet.js +1 -1
  68. package/dist/cjs/anyspend/types/index.d.ts +1 -1
  69. package/dist/cjs/anyspend/types/index.js +1 -1
  70. package/dist/cjs/anyspend/types/nft.d.ts +0 -7
  71. package/dist/cjs/anyspend/types/nft.js +6 -8
  72. package/dist/cjs/anyspend/types/onramp.d.ts +0 -3
  73. package/dist/cjs/anyspend/types/onramp.js +1 -2
  74. package/dist/cjs/anyspend/types/order.d.ts +200 -40
  75. package/dist/cjs/anyspend/types/order.js +12 -7
  76. package/dist/cjs/anyspend/types/permit.d.ts +21 -0
  77. package/dist/cjs/anyspend/types/permit.js +11 -0
  78. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +235 -98
  79. package/dist/cjs/anyspend/types/req-res/createOrder.js +9 -9
  80. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  81. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  82. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  83. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +2 -2
  84. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  85. package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
  86. package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -37
  87. package/dist/cjs/anyspend/types/req-res/getQuote.js +9 -14
  88. package/dist/cjs/anyspend/types/req-res/getTokenList.js +3 -3
  89. package/dist/cjs/anyspend/types/req-res/index.d.ts +1 -0
  90. package/dist/cjs/anyspend/types/req-res/index.js +1 -0
  91. package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  92. package/dist/cjs/anyspend/types/req-res/sendPermitData.js +11 -0
  93. package/dist/cjs/anyspend/types/swap.js +2 -2
  94. package/dist/cjs/anyspend/types/token.js +2 -2
  95. package/dist/cjs/anyspend/types/tournament.js +4 -4
  96. package/dist/cjs/anyspend/types/transaction.js +4 -4
  97. package/dist/cjs/anyspend/utils/chain.js +16 -16
  98. package/dist/cjs/anyspend/utils/format.js +6 -2
  99. package/dist/cjs/anyspend/utils/orderPayload.d.ts +3 -3
  100. package/dist/cjs/anyspend/utils/orderPayload.js +8 -22
  101. package/dist/cjs/anyspend/utils/token.js +10 -10
  102. package/dist/cjs/global-account/app.js +4 -4
  103. package/dist/cjs/global-account/app.native.js +4 -4
  104. package/dist/cjs/global-account/bsmnt.js +4 -4
  105. package/dist/cjs/global-account/bsmnt.native.js +4 -4
  106. package/dist/cjs/global-account/react/components/B3DynamicModal.js +3 -13
  107. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  108. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +16 -17
  109. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  110. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  111. package/dist/cjs/global-account/react/components/B3Provider/types.js +1 -1
  112. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  113. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +5 -5
  114. package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  115. package/dist/cjs/global-account/react/components/MintButton/MintButton.js +5 -5
  116. package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  117. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  118. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +5 -5
  119. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  120. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  121. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  122. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +17 -12
  123. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  124. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +12 -12
  125. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  126. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  127. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  128. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  129. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  130. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  131. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  132. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
  133. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  134. package/dist/cjs/global-account/react/components/StyleRoot.js +1 -0
  135. package/dist/cjs/global-account/react/components/Transak/TransakModal.js +4 -4
  136. package/dist/cjs/global-account/react/components/custom/Button.js +5 -5
  137. package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  138. package/dist/cjs/global-account/react/components/index.d.ts +4 -4
  139. package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  140. package/dist/cjs/global-account/react/components/ui/Loading.js +2 -2
  141. package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  142. package/dist/cjs/global-account/react/components/ui/ShinyButton.js +3 -3
  143. package/dist/cjs/global-account/react/components/ui/TabSystem.js +1 -1
  144. package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +1 -1
  145. package/dist/cjs/global-account/react/components/ui/Tabs.js +1 -1
  146. package/dist/cjs/global-account/react/components/ui/badge.js +4 -4
  147. package/dist/cjs/global-account/react/components/ui/button.js +5 -5
  148. package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
  149. package/dist/cjs/global-account/react/components/ui/dialog.d.ts +1 -1
  150. package/dist/cjs/global-account/react/components/ui/drawer.d.ts +1 -1
  151. package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +12 -12
  152. package/dist/cjs/global-account/react/components/ui/glare-card.js +11 -11
  153. package/dist/cjs/global-account/react/components/ui/input.js +1 -1
  154. package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +1 -1
  155. package/dist/cjs/global-account/react/components/ui/text-loop.js +2 -2
  156. package/dist/cjs/global-account/react/components/ui/text-shimmer.js +2 -2
  157. package/dist/cjs/global-account/react/components/ui/tooltip.js +1 -1
  158. package/dist/cjs/global-account/react/hooks/useAccountAssets.js +4 -4
  159. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -8
  160. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  161. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  162. package/dist/cjs/global-account/react/hooks/useAuthentication.js +3 -3
  163. package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  164. package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  165. package/dist/cjs/global-account/react/hooks/useB3EnsName.js +23 -32
  166. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  167. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +10 -10
  168. package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +1 -1
  169. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  170. package/dist/cjs/global-account/react/hooks/useClaim.js +4 -4
  171. package/dist/cjs/global-account/react/hooks/useConnect.js +3 -3
  172. package/dist/cjs/global-account/react/hooks/useExchangeRate.js +3 -3
  173. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  174. package/dist/cjs/global-account/react/hooks/useGetGeo.js +1 -1
  175. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  176. package/dist/cjs/global-account/react/hooks/useNativeBalance.js +6 -6
  177. package/dist/cjs/global-account/react/hooks/useOnchainName.js +10 -10
  178. package/dist/cjs/global-account/react/hooks/useOneBalance.js +2 -2
  179. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  180. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  181. package/dist/cjs/global-account/react/hooks/useRouter.js +6 -6
  182. package/dist/cjs/global-account/react/hooks/useSiwe.js +4 -4
  183. package/dist/cjs/global-account/react/hooks/useTokenBalance.js +6 -6
  184. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  185. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  186. package/dist/cjs/global-account/react/hooks/useTokenData.js +3 -3
  187. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +14 -14
  188. package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  189. package/dist/cjs/global-account/react/hooks/useTokenPrice.js +6 -6
  190. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  191. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  192. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  193. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +2 -2
  194. package/dist/cjs/global-account/react/hooks/useURLParams.js +1 -1
  195. package/dist/cjs/global-account/react/stores/index.d.ts +1 -1
  196. package/dist/cjs/global-account/react/stores/useAuthStore.js +3 -3
  197. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +1 -18
  198. package/dist/cjs/global-account/react/stores/useModalStore.js +3 -3
  199. package/dist/cjs/global-account/server.js +3 -3
  200. package/dist/cjs/global-account/types/chain-networks.js +8 -8
  201. package/dist/cjs/global-account/types/feature-flags.js +1 -1
  202. package/dist/cjs/shared/constants/chains/b3Chain.js +35 -35
  203. package/dist/cjs/shared/constants/chains/chainPlatformMap.js +1 -1
  204. package/dist/cjs/shared/constants/chains/supported.js +1 -1
  205. package/dist/cjs/shared/constants/index.d.ts +0 -1
  206. package/dist/cjs/shared/constants/index.js +2 -3
  207. package/dist/cjs/shared/thirdweb/initiateClient.js +2 -2
  208. package/dist/cjs/shared/thirdweb/openapi-ts.config.js +1 -1
  209. package/dist/cjs/shared/utils/b3Ens.js +4 -4
  210. package/dist/cjs/shared/utils/chain-transformers.js +9 -9
  211. package/dist/cjs/shared/utils/fetchBalances.js +4 -4
  212. package/dist/cjs/shared/utils/index.d.ts +0 -9
  213. package/dist/cjs/shared/utils/index.js +0 -17
  214. package/dist/cjs/shared/utils/insights.js +28 -28
  215. package/dist/cjs/shared/utils/ipfs.js +1 -1
  216. package/dist/cjs/shared/utils/number.js +3 -3
  217. package/dist/cjs/shared/utils/simplehash.js +22 -22
  218. package/dist/cjs/shared/utils/thirdweb-insights.js +15 -15
  219. package/dist/esm/anyspend/abis/abi-usdc-base.js +97 -97
  220. package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
  221. package/dist/esm/anyspend/constants/index.js +10 -13
  222. package/dist/esm/anyspend/index.d.ts +2 -4
  223. package/dist/esm/anyspend/index.js +4 -4
  224. package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
  225. package/dist/esm/anyspend/react/components/AnySpend.js +22 -23
  226. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  227. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +39 -41
  228. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  229. package/dist/esm/anyspend/react/components/AnySpendCustom.js +81 -138
  230. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  231. package/dist/esm/anyspend/react/components/AnySpendNFT.js +5 -7
  232. package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +1 -1
  233. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  234. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +21 -22
  235. package/dist/esm/anyspend/react/components/AnySpendTournament.js +4 -7
  236. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  237. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  238. package/dist/esm/anyspend/react/components/common/OrderDetails.js +63 -52
  239. package/dist/esm/anyspend/react/components/common/OrderHistory.js +1 -1
  240. package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +1 -1
  241. package/dist/esm/anyspend/react/components/common/OrderToken.js +4 -4
  242. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  243. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  244. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  245. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +3 -3
  246. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  247. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
  248. package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  249. package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +3 -3
  250. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +13 -14
  251. package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  252. package/dist/esm/anyspend/react/components/common/TokenBalance.js +2 -2
  253. package/dist/esm/anyspend/react/components/index.d.ts +0 -2
  254. package/dist/esm/anyspend/react/components/index.js +0 -2
  255. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  256. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +2 -2
  257. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +1 -0
  258. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  259. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +15 -16
  260. package/dist/esm/anyspend/react/hooks/index.d.ts +2 -1
  261. package/dist/esm/anyspend/react/hooks/index.js +2 -1
  262. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  263. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  264. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  265. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +7 -7
  266. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  267. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  268. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  269. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  270. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +3 -3
  271. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  272. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +36 -0
  273. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  274. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  275. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  276. package/dist/esm/anyspend/react/hooks/useGetGeo.js +1 -1
  277. package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +92 -0
  278. package/dist/esm/anyspend/react/hooks/usePermitData.js +154 -0
  279. package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  280. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +2 -2
  281. package/dist/esm/anyspend/react/providers/AnyspendProvider.js +4 -5
  282. package/dist/esm/anyspend/services/anyspend.d.ts +40 -9
  283. package/dist/esm/anyspend/services/anyspend.js +25 -12
  284. package/dist/esm/anyspend/types/custom.js +2 -2
  285. package/dist/esm/anyspend/types/globalWallet.js +1 -1
  286. package/dist/esm/anyspend/types/index.d.ts +1 -1
  287. package/dist/esm/anyspend/types/index.js +1 -1
  288. package/dist/esm/anyspend/types/nft.d.ts +0 -7
  289. package/dist/esm/anyspend/types/nft.js +6 -8
  290. package/dist/esm/anyspend/types/onramp.d.ts +0 -3
  291. package/dist/esm/anyspend/types/onramp.js +1 -2
  292. package/dist/esm/anyspend/types/order.d.ts +200 -40
  293. package/dist/esm/anyspend/types/order.js +12 -7
  294. package/dist/esm/anyspend/types/permit.d.ts +21 -0
  295. package/dist/esm/anyspend/types/permit.js +8 -0
  296. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +235 -98
  297. package/dist/esm/anyspend/types/req-res/createOrder.js +9 -9
  298. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  299. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  300. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  301. package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +2 -2
  302. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  303. package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
  304. package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -37
  305. package/dist/esm/anyspend/types/req-res/getQuote.js +9 -14
  306. package/dist/esm/anyspend/types/req-res/getTokenList.js +3 -3
  307. package/dist/esm/anyspend/types/req-res/index.d.ts +1 -0
  308. package/dist/esm/anyspend/types/req-res/index.js +1 -0
  309. package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  310. package/dist/esm/anyspend/types/req-res/sendPermitData.js +8 -0
  311. package/dist/esm/anyspend/types/swap.js +2 -2
  312. package/dist/esm/anyspend/types/token.js +2 -2
  313. package/dist/esm/anyspend/types/tournament.js +4 -4
  314. package/dist/esm/anyspend/types/transaction.js +4 -4
  315. package/dist/esm/anyspend/utils/chain.js +18 -18
  316. package/dist/esm/anyspend/utils/format.js +6 -2
  317. package/dist/esm/anyspend/utils/orderPayload.d.ts +3 -3
  318. package/dist/esm/anyspend/utils/orderPayload.js +9 -23
  319. package/dist/esm/anyspend/utils/token.js +10 -10
  320. package/dist/esm/global-account/app.js +4 -4
  321. package/dist/esm/global-account/app.native.js +4 -4
  322. package/dist/esm/global-account/bsmnt.js +4 -4
  323. package/dist/esm/global-account/bsmnt.native.js +4 -4
  324. package/dist/esm/global-account/react/components/B3DynamicModal.js +4 -14
  325. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  326. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +7 -8
  327. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  328. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  329. package/dist/esm/global-account/react/components/B3Provider/types.js +1 -1
  330. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  331. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +6 -6
  332. package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  333. package/dist/esm/global-account/react/components/MintButton/MintButton.js +5 -5
  334. package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  335. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  336. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +6 -6
  337. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  338. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  339. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  340. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +13 -8
  341. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  342. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -13
  343. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +2 -2
  344. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  345. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  346. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  347. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  348. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  349. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  350. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +3 -3
  351. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  352. package/dist/esm/global-account/react/components/StyleRoot.js +1 -0
  353. package/dist/esm/global-account/react/components/Transak/TransakModal.js +4 -4
  354. package/dist/esm/global-account/react/components/custom/Button.js +5 -5
  355. package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  356. package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +1 -1
  357. package/dist/esm/global-account/react/components/index.d.ts +4 -4
  358. package/dist/esm/global-account/react/components/index.js +4 -4
  359. package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  360. package/dist/esm/global-account/react/components/ui/Loading.js +2 -2
  361. package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  362. package/dist/esm/global-account/react/components/ui/ShinyButton.js +3 -3
  363. package/dist/esm/global-account/react/components/ui/TabSystem.js +1 -1
  364. package/dist/esm/global-account/react/components/ui/Tabs.d.ts +1 -1
  365. package/dist/esm/global-account/react/components/ui/Tabs.js +1 -1
  366. package/dist/esm/global-account/react/components/ui/badge.js +4 -4
  367. package/dist/esm/global-account/react/components/ui/button.js +5 -5
  368. package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
  369. package/dist/esm/global-account/react/components/ui/command.js +1 -1
  370. package/dist/esm/global-account/react/components/ui/dialog.d.ts +1 -1
  371. package/dist/esm/global-account/react/components/ui/dialog.js +1 -1
  372. package/dist/esm/global-account/react/components/ui/drawer.d.ts +1 -1
  373. package/dist/esm/global-account/react/components/ui/drawer.js +1 -1
  374. package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +12 -12
  375. package/dist/esm/global-account/react/components/ui/glare-card.js +11 -11
  376. package/dist/esm/global-account/react/components/ui/input.js +1 -1
  377. package/dist/esm/global-account/react/components/ui/text-loop.d.ts +1 -1
  378. package/dist/esm/global-account/react/components/ui/text-loop.js +2 -2
  379. package/dist/esm/global-account/react/components/ui/text-shimmer.js +2 -2
  380. package/dist/esm/global-account/react/components/ui/tooltip.js +1 -1
  381. package/dist/esm/global-account/react/hooks/useAccountAssets.js +4 -4
  382. package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -8
  383. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  384. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  385. package/dist/esm/global-account/react/hooks/useAuthentication.js +3 -3
  386. package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  387. package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  388. package/dist/esm/global-account/react/hooks/useB3EnsName.js +22 -34
  389. package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  390. package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +10 -10
  391. package/dist/esm/global-account/react/hooks/useBsmntProfile.js +1 -1
  392. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  393. package/dist/esm/global-account/react/hooks/useClaim.js +4 -4
  394. package/dist/esm/global-account/react/hooks/useConnect.js +3 -3
  395. package/dist/esm/global-account/react/hooks/useExchangeRate.js +3 -3
  396. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  397. package/dist/esm/global-account/react/hooks/useGetGeo.js +1 -1
  398. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  399. package/dist/esm/global-account/react/hooks/useNativeBalance.js +6 -6
  400. package/dist/esm/global-account/react/hooks/useOnchainName.js +10 -10
  401. package/dist/esm/global-account/react/hooks/useOneBalance.js +2 -2
  402. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  403. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  404. package/dist/esm/global-account/react/hooks/useRouter.js +6 -6
  405. package/dist/esm/global-account/react/hooks/useSiwe.js +4 -4
  406. package/dist/esm/global-account/react/hooks/useTokenBalance.js +6 -6
  407. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  408. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  409. package/dist/esm/global-account/react/hooks/useTokenData.js +3 -3
  410. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -13
  411. package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  412. package/dist/esm/global-account/react/hooks/useTokenPrice.js +6 -6
  413. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  414. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  415. package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  416. package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +2 -2
  417. package/dist/esm/global-account/react/hooks/useURLParams.js +1 -1
  418. package/dist/esm/global-account/react/stores/index.d.ts +1 -1
  419. package/dist/esm/global-account/react/stores/useAuthStore.js +3 -3
  420. package/dist/esm/global-account/react/stores/useModalStore.d.ts +1 -18
  421. package/dist/esm/global-account/react/stores/useModalStore.js +3 -3
  422. package/dist/esm/global-account/server.js +3 -3
  423. package/dist/esm/global-account/types/chain-networks.js +8 -8
  424. package/dist/esm/global-account/types/feature-flags.js +1 -1
  425. package/dist/esm/shared/constants/chains/b3Chain.js +35 -35
  426. package/dist/esm/shared/constants/chains/chainPlatformMap.js +1 -1
  427. package/dist/esm/shared/constants/chains/supported.js +1 -1
  428. package/dist/esm/shared/constants/index.d.ts +0 -1
  429. package/dist/esm/shared/constants/index.js +1 -2
  430. package/dist/esm/shared/thirdweb/initiateClient.js +2 -2
  431. package/dist/esm/shared/thirdweb/openapi-ts.config.js +1 -1
  432. package/dist/esm/shared/utils/b3Ens.js +4 -4
  433. package/dist/esm/shared/utils/chain-transformers.js +9 -9
  434. package/dist/esm/shared/utils/fetchBalances.js +4 -4
  435. package/dist/esm/shared/utils/index.d.ts +0 -9
  436. package/dist/esm/shared/utils/index.js +0 -15
  437. package/dist/esm/shared/utils/insights.js +28 -28
  438. package/dist/esm/shared/utils/ipfs.js +1 -1
  439. package/dist/esm/shared/utils/number.js +3 -3
  440. package/dist/esm/shared/utils/simplehash.js +23 -23
  441. package/dist/esm/shared/utils/thirdweb-insights.js +15 -15
  442. package/dist/styles/index.css +1 -1
  443. package/dist/types/anyspend/index.d.ts +2 -4
  444. package/dist/types/anyspend/react/components/AnySpend.d.ts +1 -1
  445. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  446. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  447. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  448. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  449. package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  450. package/dist/types/anyspend/react/components/common/OrderToken.d.ts +1 -1
  451. package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  452. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  453. package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  454. package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  455. package/dist/types/anyspend/react/components/index.d.ts +0 -2
  456. package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  457. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  458. package/dist/types/anyspend/react/hooks/index.d.ts +2 -1
  459. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  460. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  461. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  462. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  463. package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  464. package/dist/types/anyspend/react/hooks/usePermitData.d.ts +92 -0
  465. package/dist/types/anyspend/services/anyspend.d.ts +40 -9
  466. package/dist/types/anyspend/types/index.d.ts +1 -1
  467. package/dist/types/anyspend/types/nft.d.ts +0 -7
  468. package/dist/types/anyspend/types/onramp.d.ts +0 -3
  469. package/dist/types/anyspend/types/order.d.ts +200 -40
  470. package/dist/types/anyspend/types/permit.d.ts +21 -0
  471. package/dist/types/anyspend/types/req-res/createOrder.d.ts +235 -98
  472. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  473. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  474. package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -37
  475. package/dist/types/anyspend/types/req-res/index.d.ts +1 -0
  476. package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  477. package/dist/types/anyspend/utils/orderPayload.d.ts +3 -3
  478. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  479. package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  480. package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  481. package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  482. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  483. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  484. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  485. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  486. package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  487. package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  488. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  489. package/dist/types/global-account/react/components/index.d.ts +4 -4
  490. package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  491. package/dist/types/global-account/react/components/ui/Tabs.d.ts +1 -1
  492. package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
  493. package/dist/types/global-account/react/components/ui/dialog.d.ts +1 -1
  494. package/dist/types/global-account/react/components/ui/drawer.d.ts +1 -1
  495. package/dist/types/global-account/react/components/ui/text-loop.d.ts +1 -1
  496. package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  497. package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  498. package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  499. package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  500. package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  501. package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  502. package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  503. package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  504. package/dist/types/global-account/react/stores/index.d.ts +1 -1
  505. package/dist/types/global-account/react/stores/useModalStore.d.ts +1 -18
  506. package/dist/types/shared/constants/index.d.ts +0 -1
  507. package/dist/types/shared/utils/index.d.ts +0 -9
  508. package/package.json +4 -17
  509. package/src/anyspend/abis/abi-usdc-base.ts +97 -97
  510. package/src/anyspend/abis/erc20-staking.ts +51 -51
  511. package/src/anyspend/constants/index.ts +11 -13
  512. package/src/anyspend/index.ts +6 -4
  513. package/src/anyspend/react/components/AnySpend.tsx +39 -44
  514. package/src/anyspend/react/components/AnySpendBuySpin.tsx +41 -46
  515. package/src/anyspend/react/components/AnySpendCustom.tsx +89 -214
  516. package/src/anyspend/react/components/AnySpendNFT.tsx +6 -11
  517. package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
  518. package/src/anyspend/react/components/AnySpendStakeB3.tsx +22 -23
  519. package/src/anyspend/react/components/AnySpendTournament.tsx +4 -7
  520. package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
  521. package/src/anyspend/react/components/common/OrderDetails.tsx +76 -74
  522. package/src/anyspend/react/components/common/OrderHistory.tsx +1 -1
  523. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +3 -3
  524. package/src/anyspend/react/components/common/OrderToken.tsx +5 -5
  525. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -4
  526. package/src/anyspend/react/components/common/PanelOnramp.tsx +4 -4
  527. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +17 -9
  528. package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +1 -1
  529. package/src/anyspend/react/components/common/PaymentOneClick.tsx +3 -3
  530. package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +15 -16
  531. package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
  532. package/src/anyspend/react/components/index.ts +0 -2
  533. package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +2 -2
  534. package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +1 -0
  535. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +20 -18
  536. package/src/anyspend/react/hooks/index.ts +2 -1
  537. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +20 -10
  538. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +8 -9
  539. package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +3 -3
  540. package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +4 -4
  541. package/src/anyspend/react/hooks/useAnyspendQuote.ts +6 -6
  542. package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +38 -0
  543. package/src/anyspend/react/hooks/useAnyspendTokens.ts +4 -4
  544. package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -3
  545. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +3 -3
  546. package/src/anyspend/react/hooks/useGetGeo.ts +1 -1
  547. package/src/anyspend/react/hooks/usePermitData.ts +183 -0
  548. package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
  549. package/src/anyspend/react/hooks/useStripeSupport.ts +3 -3
  550. package/src/anyspend/react/providers/AnyspendProvider.tsx +4 -9
  551. package/src/anyspend/services/anyspend.ts +39 -21
  552. package/src/anyspend/types/chain.ts +1 -1
  553. package/src/anyspend/types/custom.ts +2 -2
  554. package/src/anyspend/types/globalWallet.ts +1 -1
  555. package/src/anyspend/types/index.ts +1 -1
  556. package/src/anyspend/types/nft.ts +7 -10
  557. package/src/anyspend/types/onramp.ts +2 -3
  558. package/src/anyspend/types/order.ts +16 -9
  559. package/src/anyspend/types/permit.ts +10 -0
  560. package/src/anyspend/types/relay.ts +1 -1
  561. package/src/anyspend/types/req-res/createOrder.ts +9 -9
  562. package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +5 -5
  563. package/src/anyspend/types/req-res/getOrderAndTransactions.ts +4 -4
  564. package/src/anyspend/types/req-res/getOrderByCreator.ts +2 -2
  565. package/src/anyspend/types/req-res/getOrderHistory.ts +1 -1
  566. package/src/anyspend/types/req-res/getQuote.ts +9 -14
  567. package/src/anyspend/types/req-res/getTokenList.ts +4 -4
  568. package/src/anyspend/types/req-res/index.ts +1 -0
  569. package/src/anyspend/types/req-res/sendPermitData.ts +10 -0
  570. package/src/anyspend/types/swap.ts +2 -2
  571. package/src/anyspend/types/token.ts +2 -2
  572. package/src/anyspend/types/tournament.ts +4 -4
  573. package/src/anyspend/types/transaction.ts +4 -4
  574. package/src/anyspend/utils/chain.ts +25 -25
  575. package/src/anyspend/utils/format.ts +7 -2
  576. package/src/anyspend/utils/orderPayload.ts +9 -21
  577. package/src/anyspend/utils/token.ts +10 -10
  578. package/src/global-account/app.native.ts +5 -5
  579. package/src/global-account/app.ts +5 -5
  580. package/src/global-account/bsmnt.native.ts +5 -5
  581. package/src/global-account/bsmnt.ts +5 -5
  582. package/src/global-account/react/components/B3DynamicModal.tsx +6 -15
  583. package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
  584. package/src/global-account/react/components/B3Provider/B3Provider.tsx +20 -22
  585. package/src/global-account/react/components/B3Provider/types.ts +1 -1
  586. package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +6 -6
  587. package/src/global-account/react/components/MintButton/MintButton.tsx +5 -5
  588. package/src/global-account/react/components/RelayKitProviderWrapper.tsx +2 -2
  589. package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +7 -7
  590. package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +2 -2
  591. package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +28 -16
  592. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +14 -14
  593. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +2 -2
  594. package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +1 -1
  595. package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +1 -1
  596. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +10 -10
  597. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +3 -3
  598. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -2
  599. package/src/global-account/react/components/StyleRoot.tsx +1 -0
  600. package/src/global-account/react/components/Transak/TransakModal.tsx +4 -4
  601. package/src/global-account/react/components/custom/Button.tsx +7 -7
  602. package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +3 -3
  603. package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +1 -1
  604. package/src/global-account/react/components/index.ts +4 -4
  605. package/src/global-account/react/components/magicui/AnimatedLottie.tsx +5 -5
  606. package/src/global-account/react/components/ui/Loading.tsx +2 -2
  607. package/src/global-account/react/components/ui/ShinyButton.tsx +5 -5
  608. package/src/global-account/react/components/ui/TabSystem.tsx +2 -2
  609. package/src/global-account/react/components/ui/Tabs.tsx +4 -4
  610. package/src/global-account/react/components/ui/badge.tsx +5 -5
  611. package/src/global-account/react/components/ui/button.tsx +7 -7
  612. package/src/global-account/react/components/ui/command.tsx +5 -5
  613. package/src/global-account/react/components/ui/dialog.tsx +5 -5
  614. package/src/global-account/react/components/ui/drawer.tsx +2 -2
  615. package/src/global-account/react/components/ui/glare-card-rounded.tsx +12 -12
  616. package/src/global-account/react/components/ui/glare-card.tsx +11 -11
  617. package/src/global-account/react/components/ui/input.tsx +2 -2
  618. package/src/global-account/react/components/ui/popover.tsx +1 -1
  619. package/src/global-account/react/components/ui/scroll-area.tsx +1 -1
  620. package/src/global-account/react/components/ui/text-loop.tsx +2 -2
  621. package/src/global-account/react/components/ui/text-shimmer.tsx +3 -3
  622. package/src/global-account/react/components/ui/tooltip.tsx +2 -2
  623. package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
  624. package/src/global-account/react/hooks/useAccountWallet.tsx +9 -9
  625. package/src/global-account/react/hooks/useAddTWSessionKey.tsx +7 -7
  626. package/src/global-account/react/hooks/useAuthentication.ts +3 -3
  627. package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +9 -9
  628. package/src/global-account/react/hooks/useB3EnsName.ts +31 -43
  629. package/src/global-account/react/hooks/useBestTransactionPath.tsx +11 -11
  630. package/src/global-account/react/hooks/useBsmntProfile.ts +1 -1
  631. package/src/global-account/react/hooks/useChainSwitchWithAction.ts +4 -4
  632. package/src/global-account/react/hooks/useClaim.tsx +5 -5
  633. package/src/global-account/react/hooks/useConnect.tsx +4 -4
  634. package/src/global-account/react/hooks/useExchangeRate.tsx +3 -3
  635. package/src/global-account/react/hooks/useGetAllTWSigners.tsx +9 -9
  636. package/src/global-account/react/hooks/useGetGeo.tsx +1 -1
  637. package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +2 -2
  638. package/src/global-account/react/hooks/useMediaQuery.tsx +1 -1
  639. package/src/global-account/react/hooks/useNativeBalance.tsx +7 -7
  640. package/src/global-account/react/hooks/useOnchainName.tsx +11 -11
  641. package/src/global-account/react/hooks/useOneBalance.tsx +2 -2
  642. package/src/global-account/react/hooks/useQueryB3.ts +2 -2
  643. package/src/global-account/react/hooks/useQueryBSMNT.ts +2 -2
  644. package/src/global-account/react/hooks/useRemoveSessionKey.tsx +5 -5
  645. package/src/global-account/react/hooks/useRouter.tsx +6 -6
  646. package/src/global-account/react/hooks/useSiwe.tsx +4 -4
  647. package/src/global-account/react/hooks/useTokenBalance.tsx +6 -6
  648. package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +10 -10
  649. package/src/global-account/react/hooks/useTokenData.ts +3 -3
  650. package/src/global-account/react/hooks/useTokenFromUrl.tsx +14 -14
  651. package/src/global-account/react/hooks/useTokenPrice.tsx +7 -7
  652. package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +7 -7
  653. package/src/global-account/react/hooks/useTokensFromAddress.ts +2 -2
  654. package/src/global-account/react/hooks/useURLParams.ts +2 -2
  655. package/src/global-account/react/stores/index.ts +1 -1
  656. package/src/global-account/react/stores/useAuthStore.ts +3 -3
  657. package/src/global-account/react/stores/useModalStore.ts +4 -23
  658. package/src/global-account/server.ts +3 -3
  659. package/src/global-account/types/chain-networks.ts +10 -10
  660. package/src/global-account/types/feature-flags.ts +2 -2
  661. package/src/shared/constants/chains/b3Chain.ts +35 -35
  662. package/src/shared/constants/chains/chainPlatformMap.ts +1 -1
  663. package/src/shared/constants/chains/supported.ts +1 -1
  664. package/src/shared/constants/index.ts +1 -3
  665. package/src/shared/thirdweb/initiateClient.ts +2 -2
  666. package/src/shared/thirdweb/openapi-ts.config.ts +1 -1
  667. package/src/shared/utils/b3Ens.ts +4 -4
  668. package/src/shared/utils/chain-transformers.ts +9 -9
  669. package/src/shared/utils/fetchBalances.ts +5 -5
  670. package/src/shared/utils/fetchBsmntProfile.ts +1 -1
  671. package/src/shared/utils/index.ts +0 -16
  672. package/src/shared/utils/insights.ts +31 -31
  673. package/src/shared/utils/ipfs.ts +1 -1
  674. package/src/shared/utils/number.ts +5 -5
  675. package/src/shared/utils/simplehash.ts +28 -28
  676. package/src/shared/utils/thirdweb-insights.ts +20 -20
  677. package/src/styles/index.css +2 -5
  678. package/dist/cjs/anyspend/abis/signature-minting.d.ts +0 -79
  679. package/dist/cjs/anyspend/abis/signature-minting.js +0 -45
  680. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  681. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +0 -77
  682. package/dist/cjs/anyspend/react/components/common/Warning.d.ts +0 -3
  683. package/dist/cjs/anyspend/react/components/common/Warning.js +0 -7
  684. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +0 -140
  685. package/dist/cjs/anyspend/react/hooks/useSigMint.js +0 -39
  686. package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
  687. package/dist/cjs/anyspend/types/metadata.js +0 -16
  688. package/dist/cjs/anyspend/types/signature-mint.d.ts +0 -69
  689. package/dist/cjs/anyspend/types/signature-mint.js +0 -2
  690. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  691. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +0 -50
  692. package/dist/cjs/global-account/react/components/custom/Icon.d.ts +0 -7
  693. package/dist/cjs/global-account/react/components/custom/Icon.js +0 -52
  694. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  695. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +0 -20
  696. package/dist/cjs/shared/react/hooks/index.d.ts +0 -1
  697. package/dist/cjs/shared/react/hooks/index.js +0 -17
  698. package/dist/cjs/shared/react/hooks/useNavigation.d.ts +0 -17
  699. package/dist/cjs/shared/react/hooks/useNavigation.js +0 -57
  700. package/dist/cjs/shared/react/index.d.ts +0 -1
  701. package/dist/cjs/shared/react/index.js +0 -17
  702. package/dist/esm/anyspend/abis/signature-minting.d.ts +0 -79
  703. package/dist/esm/anyspend/abis/signature-minting.js +0 -42
  704. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  705. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +0 -71
  706. package/dist/esm/anyspend/react/components/common/Warning.d.ts +0 -3
  707. package/dist/esm/anyspend/react/components/common/Warning.js +0 -4
  708. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +0 -140
  709. package/dist/esm/anyspend/react/hooks/useSigMint.js +0 -33
  710. package/dist/esm/anyspend/types/metadata.d.ts +0 -26
  711. package/dist/esm/anyspend/types/metadata.js +0 -11
  712. package/dist/esm/anyspend/types/signature-mint.d.ts +0 -69
  713. package/dist/esm/anyspend/types/signature-mint.js +0 -1
  714. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  715. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +0 -44
  716. package/dist/esm/global-account/react/components/custom/Icon.d.ts +0 -7
  717. package/dist/esm/global-account/react/components/custom/Icon.js +0 -50
  718. package/dist/esm/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  719. package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +0 -17
  720. package/dist/esm/shared/react/hooks/index.d.ts +0 -1
  721. package/dist/esm/shared/react/hooks/index.js +0 -1
  722. package/dist/esm/shared/react/hooks/useNavigation.d.ts +0 -17
  723. package/dist/esm/shared/react/hooks/useNavigation.js +0 -52
  724. package/dist/esm/shared/react/index.d.ts +0 -1
  725. package/dist/esm/shared/react/index.js +0 -1
  726. package/dist/types/anyspend/abis/signature-minting.d.ts +0 -79
  727. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  728. package/dist/types/anyspend/react/components/common/Warning.d.ts +0 -3
  729. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +0 -140
  730. package/dist/types/anyspend/types/metadata.d.ts +0 -26
  731. package/dist/types/anyspend/types/signature-mint.d.ts +0 -69
  732. package/dist/types/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  733. package/dist/types/global-account/react/components/custom/Icon.d.ts +0 -7
  734. package/dist/types/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  735. package/dist/types/shared/react/hooks/index.d.ts +0 -1
  736. package/dist/types/shared/react/hooks/useNavigation.d.ts +0 -17
  737. package/dist/types/shared/react/index.d.ts +0 -1
  738. package/src/anyspend/abis/signature-minting.ts +0 -43
  739. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +0 -147
  740. package/src/anyspend/react/components/common/Warning.tsx +0 -7
  741. package/src/anyspend/react/hooks/useSigMint.tsx +0 -55
  742. package/src/anyspend/types/metadata.ts +0 -41
  743. package/src/anyspend/types/signature-mint.ts +0 -77
  744. package/src/global-account/react/components/SignInWithB3/SignIn.tsx +0 -190
  745. package/src/global-account/react/components/custom/Icon.tsx +0 -102
  746. package/src/global-account/react/components/custom/ManageAccountButton.tsx +0 -33
  747. package/src/shared/react/hooks/index.ts +0 -1
  748. package/src/shared/react/hooks/useNavigation.ts +0 -61
  749. package/src/shared/react/index.ts +0 -1
@@ -1,4 +1,4 @@
1
- export declare function ChainTokenIcon({ chainUrl, tokenUrl, className, }: {
1
+ export declare function ChainTokenIcon({ chainUrl, tokenUrl, className }: {
2
2
  chainUrl: string;
3
3
  tokenUrl: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function ChainTokenIcon({ chainUrl, tokenUrl, className = "", }) {
2
+ export function ChainTokenIcon({ chainUrl, tokenUrl, className = "" }) {
3
3
  return (_jsxs("div", { className: `relative ${className}`, children: [_jsx("img", { src: tokenUrl, alt: "Token", className: "h-full w-full rounded-full" }), _jsx("div", { className: "bg-as-on-surface-1 border-as-stroke absolute bottom-0 right-0 h-[45%] w-[45%] rounded border", children: _jsx("img", { src: chainUrl, alt: "Chain", className: "h-full w-full rounded" }) })] }));
4
4
  }
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { ALL_CHAINS, capitalizeFirstLetter, EVM_CHAINS, getChainName, getErrorDisplay, getExplorerTxUrl, getPaymentUrl, getStatusDisplay, isNativeToken, OnrampVendor, OrderStatus, OrderType, RELAY_ETH_ADDRESS, zNft, zToken, zTournament, } from "../../../../anyspend/index.js";
4
- import { Badge, Button, CopyToClipboard, ShinyButton, Skeleton, TextLoop, TextShimmer, useAccountWallet, useChainSwitchWithAction, useModalStore, useOnchainName, } from "../../../../global-account/react/index.js";
5
- import { useRouter, useSearchParams } from "../../../../shared/react/hooks/index.js";
3
+ import { ALL_CHAINS, capitalizeFirstLetter, EVM_CHAINS, getChainName, getErrorDisplay, getExplorerTxUrl, getPaymentUrl, getStatusDisplay, isNativeToken, OrderStatus, OrderType, RELAY_ETH_ADDRESS, zNft, zToken, zTournament } from "../../../../anyspend/index.js";
4
+ import { CopyToClipboard, Badge, ShinyButton, Skeleton, TextLoop, TextShimmer, Button, useAccountWallet, useChainSwitchWithAction, useOnchainName, useModalStore } from "../../../../global-account/react/index.js";
6
5
  import { cn } from "../../../../shared/utils/index.js";
7
6
  import centerTruncate from "../../../../shared/utils/centerTruncate.js";
8
7
  import { formatTokenAmount } from "../../../../shared/utils/number.js";
9
8
  import { useColorMode } from "@chakra-ui/react";
10
9
  import { WalletCoinbase, WalletMetamask, WalletPhantom, WalletTrust, WalletWalletConnect } from "@web3icons/react";
11
10
  import { motion } from "framer-motion";
12
- import { CheckIcon, ChevronDown, ChevronRight, Copy, ExternalLink, Home, Loader2, RefreshCcw, SquareArrowOutUpRight, } from "lucide-react";
11
+ import { CheckIcon, ChevronDown, ChevronRight, Copy, ExternalLink, Home, Loader2, RefreshCcw, SquareArrowOutUpRight } from "lucide-react";
12
+ import { useRouter, useSearchParams } from "next/navigation";
13
13
  import { QRCodeSVG } from "qrcode.react";
14
14
  import { memo, useCallback, useEffect, useMemo, useState } from "react";
15
15
  import TimeAgo from "react-timeago";
@@ -19,7 +19,7 @@ import { b3 } from "viem/chains";
19
19
  import { useWaitForTransactionReceipt, useWalletClient } from "wagmi";
20
20
  import PaymentVendorUI from "./PaymentVendorUI.js";
21
21
  // Add this helper function near the top or just above the component
22
- function getOrderSuccessText({ order, tournament, formattedActualDstAmount, dstToken, recipientName, centerTruncate, }) {
22
+ function getOrderSuccessText({ order, tournament, formattedActualDstAmount, dstToken, recipientName, centerTruncate }) {
23
23
  const recipient = recipientName || centerTruncate(order.recipientAddress, 8);
24
24
  let actionText = "";
25
25
  switch (order.type) {
@@ -114,7 +114,7 @@ function roundTokenAmount(amount) {
114
114
  const roundedDecimalPart = digits.join("");
115
115
  return `${wholePart}.${roundedDecimalPart}`;
116
116
  }
117
- export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "modal", order, depositTxs, relayTx, executeTx, refundTxs, onBack, }) {
117
+ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "modal", order, depositTxs, relayTx, executeTx, refundTxs, onBack }) {
118
118
  const router = useRouter();
119
119
  const searchParams = useSearchParams();
120
120
  const setB3ModalOpen = useModalStore(state => state.setB3ModalOpen);
@@ -131,6 +131,21 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
131
131
  const [showQRCode, setShowQRCode] = useState(false);
132
132
  const { isLoading: txLoading, isSuccess: txSuccess } = useWaitForTransactionReceipt({ hash: txHash });
133
133
  const { switchChainAndExecute, isSwitchingOrExecuting } = useChainSwitchWithAction();
134
+ // const { permitData, isCheckingPermit } = usePermitData({
135
+ // chainId: order.srcChain,
136
+ // tokenAddress: order.srcTokenAddress as Hex,
137
+ // ownerAddress: account?.address && isAddress(account.address) ? getAddress(account.address) : undefined,
138
+ // amount: BigInt(order.srcAmount)
139
+ // });
140
+ // const { sendPermitData } = useAnyspendSendPermitData({
141
+ // onSuccess: _data => {
142
+ // toast.info("Sent permit data successfully");
143
+ // },
144
+ // onError: error => {
145
+ // console.error(error);
146
+ // toast.error("Failed to send permit data: " + error.message);
147
+ // }
148
+ // });
134
149
  const { colorMode } = useColorMode();
135
150
  const roundedUpSrcAmount = useMemo(() => {
136
151
  // Display the full transfer amount without rounding since users need to see the exact value they're transferring.
@@ -147,6 +162,31 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
147
162
  return;
148
163
  }
149
164
  console.log("Processing transaction on chain:", currentWalletClient.chain.id);
165
+ // Process transaction
166
+ // if (permitData?.data && account.address) {
167
+ // const signature = await currentWalletClient.signTypedData({
168
+ // domain: permitData.data.domain,
169
+ // types: permitData.data.types,
170
+ // primaryType: "Permit",
171
+ // message: permitData.data.messageToSign
172
+ // });
173
+ // // Split signature into v, r, s components
174
+ // const r = signature.slice(0, 66);
175
+ // const s = "0x" + signature.slice(66, 130);
176
+ // const v = parseInt(signature.slice(130, 132), 16);
177
+ // sendPermitData({
178
+ // isMainnet: true,
179
+ // orderId: order.id,
180
+ // permitData: {
181
+ // deadline: Number(permitData.data.messageToSign.deadline),
182
+ // ownerAddress: account.address,
183
+ // r,
184
+ // s,
185
+ // v
186
+ // }
187
+ // });
188
+ // return;
189
+ // }
150
190
  const signer = currentWalletClient.account;
151
191
  // Send transaction
152
192
  if (isNativeToken(order.srcTokenAddress)) {
@@ -154,7 +194,7 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
154
194
  account: signer,
155
195
  chain: EVM_CHAINS[order.srcChain].viem,
156
196
  to: order.globalAddress,
157
- value: BigInt(order.srcAmount),
197
+ value: BigInt(order.srcAmount)
158
198
  });
159
199
  setTxHash(hash);
160
200
  }
@@ -165,7 +205,7 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
165
205
  address: order.srcTokenAddress,
166
206
  abi: erc20Abi,
167
207
  functionName: "transfer",
168
- args: [order.globalAddress, BigInt(order.srcAmount)],
208
+ args: [order.globalAddress, BigInt(order.srcAmount)]
169
209
  });
170
210
  setTxHash(hash);
171
211
  }
@@ -177,29 +217,10 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
177
217
  };
178
218
  // When waitingForDeposit is true, we show a message to the user to wait for the deposit to be processed.
179
219
  const setWaitingForDeposit = useCallback(() => {
180
- const params = new URLSearchParams(searchParams.toString());
220
+ const params = new URLSearchParams(searchParams);
181
221
  params.set("waitingForDeposit", "true");
182
222
  router.push(`?${params}`);
183
223
  }, [router, searchParams]);
184
- // Clean up URL parameters before closing modal or navigating back
185
- const cleanupUrlParams = useCallback(() => {
186
- const params = new URLSearchParams(searchParams.toString());
187
- params.delete("waitingForDeposit");
188
- params.delete("orderId");
189
- // Only update URL if params were actually removed
190
- if (params.toString() !== searchParams.toString()) {
191
- router.push(`?${params}`);
192
- }
193
- }, [router, searchParams]);
194
- // Helper functions that clean up URL params before executing actions
195
- const handleCloseModal = useCallback(() => {
196
- cleanupUrlParams();
197
- setB3ModalOpen(false);
198
- }, [cleanupUrlParams, setB3ModalOpen]);
199
- const handleBack = useCallback(() => {
200
- cleanupUrlParams();
201
- onBack?.();
202
- }, [cleanupUrlParams, onBack]);
203
224
  useEffect(() => {
204
225
  if (txSuccess) {
205
226
  toast.success("Transaction successful! We are processing your order.", { duration: 10000 });
@@ -247,18 +268,14 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
247
268
  };
248
269
  if (refundTxs) {
249
270
  return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
250
- ? depositTxs.map(dTx => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === OnrampVendor.StripeWeb2
251
- ? `Received payment`
252
- : `Received ${formatTokenAmount(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTx, isProcessing: false }, dTx.txHash)))
271
+ ? depositTxs.map(dTx => (_jsx(TransactionDetails, { title: `Received ${formatTokenAmount(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTx, isProcessing: false }, dTx.txHash)))
253
272
  : null, refundTxs
254
273
  ? refundTxs.map(rTx => (_jsx(TransactionDetails, { title: `Refunded ${formatTokenAmount(BigInt(rTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: rTx, isProcessing: false }, rTx.txHash)))
255
- : null] }), order.errorDetails && (_jsx("div", { className: "flex justify-center", children: _jsx("span", { className: "text-as-primary/50 text-center text-sm", style: { maxWidth: "40ch" }, children: getErrorDisplay(order.errorDetails) }) })), _jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? handleBack : handleCloseModal, children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") })] }));
274
+ : null] }), order.errorDetails && (_jsx("div", { className: "flex justify-center", children: _jsx("span", { className: "text-as-primary/50 text-center text-sm", style: { maxWidth: "40ch" }, children: getErrorDisplay(order.errorDetails) }) })), _jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? onBack : () => setB3ModalOpen(false), children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") })] }));
256
275
  }
257
276
  if (executeTx) {
258
277
  return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
259
- ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === OnrampVendor.StripeWeb2
260
- ? `Received payment`
261
- : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
278
+ ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
262
279
  : null, _jsx(TransactionDetails, { title: "Processed Transaction", chainId: order.srcChain, tx: relayTx, delay: 0.5, isProcessing: false }), _jsx(TransactionDetails, { title: order.type === OrderType.Swap
263
280
  ? "Processed Swap"
264
281
  : order.type === OrderType.MintNFT
@@ -273,14 +290,12 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
273
290
  formattedActualDstAmount: formattedActualDstAmount,
274
291
  dstToken,
275
292
  recipientName,
276
- centerTruncate,
277
- }), _jsx(ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === OrderType.JoinTournament && order.status === OrderStatus.Executed && (_jsxs(ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: handleCloseModal, children: [_jsx("span", { className: "pl-4", children: "Continue to Tournament" }), _jsx(ChevronRight, { className: "h-4 w-4" })] })), order.status === OrderStatus.Executed && (_jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? handleBack : handleCloseModal, children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
293
+ centerTruncate
294
+ }), _jsx(ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === OrderType.JoinTournament && order.status === OrderStatus.Executed && (_jsxs(ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: () => setB3ModalOpen(false), children: [_jsx("span", { className: "pl-4", children: "Continue to Tournament" }), _jsx(ChevronRight, { className: "h-4 w-4" })] })), order.status === OrderStatus.Executed && (_jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? onBack : () => setB3ModalOpen(false), children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
278
295
  }
279
296
  if (relayTx && relayTx.status === "success") {
280
297
  return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [_jsx("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1.5, ease: "easeInOut" } }) }), depositTxs
281
- ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === OnrampVendor.StripeWeb2
282
- ? `Received payment`
283
- : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
298
+ ? depositTxs.map(dTxs => (_jsx(TransactionDetails, { title: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
284
299
  : null, order.srcChain === order.dstChain ? (_jsx(TransactionDetails, { title: order.type === OrderType.Swap
285
300
  ? "Processed Swap"
286
301
  : order.type === OrderType.MintNFT
@@ -303,15 +318,13 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
303
318
  formattedActualDstAmount,
304
319
  dstToken,
305
320
  recipientName,
306
- centerTruncate,
307
- }), _jsx(ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === OrderType.JoinTournament && order.status === OrderStatus.Executed && (_jsxs(ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: handleCloseModal, children: [_jsx("span", { className: "pl-4", children: "Continue to Tournament" }), _jsx(ChevronRight, { className: "h-4 w-4" })] })), order.status === OrderStatus.Executed && (_jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? handleBack : handleCloseModal, children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
321
+ centerTruncate
322
+ }), _jsx(ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === OrderType.JoinTournament && order.status === OrderStatus.Executed && (_jsxs(ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: () => setB3ModalOpen(false), children: [_jsx("span", { className: "pl-4", children: "Continue to Tournament" }), _jsx(ChevronRight, { className: "h-4 w-4" })] })), order.status === OrderStatus.Executed && (_jsx("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: mode === "page" ? onBack : () => setB3ModalOpen(false), children: mode === "page" ? (_jsxs(_Fragment, { children: ["Return to Home ", _jsx(Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
308
323
  }
309
324
  // This boolean indicates that user finish payment, and waiting for the deposit to be confirmed. We get this from query params (waitingForDeposit=true)
310
325
  const waitingForDeposit = new URLSearchParams(window.location.search).get("waitingForDeposit") === "true";
311
326
  if (depositTxs?.length || waitingForDeposit) {
312
- return (_jsx(_Fragment, { children: _jsxs("div", { className: "relative mt-4 flex w-full flex-col gap-6", children: [_jsx("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1, ease: "easeInOut" } }) }), (depositTxs || []).map((dTxs, index) => (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === OnrampVendor.StripeWeb2
313
- ? `Received payment`
314
- : `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: index < (depositTxs || []).length - 1 ? false : !depositEnoughAmount }, dTxs.txHash))), statusDisplay === "failure" ? (_jsx(TransactionDetails, { title: statusText, chainId: order.srcChain, tx: null, isProcessing: false, delay: 0.5 })) : depositEnoughAmount ? (_jsx(TransactionDetails, { title: order.type === OrderType.Swap
327
+ return (_jsx(_Fragment, { children: _jsxs("div", { className: "relative mt-4 flex w-full flex-col gap-6", children: [_jsx("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: _jsx(motion.div, { className: "from-as-brand/50 absolute left-[2px] top-0 z-10 w-[3px] bg-gradient-to-b from-20% via-purple-500/50 via-80% to-transparent", initial: { height: "0%" }, animate: { height: "100%" }, transition: { duration: 1, ease: "easeInOut" } }) }), (depositTxs || []).map((dTxs, index) => (_jsx(TransactionDetails, { title: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: index < (depositTxs || []).length - 1 ? false : !depositEnoughAmount }, dTxs.txHash))), statusDisplay === "failure" ? (_jsx(TransactionDetails, { title: statusText, chainId: order.srcChain, tx: null, isProcessing: false, delay: 0.5 })) : depositEnoughAmount ? (_jsx(TransactionDetails, { title: order.type === OrderType.Swap
315
328
  ? "Processing Swap"
316
329
  : order.type === OrderType.MintNFT
317
330
  ? "Minting NFT"
@@ -319,9 +332,7 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
319
332
  ? "Joining Tournament"
320
333
  : order.type === OrderType.FundTournament
321
334
  ? "Funding Tournament"
322
- : "Processing Transaction", chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 })) : (_jsx(TransactionDetails, { title: order.onrampMetadata?.vendor === OnrampVendor.StripeWeb2
323
- ? `Waiting for payment`
324
- : `Waiting for deposit ${formattedDepositDeficit} ${srcToken.symbol}`, chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 }))] }) }));
335
+ : "Processing Transaction", chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 })) : (_jsx(TransactionDetails, { title: `Waiting for deposit ${formattedDepositDeficit} ${srcToken.symbol}`, chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 }))] }) }));
325
336
  }
326
337
  return (_jsxs(_Fragment, { children: [statusDisplay === "failure" && (_jsx("div", { className: "flex w-full flex-col items-center gap-3 whitespace-nowrap pb-2 text-sm", children: _jsx("div", { className: "bg-as-light-brand/20 flex w-full flex-col gap-4 rounded-lg p-8", children: _jsx("div", { className: "text-as-primary", style: { whiteSpace: "normal" }, children: "This order is no longer valid because the order expired." }) }) })), statusDisplay === "processing" && (_jsxs(_Fragment, { children: [order.onrampMetadata ? (_jsx(PaymentVendorUI, { isMainnet: isMainnet, order: order, dstTokenSymbol: dstToken.symbol })) : (_jsxs("div", { className: "relative flex w-full flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col gap-1", children: [_jsx("span", { className: "text-as-primary/50", children: "Please send" }), _jsxs("div", { className: "flex w-full flex-wrap items-center gap-6 sm:justify-between sm:gap-0", children: [_jsx(CopyToClipboard, { text: roundedUpSrcAmount, onCopy: () => {
327
338
  toast.success("Copied to clipboard");
@@ -335,7 +346,7 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
335
346
  .share({
336
347
  title: "Complete Deposit",
337
348
  text: "Complete your deposit on BSMNT.fun",
338
- url: permalink,
349
+ url: permalink
339
350
  })
340
351
  .catch(error => console.log("Error sharing:", error));
341
352
  }
@@ -354,11 +365,11 @@ export const OrderDetails = memo(function OrderDetails({ isMainnet, mode = "moda
354
365
  : "Contract execution"
355
366
  : "" }), _jsxs("div", { className: "flex items-end gap-2", children: [order.type === OrderType.Swap ? (`~${formattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === OrderType.MintNFT ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "h-5 w-5" }), _jsx("div", { children: nft?.name || "NFT" })] })) : order.type === OrderType.JoinTournament || order.type === OrderType.FundTournament ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "h-5 w-5" }), _jsx("div", { children: tournament?.name || "Tournament" })] })) : null, _jsxs("div", { className: "text-as-primary/50 flex items-center gap-2", children: [_jsxs("span", { children: ["on ", order.dstChain !== b3.id && getChainName(order.dstChain)] }), _jsx("img", { src: ALL_CHAINS[order.dstChain].logoUrl, alt: getChainName(order.dstChain), className: cn("h-3", order.dstChain !== b3.id && "w-3 rounded-full", order.dstChain === b3.id && "h-4") })] })] })] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex w-full justify-between gap-4", children: [_jsx("div", { className: "text-as-primary/30", children: "Order ID" }), _jsx("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: order.id })] }), _jsx("div", { className: "divider w-full" }), _jsxs("div", { className: "flex w-full justify-between gap-4", children: [_jsx("div", { className: "text-as-primary/30", children: "Recipient" }), _jsxs("div", { className: "flex flex-col items-end gap-1", children: [recipientName && _jsx("div", { className: "text-as-primary font-semibold", children: recipientName }), _jsx(CopyToClipboard, { text: order.recipientAddress, onCopy: () => {
356
367
  toast.success("Copied recipient address to clipboard");
357
- }, children: _jsxs("div", { className: "text-as-primary flex items-center gap-2", children: [centerTruncate(order.recipientAddress, 10), _jsx(Copy, { className: "text-as-primary/50 hover:text-as-primary h-4 w-4 cursor-pointer transition-all duration-200" })] }) })] })] })] }) })) : (_jsxs("div", { className: "flex w-full items-center", children: [_jsx("div", { className: "divider w-full" }), _jsx("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "divider w-full" })] })), _jsxs("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: handleBack, children: ["Cancel and start over ", _jsx(RefreshCcw, { className: "ml-2 h-4 w-4" })] })] }));
368
+ }, children: _jsxs("div", { className: "text-as-primary flex items-center gap-2", children: [centerTruncate(order.recipientAddress, 10), _jsx(Copy, { className: "text-as-primary/50 hover:text-as-primary h-4 w-4 cursor-pointer transition-all duration-200" })] }) })] })] })] }) })) : (_jsxs("div", { className: "flex w-full items-center", children: [_jsx("div", { className: "divider w-full" }), _jsx("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), _jsx(ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), _jsx("div", { className: "divider w-full" })] })), _jsxs("button", { className: "bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2", onClick: onBack, children: ["Cancel and start over ", _jsx(RefreshCcw, { className: "ml-2 h-4 w-4" })] })] }));
358
369
  });
359
- function TransactionDetails({ title, chainId, tx, isProcessing, delay, }) {
370
+ function TransactionDetails({ title, chainId, tx, isProcessing, delay }) {
360
371
  return (_jsxs("div", { className: "relative flex w-full flex-1 items-center justify-between gap-4", children: [_jsxs("div", { className: "flex grow items-center gap-4", children: [_jsx(motion.div, { className: "bg-b3-react-background relative h-10 w-10 rounded-full", children: isProcessing ? (_jsx(motion.div, { initial: { opacity: 0, scale: 0.3 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.5, ease: "easeInOut", delay }, className: "absolute z-10 m-2 flex h-6 w-6 items-center justify-center rounded-full bg-black/70 shadow-lg backdrop-blur-sm", children: _jsx(Loader2, { className: "text-as-primary h-4 w-4 animate-spin" }) })) : (_jsx(motion.div, { initial: { opacity: 0, scale: 0.3 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.5, ease: "easeOut", delay }, className: "bg-as-brand/70 absolute z-10 m-2 flex h-6 w-6 items-center justify-center rounded-full border border-white/30 shadow-lg shadow-purple-500/30 backdrop-blur-sm", style: {
361
- boxShadow: "0 0 15px 5px rgba(138, 43, 226, 0.2)",
372
+ boxShadow: "0 0 15px 5px rgba(138, 43, 226, 0.2)"
362
373
  }, children: _jsx(CheckIcon, { className: "text-as-primary h-3 w-3" }) })) }), _jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, ease: "easeInOut", delay }, className: "shrink-0 text-base", children: isProcessing ? (_jsx(TextShimmer, { duration: 1, children: title })) : (_jsx("span", { className: "text-as-primary", children: title })) })] }), _jsx("div", { className: "flex flex-col gap-1", children: tx ? (_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, ease: "easeInOut", delay: (delay || 0) + 0.3 }, className: "flex items-center gap-3", children: _jsx("a", { href: getExplorerTxUrl(chainId, tx.txHash), target: "_blank", children: _jsx("div", { className: "text-as-primary/30 font-mono text-xs", children: centerTruncate(tx?.txHash, 6) }) }) })) : null })] }));
363
374
  }
364
375
  export const OrderDetailsLoadingView = (_jsxs("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-4", children: [_jsxs(Badge, { variant: "default", className: "hover:bg-b3-react-background flex items-center gap-3 border-white/20 bg-white/10 px-4 py-1 text-base transition-colors", children: [_jsx(Loader2, { className: "text-as-primary h-4 w-4 animate-spin" }), _jsx(TextShimmer, { duration: 1, className: "font-sf-rounded text-base font-semibold", children: "Loading..." })] }), _jsxs("div", { className: "flex w-full flex-1 flex-col", children: [_jsxs("div", { className: "mb-4 flex flex-col gap-1", children: [_jsx(Skeleton, { className: "h-4 w-24" }), _jsxs("div", { className: "mt-2 flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-8 w-48" }), _jsx(Skeleton, { className: "ml-4 h-8 w-32" })] }), _jsx(Skeleton, { className: "mt-4 h-8 w-24" })] }), _jsx(Skeleton, { className: "mb-4 h-12 w-full" }), _jsxs("div", { className: "flex w-full items-center justify-between gap-4", children: [_jsxs(Skeleton, { className: "rounded-lg p-6 pb-3", children: [_jsx("div", { className: "h-[200px] w-[200px]" }), _jsx("div", { className: "mt-3 flex items-center justify-center gap-2", children: _jsx("div", { className: "h-5 w-5 rounded-full" }) })] }), _jsx("div", { className: "flex flex-1 flex-col gap-2", children: [1, 2, 3].map(i => (_jsx(Skeleton, { className: "h-10 w-full" }, i))) })] })] }), _jsxs("div", { className: "bg-b3-react-background mt-8 w-full rounded-lg p-4", children: [_jsx(Skeleton, { className: "mb-3 h-4 w-48" }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx(Skeleton, { className: "h-10 flex-1" }), _jsx(Skeleton, { className: "h-10 flex-1" })] })] }), _jsx(Skeleton, { className: "h-10 w-full" })] }));
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { useAnyspendOrderHistory } from "../../../../anyspend/react/index.js";
3
+ import { useAnyspendOrderHistory } from "../../../../anyspend/index.js";
4
4
  import { Button, Skeleton, useAccountWallet } from "../../../../global-account/react/index.js";
5
5
  import { ArrowLeft, RefreshCcw } from "lucide-react";
6
6
  import { OrderHistoryItem } from "./OrderHistoryItem.js";
@@ -1,5 +1,5 @@
1
1
  import { Token } from "../../../../anyspend";
2
- export declare function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName, }: {
2
+ export declare function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName }: {
3
3
  context: "from" | "to";
4
4
  address: string | undefined;
5
5
  token: Token;
@@ -9,13 +9,13 @@ import { TokenSelector } from "@reservoir0x/relay-kit-ui";
9
9
  import { CheckCircle2, ChevronsUpDown } from "lucide-react";
10
10
  import { useMemo } from "react";
11
11
  import { ChainTokenIcon } from "./ChainTokenIcon.js";
12
- export function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName, }) {
12
+ export function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName }) {
13
13
  const { wallet } = useAccountWallet();
14
14
  const chainName = useMemo(() => simpleHashChainToChainName(chainId), [chainId]);
15
15
  const { nativeTokens, fungibleTokens } = useTokenBalancesByChain({
16
16
  address: wallet?.address || "",
17
17
  chainsIds: [chainId],
18
- enabled: !!wallet?.address && !!chainName,
18
+ enabled: !!wallet?.address && !!chainName
19
19
  });
20
20
  const { formattedBalance, hasEnoughBalance } = useMemo(() => {
21
21
  // Get balance for the selected token
@@ -37,7 +37,7 @@ export function OrderToken({ context, address, chainId, setChainId, token, setTo
37
37
  const formattedBalance = balance ? formatTokenAmount(balance, token.decimals, 6, false) : null;
38
38
  return {
39
39
  formattedBalance,
40
- hasEnoughBalance,
40
+ hasEnoughBalance
41
41
  };
42
42
  }, [chainId, fungibleTokens, nativeTokens, requiredAmount, token, wallet?.address]);
43
43
  return (_jsx(TokenSelector, { address: address, chainIdsFilter: Object.values(ALL_CHAINS).map(chain => chain.id), context: context, fromChainWalletVMSupported: true, isValidAddress: true, lockedChainIds: Object.values(ALL_CHAINS).map(chain => chain.id), multiWalletSupportEnabled: true, onAnalyticEvent: undefined, popularChainIds: [1, 8453, RELAY_SOLANA_MAINNET_CHAIN_ID], restrictedToken: undefined, setToken: token => {
@@ -48,7 +48,7 @@ export function OrderToken({ context, address, chainId, setChainId, token, setTo
48
48
  decimals: token.decimals,
49
49
  metadata: { logoURI: token.logoURI },
50
50
  name: token.name,
51
- symbol: token.symbol,
51
+ symbol: token.symbol
52
52
  });
53
53
  }, supportedWalletVMs: ["evm", "svm"], token: undefined, trigger: _jsxs(Button, { variant: "outline", role: "combobox", className: cn("bg-b3-react-background border-as-stroke flex h-auto w-fit shrink-0 items-center justify-center gap-2 rounded-xl border-2 px-2 py-1 pr-2 text-center", tokenSelectClassName), children: [token.metadata.logoURI ? (_jsx(ChainTokenIcon, { chainUrl: ALL_CHAINS[chainId].logoUrl, tokenUrl: token.metadata.logoURI, className: "h-8 min-h-8 w-8 min-w-8" })) : (_jsx("div", { className: "h-8 w-8 rounded-full bg-gray-700" })), _jsxs("div", { className: "flex flex-col items-start gap-0", children: [_jsxs("div", { className: "text-as-primary font-semibold", children: [token.symbol, " on ", ALL_CHAINS[chainId].name] }), formattedBalance && (_jsxs("div", { className: "flex items-center gap-1", children: [_jsxs("div", { className: "text-as-primary/50 text-xs", children: [formattedBalance || "--", " ", token.symbol] }), hasEnoughBalance && _jsx(CheckCircle2, { className: "text-as-brand -mt-0.5 h-4 w-4" })] }))] }), _jsx(ChevronsUpDown, { className: "h-4 w-4 shrink-0 opacity-70" })] }) }, undefined));
54
54
  }
@@ -1,5 +1,5 @@
1
1
  import { Token } from "../../../../anyspend";
2
- export declare function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect, canEditAmount, className, innerClassName, amountClassName, tokenSelectClassName, }: {
2
+ export declare function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect, canEditAmount, className, innerClassName, amountClassName, tokenSelectClassName }: {
3
3
  disabled?: boolean;
4
4
  inputValue: string;
5
5
  onChangeInput: (value: string) => void;
@@ -8,7 +8,7 @@ import { Button } from "../../../../global-account/react/index.js";
8
8
  import { cn } from "../../../../shared/utils/index.js";
9
9
  import { TokenSelector } from "@reservoir0x/relay-kit-ui";
10
10
  import { ChainTokenIcon } from "./ChainTokenIcon.js";
11
- export function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect = false, canEditAmount = true, className, innerClassName, amountClassName, tokenSelectClassName, }) {
11
+ export function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect = false, canEditAmount = true, className, innerClassName, amountClassName, tokenSelectClassName }) {
12
12
  // Track previous token to detect changes
13
13
  const prevTokenRef = useRef(token.address);
14
14
  useEffect(() => {
@@ -36,7 +36,7 @@ export function OrderTokenAmount({ disabled, inputValue, onChangeInput, context,
36
36
  decimals: newToken.decimals,
37
37
  metadata: { logoURI: newToken.logoURI },
38
38
  name: newToken.name,
39
- symbol: newToken.symbol,
39
+ symbol: newToken.symbol
40
40
  });
41
41
  // If this is the source token, reset the amount immediately
42
42
  if (context === "from") {
@@ -1,4 +1,4 @@
1
- export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, }: {
1
+ export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp }: {
2
2
  srcAmountOnRamp: string;
3
3
  setSrcAmountOnRamp: (amount: string) => void;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCoinbaseOnrampOptions } from "../../../../anyspend/react/index.js";
2
+ import { useCoinbaseOnrampOptions } from "../../../../anyspend/index.js";
3
3
  import { Input, useGetGeo } from "../../../../global-account/react/index.js";
4
4
  import { AnimatePresence, motion } from "framer-motion";
5
5
  import { useRef } from "react";
6
6
  import { toast } from "sonner";
7
7
  import { PaymentOptions } from "./PaymentOptions.js";
8
- export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, }) {
8
+ export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp }) {
9
9
  // Get geo data for onramp availability
10
10
  const { geoData } = useGetGeo();
11
11
  const { coinbaseOnrampOptions } = useCoinbaseOnrampOptions(true, geoData?.country || "US");
@@ -32,7 +32,7 @@ export function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, }) {
32
32
  : 25000) ? (_jsxs("p", { className: "label-style -mb-3 mt-3 text-xs text-red-400 dark:bg-transparent", children: ["Maximum amount is $", coinbaseOnrampOptions?.paymentCurrencies?.[0]?.limits?.find(l => l.id === "ACH_BANK_ACCOUNT")?.max ||
33
33
  "25,000"] })) : (_jsx("p", { className: "label-style text-b3-react-foreground/60 -mb-3 mt-3 text-xs dark:bg-transparent", children: "Buy amount in USD" })), _jsxs("div", { className: "relative inline-flex items-center dark:bg-transparent", children: [_jsx("span", { className: "text-b3-react-foreground/60 -ms-3 -mt-2 text-2xl font-semibold dark:bg-transparent", children: "$" }), _jsx(Input, { ref: amountInputRef, type: "text", value: srcAmountOnRamp, onChange: handleAmountChange, placeholder: "0.00", className: "placeholder:text-b3-react-foreground/60 h-auto min-w-[70px] border-0 bg-transparent py-6 text-center text-4xl font-semibold focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-transparent", style: {
34
34
  width: `${Math.max(50, srcAmountOnRamp.length * 34)}px`,
35
- minWidth: srcAmountOnRamp ? `auto` : "105px",
35
+ minWidth: srcAmountOnRamp ? `auto` : "105px"
36
36
  } }), _jsx(AnimatePresence, { mode: "wait", children: _jsx(motion.div, { animate: { opacity: !srcAmountOnRamp || parseFloat(srcAmountOnRamp) <= 0 ? 1 : 0 }, exit: { opacity: 0 }, transition: { duration: 0.5, ease: "easeInOut" }, className: "border-b3-react-foreground/10 absolute bottom-3 left-1 h-1 w-[90%] rounded-full border-t-2 border-dashed bg-transparent" }) })] })] }), _jsx("div", { className: "grid grid-cols-4 gap-4", children: ["5", "10", "25", "100"].map(value => (_jsxs("button", { onClick: () => handleQuickAmount(value), className: `rounded-lg border px-4 py-3 ${srcAmountOnRamp === value
37
37
  ? "border-as-brand bg-as-brand/30"
38
38
  : "border-as-stroke hover:border-as-brand hover:bg-as-brand/30"} transition-all duration-200`, children: ["$", value] }, value))) })] }));
@@ -25,5 +25,5 @@ interface PanelOnrampPaymentProps {
25
25
  recipientEnsName?: string;
26
26
  recipientImageUrl?: string;
27
27
  }
28
- export declare function PanelOnrampPayment({ srcAmountOnRamp, recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl, }: PanelOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function PanelOnrampPayment({ srcAmountOnRamp, recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl }: PanelOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
29
29
  export {};
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { OnrampVendor, OrderType } from "../../../../anyspend/index.js";
3
- import { useAnyspendCreateOnrampOrder, useGeoOnrampOptions } from "../../../../anyspend/react/index.js";
2
+ import { OnrampVendor, OrderType, useAnyspendCreateOnrampOrder, useGeoOnrampOptions } from "../../../../anyspend/index.js";
4
3
  import { Button } from "../../../../global-account/react/index.js";
5
4
  import centerTruncate from "../../../../shared/utils/centerTruncate.js";
6
5
  import { motion } from "framer-motion";
@@ -10,7 +9,7 @@ import { useEffect, useRef, useState } from "react";
10
9
  import { toast } from "sonner";
11
10
  export function PanelOnrampPayment({ srcAmountOnRamp,
12
11
  // recipientName,
13
- recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl, }) {
12
+ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl }) {
14
13
  // Use a stable amount for geo onramp options to prevent unnecessary refetches
15
14
  const [stableAmountForGeo, setStableAmountForGeo] = useState(srcAmountOnRamp);
16
15
  const hasInitialized = useRef(false);
@@ -21,7 +20,7 @@ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationToke
21
20
  hasInitialized.current = true;
22
21
  }
23
22
  }, [srcAmountOnRamp]);
24
- const { geoData, coinbaseOnrampOptions, coinbaseAvailablePaymentMethods, isStripeOnrampSupported, isStripeWeb2Supported, isLoading: isLoadingGeoOnramp, } = useGeoOnrampOptions(isMainnet, stableAmountForGeo);
23
+ const { geoData, coinbaseOnrampOptions, coinbaseAvailablePaymentMethods, isStripeOnrampSupported, isStripeWeb2Supported, isLoading: isLoadingGeoOnramp } = useGeoOnrampOptions(isMainnet, stableAmountForGeo);
25
24
  const { createOrder, isCreatingOrder } = useAnyspendCreateOnrampOrder({
26
25
  onSuccess: data => {
27
26
  const orderId = data.data.id;
@@ -30,7 +29,7 @@ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationToke
30
29
  onError: error => {
31
30
  console.error(error);
32
31
  toast.error("Failed to create order: " + error.message);
33
- },
32
+ }
34
33
  });
35
34
  const handlePaymentMethodClick = async (vendor, paymentMethod) => {
36
35
  try {
@@ -64,7 +63,7 @@ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationToke
64
63
  return {
65
64
  ...selectedDstToken,
66
65
  chainId: destinationTokenChainId || selectedDstChainId,
67
- address: destinationTokenAddress,
66
+ address: destinationTokenAddress
68
67
  };
69
68
  }
70
69
  return selectedDstToken;
@@ -81,13 +80,13 @@ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationToke
81
80
  paymentMethod: paymentMethod || "",
82
81
  country: geoData?.country || "US",
83
82
  ipAddress: geoData?.ip,
84
- redirectUrl: window.location.origin === "https://basement.fun" ? "https://basement.fun/deposit" : window.location.origin,
83
+ redirectUrl: window.location.origin === "https://basement.fun" ? "https://basement.fun/deposit" : window.location.origin
85
84
  },
86
85
  expectedDstAmount: anyspendQuote?.data?.currencyOut?.amount?.toString() || "0",
87
86
  creatorAddress: globalAddress,
88
87
  nft,
89
88
  tournament,
90
- payload,
89
+ payload
91
90
  });
92
91
  }
93
92
  catch (err) {
@@ -98,7 +97,7 @@ recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationToke
98
97
  return (_jsxs("div", { className: "mx-auto flex w-full max-w-[460px] flex-col gap-6", children: [_jsxs(_Fragment, { children: [_jsx("h2", { className: "-mb-3 text-lg font-semibold", children: "Order summary" }), _jsxs("div", { className: "bg-b3-react-background border-b3-react-border flex flex-col gap-3 rounded-lg border p-4", children: [recipientAddress && (_jsxs(motion.div, { initial: false, animate: {
99
98
  opacity: 1,
100
99
  y: 0,
101
- filter: "blur(0px)",
100
+ filter: "blur(0px)"
102
101
  }, transition: { duration: 0.3, delay: 0.2, ease: "easeInOut" }, className: "flex items-center justify-between", children: [_jsx("p", { className: "text-b3-react-foreground/60", children: orderType === OrderType.Swap
103
102
  ? "Recipient"
104
103
  : orderType === OrderType.MintNFT
@@ -6,7 +6,7 @@ export default function PaymentMethodIcons() {
6
6
  { name: "Mastercard", src: PAYMENT_METHOD_ICONS.mastercard },
7
7
  { name: "Amex", src: PAYMENT_METHOD_ICONS.amex },
8
8
  { name: "Apple Pay", src: PAYMENT_METHOD_ICONS.applePay },
9
- { name: "Google Pay", src: PAYMENT_METHOD_ICONS.googlePay },
9
+ { name: "Google Pay", src: PAYMENT_METHOD_ICONS.googlePay }
10
10
  ];
11
11
  return (_jsxs("div", { className: "mt-6 flex w-full flex-col items-center gap-3", children: [_jsx("div", { className: "text-as-primary/30 text-xs", children: "Supported payment methods" }), _jsx("div", { className: "flex items-center gap-3", children: paymentMethods.map(method => (_jsx("img", { src: method.src, alt: method.name, className: "h-6 opacity-70" }, method.name))) })] }));
12
12
  }
@@ -10,12 +10,12 @@ export default function PaymentOneClick({ order }) {
10
10
  const howItWorksSteps = [
11
11
  {
12
12
  number: 1,
13
- description: `Click the link above to pay with ${paymentDescription}`,
13
+ description: `Click the link above to pay with ${paymentDescription}`
14
14
  },
15
15
  {
16
16
  number: 2,
17
- description: `After payment, you'll be redirected back here, where we continue to execute the order.`,
18
- },
17
+ description: `After payment, you'll be redirected back here, where we continue to execute the order.`
18
+ }
19
19
  ];
20
20
  return (_jsxs("div", { className: "relative my-8 flex w-full flex-1 flex-col items-center justify-center", children: [_jsx("a", { href: order.oneClickBuyUrl || "", target: "_blank", className: "w-4/5", children: _jsx(ShinyButton, { accentColor: "hsl(var(--as-brand))", className: "relative w-full py-6", children: _jsxs("div", { className: "relative z-10 flex items-center justify-center gap-3", children: [_jsxs("span", { className: "text-lg font-medium text-white", children: ["Continue to ", vendorName] }), _jsx(ChevronRight, { className: "h-5 w-5 text-white/90" })] }) }) }), _jsx(HowItWorks, { steps: howItWorksSteps })] }));
21
21
  }
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { USDC_BASE } from "../../../../anyspend/index.js";
3
- import { useStripeClientSecret } from "../../../../anyspend/react/index.js";
2
+ import { USDC_BASE, useStripeClientSecret } from "../../../../anyspend/index.js";
4
3
  import { STRIPE_CONFIG } from "../../../../anyspend/constants/index.js";
5
4
  import { ShinyButton, useB3 } from "../../../../global-account/react/index.js";
6
5
  import { formatStripeAmount } from "../../../../shared/utils/payment.utils.js";
@@ -22,7 +21,7 @@ export default function PaymentStripeWeb2({ isMainnet, order, onPaymentSuccess }
22
21
  }
23
22
  return (_jsx(Elements, { stripe: stripePromise, options: {
24
23
  clientSecret: clientSecret || undefined,
25
- appearance: { theme: theme === "light" ? "stripe" : "night" },
24
+ appearance: { theme: theme === "light" ? "stripe" : "night" }
26
25
  }, children: _jsx(StripePaymentForm, { order: order, clientSecret: clientSecret, onPaymentSuccess: onPaymentSuccess }) }));
27
26
  }
28
27
  function StripeLoadingState() {
@@ -31,7 +30,7 @@ function StripeLoadingState() {
31
30
  function StripeErrorState({ error }) {
32
31
  return (_jsx("div", { className: "relative my-8 flex w-full flex-1 flex-col items-center justify-center", children: _jsxs("div", { className: "bg-as-red/10 border-as-red/20 flex w-full items-center gap-3 rounded-2xl border p-4", children: [_jsx("div", { className: "bg-as-red flex h-6 w-6 shrink-0 items-center justify-center rounded-full", children: _jsx("svg", { className: "h-4 w-4 text-white", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }) }), _jsxs("div", { className: "text-as-red text-sm font-medium", children: ["Error: ", error] })] }) }));
33
32
  }
34
- function StripePaymentForm({ order, clientSecret, onPaymentSuccess, }) {
33
+ function StripePaymentForm({ order, clientSecret, onPaymentSuccess }) {
35
34
  const stripe = useStripe();
36
35
  const elements = useElements();
37
36
  const [loading, setLoading] = useState(false);
@@ -74,7 +73,7 @@ function StripePaymentForm({ order, clientSecret, onPaymentSuccess, }) {
74
73
  console.log("@@stripe-web2-payment:confirming-payment:", JSON.stringify({ orderId: order.id }, null, 2));
75
74
  const { error, paymentIntent } = await stripe.confirmPayment({
76
75
  elements,
77
- redirect: "if_required",
76
+ redirect: "if_required"
78
77
  });
79
78
  if (error) {
80
79
  console.error("@@stripe-web2-payment:error:", JSON.stringify(error, null, 2));
@@ -108,30 +107,30 @@ function StripePaymentForm({ order, clientSecret, onPaymentSuccess, }) {
108
107
  defaultValues: {
109
108
  billingDetails: {
110
109
  name: "",
111
- email: "",
112
- },
110
+ email: ""
111
+ }
113
112
  },
114
113
  fields: {
115
- billingDetails: "auto",
114
+ billingDetails: "auto"
116
115
  },
117
116
  wallets: {
118
117
  applePay: "auto",
119
- googlePay: "auto",
120
- },
118
+ googlePay: "auto"
119
+ }
121
120
  };
122
121
  const howItWorksSteps = [
123
122
  {
124
123
  number: 1,
125
- description: "Enter your payment details securely using Stripe's encrypted form",
124
+ description: "Enter your payment details securely using Stripe's encrypted form"
126
125
  },
127
126
  {
128
127
  number: 2,
129
- description: "Your payment is processed instantly and securely through our payment partner",
128
+ description: "Your payment is processed instantly and securely through our payment partner"
130
129
  },
131
130
  {
132
131
  number: 3,
133
- description: "After payment confirmation, your order will be processed and completed automatically",
134
- },
132
+ description: "After payment confirmation, your order will be processed and completed automatically"
133
+ }
135
134
  ];
136
135
  return (_jsxs("div", { className: "relative my-8 flex w-full flex-1 flex-col items-center justify-center", children: [_jsxs("form", { onSubmit: handleSubmit, className: "w-full space-y-6", children: [_jsxs("div", { className: "bg-as-on-surface-1 w-full rounded-2xl p-6", children: [_jsxs("div", { className: "mb-4 flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-3", children: [_jsx("div", { className: "bg-as-brand/20 flex h-8 w-8 shrink-0 items-center justify-center rounded-full", children: _jsx("svg", { className: "text-as-brand h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" }) }) }), _jsxs("div", { children: [_jsx("div", { className: "text-as-primary text-sm font-medium", children: "Secured by Stripe" }), _jsx("div", { className: "text-as-primary/50 text-xs", children: "End-to-end encrypted payment" })] })] }), _jsxs("button", { type: "button", onClick: () => setShowHowItWorks(true), className: "text-as-primary/60 hover:text-as-primary flex items-center gap-1 text-xs transition-colors", children: [_jsx(HelpCircle, { className: "h-4 w-4" }), _jsx("span", { children: "How it works" })] })] }), amount && (_jsxs("div", { className: "border-as-stroke border-t pt-4", children: [_jsx("div", { className: "text-as-primary/50 mb-3 text-sm", children: "Payment Breakdown" }), (() => {
137
136
  const originalAmount = Number(order.srcAmount) / 10 ** USDC_BASE.decimals;
@@ -1,5 +1,5 @@
1
1
  import { Token } from "../../../../anyspend";
2
- export declare function TokenBalance({ token, walletAddress, onChangeInput, }: {
2
+ export declare function TokenBalance({ token, walletAddress, onChangeInput }: {
3
3
  token: Token;
4
4
  walletAddress: string | undefined;
5
5
  onChangeInput: (value: string) => void;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useTokenBalance } from "../../../../global-account/react/index.js";
3
3
  import { formatUnits } from "viem";
4
- export function TokenBalance({ token, walletAddress, onChangeInput, }) {
4
+ export function TokenBalance({ token, walletAddress, onChangeInput }) {
5
5
  const { rawBalance, formattedBalance, isLoading } = useTokenBalance({
6
6
  token,
7
- address: walletAddress,
7
+ address: walletAddress
8
8
  });
9
9
  const handlePercentageClick = (percentage) => {
10
10
  if (!rawBalance)