@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
@@ -1,6 +1,6 @@
1
1
  import { ActiveSigners } from "../../../global-account/types";
2
2
  import { Chain, Hex, ThirdwebClient } from "thirdweb";
3
- export declare function useRemoveSessionKey({ onSuccess, onError, refetchSigners, chain }: {
3
+ export declare function useRemoveSessionKey({ onSuccess, onError, refetchSigners, chain, }: {
4
4
  chain?: Chain;
5
5
  onSuccess: (transactionResult: {
6
6
  transactionHash: Hex;
@@ -11,7 +11,7 @@ const thirdweb_2 = require("thirdweb");
11
11
  const erc4337_1 = require("thirdweb/extensions/erc4337");
12
12
  const react_2 = require("thirdweb/react");
13
13
  const debug = (0, debug_1.default)("@@b3:useHandleTWConnect");
14
- function useRemoveSessionKey({ onSuccess, onError, refetchSigners, chain }) {
14
+ function useRemoveSessionKey({ onSuccess, onError, refetchSigners, chain, }) {
15
15
  const [isRemovingSessionKey, setIsRemovingSessionKey] = (0, react_1.useState)(false);
16
16
  if (!chain) {
17
17
  throw new Error("Chain is required");
@@ -26,10 +26,10 @@ function useRemoveSessionKey({ onSuccess, onError, refetchSigners, chain }) {
26
26
  contract: {
27
27
  client: thirdweb_1.client,
28
28
  chain,
29
- address: account.address
29
+ address: account.address,
30
30
  },
31
31
  account,
32
- sessionKeyAddress: signer.signer
32
+ sessionKeyAddress: signer.signer,
33
33
  });
34
34
  debug("@@ecosystem:removeSessionKey:transaction:", transaction);
35
35
  const transactionResult = await (0, thirdweb_2.sendTransaction)({ transaction, account });
@@ -18,14 +18,14 @@ function useRouter() {
18
18
  push: () => { },
19
19
  replace: () => { },
20
20
  back: () => { },
21
- forward: () => { }
21
+ forward: () => { },
22
22
  };
23
23
  }
24
24
  // Initialize state with current location
25
25
  const [routerState, setRouterState] = (0, react_1.useState)(() => ({
26
26
  pathname: window.location.pathname,
27
27
  search: window.location.search,
28
- hash: window.location.hash
28
+ hash: window.location.hash,
29
29
  }));
30
30
  // Update state when location changes
31
31
  (0, react_1.useEffect)(() => {
@@ -33,7 +33,7 @@ function useRouter() {
33
33
  setRouterState({
34
34
  pathname: window.location.pathname,
35
35
  search: window.location.search,
36
- hash: window.location.hash
36
+ hash: window.location.hash,
37
37
  });
38
38
  };
39
39
  // Listen for popstate event (browser back/forward)
@@ -49,7 +49,7 @@ function useRouter() {
49
49
  setRouterState({
50
50
  pathname: window.location.pathname,
51
51
  search: window.location.search,
52
- hash: window.location.hash
52
+ hash: window.location.hash,
53
53
  });
54
54
  }, []);
55
55
  const replace = (0, react_1.useCallback)((url) => {
@@ -58,7 +58,7 @@ function useRouter() {
58
58
  setRouterState({
59
59
  pathname: window.location.pathname,
60
60
  search: window.location.search,
61
- hash: window.location.hash
61
+ hash: window.location.hash,
62
62
  });
63
63
  }, []);
64
64
  const back = (0, react_1.useCallback)(() => {
@@ -72,7 +72,7 @@ function useRouter() {
72
72
  push,
73
73
  replace,
74
74
  back,
75
- forward
75
+ forward,
76
76
  };
77
77
  }
78
78
  exports.default = useRouter;
@@ -13,12 +13,12 @@ function useSiwe() {
13
13
  throw new Error("Account not found");
14
14
  // generate challenge
15
15
  const challenge = await app_1.default.service("global-accounts-challenge").create({
16
- address: account.address
16
+ address: account.address,
17
17
  });
18
18
  (0, debug_1.default)("@@useAuthenticate:challenge", challenge);
19
19
  // sign challenge
20
20
  const signature = await account.signMessage({
21
- message: challenge.message
21
+ message: challenge.message,
22
22
  });
23
23
  (0, debug_1.default)("@@useAuthenticate:signature", signature);
24
24
  // authenticate
@@ -27,12 +27,12 @@ function useSiwe() {
27
27
  message: challenge.message,
28
28
  signature,
29
29
  serverSignature: challenge.serverSignature,
30
- nonce: challenge.nonce
30
+ nonce: challenge.nonce,
31
31
  });
32
32
  (0, debug_1.default)("@@useAuthenticate:response", response);
33
33
  return response;
34
34
  }, []);
35
35
  return {
36
- authenticate
36
+ authenticate,
37
37
  };
38
38
  }
@@ -12,7 +12,7 @@ function useTokenBalance({ token, address }) {
12
12
  const { ready } = (0, react_1.useB3)();
13
13
  const account = (0, react_1.useAccountWallet)();
14
14
  const effectiveAddress = address || account?.address;
15
- const { data: tokenBalance, isLoading, isFetching, refetch } = (0, react_query_1.useQuery)({
15
+ const { data: tokenBalance, isLoading, isFetching, refetch, } = (0, react_query_1.useQuery)({
16
16
  queryKey: ["tokenBalance", effectiveAddress, token.chainId, token.address],
17
17
  queryFn: async () => {
18
18
  if (!effectiveAddress)
@@ -23,20 +23,20 @@ function useTokenBalance({ token, address }) {
23
23
  const rawBalance = nativeToken.balance;
24
24
  return {
25
25
  formatted: (0, number_1.formatTokenAmount)(BigInt(rawBalance), Number(nativeToken.decimals || 18)),
26
- raw: BigInt(rawBalance)
26
+ raw: BigInt(rawBalance),
27
27
  };
28
28
  }
29
29
  return { formatted: "0", raw: null };
30
30
  }
31
31
  const response = await (0, thirdweb_insights_1.getERC20Balances)(effectiveAddress, {
32
32
  chainIds: [token.chainId],
33
- includeSpam: false
33
+ includeSpam: false,
34
34
  });
35
35
  const tokenBalance = response.data?.find(t => t.token_address === token.address);
36
36
  if (tokenBalance?.balance) {
37
37
  return {
38
38
  formatted: (0, number_1.formatTokenAmount)(BigInt(tokenBalance.balance), Number(tokenBalance.decimals || 18)),
39
- raw: BigInt(tokenBalance.balance)
39
+ raw: BigInt(tokenBalance.balance),
40
40
  };
41
41
  }
42
42
  return { formatted: "0", raw: null };
@@ -45,7 +45,7 @@ function useTokenBalance({ token, address }) {
45
45
  staleTime: 30000,
46
46
  gcTime: 5 * 60 * 1000,
47
47
  retry: 2,
48
- structuralSharing: false
48
+ structuralSharing: false,
49
49
  });
50
50
  // Force a refetch when the wallet or token changes
51
51
  (0, react_2.useEffect)(() => {
@@ -58,6 +58,6 @@ function useTokenBalance({ token, address }) {
58
58
  return {
59
59
  rawBalance: tokenBalance?.raw || BigInt(0),
60
60
  formattedBalance: tokenBalance?.formatted || "0",
61
- isLoading: isActuallyLoading
61
+ isLoading: isActuallyLoading,
62
62
  };
63
63
  }
@@ -18,5 +18,5 @@ interface UseTokenBalancesByChainProps {
18
18
  chainsIds: number | number[];
19
19
  enabled?: boolean;
20
20
  }
21
- export declare function useTokenBalancesByChain({ address, chainsIds, enabled }: UseTokenBalancesByChainProps): TokenBalancesByChain;
21
+ export declare function useTokenBalancesByChain({ address, chainsIds, enabled, }: UseTokenBalancesByChainProps): TokenBalancesByChain;
22
22
  export {};
@@ -8,10 +8,10 @@ const b3Chain_1 = require("../../../shared/constants/chains/b3Chain");
8
8
  const chains_1 = require("../../../shared/utils/chains");
9
9
  const thirdweb_1 = require("../../../shared/utils/thirdweb");
10
10
  const wallets_1 = require("thirdweb/wallets");
11
- function useTokenBalancesByChain({ address, chainsIds, enabled = true }) {
11
+ function useTokenBalancesByChain({ address, chainsIds, enabled = true, }) {
12
12
  // Normalize chains to array
13
13
  const chainIds = Array.isArray(chainsIds) ? chainsIds : [chainsIds];
14
- const { data: combinedData, isLoading, error } = (0, react_query_1.useQuery)({
14
+ const { data: combinedData, isLoading, error, } = (0, react_query_1.useQuery)({
15
15
  queryKey: ["tokenBalancesByChain", address, chainIds.join(",")],
16
16
  queryFn: async () => {
17
17
  try {
@@ -22,20 +22,20 @@ function useTokenBalancesByChain({ address, chainsIds, enabled = true }) {
22
22
  const walletBalance = await (0, wallets_1.getWalletBalance)({
23
23
  address,
24
24
  client: thirdweb_1.client,
25
- chain: (0, b3Chain_1.viemToThirdwebChain)((0, chains_1.getChainById)(chainId))
25
+ chain: (0, b3Chain_1.viemToThirdwebChain)((0, chains_1.getChainById)(chainId)),
26
26
  });
27
27
  return {
28
28
  chainId,
29
- ...walletBalance
29
+ ...walletBalance,
30
30
  };
31
31
  })),
32
32
  (0, thirdweb_insights_1.getERC20Balances)(address, {
33
- chainIds
34
- })
33
+ chainIds,
34
+ }),
35
35
  ]);
36
36
  return {
37
37
  nativeTokens,
38
- fungibleTokens: fungibleResponse.data
38
+ fungibleTokens: fungibleResponse.data,
39
39
  };
40
40
  }
41
41
  catch (err) {
@@ -47,12 +47,12 @@ function useTokenBalancesByChain({ address, chainsIds, enabled = true }) {
47
47
  staleTime: 30000, // Consider data fresh for 30 seconds
48
48
  gcTime: 5 * 60 * 1000, // Keep in cache for 5 minutes
49
49
  retry: 2, // Limit retries on failure
50
- structuralSharing: false
50
+ structuralSharing: false,
51
51
  });
52
52
  return {
53
53
  nativeTokens: combinedData?.nativeTokens ?? [],
54
54
  fungibleTokens: combinedData?.fungibleTokens ?? [],
55
55
  isLoading,
56
- error: error
56
+ error: error,
57
57
  };
58
58
  }
@@ -17,9 +17,9 @@ function useTokenData(chainId, address) {
17
17
  method: "POST",
18
18
  headers: {
19
19
  "X-Service-Method": "findByAddress",
20
- "Content-Type": "application/json"
20
+ "Content-Type": "application/json",
21
21
  },
22
- body: JSON.stringify({ chainId, address: normalizedAddress })
22
+ body: JSON.stringify({ chainId, address: normalizedAddress }),
23
23
  });
24
24
  if (response.ok) {
25
25
  const data = await response.json();
@@ -42,6 +42,6 @@ function useTokenData(chainId, address) {
42
42
  enabled: Boolean(chainId) && Boolean(address) && address?.trim() !== "",
43
43
  refetchOnWindowFocus: false,
44
44
  refetchOnMount: false,
45
- refetchOnReconnect: false
45
+ refetchOnReconnect: false,
46
46
  });
47
47
  }
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useTokenFromUrl = useTokenFromUrl;
5
5
  exports.useTokenFromAddress = useTokenFromAddress;
6
6
  const supported_1 = require("../../../shared/constants/chains/supported");
7
+ const hooks_1 = require("../../../shared/react/hooks");
7
8
  const react_query_1 = require("@tanstack/react-query");
8
- const navigation_1 = require("next/navigation");
9
9
  async function fetchTokenInfo(network, address) {
10
10
  const response = await fetch("https://api.b3.fun/tokens", {
11
11
  method: "POST",
12
12
  headers: {
13
13
  "Content-Type": "application/json",
14
- "X-Service-Method": "getCoinGeckoTokenInfo"
14
+ "X-Service-Method": "getCoinGeckoTokenInfo",
15
15
  },
16
16
  body: JSON.stringify({
17
17
  network,
18
- address
19
- })
18
+ address,
19
+ }),
20
20
  });
21
21
  if (!response.ok) {
22
22
  throw new Error("Failed to fetch token info");
@@ -28,10 +28,10 @@ async function fetchTokenInfo(network, address) {
28
28
  * Looks for parameters: [prefix]Currency
29
29
  */
30
30
  function useTokenFromUrl({ defaultToken, prefix }) {
31
- const searchParams = (0, navigation_1.useSearchParams)();
31
+ const searchParams = (0, hooks_1.useSearchParams)();
32
32
  // Get parameters from URL
33
- const currencyParam = searchParams?.get(`${prefix}Currency`);
34
- const chainIdParam = searchParams?.get(`${prefix}ChainId`);
33
+ const currencyParam = searchParams.get(`${prefix}Currency`);
34
+ const chainIdParam = searchParams.get(`${prefix}ChainId`);
35
35
  // Determine if we should fetch token info
36
36
  const shouldFetchToken = Boolean(currencyParam && chainIdParam && currencyParam.toLowerCase() !== defaultToken.address.toLowerCase());
37
37
  // Determine network based on chainId
@@ -41,7 +41,7 @@ function useTokenFromUrl({ defaultToken, prefix }) {
41
41
  queryFn: () => fetchTokenInfo(network, currencyParam),
42
42
  enabled: shouldFetchToken,
43
43
  staleTime: Infinity,
44
- gcTime: Infinity
44
+ gcTime: Infinity,
45
45
  });
46
46
  // Return default token if no params or same as default
47
47
  if (!shouldFetchToken) {
@@ -52,7 +52,7 @@ function useTokenFromUrl({ defaultToken, prefix }) {
52
52
  return {
53
53
  ...defaultToken,
54
54
  address: currencyParam,
55
- chainId: Number(chainIdParam)
55
+ chainId: Number(chainIdParam),
56
56
  };
57
57
  }
58
58
  // Return enhanced token with API data
@@ -63,8 +63,8 @@ function useTokenFromUrl({ defaultToken, prefix }) {
63
63
  symbol: tokenInfo.data.attributes.symbol,
64
64
  decimals: tokenInfo.data.attributes.decimals,
65
65
  metadata: {
66
- logoURI: tokenInfo.data.attributes.image_url
67
- }
66
+ logoURI: tokenInfo.data.attributes.image_url,
67
+ },
68
68
  };
69
69
  }
70
70
  function useTokenFromAddress({ address, chainId }) {
@@ -73,7 +73,7 @@ function useTokenFromAddress({ address, chainId }) {
73
73
  queryFn: () => fetchTokenInfo((0, supported_1.getCoingeckoChainInfo)(chainId).coingecko_id, address),
74
74
  enabled: Boolean(address),
75
75
  staleTime: Infinity,
76
- gcTime: Infinity
76
+ gcTime: Infinity,
77
77
  });
78
78
  if (isError || !tokenInfo) {
79
79
  return undefined;
@@ -85,7 +85,7 @@ function useTokenFromAddress({ address, chainId }) {
85
85
  symbol: tokenInfo?.data.attributes.symbol || "",
86
86
  decimals: tokenInfo?.data.attributes.decimals || 18,
87
87
  metadata: {
88
- logoURI: tokenInfo?.data.attributes.image_url
89
- }
88
+ logoURI: tokenInfo?.data.attributes.image_url,
89
+ },
90
90
  };
91
91
  }
@@ -8,7 +8,7 @@ interface UseTokenPriceProps {
8
8
  queryOptions?: Omit<UseQueryOptions<number, Error>, "queryKey" | "queryFn" | "refetchInterval" | "staleTime" | "retry" | "retryDelay">;
9
9
  }
10
10
  export declare function useTokenPrice({ contractAddress, chainId, // Default to Base
11
- vsCurrency, refreshInterval, queryOptions }: UseTokenPriceProps): {
11
+ vsCurrency, refreshInterval, queryOptions, }: UseTokenPriceProps): {
12
12
  price: number;
13
13
  isLoading: boolean;
14
14
  error: Error | null;
@@ -9,8 +9,8 @@ async function fetchTokenPrice(contractAddress, chainId, vsCurrency = "usd") {
9
9
  const response = await fetch(`https://pro-api.coingecko.com/api/v3/simple/token_price/${platformId}?contract_addresses=${contractAddress}&vs_currencies=${vsCurrency}`, {
10
10
  headers: {
11
11
  accept: "application/json",
12
- "x-cg-pro-api-key": process.env.COINGECKO_API_KEY
13
- }
12
+ "x-cg-pro-api-key": process.env.COINGECKO_API_KEY,
13
+ },
14
14
  });
15
15
  if (!response.ok) {
16
16
  throw new Error(`Failed to fetch token price: ${response.status} ${response.statusText}`);
@@ -28,21 +28,21 @@ async function fetchTokenPrice(contractAddress, chainId, vsCurrency = "usd") {
28
28
  return data[contractAddress][vsCurrency];
29
29
  }
30
30
  function useTokenPrice({ contractAddress, chainId = 8453, // Default to Base
31
- vsCurrency = "usd", refreshInterval = 30000, queryOptions = {} }) {
32
- const { data: price = 0, isLoading, error, refetch } = (0, react_query_1.useQuery)({
31
+ vsCurrency = "usd", refreshInterval = 30000, queryOptions = {}, }) {
32
+ const { data: price = 0, isLoading, error, refetch, } = (0, react_query_1.useQuery)({
33
33
  queryKey: ["tokenPrice", contractAddress, chainId, vsCurrency],
34
34
  queryFn: () => fetchTokenPrice(contractAddress, chainId, vsCurrency),
35
35
  refetchInterval: refreshInterval,
36
36
  staleTime: refreshInterval / 2, // Consider data stale after half the refresh interval
37
37
  retry: 3,
38
38
  retryDelay: attemptIndex => Math.min(1000 * 2 ** attemptIndex, 30000),
39
- ...queryOptions
39
+ ...queryOptions,
40
40
  });
41
41
  return {
42
42
  price,
43
43
  isLoading,
44
44
  error,
45
- refetch
45
+ refetch,
46
46
  };
47
47
  }
48
48
  exports.default = useTokenPrice;
@@ -7,7 +7,7 @@ interface UseTokenPriceWithFallbackProps {
7
7
  refreshInterval?: number;
8
8
  }
9
9
  export declare function useTokenPriceWithFallback({ contractAddress, symbol, chainId, // Default to Base
10
- vsCurrency, refreshInterval }: UseTokenPriceWithFallbackProps): {
10
+ vsCurrency, refreshInterval, }: UseTokenPriceWithFallbackProps): {
11
11
  price: number;
12
12
  isLoading: boolean;
13
13
  error: false | Error | null;
@@ -5,22 +5,22 @@ exports.useTokenPriceWithFallback = useTokenPriceWithFallback;
5
5
  const useExchangeRate_1 = require("./useExchangeRate");
6
6
  const useTokenPrice_1 = require("./useTokenPrice");
7
7
  function useTokenPriceWithFallback({ contractAddress, symbol, chainId = 8453, // Default to Base
8
- vsCurrency = "usd", refreshInterval = 30000 }) {
8
+ vsCurrency = "usd", refreshInterval = 30000, }) {
9
9
  // Try to get the exchange rate using the symbol if provided
10
- const { rate: exchangeRate, isLoading: isExchangeRateLoading, error: exchangeRateError } = (0, useExchangeRate_1.useExchangeRate)({
10
+ const { rate: exchangeRate, isLoading: isExchangeRateLoading, error: exchangeRateError, } = (0, useExchangeRate_1.useExchangeRate)({
11
11
  baseCurrency: symbol || "",
12
12
  quoteCurrency: vsCurrency,
13
- refreshInterval
13
+ refreshInterval,
14
14
  });
15
15
  // Only call useTokenPrice if exchange rate is not available
16
- const { price: tokenPrice, isLoading: isTokenPriceLoading, error: tokenPriceError } = (0, useTokenPrice_1.useTokenPrice)({
16
+ const { price: tokenPrice, isLoading: isTokenPriceLoading, error: tokenPriceError, } = (0, useTokenPrice_1.useTokenPrice)({
17
17
  contractAddress,
18
18
  chainId,
19
19
  vsCurrency,
20
20
  refreshInterval,
21
21
  queryOptions: {
22
- enabled: !isExchangeRateLoading && !exchangeRate && !exchangeRateError
23
- }
22
+ enabled: !isExchangeRateLoading && !exchangeRate && !exchangeRateError,
23
+ },
24
24
  });
25
25
  // Determine which price to use
26
26
  const price = exchangeRate || tokenPrice;
@@ -29,6 +29,6 @@ vsCurrency = "usd", refreshInterval = 30000 }) {
29
29
  return {
30
30
  price,
31
31
  isLoading,
32
- error
32
+ error,
33
33
  };
34
34
  }
@@ -50,5 +50,5 @@ interface UseTokensFromAddressProps {
50
50
  page?: number;
51
51
  metadata?: boolean;
52
52
  }
53
- export declare function useTokensFromAddress({ ownerAddress, chain, limit, page, metadata }: UseTokensFromAddressProps): import("@tanstack/react-query").UseQueryResult<TokensResponse, Error>;
53
+ export declare function useTokensFromAddress({ ownerAddress, chain, limit, page, metadata, }: UseTokensFromAddressProps): import("@tanstack/react-query").UseQueryResult<TokensResponse, Error>;
54
54
  export {};
@@ -8,7 +8,7 @@ const constants_1 = require("../../../shared/constants");
8
8
  const react_query_1 = require("@tanstack/react-query");
9
9
  const debug_1 = __importDefault(require("debug"));
10
10
  const debug = (0, debug_1.default)("@@b3:useTokensFromAddress");
11
- function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metadata = true }) {
11
+ function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metadata = true, }) {
12
12
  return (0, react_query_1.useQuery)({
13
13
  queryKey: ["useTokensFromAddress", ownerAddress, chain, limit, page, metadata],
14
14
  queryFn: async () => {
@@ -46,6 +46,6 @@ function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metad
46
46
  const data = await response.json();
47
47
  return data;
48
48
  },
49
- enabled: Boolean(ownerAddress)
49
+ enabled: Boolean(ownerAddress),
50
50
  });
51
51
  }
@@ -30,6 +30,6 @@ function useURLParams() {
30
30
  }, [searchParams]);
31
31
  return {
32
32
  searchParams,
33
- updateURLParams
33
+ updateURLParams,
34
34
  };
35
35
  }
@@ -1,3 +1,3 @@
1
1
  export { useAuthStore } from "./useAuthStore";
2
2
  export { useModalStore } from "./useModalStore";
3
- export type { AnySpendBuySpinProps, AnySpendFundTournamentProps, AnySpendJoinTournamentProps, AnySpendModalProps, AnySpendNftProps, AnyspendOrderDetailsProps, AnySpendOrderHistoryProps, AnySpendStakeB3Props, ManageAccountModalProps, ModalContentType, RequestPermissionsModalProps, SignInWithB3ModalProps, TransakProps } from "./useModalStore";
3
+ export type { AnySpendBuySpinProps, AnySpendFundTournamentProps, AnySpendJoinTournamentProps, AnySpendModalProps, AnySpendNftProps, AnyspendOrderDetailsProps, AnySpendOrderHistoryProps, AnySpendStakeB3Props, ManageAccountModalProps, ModalContentType, RequestPermissionsModalProps, SignInWithB3ModalProps, TransakProps, } from "./useModalStore";
@@ -23,7 +23,7 @@ exports.useAuthStore = (0, zustand_1.create)(set => ({
23
23
  accessToken: params.accessToken,
24
24
  chain: params.chain,
25
25
  onSuccess: params.onSuccess,
26
- onError: params.onError
26
+ onError: params.onError,
27
27
  }),
28
28
  reset: () => set({
29
29
  isOpen: false,
@@ -34,6 +34,6 @@ exports.useAuthStore = (0, zustand_1.create)(set => ({
34
34
  isAuthenticating: false,
35
35
  isAuthenticated: false,
36
36
  onSuccess: undefined,
37
- onError: undefined
38
- })
37
+ onError: undefined,
38
+ }),
39
39
  }));
@@ -1,5 +1,6 @@
1
1
  import { Token, Tournament } from "../../../anyspend";
2
2
  import { NftContract } from "../../../anyspend/types";
3
+ import { GenerateSigMintResponse } from "../../../anyspend/types/signature-mint";
3
4
  import { AllowedStrategy } from "../../../global-account/react";
4
5
  import { PermissionsConfig } from "../../../global-account/types/permissions";
5
6
  import { Address, Chain } from "thirdweb";
@@ -124,6 +125,8 @@ export interface AnySpendNftProps extends BaseModalProps {
124
125
  nftContract: NftContract;
125
126
  /** Recipient address to receive the NFT */
126
127
  recipientAddress?: string;
128
+ /** Callback function called when the NFT is successfully transferred */
129
+ onSuccess?: (txHash?: string) => void;
127
130
  }
128
131
  /**
129
132
  * Props for the AnySpend tournament modal
@@ -234,10 +237,24 @@ export interface AnySpendBuySpinProps extends BaseModalProps {
234
237
  /** Prefill quantity of spins to purchase */
235
238
  prefillQuantity?: string;
236
239
  }
240
+ /**
241
+ * Props for the AnySpend Signature Mint modal
242
+ * Handles signature-based NFT minting
243
+ */
244
+ export interface AnySpendSignatureMintProps extends BaseModalProps {
245
+ /** Modal type identifier */
246
+ type: "anySpendSignatureMint";
247
+ /** Signature data required for minting */
248
+ signatureData: GenerateSigMintResponse;
249
+ /** Optional image URL for NFT preview */
250
+ imageUrl?: string;
251
+ /** Callback function called when minting is successful */
252
+ onSuccess?: () => void;
253
+ }
237
254
  /**
238
255
  * Union type of all possible modal content types
239
256
  */
240
- export type ModalContentType = SignInWithB3ModalProps | RequestPermissionsModalProps | ManageAccountModalProps | AnySpendModalProps | AnyspendOrderDetailsProps | AnySpendNftProps | AnySpendJoinTournamentProps | AnySpendFundTournamentProps | TransakProps | AnySpendOrderHistoryProps | AnySpendStakeB3Props | AnySpendBuySpinProps;
257
+ export type ModalContentType = SignInWithB3ModalProps | RequestPermissionsModalProps | ManageAccountModalProps | AnySpendModalProps | AnyspendOrderDetailsProps | AnySpendNftProps | AnySpendJoinTournamentProps | AnySpendFundTournamentProps | TransakProps | AnySpendOrderHistoryProps | AnySpendStakeB3Props | AnySpendBuySpinProps | AnySpendSignatureMintProps;
241
258
  /**
242
259
  * State interface for the modal store
243
260
  */
@@ -16,7 +16,7 @@ exports.useModalStore = (0, zustand_1.create)(set => ({
16
16
  const newHistory = state.contentType ? [...state.history, state.contentType] : state.history;
17
17
  return {
18
18
  contentType: content,
19
- history: newHistory
19
+ history: newHistory,
20
20
  };
21
21
  }),
22
22
  navigateBack: () => set(state => {
@@ -27,10 +27,10 @@ exports.useModalStore = (0, zustand_1.create)(set => ({
27
27
  const previousModal = newHistory.pop();
28
28
  return {
29
29
  contentType: previousModal || null,
30
- history: newHistory
30
+ history: newHistory,
31
31
  };
32
32
  }),
33
33
  clearHistory: () => set({ history: [] }),
34
34
  ecoSystemAccountAddress: undefined,
35
- setEcoSystemAccountAddress: (address) => set({ ecoSystemAccountAddress: address })
35
+ setEcoSystemAccountAddress: (address) => set({ ecoSystemAccountAddress: address }),
36
36
  }));
@@ -14,12 +14,12 @@ const authenticateWithRest = async (token) => {
14
14
  method: "POST",
15
15
  headers: {
16
16
  "Content-Type": "application/json",
17
- Authorization: `Bearer ${token}`
17
+ Authorization: `Bearer ${token}`,
18
18
  },
19
19
  body: JSON.stringify({
20
20
  strategy: "jwt",
21
- accessToken: token
22
- })
21
+ accessToken: token,
22
+ }),
23
23
  });
24
24
  return response;
25
25
  };
@@ -4,7 +4,7 @@ exports.chainNetworksSchema = void 0;
4
4
  const typebox_1 = require("@feathersjs/typebox");
5
5
  const ChainContractSchema = typebox_1.Type.Object({
6
6
  address: typebox_1.Type.String(),
7
- blockCreated: typebox_1.Type.Optional(typebox_1.Type.Integer())
7
+ blockCreated: typebox_1.Type.Optional(typebox_1.Type.Integer()),
8
8
  });
9
9
  exports.chainNetworksSchema = typebox_1.Type.Object({
10
10
  _id: (0, typebox_1.ObjectIdSchema)(),
@@ -13,27 +13,27 @@ exports.chainNetworksSchema = typebox_1.Type.Object({
13
13
  rpcUrls: typebox_1.Type.Object({
14
14
  default: typebox_1.Type.Object({
15
15
  http: typebox_1.Type.String({ format: "uri" }),
16
- ws: typebox_1.Type.String({ format: "uri" })
16
+ ws: typebox_1.Type.String({ format: "uri" }),
17
17
  }),
18
18
  backups: typebox_1.Type.Array(typebox_1.Type.Object({
19
19
  type: typebox_1.Type.Union([typebox_1.Type.Literal("http"), typebox_1.Type.Literal("ws")]),
20
- uri: typebox_1.Type.String()
21
- }))
20
+ uri: typebox_1.Type.String(),
21
+ })),
22
22
  }),
23
23
  icon: typebox_1.Type.Object({
24
24
  url: typebox_1.Type.String({ format: "uri" }),
25
25
  width: typebox_1.Type.Integer(),
26
26
  height: typebox_1.Type.Integer(),
27
- format: typebox_1.Type.String()
27
+ format: typebox_1.Type.String(),
28
28
  }),
29
29
  blockExplorers: typebox_1.Type.Object({
30
30
  explorerTitle: typebox_1.Type.String(),
31
- default: typebox_1.Type.String({ format: "uri" })
31
+ default: typebox_1.Type.String({ format: "uri" }),
32
32
  }),
33
33
  nativeCurrency: typebox_1.Type.Object({
34
34
  name: typebox_1.Type.String(),
35
35
  symbol: typebox_1.Type.String(),
36
- decimals: typebox_1.Type.Integer()
36
+ decimals: typebox_1.Type.Integer(),
37
37
  }),
38
38
  testnet: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
39
39
  testnetConfigID: typebox_1.Type.Optional(typebox_1.Type.Integer()),
@@ -44,5 +44,5 @@ exports.chainNetworksSchema = typebox_1.Type.Object({
44
44
  fees: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())),
45
45
  badge: typebox_1.Type.Optional(typebox_1.Type.String({ format: "uri" })),
46
46
  color: typebox_1.Type.Optional(typebox_1.Type.String()),
47
- enabledFeatures: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String()))
47
+ enabledFeatures: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
48
48
  }, { $id: "ChainNetworks", additionalProperties: false });
@@ -6,5 +6,5 @@ exports.featureFlagsSchema = typebox_1.Type.Object({
6
6
  _id: (0, typebox_1.ObjectIdSchema)(),
7
7
  id: typebox_1.Type.String(),
8
8
  enabled: typebox_1.Type.Boolean(),
9
- description: typebox_1.Type.String()
9
+ description: typebox_1.Type.String(),
10
10
  }, { $id: "FeatureFlags", additionalProperties: false });