@b3dotfun/sdk 0.0.1-alpha.1

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 (1270) hide show
  1. package/README.md +345 -0
  2. package/constants/chains/b3Chain.js +2 -0
  3. package/dist/cjs/anyspend/abis/abi-usdc-base.d.ts +1074 -0
  4. package/dist/cjs/anyspend/abis/abi-usdc-base.js +602 -0
  5. package/dist/cjs/anyspend/abis/erc20-staking.d.ts +540 -0
  6. package/dist/cjs/anyspend/abis/erc20-staking.js +301 -0
  7. package/dist/cjs/anyspend/constants/index.d.ts +28 -0
  8. package/dist/cjs/anyspend/constants/index.js +72 -0
  9. package/dist/cjs/anyspend/index.d.ts +13 -0
  10. package/dist/cjs/anyspend/index.js +35 -0
  11. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +22 -0
  12. package/dist/cjs/anyspend/react/components/AnySpend.js +700 -0
  13. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
  14. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +333 -0
  15. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +22 -0
  16. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +399 -0
  17. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +8 -0
  18. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +31 -0
  19. package/dist/cjs/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
  20. package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +19 -0
  21. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
  22. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +269 -0
  23. package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +27 -0
  24. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +21 -0
  25. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
  26. package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +7 -0
  27. package/dist/cjs/anyspend/react/components/common/HowItWorks.d.ts +10 -0
  28. package/dist/cjs/anyspend/react/components/common/HowItWorks.js +7 -0
  29. package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +14 -0
  30. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +391 -0
  31. package/dist/cjs/anyspend/react/components/common/OrderHistory.d.ts +7 -0
  32. package/dist/cjs/anyspend/react/components/common/OrderHistory.js +24 -0
  33. package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
  34. package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +38 -0
  35. package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +4 -0
  36. package/dist/cjs/anyspend/react/components/common/OrderStatus.js +14 -0
  37. package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +11 -0
  38. package/dist/cjs/anyspend/react/components/common/OrderToken.js +59 -0
  39. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
  40. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +50 -0
  41. package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
  42. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +46 -0
  43. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
  44. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +124 -0
  45. package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
  46. package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +15 -0
  47. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
  48. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +27 -0
  49. package/dist/cjs/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
  50. package/dist/cjs/anyspend/react/components/common/PaymentOptions.js +7 -0
  51. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
  52. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +153 -0
  53. package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
  54. package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +23 -0
  55. package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +6 -0
  56. package/dist/cjs/anyspend/react/components/common/TokenBalance.js +21 -0
  57. package/dist/cjs/anyspend/react/components/icons/EthIcon.d.ts +3 -0
  58. package/dist/cjs/anyspend/react/components/icons/EthIcon.js +7 -0
  59. package/dist/cjs/anyspend/react/components/icons/SolIcon.d.ts +3 -0
  60. package/dist/cjs/anyspend/react/components/icons/SolIcon.js +7 -0
  61. package/dist/cjs/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
  62. package/dist/cjs/anyspend/react/components/icons/USDCIcon.js +7 -0
  63. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
  64. package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +21 -0
  65. package/dist/cjs/anyspend/react/hooks/index.d.ts +13 -0
  66. package/dist/cjs/anyspend/react/hooks/index.js +29 -0
  67. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
  68. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +83 -0
  69. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
  70. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +68 -0
  71. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
  72. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +37 -0
  73. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
  74. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +20 -0
  75. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
  76. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +52 -0
  77. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  78. package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +39 -0
  79. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
  80. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +18 -0
  81. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
  82. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +19 -0
  83. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
  84. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +53 -0
  85. package/dist/cjs/anyspend/react/hooks/useGetGeo.d.ts +16 -0
  86. package/dist/cjs/anyspend/react/hooks/useGetGeo.js +15 -0
  87. package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +92 -0
  88. package/dist/cjs/anyspend/react/hooks/usePermitData.js +158 -0
  89. package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
  90. package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +18 -0
  91. package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
  92. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +20 -0
  93. package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
  94. package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +42 -0
  95. package/dist/cjs/anyspend/services/anyspend.d.ts +372 -0
  96. package/dist/cjs/anyspend/services/anyspend.js +126 -0
  97. package/dist/cjs/anyspend/types/chain.d.ts +26 -0
  98. package/dist/cjs/anyspend/types/chain.js +8 -0
  99. package/dist/cjs/anyspend/types/custom.d.ts +130 -0
  100. package/dist/cjs/anyspend/types/custom.js +19 -0
  101. package/dist/cjs/anyspend/types/globalWallet.d.ts +18 -0
  102. package/dist/cjs/anyspend/types/globalWallet.js +10 -0
  103. package/dist/cjs/anyspend/types/index.d.ts +13 -0
  104. package/dist/cjs/anyspend/types/index.js +29 -0
  105. package/dist/cjs/anyspend/types/nft.d.ts +267 -0
  106. package/dist/cjs/anyspend/types/nft.js +36 -0
  107. package/dist/cjs/anyspend/types/onramp.d.ts +25 -0
  108. package/dist/cjs/anyspend/types/onramp.js +17 -0
  109. package/dist/cjs/anyspend/types/order.d.ts +1771 -0
  110. package/dist/cjs/anyspend/types/order.js +85 -0
  111. package/dist/cjs/anyspend/types/permit.d.ts +21 -0
  112. package/dist/cjs/anyspend/types/permit.js +11 -0
  113. package/dist/cjs/anyspend/types/relay.d.ts +10 -0
  114. package/dist/cjs/anyspend/types/relay.js +12 -0
  115. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +4113 -0
  116. package/dist/cjs/anyspend/types/req-res/createOrder.js +60 -0
  117. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
  118. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +31 -0
  119. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
  120. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +23 -0
  121. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
  122. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +11 -0
  123. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
  124. package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +11 -0
  125. package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +253 -0
  126. package/dist/cjs/anyspend/types/req-res/getQuote.js +46 -0
  127. package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +63 -0
  128. package/dist/cjs/anyspend/types/req-res/getTokenList.js +18 -0
  129. package/dist/cjs/anyspend/types/req-res/index.d.ts +8 -0
  130. package/dist/cjs/anyspend/types/req-res/index.js +24 -0
  131. package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  132. package/dist/cjs/anyspend/types/req-res/sendPermitData.js +11 -0
  133. package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
  134. package/dist/cjs/anyspend/types/req-res/stripe.js +1 -0
  135. package/dist/cjs/anyspend/types/swap.d.ts +119 -0
  136. package/dist/cjs/anyspend/types/swap.js +13 -0
  137. package/dist/cjs/anyspend/types/token.d.ts +34 -0
  138. package/dist/cjs/anyspend/types/token.js +14 -0
  139. package/dist/cjs/anyspend/types/tournament.d.ts +174 -0
  140. package/dist/cjs/anyspend/types/tournament.js +24 -0
  141. package/dist/cjs/anyspend/types/transaction.d.ts +84 -0
  142. package/dist/cjs/anyspend/types/transaction.js +34 -0
  143. package/dist/cjs/anyspend/utils/address.d.ts +4 -0
  144. package/dist/cjs/anyspend/utils/address.js +29 -0
  145. package/dist/cjs/anyspend/utils/chain.d.ts +25 -0
  146. package/dist/cjs/anyspend/utils/chain.js +294 -0
  147. package/dist/cjs/anyspend/utils/format.d.ts +6 -0
  148. package/dist/cjs/anyspend/utils/format.js +59 -0
  149. package/dist/cjs/anyspend/utils/index.d.ts +8 -0
  150. package/dist/cjs/anyspend/utils/index.js +24 -0
  151. package/dist/cjs/anyspend/utils/json.d.ts +1 -0
  152. package/dist/cjs/anyspend/utils/json.js +6 -0
  153. package/dist/cjs/anyspend/utils/number.d.ts +13 -0
  154. package/dist/cjs/anyspend/utils/number.js +90 -0
  155. package/dist/cjs/anyspend/utils/orderPayload.d.ts +127 -0
  156. package/dist/cjs/anyspend/utils/orderPayload.js +56 -0
  157. package/dist/cjs/anyspend/utils/string.d.ts +1 -0
  158. package/dist/cjs/anyspend/utils/string.js +9 -0
  159. package/dist/cjs/anyspend/utils/token.d.ts +7 -0
  160. package/dist/cjs/anyspend/utils/token.js +73 -0
  161. package/dist/cjs/generated/chain-networks.json +483 -0
  162. package/dist/cjs/global-account/app.d.ts +4 -0
  163. package/dist/cjs/global-account/app.js +65 -0
  164. package/dist/cjs/global-account/app.native.d.ts +5 -0
  165. package/dist/cjs/global-account/app.native.js +90 -0
  166. package/dist/cjs/global-account/bsmnt.d.ts +4 -0
  167. package/dist/cjs/global-account/bsmnt.js +69 -0
  168. package/dist/cjs/global-account/bsmnt.native.d.ts +5 -0
  169. package/dist/cjs/global-account/bsmnt.native.js +93 -0
  170. package/dist/cjs/global-account/index.d.ts +9 -0
  171. package/dist/cjs/global-account/index.js +27 -0
  172. package/dist/cjs/global-account/index.native.d.ts +3 -0
  173. package/dist/cjs/global-account/index.native.js +18 -0
  174. package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
  175. package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.js +13 -0
  176. package/dist/cjs/global-account/react/components/B3DynamicModal.d.ts +1 -0
  177. package/dist/cjs/global-account/react/components/B3DynamicModal.js +92 -0
  178. package/dist/cjs/global-account/react/components/B3Provider.d.ts +53 -0
  179. package/dist/cjs/global-account/react/components/B3Provider.js +118 -0
  180. package/dist/cjs/global-account/react/components/B3Provider.native.d.ts +46 -0
  181. package/dist/cjs/global-account/react/components/B3Provider.native.js +76 -0
  182. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
  183. package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +85 -0
  184. package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +17 -0
  185. package/dist/cjs/global-account/react/components/MintButton/MintButton.js +51 -0
  186. package/dist/cjs/global-account/react/components/ProfileAvatar.d.ts +0 -0
  187. package/dist/cjs/global-account/react/components/ProfileAvatar.js +127 -0
  188. package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
  189. package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +29 -0
  190. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
  191. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +83 -0
  192. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
  193. package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +26 -0
  194. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
  195. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +45 -0
  196. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
  197. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +203 -0
  198. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
  199. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +51 -0
  200. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
  201. package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +9 -0
  202. package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
  203. package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.js +8 -0
  204. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
  205. package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +9 -0
  206. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
  207. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +89 -0
  208. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
  209. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +76 -0
  210. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
  211. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +56 -0
  212. package/dist/cjs/global-account/react/components/StyleRoot.d.ts +4 -0
  213. package/dist/cjs/global-account/react/components/StyleRoot.js +10 -0
  214. package/dist/cjs/global-account/react/components/Transak/TransakModal.d.ts +1 -0
  215. package/dist/cjs/global-account/react/components/Transak/TransakModal.js +113 -0
  216. package/dist/cjs/global-account/react/components/custom/Button.d.ts +12 -0
  217. package/dist/cjs/global-account/react/components/custom/Button.js +36 -0
  218. package/dist/cjs/global-account/react/components/custom/ClientOnly.d.ts +7 -0
  219. package/dist/cjs/global-account/react/components/custom/ClientOnly.js +13 -0
  220. package/dist/cjs/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
  221. package/dist/cjs/global-account/react/components/custom/CopyToClipboard.js +21 -0
  222. package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
  223. package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +24 -0
  224. package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
  225. package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.js +27 -0
  226. package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
  227. package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +93 -0
  228. package/dist/cjs/global-account/react/components/ui/Loading.d.ts +7 -0
  229. package/dist/cjs/global-account/react/components/ui/Loading.js +18 -0
  230. package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +14 -0
  231. package/dist/cjs/global-account/react/components/ui/ShinyButton.js +29 -0
  232. package/dist/cjs/global-account/react/components/ui/TabSystem.d.ts +30 -0
  233. package/dist/cjs/global-account/react/components/ui/TabSystem.js +86 -0
  234. package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +9 -0
  235. package/dist/cjs/global-account/react/components/ui/Tabs.js +53 -0
  236. package/dist/cjs/global-account/react/components/ui/badge.d.ts +9 -0
  237. package/dist/cjs/global-account/react/components/ui/badge.js +24 -0
  238. package/dist/cjs/global-account/react/components/ui/button.d.ts +11 -0
  239. package/dist/cjs/global-account/react/components/ui/button.js +72 -0
  240. package/dist/cjs/global-account/react/components/ui/command.d.ts +82 -0
  241. package/dist/cjs/global-account/react/components/ui/command.js +74 -0
  242. package/dist/cjs/global-account/react/components/ui/dialog.d.ts +30 -0
  243. package/dist/cjs/global-account/react/components/ui/dialog.js +71 -0
  244. package/dist/cjs/global-account/react/components/ui/drawer.d.ts +22 -0
  245. package/dist/cjs/global-account/react/components/ui/drawer.js +71 -0
  246. package/dist/cjs/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
  247. package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +146 -0
  248. package/dist/cjs/global-account/react/components/ui/glare-card.d.ts +4 -0
  249. package/dist/cjs/global-account/react/components/ui/glare-card.js +108 -0
  250. package/dist/cjs/global-account/react/components/ui/input.d.ts +5 -0
  251. package/dist/cjs/global-account/react/components/ui/input.js +46 -0
  252. package/dist/cjs/global-account/react/components/ui/popover.d.ts +6 -0
  253. package/dist/cjs/global-account/react/components/ui/popover.js +52 -0
  254. package/dist/cjs/global-account/react/components/ui/scroll-area.d.ts +5 -0
  255. package/dist/cjs/global-account/react/components/ui/scroll-area.js +47 -0
  256. package/dist/cjs/global-account/react/components/ui/skeleton.d.ts +2 -0
  257. package/dist/cjs/global-account/react/components/ui/skeleton.js +8 -0
  258. package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +11 -0
  259. package/dist/cjs/global-account/react/components/ui/text-loop.js +29 -0
  260. package/dist/cjs/global-account/react/components/ui/text-shimmer.d.ts +10 -0
  261. package/dist/cjs/global-account/react/components/ui/text-shimmer.js +22 -0
  262. package/dist/cjs/global-account/react/components/ui/tooltip.d.ts +7 -0
  263. package/dist/cjs/global-account/react/components/ui/tooltip.js +50 -0
  264. package/dist/cjs/global-account/react/components/ui/transition-panel.d.ts +14 -0
  265. package/dist/cjs/global-account/react/components/ui/transition-panel.js +10 -0
  266. package/dist/cjs/global-account/react/hooks/useAccountAssets.d.ts +3 -0
  267. package/dist/cjs/global-account/react/hooks/useAccountAssets.js +35 -0
  268. package/dist/cjs/global-account/react/hooks/useAccountWallet.d.ts +18 -0
  269. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +70 -0
  270. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
  271. package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +56 -0
  272. package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +10 -0
  273. package/dist/cjs/global-account/react/hooks/useAuthentication.js +123 -0
  274. package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
  275. package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +70 -0
  276. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
  277. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +150 -0
  278. package/dist/cjs/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
  279. package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +13 -0
  280. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
  281. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +73 -0
  282. package/dist/cjs/global-account/react/hooks/useClaim.d.ts +16 -0
  283. package/dist/cjs/global-account/react/hooks/useClaim.js +50 -0
  284. package/dist/cjs/global-account/react/hooks/useConnect.d.ts +9 -0
  285. package/dist/cjs/global-account/react/hooks/useConnect.js +52 -0
  286. package/dist/cjs/global-account/react/hooks/useExchangeRate.d.ts +12 -0
  287. package/dist/cjs/global-account/react/hooks/useExchangeRate.js +30 -0
  288. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
  289. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +77 -0
  290. package/dist/cjs/global-account/react/hooks/useGetGeo.d.ts +17 -0
  291. package/dist/cjs/global-account/react/hooks/useGetGeo.js +20 -0
  292. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
  293. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +69 -0
  294. package/dist/cjs/global-account/react/hooks/useHasMounted.d.ts +1 -0
  295. package/dist/cjs/global-account/react/hooks/useHasMounted.js +11 -0
  296. package/dist/cjs/global-account/react/hooks/useIsMobile.d.ts +2 -0
  297. package/dist/cjs/global-account/react/hooks/useIsMobile.js +8 -0
  298. package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  299. package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.js +5 -0
  300. package/dist/cjs/global-account/react/hooks/useMediaQuery.d.ts +6 -0
  301. package/dist/cjs/global-account/react/hooks/useMediaQuery.js +47 -0
  302. package/dist/cjs/global-account/react/hooks/useNativeBalance.d.ts +22 -0
  303. package/dist/cjs/global-account/react/hooks/useNativeBalance.js +76 -0
  304. package/dist/cjs/global-account/react/hooks/useOnchainName.d.ts +19 -0
  305. package/dist/cjs/global-account/react/hooks/useOnchainName.js +193 -0
  306. package/dist/cjs/global-account/react/hooks/useOneBalance.d.ts +26 -0
  307. package/dist/cjs/global-account/react/hooks/useOneBalance.js +69 -0
  308. package/dist/cjs/global-account/react/hooks/useQueryB3.d.ts +25 -0
  309. package/dist/cjs/global-account/react/hooks/useQueryB3.js +40 -0
  310. package/dist/cjs/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
  311. package/dist/cjs/global-account/react/hooks/useQueryBSMNT.js +40 -0
  312. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
  313. package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +49 -0
  314. package/dist/cjs/global-account/react/hooks/useRouter.d.ts +14 -0
  315. package/dist/cjs/global-account/react/hooks/useRouter.js +78 -0
  316. package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
  317. package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.js +31 -0
  318. package/dist/cjs/global-account/react/hooks/useSiwe.d.ts +4 -0
  319. package/dist/cjs/global-account/react/hooks/useSiwe.js +38 -0
  320. package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +12 -0
  321. package/dist/cjs/global-account/react/hooks/useTokenBalance.js +64 -0
  322. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
  323. package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +58 -0
  324. package/dist/cjs/global-account/react/hooks/useTokenData.d.ts +9 -0
  325. package/dist/cjs/global-account/react/hooks/useTokenData.js +47 -0
  326. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
  327. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +30 -0
  328. package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +17 -0
  329. package/dist/cjs/global-account/react/hooks/useTokenPrice.js +48 -0
  330. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
  331. package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +34 -0
  332. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
  333. package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +51 -0
  334. package/dist/cjs/global-account/react/hooks/useURLParams.d.ts +8 -0
  335. package/dist/cjs/global-account/react/hooks/useURLParams.js +38 -0
  336. package/dist/cjs/global-account/react/stores/useAuthStore.d.ts +26 -0
  337. package/dist/cjs/global-account/react/stores/useAuthStore.js +39 -0
  338. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +267 -0
  339. package/dist/cjs/global-account/react/stores/useModalStore.js +36 -0
  340. package/dist/cjs/global-account/server.d.ts +8 -0
  341. package/dist/cjs/global-account/server.js +26 -0
  342. package/dist/cjs/global-account/types/b3-api.d.ts +3 -0
  343. package/dist/cjs/global-account/types/b3-api.js +41 -0
  344. package/dist/cjs/global-account/types/b3-api.types.d.ts +51 -0
  345. package/dist/cjs/global-account/types/b3-api.types.js +4 -0
  346. package/dist/cjs/global-account/types/chain-networks.d.ts +44 -0
  347. package/dist/cjs/global-account/types/chain-networks.js +48 -0
  348. package/dist/cjs/global-account/types/feature-flags.d.ts +8 -0
  349. package/dist/cjs/global-account/types/feature-flags.js +10 -0
  350. package/dist/cjs/global-account/types/permissions.d.ts +21 -0
  351. package/dist/cjs/global-account/types/permissions.js +2 -0
  352. package/dist/cjs/global-account/types/reservoir.types.d.ts +89 -0
  353. package/dist/cjs/global-account/types/reservoir.types.js +2 -0
  354. package/dist/cjs/global-account/types/simplehash.types.d.ts +292 -0
  355. package/dist/cjs/global-account/types/simplehash.types.js +2 -0
  356. package/dist/cjs/global-account/types.d.ts +19 -0
  357. package/dist/cjs/global-account/types.js +2 -0
  358. package/dist/cjs/shared/constants/chains/b3Chain.d.ts +144 -0
  359. package/dist/cjs/shared/constants/chains/b3Chain.js +167 -0
  360. package/dist/cjs/shared/constants/chains/chainPlatformMap.d.ts +24 -0
  361. package/dist/cjs/shared/constants/chains/chainPlatformMap.js +47 -0
  362. package/dist/cjs/shared/constants/chains/supported.d.ts +53 -0
  363. package/dist/cjs/shared/constants/chains/supported.js +31 -0
  364. package/dist/cjs/shared/constants/index.d.ts +15 -0
  365. package/dist/cjs/shared/constants/index.js +21 -0
  366. package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
  367. package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +1355 -0
  368. package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +12 -0
  369. package/dist/cjs/shared/thirdweb/generated/client.gen.js +6 -0
  370. package/dist/cjs/shared/thirdweb/generated/index.d.ts +2 -0
  371. package/dist/cjs/shared/thirdweb/generated/index.js +19 -0
  372. package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
  373. package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +1037 -0
  374. package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +4159 -0
  375. package/dist/cjs/shared/thirdweb/generated/types.gen.js +3 -0
  376. package/dist/cjs/shared/thirdweb/initiateClient.d.ts +1 -0
  377. package/dist/cjs/shared/thirdweb/initiateClient.js +27 -0
  378. package/dist/cjs/shared/thirdweb/openapi-ts.config.d.ts +2 -0
  379. package/dist/cjs/shared/thirdweb/openapi-ts.config.js +8 -0
  380. package/dist/cjs/shared/utils/b3Ens.d.ts +5 -0
  381. package/dist/cjs/shared/utils/b3Ens.js +27 -0
  382. package/dist/cjs/shared/utils/centerTruncate.d.ts +1 -0
  383. package/dist/cjs/shared/utils/centerTruncate.js +14 -0
  384. package/dist/cjs/shared/utils/chain-transformers.d.ts +5 -0
  385. package/dist/cjs/shared/utils/chain-transformers.js +50 -0
  386. package/dist/cjs/shared/utils/chains.d.ts +6 -0
  387. package/dist/cjs/shared/utils/chains.js +38 -0
  388. package/dist/cjs/shared/utils/cn.d.ts +2 -0
  389. package/dist/cjs/shared/utils/cn.js +8 -0
  390. package/dist/cjs/shared/utils/colors.d.ts +2 -0
  391. package/dist/cjs/shared/utils/colors.js +33 -0
  392. package/dist/cjs/shared/utils/cookies.d.ts +3 -0
  393. package/dist/cjs/shared/utils/cookies.js +17 -0
  394. package/dist/cjs/shared/utils/debug.d.ts +4 -0
  395. package/dist/cjs/shared/utils/debug.js +20 -0
  396. package/dist/cjs/shared/utils/fetchBalances.d.ts +16 -0
  397. package/dist/cjs/shared/utils/fetchBalances.js +64 -0
  398. package/dist/cjs/shared/utils/fetchBsmntProfile.d.ts +1 -0
  399. package/dist/cjs/shared/utils/fetchBsmntProfile.js +26 -0
  400. package/dist/cjs/shared/utils/formatAddress.d.ts +2 -0
  401. package/dist/cjs/shared/utils/formatAddress.js +19 -0
  402. package/dist/cjs/shared/utils/formatNumber.d.ts +7 -0
  403. package/dist/cjs/shared/utils/formatNumber.js +49 -0
  404. package/dist/cjs/shared/utils/index.d.ts +2 -0
  405. package/dist/cjs/shared/utils/index.js +23 -0
  406. package/dist/cjs/shared/utils/insights.d.ts +7 -0
  407. package/dist/cjs/shared/utils/insights.js +388 -0
  408. package/dist/cjs/shared/utils/ipfs.d.ts +12 -0
  409. package/dist/cjs/shared/utils/ipfs.js +32 -0
  410. package/dist/cjs/shared/utils/number.d.ts +11 -0
  411. package/dist/cjs/shared/utils/number.js +110 -0
  412. package/dist/cjs/shared/utils/payment.utils.d.ts +5 -0
  413. package/dist/cjs/shared/utils/payment.utils.js +36 -0
  414. package/dist/cjs/shared/utils/simplehash.d.ts +12 -0
  415. package/dist/cjs/shared/utils/simplehash.js +308 -0
  416. package/dist/cjs/shared/utils/sprinter.d.ts +1 -0
  417. package/dist/cjs/shared/utils/sprinter.js +15 -0
  418. package/dist/cjs/shared/utils/thirdweb-insights.d.ts +105 -0
  419. package/dist/cjs/shared/utils/thirdweb-insights.js +200 -0
  420. package/dist/cjs/shared/utils/thirdweb.d.ts +1 -0
  421. package/dist/cjs/shared/utils/thirdweb.js +11 -0
  422. package/dist/cjs/styles/index.d.ts +20 -0
  423. package/dist/cjs/styles/index.js +22 -0
  424. package/dist/esm/anyspend/abis/abi-usdc-base.d.ts +1074 -0
  425. package/dist/esm/anyspend/abis/abi-usdc-base.js +599 -0
  426. package/dist/esm/anyspend/abis/erc20-staking.d.ts +540 -0
  427. package/dist/esm/anyspend/abis/erc20-staking.js +298 -0
  428. package/dist/esm/anyspend/constants/index.d.ts +28 -0
  429. package/dist/esm/anyspend/constants/index.js +69 -0
  430. package/dist/esm/anyspend/index.d.ts +13 -0
  431. package/dist/esm/anyspend/index.js +19 -0
  432. package/dist/esm/anyspend/react/components/AnySpend.d.ts +22 -0
  433. package/dist/esm/anyspend/react/components/AnySpend.js +693 -0
  434. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
  435. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +327 -0
  436. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +22 -0
  437. package/dist/esm/anyspend/react/components/AnySpendCustom.js +393 -0
  438. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +8 -0
  439. package/dist/esm/anyspend/react/components/AnySpendNFT.js +25 -0
  440. package/dist/esm/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
  441. package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +16 -0
  442. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
  443. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +263 -0
  444. package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +27 -0
  445. package/dist/esm/anyspend/react/components/AnySpendTournament.js +15 -0
  446. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
  447. package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +4 -0
  448. package/dist/esm/anyspend/react/components/common/HowItWorks.d.ts +10 -0
  449. package/dist/esm/anyspend/react/components/common/HowItWorks.js +4 -0
  450. package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +14 -0
  451. package/dist/esm/anyspend/react/components/common/OrderDetails.js +385 -0
  452. package/dist/esm/anyspend/react/components/common/OrderHistory.d.ts +7 -0
  453. package/dist/esm/anyspend/react/components/common/OrderHistory.js +18 -0
  454. package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
  455. package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +32 -0
  456. package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +4 -0
  457. package/dist/esm/anyspend/react/components/common/OrderStatus.js +11 -0
  458. package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +11 -0
  459. package/dist/esm/anyspend/react/components/common/OrderToken.js +56 -0
  460. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
  461. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +47 -0
  462. package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
  463. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +40 -0
  464. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
  465. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +118 -0
  466. package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
  467. package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +12 -0
  468. package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
  469. package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +21 -0
  470. package/dist/esm/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
  471. package/dist/esm/anyspend/react/components/common/PaymentOptions.js +4 -0
  472. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
  473. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +147 -0
  474. package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
  475. package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +17 -0
  476. package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +6 -0
  477. package/dist/esm/anyspend/react/components/common/TokenBalance.js +18 -0
  478. package/dist/esm/anyspend/react/components/icons/EthIcon.d.ts +3 -0
  479. package/dist/esm/anyspend/react/components/icons/EthIcon.js +4 -0
  480. package/dist/esm/anyspend/react/components/icons/SolIcon.d.ts +3 -0
  481. package/dist/esm/anyspend/react/components/icons/SolIcon.js +4 -0
  482. package/dist/esm/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
  483. package/dist/esm/anyspend/react/components/icons/USDCIcon.js +4 -0
  484. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
  485. package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +15 -0
  486. package/dist/esm/anyspend/react/hooks/index.d.ts +13 -0
  487. package/dist/esm/anyspend/react/hooks/index.js +13 -0
  488. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
  489. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +80 -0
  490. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
  491. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +65 -0
  492. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
  493. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +31 -0
  494. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
  495. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +17 -0
  496. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
  497. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +49 -0
  498. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  499. package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +36 -0
  500. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
  501. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +15 -0
  502. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
  503. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +16 -0
  504. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
  505. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +50 -0
  506. package/dist/esm/anyspend/react/hooks/useGetGeo.d.ts +16 -0
  507. package/dist/esm/anyspend/react/hooks/useGetGeo.js +12 -0
  508. package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +92 -0
  509. package/dist/esm/anyspend/react/hooks/usePermitData.js +154 -0
  510. package/dist/esm/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
  511. package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +15 -0
  512. package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
  513. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +17 -0
  514. package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
  515. package/dist/esm/anyspend/react/providers/AnyspendProvider.js +38 -0
  516. package/dist/esm/anyspend/services/anyspend.d.ts +372 -0
  517. package/dist/esm/anyspend/services/anyspend.js +120 -0
  518. package/dist/esm/anyspend/types/chain.d.ts +26 -0
  519. package/dist/esm/anyspend/types/chain.js +5 -0
  520. package/dist/esm/anyspend/types/custom.d.ts +130 -0
  521. package/dist/esm/anyspend/types/custom.js +13 -0
  522. package/dist/esm/anyspend/types/globalWallet.d.ts +18 -0
  523. package/dist/esm/anyspend/types/globalWallet.js +7 -0
  524. package/dist/esm/anyspend/types/index.d.ts +13 -0
  525. package/dist/esm/anyspend/types/index.js +13 -0
  526. package/dist/esm/anyspend/types/nft.d.ts +267 -0
  527. package/dist/esm/anyspend/types/nft.js +33 -0
  528. package/dist/esm/anyspend/types/onramp.d.ts +25 -0
  529. package/dist/esm/anyspend/types/onramp.js +14 -0
  530. package/dist/esm/anyspend/types/order.d.ts +1771 -0
  531. package/dist/esm/anyspend/types/order.js +82 -0
  532. package/dist/esm/anyspend/types/permit.d.ts +21 -0
  533. package/dist/esm/anyspend/types/permit.js +8 -0
  534. package/dist/esm/anyspend/types/relay.d.ts +10 -0
  535. package/dist/esm/anyspend/types/relay.js +9 -0
  536. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +4113 -0
  537. package/dist/esm/anyspend/types/req-res/createOrder.js +57 -0
  538. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
  539. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +28 -0
  540. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
  541. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +20 -0
  542. package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
  543. package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +8 -0
  544. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
  545. package/dist/esm/anyspend/types/req-res/getOrderHistory.js +8 -0
  546. package/dist/esm/anyspend/types/req-res/getQuote.d.ts +253 -0
  547. package/dist/esm/anyspend/types/req-res/getQuote.js +43 -0
  548. package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +63 -0
  549. package/dist/esm/anyspend/types/req-res/getTokenList.js +15 -0
  550. package/dist/esm/anyspend/types/req-res/index.d.ts +8 -0
  551. package/dist/esm/anyspend/types/req-res/index.js +8 -0
  552. package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  553. package/dist/esm/anyspend/types/req-res/sendPermitData.js +8 -0
  554. package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
  555. package/dist/esm/anyspend/types/req-res/stripe.js +1 -0
  556. package/dist/esm/anyspend/types/swap.d.ts +119 -0
  557. package/dist/esm/anyspend/types/swap.js +10 -0
  558. package/dist/esm/anyspend/types/token.d.ts +34 -0
  559. package/dist/esm/anyspend/types/token.js +11 -0
  560. package/dist/esm/anyspend/types/tournament.d.ts +174 -0
  561. package/dist/esm/anyspend/types/tournament.js +21 -0
  562. package/dist/esm/anyspend/types/transaction.d.ts +84 -0
  563. package/dist/esm/anyspend/types/transaction.js +31 -0
  564. package/dist/esm/anyspend/utils/address.d.ts +4 -0
  565. package/dist/esm/anyspend/utils/address.js +23 -0
  566. package/dist/esm/anyspend/utils/chain.d.ts +25 -0
  567. package/dist/esm/anyspend/utils/chain.js +271 -0
  568. package/dist/esm/anyspend/utils/format.d.ts +6 -0
  569. package/dist/esm/anyspend/utils/format.js +54 -0
  570. package/dist/esm/anyspend/utils/index.d.ts +8 -0
  571. package/dist/esm/anyspend/utils/index.js +8 -0
  572. package/dist/esm/anyspend/utils/json.d.ts +1 -0
  573. package/dist/esm/anyspend/utils/json.js +3 -0
  574. package/dist/esm/anyspend/utils/number.d.ts +13 -0
  575. package/dist/esm/anyspend/utils/number.js +79 -0
  576. package/dist/esm/anyspend/utils/orderPayload.d.ts +127 -0
  577. package/dist/esm/anyspend/utils/orderPayload.js +51 -0
  578. package/dist/esm/anyspend/utils/string.d.ts +1 -0
  579. package/dist/esm/anyspend/utils/string.js +5 -0
  580. package/dist/esm/anyspend/utils/token.d.ts +7 -0
  581. package/dist/esm/anyspend/utils/token.js +65 -0
  582. package/dist/esm/generated/chain-networks.json +483 -0
  583. package/dist/esm/global-account/app.d.ts +4 -0
  584. package/dist/esm/global-account/app.js +57 -0
  585. package/dist/esm/global-account/app.native.d.ts +5 -0
  586. package/dist/esm/global-account/app.native.js +83 -0
  587. package/dist/esm/global-account/bsmnt.d.ts +4 -0
  588. package/dist/esm/global-account/bsmnt.js +61 -0
  589. package/dist/esm/global-account/bsmnt.native.d.ts +5 -0
  590. package/dist/esm/global-account/bsmnt.native.js +86 -0
  591. package/dist/esm/global-account/index.d.ts +9 -0
  592. package/dist/esm/global-account/index.js +11 -0
  593. package/dist/esm/global-account/index.native.d.ts +3 -0
  594. package/dist/esm/global-account/index.native.js +11 -0
  595. package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
  596. package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.js +10 -0
  597. package/dist/esm/global-account/react/components/B3DynamicModal.d.ts +1 -0
  598. package/dist/esm/global-account/react/components/B3DynamicModal.js +86 -0
  599. package/dist/esm/global-account/react/components/B3Provider.d.ts +53 -0
  600. package/dist/esm/global-account/react/components/B3Provider.js +109 -0
  601. package/dist/esm/global-account/react/components/B3Provider.native.d.ts +46 -0
  602. package/dist/esm/global-account/react/components/B3Provider.native.js +70 -0
  603. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
  604. package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +79 -0
  605. package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +17 -0
  606. package/dist/esm/global-account/react/components/MintButton/MintButton.js +48 -0
  607. package/dist/esm/global-account/react/components/ProfileAvatar.d.ts +0 -0
  608. package/dist/esm/global-account/react/components/ProfileAvatar.js +127 -0
  609. package/dist/esm/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
  610. package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +26 -0
  611. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
  612. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +77 -0
  613. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
  614. package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +23 -0
  615. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
  616. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +39 -0
  617. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
  618. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +200 -0
  619. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
  620. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +45 -0
  621. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
  622. package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +6 -0
  623. package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
  624. package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.js +5 -0
  625. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
  626. package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +6 -0
  627. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
  628. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +82 -0
  629. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
  630. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +70 -0
  631. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
  632. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +50 -0
  633. package/dist/esm/global-account/react/components/StyleRoot.d.ts +4 -0
  634. package/dist/esm/global-account/react/components/StyleRoot.js +7 -0
  635. package/dist/esm/global-account/react/components/Transak/TransakModal.d.ts +1 -0
  636. package/dist/esm/global-account/react/components/Transak/TransakModal.js +107 -0
  637. package/dist/esm/global-account/react/components/custom/Button.d.ts +12 -0
  638. package/dist/esm/global-account/react/components/custom/Button.js +32 -0
  639. package/dist/esm/global-account/react/components/custom/ClientOnly.d.ts +7 -0
  640. package/dist/esm/global-account/react/components/custom/ClientOnly.js +10 -0
  641. package/dist/esm/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
  642. package/dist/esm/global-account/react/components/custom/CopyToClipboard.js +18 -0
  643. package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
  644. package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +21 -0
  645. package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
  646. package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +24 -0
  647. package/dist/esm/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
  648. package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +58 -0
  649. package/dist/esm/global-account/react/components/ui/Loading.d.ts +7 -0
  650. package/dist/esm/global-account/react/components/ui/Loading.js +15 -0
  651. package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +14 -0
  652. package/dist/esm/global-account/react/components/ui/ShinyButton.js +24 -0
  653. package/dist/esm/global-account/react/components/ui/TabSystem.d.ts +30 -0
  654. package/dist/esm/global-account/react/components/ui/TabSystem.js +46 -0
  655. package/dist/esm/global-account/react/components/ui/Tabs.d.ts +9 -0
  656. package/dist/esm/global-account/react/components/ui/Tabs.js +13 -0
  657. package/dist/esm/global-account/react/components/ui/badge.d.ts +9 -0
  658. package/dist/esm/global-account/react/components/ui/badge.js +20 -0
  659. package/dist/esm/global-account/react/components/ui/button.d.ts +11 -0
  660. package/dist/esm/global-account/react/components/ui/button.js +35 -0
  661. package/dist/esm/global-account/react/components/ui/command.d.ts +82 -0
  662. package/dist/esm/global-account/react/components/ui/command.js +30 -0
  663. package/dist/esm/global-account/react/components/ui/dialog.d.ts +30 -0
  664. package/dist/esm/global-account/react/components/ui/dialog.js +26 -0
  665. package/dist/esm/global-account/react/components/ui/drawer.d.ts +22 -0
  666. package/dist/esm/global-account/react/components/ui/drawer.js +26 -0
  667. package/dist/esm/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
  668. package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +142 -0
  669. package/dist/esm/global-account/react/components/ui/glare-card.d.ts +4 -0
  670. package/dist/esm/global-account/react/components/ui/glare-card.js +104 -0
  671. package/dist/esm/global-account/react/components/ui/input.d.ts +5 -0
  672. package/dist/esm/global-account/react/components/ui/input.js +10 -0
  673. package/dist/esm/global-account/react/components/ui/popover.d.ts +6 -0
  674. package/dist/esm/global-account/react/components/ui/popover.js +11 -0
  675. package/dist/esm/global-account/react/components/ui/scroll-area.d.ts +5 -0
  676. package/dist/esm/global-account/react/components/ui/scroll-area.js +10 -0
  677. package/dist/esm/global-account/react/components/ui/skeleton.d.ts +2 -0
  678. package/dist/esm/global-account/react/components/ui/skeleton.js +6 -0
  679. package/dist/esm/global-account/react/components/ui/text-loop.d.ts +11 -0
  680. package/dist/esm/global-account/react/components/ui/text-loop.js +26 -0
  681. package/dist/esm/global-account/react/components/ui/text-shimmer.d.ts +10 -0
  682. package/dist/esm/global-account/react/components/ui/text-shimmer.js +19 -0
  683. package/dist/esm/global-account/react/components/ui/tooltip.d.ts +7 -0
  684. package/dist/esm/global-account/react/components/ui/tooltip.js +11 -0
  685. package/dist/esm/global-account/react/components/ui/transition-panel.d.ts +14 -0
  686. package/dist/esm/global-account/react/components/ui/transition-panel.js +7 -0
  687. package/dist/esm/global-account/react/hooks/useAccountAssets.d.ts +3 -0
  688. package/dist/esm/global-account/react/hooks/useAccountAssets.js +32 -0
  689. package/dist/esm/global-account/react/hooks/useAccountWallet.d.ts +18 -0
  690. package/dist/esm/global-account/react/hooks/useAccountWallet.js +67 -0
  691. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
  692. package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +50 -0
  693. package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +10 -0
  694. package/dist/esm/global-account/react/hooks/useAuthentication.js +117 -0
  695. package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
  696. package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +67 -0
  697. package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
  698. package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +147 -0
  699. package/dist/esm/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
  700. package/dist/esm/global-account/react/hooks/useBsmntProfile.js +9 -0
  701. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
  702. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +70 -0
  703. package/dist/esm/global-account/react/hooks/useClaim.d.ts +16 -0
  704. package/dist/esm/global-account/react/hooks/useClaim.js +46 -0
  705. package/dist/esm/global-account/react/hooks/useConnect.d.ts +9 -0
  706. package/dist/esm/global-account/react/hooks/useConnect.js +49 -0
  707. package/dist/esm/global-account/react/hooks/useExchangeRate.d.ts +12 -0
  708. package/dist/esm/global-account/react/hooks/useExchangeRate.js +27 -0
  709. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
  710. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +71 -0
  711. package/dist/esm/global-account/react/hooks/useGetGeo.d.ts +17 -0
  712. package/dist/esm/global-account/react/hooks/useGetGeo.js +18 -0
  713. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
  714. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +66 -0
  715. package/dist/esm/global-account/react/hooks/useHasMounted.d.ts +1 -0
  716. package/dist/esm/global-account/react/hooks/useHasMounted.js +8 -0
  717. package/dist/esm/global-account/react/hooks/useIsMobile.d.ts +2 -0
  718. package/dist/esm/global-account/react/hooks/useIsMobile.js +6 -0
  719. package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  720. package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.js +2 -0
  721. package/dist/esm/global-account/react/hooks/useMediaQuery.d.ts +6 -0
  722. package/dist/esm/global-account/react/hooks/useMediaQuery.js +44 -0
  723. package/dist/esm/global-account/react/hooks/useNativeBalance.d.ts +22 -0
  724. package/dist/esm/global-account/react/hooks/useNativeBalance.js +72 -0
  725. package/dist/esm/global-account/react/hooks/useOnchainName.d.ts +19 -0
  726. package/dist/esm/global-account/react/hooks/useOnchainName.js +187 -0
  727. package/dist/esm/global-account/react/hooks/useOneBalance.d.ts +26 -0
  728. package/dist/esm/global-account/react/hooks/useOneBalance.js +65 -0
  729. package/dist/esm/global-account/react/hooks/useQueryB3.d.ts +25 -0
  730. package/dist/esm/global-account/react/hooks/useQueryB3.js +34 -0
  731. package/dist/esm/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
  732. package/dist/esm/global-account/react/hooks/useQueryBSMNT.js +34 -0
  733. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
  734. package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +43 -0
  735. package/dist/esm/global-account/react/hooks/useRouter.d.ts +14 -0
  736. package/dist/esm/global-account/react/hooks/useRouter.js +75 -0
  737. package/dist/esm/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
  738. package/dist/esm/global-account/react/hooks/useSearchParamsSSR.js +27 -0
  739. package/dist/esm/global-account/react/hooks/useSiwe.d.ts +4 -0
  740. package/dist/esm/global-account/react/hooks/useSiwe.js +32 -0
  741. package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +12 -0
  742. package/dist/esm/global-account/react/hooks/useTokenBalance.js +61 -0
  743. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
  744. package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +55 -0
  745. package/dist/esm/global-account/react/hooks/useTokenData.d.ts +9 -0
  746. package/dist/esm/global-account/react/hooks/useTokenData.js +44 -0
  747. package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
  748. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +27 -0
  749. package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +17 -0
  750. package/dist/esm/global-account/react/hooks/useTokenPrice.js +45 -0
  751. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
  752. package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +31 -0
  753. package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
  754. package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +45 -0
  755. package/dist/esm/global-account/react/hooks/useURLParams.d.ts +8 -0
  756. package/dist/esm/global-account/react/hooks/useURLParams.js +32 -0
  757. package/dist/esm/global-account/react/stores/useAuthStore.d.ts +26 -0
  758. package/dist/esm/global-account/react/stores/useAuthStore.js +36 -0
  759. package/dist/esm/global-account/react/stores/useModalStore.d.ts +267 -0
  760. package/dist/esm/global-account/react/stores/useModalStore.js +33 -0
  761. package/dist/esm/global-account/server.d.ts +8 -0
  762. package/dist/esm/global-account/server.js +22 -0
  763. package/dist/esm/global-account/types/b3-api.d.ts +3 -0
  764. package/dist/esm/global-account/types/b3-api.js +3 -0
  765. package/dist/esm/global-account/types/b3-api.types.d.ts +51 -0
  766. package/dist/esm/global-account/types/b3-api.types.js +3 -0
  767. package/dist/esm/global-account/types/chain-networks.d.ts +44 -0
  768. package/dist/esm/global-account/types/chain-networks.js +45 -0
  769. package/dist/esm/global-account/types/feature-flags.d.ts +8 -0
  770. package/dist/esm/global-account/types/feature-flags.js +7 -0
  771. package/dist/esm/global-account/types/permissions.d.ts +21 -0
  772. package/dist/esm/global-account/types/permissions.js +1 -0
  773. package/dist/esm/global-account/types/reservoir.types.d.ts +89 -0
  774. package/dist/esm/global-account/types/reservoir.types.js +1 -0
  775. package/dist/esm/global-account/types/simplehash.types.d.ts +292 -0
  776. package/dist/esm/global-account/types/simplehash.types.js +1 -0
  777. package/dist/esm/global-account/types.d.ts +19 -0
  778. package/dist/esm/global-account/types.js +1 -0
  779. package/dist/esm/shared/constants/chains/b3Chain.d.ts +144 -0
  780. package/dist/esm/shared/constants/chains/b3Chain.js +161 -0
  781. package/dist/esm/shared/constants/chains/chainPlatformMap.d.ts +24 -0
  782. package/dist/esm/shared/constants/chains/chainPlatformMap.js +43 -0
  783. package/dist/esm/shared/constants/chains/supported.d.ts +53 -0
  784. package/dist/esm/shared/constants/chains/supported.js +25 -0
  785. package/dist/esm/shared/constants/index.d.ts +15 -0
  786. package/dist/esm/shared/constants/index.js +18 -0
  787. package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
  788. package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +1225 -0
  789. package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +12 -0
  790. package/dist/esm/shared/thirdweb/generated/client.gen.js +3 -0
  791. package/dist/esm/shared/thirdweb/generated/index.d.ts +2 -0
  792. package/dist/esm/shared/thirdweb/generated/index.js +3 -0
  793. package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
  794. package/dist/esm/shared/thirdweb/generated/sdk.gen.js +995 -0
  795. package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +4159 -0
  796. package/dist/esm/shared/thirdweb/generated/types.gen.js +2 -0
  797. package/dist/esm/shared/thirdweb/initiateClient.d.ts +1 -0
  798. package/dist/esm/shared/thirdweb/initiateClient.js +25 -0
  799. package/dist/esm/shared/thirdweb/openapi-ts.config.d.ts +2 -0
  800. package/dist/esm/shared/thirdweb/openapi-ts.config.js +6 -0
  801. package/dist/esm/shared/utils/b3Ens.d.ts +5 -0
  802. package/dist/esm/shared/utils/b3Ens.js +23 -0
  803. package/dist/esm/shared/utils/centerTruncate.d.ts +1 -0
  804. package/dist/esm/shared/utils/centerTruncate.js +11 -0
  805. package/dist/esm/shared/utils/chain-transformers.d.ts +5 -0
  806. package/dist/esm/shared/utils/chain-transformers.js +46 -0
  807. package/dist/esm/shared/utils/chains.d.ts +6 -0
  808. package/dist/esm/shared/utils/chains.js +31 -0
  809. package/dist/esm/shared/utils/cn.d.ts +2 -0
  810. package/dist/esm/shared/utils/cn.js +5 -0
  811. package/dist/esm/shared/utils/colors.d.ts +2 -0
  812. package/dist/esm/shared/utils/colors.js +29 -0
  813. package/dist/esm/shared/utils/cookies.d.ts +3 -0
  814. package/dist/esm/shared/utils/cookies.js +12 -0
  815. package/dist/esm/shared/utils/debug.d.ts +4 -0
  816. package/dist/esm/shared/utils/debug.js +13 -0
  817. package/dist/esm/shared/utils/fetchBalances.d.ts +16 -0
  818. package/dist/esm/shared/utils/fetchBalances.js +60 -0
  819. package/dist/esm/shared/utils/fetchBsmntProfile.d.ts +1 -0
  820. package/dist/esm/shared/utils/fetchBsmntProfile.js +23 -0
  821. package/dist/esm/shared/utils/formatAddress.d.ts +2 -0
  822. package/dist/esm/shared/utils/formatAddress.js +14 -0
  823. package/dist/esm/shared/utils/formatNumber.d.ts +7 -0
  824. package/dist/esm/shared/utils/formatNumber.js +45 -0
  825. package/dist/esm/shared/utils/index.d.ts +2 -0
  826. package/dist/esm/shared/utils/index.js +6 -0
  827. package/dist/esm/shared/utils/insights.d.ts +7 -0
  828. package/dist/esm/shared/utils/insights.js +381 -0
  829. package/dist/esm/shared/utils/ipfs.d.ts +12 -0
  830. package/dist/esm/shared/utils/ipfs.js +29 -0
  831. package/dist/esm/shared/utils/number.d.ts +11 -0
  832. package/dist/esm/shared/utils/number.js +102 -0
  833. package/dist/esm/shared/utils/payment.utils.d.ts +5 -0
  834. package/dist/esm/shared/utils/payment.utils.js +30 -0
  835. package/dist/esm/shared/utils/simplehash.d.ts +12 -0
  836. package/dist/esm/shared/utils/simplehash.js +286 -0
  837. package/dist/esm/shared/utils/sprinter.d.ts +1 -0
  838. package/dist/esm/shared/utils/sprinter.js +11 -0
  839. package/dist/esm/shared/utils/thirdweb-insights.d.ts +105 -0
  840. package/dist/esm/shared/utils/thirdweb-insights.js +192 -0
  841. package/dist/esm/shared/utils/thirdweb.d.ts +1 -0
  842. package/dist/esm/shared/utils/thirdweb.js +8 -0
  843. package/dist/esm/styles/index.d.ts +20 -0
  844. package/dist/esm/styles/index.js +20 -0
  845. package/dist/styles/index.css +1 -0
  846. package/dist/types/anyspend/abis/abi-usdc-base.d.ts +1074 -0
  847. package/dist/types/anyspend/abis/erc20-staking.d.ts +540 -0
  848. package/dist/types/anyspend/constants/index.d.ts +28 -0
  849. package/dist/types/anyspend/index.d.ts +13 -0
  850. package/dist/types/anyspend/react/components/AnySpend.d.ts +22 -0
  851. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
  852. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +22 -0
  853. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +8 -0
  854. package/dist/types/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
  855. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
  856. package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +27 -0
  857. package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
  858. package/dist/types/anyspend/react/components/common/HowItWorks.d.ts +10 -0
  859. package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +14 -0
  860. package/dist/types/anyspend/react/components/common/OrderHistory.d.ts +7 -0
  861. package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
  862. package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +4 -0
  863. package/dist/types/anyspend/react/components/common/OrderToken.d.ts +11 -0
  864. package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
  865. package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
  866. package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
  867. package/dist/types/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
  868. package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
  869. package/dist/types/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
  870. package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
  871. package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
  872. package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +6 -0
  873. package/dist/types/anyspend/react/components/icons/EthIcon.d.ts +3 -0
  874. package/dist/types/anyspend/react/components/icons/SolIcon.d.ts +3 -0
  875. package/dist/types/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
  876. package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
  877. package/dist/types/anyspend/react/hooks/index.d.ts +13 -0
  878. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
  879. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
  880. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
  881. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
  882. package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
  883. package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
  884. package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
  885. package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
  886. package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
  887. package/dist/types/anyspend/react/hooks/useGetGeo.d.ts +16 -0
  888. package/dist/types/anyspend/react/hooks/usePermitData.d.ts +92 -0
  889. package/dist/types/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
  890. package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
  891. package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
  892. package/dist/types/anyspend/services/anyspend.d.ts +372 -0
  893. package/dist/types/anyspend/types/chain.d.ts +26 -0
  894. package/dist/types/anyspend/types/custom.d.ts +130 -0
  895. package/dist/types/anyspend/types/globalWallet.d.ts +18 -0
  896. package/dist/types/anyspend/types/index.d.ts +13 -0
  897. package/dist/types/anyspend/types/nft.d.ts +267 -0
  898. package/dist/types/anyspend/types/onramp.d.ts +25 -0
  899. package/dist/types/anyspend/types/order.d.ts +1771 -0
  900. package/dist/types/anyspend/types/permit.d.ts +21 -0
  901. package/dist/types/anyspend/types/relay.d.ts +10 -0
  902. package/dist/types/anyspend/types/req-res/createOrder.d.ts +4113 -0
  903. package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
  904. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
  905. package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
  906. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
  907. package/dist/types/anyspend/types/req-res/getQuote.d.ts +253 -0
  908. package/dist/types/anyspend/types/req-res/getTokenList.d.ts +63 -0
  909. package/dist/types/anyspend/types/req-res/index.d.ts +8 -0
  910. package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +66 -0
  911. package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
  912. package/dist/types/anyspend/types/swap.d.ts +119 -0
  913. package/dist/types/anyspend/types/token.d.ts +34 -0
  914. package/dist/types/anyspend/types/tournament.d.ts +174 -0
  915. package/dist/types/anyspend/types/transaction.d.ts +84 -0
  916. package/dist/types/anyspend/utils/address.d.ts +4 -0
  917. package/dist/types/anyspend/utils/chain.d.ts +25 -0
  918. package/dist/types/anyspend/utils/format.d.ts +6 -0
  919. package/dist/types/anyspend/utils/index.d.ts +8 -0
  920. package/dist/types/anyspend/utils/json.d.ts +1 -0
  921. package/dist/types/anyspend/utils/number.d.ts +13 -0
  922. package/dist/types/anyspend/utils/orderPayload.d.ts +127 -0
  923. package/dist/types/anyspend/utils/string.d.ts +1 -0
  924. package/dist/types/anyspend/utils/token.d.ts +7 -0
  925. package/dist/types/global-account/app.d.ts +4 -0
  926. package/dist/types/global-account/app.native.d.ts +5 -0
  927. package/dist/types/global-account/bsmnt.d.ts +4 -0
  928. package/dist/types/global-account/bsmnt.native.d.ts +5 -0
  929. package/dist/types/global-account/index.d.ts +9 -0
  930. package/dist/types/global-account/index.native.d.ts +3 -0
  931. package/dist/types/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
  932. package/dist/types/global-account/react/components/B3DynamicModal.d.ts +1 -0
  933. package/dist/types/global-account/react/components/B3Provider.d.ts +53 -0
  934. package/dist/types/global-account/react/components/B3Provider.native.d.ts +46 -0
  935. package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
  936. package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +17 -0
  937. package/dist/types/global-account/react/components/ProfileAvatar.d.ts +0 -0
  938. package/dist/types/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
  939. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
  940. package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
  941. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
  942. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
  943. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
  944. package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
  945. package/dist/types/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
  946. package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
  947. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
  948. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
  949. package/dist/types/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
  950. package/dist/types/global-account/react/components/StyleRoot.d.ts +4 -0
  951. package/dist/types/global-account/react/components/Transak/TransakModal.d.ts +1 -0
  952. package/dist/types/global-account/react/components/custom/Button.d.ts +12 -0
  953. package/dist/types/global-account/react/components/custom/ClientOnly.d.ts +7 -0
  954. package/dist/types/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
  955. package/dist/types/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
  956. package/dist/types/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
  957. package/dist/types/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
  958. package/dist/types/global-account/react/components/ui/Loading.d.ts +7 -0
  959. package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +14 -0
  960. package/dist/types/global-account/react/components/ui/TabSystem.d.ts +30 -0
  961. package/dist/types/global-account/react/components/ui/Tabs.d.ts +9 -0
  962. package/dist/types/global-account/react/components/ui/badge.d.ts +9 -0
  963. package/dist/types/global-account/react/components/ui/button.d.ts +11 -0
  964. package/dist/types/global-account/react/components/ui/command.d.ts +82 -0
  965. package/dist/types/global-account/react/components/ui/dialog.d.ts +30 -0
  966. package/dist/types/global-account/react/components/ui/drawer.d.ts +22 -0
  967. package/dist/types/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
  968. package/dist/types/global-account/react/components/ui/glare-card.d.ts +4 -0
  969. package/dist/types/global-account/react/components/ui/input.d.ts +5 -0
  970. package/dist/types/global-account/react/components/ui/popover.d.ts +6 -0
  971. package/dist/types/global-account/react/components/ui/scroll-area.d.ts +5 -0
  972. package/dist/types/global-account/react/components/ui/skeleton.d.ts +2 -0
  973. package/dist/types/global-account/react/components/ui/text-loop.d.ts +11 -0
  974. package/dist/types/global-account/react/components/ui/text-shimmer.d.ts +10 -0
  975. package/dist/types/global-account/react/components/ui/tooltip.d.ts +7 -0
  976. package/dist/types/global-account/react/components/ui/transition-panel.d.ts +14 -0
  977. package/dist/types/global-account/react/hooks/useAccountAssets.d.ts +3 -0
  978. package/dist/types/global-account/react/hooks/useAccountWallet.d.ts +18 -0
  979. package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
  980. package/dist/types/global-account/react/hooks/useAuthentication.d.ts +10 -0
  981. package/dist/types/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
  982. package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
  983. package/dist/types/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
  984. package/dist/types/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
  985. package/dist/types/global-account/react/hooks/useClaim.d.ts +16 -0
  986. package/dist/types/global-account/react/hooks/useConnect.d.ts +9 -0
  987. package/dist/types/global-account/react/hooks/useExchangeRate.d.ts +12 -0
  988. package/dist/types/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
  989. package/dist/types/global-account/react/hooks/useGetGeo.d.ts +17 -0
  990. package/dist/types/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
  991. package/dist/types/global-account/react/hooks/useHasMounted.d.ts +1 -0
  992. package/dist/types/global-account/react/hooks/useIsMobile.d.ts +2 -0
  993. package/dist/types/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
  994. package/dist/types/global-account/react/hooks/useMediaQuery.d.ts +6 -0
  995. package/dist/types/global-account/react/hooks/useNativeBalance.d.ts +22 -0
  996. package/dist/types/global-account/react/hooks/useOnchainName.d.ts +19 -0
  997. package/dist/types/global-account/react/hooks/useOneBalance.d.ts +26 -0
  998. package/dist/types/global-account/react/hooks/useQueryB3.d.ts +25 -0
  999. package/dist/types/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
  1000. package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
  1001. package/dist/types/global-account/react/hooks/useRouter.d.ts +14 -0
  1002. package/dist/types/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
  1003. package/dist/types/global-account/react/hooks/useSiwe.d.ts +4 -0
  1004. package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +12 -0
  1005. package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
  1006. package/dist/types/global-account/react/hooks/useTokenData.d.ts +9 -0
  1007. package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
  1008. package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +17 -0
  1009. package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
  1010. package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
  1011. package/dist/types/global-account/react/hooks/useURLParams.d.ts +8 -0
  1012. package/dist/types/global-account/react/stores/useAuthStore.d.ts +26 -0
  1013. package/dist/types/global-account/react/stores/useModalStore.d.ts +267 -0
  1014. package/dist/types/global-account/server.d.ts +8 -0
  1015. package/dist/types/global-account/types/b3-api.d.ts +3 -0
  1016. package/dist/types/global-account/types/b3-api.types.d.ts +51 -0
  1017. package/dist/types/global-account/types/chain-networks.d.ts +44 -0
  1018. package/dist/types/global-account/types/feature-flags.d.ts +8 -0
  1019. package/dist/types/global-account/types/permissions.d.ts +21 -0
  1020. package/dist/types/global-account/types/reservoir.types.d.ts +89 -0
  1021. package/dist/types/global-account/types/simplehash.types.d.ts +292 -0
  1022. package/dist/types/global-account/types.d.ts +19 -0
  1023. package/dist/types/shared/constants/chains/b3Chain.d.ts +144 -0
  1024. package/dist/types/shared/constants/chains/chainPlatformMap.d.ts +24 -0
  1025. package/dist/types/shared/constants/chains/supported.d.ts +53 -0
  1026. package/dist/types/shared/constants/index.d.ts +15 -0
  1027. package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
  1028. package/dist/types/shared/thirdweb/generated/client.gen.d.ts +12 -0
  1029. package/dist/types/shared/thirdweb/generated/index.d.ts +2 -0
  1030. package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
  1031. package/dist/types/shared/thirdweb/generated/types.gen.d.ts +4159 -0
  1032. package/dist/types/shared/thirdweb/initiateClient.d.ts +1 -0
  1033. package/dist/types/shared/thirdweb/openapi-ts.config.d.ts +2 -0
  1034. package/dist/types/shared/utils/b3Ens.d.ts +5 -0
  1035. package/dist/types/shared/utils/centerTruncate.d.ts +1 -0
  1036. package/dist/types/shared/utils/chain-transformers.d.ts +5 -0
  1037. package/dist/types/shared/utils/chains.d.ts +6 -0
  1038. package/dist/types/shared/utils/cn.d.ts +2 -0
  1039. package/dist/types/shared/utils/colors.d.ts +2 -0
  1040. package/dist/types/shared/utils/cookies.d.ts +3 -0
  1041. package/dist/types/shared/utils/debug.d.ts +4 -0
  1042. package/dist/types/shared/utils/fetchBalances.d.ts +16 -0
  1043. package/dist/types/shared/utils/fetchBsmntProfile.d.ts +1 -0
  1044. package/dist/types/shared/utils/formatAddress.d.ts +2 -0
  1045. package/dist/types/shared/utils/formatNumber.d.ts +7 -0
  1046. package/dist/types/shared/utils/index.d.ts +2 -0
  1047. package/dist/types/shared/utils/insights.d.ts +7 -0
  1048. package/dist/types/shared/utils/ipfs.d.ts +12 -0
  1049. package/dist/types/shared/utils/number.d.ts +11 -0
  1050. package/dist/types/shared/utils/payment.utils.d.ts +5 -0
  1051. package/dist/types/shared/utils/simplehash.d.ts +12 -0
  1052. package/dist/types/shared/utils/sprinter.d.ts +1 -0
  1053. package/dist/types/shared/utils/thirdweb-insights.d.ts +105 -0
  1054. package/dist/types/shared/utils/thirdweb.d.ts +1 -0
  1055. package/dist/types/styles/index.d.ts +20 -0
  1056. package/package.json +340 -0
  1057. package/src/anyspend/abis/abi-usdc-base.ts +600 -0
  1058. package/src/anyspend/abis/erc20-staking.ts +299 -0
  1059. package/src/anyspend/constants/index.ts +88 -0
  1060. package/src/anyspend/index.ts +24 -0
  1061. package/src/anyspend/react/components/AnySpend.tsx +1144 -0
  1062. package/src/anyspend/react/components/AnySpendBuySpin.tsx +623 -0
  1063. package/src/anyspend/react/components/AnySpendCustom.tsx +812 -0
  1064. package/src/anyspend/react/components/AnySpendNFT.tsx +134 -0
  1065. package/src/anyspend/react/components/AnySpendNFTButton.tsx +33 -0
  1066. package/src/anyspend/react/components/AnySpendStakeB3.tsx +491 -0
  1067. package/src/anyspend/react/components/AnySpendTournament.tsx +109 -0
  1068. package/src/anyspend/react/components/common/ChainTokenIcon.tsx +18 -0
  1069. package/src/anyspend/react/components/common/HowItWorks.tsx +37 -0
  1070. package/src/anyspend/react/components/common/OrderDetails.tsx +1195 -0
  1071. package/src/anyspend/react/components/common/OrderHistory.tsx +64 -0
  1072. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +189 -0
  1073. package/src/anyspend/react/components/common/OrderStatus.tsx +39 -0
  1074. package/src/anyspend/react/components/common/OrderToken.tsx +132 -0
  1075. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +168 -0
  1076. package/src/anyspend/react/components/common/PanelOnramp.tsx +108 -0
  1077. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +354 -0
  1078. package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +22 -0
  1079. package/src/anyspend/react/components/common/PaymentOneClick.tsx +42 -0
  1080. package/src/anyspend/react/components/common/PaymentOptions.tsx +36 -0
  1081. package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +368 -0
  1082. package/src/anyspend/react/components/common/PaymentVendorUI.tsx +26 -0
  1083. package/src/anyspend/react/components/common/TokenBalance.tsx +63 -0
  1084. package/src/anyspend/react/components/icons/EthIcon.tsx +31 -0
  1085. package/src/anyspend/react/components/icons/SolIcon.tsx +39 -0
  1086. package/src/anyspend/react/components/icons/USDCIcon.tsx +19 -0
  1087. package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +50 -0
  1088. package/src/anyspend/react/hooks/index.ts +13 -0
  1089. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +131 -0
  1090. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +102 -0
  1091. package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +36 -0
  1092. package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +29 -0
  1093. package/src/anyspend/react/hooks/useAnyspendQuote.ts +58 -0
  1094. package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +38 -0
  1095. package/src/anyspend/react/hooks/useAnyspendTokens.ts +24 -0
  1096. package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +21 -0
  1097. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +58 -0
  1098. package/src/anyspend/react/hooks/useGetGeo.ts +31 -0
  1099. package/src/anyspend/react/hooks/usePermitData.ts +183 -0
  1100. package/src/anyspend/react/hooks/useStripeClientSecret.ts +20 -0
  1101. package/src/anyspend/react/hooks/useStripeSupport.ts +22 -0
  1102. package/src/anyspend/react/providers/AnyspendProvider.tsx +45 -0
  1103. package/src/anyspend/services/anyspend.ts +191 -0
  1104. package/src/anyspend/types/chain.ts +30 -0
  1105. package/src/anyspend/types/custom.ts +17 -0
  1106. package/src/anyspend/types/globalWallet.ts +9 -0
  1107. package/src/anyspend/types/index.ts +14 -0
  1108. package/src/anyspend/types/nft.ts +50 -0
  1109. package/src/anyspend/types/onramp.ts +15 -0
  1110. package/src/anyspend/types/order.ts +94 -0
  1111. package/src/anyspend/types/permit.ts +10 -0
  1112. package/src/anyspend/types/relay.ts +13 -0
  1113. package/src/anyspend/types/req-res/createOrder.ts +66 -0
  1114. package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +34 -0
  1115. package/src/anyspend/types/req-res/getOrderAndTransactions.ts +23 -0
  1116. package/src/anyspend/types/req-res/getOrderByCreator.ts +9 -0
  1117. package/src/anyspend/types/req-res/getOrderHistory.ts +9 -0
  1118. package/src/anyspend/types/req-res/getQuote.ts +60 -0
  1119. package/src/anyspend/types/req-res/getTokenList.ts +18 -0
  1120. package/src/anyspend/types/req-res/index.ts +8 -0
  1121. package/src/anyspend/types/req-res/sendPermitData.ts +10 -0
  1122. package/src/anyspend/types/req-res/stripe.ts +0 -0
  1123. package/src/anyspend/types/swap.ts +12 -0
  1124. package/src/anyspend/types/token.ts +13 -0
  1125. package/src/anyspend/types/tournament.ts +26 -0
  1126. package/src/anyspend/types/transaction.ts +39 -0
  1127. package/src/anyspend/utils/address.ts +25 -0
  1128. package/src/anyspend/utils/chain.ts +342 -0
  1129. package/src/anyspend/utils/format.ts +64 -0
  1130. package/src/anyspend/utils/index.ts +8 -0
  1131. package/src/anyspend/utils/json.ts +3 -0
  1132. package/src/anyspend/utils/number.ts +93 -0
  1133. package/src/anyspend/utils/orderPayload.ts +63 -0
  1134. package/src/anyspend/utils/string.ts +4 -0
  1135. package/src/anyspend/utils/token.ts +72 -0
  1136. package/src/generated/chain-networks.json +483 -0
  1137. package/src/global-account/app.native.ts +105 -0
  1138. package/src/global-account/app.ts +68 -0
  1139. package/src/global-account/bsmnt.native.ts +108 -0
  1140. package/src/global-account/bsmnt.ts +73 -0
  1141. package/src/global-account/index.native.ts +17 -0
  1142. package/src/global-account/index.ts +17 -0
  1143. package/src/global-account/react/components/AccountAssets/AccountAssets.tsx +48 -0
  1144. package/src/global-account/react/components/B3DynamicModal.tsx +118 -0
  1145. package/src/global-account/react/components/B3Provider.native.tsx +141 -0
  1146. package/src/global-account/react/components/B3Provider.tsx +201 -0
  1147. package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +242 -0
  1148. package/src/global-account/react/components/MintButton/MintButton.tsx +83 -0
  1149. package/src/global-account/react/components/ProfileAvatar.tsx +138 -0
  1150. package/src/global-account/react/components/RelayKitProviderWrapper.tsx +34 -0
  1151. package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +167 -0
  1152. package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +51 -0
  1153. package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +93 -0
  1154. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +255 -0
  1155. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +60 -0
  1156. package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +23 -0
  1157. package/src/global-account/react/components/SignInWithB3/components/PermissionItem.tsx +22 -0
  1158. package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +32 -0
  1159. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +135 -0
  1160. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +148 -0
  1161. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +70 -0
  1162. package/src/global-account/react/components/StyleRoot.tsx +12 -0
  1163. package/src/global-account/react/components/Transak/TransakModal.tsx +134 -0
  1164. package/src/global-account/react/components/custom/Button.tsx +54 -0
  1165. package/src/global-account/react/components/custom/ClientOnly.tsx +20 -0
  1166. package/src/global-account/react/components/custom/CopyToClipboard.tsx +47 -0
  1167. package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +43 -0
  1168. package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +32 -0
  1169. package/src/global-account/react/components/magicui/AnimatedLottie.tsx +106 -0
  1170. package/src/global-account/react/components/ui/Loading.tsx +27 -0
  1171. package/src/global-account/react/components/ui/ShinyButton.tsx +82 -0
  1172. package/src/global-account/react/components/ui/TabSystem.tsx +157 -0
  1173. package/src/global-account/react/components/ui/Tabs.tsx +56 -0
  1174. package/src/global-account/react/components/ui/badge.tsx +30 -0
  1175. package/src/global-account/react/components/ui/button.tsx +57 -0
  1176. package/src/global-account/react/components/ui/command.tsx +140 -0
  1177. package/src/global-account/react/components/ui/dialog.tsx +131 -0
  1178. package/src/global-account/react/components/ui/drawer.tsx +97 -0
  1179. package/src/global-account/react/components/ui/glare-card-rounded.tsx +182 -0
  1180. package/src/global-account/react/components/ui/glare-card.tsx +138 -0
  1181. package/src/global-account/react/components/ui/input.tsx +25 -0
  1182. package/src/global-account/react/components/ui/popover.tsx +34 -0
  1183. package/src/global-account/react/components/ui/scroll-area.tsx +40 -0
  1184. package/src/global-account/react/components/ui/skeleton.tsx +7 -0
  1185. package/src/global-account/react/components/ui/text-loop.tsx +61 -0
  1186. package/src/global-account/react/components/ui/text-shimmer.tsx +47 -0
  1187. package/src/global-account/react/components/ui/tooltip.tsx +34 -0
  1188. package/src/global-account/react/components/ui/transition-panel.tsx +38 -0
  1189. package/src/global-account/react/hooks/useAccountAssets.ts +34 -0
  1190. package/src/global-account/react/hooks/useAccountWallet.tsx +110 -0
  1191. package/src/global-account/react/hooks/useAddTWSessionKey.tsx +85 -0
  1192. package/src/global-account/react/hooks/useAuthentication.ts +127 -0
  1193. package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +91 -0
  1194. package/src/global-account/react/hooks/useBestTransactionPath.tsx +202 -0
  1195. package/src/global-account/react/hooks/useBsmntProfile.ts +14 -0
  1196. package/src/global-account/react/hooks/useChainSwitchWithAction.ts +79 -0
  1197. package/src/global-account/react/hooks/useClaim.tsx +66 -0
  1198. package/src/global-account/react/hooks/useConnect.tsx +60 -0
  1199. package/src/global-account/react/hooks/useExchangeRate.tsx +43 -0
  1200. package/src/global-account/react/hooks/useGetAllTWSigners.tsx +139 -0
  1201. package/src/global-account/react/hooks/useGetGeo.tsx +40 -0
  1202. package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +78 -0
  1203. package/src/global-account/react/hooks/useHasMounted.ts +11 -0
  1204. package/src/global-account/react/hooks/useIsMobile.tsx +9 -0
  1205. package/src/global-account/react/hooks/useIsomorphicLayoutEffect.tsx +3 -0
  1206. package/src/global-account/react/hooks/useMediaQuery.tsx +60 -0
  1207. package/src/global-account/react/hooks/useNativeBalance.tsx +90 -0
  1208. package/src/global-account/react/hooks/useOnchainName.tsx +198 -0
  1209. package/src/global-account/react/hooks/useOneBalance.tsx +95 -0
  1210. package/src/global-account/react/hooks/useQueryB3.ts +72 -0
  1211. package/src/global-account/react/hooks/useQueryBSMNT.ts +72 -0
  1212. package/src/global-account/react/hooks/useRemoveSessionKey.tsx +69 -0
  1213. package/src/global-account/react/hooks/useRouter.tsx +103 -0
  1214. package/src/global-account/react/hooks/useSearchParamsSSR.tsx +34 -0
  1215. package/src/global-account/react/hooks/useSiwe.tsx +39 -0
  1216. package/src/global-account/react/hooks/useTokenBalance.tsx +85 -0
  1217. package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +93 -0
  1218. package/src/global-account/react/hooks/useTokenData.ts +56 -0
  1219. package/src/global-account/react/hooks/useTokenFromUrl.tsx +46 -0
  1220. package/src/global-account/react/hooks/useTokenPrice.tsx +85 -0
  1221. package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +58 -0
  1222. package/src/global-account/react/hooks/useTokensFromAddress.ts +118 -0
  1223. package/src/global-account/react/hooks/useURLParams.ts +43 -0
  1224. package/src/global-account/react/stores/useAuthStore.ts +64 -0
  1225. package/src/global-account/react/stores/useModalStore.ts +325 -0
  1226. package/src/global-account/server.ts +23 -0
  1227. package/src/global-account/types/b3-api.ts +4 -0
  1228. package/src/global-account/types/b3-api.types.ts +83 -0
  1229. package/src/global-account/types/chain-networks.ts +54 -0
  1230. package/src/global-account/types/feature-flags.ts +13 -0
  1231. package/src/global-account/types/permissions.ts +24 -0
  1232. package/src/global-account/types/react-timeago.d.ts +18 -0
  1233. package/src/global-account/types/reservoir.types.ts +94 -0
  1234. package/src/global-account/types/simplehash.types.ts +301 -0
  1235. package/src/global-account/types.ts +24 -0
  1236. package/src/shared/constants/chains/b3Chain.ts +177 -0
  1237. package/src/shared/constants/chains/chainPlatformMap.ts +47 -0
  1238. package/src/shared/constants/chains/supported.ts +33 -0
  1239. package/src/shared/constants/index.ts +26 -0
  1240. package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1363 -0
  1241. package/src/shared/thirdweb/generated/client.gen.ts +16 -0
  1242. package/src/shared/thirdweb/generated/index.ts +3 -0
  1243. package/src/shared/thirdweb/generated/sdk.gen.ts +1051 -0
  1244. package/src/shared/thirdweb/generated/types.gen.ts +4349 -0
  1245. package/src/shared/thirdweb/initiateClient.ts +30 -0
  1246. package/src/shared/thirdweb/insight-service.json +12664 -0
  1247. package/src/shared/thirdweb/openapi-ts.config.ts +7 -0
  1248. package/src/shared/utils/b3Ens.ts +28 -0
  1249. package/src/shared/utils/centerTruncate.ts +12 -0
  1250. package/src/shared/utils/chain-transformers.ts +51 -0
  1251. package/src/shared/utils/chains.ts +38 -0
  1252. package/src/shared/utils/cn.ts +6 -0
  1253. package/src/shared/utils/colors.ts +33 -0
  1254. package/src/shared/utils/cookies.ts +13 -0
  1255. package/src/shared/utils/debug.ts +17 -0
  1256. package/src/shared/utils/fetchBalances.ts +89 -0
  1257. package/src/shared/utils/fetchBsmntProfile.ts +29 -0
  1258. package/src/shared/utils/formatAddress.ts +16 -0
  1259. package/src/shared/utils/formatNumber.ts +43 -0
  1260. package/src/shared/utils/index.ts +7 -0
  1261. package/src/shared/utils/insights.ts +409 -0
  1262. package/src/shared/utils/ipfs.ts +33 -0
  1263. package/src/shared/utils/number.ts +142 -0
  1264. package/src/shared/utils/payment.utils.ts +34 -0
  1265. package/src/shared/utils/simplehash.ts +372 -0
  1266. package/src/shared/utils/sprinter.ts +14 -0
  1267. package/src/shared/utils/thirdweb-insights.ts +338 -0
  1268. package/src/shared/utils/thirdweb.ts +11 -0
  1269. package/src/styles/index.css +279 -0
  1270. package/src/styles/index.ts +24 -0
@@ -0,0 +1,325 @@
1
+ import { Token, Tournament } from "@b3dotfun/sdk/anyspend";
2
+ import { NftContract } from "@b3dotfun/sdk/anyspend/types";
3
+ import { AllowedStrategy } from "@b3dotfun/sdk/global-account/react/components/SignInWithB3/utils/signInUtils";
4
+ import { PermissionsConfig } from "@b3dotfun/sdk/global-account/types/permissions";
5
+ import { Address, Chain } from "thirdweb";
6
+ import { Account } from "thirdweb/wallets";
7
+ import { create } from "zustand";
8
+
9
+ /**
10
+ * Base modal props that all modal types extend
11
+ */
12
+ interface BaseModalProps {
13
+ /** Whether to show a back button in the modal header */
14
+ showBackButton?: boolean;
15
+ }
16
+
17
+ /**
18
+ * Props for the Sign In With B3 modal
19
+ * Handles authentication flow with various providers
20
+ */
21
+ export interface SignInWithB3ModalProps extends BaseModalProps {
22
+ /** Modal type identifier */
23
+ type: "signInWithB3";
24
+ /** Authentication provider to use for sign-in */
25
+ strategies?: AllowedStrategy[];
26
+ /** Callback function called when login is successful */
27
+ onLoginSuccess?: (account: Account) => void;
28
+ /** Callback function called when session key is successfully added */
29
+ onSessionKeySuccess?: () => void;
30
+ /** Callback function called when an error occurs */
31
+ onError?: (error: Error) => Promise<void>;
32
+ /** Blockchain chain information */
33
+ chain: Chain;
34
+ /** Address of the session key, typically the user's login address */
35
+ sessionKeyAddress?: Address;
36
+ /** Unique identifier for the partner application */
37
+ partnerId: string;
38
+ /** Whether to authenticate with Sign In With Ethereum */
39
+ loginWithSiwe?: boolean;
40
+ /** Whether to close the modal after successful login */
41
+ closeAfterLogin?: boolean;
42
+ /** Source of the sign-in request */
43
+ source?: "signInWithB3Button" | "requestPermissions";
44
+ /** Whether to show the signers enabled modal */
45
+ signersEnabled?: boolean;
46
+ }
47
+
48
+ /**
49
+ * Props for the Request Permissions modal
50
+ * Used to request permission for session keys to interact with contracts
51
+ */
52
+ export interface RequestPermissionsModalProps extends BaseModalProps {
53
+ /** Modal type identifier */
54
+ type: "requestPermissions";
55
+ /** Callback function called when permissions are successfully granted */
56
+ onSuccess?: () => void;
57
+ /** Callback function called when an error occurs */
58
+ onError?: (error: Error) => Promise<void>;
59
+ /** Blockchain chain information */
60
+ chain?: Chain;
61
+ /** Address of the session key to grant permissions to */
62
+ sessionKeyAddress?: Address;
63
+ /** Permissions to request */
64
+ permissions?: PermissionsConfig;
65
+ }
66
+
67
+ /**
68
+ * Props for the Manage Account modal
69
+ * Allows users to manage their account settings and actions
70
+ */
71
+ export interface ManageAccountModalProps extends BaseModalProps {
72
+ /** Modal type identifier */
73
+ type: "manageAccount";
74
+ /** Callback function called when user logs out */
75
+ onLogout?: () => void;
76
+ /** Callback function called when user initiates a swap */
77
+ onSwap?: () => void;
78
+ /** Callback function called when user initiates a deposit */
79
+ onDeposit?: () => void;
80
+ /** Callback function called when user views their profile */
81
+ onViewProfile?: () => void;
82
+ /** Blockchain chain information */
83
+ chain: Chain;
84
+ /** Partner ID */
85
+ partnerId: string;
86
+ }
87
+
88
+ /**
89
+ * Props for the AnySpend modal
90
+ * Handles cross-chain token transfers and transactions
91
+ */
92
+ export interface AnySpendModalProps extends BaseModalProps {
93
+ /** Modal type identifier */
94
+ type: "anySpend";
95
+ /** The default active tab */
96
+ defaultActiveTab?: "crypto" | "fiat";
97
+ /** Chain ID of the source blockchain */
98
+ sourceChainId?: number;
99
+ /** Chain ID of the destination blockchain */
100
+ destinationChainId?: number;
101
+ /** Token address or identifier on the source chain */
102
+ sourceToken?: string;
103
+ /** Token address or identifier on the destination chain */
104
+ destinationToken?: string;
105
+ /** Amount of tokens to send from source chain */
106
+ sourceAmount?: string;
107
+ /** Amount of tokens to receive on destination chain */
108
+ destinationAmount?: string;
109
+ /** Address to receive the tokens on the destination chain */
110
+ recipientAddress?: string;
111
+ /** Unique identifier for an existing order */
112
+ orderId?: string;
113
+ /** Whether to hide the transaction history button */
114
+ hideTransactionHistoryButton?: boolean;
115
+ /** Callback function called when the transaction is successful */
116
+ onSuccess?: () => void;
117
+ /** Token address of the destination token to buy (enables buy mode) */
118
+ destinationTokenAddress?: string;
119
+ /** Chain ID where the destination token exists (enables buy mode) */
120
+ destinationTokenChainId?: number;
121
+ }
122
+
123
+ /**
124
+ * Props for the AnySpend NFT modal
125
+ * Handles NFT-specific operations
126
+ */
127
+ export interface AnySpendNftProps extends BaseModalProps {
128
+ /** Modal type identifier */
129
+ type: "anySpendNft";
130
+ /** NFT contract information */
131
+ nftContract: NftContract;
132
+ /** Recipient address to receive the NFT */
133
+ recipientAddress?: string;
134
+ }
135
+
136
+ /**
137
+ * Props for the AnySpend tournament modal
138
+ */
139
+ export interface AnySpendJoinTournamentProps extends BaseModalProps {
140
+ /** Modal type identifier */
141
+ type: "anySpendJoinTournament";
142
+ /** Recipient address to join the tournament for */
143
+ joinFor: string;
144
+ /** Tournament chain ID */
145
+ tournamentChainId: number;
146
+ /** Tournament contract address */
147
+ tournamentContractAddress: string;
148
+ /** Tournament metadata */
149
+ tournamentMetadata: Tournament;
150
+ /** Tournament entry token */
151
+ tournamentEntryToken: Token;
152
+ /** Tournament entry fee */
153
+ tournamentEntryFee: string;
154
+ /** Callback function called when the tournament is successfully joined */
155
+ onSuccess?: () => void;
156
+ }
157
+
158
+ /**
159
+ * Props for the AnySpend tournament modal
160
+ */
161
+ export interface AnySpendFundTournamentProps extends BaseModalProps {
162
+ /** Modal type identifier */
163
+ type: "anySpendFundTournament";
164
+ /** Tournament chain ID */
165
+ tournamentChainId: number;
166
+ /** Tournament contract address */
167
+ tournamentContractAddress: string;
168
+ /** Tournament metadata */
169
+ tournamentMetadata: Tournament;
170
+ /** Tournament fund token */
171
+ tournamentFundToken: Token;
172
+ /** Tournament fund amount */
173
+ tournamentFundAmount: string;
174
+ /** Callback function called when the tournament is successfully joined */
175
+ onSuccess?: () => void;
176
+ }
177
+
178
+ /**
179
+ * Props for the AnySpend order details modal
180
+ * Displays details about a specific order
181
+ */
182
+ export interface AnyspendOrderDetailsProps extends BaseModalProps {
183
+ /** Modal type identifier */
184
+ type: "anyspendOrderDetails";
185
+ /** Unique identifier for the order to display */
186
+ orderId: string;
187
+ /** Whether to show the back button */
188
+ showBackButton?: boolean;
189
+ }
190
+
191
+ /**
192
+ * Props for the Transak modal
193
+ * Handles Transak-specific on-ramping
194
+ */
195
+ export interface TransakProps extends BaseModalProps {
196
+ /** Modal type identifier */
197
+ type: "transak";
198
+ /** Wallet address to receive the purchased crypto */
199
+ destinationWalletAddress?: string;
200
+ /** Default amount of crypto to purchase */
201
+ defaultCryptoAmount?: number;
202
+ /** Amount of fiat currency to spend */
203
+ fiatAmount?: number;
204
+ /** ISO country code for KYC and available payment methods */
205
+ countryCode?: string;
206
+ /** Callback function called when the purchase is successful */
207
+ onSuccess?: () => void;
208
+ }
209
+
210
+ /**
211
+ * Props for the AnySpend order history modal
212
+ */
213
+ export interface AnySpendOrderHistoryProps extends BaseModalProps {
214
+ /** Modal type identifier */
215
+ type: "anySpendOrderHistory";
216
+ }
217
+
218
+ /**
219
+ * Props for the AnySpend Stake B3 modal
220
+ * Handles B3 token staking operations
221
+ */
222
+ export interface AnySpendStakeB3Props extends BaseModalProps {
223
+ /** Modal type identifier */
224
+ type: "anySpendStakeB3";
225
+ /** Recipient address to stake B3 for */
226
+ recipientAddress: string;
227
+ /** Stake amount */
228
+ stakeAmount?: string;
229
+ /** Callback function called when the stake is successful */
230
+ onSuccess?: () => void;
231
+ }
232
+
233
+ /**
234
+ * Props for the AnySpend Buy Spin modal
235
+ * Handles spin wheel entry purchases
236
+ */
237
+ export interface AnySpendBuySpinProps extends BaseModalProps {
238
+ /** Modal type identifier */
239
+ type: "anySpendBuySpin";
240
+ /** Spin wheel contract address */
241
+ spinwheelContractAddress: string;
242
+ /** Chain ID where the spin wheel contract is deployed */
243
+ chainId: number;
244
+ /** Recipient address to receive the spins */
245
+ recipientAddress: string;
246
+ /** Callback function called when the spin purchase is successful */
247
+ onSuccess?: (txHash?: string) => void;
248
+ }
249
+
250
+ /**
251
+ * Union type of all possible modal content types
252
+ */
253
+ export type ModalContentType =
254
+ | SignInWithB3ModalProps
255
+ | RequestPermissionsModalProps
256
+ | ManageAccountModalProps
257
+ | AnySpendModalProps
258
+ | AnyspendOrderDetailsProps
259
+ | AnySpendNftProps
260
+ | AnySpendJoinTournamentProps
261
+ | AnySpendFundTournamentProps
262
+ | TransakProps
263
+ | AnySpendOrderHistoryProps
264
+ | AnySpendStakeB3Props
265
+ | AnySpendBuySpinProps;
266
+ // Add other modal types here like: | OtherModalProps | AnotherModalProps
267
+
268
+ /**
269
+ * State interface for the modal store
270
+ */
271
+ interface ModalState {
272
+ /** Whether the modal is currently open */
273
+ isOpen: boolean;
274
+ /** Current content being displayed in the modal */
275
+ contentType: ModalContentType | null;
276
+ /** History of previously displayed modal contents */
277
+ history: ModalContentType[];
278
+ /** Function to open or close the modal */
279
+ setB3ModalOpen: (isOpen: boolean) => void;
280
+ /** Function to set the modal content and add current content to history */
281
+ setB3ModalContentType: (content: ModalContentType) => void;
282
+ /** Function to navigate back to the previous modal content */
283
+ navigateBack: () => void;
284
+ /** Function to clear the modal history */
285
+ clearHistory: () => void;
286
+ /** Address of the ecosystem account */
287
+ ecoSystemAccountAddress?: Address;
288
+ /** Function to set the ecosystem account address */
289
+ setEcoSystemAccountAddress: (address: Address) => void;
290
+ }
291
+
292
+ /**
293
+ * Zustand store for managing modal state
294
+ * Handles modal visibility, content type, and navigation history
295
+ */
296
+ export const useModalStore = create<ModalState>(set => ({
297
+ isOpen: false,
298
+ contentType: null,
299
+ history: [],
300
+ setB3ModalOpen: isOpen => set({ isOpen }),
301
+ setB3ModalContentType: content =>
302
+ set(state => {
303
+ // Add current modal to history before changing
304
+ const newHistory = state.contentType ? [...state.history, state.contentType] : state.history;
305
+ return {
306
+ contentType: content,
307
+ history: newHistory
308
+ };
309
+ }),
310
+ navigateBack: () =>
311
+ set(state => {
312
+ if (state.history.length === 0) {
313
+ return { isOpen: false, contentType: null };
314
+ }
315
+ const newHistory = [...state.history];
316
+ const previousModal = newHistory.pop();
317
+ return {
318
+ contentType: previousModal || null,
319
+ history: newHistory
320
+ };
321
+ }),
322
+ clearHistory: () => set({ history: [] }),
323
+ ecoSystemAccountAddress: undefined,
324
+ setEcoSystemAccountAddress: (address: Address) => set({ ecoSystemAccountAddress: address })
325
+ }));
@@ -0,0 +1,23 @@
1
+ const B3_API_URL = process.env.NEXT_PUBLIC_B3_API || process.env.PUBLIC_B3_API || "https://api.b3.fun";
2
+
3
+ /**
4
+ * Authenticate with the B3 API using the token
5
+ * Server-side only version that doesn't include socket.io dependencies
6
+ *
7
+ * @param token - The token to authenticate with
8
+ * @returns The response from the B3 API
9
+ */
10
+ export const authenticateWithRest = async (token: string) => {
11
+ const response = await fetch(`${B3_API_URL}/authentication`, {
12
+ method: "POST",
13
+ headers: {
14
+ "Content-Type": "application/json",
15
+ Authorization: `Bearer ${token}`
16
+ },
17
+ body: JSON.stringify({
18
+ strategy: "jwt",
19
+ accessToken: token
20
+ })
21
+ });
22
+ return response;
23
+ };
@@ -0,0 +1,4 @@
1
+ import * as b3Api from "@b3dotfun/b3-api";
2
+
3
+ export * from "@b3dotfun/b3-api";
4
+ export default b3Api;
@@ -0,0 +1,83 @@
1
+ // TODO: Get this from the B3 API, compiled version
2
+ // For now, we are generating vanilla TS types based on the schema
3
+
4
+ /**
5
+ * User-related type definitions
6
+ */
7
+
8
+ // MongoDB ObjectId type
9
+ type ObjectId = string;
10
+
11
+ // Partner IDs interface
12
+ interface PartnerIds {
13
+ privyId?: string;
14
+ thirdwebId?: string;
15
+ }
16
+
17
+ // Privy linked account interface
18
+ interface PrivyLinkedAccount {
19
+ type: string; // "wallet" | "smart_wallet" | "google_oauth"
20
+ address?: string;
21
+ email?: string;
22
+ lv?: number;
23
+ wallet_client_type?: string;
24
+ smart_wallet_type?: string;
25
+ subject?: string;
26
+ name?: string;
27
+ }
28
+
29
+ // Thirdweb profile interface
30
+ interface TWProfile {
31
+ type: string;
32
+ details: {
33
+ id?: string;
34
+ email?: string;
35
+ phone?: string;
36
+ address?: string; // Matches pattern: ^0x[a-fA-F0-9]{40}$
37
+ };
38
+ }
39
+
40
+ // User preferences type (extensible object)
41
+ interface UserPreferences {
42
+ [key: string]: any;
43
+ }
44
+
45
+ // Main User interface
46
+ interface User {
47
+ _id: ObjectId;
48
+ userId: string;
49
+
50
+ // Auth identifiers
51
+ email?: string;
52
+ telNumber?: string;
53
+ smartAccountAddress: string; // Pattern: ^0x[a-fA-F0-9]{40}$
54
+
55
+ // Core identity
56
+ username?: string;
57
+ ens?: string;
58
+
59
+ // Metadata
60
+ avatar?: string;
61
+ preferences?: UserPreferences;
62
+
63
+ // Partner metadata
64
+ referredBy?: ObjectId;
65
+ sourceApp?: string;
66
+
67
+ // User groups for permissions
68
+ userGroups?: number[]; // Values 0-10: 0=regular user, 1=admin, 2=moderator, 3=partner
69
+
70
+ // Migration
71
+ isMigratedFromBSMNT?: boolean;
72
+
73
+ // Timestamps
74
+ createdAt: number;
75
+ updatedAt: number;
76
+
77
+ // Partner integrations
78
+ partnerIds: PartnerIds;
79
+ privyLinkedAccounts?: PrivyLinkedAccount[];
80
+ twProfiles?: TWProfile[];
81
+ }
82
+
83
+ export type { ObjectId, PartnerIds, PrivyLinkedAccount, TWProfile, User, UserPreferences };
@@ -0,0 +1,54 @@
1
+ import { ObjectIdSchema, Static, Type } from "@feathersjs/typebox";
2
+
3
+ const ChainContractSchema = Type.Object({
4
+ address: Type.String(),
5
+ blockCreated: Type.Optional(Type.Integer())
6
+ });
7
+
8
+ export const chainNetworksSchema = Type.Object(
9
+ {
10
+ _id: ObjectIdSchema(),
11
+ id: Type.Integer(),
12
+ name: Type.String(),
13
+ rpcUrls: Type.Object({
14
+ default: Type.Object({
15
+ http: Type.String({ format: "uri" }),
16
+ ws: Type.String({ format: "uri" })
17
+ }),
18
+ backups: Type.Array(
19
+ Type.Object({
20
+ type: Type.Union([Type.Literal("http"), Type.Literal("ws")]),
21
+ uri: Type.String()
22
+ })
23
+ )
24
+ }),
25
+ icon: Type.Object({
26
+ url: Type.String({ format: "uri" }),
27
+ width: Type.Integer(),
28
+ height: Type.Integer(),
29
+ format: Type.String()
30
+ }),
31
+ blockExplorers: Type.Object({
32
+ explorerTitle: Type.String(),
33
+ default: Type.String({ format: "uri" })
34
+ }),
35
+ nativeCurrency: Type.Object({
36
+ name: Type.String(),
37
+ symbol: Type.String(),
38
+ decimals: Type.Integer()
39
+ }),
40
+ testnet: Type.Optional(Type.Boolean()),
41
+ testnetConfigID: Type.Optional(Type.Integer()),
42
+ // Additional required Viem fields that can't be derived
43
+ sourceId: Type.Optional(Type.Integer()),
44
+ contracts: Type.Optional(Type.Record(Type.String(), ChainContractSchema)),
45
+ formatters: Type.Optional(Type.Record(Type.String(), Type.Any())),
46
+ fees: Type.Optional(Type.Record(Type.String(), Type.Any())),
47
+ badge: Type.Optional(Type.String({ format: "uri" })),
48
+ color: Type.Optional(Type.String()),
49
+ enabledFeatures: Type.Optional(Type.Array(Type.String()))
50
+ },
51
+ { $id: "ChainNetworks", additionalProperties: false }
52
+ );
53
+
54
+ export type ChainNetworks = Static<typeof chainNetworksSchema>;
@@ -0,0 +1,13 @@
1
+ import { ObjectIdSchema, Static, Type } from "@feathersjs/typebox";
2
+
3
+ export const featureFlagsSchema = Type.Object(
4
+ {
5
+ _id: ObjectIdSchema(),
6
+ id: Type.String(),
7
+ enabled: Type.Boolean(),
8
+ description: Type.String()
9
+ },
10
+ { $id: "FeatureFlags", additionalProperties: false }
11
+ );
12
+
13
+ export type FeatureFlags = Static<typeof featureFlagsSchema>;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Configuration for user permissions when interacting with contracts
3
+ */
4
+ export interface PermissionsConfig {
5
+ /**
6
+ * List of contract addresses that are approved for interaction
7
+ */
8
+ approvedTargets: string[];
9
+
10
+ /**
11
+ * Maximum amount of native tokens (in ETH) allowed per transaction
12
+ */
13
+ nativeTokenLimitPerTransaction: number;
14
+
15
+ /**
16
+ * Date when these permissions become valid
17
+ */
18
+ startDate: Date;
19
+
20
+ /**
21
+ * Date when these permissions expire
22
+ */
23
+ endDate: Date;
24
+ }
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+
5
+ declare module "react-timeago" {
6
+ export interface TimeAgoProps {
7
+ date: Date | string | number;
8
+ formatter?: (value: number, unit: string, suffix: string) => string;
9
+ component?: string | React.ComponentType<any>;
10
+ live?: boolean;
11
+ minPeriod?: number;
12
+ maxPeriod?: number;
13
+ title?: string;
14
+ [key: string]: any;
15
+ }
16
+
17
+ export default class TimeAgo extends React.Component<TimeAgoProps> {}
18
+ }
@@ -0,0 +1,94 @@
1
+ export type ReservoirCollectionResponse = {
2
+ collections: ReservoirCollection[];
3
+ };
4
+
5
+ export type ReservoirCollection = {
6
+ chainId: number;
7
+ id: string;
8
+ slug: string | null;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ name: string;
12
+ symbol: string;
13
+ contractDeployedAt: string;
14
+ image: string;
15
+ banner: string | null;
16
+ twitterUrl: string | null;
17
+ discordUrl: string | null;
18
+ externalUrl: string | null;
19
+ twitterUsername: string | null;
20
+ openseaVerificationStatus: string | null;
21
+ magicedenVerificationStatus: string | null;
22
+ description: string;
23
+ metadataDisabled: boolean;
24
+ isSpam: boolean;
25
+ isNsfw: boolean;
26
+ isMinting: boolean;
27
+ sampleImages: string[];
28
+ tokenCount: string;
29
+ onSaleCount: string;
30
+ primaryContract: string;
31
+ tokenSetId: string;
32
+ creator: string;
33
+ isSharedContract: boolean;
34
+ royalties:
35
+ | null
36
+ | {
37
+ // Add royalty type if needed
38
+ };
39
+ allRoyalties: {
40
+ eip2981: any[];
41
+ onchain: any[];
42
+ };
43
+ floorAsk: {
44
+ id: string | null;
45
+ price: number | null;
46
+ maker: string | null;
47
+ validFrom: number;
48
+ validUntil: number | null;
49
+ token: any | null;
50
+ };
51
+ topBid: {
52
+ id: string | null;
53
+ sourceDomain: string | null;
54
+ price: number | null;
55
+ maker: string | null;
56
+ validFrom: string | null;
57
+ validUntil: string | null;
58
+ };
59
+ rank: {
60
+ "1day": number | null;
61
+ "7day": number | null;
62
+ "30day": number | null;
63
+ allTime: number | null;
64
+ };
65
+ volume: {
66
+ "1day": number;
67
+ "7day": number;
68
+ "30day": number;
69
+ allTime: number;
70
+ };
71
+ volumeChange: {
72
+ "1day": number | null;
73
+ "7day": number | null;
74
+ "30day": number | null;
75
+ };
76
+ floorSale: {
77
+ "1day": number | null;
78
+ "7day": number | null;
79
+ "30day": number | null;
80
+ };
81
+ floorSaleChange: {
82
+ "1day": number | null;
83
+ "7day": number | null;
84
+ "30day": number | null;
85
+ };
86
+ collectionBidSupported: boolean;
87
+ ownerCount: number;
88
+ contractKind: string;
89
+ mintedTimestamp: number;
90
+ lastMintTimestamp: number;
91
+ mintStages: any[];
92
+ supply: string;
93
+ remainingSupply: string;
94
+ };