@b3dotfun/sdk 0.0.7-alpha.2 → 0.0.7-alpha.21

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 (716) 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/abis/signature-minting.d.ts +79 -0
  4. package/dist/cjs/anyspend/abis/signature-minting.js +45 -0
  5. package/dist/cjs/anyspend/constants/index.js +13 -10
  6. package/dist/cjs/anyspend/index.d.ts +4 -0
  7. package/dist/cjs/anyspend/index.js +4 -0
  8. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
  9. package/dist/cjs/anyspend/react/components/AnySpend.js +20 -20
  10. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  11. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +68 -66
  12. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  13. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +133 -90
  14. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +3 -2
  15. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +7 -5
  16. package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +1 -1
  17. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  18. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +21 -20
  19. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +7 -4
  20. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
  21. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +77 -0
  22. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  23. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  24. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +52 -23
  25. package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +1 -1
  26. package/dist/cjs/anyspend/react/components/common/OrderToken.js +4 -4
  27. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  28. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  29. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  30. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +2 -2
  31. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  32. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +7 -7
  33. package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  34. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +3 -3
  35. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +12 -12
  36. package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  37. package/dist/cjs/anyspend/react/components/common/TokenBalance.js +2 -2
  38. package/dist/cjs/anyspend/react/components/index.d.ts +2 -0
  39. package/dist/cjs/anyspend/react/components/index.js +5 -1
  40. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  41. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +6 -6
  42. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  43. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +14 -14
  44. package/dist/cjs/anyspend/react/hooks/index.d.ts +1 -0
  45. package/dist/cjs/anyspend/react/hooks/index.js +1 -0
  46. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
  47. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  48. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
  49. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
  50. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +14 -0
  51. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  52. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -0
  53. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  54. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +2 -2
  55. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +3 -3
  56. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  57. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  58. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  59. package/dist/cjs/anyspend/react/hooks/useGetGeo.js +1 -1
  60. package/dist/cjs/anyspend/react/hooks/usePermitData.js +19 -19
  61. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +140 -0
  62. package/dist/cjs/anyspend/react/hooks/useSigMint.js +39 -0
  63. package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  64. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +2 -2
  65. package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +3 -3
  66. package/dist/cjs/anyspend/services/anyspend.d.ts +9 -2
  67. package/dist/cjs/anyspend/services/anyspend.js +14 -14
  68. package/dist/cjs/anyspend/types/custom.js +2 -2
  69. package/dist/cjs/anyspend/types/globalWallet.js +1 -1
  70. package/dist/cjs/anyspend/types/index.d.ts +1 -0
  71. package/dist/cjs/anyspend/types/index.js +1 -0
  72. package/dist/cjs/anyspend/types/metadata.d.ts +26 -0
  73. package/dist/cjs/anyspend/types/metadata.js +16 -0
  74. package/dist/cjs/anyspend/types/nft.d.ts +7 -0
  75. package/dist/cjs/anyspend/types/nft.js +8 -6
  76. package/dist/cjs/anyspend/types/onramp.d.ts +3 -0
  77. package/dist/cjs/anyspend/types/onramp.js +2 -1
  78. package/dist/cjs/anyspend/types/order.d.ts +40 -0
  79. package/dist/cjs/anyspend/types/order.js +7 -7
  80. package/dist/cjs/anyspend/types/permit.js +1 -1
  81. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +98 -0
  82. package/dist/cjs/anyspend/types/req-res/createOrder.js +9 -9
  83. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  84. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +63 -0
  85. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  86. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +2 -2
  87. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +49 -0
  88. package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
  89. package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +37 -0
  90. package/dist/cjs/anyspend/types/req-res/getQuote.js +14 -9
  91. package/dist/cjs/anyspend/types/req-res/getTokenList.js +3 -3
  92. package/dist/cjs/anyspend/types/req-res/sendPermitData.js +2 -2
  93. package/dist/cjs/anyspend/types/signature-mint.d.ts +69 -0
  94. package/dist/cjs/anyspend/types/signature-mint.js +2 -0
  95. package/dist/cjs/anyspend/types/swap.js +2 -2
  96. package/dist/cjs/anyspend/types/token.js +2 -2
  97. package/dist/cjs/anyspend/types/tournament.js +4 -4
  98. package/dist/cjs/anyspend/types/transaction.js +4 -4
  99. package/dist/cjs/anyspend/utils/chain.js +16 -16
  100. package/dist/cjs/anyspend/utils/format.js +2 -2
  101. package/dist/cjs/anyspend/utils/orderPayload.d.ts +3 -3
  102. package/dist/cjs/anyspend/utils/orderPayload.js +22 -8
  103. package/dist/cjs/anyspend/utils/token.js +10 -10
  104. package/dist/cjs/global-account/app.js +4 -4
  105. package/dist/cjs/global-account/app.native.js +4 -4
  106. package/dist/cjs/global-account/bsmnt.js +4 -4
  107. package/dist/cjs/global-account/bsmnt.native.js +4 -4
  108. package/dist/cjs/global-account/react/components/B3DynamicModal.js +12 -2
  109. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  110. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +6 -6
  111. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  112. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  113. package/dist/cjs/global-account/react/components/B3Provider/types.js +1 -1
  114. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  115. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +5 -5
  116. package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  117. package/dist/cjs/global-account/react/components/MintButton/MintButton.js +5 -5
  118. package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  119. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  120. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +5 -5
  121. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  122. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  123. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.d.ts +14 -0
  124. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +50 -0
  125. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
  126. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +12 -17
  127. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  128. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +12 -12
  129. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  130. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  131. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  132. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  133. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  134. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  135. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  136. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
  137. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  138. package/dist/cjs/global-account/react/components/StyleRoot.js +0 -1
  139. package/dist/cjs/global-account/react/components/Transak/TransakModal.js +4 -4
  140. package/dist/cjs/global-account/react/components/custom/Button.js +5 -5
  141. package/dist/cjs/global-account/react/components/custom/Icon.d.ts +7 -0
  142. package/dist/cjs/global-account/react/components/custom/Icon.js +52 -0
  143. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
  144. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +20 -0
  145. package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  146. package/dist/cjs/global-account/react/components/index.d.ts +4 -4
  147. package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  148. package/dist/cjs/global-account/react/components/ui/Loading.js +2 -2
  149. package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  150. package/dist/cjs/global-account/react/components/ui/ShinyButton.js +3 -3
  151. package/dist/cjs/global-account/react/components/ui/TabSystem.js +1 -1
  152. package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +1 -1
  153. package/dist/cjs/global-account/react/components/ui/Tabs.js +1 -1
  154. package/dist/cjs/global-account/react/components/ui/badge.js +4 -4
  155. package/dist/cjs/global-account/react/components/ui/button.js +5 -5
  156. package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
  157. package/dist/cjs/global-account/react/components/ui/dialog.d.ts +1 -1
  158. package/dist/cjs/global-account/react/components/ui/drawer.d.ts +1 -1
  159. package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +12 -12
  160. package/dist/cjs/global-account/react/components/ui/glare-card.js +11 -11
  161. package/dist/cjs/global-account/react/components/ui/input.js +1 -1
  162. package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +1 -1
  163. package/dist/cjs/global-account/react/components/ui/text-loop.js +2 -2
  164. package/dist/cjs/global-account/react/components/ui/text-shimmer.js +2 -2
  165. package/dist/cjs/global-account/react/hooks/useAccountAssets.js +4 -4
  166. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -8
  167. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  168. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  169. package/dist/cjs/global-account/react/hooks/useAuthentication.js +3 -3
  170. package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  171. package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +8 -4
  172. package/dist/cjs/global-account/react/hooks/useB3EnsName.js +32 -23
  173. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  174. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +10 -10
  175. package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +1 -1
  176. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  177. package/dist/cjs/global-account/react/hooks/useClaim.js +4 -4
  178. package/dist/cjs/global-account/react/hooks/useConnect.js +3 -3
  179. package/dist/cjs/global-account/react/hooks/useExchangeRate.js +3 -3
  180. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  181. package/dist/cjs/global-account/react/hooks/useGetGeo.js +1 -1
  182. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  183. package/dist/cjs/global-account/react/hooks/useNativeBalance.js +6 -6
  184. package/dist/cjs/global-account/react/hooks/useOnchainName.js +10 -10
  185. package/dist/cjs/global-account/react/hooks/useOneBalance.js +2 -2
  186. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  187. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  188. package/dist/cjs/global-account/react/hooks/useRouter.js +6 -6
  189. package/dist/cjs/global-account/react/hooks/useSiwe.js +4 -4
  190. package/dist/cjs/global-account/react/hooks/useTokenBalance.js +6 -6
  191. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  192. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  193. package/dist/cjs/global-account/react/hooks/useTokenData.js +3 -3
  194. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +14 -14
  195. package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  196. package/dist/cjs/global-account/react/hooks/useTokenPrice.js +6 -6
  197. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  198. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  199. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  200. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +2 -2
  201. package/dist/cjs/global-account/react/hooks/useURLParams.js +1 -1
  202. package/dist/cjs/global-account/react/stores/index.d.ts +1 -1
  203. package/dist/cjs/global-account/react/stores/useAuthStore.js +3 -3
  204. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +18 -1
  205. package/dist/cjs/global-account/react/stores/useModalStore.js +3 -3
  206. package/dist/cjs/global-account/server.js +3 -3
  207. package/dist/cjs/global-account/types/chain-networks.js +8 -8
  208. package/dist/cjs/global-account/types/feature-flags.js +1 -1
  209. package/dist/cjs/shared/constants/chains/b3Chain.js +35 -35
  210. package/dist/cjs/shared/constants/chains/chainPlatformMap.js +1 -1
  211. package/dist/cjs/shared/constants/chains/supported.js +1 -1
  212. package/dist/cjs/shared/constants/index.d.ts +1 -0
  213. package/dist/cjs/shared/constants/index.js +3 -2
  214. package/dist/cjs/shared/react/hooks/index.d.ts +1 -0
  215. package/dist/cjs/shared/react/hooks/index.js +17 -0
  216. package/dist/cjs/shared/react/hooks/useNavigation.d.ts +17 -0
  217. package/dist/cjs/shared/react/hooks/useNavigation.js +57 -0
  218. package/dist/cjs/shared/react/index.d.ts +1 -0
  219. package/dist/cjs/shared/react/index.js +17 -0
  220. package/dist/cjs/shared/thirdweb/initiateClient.js +2 -2
  221. package/dist/cjs/shared/thirdweb/openapi-ts.config.js +1 -1
  222. package/dist/cjs/shared/utils/b3Ens.js +4 -4
  223. package/dist/cjs/shared/utils/chain-transformers.js +9 -9
  224. package/dist/cjs/shared/utils/fetchBalances.js +4 -4
  225. package/dist/cjs/shared/utils/index.d.ts +9 -0
  226. package/dist/cjs/shared/utils/index.js +17 -0
  227. package/dist/cjs/shared/utils/insights.js +28 -28
  228. package/dist/cjs/shared/utils/ipfs.js +1 -1
  229. package/dist/cjs/shared/utils/number.js +3 -3
  230. package/dist/cjs/shared/utils/simplehash.js +22 -22
  231. package/dist/cjs/shared/utils/thirdweb-insights.js +15 -15
  232. package/dist/esm/anyspend/abis/abi-usdc-base.js +97 -97
  233. package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
  234. package/dist/esm/anyspend/abis/signature-minting.d.ts +79 -0
  235. package/dist/esm/anyspend/abis/signature-minting.js +42 -0
  236. package/dist/esm/anyspend/constants/index.js +13 -10
  237. package/dist/esm/anyspend/index.d.ts +4 -0
  238. package/dist/esm/anyspend/index.js +4 -0
  239. package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
  240. package/dist/esm/anyspend/react/components/AnySpend.js +22 -22
  241. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  242. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +41 -39
  243. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  244. package/dist/esm/anyspend/react/components/AnySpendCustom.js +114 -71
  245. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +3 -2
  246. package/dist/esm/anyspend/react/components/AnySpendNFT.js +7 -5
  247. package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +1 -1
  248. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  249. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +22 -21
  250. package/dist/esm/anyspend/react/components/AnySpendTournament.js +7 -4
  251. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
  252. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +71 -0
  253. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  254. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  255. package/dist/esm/anyspend/react/components/common/OrderDetails.js +53 -24
  256. package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +1 -1
  257. package/dist/esm/anyspend/react/components/common/OrderToken.js +4 -4
  258. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  259. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  260. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  261. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +2 -2
  262. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  263. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -8
  264. package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  265. package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +3 -3
  266. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +12 -12
  267. package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  268. package/dist/esm/anyspend/react/components/common/TokenBalance.js +2 -2
  269. package/dist/esm/anyspend/react/components/index.d.ts +2 -0
  270. package/dist/esm/anyspend/react/components/index.js +2 -0
  271. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  272. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +2 -2
  273. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  274. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +15 -15
  275. package/dist/esm/anyspend/react/hooks/index.d.ts +1 -0
  276. package/dist/esm/anyspend/react/hooks/index.js +1 -0
  277. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
  278. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  279. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
  280. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +7 -7
  281. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +14 -0
  282. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  283. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -0
  284. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  285. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +2 -2
  286. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +3 -3
  287. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  288. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  289. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  290. package/dist/esm/anyspend/react/hooks/useGetGeo.js +1 -1
  291. package/dist/esm/anyspend/react/hooks/usePermitData.js +19 -19
  292. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +140 -0
  293. package/dist/esm/anyspend/react/hooks/useSigMint.js +33 -0
  294. package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  295. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +2 -2
  296. package/dist/esm/anyspend/react/providers/AnyspendProvider.js +3 -3
  297. package/dist/esm/anyspend/services/anyspend.d.ts +9 -2
  298. package/dist/esm/anyspend/services/anyspend.js +15 -15
  299. package/dist/esm/anyspend/types/custom.js +2 -2
  300. package/dist/esm/anyspend/types/globalWallet.js +1 -1
  301. package/dist/esm/anyspend/types/index.d.ts +1 -0
  302. package/dist/esm/anyspend/types/index.js +1 -0
  303. package/dist/esm/anyspend/types/metadata.d.ts +26 -0
  304. package/dist/esm/anyspend/types/metadata.js +11 -0
  305. package/dist/esm/anyspend/types/nft.d.ts +7 -0
  306. package/dist/esm/anyspend/types/nft.js +8 -6
  307. package/dist/esm/anyspend/types/onramp.d.ts +3 -0
  308. package/dist/esm/anyspend/types/onramp.js +2 -1
  309. package/dist/esm/anyspend/types/order.d.ts +40 -0
  310. package/dist/esm/anyspend/types/order.js +7 -7
  311. package/dist/esm/anyspend/types/permit.js +1 -1
  312. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +98 -0
  313. package/dist/esm/anyspend/types/req-res/createOrder.js +9 -9
  314. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  315. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +63 -0
  316. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  317. package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +2 -2
  318. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +49 -0
  319. package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
  320. package/dist/esm/anyspend/types/req-res/getQuote.d.ts +37 -0
  321. package/dist/esm/anyspend/types/req-res/getQuote.js +14 -9
  322. package/dist/esm/anyspend/types/req-res/getTokenList.js +3 -3
  323. package/dist/esm/anyspend/types/req-res/sendPermitData.js +2 -2
  324. package/dist/esm/anyspend/types/signature-mint.d.ts +69 -0
  325. package/dist/esm/anyspend/types/signature-mint.js +1 -0
  326. package/dist/esm/anyspend/types/swap.js +2 -2
  327. package/dist/esm/anyspend/types/token.js +2 -2
  328. package/dist/esm/anyspend/types/tournament.js +4 -4
  329. package/dist/esm/anyspend/types/transaction.js +4 -4
  330. package/dist/esm/anyspend/utils/chain.js +18 -18
  331. package/dist/esm/anyspend/utils/format.js +2 -2
  332. package/dist/esm/anyspend/utils/orderPayload.d.ts +3 -3
  333. package/dist/esm/anyspend/utils/orderPayload.js +23 -9
  334. package/dist/esm/anyspend/utils/token.js +10 -10
  335. package/dist/esm/global-account/app.js +4 -4
  336. package/dist/esm/global-account/app.native.js +4 -4
  337. package/dist/esm/global-account/bsmnt.js +4 -4
  338. package/dist/esm/global-account/bsmnt.native.js +4 -4
  339. package/dist/esm/global-account/react/components/B3DynamicModal.js +13 -3
  340. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  341. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +6 -6
  342. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  343. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  344. package/dist/esm/global-account/react/components/B3Provider/types.js +1 -1
  345. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  346. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +6 -6
  347. package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  348. package/dist/esm/global-account/react/components/MintButton/MintButton.js +5 -5
  349. package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  350. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  351. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +6 -6
  352. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  353. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  354. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.d.ts +14 -0
  355. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +44 -0
  356. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
  357. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +8 -13
  358. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  359. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -13
  360. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +2 -2
  361. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  362. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  363. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  364. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  365. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  366. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  367. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +3 -3
  368. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  369. package/dist/esm/global-account/react/components/StyleRoot.js +0 -1
  370. package/dist/esm/global-account/react/components/Transak/TransakModal.js +4 -4
  371. package/dist/esm/global-account/react/components/custom/Button.js +5 -5
  372. package/dist/esm/global-account/react/components/custom/Icon.d.ts +7 -0
  373. package/dist/esm/global-account/react/components/custom/Icon.js +50 -0
  374. package/dist/esm/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
  375. package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +17 -0
  376. package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  377. package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +1 -1
  378. package/dist/esm/global-account/react/components/index.d.ts +4 -4
  379. package/dist/esm/global-account/react/components/index.js +4 -4
  380. package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  381. package/dist/esm/global-account/react/components/ui/Loading.js +2 -2
  382. package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  383. package/dist/esm/global-account/react/components/ui/ShinyButton.js +3 -3
  384. package/dist/esm/global-account/react/components/ui/TabSystem.js +1 -1
  385. package/dist/esm/global-account/react/components/ui/Tabs.d.ts +1 -1
  386. package/dist/esm/global-account/react/components/ui/Tabs.js +1 -1
  387. package/dist/esm/global-account/react/components/ui/badge.js +4 -4
  388. package/dist/esm/global-account/react/components/ui/button.js +5 -5
  389. package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
  390. package/dist/esm/global-account/react/components/ui/command.js +1 -1
  391. package/dist/esm/global-account/react/components/ui/dialog.d.ts +1 -1
  392. package/dist/esm/global-account/react/components/ui/dialog.js +1 -1
  393. package/dist/esm/global-account/react/components/ui/drawer.d.ts +1 -1
  394. package/dist/esm/global-account/react/components/ui/drawer.js +1 -1
  395. package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +12 -12
  396. package/dist/esm/global-account/react/components/ui/glare-card.js +11 -11
  397. package/dist/esm/global-account/react/components/ui/input.js +1 -1
  398. package/dist/esm/global-account/react/components/ui/text-loop.d.ts +1 -1
  399. package/dist/esm/global-account/react/components/ui/text-loop.js +2 -2
  400. package/dist/esm/global-account/react/components/ui/text-shimmer.js +2 -2
  401. package/dist/esm/global-account/react/hooks/useAccountAssets.js +4 -4
  402. package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -8
  403. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  404. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  405. package/dist/esm/global-account/react/hooks/useAuthentication.js +3 -3
  406. package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  407. package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +8 -4
  408. package/dist/esm/global-account/react/hooks/useB3EnsName.js +34 -22
  409. package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  410. package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +10 -10
  411. package/dist/esm/global-account/react/hooks/useBsmntProfile.js +1 -1
  412. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  413. package/dist/esm/global-account/react/hooks/useClaim.js +4 -4
  414. package/dist/esm/global-account/react/hooks/useConnect.js +3 -3
  415. package/dist/esm/global-account/react/hooks/useExchangeRate.js +3 -3
  416. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  417. package/dist/esm/global-account/react/hooks/useGetGeo.js +1 -1
  418. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  419. package/dist/esm/global-account/react/hooks/useNativeBalance.js +6 -6
  420. package/dist/esm/global-account/react/hooks/useOnchainName.js +10 -10
  421. package/dist/esm/global-account/react/hooks/useOneBalance.js +2 -2
  422. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  423. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  424. package/dist/esm/global-account/react/hooks/useRouter.js +6 -6
  425. package/dist/esm/global-account/react/hooks/useSiwe.js +4 -4
  426. package/dist/esm/global-account/react/hooks/useTokenBalance.js +6 -6
  427. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  428. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  429. package/dist/esm/global-account/react/hooks/useTokenData.js +3 -3
  430. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -13
  431. package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  432. package/dist/esm/global-account/react/hooks/useTokenPrice.js +6 -6
  433. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  434. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  435. package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  436. package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +2 -2
  437. package/dist/esm/global-account/react/hooks/useURLParams.js +1 -1
  438. package/dist/esm/global-account/react/stores/index.d.ts +1 -1
  439. package/dist/esm/global-account/react/stores/useAuthStore.js +3 -3
  440. package/dist/esm/global-account/react/stores/useModalStore.d.ts +18 -1
  441. package/dist/esm/global-account/react/stores/useModalStore.js +3 -3
  442. package/dist/esm/global-account/server.js +3 -3
  443. package/dist/esm/global-account/types/chain-networks.js +8 -8
  444. package/dist/esm/global-account/types/feature-flags.js +1 -1
  445. package/dist/esm/shared/constants/chains/b3Chain.js +35 -35
  446. package/dist/esm/shared/constants/chains/chainPlatformMap.js +1 -1
  447. package/dist/esm/shared/constants/chains/supported.js +1 -1
  448. package/dist/esm/shared/constants/index.d.ts +1 -0
  449. package/dist/esm/shared/constants/index.js +2 -1
  450. package/dist/esm/shared/react/hooks/index.d.ts +1 -0
  451. package/dist/esm/shared/react/hooks/index.js +1 -0
  452. package/dist/esm/shared/react/hooks/useNavigation.d.ts +17 -0
  453. package/dist/esm/shared/react/hooks/useNavigation.js +52 -0
  454. package/dist/esm/shared/react/index.d.ts +1 -0
  455. package/dist/esm/shared/react/index.js +1 -0
  456. package/dist/esm/shared/thirdweb/initiateClient.js +2 -2
  457. package/dist/esm/shared/thirdweb/openapi-ts.config.js +1 -1
  458. package/dist/esm/shared/utils/b3Ens.js +4 -4
  459. package/dist/esm/shared/utils/chain-transformers.js +9 -9
  460. package/dist/esm/shared/utils/fetchBalances.js +4 -4
  461. package/dist/esm/shared/utils/index.d.ts +9 -0
  462. package/dist/esm/shared/utils/index.js +15 -0
  463. package/dist/esm/shared/utils/insights.js +28 -28
  464. package/dist/esm/shared/utils/ipfs.js +1 -1
  465. package/dist/esm/shared/utils/number.js +3 -3
  466. package/dist/esm/shared/utils/simplehash.js +23 -23
  467. package/dist/esm/shared/utils/thirdweb-insights.js +15 -15
  468. package/dist/styles/index.css +1 -1
  469. package/dist/types/anyspend/abis/signature-minting.d.ts +79 -0
  470. package/dist/types/anyspend/index.d.ts +4 -0
  471. package/dist/types/anyspend/react/components/AnySpend.d.ts +1 -1
  472. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  473. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  474. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +3 -2
  475. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  476. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +8 -0
  477. package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  478. package/dist/types/anyspend/react/components/common/OrderToken.d.ts +1 -1
  479. package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  480. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  481. package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  482. package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  483. package/dist/types/anyspend/react/components/index.d.ts +2 -0
  484. package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  485. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  486. package/dist/types/anyspend/react/hooks/index.d.ts +1 -0
  487. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +3 -18
  488. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +1 -0
  489. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +14 -0
  490. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +14 -0
  491. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +140 -0
  492. package/dist/types/anyspend/services/anyspend.d.ts +9 -2
  493. package/dist/types/anyspend/types/index.d.ts +1 -0
  494. package/dist/types/anyspend/types/metadata.d.ts +26 -0
  495. package/dist/types/anyspend/types/nft.d.ts +7 -0
  496. package/dist/types/anyspend/types/onramp.d.ts +3 -0
  497. package/dist/types/anyspend/types/order.d.ts +40 -0
  498. package/dist/types/anyspend/types/req-res/createOrder.d.ts +98 -0
  499. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +63 -0
  500. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +49 -0
  501. package/dist/types/anyspend/types/req-res/getQuote.d.ts +37 -0
  502. package/dist/types/anyspend/types/signature-mint.d.ts +69 -0
  503. package/dist/types/anyspend/utils/orderPayload.d.ts +3 -3
  504. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  505. package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  506. package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  507. package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  508. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  509. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  510. package/dist/types/global-account/react/components/SignInWithB3/SignIn.d.ts +14 -0
  511. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +1 -2
  512. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  513. package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  514. package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  515. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  516. package/dist/types/global-account/react/components/custom/Icon.d.ts +7 -0
  517. package/dist/types/global-account/react/components/custom/ManageAccountButton.d.ts +4 -0
  518. package/dist/types/global-account/react/components/index.d.ts +4 -4
  519. package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  520. package/dist/types/global-account/react/components/ui/Tabs.d.ts +1 -1
  521. package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
  522. package/dist/types/global-account/react/components/ui/dialog.d.ts +1 -1
  523. package/dist/types/global-account/react/components/ui/drawer.d.ts +1 -1
  524. package/dist/types/global-account/react/components/ui/text-loop.d.ts +1 -1
  525. package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  526. package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +8 -4
  527. package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  528. package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  529. package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  530. package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  531. package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  532. package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  533. package/dist/types/global-account/react/stores/index.d.ts +1 -1
  534. package/dist/types/global-account/react/stores/useModalStore.d.ts +18 -1
  535. package/dist/types/shared/constants/index.d.ts +1 -0
  536. package/dist/types/shared/react/hooks/index.d.ts +1 -0
  537. package/dist/types/shared/react/hooks/useNavigation.d.ts +17 -0
  538. package/dist/types/shared/react/index.d.ts +1 -0
  539. package/dist/types/shared/utils/index.d.ts +9 -0
  540. package/package.json +16 -4
  541. package/src/anyspend/abis/abi-usdc-base.ts +97 -97
  542. package/src/anyspend/abis/erc20-staking.ts +51 -51
  543. package/src/anyspend/abis/signature-minting.ts +43 -0
  544. package/src/anyspend/constants/index.ts +13 -11
  545. package/src/anyspend/index.ts +4 -0
  546. package/src/anyspend/react/components/AnySpend.tsx +33 -32
  547. package/src/anyspend/react/components/AnySpendBuySpin.tsx +46 -41
  548. package/src/anyspend/react/components/AnySpendCustom.tsx +158 -70
  549. package/src/anyspend/react/components/AnySpendNFT.tsx +11 -6
  550. package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
  551. package/src/anyspend/react/components/AnySpendStakeB3.tsx +23 -22
  552. package/src/anyspend/react/components/AnySpendTournament.tsx +7 -4
  553. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +147 -0
  554. package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
  555. package/src/anyspend/react/components/common/OrderDetails.tsx +75 -31
  556. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +3 -3
  557. package/src/anyspend/react/components/common/OrderToken.tsx +5 -5
  558. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -4
  559. package/src/anyspend/react/components/common/PanelOnramp.tsx +3 -3
  560. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +8 -8
  561. package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +1 -1
  562. package/src/anyspend/react/components/common/PaymentOneClick.tsx +3 -3
  563. package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +14 -14
  564. package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
  565. package/src/anyspend/react/components/index.ts +2 -0
  566. package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +2 -2
  567. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +18 -18
  568. package/src/anyspend/react/hooks/index.ts +1 -0
  569. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +10 -20
  570. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +9 -8
  571. package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +3 -3
  572. package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +4 -4
  573. package/src/anyspend/react/hooks/useAnyspendQuote.ts +5 -5
  574. package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +3 -3
  575. package/src/anyspend/react/hooks/useAnyspendTokens.ts +4 -4
  576. package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -3
  577. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +3 -3
  578. package/src/anyspend/react/hooks/useGetGeo.ts +1 -1
  579. package/src/anyspend/react/hooks/usePermitData.ts +19 -19
  580. package/src/anyspend/react/hooks/useSigMint.tsx +55 -0
  581. package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
  582. package/src/anyspend/react/hooks/useStripeSupport.ts +3 -3
  583. package/src/anyspend/react/providers/AnyspendProvider.tsx +3 -3
  584. package/src/anyspend/services/anyspend.ts +25 -25
  585. package/src/anyspend/types/chain.ts +1 -1
  586. package/src/anyspend/types/custom.ts +2 -2
  587. package/src/anyspend/types/globalWallet.ts +1 -1
  588. package/src/anyspend/types/index.ts +1 -0
  589. package/src/anyspend/types/metadata.ts +41 -0
  590. package/src/anyspend/types/nft.ts +10 -7
  591. package/src/anyspend/types/onramp.ts +3 -2
  592. package/src/anyspend/types/order.ts +9 -9
  593. package/src/anyspend/types/permit.ts +1 -1
  594. package/src/anyspend/types/relay.ts +1 -1
  595. package/src/anyspend/types/req-res/createOrder.ts +9 -9
  596. package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +5 -5
  597. package/src/anyspend/types/req-res/getOrderAndTransactions.ts +4 -4
  598. package/src/anyspend/types/req-res/getOrderByCreator.ts +2 -2
  599. package/src/anyspend/types/req-res/getOrderHistory.ts +1 -1
  600. package/src/anyspend/types/req-res/getQuote.ts +14 -9
  601. package/src/anyspend/types/req-res/getTokenList.ts +4 -4
  602. package/src/anyspend/types/req-res/sendPermitData.ts +2 -2
  603. package/src/anyspend/types/signature-mint.ts +77 -0
  604. package/src/anyspend/types/swap.ts +2 -2
  605. package/src/anyspend/types/token.ts +2 -2
  606. package/src/anyspend/types/tournament.ts +4 -4
  607. package/src/anyspend/types/transaction.ts +4 -4
  608. package/src/anyspend/utils/chain.ts +25 -25
  609. package/src/anyspend/utils/format.ts +2 -2
  610. package/src/anyspend/utils/orderPayload.ts +21 -9
  611. package/src/anyspend/utils/token.ts +10 -10
  612. package/src/global-account/app.native.ts +5 -5
  613. package/src/global-account/app.ts +5 -5
  614. package/src/global-account/bsmnt.native.ts +5 -5
  615. package/src/global-account/bsmnt.ts +5 -5
  616. package/src/global-account/react/components/B3DynamicModal.tsx +14 -5
  617. package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
  618. package/src/global-account/react/components/B3Provider/B3Provider.tsx +7 -8
  619. package/src/global-account/react/components/B3Provider/types.ts +1 -1
  620. package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +6 -6
  621. package/src/global-account/react/components/MintButton/MintButton.tsx +5 -5
  622. package/src/global-account/react/components/RelayKitProviderWrapper.tsx +2 -2
  623. package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +7 -7
  624. package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +2 -2
  625. package/src/global-account/react/components/SignInWithB3/SignIn.tsx +190 -0
  626. package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +16 -28
  627. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +14 -14
  628. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +2 -2
  629. package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +1 -1
  630. package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +1 -1
  631. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +10 -10
  632. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +3 -3
  633. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -2
  634. package/src/global-account/react/components/StyleRoot.tsx +0 -1
  635. package/src/global-account/react/components/Transak/TransakModal.tsx +4 -4
  636. package/src/global-account/react/components/custom/Button.tsx +7 -7
  637. package/src/global-account/react/components/custom/Icon.tsx +102 -0
  638. package/src/global-account/react/components/custom/ManageAccountButton.tsx +33 -0
  639. package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +3 -3
  640. package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +1 -1
  641. package/src/global-account/react/components/index.ts +4 -4
  642. package/src/global-account/react/components/magicui/AnimatedLottie.tsx +5 -5
  643. package/src/global-account/react/components/ui/Loading.tsx +2 -2
  644. package/src/global-account/react/components/ui/ShinyButton.tsx +5 -5
  645. package/src/global-account/react/components/ui/TabSystem.tsx +2 -2
  646. package/src/global-account/react/components/ui/Tabs.tsx +4 -4
  647. package/src/global-account/react/components/ui/badge.tsx +5 -5
  648. package/src/global-account/react/components/ui/button.tsx +7 -7
  649. package/src/global-account/react/components/ui/command.tsx +5 -5
  650. package/src/global-account/react/components/ui/dialog.tsx +5 -5
  651. package/src/global-account/react/components/ui/drawer.tsx +2 -2
  652. package/src/global-account/react/components/ui/glare-card-rounded.tsx +12 -12
  653. package/src/global-account/react/components/ui/glare-card.tsx +11 -11
  654. package/src/global-account/react/components/ui/input.tsx +2 -2
  655. package/src/global-account/react/components/ui/popover.tsx +1 -1
  656. package/src/global-account/react/components/ui/scroll-area.tsx +1 -1
  657. package/src/global-account/react/components/ui/text-loop.tsx +2 -2
  658. package/src/global-account/react/components/ui/text-shimmer.tsx +3 -3
  659. package/src/global-account/react/components/ui/tooltip.tsx +1 -1
  660. package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
  661. package/src/global-account/react/hooks/useAccountWallet.tsx +9 -9
  662. package/src/global-account/react/hooks/useAddTWSessionKey.tsx +7 -7
  663. package/src/global-account/react/hooks/useAuthentication.ts +3 -3
  664. package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +9 -9
  665. package/src/global-account/react/hooks/useB3EnsName.ts +43 -31
  666. package/src/global-account/react/hooks/useBestTransactionPath.tsx +11 -11
  667. package/src/global-account/react/hooks/useBsmntProfile.ts +1 -1
  668. package/src/global-account/react/hooks/useChainSwitchWithAction.ts +4 -4
  669. package/src/global-account/react/hooks/useClaim.tsx +5 -5
  670. package/src/global-account/react/hooks/useConnect.tsx +4 -4
  671. package/src/global-account/react/hooks/useExchangeRate.tsx +3 -3
  672. package/src/global-account/react/hooks/useGetAllTWSigners.tsx +9 -9
  673. package/src/global-account/react/hooks/useGetGeo.tsx +1 -1
  674. package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +2 -2
  675. package/src/global-account/react/hooks/useMediaQuery.tsx +1 -1
  676. package/src/global-account/react/hooks/useNativeBalance.tsx +7 -7
  677. package/src/global-account/react/hooks/useOnchainName.tsx +11 -11
  678. package/src/global-account/react/hooks/useOneBalance.tsx +2 -2
  679. package/src/global-account/react/hooks/useQueryB3.ts +2 -2
  680. package/src/global-account/react/hooks/useQueryBSMNT.ts +2 -2
  681. package/src/global-account/react/hooks/useRemoveSessionKey.tsx +5 -5
  682. package/src/global-account/react/hooks/useRouter.tsx +6 -6
  683. package/src/global-account/react/hooks/useSiwe.tsx +4 -4
  684. package/src/global-account/react/hooks/useTokenBalance.tsx +6 -6
  685. package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +10 -10
  686. package/src/global-account/react/hooks/useTokenData.ts +3 -3
  687. package/src/global-account/react/hooks/useTokenFromUrl.tsx +14 -14
  688. package/src/global-account/react/hooks/useTokenPrice.tsx +7 -7
  689. package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +7 -7
  690. package/src/global-account/react/hooks/useTokensFromAddress.ts +2 -2
  691. package/src/global-account/react/hooks/useURLParams.ts +2 -2
  692. package/src/global-account/react/stores/index.ts +1 -1
  693. package/src/global-account/react/stores/useAuthStore.ts +3 -3
  694. package/src/global-account/react/stores/useModalStore.ts +23 -4
  695. package/src/global-account/server.ts +3 -3
  696. package/src/global-account/types/chain-networks.ts +10 -10
  697. package/src/global-account/types/feature-flags.ts +2 -2
  698. package/src/shared/constants/chains/b3Chain.ts +35 -35
  699. package/src/shared/constants/chains/chainPlatformMap.ts +1 -1
  700. package/src/shared/constants/chains/supported.ts +1 -1
  701. package/src/shared/constants/index.ts +3 -1
  702. package/src/shared/react/hooks/index.ts +1 -0
  703. package/src/shared/react/hooks/useNavigation.ts +61 -0
  704. package/src/shared/react/index.ts +1 -0
  705. package/src/shared/thirdweb/initiateClient.ts +2 -2
  706. package/src/shared/thirdweb/openapi-ts.config.ts +1 -1
  707. package/src/shared/utils/b3Ens.ts +4 -4
  708. package/src/shared/utils/chain-transformers.ts +9 -9
  709. package/src/shared/utils/fetchBalances.ts +5 -5
  710. package/src/shared/utils/fetchBsmntProfile.ts +1 -1
  711. package/src/shared/utils/index.ts +16 -0
  712. package/src/shared/utils/insights.ts +31 -31
  713. package/src/shared/utils/ipfs.ts +1 -1
  714. package/src/shared/utils/number.ts +5 -5
  715. package/src/shared/utils/simplehash.ts +28 -28
  716. package/src/shared/utils/thirdweb-insights.ts +20 -20
@@ -6,9 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AnySpendStakeB3 = AnySpendStakeB3;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const anyspend_1 = require("../../../anyspend");
9
- const EthIcon_1 = require("./icons/EthIcon");
10
- const SolIcon_1 = require("./icons/SolIcon");
11
- const USDCIcon_1 = require("./icons/USDCIcon");
12
9
  const react_1 = require("../../../global-account/react");
13
10
  const number_1 = require("../../../shared/utils/number");
14
11
  const framer_motion_1 = require("framer-motion");
@@ -20,9 +17,12 @@ const viem_1 = require("viem");
20
17
  const chains_1 = require("viem/chains");
21
18
  const wagmi_1 = require("wagmi");
22
19
  const AnySpendCustom_1 = require("./AnySpendCustom");
20
+ const EthIcon_1 = require("./icons/EthIcon");
21
+ const SolIcon_1 = require("./icons/SolIcon");
22
+ const USDCIcon_1 = require("./icons/USDCIcon");
23
23
  const basePublicClient = (0, viem_1.createPublicClient)({
24
24
  chain: chains_1.base,
25
- transport: (0, viem_1.http)()
25
+ transport: (0, viem_1.http)(),
26
26
  });
27
27
  const ERC20Staking = "0xbf04200be3cbf371467a539706393c81c470f523";
28
28
  function generateEncodedDataForStakingB3(amount, beneficiary) {
@@ -30,16 +30,16 @@ function generateEncodedDataForStakingB3(amount, beneficiary) {
30
30
  const encodedData = (0, viem_1.encodeFunctionData)({
31
31
  abi: anyspend_1.ABI_ERC20_STAKING,
32
32
  functionName: "stake",
33
- args: [BigInt(amount), beneficiary]
33
+ args: [BigInt(amount), beneficiary],
34
34
  });
35
35
  return encodedData;
36
36
  }
37
- function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipientAddress, stakeAmount, onSuccess }) {
37
+ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipientAddress, stakeAmount, onSuccess, }) {
38
38
  const hasMounted = (0, react_1.useHasMounted)();
39
39
  const { setB3ModalOpen } = (0, react_1.useModalStore)();
40
40
  // Fetch B3 token balance
41
- const { formattedBalance: b3Balance, isLoading: isBalanceLoading, rawBalance: b3RawBalance } = (0, react_1.useTokenBalance)({
42
- token: anyspend_1.B3_TOKEN
41
+ const { formattedBalance: b3Balance, isLoading: isBalanceLoading, rawBalance: b3RawBalance, } = (0, react_1.useTokenBalance)({
42
+ token: anyspend_1.B3_TOKEN,
43
43
  });
44
44
  // Wagmi hooks for direct staking
45
45
  const { address } = (0, wagmi_1.useAccount)();
@@ -53,8 +53,8 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
53
53
  const { isLoading: isTxPending, isSuccess: isTxSuccess } = (0, wagmi_1.useWaitForTransactionReceipt)({
54
54
  hash: stakingTxHash,
55
55
  query: {
56
- structuralSharing: false // Disable to avoid BigInt serialization issues
57
- }
56
+ structuralSharing: false, // Disable to avoid BigInt serialization issues
57
+ },
58
58
  });
59
59
  // Show success modal when transaction is confirmed
60
60
  (0, react_2.useEffect)(() => {
@@ -154,7 +154,7 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
154
154
  address: anyspend_1.B3_TOKEN.address,
155
155
  abi: viem_1.erc20Abi,
156
156
  functionName: "allowance",
157
- args: [address, ERC20Staking]
157
+ args: [address, ERC20Staking],
158
158
  });
159
159
  // If allowance is insufficient, request approval
160
160
  if (allowance < BigInt(userStakeAmount)) {
@@ -163,7 +163,7 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
163
163
  address: anyspend_1.B3_TOKEN.address,
164
164
  abi: viem_1.erc20Abi,
165
165
  functionName: "approve",
166
- args: [ERC20Staking, BigInt(userStakeAmount)]
166
+ args: [ERC20Staking, BigInt(userStakeAmount)],
167
167
  });
168
168
  sonner_1.toast.info("Approval confirmed. Proceeding with stake...");
169
169
  }
@@ -173,7 +173,7 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
173
173
  address: ERC20Staking,
174
174
  abi: anyspend_1.ABI_ERC20_STAKING,
175
175
  functionName: "stake",
176
- args: [BigInt(userStakeAmount), recipientAddress]
176
+ args: [BigInt(userStakeAmount), recipientAddress],
177
177
  });
178
178
  setStakingTxHash(stakeHash);
179
179
  sonner_1.toast.success("Staking transaction submitted!");
@@ -214,18 +214,18 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
214
214
  return ((0, jsx_runtime_1.jsx)(react_1.StyleRoot, { children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-b3-react-background flex w-full flex-col items-center", children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full px-4", children: [(0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: false, animate: {
215
215
  opacity: hasMounted ? 1 : 0,
216
216
  y: hasMounted ? 0 : 20,
217
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
217
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
218
218
  }, transition: { duration: 0.3, delay: 0, ease: "easeInOut" }, className: "relative mx-auto size-48", children: (0, jsx_runtime_1.jsx)("video", { autoPlay: true, muted: true, playsInline: true, className: "size-full", src: "https://cdn.b3.fun/b3-sphere-to-coin.mp4" }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: false, animate: {
219
219
  opacity: hasMounted ? 1 : 0,
220
220
  y: hasMounted ? 0 : 20,
221
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
221
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
222
222
  }, transition: { duration: 0.3, delay: 0.1, ease: "easeInOut" }, children: (0, jsx_runtime_1.jsx)("h2", { className: "font-sf-rounded font-neue-montreal-medium mb-1 text-center text-2xl font-semibold", children: (() => {
223
223
  const hasEnoughBalance = b3RawBalance && BigInt(debouncedUserStakeAmount || "0") <= b3RawBalance;
224
224
  return hasEnoughBalance || !debouncedAmount ? "Stake B3" : "Swap & Stake B3";
225
225
  })() }) })] }), (0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { initial: false, animate: {
226
226
  opacity: hasMounted ? 1 : 0,
227
227
  y: hasMounted ? 0 : 20,
228
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
228
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
229
229
  }, transition: { duration: 0.3, delay: 0.2, ease: "easeInOut" }, className: "bg-b3-react-background w-full p-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-2", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-as-primary/70 text-sm font-medium", children: "I want to stake" }), (0, jsx_runtime_1.jsxs)("span", { className: "text-as-primary/50 flex items-center gap-1 text-sm", children: ["Available: ", isBalanceLoading ? (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "h-3 w-3 animate-spin" }) : `${b3Balance} B3`] })] }) }), (0, jsx_runtime_1.jsxs)("div", { className: "relative", children: [(0, jsx_runtime_1.jsx)(react_1.Input, { onFocus: onFocusStakeAmountInput, type: "text", placeholder: "0.00", value: displayAmount, onChange: e => validateAndSetAmount(e.target.value), className: `h-14 px-4 text-lg ${!isAmountValid && displayAmount ? "border-as-red" : "border-b3-react-border"}` }), (0, jsx_runtime_1.jsx)("div", { className: "font-pack absolute right-4 top-1/2 -translate-y-1/2 text-lg font-medium text-blue-500/70", children: "B3" })] }), !isAmountValid && displayAmount && (0, jsx_runtime_1.jsx)("p", { className: "text-as-red mt-2 text-sm", children: validationError }), (0, jsx_runtime_1.jsx)("div", { className: "mt-4", children: (() => {
230
230
  const hasEnoughBalance = b3RawBalance && BigInt(debouncedUserStakeAmount || "0") <= b3RawBalance;
231
231
  if (!hasEnoughBalance || !debouncedAmount) {
@@ -240,15 +240,15 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
240
240
  return ((0, jsx_runtime_1.jsx)(react_1.StyleRoot, { children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-b3-react-background flex w-full flex-col items-center", children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full p-4", children: [(0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { initial: false, animate: {
241
241
  opacity: hasMounted ? 1 : 0,
242
242
  y: hasMounted ? 0 : 20,
243
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
243
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
244
244
  }, transition: { duration: 0.3, delay: 0, ease: "easeInOut" }, className: "relative mx-auto mb-4 size-[120px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 scale-95 rounded-[50%] bg-black/30 blur-md" }), (0, jsx_runtime_1.jsxs)(react_1.GlareCardRounded, { className: "overflow-hidden rounded-full border-none", children: [(0, jsx_runtime_1.jsx)("img", { alt: "b3 coin", loading: "lazy", width: "64", height: "64", decoding: "async", "data-nimg": "1", className: "size-full shrink-0 bg-transparent text-transparent", src: "https://cdn.b3.fun/b3-coin-3d.png" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 rounded-[50%] border border-white/10" })] })] }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: false, animate: {
245
245
  opacity: hasMounted ? 1 : 0,
246
246
  y: hasMounted ? 0 : 20,
247
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
247
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
248
248
  }, transition: { duration: 0.3, delay: 0.1, ease: "easeInOut" }, children: (0, jsx_runtime_1.jsxs)("h2", { className: "font-sf-rounded mb-1 text-center text-2xl font-semibold", children: ["Staked ", (0, number_1.formatTokenAmount)(BigInt(userStakeAmount), 18), " B3"] }) })] }), (0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { initial: false, animate: {
249
249
  opacity: hasMounted ? 1 : 0,
250
250
  y: hasMounted ? 0 : 20,
251
- filter: hasMounted ? "blur(0px)" : "blur(10px)"
251
+ filter: hasMounted ? "blur(0px)" : "blur(10px)",
252
252
  }, transition: { duration: 0.3, delay: 0.2, ease: "easeInOut" }, className: "bg-b3-react-background w-full p-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsx)("a", { href: `https://basescan.org/tx/${stakingTxHash}`, target: "_blank", rel: "noopener noreferrer", className: "text-as-primary/70 hover:text-as-primary block break-all text-center font-mono text-sm underline transition-colors", children: "View transaction" }) }), (0, jsx_runtime_1.jsx)(react_1.Button, { onClick: () => {
253
253
  setB3ModalOpen(false);
254
254
  onSuccess?.();
@@ -256,6 +256,7 @@ function AnySpendStakeB3({ isMainnet = true, loadOrder, mode = "modal", recipien
256
256
  }
257
257
  const encodedData = generateEncodedDataForStakingB3(userStakeAmount, recipientAddress);
258
258
  return ((0, jsx_runtime_1.jsx)(AnySpendCustom_1.AnySpendCustom, { isMainnet: isMainnet, loadOrder: loadOrder, mode: mode, recipientAddress: recipientAddress, orderType: anyspend_1.OrderType.Custom, dstChainId: chains_1.base.id, dstToken: anyspend_1.B3_TOKEN, dstAmount: userStakeAmount, contractAddress: ERC20Staking, encodedData: encodedData, metadata: {
259
- action: "stake B3"
259
+ type: anyspend_1.OrderType.Custom,
260
+ action: "stake B3",
260
261
  }, header: header, onSuccess: onSuccess, showRecipient: true }));
261
262
  }
@@ -8,11 +8,14 @@ const number_1 = require("../../../shared/utils/number");
8
8
  const framer_motion_1 = require("framer-motion");
9
9
  const AnySpendCustom_1 = require("./AnySpendCustom");
10
10
  function AnySpendTournament(props) {
11
- const { isMainnet = true, mode = "modal", action, loadOrder, tournamentChainId, tournamentContractAddress, tournamentMetadata, onSuccess } = props;
11
+ const { isMainnet = true, mode = "modal", action, loadOrder, tournamentChainId, tournamentContractAddress, tournamentMetadata, onSuccess, } = props;
12
12
  const dstToken = action === "join" ? props.tournamentEntryToken : props.tournamentFundToken;
13
13
  const dstAmount = action === "join" ? props.tournamentEntryFee : props.tournamentFundAmount;
14
- const header = ({ anyspendPrice, isLoadingAnyspendPrice }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "z-10 mt-[-100px] flex h-[270px] w-full items-end justify-center", children: (0, jsx_runtime_1.jsx)("img", { src: "https://cdn.b3.fun/tournament-play.svg", alt: "Tournament Play", className: "h-[200px] w-[360px] object-cover object-center" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "from-b3-react-background to-as-on-surface-1 mt-[-100px] w-full rounded-t-lg bg-gradient-to-t", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[100px] w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-col items-center gap-1 p-6 pt-0", children: [(0, jsx_runtime_1.jsxs)("span", { className: "font-sf-rounded text-center text-lg font-semibold", children: [action === "join" ? "Pay entry fee to join " : "Pay to fund ", " ", tournamentMetadata.name] }), (0, jsx_runtime_1.jsx)("div", { className: "mt-2 flex w-fit items-center gap-1", children: anyspendPrice ? ((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { mode: "wait", children: (0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("text-as-primary group flex items-center text-2xl font-semibold transition-all", {
15
- "opacity-0": isLoadingAnyspendPrice
14
+ const header = ({ anyspendPrice, isLoadingAnyspendPrice, }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "z-10 mt-[-100px] flex h-[270px] w-full items-end justify-center", children: (0, jsx_runtime_1.jsx)("img", { src: "https://cdn.b3.fun/tournament-play.svg", alt: "Tournament Play", className: "h-[200px] w-[360px] object-cover object-center" }) }), (0, jsx_runtime_1.jsxs)("div", { className: "from-b3-react-background to-as-on-surface-1 mt-[-100px] w-full rounded-t-lg bg-gradient-to-t", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[100px] w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-col items-center gap-1 p-6 pt-0", children: [(0, jsx_runtime_1.jsxs)("span", { className: "font-sf-rounded text-center text-lg font-semibold", children: [action === "join" ? "Pay entry fee to join " : "Pay to fund ", " ", tournamentMetadata.name] }), (0, jsx_runtime_1.jsx)("div", { className: "mt-2 flex w-fit items-center gap-1", children: anyspendPrice ? ((0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { mode: "wait", children: (0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("text-as-primary group flex items-center text-2xl font-semibold transition-all", {
15
+ "opacity-0": isLoadingAnyspendPrice,
16
16
  }), children: [(0, number_1.formatDisplayNumber)(anyspendPrice?.data?.currencyIn?.amountUsd, { style: "currency" }), " (", (0, number_1.formatTokenAmount)(BigInt(dstAmount), dstToken.decimals, 6, true), " ", dstToken.symbol, ")"] }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "h-[32px] w-full" })) })] })] })] }));
17
- return ((0, jsx_runtime_1.jsx)(AnySpendCustom_1.AnySpendCustom, { isMainnet: isMainnet, loadOrder: loadOrder, mode: mode, recipientAddress: action === "join" ? props.joinFor : undefined, orderType: action === "join" ? anyspend_1.OrderType.JoinTournament : anyspend_1.OrderType.FundTournament, dstChainId: tournamentChainId, dstToken: dstToken, dstAmount: dstAmount, contractAddress: tournamentContractAddress, encodedData: "0x", metadata: { tournament: tournamentMetadata }, header: header, onSuccess: onSuccess, showRecipient: action === "join" }));
17
+ return ((0, jsx_runtime_1.jsx)(AnySpendCustom_1.AnySpendCustom, { isMainnet: isMainnet, loadOrder: loadOrder, mode: mode, recipientAddress: action === "join" ? props.joinFor : undefined, orderType: action === "join" ? anyspend_1.OrderType.JoinTournament : anyspend_1.OrderType.FundTournament, dstChainId: tournamentChainId, dstToken: dstToken, dstAmount: dstAmount, contractAddress: tournamentContractAddress, encodedData: "0x", metadata: {
18
+ type: action === "join" ? anyspend_1.OrderType.JoinTournament : anyspend_1.OrderType.FundTournament,
19
+ tournament: tournamentMetadata,
20
+ }, header: header, onSuccess: onSuccess, showRecipient: action === "join" }));
18
21
  }
@@ -0,0 +1,8 @@
1
+ import { GenerateSigMintResponse } from "../../types/signature-mint";
2
+ export declare function AnyspendSignatureMint({ loadOrder, mode, signatureData, imageUrl, onSuccess, }: {
3
+ loadOrder?: string;
4
+ mode?: "modal" | "page";
5
+ signatureData: GenerateSigMintResponse;
6
+ imageUrl?: string;
7
+ onSuccess?: () => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AnyspendSignatureMint = AnyspendSignatureMint;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const anyspend_1 = require("../../../anyspend");
9
+ const react_1 = require("../../../global-account/react");
10
+ const debug_1 = __importDefault(require("../../../shared/utils/debug"));
11
+ const react_2 = require("react");
12
+ const viem_1 = require("viem");
13
+ const signature_minting_1 = require("../../abis/signature-minting");
14
+ const AnySpendCustom_1 = require("./AnySpendCustom");
15
+ // Helper function to determine if URL is a video
16
+ function isVideoURL(url) {
17
+ const videoExtensions = [".mp4", ".webm", ".ogg"];
18
+ return videoExtensions.some(ext => url.toLowerCase().endsWith(ext));
19
+ }
20
+ function generateEncodedDataForSignatureMint(signatureData) {
21
+ const { signature, payload } = signatureData;
22
+ (0, debug_1.default)(signature, "Signature is required");
23
+ (0, debug_1.default)(payload, "Payload is required");
24
+ const mintRequest = {
25
+ to: payload.to,
26
+ royaltyRecipient: payload.royaltyRecipient,
27
+ royaltyBps: BigInt(payload.royaltyBps || 0),
28
+ primarySaleRecipient: payload.primarySaleRecipient,
29
+ tokenId: BigInt(payload.tokenId || 0),
30
+ uri: payload.uri,
31
+ quantity: BigInt(payload.quantity || 1),
32
+ pricePerToken: (0, viem_1.parseEther)(payload.price?.toString() || "0"),
33
+ currency: payload.currencyAddress,
34
+ validityStartTimestamp: BigInt(payload.mintStartTime || 0),
35
+ validityEndTimestamp: BigInt(payload.mintEndTime || 0),
36
+ uid: payload.uid,
37
+ };
38
+ const encodedData = (0, viem_1.encodeFunctionData)({
39
+ abi: [signature_minting_1.ABI_SIGNATURE_MINTING[0]],
40
+ functionName: "mintWithSignature",
41
+ args: [mintRequest, signature],
42
+ });
43
+ return encodedData;
44
+ }
45
+ function AnyspendSignatureMint({ loadOrder, mode = "modal", signatureData, imageUrl, onSuccess, }) {
46
+ const hasMounted = (0, react_1.useHasMounted)();
47
+ // Get token data
48
+ const { data: tokenData, isError: isTokenError } = (0, react_1.useTokenData)(signatureData.collection.chainId, signatureData.collection.signatureRequestBody?.currency);
49
+ // Convert token data to AnySpend Token type
50
+ const dstToken = (0, react_2.useMemo)(() => {
51
+ if (!tokenData)
52
+ return null;
53
+ return {
54
+ address: tokenData.address,
55
+ chainId: signatureData.collection.chainId,
56
+ name: tokenData.name,
57
+ symbol: tokenData.symbol,
58
+ decimals: tokenData.decimals,
59
+ metadata: {
60
+ logoURI: tokenData.logoURI,
61
+ },
62
+ };
63
+ }, [tokenData, signatureData.collection.chainId]);
64
+ const mediaUrl = imageUrl || signatureData.payload.metadata.image || "https://cdn.b3.fun/nft-placeholder.png";
65
+ const isVideo = isVideoURL(mediaUrl);
66
+ const header = () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "relative mx-auto size-32", children: isVideo ? ((0, jsx_runtime_1.jsxs)("video", { autoPlay: true, loop: true, muted: true, playsInline: true, className: "size-full rounded-lg object-cover", children: [(0, jsx_runtime_1.jsx)("source", { src: mediaUrl, type: `video/${mediaUrl.split(".").pop()}` }), "Your browser does not support the video tag."] })) : ((0, jsx_runtime_1.jsx)("img", { alt: "nft preview", className: "size-full rounded-lg object-cover", src: mediaUrl })) }), (0, jsx_runtime_1.jsxs)("div", { className: "from-b3-react-background to-as-on-surface-1 mt-[-60px] w-full rounded-t-lg bg-gradient-to-t", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[60px] w-full" }), (0, jsx_runtime_1.jsx)("div", { className: "mb-1 flex w-full flex-col items-center gap-2 p-5", children: (0, jsx_runtime_1.jsxs)("span", { className: "font-sf-rounded text-2xl font-semibold", children: [signatureData.payload.metadata.name || "Mint NFT", " ", Number(signatureData.payload.quantity) > 1 ? `(${signatureData.payload.quantity}x)` : ""] }) })] })] }));
67
+ // If we don't have token data, show error state
68
+ if (!dstToken || isTokenError) {
69
+ return ((0, jsx_runtime_1.jsx)(react_1.StyleRoot, { children: (0, jsx_runtime_1.jsx)("div", { className: "b3-root b3-modal bg-b3-react-background flex w-full flex-col items-center p-8", children: (0, jsx_runtime_1.jsxs)("p", { className: "text-as-red text-center text-sm", children: ["Failed to fetch payment token information for ", signatureData.collection.signatureRequestBody?.currency, " on chain ", signatureData.collection.chainId, ". Please try again."] }) }) }));
70
+ }
71
+ const encodedData = generateEncodedDataForSignatureMint(signatureData);
72
+ const price = (0, viem_1.parseEther)(signatureData.payload.price?.toString() || "0");
73
+ return ((0, jsx_runtime_1.jsx)(AnySpendCustom_1.AnySpendCustom, { isMainnet: true, loadOrder: loadOrder, mode: mode, recipientAddress: signatureData.payload.to, orderType: anyspend_1.OrderType.Custom, dstChainId: signatureData.collection.chainId, dstToken: dstToken, dstAmount: price.toString(), contractAddress: signatureData.collection.address, encodedData: encodedData, metadata: {
74
+ type: anyspend_1.OrderType.Custom,
75
+ action: "Signature Mint",
76
+ }, header: header, onSuccess: onSuccess, showRecipient: true }));
77
+ }
@@ -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;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChainTokenIcon = ChainTokenIcon;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- function ChainTokenIcon({ chainUrl, tokenUrl, className = "" }) {
5
+ function ChainTokenIcon({ chainUrl, tokenUrl, className = "", }) {
6
6
  return ((0, jsx_runtime_1.jsxs)("div", { className: `relative ${className}`, children: [(0, jsx_runtime_1.jsx)("img", { src: tokenUrl, alt: "Token", className: "h-full w-full rounded-full" }), (0, jsx_runtime_1.jsx)("div", { className: "bg-as-on-surface-1 border-as-stroke absolute bottom-0 right-0 h-[45%] w-[45%] rounded border", children: (0, jsx_runtime_1.jsx)("img", { src: chainUrl, alt: "Chain", className: "h-full w-full rounded" }) })] }));
7
7
  }
@@ -8,6 +8,7 @@ exports.OrderDetailsLoadingView = exports.OrderDetails = void 0;
8
8
  const jsx_runtime_1 = require("react/jsx-runtime");
9
9
  const anyspend_1 = require("../../../../anyspend");
10
10
  const react_1 = require("../../../../global-account/react");
11
+ const hooks_1 = require("../../../../shared/react/hooks");
11
12
  const utils_1 = require("../../../../shared/utils");
12
13
  const centerTruncate_1 = __importDefault(require("../../../../shared/utils/centerTruncate"));
13
14
  const number_1 = require("../../../../shared/utils/number");
@@ -15,7 +16,6 @@ const react_2 = require("@chakra-ui/react");
15
16
  const react_3 = require("@web3icons/react");
16
17
  const framer_motion_1 = require("framer-motion");
17
18
  const lucide_react_1 = require("lucide-react");
18
- const navigation_1 = require("next/navigation");
19
19
  const qrcode_react_1 = require("qrcode.react");
20
20
  const react_4 = require("react");
21
21
  const react_timeago_1 = __importDefault(require("react-timeago"));
@@ -25,7 +25,7 @@ const chains_1 = require("viem/chains");
25
25
  const wagmi_1 = require("wagmi");
26
26
  const PaymentVendorUI_1 = __importDefault(require("./PaymentVendorUI"));
27
27
  // Add this helper function near the top or just above the component
28
- function getOrderSuccessText({ order, tournament, formattedActualDstAmount, dstToken, recipientName, centerTruncate }) {
28
+ function getOrderSuccessText({ order, tournament, formattedActualDstAmount, dstToken, recipientName, centerTruncate, }) {
29
29
  const recipient = recipientName || centerTruncate(order.recipientAddress, 8);
30
30
  let actionText = "";
31
31
  switch (order.type) {
@@ -120,9 +120,9 @@ function roundTokenAmount(amount) {
120
120
  const roundedDecimalPart = digits.join("");
121
121
  return `${wholePart}.${roundedDecimalPart}`;
122
122
  }
123
- exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode = "modal", order, depositTxs, relayTx, executeTx, refundTxs, onBack }) {
124
- const router = (0, navigation_1.useRouter)();
125
- const searchParams = (0, navigation_1.useSearchParams)();
123
+ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode = "modal", order, depositTxs, relayTx, executeTx, refundTxs, onBack, }) {
124
+ const router = (0, hooks_1.useRouter)();
125
+ const searchParams = (0, hooks_1.useSearchParams)();
126
126
  const setB3ModalOpen = (0, react_1.useModalStore)(state => state.setB3ModalOpen);
127
127
  const srcToken = anyspend_1.zToken.parse(order.metadata.srcToken);
128
128
  const dstToken = anyspend_1.zToken.parse(order.metadata.dstToken);
@@ -200,7 +200,7 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
200
200
  account: signer,
201
201
  chain: anyspend_1.EVM_CHAINS[order.srcChain].viem,
202
202
  to: order.globalAddress,
203
- value: BigInt(order.srcAmount)
203
+ value: BigInt(order.srcAmount),
204
204
  });
205
205
  setTxHash(hash);
206
206
  }
@@ -211,7 +211,7 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
211
211
  address: order.srcTokenAddress,
212
212
  abi: viem_1.erc20Abi,
213
213
  functionName: "transfer",
214
- args: [order.globalAddress, BigInt(order.srcAmount)]
214
+ args: [order.globalAddress, BigInt(order.srcAmount)],
215
215
  });
216
216
  setTxHash(hash);
217
217
  }
@@ -223,10 +223,29 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
223
223
  };
224
224
  // When waitingForDeposit is true, we show a message to the user to wait for the deposit to be processed.
225
225
  const setWaitingForDeposit = (0, react_4.useCallback)(() => {
226
- const params = new URLSearchParams(searchParams);
226
+ const params = new URLSearchParams(searchParams.toString());
227
227
  params.set("waitingForDeposit", "true");
228
228
  router.push(`?${params}`);
229
229
  }, [router, searchParams]);
230
+ // Clean up URL parameters before closing modal or navigating back
231
+ const cleanupUrlParams = (0, react_4.useCallback)(() => {
232
+ const params = new URLSearchParams(searchParams.toString());
233
+ params.delete("waitingForDeposit");
234
+ params.delete("orderId");
235
+ // Only update URL if params were actually removed
236
+ if (params.toString() !== searchParams.toString()) {
237
+ router.push(`?${params}`);
238
+ }
239
+ }, [router, searchParams]);
240
+ // Helper functions that clean up URL params before executing actions
241
+ const handleCloseModal = (0, react_4.useCallback)(() => {
242
+ cleanupUrlParams();
243
+ setB3ModalOpen(false);
244
+ }, [cleanupUrlParams, setB3ModalOpen]);
245
+ const handleBack = (0, react_4.useCallback)(() => {
246
+ cleanupUrlParams();
247
+ onBack?.();
248
+ }, [cleanupUrlParams, onBack]);
230
249
  (0, react_4.useEffect)(() => {
231
250
  if (txSuccess) {
232
251
  sonner_1.toast.success("Transaction successful! We are processing your order.", { duration: 10000 });
@@ -274,14 +293,18 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
274
293
  };
275
294
  if (refundTxs) {
276
295
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: (0, jsx_runtime_1.jsx)(framer_motion_1.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
277
- ? depositTxs.map(dTx => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Received ${(0, number_1.formatTokenAmount)(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTx, isProcessing: false }, dTx.txHash)))
296
+ ? depositTxs.map(dTx => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.onrampMetadata?.vendor === anyspend_1.OnrampVendor.StripeWeb2
297
+ ? `Received payment`
298
+ : `Received ${(0, number_1.formatTokenAmount)(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTx, isProcessing: false }, dTx.txHash)))
278
299
  : null, refundTxs
279
300
  ? refundTxs.map(rTx => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Refunded ${(0, number_1.formatTokenAmount)(BigInt(rTx.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: rTx, isProcessing: false }, rTx.txHash)))
280
- : null] }), order.errorDetails && ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)("span", { className: "text-as-primary/50 text-center text-sm", style: { maxWidth: "40ch" }, children: (0, anyspend_1.getErrorDisplay)(order.errorDetails) }) })), (0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") })] }));
301
+ : null] }), order.errorDetails && ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)("span", { className: "text-as-primary/50 text-center text-sm", style: { maxWidth: "40ch" }, children: (0, anyspend_1.getErrorDisplay)(order.errorDetails) }) })), (0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") })] }));
281
302
  }
282
303
  if (executeTx) {
283
304
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: (0, jsx_runtime_1.jsx)(framer_motion_1.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
284
- ? depositTxs.map(dTxs => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
305
+ ? depositTxs.map(dTxs => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.onrampMetadata?.vendor === anyspend_1.OnrampVendor.StripeWeb2
306
+ ? `Received payment`
307
+ : `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
285
308
  : null, (0, jsx_runtime_1.jsx)(TransactionDetails, { title: "Processed Transaction", chainId: order.srcChain, tx: relayTx, delay: 0.5, isProcessing: false }), (0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.type === anyspend_1.OrderType.Swap
286
309
  ? "Processed Swap"
287
310
  : order.type === anyspend_1.OrderType.MintNFT
@@ -296,12 +319,14 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
296
319
  formattedActualDstAmount: formattedActualDstAmount,
297
320
  dstToken,
298
321
  recipientName,
299
- centerTruncate: centerTruncate_1.default
300
- }), (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === anyspend_1.OrderType.JoinTournament && order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: () => setB3ModalOpen(false), children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4", children: "Continue to Tournament" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })), order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
322
+ centerTruncate: centerTruncate_1.default,
323
+ }), (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === anyspend_1.OrderType.JoinTournament && order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: handleCloseModal, children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4", children: "Continue to Tournament" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })), order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
301
324
  }
302
325
  if (relayTx && relayTx.status === "success") {
303
326
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative mt-4 flex w-full flex-col gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: (0, jsx_runtime_1.jsx)(framer_motion_1.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
304
- ? depositTxs.map(dTxs => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
327
+ ? depositTxs.map(dTxs => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.onrampMetadata?.vendor === anyspend_1.OnrampVendor.StripeWeb2
328
+ ? `Received payment`
329
+ : `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: false }, dTxs.txHash)))
305
330
  : null, order.srcChain === order.dstChain ? ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.type === anyspend_1.OrderType.Swap
306
331
  ? "Processed Swap"
307
332
  : order.type === anyspend_1.OrderType.MintNFT
@@ -324,13 +349,15 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
324
349
  formattedActualDstAmount,
325
350
  dstToken,
326
351
  recipientName,
327
- centerTruncate: centerTruncate_1.default
328
- }), (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === anyspend_1.OrderType.JoinTournament && order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: () => setB3ModalOpen(false), children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4", children: "Continue to Tournament" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })), order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
352
+ centerTruncate: centerTruncate_1.default,
353
+ }), (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { className: "ml-2 h-4 w-4" })] }) }) }), order.type === anyspend_1.OrderType.JoinTournament && order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-full items-center gap-2", disabled: txLoading || isSwitchingOrExecuting, onClick: handleCloseModal, children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4", children: "Continue to Tournament" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })), order.status === anyspend_1.OrderStatus.Executed && ((0, jsx_runtime_1.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" ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Return to Home ", (0, jsx_runtime_1.jsx)(lucide_react_1.Home, { className: "ml-2 h-4 w-4" })] })) : ("Close") }))] }));
329
354
  }
330
355
  // This boolean indicates that user finish payment, and waiting for the deposit to be confirmed. We get this from query params (waitingForDeposit=true)
331
356
  const waitingForDeposit = new URLSearchParams(window.location.search).get("waitingForDeposit") === "true";
332
357
  if (depositTxs?.length || waitingForDeposit) {
333
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "relative mt-4 flex w-full flex-col gap-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: (0, jsx_runtime_1.jsx)(framer_motion_1.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) => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: index < (depositTxs || []).length - 1 ? false : !depositEnoughAmount }, dTxs.txHash))), statusDisplay === "failure" ? ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: statusText, chainId: order.srcChain, tx: null, isProcessing: false, delay: 0.5 })) : depositEnoughAmount ? ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.type === anyspend_1.OrderType.Swap
358
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "relative mt-4 flex w-full flex-col gap-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "bg-b3-react-background absolute bottom-2 left-4 top-2 z-[5] w-2", children: (0, jsx_runtime_1.jsx)(framer_motion_1.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) => ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.onrampMetadata?.vendor === anyspend_1.OnrampVendor.StripeWeb2
359
+ ? `Received payment`
360
+ : `Received ${(0, number_1.formatTokenAmount)(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`, chainId: order.srcChain, tx: dTxs, isProcessing: index < (depositTxs || []).length - 1 ? false : !depositEnoughAmount }, dTxs.txHash))), statusDisplay === "failure" ? ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: statusText, chainId: order.srcChain, tx: null, isProcessing: false, delay: 0.5 })) : depositEnoughAmount ? ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.type === anyspend_1.OrderType.Swap
334
361
  ? "Processing Swap"
335
362
  : order.type === anyspend_1.OrderType.MintNFT
336
363
  ? "Minting NFT"
@@ -338,13 +365,15 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
338
365
  ? "Joining Tournament"
339
366
  : order.type === anyspend_1.OrderType.FundTournament
340
367
  ? "Funding Tournament"
341
- : "Processing Transaction", chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 })) : ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: `Waiting for deposit ${formattedDepositDeficit} ${srcToken.symbol}`, chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 }))] }) }));
368
+ : "Processing Transaction", chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 })) : ((0, jsx_runtime_1.jsx)(TransactionDetails, { title: order.onrampMetadata?.vendor === anyspend_1.OnrampVendor.StripeWeb2
369
+ ? `Waiting for payment`
370
+ : `Waiting for deposit ${formattedDepositDeficit} ${srcToken.symbol}`, chainId: order.srcChain, tx: null, isProcessing: true, delay: 0.5 }))] }) }));
342
371
  }
343
372
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [statusDisplay === "failure" && ((0, jsx_runtime_1.jsx)("div", { className: "flex w-full flex-col items-center gap-3 whitespace-nowrap pb-2 text-sm", children: (0, jsx_runtime_1.jsx)("div", { className: "bg-as-light-brand/20 flex w-full flex-col gap-4 rounded-lg p-8", children: (0, jsx_runtime_1.jsx)("div", { className: "text-as-primary", style: { whiteSpace: "normal" }, children: "This order is no longer valid because the order expired." }) }) })), statusDisplay === "processing" && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [order.onrampMetadata ? ((0, jsx_runtime_1.jsx)(PaymentVendorUI_1.default, { isMainnet: isMainnet, order: order, dstTokenSymbol: dstToken.symbol })) : ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex w-full flex-1 flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-1", children: [(0, jsx_runtime_1.jsx)("span", { className: "text-as-primary/50", children: "Please send" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-wrap items-center gap-6 sm:justify-between sm:gap-0", children: [(0, jsx_runtime_1.jsx)(react_1.CopyToClipboard, { text: roundedUpSrcAmount, onCopy: () => {
344
373
  sonner_1.toast.success("Copied to clipboard");
345
374
  }, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsxs)("strong", { className: "border-as-brand text-as-primary border-b-2 pb-1 text-2xl font-semibold sm:text-xl", children: [roundedUpSrcAmount, " ", srcToken.symbol] }), (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "text-as-primary/50 hover:text-as-primary h-5 w-5 cursor-pointer transition-all duration-200" })] }) }), (0, jsx_runtime_1.jsxs)(react_1.Badge, { variant: "outline", className: "flex h-10 items-center gap-2 px-3 py-1 pr-2 text-sm", children: ["on ", (0, anyspend_1.getChainName)(order.srcChain), (0, jsx_runtime_1.jsx)("img", { src: anyspend_1.ALL_CHAINS[order.srcChain].logoUrl, alt: (0, anyspend_1.getChainName)(order.srcChain), className: (0, utils_1.cn)("h-6 rounded-full", order.srcChain === chains_1.b3.id && "h-5 rounded-none") })] })] }), (0, jsx_runtime_1.jsx)("span", { className: "text-as-primary/50 mb-1 mt-2", children: " to the address:" })] }), (0, jsx_runtime_1.jsx)(react_1.CopyToClipboard, { text: order.globalAddress, onCopy: () => {
346
375
  sonner_1.toast.success("Copied to clipboard");
347
- }, children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-b3-react-background border-b3-react-border hover:border-as-brand group flex cursor-pointer items-center justify-between gap-4 rounded-lg border p-3 px-4 shadow-md transition-all duration-200", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap text-sm", children: order.globalAddress }), (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "group-hover:text-as-brand text-as-primary/50 h-5 w-5 cursor-pointer transition-all duration-200" })] }) }), account?.address && !showQRCode ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4 mt-8 flex w-full flex-col items-center gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative flex w-full flex-col items-center gap-2", children: [(0, jsx_runtime_1.jsx)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-5/6 items-center gap-2 sm:px-0", disabled: txLoading || isSwitchingOrExecuting, onClick: handlePayment, children: txLoading ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Transaction Pending", (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "ml-2 h-5 w-5 animate-spin" })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4 text-lg md:text-sm", children: "Pay from Connected Wallet" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })) }), (0, jsx_runtime_1.jsxs)("span", { className: "label-style text-as-primary/50 text-xs", children: ["Connected to: ", (0, centerTruncate_1.default)(account?.address || "", 6)] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-col items-center gap-2", children: [(0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: colorMode === "dark" ? "#ffffff" : "#000000", className: "flex w-5/6 items-center gap-2 sm:px-0", onClick: () => setShowQRCode(true), children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4 text-lg md:text-sm", children: "Pay from a different wallet" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletTrust, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletWalletConnect, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)("span", { className: "label-style text-as-primary/30 text-xs", children: "& more" })] })] })] })) : ((0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { initial: { opacity: 0, filter: "blur(10px)" }, animate: { opacity: 1, filter: "blur(0px)" }, transition: { duration: 0.5, ease: "easeInOut" }, className: "flex w-full items-center justify-evenly gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mt-8 flex flex-col items-center rounded-lg bg-white p-6 pb-3", children: [(0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeSVG, { value: (0, anyspend_1.getPaymentUrl)(order.globalAddress, BigInt(order.srcAmount), order.srcTokenAddress === anyspend_1.RELAY_ETH_ADDRESS ? "ETH" : order.srcTokenAddress), size: 200 }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-3 flex items-center justify-center gap-2 text-sm", children: [(0, jsx_runtime_1.jsx)("span", { className: "label-style text-as-brand/70 text-sm", children: "Scan with" }), (0, jsx_runtime_1.jsxs)(react_1.TextLoop, { interval: 3, children: [(0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletTrust, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletWalletConnect, { className: "h-5 w-5", variant: "branded" })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [account && ((0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "ghost", className: "text-as-primary w-full", onClick: handlePayment, children: ["Send Transaction ", (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "ml-2 h-4 w-4" })] })), anyspend_1.EVM_CHAINS[order.srcChain] ? ((0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", onClick: handlePayment, children: ["Open Metamask", (0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "ml-2 h-5 w-5", variant: "branded" })] })) : null, (0, jsx_runtime_1.jsx)("a", { href: handleCoinbaseRedirect(), children: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", children: ["Open Coinbase", (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "ml-2 h-5 w-5", variant: "branded" })] }) }), (0, jsx_runtime_1.jsx)("a", { href: handlePhantomRedirect(), children: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", children: ["Open Phantom", (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "ml-2 h-5 w-5", variant: "branded" })] }) })] })] }))] })), (0, jsx_runtime_1.jsxs)("div", { className: "bg-as-light-brand/30 w-full rounded-lg p-4 sm:p-2 sm:px-4", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-as-secondary mb-3 text-sm", children: "Continue on another device?" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-4", children: [(0, jsx_runtime_1.jsx)(react_1.CopyToClipboard, { text: permalink, onCopy: () => {
376
+ }, children: (0, jsx_runtime_1.jsxs)("div", { className: "bg-b3-react-background border-b3-react-border hover:border-as-brand group flex cursor-pointer items-center justify-between gap-4 rounded-lg border p-3 px-4 shadow-md transition-all duration-200", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap text-sm", children: order.globalAddress }), (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "group-hover:text-as-brand text-as-primary/50 h-5 w-5 cursor-pointer transition-all duration-200" })] }) }), account?.address && !showQRCode ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4 mt-8 flex w-full flex-col items-center gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative flex w-full flex-col items-center gap-2", children: [(0, jsx_runtime_1.jsx)(react_1.ShinyButton, { accentColor: "hsl(var(--as-brand))", textColor: "text-white", className: "flex w-5/6 items-center gap-2 sm:px-0", disabled: txLoading || isSwitchingOrExecuting, onClick: handlePayment, children: txLoading ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Transaction Pending", (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "ml-2 h-5 w-5 animate-spin" })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4 text-lg md:text-sm", children: "Pay from Connected Wallet" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] })) }), (0, jsx_runtime_1.jsxs)("span", { className: "label-style text-as-primary/50 text-xs", children: ["Connected to: ", (0, centerTruncate_1.default)(account?.address || "", 6)] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-col items-center gap-2", children: [(0, jsx_runtime_1.jsxs)(react_1.ShinyButton, { accentColor: colorMode === "dark" ? "#ffffff" : "#000000", className: "flex w-5/6 items-center gap-2 sm:px-0", onClick: () => setShowQRCode(true), children: [(0, jsx_runtime_1.jsx)("span", { className: "pl-4 text-lg md:text-sm", children: "Pay from a different wallet" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "h-4 w-4" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletTrust, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletWalletConnect, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)("span", { className: "label-style text-as-primary/30 text-xs", children: "& more" })] })] })] })) : ((0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { initial: { opacity: 0, filter: "blur(10px)" }, animate: { opacity: 1, filter: "blur(0px)" }, transition: { duration: 0.5, ease: "easeInOut" }, className: "flex w-full items-center justify-evenly gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mt-8 flex flex-col items-center rounded-lg bg-white p-6 pb-3", children: [(0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeSVG, { value: (0, anyspend_1.getPaymentUrl)(order.globalAddress, BigInt(order.srcAmount), order.srcTokenAddress === anyspend_1.RELAY_ETH_ADDRESS ? "ETH" : order.srcTokenAddress), className: "max-w-[200px]" }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-3 flex items-center justify-center gap-2 text-sm", children: [(0, jsx_runtime_1.jsx)("span", { className: "label-style text-as-brand/70 text-sm", children: "Scan with" }), (0, jsx_runtime_1.jsxs)(react_1.TextLoop, { interval: 3, children: [(0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletTrust, { className: "h-5 w-5", variant: "branded" }), (0, jsx_runtime_1.jsx)(react_3.WalletWalletConnect, { className: "h-5 w-5", variant: "branded" })] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [account && ((0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "ghost", className: "text-as-primary w-full", onClick: handlePayment, children: ["Send Transaction ", (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { className: "ml-2 h-4 w-4" })] })), anyspend_1.EVM_CHAINS[order.srcChain] ? ((0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", onClick: handlePayment, children: ["Open Metamask", (0, jsx_runtime_1.jsx)(react_3.WalletMetamask, { className: "ml-2 h-5 w-5", variant: "branded" })] })) : null, (0, jsx_runtime_1.jsx)("a", { href: handleCoinbaseRedirect(), children: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", children: ["Open Coinbase", (0, jsx_runtime_1.jsx)(react_3.WalletCoinbase, { className: "ml-2 h-5 w-5", variant: "branded" })] }) }), (0, jsx_runtime_1.jsx)("a", { href: handlePhantomRedirect(), children: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", children: ["Open Phantom", (0, jsx_runtime_1.jsx)(react_3.WalletPhantom, { className: "ml-2 h-5 w-5", variant: "branded" })] }) })] })] }))] })), (0, jsx_runtime_1.jsxs)("div", { className: "bg-as-light-brand/30 w-full rounded-lg p-4 sm:p-2 sm:px-4", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-as-secondary mb-3 text-sm", children: "Continue on another device?" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-4", children: [(0, jsx_runtime_1.jsx)(react_1.CopyToClipboard, { text: permalink, onCopy: () => {
348
377
  sonner_1.toast.success("Copied to clipboard");
349
378
  }, children: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", children: ["Copy Link", (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "ml-2 h-3 w-3" })] }) }), (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", className: "w-full", onClick: () => {
350
379
  if (navigator.share) {
@@ -352,7 +381,7 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
352
381
  .share({
353
382
  title: "Complete Deposit",
354
383
  text: "Complete your deposit on BSMNT.fun",
355
- url: permalink
384
+ url: permalink,
356
385
  })
357
386
  .catch(error => console.log("Error sharing:", error));
358
387
  }
@@ -371,11 +400,11 @@ exports.OrderDetails = (0, react_4.memo)(function OrderDetails({ isMainnet, mode
371
400
  : "Contract execution"
372
401
  : "" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-end gap-2", children: [order.type === anyspend_1.OrderType.Swap ? (`~${formattedExpectedDstAmount} ${dstToken.symbol}`) : order.type === anyspend_1.OrderType.MintNFT ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("img", { src: nft?.imageUrl, alt: nft?.name || "NFT", className: "h-5 w-5" }), (0, jsx_runtime_1.jsx)("div", { children: nft?.name || "NFT" })] })) : order.type === anyspend_1.OrderType.JoinTournament || order.type === anyspend_1.OrderType.FundTournament ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)("img", { src: tournament?.imageUrl, alt: tournament?.name || "Tournament", className: "h-5 w-5" }), (0, jsx_runtime_1.jsx)("div", { children: tournament?.name || "Tournament" })] })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary/50 flex items-center gap-2", children: [(0, jsx_runtime_1.jsxs)("span", { children: ["on ", order.dstChain !== chains_1.b3.id && (0, anyspend_1.getChainName)(order.dstChain)] }), (0, jsx_runtime_1.jsx)("img", { src: anyspend_1.ALL_CHAINS[order.dstChain].logoUrl, alt: (0, anyspend_1.getChainName)(order.dstChain), className: (0, utils_1.cn)("h-3", order.dstChain !== chains_1.b3.id && "w-3 rounded-full", order.dstChain === chains_1.b3.id && "h-4") })] })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full justify-between gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-as-primary/30", children: "Order ID" }), (0, jsx_runtime_1.jsx)("div", { className: "text-as-primary overflow-hidden text-ellipsis whitespace-nowrap", children: order.id })] }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full justify-between gap-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-as-primary/30", children: "Recipient" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-end gap-1", children: [recipientName && (0, jsx_runtime_1.jsx)("div", { className: "text-as-primary font-semibold", children: recipientName }), (0, jsx_runtime_1.jsx)(react_1.CopyToClipboard, { text: order.recipientAddress, onCopy: () => {
373
402
  sonner_1.toast.success("Copied recipient address to clipboard");
374
- }, children: (0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary flex items-center gap-2", children: [(0, centerTruncate_1.default)(order.recipientAddress, 10), (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "text-as-primary/50 hover:text-as-primary h-4 w-4 cursor-pointer transition-all duration-200" })] }) })] })] })] }) })) : ((0, jsx_runtime_1.jsxs)("div", { className: "flex w-full items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsx)("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" })] })), (0, jsx_runtime_1.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 ", (0, jsx_runtime_1.jsx)(lucide_react_1.RefreshCcw, { className: "ml-2 h-4 w-4" })] })] }));
403
+ }, children: (0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary flex items-center gap-2", children: [(0, centerTruncate_1.default)(order.recipientAddress, 10), (0, jsx_runtime_1.jsx)(lucide_react_1.Copy, { className: "text-as-primary/50 hover:text-as-primary h-4 w-4 cursor-pointer transition-all duration-200" })] }) })] })] })] }) })) : ((0, jsx_runtime_1.jsxs)("div", { className: "flex w-full items-center", children: [(0, jsx_runtime_1.jsx)("div", { className: "divider w-full" }), (0, jsx_runtime_1.jsx)("button", { className: "whitespace-nowrap text-sm", onClick: () => setShowOrderDetails(true), children: "Order Details" }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { className: "text-as-primary mx-1 h-4 min-h-4 w-4 min-w-4" }), (0, jsx_runtime_1.jsx)("div", { className: "divider w-full" })] })), (0, jsx_runtime_1.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 ", (0, jsx_runtime_1.jsx)(lucide_react_1.RefreshCcw, { className: "ml-2 h-4 w-4" })] })] }));
375
404
  });
376
- function TransactionDetails({ title, chainId, tx, isProcessing, delay }) {
405
+ function TransactionDetails({ title, chainId, tx, isProcessing, delay, }) {
377
406
  return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex w-full flex-1 items-center justify-between gap-4", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex grow items-center gap-4", children: [(0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: "bg-b3-react-background relative h-10 w-10 rounded-full", children: isProcessing ? ((0, jsx_runtime_1.jsx)(framer_motion_1.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: (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "text-as-primary h-4 w-4 animate-spin" }) })) : ((0, jsx_runtime_1.jsx)(framer_motion_1.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: {
378
- boxShadow: "0 0 15px 5px rgba(138, 43, 226, 0.2)"
407
+ boxShadow: "0 0 15px 5px rgba(138, 43, 226, 0.2)",
379
408
  }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.CheckIcon, { className: "text-as-primary h-3 w-3" }) })) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 0.3, ease: "easeInOut", delay }, className: "shrink-0 text-base", children: isProcessing ? ((0, jsx_runtime_1.jsx)(react_1.TextShimmer, { duration: 1, children: title })) : ((0, jsx_runtime_1.jsx)("span", { className: "text-as-primary", children: title })) })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-1", children: tx ? ((0, jsx_runtime_1.jsx)(framer_motion_1.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: (0, jsx_runtime_1.jsx)("a", { href: (0, anyspend_1.getExplorerTxUrl)(chainId, tx.txHash), target: "_blank", children: (0, jsx_runtime_1.jsx)("div", { className: "text-as-primary/30 font-mono text-xs", children: (0, centerTruncate_1.default)(tx?.txHash, 6) }) }) })) : null })] }));
380
409
  }
381
410
  exports.OrderDetailsLoadingView = ((0, jsx_runtime_1.jsxs)("div", { className: "mx-auto flex w-[460px] max-w-full flex-col items-center gap-4", children: [(0, jsx_runtime_1.jsxs)(react_1.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: [(0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "text-as-primary h-4 w-4 animate-spin" }), (0, jsx_runtime_1.jsx)(react_1.TextShimmer, { duration: 1, className: "font-sf-rounded text-base font-semibold", children: "Loading..." })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full flex-1 flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mb-4 flex flex-col gap-1", children: [(0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-4 w-24" }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-2 flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-8 w-48" }), (0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "ml-4 h-8 w-32" })] }), (0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "mt-4 h-8 w-24" })] }), (0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "mb-4 h-12 w-full" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [(0, jsx_runtime_1.jsxs)(react_1.Skeleton, { className: "rounded-lg p-6 pb-3", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-[200px] w-[200px]" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-3 flex items-center justify-center gap-2", children: (0, jsx_runtime_1.jsx)("div", { className: "h-5 w-5 rounded-full" }) })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-1 flex-col gap-2", children: [1, 2, 3].map(i => ((0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-10 w-full" }, i))) })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "bg-b3-react-background mt-8 w-full rounded-lg p-4", children: [(0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "mb-3 h-4 w-48" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-4", children: [(0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-10 flex-1" }), (0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-10 flex-1" })] })] }), (0, jsx_runtime_1.jsx)(react_1.Skeleton, { className: "h-10 w-full" })] }));
@@ -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;
@@ -12,13 +12,13 @@ const relay_kit_ui_1 = require("@reservoir0x/relay-kit-ui");
12
12
  const lucide_react_1 = require("lucide-react");
13
13
  const react_2 = require("react");
14
14
  const ChainTokenIcon_1 = require("./ChainTokenIcon");
15
- function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName }) {
15
+ function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName, }) {
16
16
  const { wallet } = (0, react_1.useAccountWallet)();
17
17
  const chainName = (0, react_2.useMemo)(() => (0, simplehash_1.simpleHashChainToChainName)(chainId), [chainId]);
18
18
  const { nativeTokens, fungibleTokens } = (0, react_1.useTokenBalancesByChain)({
19
19
  address: wallet?.address || "",
20
20
  chainsIds: [chainId],
21
- enabled: !!wallet?.address && !!chainName
21
+ enabled: !!wallet?.address && !!chainName,
22
22
  });
23
23
  const { formattedBalance, hasEnoughBalance } = (0, react_2.useMemo)(() => {
24
24
  // Get balance for the selected token
@@ -40,7 +40,7 @@ function OrderToken({ context, address, chainId, setChainId, token, setToken, re
40
40
  const formattedBalance = balance ? (0, number_1.formatTokenAmount)(balance, token.decimals, 6, false) : null;
41
41
  return {
42
42
  formattedBalance,
43
- hasEnoughBalance
43
+ hasEnoughBalance,
44
44
  };
45
45
  }, [chainId, fungibleTokens, nativeTokens, requiredAmount, token, wallet?.address]);
46
46
  return ((0, jsx_runtime_1.jsx)(relay_kit_ui_1.TokenSelector, { address: address, chainIdsFilter: Object.values(anyspend_1.ALL_CHAINS).map(chain => chain.id), context: context, fromChainWalletVMSupported: true, isValidAddress: true, lockedChainIds: Object.values(anyspend_1.ALL_CHAINS).map(chain => chain.id), multiWalletSupportEnabled: true, onAnalyticEvent: undefined, popularChainIds: [1, 8453, anyspend_1.RELAY_SOLANA_MAINNET_CHAIN_ID], restrictedToken: undefined, setToken: token => {
@@ -51,7 +51,7 @@ function OrderToken({ context, address, chainId, setChainId, token, setToken, re
51
51
  decimals: token.decimals,
52
52
  metadata: { logoURI: token.logoURI },
53
53
  name: token.name,
54
- symbol: token.symbol
54
+ symbol: token.symbol,
55
55
  });
56
56
  }, supportedWalletVMs: ["evm", "svm"], token: undefined, trigger: (0, jsx_runtime_1.jsxs)(react_1.Button, { variant: "outline", role: "combobox", className: (0, utils_1.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 ? ((0, jsx_runtime_1.jsx)(ChainTokenIcon_1.ChainTokenIcon, { chainUrl: anyspend_1.ALL_CHAINS[chainId].logoUrl, tokenUrl: token.metadata.logoURI, className: "h-8 min-h-8 w-8 min-w-8" })) : ((0, jsx_runtime_1.jsx)("div", { className: "h-8 w-8 rounded-full bg-gray-700" })), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start gap-0", children: [(0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary font-semibold", children: [token.symbol, " on ", anyspend_1.ALL_CHAINS[chainId].name] }), formattedBalance && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-1", children: [(0, jsx_runtime_1.jsxs)("div", { className: "text-as-primary/50 text-xs", children: [formattedBalance || "--", " ", token.symbol] }), hasEnoughBalance && (0, jsx_runtime_1.jsx)(lucide_react_1.CheckCircle2, { className: "text-as-brand -mt-0.5 h-4 w-4" })] }))] }), (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronsUpDown, { className: "h-4 w-4 shrink-0 opacity-70" })] }) }, undefined));
57
57
  }
@@ -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;