@b3dotfun/sdk 0.1.70-alpha.1 → 0.1.70-alpha.10

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 (292) hide show
  1. package/constants/chains/b3Chain.js +3 -1
  2. package/dist/cjs/anyspend/constants/rpc.d.ts +2 -1
  3. package/dist/cjs/anyspend/constants/rpc.js +4 -2
  4. package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  5. package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
  6. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  7. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
  8. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  9. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +21 -14
  10. package/dist/cjs/anyspend/react/components/AnySpendDeposit.js +9 -3
  11. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  12. package/dist/cjs/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  13. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  14. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
  15. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  16. package/dist/cjs/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  17. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  18. package/dist/cjs/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  19. package/dist/cjs/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  20. package/dist/cjs/anyspend/react/components/AnySpendWorkflowTrigger.js +2 -2
  21. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  22. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +2 -2
  23. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  24. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  25. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  26. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.js +2 -2
  27. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  28. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  29. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  30. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.js +13 -3
  31. package/dist/cjs/anyspend/react/hooks/useCreateDepositFirstOrder.d.ts +3 -3
  32. package/dist/cjs/anyspend/utils/chain.d.ts +39 -1
  33. package/dist/cjs/anyspend/utils/chain.js +23 -2
  34. package/dist/cjs/anyspend/utils/token.d.ts +2 -0
  35. package/dist/cjs/anyspend/utils/token.js +15 -1
  36. package/dist/cjs/app.shared.d.ts +9 -1
  37. package/dist/cjs/app.shared.js +19 -0
  38. package/dist/cjs/global-account/app.native.d.ts +1 -1
  39. package/dist/cjs/global-account/better-auth-client.d.ts +3314 -36
  40. package/dist/cjs/global-account/better-auth-client.js +28 -3
  41. package/dist/cjs/global-account/bsmnt.d.ts +2 -2
  42. package/dist/cjs/global-account/bsmnt.native.d.ts +1 -1
  43. package/dist/cjs/global-account/client-manager.d.ts +7 -5
  44. package/dist/cjs/global-account/client-manager.js +19 -4
  45. package/dist/cjs/global-account/react/components/AvatarEditor/AvatarEditor.js +6 -11
  46. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  47. package/dist/cjs/global-account/react/components/B3Provider/B3ConfigProvider.js +1 -2
  48. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +8 -13
  49. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +24 -3
  50. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthProvider.js +48 -8
  51. package/dist/cjs/global-account/react/components/ManageAccount/SettingsProfileCard.js +1 -1
  52. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +1 -5
  53. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +3 -2
  54. package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +1 -3
  55. package/dist/cjs/global-account/react/components/index.d.ts +0 -2
  56. package/dist/cjs/global-account/react/components/index.js +3 -7
  57. package/dist/cjs/global-account/react/hooks/index.d.ts +0 -1
  58. package/dist/cjs/global-account/react/hooks/index.js +2 -4
  59. package/dist/cjs/global-account/react/hooks/useAuth.d.ts +3 -3
  60. package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +1 -1
  61. package/dist/cjs/global-account/react/hooks/useAuthentication.js +1 -1
  62. package/dist/cjs/global-account/react/hooks/useBetterAuth.d.ts +1656 -21
  63. package/dist/cjs/global-account/react/hooks/useBetterAuth.js +13 -14
  64. package/dist/cjs/global-account/react/hooks/useClient.d.ts +3 -3
  65. package/dist/cjs/global-account/react/hooks/useNativeBalance.js +2 -2
  66. package/dist/cjs/global-account/react/hooks/useSiwe.d.ts +1 -1
  67. package/dist/cjs/global-account/react/hooks/useSiwe.native.d.ts +1 -1
  68. package/dist/cjs/global-account/react/hooks/useTWAuth.d.ts +1 -1
  69. package/dist/cjs/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +20 -17
  70. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +28 -0
  71. package/dist/cjs/global-account/types/b3-api.types.d.ts +5 -0
  72. package/dist/cjs/global-account/types/feature-flags.d.ts +5 -5
  73. package/dist/cjs/notifications/services/api.js +1 -0
  74. package/dist/cjs/shared/constants/chains/b3Chain.d.ts +6 -54
  75. package/dist/cjs/shared/constants/chains/b3Chain.js +5 -41
  76. package/dist/cjs/shared/constants/chains/supported.d.ts +1 -49
  77. package/dist/cjs/shared/constants/chains/supported.js +8 -36
  78. package/dist/cjs/shared/utils/chain-transformers.d.ts +4 -4
  79. package/dist/cjs/shared/utils/chain-transformers.js +38 -37
  80. package/dist/cjs/shared/utils/thirdweb-insights.js +2 -2
  81. package/dist/cjs/shared/utils/upload.d.ts +9 -0
  82. package/dist/cjs/shared/utils/upload.js +34 -0
  83. package/dist/esm/anyspend/constants/rpc.d.ts +2 -1
  84. package/dist/esm/anyspend/constants/rpc.js +3 -1
  85. package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  86. package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
  87. package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  88. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
  89. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  90. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +21 -14
  91. package/dist/esm/anyspend/react/components/AnySpendDeposit.js +10 -4
  92. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  93. package/dist/esm/anyspend/react/components/AnySpendDepositUpside.js +2 -2
  94. package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  95. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
  96. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  97. package/dist/esm/anyspend/react/components/AnySpendStakeB3ExactIn.js +2 -2
  98. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  99. package/dist/esm/anyspend/react/components/AnySpendStakeUpsideExactIn.js +2 -2
  100. package/dist/esm/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  101. package/dist/esm/anyspend/react/components/AnySpendWorkflowTrigger.js +2 -2
  102. package/dist/esm/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  103. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +2 -2
  104. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  105. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +2 -2
  106. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  107. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.js +2 -2
  108. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  109. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  110. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  111. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.js +14 -4
  112. package/dist/esm/anyspend/react/hooks/useCreateDepositFirstOrder.d.ts +3 -3
  113. package/dist/esm/anyspend/utils/chain.d.ts +39 -1
  114. package/dist/esm/anyspend/utils/chain.js +24 -3
  115. package/dist/esm/anyspend/utils/token.d.ts +2 -0
  116. package/dist/esm/anyspend/utils/token.js +13 -0
  117. package/dist/esm/app.shared.d.ts +9 -1
  118. package/dist/esm/app.shared.js +17 -0
  119. package/dist/esm/global-account/app.native.d.ts +1 -1
  120. package/dist/esm/global-account/better-auth-client.d.ts +3314 -36
  121. package/dist/esm/global-account/better-auth-client.js +27 -4
  122. package/dist/esm/global-account/bsmnt.d.ts +2 -2
  123. package/dist/esm/global-account/bsmnt.native.d.ts +1 -1
  124. package/dist/esm/global-account/client-manager.d.ts +7 -5
  125. package/dist/esm/global-account/client-manager.js +19 -5
  126. package/dist/esm/global-account/react/components/AvatarEditor/AvatarEditor.js +6 -11
  127. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  128. package/dist/esm/global-account/react/components/B3Provider/B3ConfigProvider.js +1 -2
  129. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +8 -13
  130. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +25 -4
  131. package/dist/esm/global-account/react/components/B3Provider/BetterAuthProvider.js +48 -8
  132. package/dist/esm/global-account/react/components/ManageAccount/SettingsProfileCard.js +1 -1
  133. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +1 -5
  134. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +3 -2
  135. package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +1 -3
  136. package/dist/esm/global-account/react/components/index.d.ts +0 -2
  137. package/dist/esm/global-account/react/components/index.js +0 -2
  138. package/dist/esm/global-account/react/hooks/index.d.ts +0 -1
  139. package/dist/esm/global-account/react/hooks/index.js +0 -1
  140. package/dist/esm/global-account/react/hooks/useAuth.d.ts +3 -3
  141. package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +1 -1
  142. package/dist/esm/global-account/react/hooks/useAuthentication.js +1 -1
  143. package/dist/esm/global-account/react/hooks/useBetterAuth.d.ts +1656 -21
  144. package/dist/esm/global-account/react/hooks/useBetterAuth.js +13 -14
  145. package/dist/esm/global-account/react/hooks/useClient.d.ts +3 -3
  146. package/dist/esm/global-account/react/hooks/useNativeBalance.js +1 -1
  147. package/dist/esm/global-account/react/hooks/useSiwe.d.ts +1 -1
  148. package/dist/esm/global-account/react/hooks/useSiwe.native.d.ts +1 -1
  149. package/dist/esm/global-account/react/hooks/useTWAuth.d.ts +1 -1
  150. package/dist/esm/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +20 -17
  151. package/dist/esm/global-account/react/stores/useModalStore.d.ts +28 -0
  152. package/dist/esm/global-account/types/b3-api.types.d.ts +5 -0
  153. package/dist/esm/global-account/types/feature-flags.d.ts +5 -5
  154. package/dist/esm/notifications/services/api.js +1 -0
  155. package/dist/esm/shared/constants/chains/b3Chain.d.ts +6 -54
  156. package/dist/esm/shared/constants/chains/b3Chain.js +4 -38
  157. package/dist/esm/shared/constants/chains/supported.d.ts +1 -49
  158. package/dist/esm/shared/constants/chains/supported.js +7 -35
  159. package/dist/esm/shared/utils/chain-transformers.d.ts +4 -4
  160. package/dist/esm/shared/utils/chain-transformers.js +38 -37
  161. package/dist/esm/shared/utils/thirdweb-insights.js +2 -2
  162. package/dist/esm/shared/utils/upload.d.ts +9 -0
  163. package/dist/esm/shared/utils/upload.js +31 -0
  164. package/dist/styles/index.css +1 -1
  165. package/dist/types/anyspend/constants/rpc.d.ts +2 -1
  166. package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +1 -1
  167. package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +2 -1
  168. package/dist/types/anyspend/react/components/AnySpendCustomExactIn.d.ts +2 -0
  169. package/dist/types/anyspend/react/components/AnySpendDepositUpside.d.ts +2 -1
  170. package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +2 -1
  171. package/dist/types/anyspend/react/components/AnySpendStakeB3ExactIn.d.ts +2 -1
  172. package/dist/types/anyspend/react/components/AnySpendStakeUpsideExactIn.d.ts +2 -1
  173. package/dist/types/anyspend/react/components/AnySpendWorkflowTrigger.d.ts +3 -1
  174. package/dist/types/anyspend/react/components/AnyspendDepositHype.d.ts +2 -1
  175. package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +2 -1
  176. package/dist/types/anyspend/react/components/checkout/AnySpendCheckout.d.ts +3 -1
  177. package/dist/types/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  178. package/dist/types/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +3 -1
  179. package/dist/types/anyspend/react/hooks/useCreateDepositFirstOrder.d.ts +3 -3
  180. package/dist/types/anyspend/utils/chain.d.ts +39 -1
  181. package/dist/types/anyspend/utils/token.d.ts +2 -0
  182. package/dist/types/app.shared.d.ts +9 -1
  183. package/dist/types/global-account/app.native.d.ts +1 -1
  184. package/dist/types/global-account/better-auth-client.d.ts +3314 -36
  185. package/dist/types/global-account/bsmnt.d.ts +2 -2
  186. package/dist/types/global-account/bsmnt.native.d.ts +1 -1
  187. package/dist/types/global-account/client-manager.d.ts +7 -5
  188. package/dist/types/global-account/react/components/B3Provider/B3ConfigProvider.d.ts +1 -5
  189. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +8 -13
  190. package/dist/types/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +3 -2
  191. package/dist/types/global-account/react/components/index.d.ts +0 -2
  192. package/dist/types/global-account/react/hooks/index.d.ts +0 -1
  193. package/dist/types/global-account/react/hooks/useAuth.d.ts +3 -3
  194. package/dist/types/global-account/react/hooks/useAuthentication.d.ts +1 -1
  195. package/dist/types/global-account/react/hooks/useBetterAuth.d.ts +1656 -21
  196. package/dist/types/global-account/react/hooks/useClient.d.ts +3 -3
  197. package/dist/types/global-account/react/hooks/useSiwe.d.ts +1 -1
  198. package/dist/types/global-account/react/hooks/useSiwe.native.d.ts +1 -1
  199. package/dist/types/global-account/react/hooks/useTWAuth.d.ts +1 -1
  200. package/dist/types/global-account/react/stores/useModalStore.d.ts +28 -0
  201. package/dist/types/global-account/types/b3-api.types.d.ts +5 -0
  202. package/dist/types/global-account/types/feature-flags.d.ts +5 -5
  203. package/dist/types/shared/constants/chains/b3Chain.d.ts +6 -54
  204. package/dist/types/shared/constants/chains/supported.d.ts +1 -49
  205. package/dist/types/shared/utils/chain-transformers.d.ts +4 -4
  206. package/dist/types/shared/utils/upload.d.ts +9 -0
  207. package/node_modules/@b3/chain-registry/chains.json +1160 -0
  208. package/node_modules/@b3/chain-registry/package.json +14 -0
  209. package/node_modules/@b3/chain-registry/src/index.ts +169 -0
  210. package/node_modules/@b3/chain-registry/tsconfig.json +16 -0
  211. package/package.json +76 -28
  212. package/src/anyspend/constants/rpc.ts +3 -2
  213. package/src/anyspend/react/components/AnySpendBondKit.tsx +2 -0
  214. package/src/anyspend/react/components/AnySpendBuySpin.tsx +3 -0
  215. package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +29 -14
  216. package/src/anyspend/react/components/AnySpendDeposit.tsx +13 -3
  217. package/src/anyspend/react/components/AnySpendDepositUpside.tsx +3 -0
  218. package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -0
  219. package/src/anyspend/react/components/AnySpendStakeB3ExactIn.tsx +3 -0
  220. package/src/anyspend/react/components/AnySpendStakeUpsideExactIn.tsx +3 -0
  221. package/src/anyspend/react/components/AnySpendWorkflowTrigger.tsx +4 -0
  222. package/src/anyspend/react/components/AnyspendDepositHype.tsx +3 -0
  223. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +3 -0
  224. package/src/anyspend/react/components/checkout/AnySpendCheckout.tsx +4 -0
  225. package/src/anyspend/react/components/checkout/AnySpendCheckoutTrigger.tsx +4 -0
  226. package/src/anyspend/react/components/checkout/CheckoutPaymentPanel.tsx +97 -79
  227. package/src/anyspend/react/hooks/useAnyspendQuote.ts +13 -13
  228. package/src/anyspend/react/hooks/useCreateDepositFirstOrder.ts +4 -4
  229. package/src/anyspend/types/api_req_res.ts +10 -5
  230. package/src/anyspend/utils/chain.ts +26 -1
  231. package/src/anyspend/utils/token.ts +14 -0
  232. package/src/app.shared.ts +21 -1
  233. package/src/global-account/app.native.ts +5 -1
  234. package/src/global-account/better-auth-client.ts +30 -4
  235. package/src/global-account/bsmnt.native.ts +5 -1
  236. package/src/global-account/bsmnt.ts +9 -2
  237. package/src/global-account/client-manager.ts +41 -9
  238. package/src/global-account/react/components/AvatarEditor/AvatarEditor.tsx +6 -11
  239. package/src/global-account/react/components/B3Provider/B3ConfigProvider.tsx +0 -6
  240. package/src/global-account/react/components/B3Provider/B3Provider.tsx +49 -32
  241. package/src/global-account/react/components/B3Provider/BetterAuthProvider.tsx +53 -8
  242. package/src/global-account/react/components/ManageAccount/SettingsProfileCard.tsx +1 -1
  243. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +1 -4
  244. package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -4
  245. package/src/global-account/react/components/index.ts +0 -2
  246. package/src/global-account/react/components/ui/button.tsx +1 -2
  247. package/src/global-account/react/hooks/index.ts +0 -1
  248. package/src/global-account/react/hooks/useAuth.ts +2 -2
  249. package/src/global-account/react/hooks/useAuthentication.ts +2 -2
  250. package/src/global-account/react/hooks/useBetterAuth.ts +14 -15
  251. package/src/global-account/react/hooks/useClient.ts +11 -2
  252. package/src/global-account/react/hooks/useNativeBalance.tsx +1 -1
  253. package/src/global-account/react/hooks/useSiwe.native.tsx +1 -1
  254. package/src/global-account/react/hooks/useSiwe.tsx +1 -1
  255. package/src/global-account/react/hooks/useTWAuth.tsx +1 -1
  256. package/src/global-account/react/hooks/useUnifiedChainSwitchAndExecute.ts +22 -20
  257. package/src/global-account/react/stores/useModalStore.ts +28 -0
  258. package/src/global-account/types/b3-api.types.ts +5 -1
  259. package/src/notifications/services/api.ts +1 -0
  260. package/src/shared/constants/chains/b3Chain.ts +4 -43
  261. package/src/shared/constants/chains/supported.ts +9 -48
  262. package/src/shared/utils/chain-transformers.ts +41 -39
  263. package/src/shared/utils/thirdweb-insights.ts +2 -2
  264. package/src/shared/utils/upload.ts +48 -0
  265. package/src/styles/index.css +27 -0
  266. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  267. package/dist/cjs/global-account/react/components/B3Provider/BetterAuthClientProvider.js +0 -31
  268. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +0 -10
  269. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +0 -46
  270. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +0 -11
  271. package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +0 -70
  272. package/dist/cjs/global-account/types/chain-networks.d.ts +0 -44
  273. package/dist/cjs/global-account/types/chain-networks.js +0 -48
  274. package/dist/cjs/shared/generated/chain-networks.json +0 -684
  275. package/dist/esm/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  276. package/dist/esm/global-account/react/components/B3Provider/BetterAuthClientProvider.js +0 -27
  277. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +0 -10
  278. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +0 -43
  279. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +0 -11
  280. package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +0 -67
  281. package/dist/esm/global-account/types/chain-networks.d.ts +0 -44
  282. package/dist/esm/global-account/types/chain-networks.js +0 -45
  283. package/dist/esm/shared/generated/chain-networks.json +0 -684
  284. package/dist/types/global-account/react/components/B3Provider/BetterAuthClientProvider.d.ts +0 -17
  285. package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +0 -10
  286. package/dist/types/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +0 -11
  287. package/dist/types/global-account/types/chain-networks.d.ts +0 -44
  288. package/src/global-account/react/components/B3Provider/BetterAuthClientProvider.tsx +0 -40
  289. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +0 -63
  290. package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +0 -79
  291. package/src/global-account/types/chain-networks.ts +0 -54
  292. package/src/shared/generated/chain-networks.json +0 -684
@@ -2,7 +2,7 @@ import app from "../../../global-account/app.js";
2
2
  import { useAuthStore, useB3Config } from "../../../global-account/react/index.js";
3
3
  import { debugB3React } from "../../../shared/utils/debug.js";
4
4
  import { useCallback } from "react";
5
- import { useBetterAuthClient } from "../components/B3Provider/BetterAuthClientProvider.js";
5
+ import { getBetterAuthClient } from "../../better-auth-client.js";
6
6
  import { useUserQuery } from "./useUserQuery.js";
7
7
  const debug = debugB3React("useBetterAuth");
8
8
  /** Thrown when email verification is required before the user can sign in. */
@@ -22,7 +22,6 @@ export class EmailVerificationRequiredError extends Error {
22
22
  */
23
23
  export function useBetterAuth() {
24
24
  const { partnerId } = useB3Config();
25
- const betterAuthClient = useBetterAuthClient();
26
25
  const { setUser } = useUserQuery();
27
26
  const setIsAuthenticated = useAuthStore(state => state.setIsAuthenticated);
28
27
  const setIsAuthenticating = useAuthStore(state => state.setIsAuthenticating);
@@ -50,7 +49,7 @@ export function useBetterAuth() {
50
49
  setHasStartedConnecting(true);
51
50
  setIsAuthenticating(true);
52
51
  try {
53
- const result = await betterAuthClient.signIn.email({ email, password });
52
+ const result = await getBetterAuthClient().signIn.email({ email, password });
54
53
  if (result.error) {
55
54
  throw new Error(result.error.message || "Sign in failed");
56
55
  }
@@ -65,13 +64,13 @@ export function useBetterAuth() {
65
64
  debug("Sign in failed", error);
66
65
  throw error;
67
66
  }
68
- }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
67
+ }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting]);
69
68
  const signUpWithEmail = useCallback(async (email, password, name, verifyCallbackURL) => {
70
69
  debug("Signing up with email", { email, name });
71
70
  setHasStartedConnecting(true);
72
71
  setIsAuthenticating(true);
73
72
  try {
74
- const result = await betterAuthClient.signUp.email({ email, password, name });
73
+ const result = await getBetterAuthClient().signUp.email({ email, password, name });
75
74
  if (result.error) {
76
75
  throw new Error(result.error.message || "Sign up failed");
77
76
  }
@@ -80,7 +79,7 @@ export function useBetterAuth() {
80
79
  // requireEmailVerification is enabled — send verification email with
81
80
  // a callbackURL Better Auth redirects to after server-side verify.
82
81
  // Pass verifyCallbackURL to land on a dedicated confirmation page.
83
- await betterAuthClient.sendVerificationEmail({
82
+ await getBetterAuthClient().sendVerificationEmail({
84
83
  email,
85
84
  callbackURL: verifyCallbackURL || `${window.location.origin}?authStrategy=better-auth`,
86
85
  });
@@ -93,13 +92,13 @@ export function useBetterAuth() {
93
92
  debug("Sign up failed", error);
94
93
  throw error;
95
94
  }
96
- }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
95
+ }, [exchangeForFeathersJWT, setIsAuthenticating, setHasStartedConnecting]);
97
96
  const signInWithSocial = useCallback(async (provider) => {
98
97
  debug("Signing in with social provider", { provider });
99
98
  setHasStartedConnecting(true);
100
99
  setIsAuthenticating(true);
101
100
  try {
102
- const result = await betterAuthClient.signIn.social({
101
+ const result = await getBetterAuthClient().signIn.social({
103
102
  provider,
104
103
  callbackURL: window.location.href,
105
104
  });
@@ -114,10 +113,10 @@ export function useBetterAuth() {
114
113
  debug("Social sign in failed", error);
115
114
  throw error;
116
115
  }
117
- }, [setIsAuthenticating, setHasStartedConnecting, betterAuthClient]);
116
+ }, [setIsAuthenticating, setHasStartedConnecting]);
118
117
  const requestPasswordReset = useCallback(async (email, redirectTo) => {
119
118
  debug("Requesting password reset", { email });
120
- const result = await betterAuthClient.requestPasswordReset({
119
+ const result = await getBetterAuthClient().requestPasswordReset({
121
120
  email,
122
121
  redirectTo,
123
122
  });
@@ -126,10 +125,10 @@ export function useBetterAuth() {
126
125
  }
127
126
  debug("Password reset email sent");
128
127
  return result;
129
- }, [betterAuthClient]);
128
+ }, []);
130
129
  const resetPassword = useCallback(async (newPassword, token) => {
131
130
  debug("Resetting password");
132
- const result = await betterAuthClient.resetPassword({
131
+ const result = await getBetterAuthClient().resetPassword({
133
132
  newPassword,
134
133
  token,
135
134
  });
@@ -138,7 +137,7 @@ export function useBetterAuth() {
138
137
  }
139
138
  debug("Password reset successful");
140
139
  return result;
141
- }, [betterAuthClient]);
140
+ }, []);
142
141
  return {
143
142
  signInWithEmail,
144
143
  signUpWithEmail,
@@ -146,6 +145,6 @@ export function useBetterAuth() {
146
145
  requestPasswordReset,
147
146
  resetPassword,
148
147
  exchangeForFeathersJWT,
149
- betterAuthClient,
148
+ betterAuthClient: getBetterAuthClient(),
150
149
  };
151
150
  }
@@ -7,10 +7,10 @@ export declare function useClient(): {
7
7
  getCurrentClient: () => import("@b3dotfun/b3-api").ClientApplication;
8
8
  getClientByType: (type: ClientType) => import("@b3dotfun/b3-api").ClientApplication;
9
9
  switchClientType: (type: ClientType) => void;
10
- authenticateWithType: (type: ClientType, accessToken: string, identityToken: string, params?: Record<string, any>) => Promise<import("@feathersjs/authentication").AuthenticationResult | null>;
10
+ authenticateWithType: (type: ClientType, accessToken: string, identityToken: string, params?: Record<string, any>) => Promise<Record<string, any> | null>;
11
11
  authenticateWithBoth: (accessToken: string, identityToken: string, params?: Record<string, any>) => Promise<{
12
- socket: import("@feathersjs/authentication").AuthenticationResult | null;
13
- rest: import("@feathersjs/authentication").AuthenticationResult | null;
12
+ socket: Record<string, any> | null;
13
+ rest: Record<string, any> | null;
14
14
  success: boolean;
15
15
  }>;
16
16
  };
@@ -1,6 +1,6 @@
1
1
  import { toast } from "../../../global-account/react/index.js";
2
2
  import { PUBLIC_BASE_RPC_URL } from "../../../shared/constants/index.js";
3
- import { b3Mainnet, b3Testnet } from "../../../shared/constants/chains/supported.js";
3
+ import { b3Mainnet, b3Testnet } from "../../../shared/constants/chains/b3Chain.js";
4
4
  import { formatNumber } from "../../../shared/utils/formatNumber.js";
5
5
  import { useQuery } from "@tanstack/react-query";
6
6
  import { createPublicClient, formatEther, formatUnits, http } from "viem";
@@ -1,4 +1,4 @@
1
1
  import { Account } from "thirdweb/wallets";
2
2
  export declare function useSiwe(): {
3
- authenticate: (account: Account, partnerId: string) => Promise<import("@feathersjs/authentication").AuthenticationResult>;
3
+ authenticate: (account: Account, partnerId: string) => Promise<Record<string, any>>;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import { Account } from "thirdweb/wallets";
2
2
  export declare function useSiwe(): {
3
- authenticate: (account: Account, partnerId: string) => Promise<import("@feathersjs/authentication").AuthenticationResult>;
3
+ authenticate: (account: Account, partnerId: string) => Promise<Record<string, any>>;
4
4
  };
@@ -3,5 +3,5 @@ import { Wallet } from "thirdweb/wallets";
3
3
  * @deprecated Use useAuth() instead
4
4
  */
5
5
  export declare function useTWAuth(): {
6
- authenticate: (wallet: Wallet, partnerId: string) => Promise<import("@feathersjs/authentication").AuthenticationResult>;
6
+ authenticate: (wallet: Wallet, partnerId: string) => Promise<Record<string, any>>;
7
7
  };
@@ -8,18 +8,16 @@ import { useCallback, useState } from "react";
8
8
  import { prepareTransaction, sendTransaction as twSendTransaction } from "thirdweb";
9
9
  import { isAddress } from "viem";
10
10
  import { useSwitchChain } from "wagmi";
11
+ import { useB3Config } from "../components/B3Provider/B3ConfigProvider.js";
11
12
  import { useB3Account } from "../components/B3Provider/useB3Account.js";
12
13
  import { useAccountWallet } from "./useAccountWallet.js";
13
- const partnerId = String(process.env.PUBLIC_THIRDWEB_PARTNER_ID ||
14
- process.env.NEXT_PUBLIC_THIRDWEB_PARTNER_ID ||
15
- process.env.PUBLIC_GLOBAL_ACCOUNTS_PARTNER_ID ||
16
- process.env.NEXT_PUBLIC_GLOBAL_ACCOUNTS_PARTNER_ID);
17
- invariant(partnerId, "Partner ID is required");
18
14
  export function useUnifiedChainSwitchAndExecute() {
19
15
  const { switchChainAsync } = useSwitchChain();
20
16
  const [isSwitchingOrExecuting, setIsSwitchingOrExecuting] = useState(false);
21
17
  const { isActiveSmartWallet, isActiveEOAWallet, connectedEOAWallet } = useAccountWallet();
22
18
  const aaAccount = useB3Account();
19
+ // From context, not process.env: partnerId is hashed into the server intent key and must match the ecosystem wallet.
20
+ const { partnerId } = useB3Config();
23
21
  // Handle EOA wallet chain switch and execute transaction
24
22
  const handleEOASwitchChainAndSendTransaction = useCallback(async (targetChainId, params) => {
25
23
  if (!connectedEOAWallet) {
@@ -112,18 +110,23 @@ export function useUnifiedChainSwitchAndExecute() {
112
110
  data: params.data,
113
111
  value: params.value,
114
112
  });
115
- // Check if we can use global-accounts-intents, if yes, create an intent.
116
- try {
117
- await app.service("global-accounts-intents").create({
118
- partnerId: partnerId,
119
- chainId: targetChainId,
120
- to: params.to,
121
- data: params.data || "0x",
122
- value: params.value.toString(),
123
- });
113
+ // Pre-register an intent to authorize the signature server-side; skip if partnerId is missing.
114
+ if (partnerId) {
115
+ try {
116
+ await app.service("global-accounts-intents").create({
117
+ partnerId,
118
+ chainId: targetChainId,
119
+ to: params.to,
120
+ data: params.data || "0x",
121
+ value: params.value.toString(),
122
+ });
123
+ }
124
+ catch (err) {
125
+ console.error("Create global-accounts-intents error", err);
126
+ }
124
127
  }
125
- catch (err) {
126
- console.error("Create global-accounts-intents error", err);
128
+ else if (process.env.NODE_ENV !== "production") {
129
+ console.warn("useUnifiedChainSwitchAndExecute: missing partnerId from B3Config — skipping intent pre-authorization");
127
130
  }
128
131
  toast.info("Sending transaction…");
129
132
  const start = performance.now();
@@ -144,7 +147,7 @@ export function useUnifiedChainSwitchAndExecute() {
144
147
  finally {
145
148
  setIsSwitchingOrExecuting(false);
146
149
  }
147
- }, [aaAccount]);
150
+ }, [aaAccount, partnerId]);
148
151
  // Unified switch chain and execute function
149
152
  const switchChainAndExecute = useCallback(async (targetChainId, params) => {
150
153
  // Check which wallet type is active
@@ -135,6 +135,8 @@ export interface AnySpendModalProps extends BaseModalProps {
135
135
  disableUrlParamManagement?: boolean;
136
136
  /** Staging environment support */
137
137
  isStaging?: boolean;
138
+ /** Whether to show the "Pay with Fiat" tab. Defaults to true. When false, the fiat tab is hidden and activeTab is forced to "crypto". */
139
+ showFiatOption?: boolean;
138
140
  }
139
141
  /**
140
142
  * Props for the AnySpend NFT modal
@@ -151,6 +153,8 @@ export interface AnySpendNftProps extends BaseModalProps {
151
153
  onSuccess?: (txHash?: string) => void;
152
154
  /** Client-provided reference ID for tracking orders */
153
155
  clientReferenceId?: string;
156
+ /** Whether to show fiat payment option. Defaults to true. */
157
+ showFiatOption?: boolean;
154
158
  }
155
159
  /**
156
160
  * Props for the AnySpend tournament modal
@@ -224,6 +228,8 @@ export interface AnySpendStakeB3Props extends BaseModalProps {
224
228
  stakeAmount?: string;
225
229
  /** Callback function called when the stake is successful */
226
230
  onSuccess?: () => void;
231
+ /** Whether to show fiat payment option. Defaults to true. */
232
+ showFiatOption?: boolean;
227
233
  }
228
234
  /**
229
235
  * Props for the AnySpend Stake B3 (Custom Exact In) modal
@@ -238,6 +244,8 @@ export interface AnySpendStakeB3ExactInProps extends BaseModalProps {
238
244
  stakeAmount?: string;
239
245
  /** Callback function called when the stake is successful */
240
246
  onSuccess?: () => void;
247
+ /** Whether to show fiat payment option. Defaults to true. */
248
+ showFiatOption?: boolean;
241
249
  }
242
250
  /**
243
251
  * Props for the AnySpend Stake Contract modal
@@ -258,6 +266,8 @@ export interface AnySpendStakeUpsideProps extends BaseModalProps {
258
266
  activeTab?: "crypto" | "fiat";
259
267
  /** Callback function called when the stake is successful */
260
268
  onSuccess?: () => void;
269
+ /** Whether to show fiat payment option. Defaults to true. */
270
+ showFiatOption?: boolean;
261
271
  }
262
272
  /**
263
273
  * Props for the AnySpend Stake Upside (Exact In) modal
@@ -274,6 +284,8 @@ export interface AnySpendStakeUpsideExactInProps extends BaseModalProps {
274
284
  token: components["schemas"]["Token"];
275
285
  /** Callback function called when the stake is successful */
276
286
  onSuccess?: () => void;
287
+ /** Whether to show fiat payment option. Defaults to true. */
288
+ showFiatOption?: boolean;
277
289
  }
278
290
  /**
279
291
  * Props for the AnySpend Deposit Upside (Exact In) modal
@@ -296,6 +308,8 @@ export interface AnySpendDepositUpsideProps extends BaseModalProps {
296
308
  destinationTokenAmount?: string;
297
309
  /** Callback function called when the deposit is successful */
298
310
  onSuccess?: () => void;
311
+ /** Whether to show fiat payment option. Defaults to true. */
312
+ showFiatOption?: boolean;
299
313
  }
300
314
  /**
301
315
  * Props for the AnySpend Buy Spin modal
@@ -314,6 +328,8 @@ export interface AnySpendBuySpinProps extends BaseModalProps {
314
328
  onSuccess?: (txHash?: string) => void;
315
329
  /** Prefill quantity of spins to purchase */
316
330
  prefillQuantity?: string;
331
+ /** Whether to show fiat payment option. Defaults to true. */
332
+ showFiatOption?: boolean;
317
333
  }
318
334
  /**
319
335
  * Props for the AnySpend Signature Mint modal
@@ -328,6 +344,8 @@ export interface AnySpendSignatureMintProps extends BaseModalProps {
328
344
  imageUrl?: string;
329
345
  /** Callback function called when minting is successful */
330
346
  onSuccess?: (txHash?: string) => void;
347
+ /** Whether to show fiat payment option. Defaults to true. */
348
+ showFiatOption?: boolean;
331
349
  }
332
350
  /**
333
351
  * Props for the AnySpend bondKit modal
@@ -352,6 +370,8 @@ export interface AnySpendBondKitProps extends BaseModalProps {
352
370
  b3Amount?: string;
353
371
  /** Callback function called when purchase is successful */
354
372
  onSuccess?: (txHash?: string) => void;
373
+ /** Whether to show fiat payment option. Defaults to true. */
374
+ showFiatOption?: boolean;
355
375
  }
356
376
  export interface LinkAccountModalProps extends BaseModalProps {
357
377
  type: "linkAccount";
@@ -398,6 +418,8 @@ export interface AnySpendDepositHypeProps extends BaseModalProps {
398
418
  customRecipientLabel?: string;
399
419
  /** Custom label for the return home button (overrides "Return to Home" / "Close") */
400
420
  returnHomeLabel?: string;
421
+ /** Whether to show fiat payment option. Defaults to true. */
422
+ showFiatOption?: boolean;
401
423
  }
402
424
  export interface AvatarEditorModalProps extends BaseModalProps {
403
425
  /** Modal type identifier */
@@ -483,6 +505,8 @@ export interface AnySpendCollectorClubPurchaseProps extends BaseModalProps {
483
505
  isStaging?: boolean;
484
506
  /** Optional discount code to apply to the purchase */
485
507
  discountCode?: string;
508
+ /** Whether to show the "Pay with fiat" tab. Defaults to true. */
509
+ showFiatOption?: boolean;
486
510
  }
487
511
  /**
488
512
  * Props for the AnySpend Deposit modal
@@ -543,6 +567,8 @@ export interface AnySpendCheckoutTriggerModalProps extends BaseModalProps {
543
567
  returnUrl?: string;
544
568
  /** Label for the return button */
545
569
  returnLabel?: string;
570
+ /** Whether to show fiat payment options (card + coinbase). Defaults to true. */
571
+ showFiatOption?: boolean;
546
572
  }
547
573
  export interface AnySpendWorkflowTriggerModalProps extends BaseModalProps {
548
574
  /** Modal type identifier */
@@ -571,6 +597,8 @@ export interface AnySpendWorkflowTriggerModalProps extends BaseModalProps {
571
597
  actionLabel?: string;
572
598
  /** Custom class names */
573
599
  classes?: AnySpendAllClasses;
600
+ /** Whether to show fiat payment option. Defaults to true. */
601
+ showFiatOption?: boolean;
574
602
  }
575
603
  export interface AnySpendDepositModalProps extends BaseModalProps {
576
604
  /** Modal type identifier */
@@ -3,9 +3,13 @@
3
3
  */
4
4
  type ObjectId = string;
5
5
  interface PartnerIds {
6
+ /** @deprecated Privy is no longer used for authentication. This field exists for legacy data compatibility only. */
6
7
  privyId?: string;
7
8
  thirdwebId?: string;
8
9
  }
10
+ /**
11
+ * @deprecated Privy is no longer used for authentication. This type exists for legacy data compatibility only.
12
+ */
9
13
  interface PrivyLinkedAccount {
10
14
  type: string;
11
15
  address?: string;
@@ -45,6 +49,7 @@ interface User {
45
49
  createdAt: number;
46
50
  updatedAt: number;
47
51
  partnerIds: PartnerIds;
52
+ /** @deprecated Privy is no longer used for authentication. This field exists for legacy data compatibility only. */
48
53
  privyLinkedAccounts?: PrivyLinkedAccount[];
49
54
  twProfiles?: TWProfile[];
50
55
  }
@@ -1,8 +1,8 @@
1
1
  import { Static } from "@feathersjs/typebox";
2
- export declare const featureFlagsSchema: import("@feathersjs/typebox").TObject<{
3
- _id: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TObject<{}>]>;
4
- id: import("@feathersjs/typebox").TString<string>;
5
- enabled: import("@feathersjs/typebox").TBoolean;
6
- description: import("@feathersjs/typebox").TString<string>;
2
+ export declare const featureFlagsSchema: import("@sinclair/typebox").TObject<{
3
+ _id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TObject<{}>]>;
4
+ id: import("@sinclair/typebox").TString<string>;
5
+ enabled: import("@sinclair/typebox").TBoolean;
6
+ description: import("@sinclair/typebox").TString<string>;
7
7
  }>;
8
8
  export type FeatureFlags = Static<typeof featureFlagsSchema>;
@@ -1,4 +1,5 @@
1
1
  import { getAuthToken } from "../../shared/utils/auth-token.js";
2
+ // Hardcoded default; consumers override via `B3Provider.notificationsApiUrl`.
2
3
  const DEFAULT_API_URL = "https://notifications.b3.fun";
3
4
  let apiUrl = DEFAULT_API_URL;
4
5
  export function setApiUrl(url) {
@@ -1,4 +1,3 @@
1
- import { ChainNetworks } from "../../../global-account/types/chain-networks";
2
1
  import { Chain as ThirdwebChain } from "thirdweb";
3
2
  import { Chain } from "viem";
4
3
  export declare const nullAddress = "0x0000000000000000000000000000000000000000";
@@ -33,8 +32,8 @@ export declare const b3Mainnet: {
33
32
  experimental_preconfirmationTime?: number | undefined | undefined;
34
33
  rpcUrls: {
35
34
  readonly default: {
36
- readonly http: readonly ["https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"];
37
- readonly ws: readonly ["wss://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"];
35
+ readonly http: readonly ["https://mainnet-rpc.b3.fun"];
36
+ readonly ws: readonly ["wss://mainnet-rpc.b3.fun/ws"];
38
37
  };
39
38
  };
40
39
  sourceId?: number | undefined | undefined;
@@ -43,7 +42,7 @@ export declare const b3Mainnet: {
43
42
  fees?: import("viem").ChainFees<undefined> | undefined;
44
43
  formatters?: undefined;
45
44
  serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
46
- readonly rpc: "https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2";
45
+ readonly rpc: "https://mainnet-rpc.b3.fun";
47
46
  readonly icon: {
48
47
  readonly url: "https://cdn.b3.fun/b3_logo.svg";
49
48
  readonly width: 32;
@@ -51,55 +50,8 @@ export declare const b3Mainnet: {
51
50
  readonly format: "svg";
52
51
  };
53
52
  };
54
- export declare const getViemChainConfig: (config: ChainNetworks) => {
55
- blockExplorers: {
56
- readonly default: {
57
- readonly name: string;
58
- readonly url: string;
59
- };
60
- };
61
- blockTime?: number | undefined | undefined;
62
- contracts?: {
63
- [x: string]: import("viem").ChainContract | {
64
- [sourceId: number]: import("viem").ChainContract | undefined;
65
- } | undefined;
66
- ensRegistry?: import("viem").ChainContract | undefined;
67
- ensUniversalResolver?: import("viem").ChainContract | undefined;
68
- multicall3?: import("viem").ChainContract | undefined;
69
- erc6492Verifier?: import("viem").ChainContract | undefined;
70
- } | undefined;
71
- ensTlds?: readonly string[] | undefined;
72
- id: number;
73
- name: string;
74
- nativeCurrency: {
75
- symbol: string;
76
- name: string;
77
- decimals: number;
78
- };
79
- experimental_preconfirmationTime?: number | undefined | undefined;
80
- rpcUrls: {
81
- readonly default: {
82
- readonly http: readonly [string];
83
- readonly ws: readonly [string];
84
- };
85
- };
86
- sourceId?: number | undefined | undefined;
87
- testnet: true | undefined;
88
- custom?: Record<string, unknown> | undefined;
89
- fees?: import("viem").ChainFees<undefined> | undefined;
90
- formatters?: undefined;
91
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
92
- readonly rpc: string;
93
- readonly icon: {
94
- format: string;
95
- url: string;
96
- width: number;
97
- height: number;
98
- };
99
- };
100
53
  export declare const thirdwebB3Testnet: ThirdwebChain;
101
54
  export declare const thirdwebB3Mainnet: ThirdwebChain;
102
- export declare const getThirdwebChainConfig: (config: ChainNetworks) => ThirdwebChain;
103
55
  export declare const b3Chain: Chain | {
104
56
  blockExplorers: {
105
57
  readonly default: {
@@ -128,8 +80,8 @@ export declare const b3Chain: Chain | {
128
80
  experimental_preconfirmationTime?: number | undefined | undefined;
129
81
  rpcUrls: {
130
82
  readonly default: {
131
- readonly http: readonly ["https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"];
132
- readonly ws: readonly ["wss://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"];
83
+ readonly http: readonly ["https://mainnet-rpc.b3.fun"];
84
+ readonly ws: readonly ["wss://mainnet-rpc.b3.fun/ws"];
133
85
  };
134
86
  };
135
87
  sourceId?: number | undefined | undefined;
@@ -138,7 +90,7 @@ export declare const b3Chain: Chain | {
138
90
  fees?: import("viem").ChainFees<undefined> | undefined;
139
91
  formatters?: undefined;
140
92
  serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
141
- readonly rpc: "https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2";
93
+ readonly rpc: "https://mainnet-rpc.b3.fun";
142
94
  readonly icon: {
143
95
  readonly url: "https://cdn.b3.fun/b3_logo.svg";
144
96
  readonly width: 32;
@@ -52,11 +52,11 @@ export const b3Testnet = defineChain({
52
52
  export const b3Mainnet = defineChain({
53
53
  id: 8333,
54
54
  name: "B3",
55
- rpc: "https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2",
55
+ rpc: "https://mainnet-rpc.b3.fun",
56
56
  rpcUrls: {
57
57
  default: {
58
- http: ["https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"],
59
- ws: ["wss://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2"],
58
+ http: ["https://mainnet-rpc.b3.fun"],
59
+ ws: ["wss://mainnet-rpc.b3.fun/ws"],
60
60
  },
61
61
  },
62
62
  icon: {
@@ -77,26 +77,6 @@ export const b3Mainnet = defineChain({
77
77
  decimals: 18,
78
78
  },
79
79
  });
80
- export const getViemChainConfig = (config) => defineChain({
81
- id: config.id,
82
- name: config.name,
83
- rpc: config.rpcUrls.default.http,
84
- rpcUrls: {
85
- default: {
86
- http: [config.rpcUrls.default.http],
87
- ws: [config.rpcUrls.default.ws],
88
- },
89
- },
90
- icon: config.icon,
91
- blockExplorers: {
92
- default: {
93
- name: config.blockExplorers.explorerTitle,
94
- url: config.blockExplorers.default,
95
- },
96
- },
97
- nativeCurrency: config.nativeCurrency,
98
- testnet: config.testnet ? true : undefined,
99
- });
100
80
  export const thirdwebB3Testnet = defineThirdwebChain({
101
81
  id: 1993,
102
82
  name: "B3 Sepolia",
@@ -123,7 +103,7 @@ export const thirdwebB3Testnet = defineThirdwebChain({
123
103
  export const thirdwebB3Mainnet = defineThirdwebChain({
124
104
  id: 8333,
125
105
  name: "B3",
126
- rpc: "https://late-dimensional-yard.b3-mainnet.quiknode.pro/461dbdbd44158cd7a7a764a58ffb01a67eef77f2/",
106
+ rpc: "https://mainnet-rpc.b3.fun",
127
107
  icon: {
128
108
  url: "https://cdn.b3.fun/b3_logo.svg",
129
109
  width: 32,
@@ -142,20 +122,6 @@ export const thirdwebB3Mainnet = defineThirdwebChain({
142
122
  decimals: 18,
143
123
  },
144
124
  });
145
- export const getThirdwebChainConfig = (config) => defineThirdwebChain({
146
- id: config.id,
147
- name: config.name,
148
- rpc: config.rpcUrls.default.http,
149
- icon: config.icon,
150
- blockExplorers: [
151
- {
152
- name: config.blockExplorers.explorerTitle,
153
- url: config.blockExplorers.default,
154
- },
155
- ],
156
- nativeCurrency: config.nativeCurrency,
157
- testnet: config.testnet ? true : undefined,
158
- });
159
125
  export const b3Chain = process.env.NEXT_PUBLIC_B3_CHAINID === "8333" ? b3Mainnet : b3Testnet;
160
126
  export const thirdwebB3Chain = process.env.NEXT_PUBLIC_B3_CHAINID === "8333" ? thirdwebB3Mainnet : thirdwebB3Testnet;
161
127
  export const b3Mask = "polygon( 2.209% 8.111%,2.211% 8.08%,2.212% 8.05%,2.212% 8.05%,2.238% 7.434%,2.295% 6.861%,2.382% 6.331%,2.498% 5.841%,2.644% 5.39%,2.817% 4.976%,3.018% 4.598%,3.247% 4.255%,3.502% 3.943%,3.783% 3.664%,3.783% 3.664%,4.107% 3.401%,4.464% 3.165%,4.857% 2.956%,5.285% 2.774%,5.749% 2.62%,6.249% 2.493%,6.786% 2.394%,7.361% 2.323%,7.974% 2.28%,8.625% 2.266%,8.642% 2.266%,8.66% 2.265%,8.66% 2.265%,16.702% 1.748%,24.751% 1.345%,32.805% 1.053%,40.864% 0.872%,48.924% 0.801%,56.984% 0.836%,65.044% 0.977%,73.101% 1.223%,81.153% 1.571%,89.2% 2.02%,89.2% 2.02%,89.394% 2.037%,89.59% 2.052%,89.789% 2.067%,89.989% 2.08%,90.19% 2.093%,90.393% 2.105%,90.596% 2.117%,90.8% 2.128%,91.004% 2.139%,91.207% 2.15%,91.207% 2.15%,91.357% 2.158%,91.506% 2.166%,91.655% 2.174%,91.803% 2.182%,91.95% 2.19%,92.097% 2.199%,92.242% 2.208%,92.386% 2.217%,92.529% 2.227%,92.67% 2.237%,92.67% 2.237%,93.011% 2.264%,93.347% 2.294%,93.677% 2.329%,94.002% 2.369%,94.321% 2.414%,94.634% 2.466%,94.94% 2.525%,95.239% 2.592%,95.53% 2.667%,95.813% 2.751%,95.813% 2.751%,96.087% 2.844%,96.349% 2.947%,96.6% 3.059%,96.839% 3.181%,97.066% 3.314%,97.282% 3.457%,97.485% 3.612%,97.676% 3.779%,97.855% 3.957%,98.021% 4.148%,98.021% 4.148%,98.172% 4.349%,98.313% 4.567%,98.444% 4.802%,98.563% 5.057%,98.67% 5.332%,98.764% 5.628%,98.845% 5.947%,98.912% 6.289%,98.964% 6.656%,99.001% 7.048%,99.002% 7.052%,99.002% 7.056%,99.002% 7.056%,99.127% 8.717%,99.245% 10.378%,99.355% 12.04%,99.46% 13.703%,99.56% 15.367%,99.654% 17.032%,99.745% 18.697%,99.832% 20.363%,99.917% 22.029%,100% 23.696%,100% 23.696%,100.219% 29.737%,100.382% 35.779%,100.489% 41.822%,100.539% 47.865%,100.534% 53.909%,100.472% 59.953%,100.353% 65.996%,100.179% 72.037%,99.947% 78.077%,99.659% 84.114%,99.659% 84.114%,99.655% 84.186%,99.651% 84.259%,99.646% 84.331%,99.642% 84.404%,99.637% 84.476%,99.633% 84.549%,99.629% 84.621%,99.624% 84.693%,99.615% 84.838%,99.615% 84.838%,99.565% 85.657%,99.515% 86.476%,99.464% 87.294%,99.412% 88.111%,99.36% 88.929%,99.306% 89.746%,99.251% 90.562%,99.194% 91.378%,99.135% 92.194%,99.074% 93.01%,99.072% 93.031%,99.071% 93.052%,99.071% 93.052%,99.049% 93.479%,99.012% 93.894%,98.959% 94.296%,98.89% 94.686%,98.805% 95.062%,98.702% 95.422%,98.582% 95.768%,98.444% 96.096%,98.288% 96.408%,98.113% 96.701%,98.113% 96.701%,97.92% 96.974%,97.703% 97.232%,97.461% 97.475%,97.194% 97.699%,96.898% 97.904%,96.574% 98.088%,96.219% 98.249%,95.833% 98.385%,95.414% 98.495%,94.961% 98.577%,94.961% 98.577%,92.494% 98.801%,90.025% 98.998%,87.553% 99.171%,85.079% 99.324%,82.604% 99.46%,80.126% 99.58%,77.648% 99.689%,75.169% 99.79%,72.689% 99.884%,70.208% 99.975%,69.528% 100%,69.528% 100%,69.528% 100%,69.528% 100%,69.528% 100%,69.528% 100%,69.528% 100%,69.527% 100%,69.527% 100%,69.527% 100%,69.527% 100%,63.379% 100.153%,57.23% 100.245%,51.081% 100.277%,44.931% 100.248%,38.783% 100.158%,32.635% 100.006%,26.489% 99.792%,20.346% 99.515%,14.205% 99.176%,8.068% 98.774%,8.058% 98.773%,8.048% 98.773%,8.048% 98.773%,7.501% 98.746%,6.992% 98.698%,6.518% 98.63%,6.079% 98.545%,5.673% 98.441%,5.299% 98.321%,4.956% 98.186%,4.641% 98.036%,4.354% 97.873%,4.094% 97.697%,4.094% 97.697%,3.862% 97.513%,3.65% 97.317%,3.457% 97.108%,3.281% 96.887%,3.123% 96.654%,2.98% 96.409%,2.852% 96.152%,2.737% 95.884%,2.635% 95.605%,2.545% 95.314%,2.545% 95.314%,2.463% 95.004%,2.391% 94.682%,2.329% 94.349%,2.276% 94.006%,2.23% 93.651%,2.192% 93.286%,2.159% 92.911%,2.131% 92.525%,2.106% 92.129%,2.085% 91.722%,2.085% 91.722%,2.081% 91.635%,2.077% 91.548%,2.073% 91.46%,2.069% 91.371%,2.066% 91.282%,2.062% 91.193%,2.058% 91.103%,2.054% 91.013%,2.051% 90.923%,2.047% 90.832%,2.047% 90.832%,2.033% 90.503%,2.019% 90.171%,2.003% 89.835%,1.986% 89.496%,1.966% 89.156%,1.944% 88.814%,1.918% 88.471%,1.889% 88.127%,1.855% 87.785%,1.817% 87.443%,1.817% 87.443%,1.594% 83.762%,1.403% 80.079%,1.241% 76.394%,1.104% 72.707%,0.99% 69.019%,0.894% 65.329%,0.813% 61.638%,0.744% 57.946%,0.682% 54.254%,0.626% 50.561%,0.626% 50.561%,0.637% 49.992%,0.648% 49.423%,0.659% 48.854%,0.67% 48.286%,0.681% 47.717%,0.692% 47.148%,0.703% 46.58%,0.713% 46.011%,0.724% 45.443%,0.734% 44.874%,0.734% 44.874%,0.782% 42.326%,0.831% 39.779%,0.884% 37.232%,0.941% 34.685%,1.006% 32.14%,1.078% 29.595%,1.161% 27.051%,1.255% 24.508%,1.363% 21.965%,1.485% 19.424%,1.485% 19.424%,1.493% 19.294%,1.5% 19.165%,1.508% 19.035%,1.515% 18.906%,1.523% 18.776%,1.531% 18.647%,1.538% 18.517%,1.546% 18.388%,1.553% 18.258%,1.561% 18.129%,1.561% 18.129%,1.619% 17.124%,1.678% 16.121%,1.737% 15.118%,1.798% 14.116%,1.86% 13.114%,1.925% 12.113%,1.991% 11.112%,2.06% 10.111%,2.133% 9.111%,2.209% 8.111% )";
@@ -1,48 +1,7 @@
1
1
  import type { Chain as ThirdwebChain } from "thirdweb";
2
2
  export declare const supportedChains: import("viem").Chain[];
3
3
  export declare const supportedChainsTW: ThirdwebChain[];
4
- export declare const supportedChainNetworks: {
5
- formatters?: Record<string, any> | undefined;
6
- contracts?: Record<string, {
7
- blockCreated?: number | undefined;
8
- address: string;
9
- }> | undefined;
10
- sourceId?: number | undefined;
11
- testnet?: boolean | undefined;
12
- fees?: Record<string, any> | undefined;
13
- color?: string | undefined;
14
- testnetConfigID?: number | undefined;
15
- badge?: string | undefined;
16
- enabledFeatures?: string[] | undefined;
17
- blockExplorers: {
18
- default: string;
19
- explorerTitle: string;
20
- };
21
- id: number;
22
- name: string;
23
- nativeCurrency: {
24
- symbol: string;
25
- name: string;
26
- decimals: number;
27
- };
28
- rpcUrls: {
29
- default: {
30
- http: string;
31
- ws: string;
32
- };
33
- backups: {
34
- type: "http" | "ws";
35
- uri: string;
36
- }[];
37
- };
38
- _id: string | {};
39
- icon: {
40
- format: string;
41
- url: string;
42
- width: number;
43
- height: number;
44
- };
45
- }[];
4
+ export declare const supportedChainNetworks: import("@b3/chain-registry").ChainDefinition[];
46
5
  export declare const coingeckoChains: Record<number, {
47
6
  coingecko_id: string;
48
7
  name: string;
@@ -56,14 +15,7 @@ export declare function getCoingeckoChainInfo(chainId: number): {
56
15
  export declare const b3MainnetThirdWeb: Readonly<import("thirdweb/chains").ChainOptions & {
57
16
  rpc: string;
58
17
  }>;
59
- export declare const b3TestnetThirdWeb: Readonly<import("thirdweb/chains").ChainOptions & {
60
- rpc: string;
61
- }>;
62
18
  export declare const b3Mainnet: import("viem").Chain;
63
- export declare const b3Testnet: import("viem").Chain;
64
19
  export declare const baseMainnet: import("viem").Chain;
65
- /**
66
- * Get a Thirdweb chain by chain ID from supportedChainsTW
67
- */
68
20
  export declare function getThirdwebChain(chainId: number): ThirdwebChain;
69
21
  export declare function getChainLogo(chainId: number): string;