@b3dotfun/sdk 0.0.7-alpha.27 → 0.0.7-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (749) hide show
  1. package/dist/cjs/anyspend/abis/abi-usdc-base.js +97 -97
  2. package/dist/cjs/anyspend/abis/erc20-staking.js +51 -51
  3. package/dist/cjs/anyspend/constants/index.js +10 -13
  4. package/dist/cjs/anyspend/index.d.ts +2 -4
  5. package/dist/cjs/anyspend/index.js +4 -4
  6. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
  7. package/dist/cjs/anyspend/react/components/AnySpend.js +68 -69
  8. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  9. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +66 -68
  10. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  11. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +101 -158
  12. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  13. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +5 -7
  14. package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +1 -1
  15. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  16. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +20 -21
  17. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +4 -7
  18. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  19. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  20. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +62 -51
  21. package/dist/cjs/anyspend/react/components/common/OrderHistory.js +6 -6
  22. package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +1 -1
  23. package/dist/cjs/anyspend/react/components/common/OrderToken.js +4 -4
  24. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  25. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  26. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  27. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +9 -9
  28. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  29. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +14 -15
  30. package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  31. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +3 -3
  32. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +25 -26
  33. package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  34. package/dist/cjs/anyspend/react/components/common/TokenBalance.js +2 -2
  35. package/dist/cjs/anyspend/react/components/index.d.ts +0 -2
  36. package/dist/cjs/anyspend/react/components/index.js +1 -5
  37. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  38. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +6 -6
  39. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +1 -0
  40. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  41. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +25 -26
  42. package/dist/cjs/anyspend/react/hooks/index.d.ts +2 -1
  43. package/dist/cjs/anyspend/react/hooks/index.js +2 -1
  44. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  45. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  46. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  47. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
  48. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  49. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  50. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  51. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  52. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +3 -3
  53. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  54. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +39 -0
  55. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  56. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  57. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  58. package/dist/cjs/anyspend/react/hooks/useGetGeo.js +1 -1
  59. package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +92 -0
  60. package/dist/cjs/anyspend/react/hooks/usePermitData.js +158 -0
  61. package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  62. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +2 -2
  63. package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +6 -7
  64. package/dist/cjs/anyspend/services/anyspend.d.ts +40 -9
  65. package/dist/cjs/anyspend/services/anyspend.js +24 -11
  66. package/dist/cjs/anyspend/types/custom.js +2 -2
  67. package/dist/cjs/anyspend/types/globalWallet.js +1 -1
  68. package/dist/cjs/anyspend/types/index.d.ts +1 -1
  69. package/dist/cjs/anyspend/types/index.js +1 -1
  70. package/dist/cjs/anyspend/types/nft.d.ts +0 -7
  71. package/dist/cjs/anyspend/types/nft.js +6 -8
  72. package/dist/cjs/anyspend/types/onramp.d.ts +0 -3
  73. package/dist/cjs/anyspend/types/onramp.js +1 -2
  74. package/dist/cjs/anyspend/types/order.d.ts +200 -40
  75. package/dist/cjs/anyspend/types/order.js +12 -7
  76. package/dist/cjs/anyspend/types/permit.d.ts +21 -0
  77. package/dist/cjs/anyspend/types/permit.js +11 -0
  78. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +235 -98
  79. package/dist/cjs/anyspend/types/req-res/createOrder.js +9 -9
  80. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  81. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  82. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  83. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +2 -2
  84. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  85. package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
  86. package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -37
  87. package/dist/cjs/anyspend/types/req-res/getQuote.js +9 -14
  88. package/dist/cjs/anyspend/types/req-res/getTokenList.js +3 -3
  89. package/dist/cjs/anyspend/types/req-res/index.d.ts +1 -0
  90. package/dist/cjs/anyspend/types/req-res/index.js +1 -0
  91. package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  92. package/dist/cjs/anyspend/types/req-res/sendPermitData.js +11 -0
  93. package/dist/cjs/anyspend/types/swap.js +2 -2
  94. package/dist/cjs/anyspend/types/token.js +2 -2
  95. package/dist/cjs/anyspend/types/tournament.js +4 -4
  96. package/dist/cjs/anyspend/types/transaction.js +4 -4
  97. package/dist/cjs/anyspend/utils/chain.js +16 -16
  98. package/dist/cjs/anyspend/utils/format.js +6 -2
  99. package/dist/cjs/anyspend/utils/orderPayload.d.ts +3 -3
  100. package/dist/cjs/anyspend/utils/orderPayload.js +8 -22
  101. package/dist/cjs/anyspend/utils/token.js +10 -10
  102. package/dist/cjs/global-account/app.js +4 -4
  103. package/dist/cjs/global-account/app.native.js +4 -4
  104. package/dist/cjs/global-account/bsmnt.js +4 -4
  105. package/dist/cjs/global-account/bsmnt.native.js +4 -4
  106. package/dist/cjs/global-account/react/components/B3DynamicModal.js +3 -13
  107. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  108. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +16 -17
  109. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  110. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  111. package/dist/cjs/global-account/react/components/B3Provider/types.js +1 -1
  112. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  113. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +5 -5
  114. package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  115. package/dist/cjs/global-account/react/components/MintButton/MintButton.js +5 -5
  116. package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  117. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  118. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +5 -5
  119. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  120. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  121. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  122. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +17 -12
  123. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  124. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +12 -12
  125. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  126. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  127. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  128. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  129. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  130. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  131. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  132. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
  133. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  134. package/dist/cjs/global-account/react/components/StyleRoot.js +1 -0
  135. package/dist/cjs/global-account/react/components/Transak/TransakModal.js +4 -4
  136. package/dist/cjs/global-account/react/components/custom/Button.js +5 -5
  137. package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  138. package/dist/cjs/global-account/react/components/index.d.ts +4 -4
  139. package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  140. package/dist/cjs/global-account/react/components/ui/Loading.js +2 -2
  141. package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  142. package/dist/cjs/global-account/react/components/ui/ShinyButton.js +3 -3
  143. package/dist/cjs/global-account/react/components/ui/TabSystem.js +1 -1
  144. package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +1 -1
  145. package/dist/cjs/global-account/react/components/ui/Tabs.js +1 -1
  146. package/dist/cjs/global-account/react/components/ui/badge.js +4 -4
  147. package/dist/cjs/global-account/react/components/ui/button.js +5 -5
  148. package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
  149. package/dist/cjs/global-account/react/components/ui/dialog.d.ts +1 -1
  150. package/dist/cjs/global-account/react/components/ui/drawer.d.ts +1 -1
  151. package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +12 -12
  152. package/dist/cjs/global-account/react/components/ui/glare-card.js +11 -11
  153. package/dist/cjs/global-account/react/components/ui/input.js +1 -1
  154. package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +1 -1
  155. package/dist/cjs/global-account/react/components/ui/text-loop.js +2 -2
  156. package/dist/cjs/global-account/react/components/ui/text-shimmer.js +2 -2
  157. package/dist/cjs/global-account/react/components/ui/tooltip.js +1 -1
  158. package/dist/cjs/global-account/react/hooks/useAccountAssets.js +4 -4
  159. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -8
  160. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  161. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  162. package/dist/cjs/global-account/react/hooks/useAuthentication.js +3 -3
  163. package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  164. package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  165. package/dist/cjs/global-account/react/hooks/useB3EnsName.js +23 -32
  166. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  167. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +10 -10
  168. package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +1 -1
  169. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  170. package/dist/cjs/global-account/react/hooks/useClaim.js +4 -4
  171. package/dist/cjs/global-account/react/hooks/useConnect.js +3 -3
  172. package/dist/cjs/global-account/react/hooks/useExchangeRate.js +3 -3
  173. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  174. package/dist/cjs/global-account/react/hooks/useGetGeo.js +1 -1
  175. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  176. package/dist/cjs/global-account/react/hooks/useNativeBalance.js +6 -6
  177. package/dist/cjs/global-account/react/hooks/useOnchainName.js +10 -10
  178. package/dist/cjs/global-account/react/hooks/useOneBalance.js +2 -2
  179. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  180. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  181. package/dist/cjs/global-account/react/hooks/useRouter.js +6 -6
  182. package/dist/cjs/global-account/react/hooks/useSiwe.js +4 -4
  183. package/dist/cjs/global-account/react/hooks/useTokenBalance.js +6 -6
  184. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  185. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  186. package/dist/cjs/global-account/react/hooks/useTokenData.js +3 -3
  187. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +14 -14
  188. package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  189. package/dist/cjs/global-account/react/hooks/useTokenPrice.js +6 -6
  190. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  191. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  192. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  193. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +2 -2
  194. package/dist/cjs/global-account/react/hooks/useURLParams.js +1 -1
  195. package/dist/cjs/global-account/react/stores/index.d.ts +1 -1
  196. package/dist/cjs/global-account/react/stores/useAuthStore.js +3 -3
  197. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +1 -18
  198. package/dist/cjs/global-account/react/stores/useModalStore.js +3 -3
  199. package/dist/cjs/global-account/server.js +3 -3
  200. package/dist/cjs/global-account/types/chain-networks.js +8 -8
  201. package/dist/cjs/global-account/types/feature-flags.js +1 -1
  202. package/dist/cjs/shared/constants/chains/b3Chain.js +35 -35
  203. package/dist/cjs/shared/constants/chains/chainPlatformMap.js +1 -1
  204. package/dist/cjs/shared/constants/chains/supported.js +1 -1
  205. package/dist/cjs/shared/constants/index.d.ts +0 -1
  206. package/dist/cjs/shared/constants/index.js +2 -3
  207. package/dist/cjs/shared/thirdweb/initiateClient.js +2 -2
  208. package/dist/cjs/shared/thirdweb/openapi-ts.config.js +1 -1
  209. package/dist/cjs/shared/utils/b3Ens.js +4 -4
  210. package/dist/cjs/shared/utils/chain-transformers.js +9 -9
  211. package/dist/cjs/shared/utils/fetchBalances.js +4 -4
  212. package/dist/cjs/shared/utils/index.d.ts +0 -9
  213. package/dist/cjs/shared/utils/index.js +0 -17
  214. package/dist/cjs/shared/utils/insights.js +28 -28
  215. package/dist/cjs/shared/utils/ipfs.js +1 -1
  216. package/dist/cjs/shared/utils/number.js +3 -3
  217. package/dist/cjs/shared/utils/simplehash.js +22 -22
  218. package/dist/cjs/shared/utils/thirdweb-insights.js +15 -15
  219. package/dist/esm/anyspend/abis/abi-usdc-base.js +97 -97
  220. package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
  221. package/dist/esm/anyspend/constants/index.js +10 -13
  222. package/dist/esm/anyspend/index.d.ts +2 -4
  223. package/dist/esm/anyspend/index.js +4 -4
  224. package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
  225. package/dist/esm/anyspend/react/components/AnySpend.js +22 -23
  226. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  227. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +39 -41
  228. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  229. package/dist/esm/anyspend/react/components/AnySpendCustom.js +81 -138
  230. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  231. package/dist/esm/anyspend/react/components/AnySpendNFT.js +5 -7
  232. package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +1 -1
  233. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  234. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +21 -22
  235. package/dist/esm/anyspend/react/components/AnySpendTournament.js +4 -7
  236. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  237. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +1 -1
  238. package/dist/esm/anyspend/react/components/common/OrderDetails.js +63 -52
  239. package/dist/esm/anyspend/react/components/common/OrderHistory.js +1 -1
  240. package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +1 -1
  241. package/dist/esm/anyspend/react/components/common/OrderToken.js +4 -4
  242. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  243. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +2 -2
  244. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  245. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +3 -3
  246. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  247. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
  248. package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
  249. package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +3 -3
  250. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +13 -14
  251. package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  252. package/dist/esm/anyspend/react/components/common/TokenBalance.js +2 -2
  253. package/dist/esm/anyspend/react/components/index.d.ts +0 -2
  254. package/dist/esm/anyspend/react/components/index.js +0 -2
  255. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  256. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +2 -2
  257. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +1 -0
  258. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  259. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +15 -16
  260. package/dist/esm/anyspend/react/hooks/index.d.ts +2 -1
  261. package/dist/esm/anyspend/react/hooks/index.js +2 -1
  262. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  263. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
  264. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  265. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +7 -7
  266. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  267. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
  268. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  269. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
  270. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +3 -3
  271. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  272. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +36 -0
  273. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +3 -3
  274. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
  275. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
  276. package/dist/esm/anyspend/react/hooks/useGetGeo.js +1 -1
  277. package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +92 -0
  278. package/dist/esm/anyspend/react/hooks/usePermitData.js +154 -0
  279. package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +2 -2
  280. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +2 -2
  281. package/dist/esm/anyspend/react/providers/AnyspendProvider.js +4 -5
  282. package/dist/esm/anyspend/services/anyspend.d.ts +40 -9
  283. package/dist/esm/anyspend/services/anyspend.js +25 -12
  284. package/dist/esm/anyspend/types/custom.js +2 -2
  285. package/dist/esm/anyspend/types/globalWallet.js +1 -1
  286. package/dist/esm/anyspend/types/index.d.ts +1 -1
  287. package/dist/esm/anyspend/types/index.js +1 -1
  288. package/dist/esm/anyspend/types/nft.d.ts +0 -7
  289. package/dist/esm/anyspend/types/nft.js +6 -8
  290. package/dist/esm/anyspend/types/onramp.d.ts +0 -3
  291. package/dist/esm/anyspend/types/onramp.js +1 -2
  292. package/dist/esm/anyspend/types/order.d.ts +200 -40
  293. package/dist/esm/anyspend/types/order.js +12 -7
  294. package/dist/esm/anyspend/types/permit.d.ts +21 -0
  295. package/dist/esm/anyspend/types/permit.js +8 -0
  296. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +235 -98
  297. package/dist/esm/anyspend/types/req-res/createOrder.js +9 -9
  298. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
  299. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  300. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
  301. package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +2 -2
  302. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  303. package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
  304. package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -37
  305. package/dist/esm/anyspend/types/req-res/getQuote.js +9 -14
  306. package/dist/esm/anyspend/types/req-res/getTokenList.js +3 -3
  307. package/dist/esm/anyspend/types/req-res/index.d.ts +1 -0
  308. package/dist/esm/anyspend/types/req-res/index.js +1 -0
  309. package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  310. package/dist/esm/anyspend/types/req-res/sendPermitData.js +8 -0
  311. package/dist/esm/anyspend/types/swap.js +2 -2
  312. package/dist/esm/anyspend/types/token.js +2 -2
  313. package/dist/esm/anyspend/types/tournament.js +4 -4
  314. package/dist/esm/anyspend/types/transaction.js +4 -4
  315. package/dist/esm/anyspend/utils/chain.js +18 -18
  316. package/dist/esm/anyspend/utils/format.js +6 -2
  317. package/dist/esm/anyspend/utils/orderPayload.d.ts +3 -3
  318. package/dist/esm/anyspend/utils/orderPayload.js +9 -23
  319. package/dist/esm/anyspend/utils/token.js +10 -10
  320. package/dist/esm/global-account/app.js +4 -4
  321. package/dist/esm/global-account/app.native.js +4 -4
  322. package/dist/esm/global-account/bsmnt.js +4 -4
  323. package/dist/esm/global-account/bsmnt.native.js +4 -4
  324. package/dist/esm/global-account/react/components/B3DynamicModal.js +4 -14
  325. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  326. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +7 -8
  327. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  328. package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
  329. package/dist/esm/global-account/react/components/B3Provider/types.js +1 -1
  330. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  331. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +6 -6
  332. package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  333. package/dist/esm/global-account/react/components/MintButton/MintButton.js +5 -5
  334. package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +2 -2
  335. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  336. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +6 -6
  337. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  338. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
  339. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  340. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +13 -8
  341. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  342. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -13
  343. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +2 -2
  344. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  345. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
  346. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  347. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
  348. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
  349. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  350. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +3 -3
  351. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
  352. package/dist/esm/global-account/react/components/StyleRoot.js +1 -0
  353. package/dist/esm/global-account/react/components/Transak/TransakModal.js +4 -4
  354. package/dist/esm/global-account/react/components/custom/Button.js +5 -5
  355. package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
  356. package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +1 -1
  357. package/dist/esm/global-account/react/components/index.d.ts +4 -4
  358. package/dist/esm/global-account/react/components/index.js +4 -4
  359. package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +1 -1
  360. package/dist/esm/global-account/react/components/ui/Loading.js +2 -2
  361. package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  362. package/dist/esm/global-account/react/components/ui/ShinyButton.js +3 -3
  363. package/dist/esm/global-account/react/components/ui/TabSystem.js +1 -1
  364. package/dist/esm/global-account/react/components/ui/Tabs.d.ts +1 -1
  365. package/dist/esm/global-account/react/components/ui/Tabs.js +1 -1
  366. package/dist/esm/global-account/react/components/ui/badge.js +4 -4
  367. package/dist/esm/global-account/react/components/ui/button.js +5 -5
  368. package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
  369. package/dist/esm/global-account/react/components/ui/command.js +1 -1
  370. package/dist/esm/global-account/react/components/ui/dialog.d.ts +1 -1
  371. package/dist/esm/global-account/react/components/ui/dialog.js +1 -1
  372. package/dist/esm/global-account/react/components/ui/drawer.d.ts +1 -1
  373. package/dist/esm/global-account/react/components/ui/drawer.js +1 -1
  374. package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +12 -12
  375. package/dist/esm/global-account/react/components/ui/glare-card.js +11 -11
  376. package/dist/esm/global-account/react/components/ui/input.js +1 -1
  377. package/dist/esm/global-account/react/components/ui/text-loop.d.ts +1 -1
  378. package/dist/esm/global-account/react/components/ui/text-loop.js +2 -2
  379. package/dist/esm/global-account/react/components/ui/text-shimmer.js +2 -2
  380. package/dist/esm/global-account/react/components/ui/tooltip.js +1 -1
  381. package/dist/esm/global-account/react/hooks/useAccountAssets.js +4 -4
  382. package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -8
  383. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  384. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +6 -6
  385. package/dist/esm/global-account/react/hooks/useAuthentication.js +3 -3
  386. package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
  387. package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  388. package/dist/esm/global-account/react/hooks/useB3EnsName.js +22 -34
  389. package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  390. package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +10 -10
  391. package/dist/esm/global-account/react/hooks/useBsmntProfile.js +1 -1
  392. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
  393. package/dist/esm/global-account/react/hooks/useClaim.js +4 -4
  394. package/dist/esm/global-account/react/hooks/useConnect.js +3 -3
  395. package/dist/esm/global-account/react/hooks/useExchangeRate.js +3 -3
  396. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +7 -7
  397. package/dist/esm/global-account/react/hooks/useGetGeo.js +1 -1
  398. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
  399. package/dist/esm/global-account/react/hooks/useNativeBalance.js +6 -6
  400. package/dist/esm/global-account/react/hooks/useOnchainName.js +10 -10
  401. package/dist/esm/global-account/react/hooks/useOneBalance.js +2 -2
  402. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  403. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +3 -3
  404. package/dist/esm/global-account/react/hooks/useRouter.js +6 -6
  405. package/dist/esm/global-account/react/hooks/useSiwe.js +4 -4
  406. package/dist/esm/global-account/react/hooks/useTokenBalance.js +6 -6
  407. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  408. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
  409. package/dist/esm/global-account/react/hooks/useTokenData.js +3 -3
  410. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -13
  411. package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  412. package/dist/esm/global-account/react/hooks/useTokenPrice.js +6 -6
  413. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  414. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
  415. package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  416. package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +2 -2
  417. package/dist/esm/global-account/react/hooks/useURLParams.js +1 -1
  418. package/dist/esm/global-account/react/stores/index.d.ts +1 -1
  419. package/dist/esm/global-account/react/stores/useAuthStore.js +3 -3
  420. package/dist/esm/global-account/react/stores/useModalStore.d.ts +1 -18
  421. package/dist/esm/global-account/react/stores/useModalStore.js +3 -3
  422. package/dist/esm/global-account/server.js +3 -3
  423. package/dist/esm/global-account/types/chain-networks.js +8 -8
  424. package/dist/esm/global-account/types/feature-flags.js +1 -1
  425. package/dist/esm/shared/constants/chains/b3Chain.js +35 -35
  426. package/dist/esm/shared/constants/chains/chainPlatformMap.js +1 -1
  427. package/dist/esm/shared/constants/chains/supported.js +1 -1
  428. package/dist/esm/shared/constants/index.d.ts +0 -1
  429. package/dist/esm/shared/constants/index.js +1 -2
  430. package/dist/esm/shared/thirdweb/initiateClient.js +2 -2
  431. package/dist/esm/shared/thirdweb/openapi-ts.config.js +1 -1
  432. package/dist/esm/shared/utils/b3Ens.js +4 -4
  433. package/dist/esm/shared/utils/chain-transformers.js +9 -9
  434. package/dist/esm/shared/utils/fetchBalances.js +4 -4
  435. package/dist/esm/shared/utils/index.d.ts +0 -9
  436. package/dist/esm/shared/utils/index.js +0 -15
  437. package/dist/esm/shared/utils/insights.js +28 -28
  438. package/dist/esm/shared/utils/ipfs.js +1 -1
  439. package/dist/esm/shared/utils/number.js +3 -3
  440. package/dist/esm/shared/utils/simplehash.js +23 -23
  441. package/dist/esm/shared/utils/thirdweb-insights.js +15 -15
  442. package/dist/styles/index.css +1 -1
  443. package/dist/types/anyspend/index.d.ts +2 -4
  444. package/dist/types/anyspend/react/components/AnySpend.d.ts +1 -1
  445. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
  446. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +4 -4
  447. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -3
  448. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
  449. package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
  450. package/dist/types/anyspend/react/components/common/OrderToken.d.ts +1 -1
  451. package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
  452. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
  453. package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
  454. package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +1 -1
  455. package/dist/types/anyspend/react/components/index.d.ts +0 -2
  456. package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
  457. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
  458. package/dist/types/anyspend/react/hooks/index.d.ts +2 -1
  459. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
  460. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
  461. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +70 -14
  462. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +70 -14
  463. package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  464. package/dist/types/anyspend/react/hooks/usePermitData.d.ts +92 -0
  465. package/dist/types/anyspend/services/anyspend.d.ts +40 -9
  466. package/dist/types/anyspend/types/index.d.ts +1 -1
  467. package/dist/types/anyspend/types/nft.d.ts +0 -7
  468. package/dist/types/anyspend/types/onramp.d.ts +0 -3
  469. package/dist/types/anyspend/types/order.d.ts +200 -40
  470. package/dist/types/anyspend/types/permit.d.ts +21 -0
  471. package/dist/types/anyspend/types/req-res/createOrder.d.ts +235 -98
  472. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +305 -63
  473. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +235 -49
  474. package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -37
  475. package/dist/types/anyspend/types/req-res/index.d.ts +1 -0
  476. package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  477. package/dist/types/anyspend/utils/orderPayload.d.ts +3 -3
  478. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
  479. package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
  480. package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
  481. package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +1 -1
  482. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
  483. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
  484. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
  485. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
  486. package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
  487. package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
  488. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
  489. package/dist/types/global-account/react/components/index.d.ts +4 -4
  490. package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +1 -1
  491. package/dist/types/global-account/react/components/ui/Tabs.d.ts +1 -1
  492. package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
  493. package/dist/types/global-account/react/components/ui/dialog.d.ts +1 -1
  494. package/dist/types/global-account/react/components/ui/drawer.d.ts +1 -1
  495. package/dist/types/global-account/react/components/ui/text-loop.d.ts +1 -1
  496. package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
  497. package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +4 -8
  498. package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
  499. package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
  500. package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
  501. package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +1 -1
  502. package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
  503. package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
  504. package/dist/types/global-account/react/stores/index.d.ts +1 -1
  505. package/dist/types/global-account/react/stores/useModalStore.d.ts +1 -18
  506. package/dist/types/shared/constants/index.d.ts +0 -1
  507. package/dist/types/shared/utils/index.d.ts +0 -9
  508. package/package.json +4 -17
  509. package/src/anyspend/abis/abi-usdc-base.ts +97 -97
  510. package/src/anyspend/abis/erc20-staking.ts +51 -51
  511. package/src/anyspend/constants/index.ts +11 -13
  512. package/src/anyspend/index.ts +6 -4
  513. package/src/anyspend/react/components/AnySpend.tsx +39 -44
  514. package/src/anyspend/react/components/AnySpendBuySpin.tsx +41 -46
  515. package/src/anyspend/react/components/AnySpendCustom.tsx +89 -214
  516. package/src/anyspend/react/components/AnySpendNFT.tsx +6 -11
  517. package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
  518. package/src/anyspend/react/components/AnySpendStakeB3.tsx +22 -23
  519. package/src/anyspend/react/components/AnySpendTournament.tsx +4 -7
  520. package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
  521. package/src/anyspend/react/components/common/OrderDetails.tsx +76 -74
  522. package/src/anyspend/react/components/common/OrderHistory.tsx +1 -1
  523. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +3 -3
  524. package/src/anyspend/react/components/common/OrderToken.tsx +5 -5
  525. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -4
  526. package/src/anyspend/react/components/common/PanelOnramp.tsx +4 -4
  527. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +17 -9
  528. package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +1 -1
  529. package/src/anyspend/react/components/common/PaymentOneClick.tsx +3 -3
  530. package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +15 -16
  531. package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
  532. package/src/anyspend/react/components/index.ts +0 -2
  533. package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +2 -2
  534. package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +1 -0
  535. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +20 -18
  536. package/src/anyspend/react/hooks/index.ts +2 -1
  537. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +20 -10
  538. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +8 -9
  539. package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +3 -3
  540. package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +4 -4
  541. package/src/anyspend/react/hooks/useAnyspendQuote.ts +6 -6
  542. package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +38 -0
  543. package/src/anyspend/react/hooks/useAnyspendTokens.ts +4 -4
  544. package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -3
  545. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +3 -3
  546. package/src/anyspend/react/hooks/useGetGeo.ts +1 -1
  547. package/src/anyspend/react/hooks/usePermitData.ts +183 -0
  548. package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
  549. package/src/anyspend/react/hooks/useStripeSupport.ts +3 -3
  550. package/src/anyspend/react/providers/AnyspendProvider.tsx +4 -9
  551. package/src/anyspend/services/anyspend.ts +39 -21
  552. package/src/anyspend/types/chain.ts +1 -1
  553. package/src/anyspend/types/custom.ts +2 -2
  554. package/src/anyspend/types/globalWallet.ts +1 -1
  555. package/src/anyspend/types/index.ts +1 -1
  556. package/src/anyspend/types/nft.ts +7 -10
  557. package/src/anyspend/types/onramp.ts +2 -3
  558. package/src/anyspend/types/order.ts +16 -9
  559. package/src/anyspend/types/permit.ts +10 -0
  560. package/src/anyspend/types/relay.ts +1 -1
  561. package/src/anyspend/types/req-res/createOrder.ts +9 -9
  562. package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +5 -5
  563. package/src/anyspend/types/req-res/getOrderAndTransactions.ts +4 -4
  564. package/src/anyspend/types/req-res/getOrderByCreator.ts +2 -2
  565. package/src/anyspend/types/req-res/getOrderHistory.ts +1 -1
  566. package/src/anyspend/types/req-res/getQuote.ts +9 -14
  567. package/src/anyspend/types/req-res/getTokenList.ts +4 -4
  568. package/src/anyspend/types/req-res/index.ts +1 -0
  569. package/src/anyspend/types/req-res/sendPermitData.ts +10 -0
  570. package/src/anyspend/types/swap.ts +2 -2
  571. package/src/anyspend/types/token.ts +2 -2
  572. package/src/anyspend/types/tournament.ts +4 -4
  573. package/src/anyspend/types/transaction.ts +4 -4
  574. package/src/anyspend/utils/chain.ts +25 -25
  575. package/src/anyspend/utils/format.ts +7 -2
  576. package/src/anyspend/utils/orderPayload.ts +9 -21
  577. package/src/anyspend/utils/token.ts +10 -10
  578. package/src/global-account/app.native.ts +5 -5
  579. package/src/global-account/app.ts +5 -5
  580. package/src/global-account/bsmnt.native.ts +5 -5
  581. package/src/global-account/bsmnt.ts +5 -5
  582. package/src/global-account/react/components/B3DynamicModal.tsx +6 -15
  583. package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
  584. package/src/global-account/react/components/B3Provider/B3Provider.tsx +20 -22
  585. package/src/global-account/react/components/B3Provider/types.ts +1 -1
  586. package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +6 -6
  587. package/src/global-account/react/components/MintButton/MintButton.tsx +5 -5
  588. package/src/global-account/react/components/RelayKitProviderWrapper.tsx +2 -2
  589. package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +7 -7
  590. package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +2 -2
  591. package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +28 -16
  592. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +14 -14
  593. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +2 -2
  594. package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +1 -1
  595. package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +1 -1
  596. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +10 -10
  597. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +3 -3
  598. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -2
  599. package/src/global-account/react/components/StyleRoot.tsx +1 -0
  600. package/src/global-account/react/components/Transak/TransakModal.tsx +4 -4
  601. package/src/global-account/react/components/custom/Button.tsx +7 -7
  602. package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +3 -3
  603. package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +1 -1
  604. package/src/global-account/react/components/index.ts +4 -4
  605. package/src/global-account/react/components/magicui/AnimatedLottie.tsx +5 -5
  606. package/src/global-account/react/components/ui/Loading.tsx +2 -2
  607. package/src/global-account/react/components/ui/ShinyButton.tsx +5 -5
  608. package/src/global-account/react/components/ui/TabSystem.tsx +2 -2
  609. package/src/global-account/react/components/ui/Tabs.tsx +4 -4
  610. package/src/global-account/react/components/ui/badge.tsx +5 -5
  611. package/src/global-account/react/components/ui/button.tsx +7 -7
  612. package/src/global-account/react/components/ui/command.tsx +5 -5
  613. package/src/global-account/react/components/ui/dialog.tsx +5 -5
  614. package/src/global-account/react/components/ui/drawer.tsx +2 -2
  615. package/src/global-account/react/components/ui/glare-card-rounded.tsx +12 -12
  616. package/src/global-account/react/components/ui/glare-card.tsx +11 -11
  617. package/src/global-account/react/components/ui/input.tsx +2 -2
  618. package/src/global-account/react/components/ui/popover.tsx +1 -1
  619. package/src/global-account/react/components/ui/scroll-area.tsx +1 -1
  620. package/src/global-account/react/components/ui/text-loop.tsx +2 -2
  621. package/src/global-account/react/components/ui/text-shimmer.tsx +3 -3
  622. package/src/global-account/react/components/ui/tooltip.tsx +2 -2
  623. package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
  624. package/src/global-account/react/hooks/useAccountWallet.tsx +9 -9
  625. package/src/global-account/react/hooks/useAddTWSessionKey.tsx +7 -7
  626. package/src/global-account/react/hooks/useAuthentication.ts +3 -3
  627. package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +9 -9
  628. package/src/global-account/react/hooks/useB3EnsName.ts +31 -43
  629. package/src/global-account/react/hooks/useBestTransactionPath.tsx +11 -11
  630. package/src/global-account/react/hooks/useBsmntProfile.ts +1 -1
  631. package/src/global-account/react/hooks/useChainSwitchWithAction.ts +4 -4
  632. package/src/global-account/react/hooks/useClaim.tsx +5 -5
  633. package/src/global-account/react/hooks/useConnect.tsx +4 -4
  634. package/src/global-account/react/hooks/useExchangeRate.tsx +3 -3
  635. package/src/global-account/react/hooks/useGetAllTWSigners.tsx +9 -9
  636. package/src/global-account/react/hooks/useGetGeo.tsx +1 -1
  637. package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +2 -2
  638. package/src/global-account/react/hooks/useMediaQuery.tsx +1 -1
  639. package/src/global-account/react/hooks/useNativeBalance.tsx +7 -7
  640. package/src/global-account/react/hooks/useOnchainName.tsx +11 -11
  641. package/src/global-account/react/hooks/useOneBalance.tsx +2 -2
  642. package/src/global-account/react/hooks/useQueryB3.ts +2 -2
  643. package/src/global-account/react/hooks/useQueryBSMNT.ts +2 -2
  644. package/src/global-account/react/hooks/useRemoveSessionKey.tsx +5 -5
  645. package/src/global-account/react/hooks/useRouter.tsx +6 -6
  646. package/src/global-account/react/hooks/useSiwe.tsx +4 -4
  647. package/src/global-account/react/hooks/useTokenBalance.tsx +6 -6
  648. package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +10 -10
  649. package/src/global-account/react/hooks/useTokenData.ts +3 -3
  650. package/src/global-account/react/hooks/useTokenFromUrl.tsx +14 -14
  651. package/src/global-account/react/hooks/useTokenPrice.tsx +7 -7
  652. package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +7 -7
  653. package/src/global-account/react/hooks/useTokensFromAddress.ts +2 -2
  654. package/src/global-account/react/hooks/useURLParams.ts +2 -2
  655. package/src/global-account/react/stores/index.ts +1 -1
  656. package/src/global-account/react/stores/useAuthStore.ts +3 -3
  657. package/src/global-account/react/stores/useModalStore.ts +4 -23
  658. package/src/global-account/server.ts +3 -3
  659. package/src/global-account/types/chain-networks.ts +10 -10
  660. package/src/global-account/types/feature-flags.ts +2 -2
  661. package/src/shared/constants/chains/b3Chain.ts +35 -35
  662. package/src/shared/constants/chains/chainPlatformMap.ts +1 -1
  663. package/src/shared/constants/chains/supported.ts +1 -1
  664. package/src/shared/constants/index.ts +1 -3
  665. package/src/shared/thirdweb/initiateClient.ts +2 -2
  666. package/src/shared/thirdweb/openapi-ts.config.ts +1 -1
  667. package/src/shared/utils/b3Ens.ts +4 -4
  668. package/src/shared/utils/chain-transformers.ts +9 -9
  669. package/src/shared/utils/fetchBalances.ts +5 -5
  670. package/src/shared/utils/fetchBsmntProfile.ts +1 -1
  671. package/src/shared/utils/index.ts +0 -16
  672. package/src/shared/utils/insights.ts +31 -31
  673. package/src/shared/utils/ipfs.ts +1 -1
  674. package/src/shared/utils/number.ts +5 -5
  675. package/src/shared/utils/simplehash.ts +28 -28
  676. package/src/shared/utils/thirdweb-insights.ts +20 -20
  677. package/src/styles/index.css +2 -5
  678. package/dist/cjs/anyspend/abis/signature-minting.d.ts +0 -79
  679. package/dist/cjs/anyspend/abis/signature-minting.js +0 -45
  680. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  681. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +0 -77
  682. package/dist/cjs/anyspend/react/components/common/Warning.d.ts +0 -3
  683. package/dist/cjs/anyspend/react/components/common/Warning.js +0 -7
  684. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +0 -140
  685. package/dist/cjs/anyspend/react/hooks/useSigMint.js +0 -39
  686. package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
  687. package/dist/cjs/anyspend/types/metadata.js +0 -16
  688. package/dist/cjs/anyspend/types/signature-mint.d.ts +0 -69
  689. package/dist/cjs/anyspend/types/signature-mint.js +0 -2
  690. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  691. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +0 -50
  692. package/dist/cjs/global-account/react/components/custom/Icon.d.ts +0 -7
  693. package/dist/cjs/global-account/react/components/custom/Icon.js +0 -52
  694. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  695. package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +0 -20
  696. package/dist/cjs/shared/react/hooks/index.d.ts +0 -1
  697. package/dist/cjs/shared/react/hooks/index.js +0 -17
  698. package/dist/cjs/shared/react/hooks/useNavigation.d.ts +0 -17
  699. package/dist/cjs/shared/react/hooks/useNavigation.js +0 -57
  700. package/dist/cjs/shared/react/index.d.ts +0 -1
  701. package/dist/cjs/shared/react/index.js +0 -17
  702. package/dist/esm/anyspend/abis/signature-minting.d.ts +0 -79
  703. package/dist/esm/anyspend/abis/signature-minting.js +0 -42
  704. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  705. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +0 -71
  706. package/dist/esm/anyspend/react/components/common/Warning.d.ts +0 -3
  707. package/dist/esm/anyspend/react/components/common/Warning.js +0 -4
  708. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +0 -140
  709. package/dist/esm/anyspend/react/hooks/useSigMint.js +0 -33
  710. package/dist/esm/anyspend/types/metadata.d.ts +0 -26
  711. package/dist/esm/anyspend/types/metadata.js +0 -11
  712. package/dist/esm/anyspend/types/signature-mint.d.ts +0 -69
  713. package/dist/esm/anyspend/types/signature-mint.js +0 -1
  714. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  715. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +0 -44
  716. package/dist/esm/global-account/react/components/custom/Icon.d.ts +0 -7
  717. package/dist/esm/global-account/react/components/custom/Icon.js +0 -50
  718. package/dist/esm/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  719. package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +0 -17
  720. package/dist/esm/shared/react/hooks/index.d.ts +0 -1
  721. package/dist/esm/shared/react/hooks/index.js +0 -1
  722. package/dist/esm/shared/react/hooks/useNavigation.d.ts +0 -17
  723. package/dist/esm/shared/react/hooks/useNavigation.js +0 -52
  724. package/dist/esm/shared/react/index.d.ts +0 -1
  725. package/dist/esm/shared/react/index.js +0 -1
  726. package/dist/types/anyspend/abis/signature-minting.d.ts +0 -79
  727. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +0 -8
  728. package/dist/types/anyspend/react/components/common/Warning.d.ts +0 -3
  729. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +0 -140
  730. package/dist/types/anyspend/types/metadata.d.ts +0 -26
  731. package/dist/types/anyspend/types/signature-mint.d.ts +0 -69
  732. package/dist/types/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
  733. package/dist/types/global-account/react/components/custom/Icon.d.ts +0 -7
  734. package/dist/types/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
  735. package/dist/types/shared/react/hooks/index.d.ts +0 -1
  736. package/dist/types/shared/react/hooks/useNavigation.d.ts +0 -17
  737. package/dist/types/shared/react/index.d.ts +0 -1
  738. package/src/anyspend/abis/signature-minting.ts +0 -43
  739. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +0 -147
  740. package/src/anyspend/react/components/common/Warning.tsx +0 -7
  741. package/src/anyspend/react/hooks/useSigMint.tsx +0 -55
  742. package/src/anyspend/types/metadata.ts +0 -41
  743. package/src/anyspend/types/signature-mint.ts +0 -77
  744. package/src/global-account/react/components/SignInWithB3/SignIn.tsx +0 -190
  745. package/src/global-account/react/components/custom/Icon.tsx +0 -102
  746. package/src/global-account/react/components/custom/ManageAccountButton.tsx +0 -33
  747. package/src/shared/react/hooks/index.ts +0 -1
  748. package/src/shared/react/hooks/useNavigation.ts +0 -61
  749. package/src/shared/react/index.ts +0 -1
@@ -4,7 +4,7 @@ import {
4
4
  useGetAllTWSigners,
5
5
  useSiwe,
6
6
  SignInWithB3ModalProps,
7
- useModalStore,
7
+ useModalStore
8
8
  } from "@b3dotfun/sdk/global-account/react";
9
9
  import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
10
10
  import { useCallback, useEffect, useState } from "react";
@@ -32,7 +32,7 @@ export function SignInWithB3Flow({
32
32
  closeAfterLogin = false,
33
33
  loginWithSiwe = false,
34
34
  source = "signInWithB3Button",
35
- signersEnabled = false,
35
+ signersEnabled = false
36
36
  }: SignInWithB3ModalProps) {
37
37
  const { setUser, automaticallySetFirstEoa } = useB3();
38
38
  const [step, setStep] = useState<"login" | "permissions" | null>(source === "requestPermissions" ? null : "login");
@@ -45,13 +45,13 @@ export function SignInWithB3Flow({
45
45
  const {
46
46
  data: signers,
47
47
  refetch: refetchSigners,
48
- isFetching: isFetchingSigners,
48
+ isFetching: isFetchingSigners
49
49
  } = useGetAllTWSigners({
50
50
  chain,
51
51
  accountAddress: account?.address,
52
52
  queryOptions: {
53
- enabled: signersEnabled,
54
- },
53
+ enabled: signersEnabled
54
+ }
55
55
  });
56
56
  const { authenticate } = useSiwe();
57
57
  const [authenticatingWithB3, setAuthenticatingWithB3] = useState(false);
@@ -88,7 +88,7 @@ export function SignInWithB3Flow({
88
88
  debug("@@SignInWithB3Flow:useEffect", {
89
89
  loginComplete,
90
90
  isFetchingSigners,
91
- source,
91
+ source
92
92
  });
93
93
 
94
94
  if (loginComplete && !isFetchingSigners) {
@@ -103,7 +103,7 @@ export function SignInWithB3Flow({
103
103
  setB3ModalContentType({
104
104
  type: "manageAccount",
105
105
  chain,
106
- partnerId,
106
+ partnerId
107
107
  });
108
108
  }
109
109
  } else if (source !== "requestPermissions") {
@@ -121,7 +121,7 @@ export function SignInWithB3Flow({
121
121
  setB3ModalContentType({
122
122
  type: "manageAccount",
123
123
  chain,
124
- partnerId,
124
+ partnerId
125
125
  });
126
126
  }
127
127
  }, [
@@ -136,7 +136,7 @@ export function SignInWithB3Flow({
136
136
  chain,
137
137
  onSessionKeySuccess,
138
138
  setB3ModalOpen,
139
- signersEnabled,
139
+ signersEnabled
140
140
  ]);
141
141
 
142
142
  debug("render", {
@@ -145,7 +145,7 @@ export function SignInWithB3Flow({
145
145
  account,
146
146
  signers,
147
147
  refetchCount,
148
- refetchError,
148
+ refetchError
149
149
  });
150
150
 
151
151
  // Keep this effect for handling closeAfterLogin when adding new session keys
@@ -168,7 +168,7 @@ export function SignInWithB3Flow({
168
168
  partnerId,
169
169
  closeAfterLogin,
170
170
  loginWithSiwe,
171
- source: "requestPermissions",
171
+ source: "requestPermissions"
172
172
  });
173
173
  }, [
174
174
  chain,
@@ -180,7 +180,7 @@ export function SignInWithB3Flow({
180
180
  partnerId,
181
181
  sessionKeyAddress,
182
182
  setB3ModalContentType,
183
- strategies,
183
+ strategies
184
184
  ]);
185
185
 
186
186
  const handleLoginSuccess = useCallback(
@@ -196,7 +196,7 @@ export function SignInWithB3Flow({
196
196
  setLoginComplete(true);
197
197
  setAuthenticatingWithB3(false);
198
198
  },
199
- [authenticate, loginWithSiwe, onLoginSuccess, setUser],
199
+ [authenticate, loginWithSiwe, onLoginSuccess, setUser]
200
200
  );
201
201
 
202
202
  useEffect(() => {
@@ -206,7 +206,7 @@ export function SignInWithB3Flow({
206
206
  chain,
207
207
  sessionKeyAddress,
208
208
  onSuccess: onSessionKeySuccessEnhanced,
209
- onError,
209
+ onError
210
210
  });
211
211
  }
212
212
  }, [chain, onError, onSessionKeySuccessEnhanced, sessionKeyAddress, setB3ModalContentType, step]);
@@ -2,7 +2,7 @@ import {
2
2
  Loading,
3
3
  useAuthentication,
4
4
  useHandleConnectWithPrivy,
5
- useAuthStore,
5
+ useAuthStore
6
6
  } from "@b3dotfun/sdk/global-account/react";
7
7
  import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
8
8
  import { useEffect } from "react";
@@ -26,7 +26,7 @@ export function SignInWithB3Privy({ onSuccess, onError, partnerId, chain }: Sign
26
26
 
27
27
  debug("@@SignInWithB3Privy", {
28
28
  isLoading,
29
- fullToken,
29
+ fullToken
30
30
  });
31
31
 
32
32
  useEffect(() => {
@@ -4,7 +4,7 @@ import { strategyIcons } from "../utils/signInUtils";
4
4
  export function AuthButton({
5
5
  strategy,
6
6
  onClick,
7
- isLoading,
7
+ isLoading
8
8
  }: {
9
9
  strategy: string;
10
10
  onClick: () => void;
@@ -5,7 +5,7 @@ import { Button } from "../../custom/Button";
5
5
  export function WalletRow({
6
6
  walletId,
7
7
  onClick,
8
- isLoading,
8
+ isLoading
9
9
  }: {
10
10
  walletId: WalletId;
11
11
  onClick: () => void;
@@ -32,10 +32,10 @@ export function LoginStepContainer({ children, partnerId }: LoginStepContainerPr
32
32
  {
33
33
  query: {
34
34
  partnerId,
35
- $limit: 1,
36
- },
35
+ $limit: 1
36
+ }
37
37
  },
38
- !!partnerId,
38
+ !!partnerId
39
39
  );
40
40
 
41
41
  const partnerLogo = partner?.data?.[0]?.loginCustomization?.logoUrl;
@@ -55,7 +55,7 @@ export function LoginStepContainer({ children, partnerId }: LoginStepContainerPr
55
55
 
56
56
  export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepProps) {
57
57
  const wallet = ecosystemWallet(ecosystemWalletId, {
58
- partnerId: partnerId,
58
+ partnerId: partnerId
59
59
  });
60
60
 
61
61
  const { theme } = useB3();
@@ -74,20 +74,20 @@ export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepPro
74
74
  theme === "light"
75
75
  ? lightTheme({
76
76
  colors: {
77
- modalBg: "hsl(var(--b3-react-background))",
78
- },
77
+ modalBg: "hsl(var(--b3-react-background))"
78
+ }
79
79
  })
80
80
  : darkTheme({
81
81
  colors: {
82
- modalBg: "hsl(var(--b3-react-background))",
83
- },
82
+ modalBg: "hsl(var(--b3-react-background))"
83
+ }
84
84
  })
85
85
  }
86
86
  autoConnect
87
87
  style={{
88
88
  width: "100%",
89
89
  height: "100%",
90
- border: 0,
90
+ border: 0
91
91
  }}
92
92
  // TODO: Integrate with SIWE in useSIWE
93
93
  // auth={{
@@ -108,7 +108,7 @@ export function LoginStep({ onSuccess, onError, partnerId, chain }: LoginStepPro
108
108
  // }}
109
109
  header={{
110
110
  title: "Sign in with B3",
111
- titleIcon: "https://cdn.b3.fun/b3_logo.svg",
111
+ titleIcon: "https://cdn.b3.fun/b3_logo.svg"
112
112
  }}
113
113
  onConnect={async wallet => {
114
114
  try {
@@ -8,7 +8,7 @@ import {
8
8
  useAuthStore,
9
9
  AllowedStrategy,
10
10
  getConnectOptionsFromStrategy,
11
- isWalletType,
11
+ isWalletType
12
12
  } from "@b3dotfun/sdk/global-account/react";
13
13
  import { client } from "@b3dotfun/sdk/shared/utils/thirdweb";
14
14
  import { useState } from "react";
@@ -33,7 +33,7 @@ export function LoginStepCustom({
33
33
  chain,
34
34
  strategies,
35
35
  maxInitialWallets = 2,
36
- automaticallySetFirstEoa,
36
+ automaticallySetFirstEoa
37
37
  }: LoginStepCustomProps) {
38
38
  const [isLoading, setIsLoading] = useState(false);
39
39
  const [showAllWallets, setShowAllWallets] = useState(false);
@@ -63,7 +63,7 @@ export function LoginStepCustom({
63
63
  connectResult = await connectTW(async () => {
64
64
  const wallet = createWallet(options.wallet?.id as WalletId);
65
65
  await wallet.connect({
66
- client,
66
+ client
67
67
  });
68
68
 
69
69
  return wallet;
@@ -25,7 +25,7 @@ export const allowedStrategies = [
25
25
 
26
26
  // Custom strategies
27
27
  // TODO: Audit we don't use "privy" directly anymore
28
- ...customStrategies,
28
+ ...customStrategies
29
29
  ] as const;
30
30
 
31
31
  export type AllowedStrategy = (typeof allowedStrategies)[number];
@@ -62,7 +62,7 @@ export const strategyIcons: Record<string, string> = {
62
62
  x: "https://cdn.b3.fun/x.svg?1",
63
63
  discord: "https://cdn.b3.fun/discord.svg",
64
64
  apple: "https://cdn.b3.fun/apple.svg",
65
- guest: "https://cdn.b3.fun/incognito.svg",
65
+ guest: "https://cdn.b3.fun/incognito.svg"
66
66
  // Add more strategies as needed
67
67
  };
68
68
  // Test it
@@ -3,6 +3,7 @@ import { useB3 } from "./B3Provider/useB3";
3
3
 
4
4
  export function StyleRoot({ children, id }: PropsWithChildren<{ id?: string }>) {
5
5
  const { theme: b3Theme } = useB3();
6
+ // eslint-disable-next-line tailwindcss/no-custom-classname
6
7
  return (
7
8
  <div className="b3-root" id={id} data-theme={b3Theme}>
8
9
  {children}
@@ -31,7 +31,7 @@ export function TransakModal() {
31
31
  exchangeScreenTitle: "Buy ETH on B3",
32
32
  isFeeCalculationHidden: true,
33
33
  cryptoCurrencyCode: "ETH",
34
- network: "b3",
34
+ network: "b3"
35
35
  };
36
36
  }, [environment]);
37
37
 
@@ -53,7 +53,7 @@ export function TransakModal() {
53
53
  defaultCryptoAmount,
54
54
  disableWalletAddressForm: !!destinationWalletAddress || !!account?.address, // Only disable the form if we have an address
55
55
  fiatAmount: fiatAmount,
56
- countryCode: countryCode,
56
+ countryCode: countryCode
57
57
  };
58
58
 
59
59
  const transak = new Transak(config);
@@ -105,7 +105,7 @@ export function TransakModal() {
105
105
  onSuccess,
106
106
  fiatAmount,
107
107
  transakConfig,
108
- countryCode,
108
+ countryCode
109
109
  ]);
110
110
 
111
111
  return (
@@ -123,7 +123,7 @@ export function TransakModal() {
123
123
  width: "100%",
124
124
  height: "650px",
125
125
  borderRadius: "25px",
126
- overflow: "hidden",
126
+ overflow: "hidden"
127
127
  }}
128
128
  />
129
129
  </>
@@ -14,20 +14,20 @@ const buttonVariants = cva(
14
14
  secondary: "bg-secondary text-secondary-b3-react-foreground shadow-sm hover:bg-secondary/80",
15
15
  ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
16
16
  link: "text-b3-react-primary underline-offset-4 hover:underline",
17
- b3: "bg-[#3368ef] text-white hover:bg-[#3368ef]/90",
17
+ b3: "bg-[#3368ef] text-white hover:bg-[#3368ef]/90"
18
18
  },
19
19
  size: {
20
20
  default: "h-9 px-4 py-2",
21
21
  sm: "h-8 rounded-md px-3 text-xs",
22
22
  lg: "h-10 rounded-md px-8",
23
- icon: "h-9 w-9",
24
- },
23
+ icon: "h-9 w-9"
24
+ }
25
25
  },
26
26
  defaultVariants: {
27
27
  variant: "default",
28
- size: "default",
29
- },
30
- },
28
+ size: "default"
29
+ }
30
+ }
31
31
  );
32
32
 
33
33
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -44,7 +44,7 @@ export function Button({ variant = "default", className, ...props }: ButtonProps
44
44
  variant === "default" && "bg-b3-react-primary text-b3-react-primary-foreground hover:bg-b3-react-primary/90",
45
45
  variant === "outline" &&
46
46
  "border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground border",
47
- className,
47
+ className
48
48
  )}
49
49
  {...props}
50
50
  />
@@ -3,7 +3,7 @@ import { motion } from "framer-motion";
3
3
  export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { className?: string; size?: number }) {
4
4
  const circleVariants = {
5
5
  hidden: { opacity: 0 },
6
- visible: { opacity: 1 },
6
+ visible: { opacity: 1 }
7
7
  };
8
8
 
9
9
  const sizeClass =
@@ -12,7 +12,7 @@ export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { c
12
12
  2: "h-2 w-2",
13
13
  3: "h-3 w-3",
14
14
  4: "h-4 w-4",
15
- 5: "h-5 w-5",
15
+ 5: "h-5 w-5"
16
16
  }?.[size] || "h-4 w-4";
17
17
 
18
18
  return (
@@ -28,7 +28,7 @@ export function StaggeredFadeLoader({ className = "bg-white/50", size = 4 }: { c
28
28
  duration: 0.9,
29
29
  delay: index * 0.2,
30
30
  repeat: Infinity,
31
- repeatType: "reverse",
31
+ repeatType: "reverse"
32
32
  }}
33
33
  ></motion.div>
34
34
  ))}
@@ -4,7 +4,7 @@ import {
4
4
  WalletPhantom,
5
5
  WalletRabby,
6
6
  WalletRainbow,
7
- WalletWalletConnect,
7
+ WalletWalletConnect
8
8
  } from "@web3icons/react";
9
9
  import { Wallet } from "lucide-react";
10
10
 
@@ -51,7 +51,7 @@ export {
51
51
  CommandItem,
52
52
  CommandList,
53
53
  CommandSeparator,
54
- CommandShortcut,
54
+ CommandShortcut
55
55
  } from "./ui/command";
56
56
  export {
57
57
  Dialog,
@@ -63,7 +63,7 @@ export {
63
63
  DialogOverlay,
64
64
  DialogPortal,
65
65
  DialogTitle,
66
- DialogTrigger,
66
+ DialogTrigger
67
67
  } from "./ui/dialog";
68
68
  export {
69
69
  Drawer,
@@ -75,7 +75,7 @@ export {
75
75
  DrawerOverlay,
76
76
  DrawerPortal,
77
77
  DrawerTitle,
78
- DrawerTrigger,
78
+ DrawerTrigger
79
79
  } from "./ui/drawer";
80
80
  export { GlareCard } from "./ui/glare-card";
81
81
  export { GlareCardRounded } from "./ui/glare-card-rounded";
@@ -89,7 +89,7 @@ export {
89
89
  TabsContent as TabsContentPrimitive,
90
90
  TabsList as TabsListPrimitive,
91
91
  Tabs as TabsPrimitive,
92
- TabTrigger as TabTriggerPrimitive,
92
+ TabTrigger as TabTriggerPrimitive
93
93
  } from "./ui/Tabs";
94
94
  export { Tabs, TabsContent, TabsList, TabsTransitionWrapper, TabTrigger } from "./ui/TabSystem";
95
95
  export { TextLoop } from "./ui/text-loop";
@@ -51,11 +51,11 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
51
51
  console.error("Failed to play animation:", error);
52
52
  }
53
53
  },
54
- delay ? delay * 1000 : 0,
54
+ delay ? delay * 1000 : 0
55
55
  );
56
56
  }
57
57
  },
58
- [autoplay, delay],
58
+ [autoplay, delay]
59
59
  );
60
60
 
61
61
  const handleMouseEnter = useCallback(() => {
@@ -73,9 +73,9 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
73
73
 
74
74
  const animateProps = useMemo(
75
75
  () => ({
76
- scale: animateBounce ? [1, 0.95, 1.05, 1] : 1,
76
+ scale: animateBounce ? [1, 0.95, 1.05, 1] : 1
77
77
  }),
78
- [animateBounce],
78
+ [animateBounce]
79
79
  );
80
80
 
81
81
  return (
@@ -98,7 +98,7 @@ export const AnimatedLottie: React.FC<AnimatedLottieProps> = React.memo(
98
98
  />
99
99
  </motion.div>
100
100
  );
101
- },
101
+ }
102
102
  );
103
103
 
104
104
  AnimatedLottie.displayName = "AnimatedLottie";
@@ -11,12 +11,12 @@ export function Loading({ className, size = "md", variant = "white" }: LoadingPr
11
11
  const sizeClass = {
12
12
  sm: "h-6 w-6",
13
13
  md: "h-8 w-8",
14
- lg: "h-12 w-12",
14
+ lg: "h-12 w-12"
15
15
  }[size];
16
16
 
17
17
  const variantClass = {
18
18
  primary: "text-b3-react-primary",
19
- white: "text-white opacity-50",
19
+ white: "text-white opacity-50"
20
20
  }[variant];
21
21
 
22
22
  return (
@@ -16,7 +16,7 @@ export const ShinyButton = ({
16
16
  disabled,
17
17
  textColor = "",
18
18
  textClassName = "",
19
- type = "button",
19
+ type = "button"
20
20
  }: {
21
21
  text?: string;
22
22
  accentColor?: string;
@@ -32,7 +32,7 @@ export const ShinyButton = ({
32
32
  }) => {
33
33
  const { ref, inView } = useInView({
34
34
  triggerOnce: false,
35
- threshold: 0.1,
35
+ threshold: 0.1
36
36
  });
37
37
 
38
38
  const computedTextColor =
@@ -51,10 +51,10 @@ export const ShinyButton = ({
51
51
  disabled
52
52
  ? "grayscale-20 cursor-not-allowed opacity-60"
53
53
  : "hover:border-black/30 hover:shadow-[0_0_20px_rgb(0,0,0,20%)]",
54
- animatedPulse && inView && "animated-pulse",
54
+ animatedPulse && inView && "animated-pulse"
55
55
  )}
56
56
  style={{
57
- backgroundColor: disabled ? "#94A3B8" : accentColor,
57
+ backgroundColor: disabled ? "#94A3B8" : accentColor
58
58
  }}
59
59
  onClick={!disabled ? onClick : undefined}
60
60
  onClickCapture={onClickCapture}
@@ -66,7 +66,7 @@ export const ShinyButton = ({
66
66
  <span
67
67
  className={cn(
68
68
  "font-sf-rounded relative block h-full w-full text-lg font-semibold tracking-wide",
69
- computedTextColor,
69
+ computedTextColor
70
70
  )}
71
71
  >
72
72
  <div className={cn("flex items-center justify-center gap-2", textClassName)}>
@@ -138,7 +138,7 @@ export function TabsTransitionWrapper({ children }: { children: ReactNode }) {
138
138
  child =>
139
139
  React.isValidElement(child) &&
140
140
  "value" in (child.props as any) &&
141
- (child.props as any).value === context.selectedTab,
141
+ (child.props as any).value === context.selectedTab
142
142
  );
143
143
 
144
144
  return (
@@ -149,7 +149,7 @@ export function TabsTransitionWrapper({ children }: { children: ReactNode }) {
149
149
  variants={{
150
150
  enter: { opacity: 0, filter: "blur(10px)", x: 20 },
151
151
  center: { opacity: 1, filter: "blur(0px)", x: 0 },
152
- exit: { opacity: 0, filter: "blur(10px)", x: -20 },
152
+ exit: { opacity: 0, filter: "blur(10px)", x: -20 }
153
153
  }}
154
154
  >
155
155
  {childrenArray}
@@ -4,7 +4,7 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
4
4
  export const Tabs = ({
5
5
  defaultValue,
6
6
  onValueChange,
7
- children,
7
+ children
8
8
  }: {
9
9
  defaultValue: string;
10
10
  onValueChange?: (value: string) => void;
@@ -20,7 +20,7 @@ export function TabsList({ className, ...props }: React.ComponentProps<typeof Ta
20
20
  <TabsPrimitive.List
21
21
  className={cn(
22
22
  "border-b3-react-border bg-b3-react-background inline-flex h-12 w-full items-center justify-center rounded-lg border",
23
- className,
23
+ className
24
24
  )}
25
25
  {...props}
26
26
  />
@@ -36,7 +36,7 @@ export function TabTrigger({ className, ...props }: React.ComponentProps<typeof
36
36
  "data-[state=active]:bg-b3-react-subtle data-[state=active]:text-b3-react-primary data-[state=active]:font-bold",
37
37
  "border-b3-react-border hover:text-b3-react-foreground data-[state=inactive]:border-b3-react-border data-[state=inactive]:text-b3-react-muted-foreground",
38
38
  "flex-1 border-r",
39
- className,
39
+ className
40
40
  )}
41
41
  {...props}
42
42
  />
@@ -48,7 +48,7 @@ export function TabsContent({ className, ...props }: React.ComponentProps<typeof
48
48
  <TabsPrimitive.Content
49
49
  className={cn(
50
50
  "ring-offset-b3-react-background focus-visible:ring-b3-react-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
51
- className,
51
+ className
52
52
  )}
53
53
  {...props}
54
54
  />
@@ -12,13 +12,13 @@ const badgeVariants = cva(
12
12
  secondary: "border-transparent bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
13
13
  destructive:
14
14
  "border-destructive bg-destructive/50 text-destructive-b3-react-foreground hover:bg-destructive/80",
15
- outline: "text-b3-react-foreground",
16
- },
15
+ outline: "text-b3-react-foreground"
16
+ }
17
17
  },
18
18
  defaultVariants: {
19
- variant: "default",
20
- },
21
- },
19
+ variant: "default"
20
+ }
21
+ }
22
22
  );
23
23
 
24
24
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
@@ -15,20 +15,20 @@ const buttonVariants = cva(
15
15
  outline: "border border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground",
16
16
  secondary: "bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
17
17
  ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
18
- link: "text-b3-react-primary underline-offset-4 hover:underline",
18
+ link: "text-b3-react-primary underline-offset-4 hover:underline"
19
19
  },
20
20
  size: {
21
21
  default: "h-10 px-4 py-2",
22
22
  sm: "h-9 rounded-md px-3",
23
23
  lg: "h-11 rounded-md px-8",
24
- icon: "h-10 w-10",
25
- },
24
+ icon: "h-10 w-10"
25
+ }
26
26
  },
27
27
  defaultVariants: {
28
28
  variant: "default",
29
- size: "default",
30
- },
31
- },
29
+ size: "default"
30
+ }
31
+ }
32
32
  );
33
33
 
34
34
  export interface ButtonProps
@@ -50,7 +50,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
50
50
  }
51
51
 
52
52
  return <button className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />;
53
- },
53
+ }
54
54
  );
55
55
  Button.displayName = "Button";
56
56
 
@@ -17,7 +17,7 @@ const Command = React.forwardRef<
17
17
  ref={ref}
18
18
  className={cn(
19
19
  "bg-popover text-popover-b3-react-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
20
- className,
20
+ className
21
21
  )}
22
22
  {...props}
23
23
  />
@@ -51,7 +51,7 @@ const CommandInput = React.forwardRef<
51
51
  ref={ref}
52
52
  className={cn(
53
53
  "placeholder:text-b3-react-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
54
- className,
54
+ className
55
55
  )}
56
56
  {...props}
57
57
  />
@@ -88,7 +88,7 @@ const CommandGroup = React.forwardRef<
88
88
  ref={ref}
89
89
  className={cn(
90
90
  "text-b3-react-foreground [&_[cmdk-group-heading]]:text-b3-react-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
91
- className,
91
+ className
92
92
  )}
93
93
  {...props}
94
94
  />
@@ -112,7 +112,7 @@ const CommandItem = React.forwardRef<
112
112
  ref={ref}
113
113
  className={cn(
114
114
  "data-[selected='true']:bg-accent data-[selected=true]:text-accent-b3-react-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
115
- className,
115
+ className
116
116
  )}
117
117
  {...props}
118
118
  />
@@ -136,5 +136,5 @@ export {
136
136
  CommandItem,
137
137
  CommandList,
138
138
  CommandSeparator,
139
- CommandShortcut,
139
+ CommandShortcut
140
140
  };