@b3dotfun/sdk 0.0.23 → 0.0.24

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 (252) hide show
  1. package/dist/cjs/anyspend/react/components/AnySpend.js +5 -8
  2. package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -2
  3. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +35 -28
  4. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +4 -4
  5. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +35 -28
  6. package/dist/cjs/anyspend/react/components/common/Accordion.d.ts +7 -0
  7. package/dist/cjs/anyspend/react/components/common/Accordion.js +53 -0
  8. package/dist/cjs/anyspend/react/components/common/ConnectWalletPayment.js +3 -22
  9. package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  10. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +76 -83
  11. package/dist/cjs/anyspend/react/components/common/OrderStatus.js +1 -1
  12. package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +4 -3
  13. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +1 -5
  14. package/dist/cjs/anyspend/react/components/common/StepProgress.js +2 -2
  15. package/dist/cjs/anyspend/react/components/common/TokenBalance.js +1 -1
  16. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +0 -1
  17. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -4
  18. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +2 -2
  19. package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +0 -1
  20. package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +0 -1
  21. package/dist/cjs/anyspend/utils/chain.js +1 -1
  22. package/dist/cjs/bondkit/abis/BondkitTokenABI.d.ts +1020 -0
  23. package/dist/cjs/bondkit/abis/BondkitTokenABI.js +1332 -0
  24. package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.d.ts +391 -0
  25. package/dist/cjs/bondkit/abis/BondkitTokenFactoryABI.js +514 -0
  26. package/dist/cjs/bondkit/abis/index.d.ts +2 -0
  27. package/dist/cjs/bondkit/abis/index.js +18 -0
  28. package/dist/cjs/bondkit/bondkitToken.d.ts +68 -0
  29. package/dist/cjs/bondkit/bondkitToken.js +456 -0
  30. package/dist/cjs/bondkit/bondkitTokenFactory.d.ts +60 -0
  31. package/dist/cjs/bondkit/bondkitTokenFactory.js +274 -0
  32. package/dist/cjs/bondkit/components/TradingView.d.ts +3 -0
  33. package/dist/cjs/bondkit/components/TradingView.js +296 -0
  34. package/dist/cjs/bondkit/components/config/cdn.d.ts +42 -0
  35. package/dist/cjs/bondkit/components/config/cdn.js +63 -0
  36. package/dist/cjs/bondkit/components/index.d.ts +5 -0
  37. package/dist/cjs/bondkit/components/index.js +25 -0
  38. package/dist/cjs/bondkit/components/types.d.ts +8 -0
  39. package/dist/cjs/bondkit/components/types.js +5 -0
  40. package/dist/cjs/bondkit/components/utils/cdn-loader.d.ts +24 -0
  41. package/dist/cjs/bondkit/components/utils/cdn-loader.js +73 -0
  42. package/dist/cjs/bondkit/components/utils/format.d.ts +4 -0
  43. package/dist/cjs/bondkit/components/utils/format.js +31 -0
  44. package/dist/cjs/bondkit/config.d.ts +10 -0
  45. package/dist/cjs/bondkit/config.js +18 -0
  46. package/dist/cjs/bondkit/constants.d.ts +3 -0
  47. package/dist/cjs/bondkit/constants.js +5 -0
  48. package/dist/cjs/bondkit/index.d.ts +7 -0
  49. package/dist/cjs/bondkit/index.js +33 -0
  50. package/dist/cjs/bondkit/json_abis/BondkitABI.json +1329 -0
  51. package/dist/cjs/bondkit/json_abis/BondkitFactoryABI.json +511 -0
  52. package/dist/cjs/bondkit/json_abis/index.d.ts +3 -0
  53. package/dist/cjs/bondkit/json_abis/index.js +10 -0
  54. package/dist/cjs/bondkit/json_abis/index.ts +4 -0
  55. package/dist/cjs/bondkit/types.d.ts +77 -0
  56. package/dist/cjs/bondkit/types.js +11 -0
  57. package/dist/cjs/global-account/react/components/B3DynamicModal.js +1 -1
  58. package/dist/cjs/global-account/react/components/MintButton/MintButton.js +0 -1
  59. package/dist/cjs/global-account/react/components/SendERC20Button/SendERC20Button.d.ts +13 -0
  60. package/dist/cjs/global-account/react/components/SendERC20Button/SendERC20Button.js +33 -0
  61. package/dist/cjs/global-account/react/components/SendETHButton/SendETHButton.d.ts +12 -0
  62. package/dist/cjs/global-account/react/components/SendETHButton/SendETHButton.js +23 -0
  63. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +4 -2
  64. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +2 -2
  65. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  66. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
  67. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
  68. package/dist/cjs/global-account/react/components/index.d.ts +2 -0
  69. package/dist/cjs/global-account/react/components/index.js +8 -2
  70. package/dist/cjs/global-account/react/components/ui/scroll-area.js +1 -1
  71. package/dist/cjs/global-account/react/components/ui/tooltip.d.ts +1 -1
  72. package/dist/cjs/global-account/react/hooks/index.d.ts +2 -1
  73. package/dist/cjs/global-account/react/hooks/index.js +18 -3
  74. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -0
  75. package/dist/cjs/global-account/react/hooks/useAuthentication.js +4 -4
  76. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.d.ts +1 -2
  77. package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +2 -2
  78. package/dist/cjs/global-account/react/hooks/useFirstEOA.js +9 -7
  79. package/dist/cjs/global-account/react/hooks/useUnifiedChainSwitchAndExecute.d.ts +11 -0
  80. package/dist/cjs/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +160 -0
  81. package/dist/cjs/shared/constants/chains/supported.d.ts +4 -0
  82. package/dist/cjs/shared/constants/chains/supported.js +11 -0
  83. package/dist/cjs/shared/generated/chain-networks.json +1 -1
  84. package/dist/esm/anyspend/react/components/AnySpend.js +5 -8
  85. package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -2
  86. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +37 -30
  87. package/dist/esm/anyspend/react/components/AnySpendCustom.js +4 -4
  88. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +37 -30
  89. package/dist/esm/anyspend/react/components/common/Accordion.d.ts +7 -0
  90. package/dist/esm/anyspend/react/components/common/Accordion.js +14 -0
  91. package/dist/esm/anyspend/react/components/common/ConnectWalletPayment.js +3 -22
  92. package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  93. package/dist/esm/anyspend/react/components/common/OrderDetails.js +79 -86
  94. package/dist/esm/anyspend/react/components/common/OrderStatus.js +1 -1
  95. package/dist/esm/anyspend/react/components/common/PanelOnramp.js +5 -4
  96. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +1 -5
  97. package/dist/esm/anyspend/react/components/common/StepProgress.js +2 -2
  98. package/dist/esm/anyspend/react/components/common/TokenBalance.js +1 -1
  99. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +0 -1
  100. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -4
  101. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +2 -2
  102. package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +0 -1
  103. package/dist/esm/anyspend/react/hooks/useStripeSupport.js +0 -1
  104. package/dist/esm/anyspend/utils/chain.js +1 -1
  105. package/dist/esm/bondkit/abis/BondkitTokenABI.d.ts +1020 -0
  106. package/dist/esm/bondkit/abis/BondkitTokenABI.js +1329 -0
  107. package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.d.ts +391 -0
  108. package/dist/esm/bondkit/abis/BondkitTokenFactoryABI.js +511 -0
  109. package/dist/esm/bondkit/abis/index.d.ts +2 -0
  110. package/dist/esm/bondkit/abis/index.js +2 -0
  111. package/dist/esm/bondkit/bondkitToken.d.ts +68 -0
  112. package/dist/esm/bondkit/bondkitToken.js +452 -0
  113. package/dist/esm/bondkit/bondkitTokenFactory.d.ts +60 -0
  114. package/dist/esm/bondkit/bondkitTokenFactory.js +270 -0
  115. package/dist/esm/bondkit/components/TradingView.d.ts +3 -0
  116. package/dist/esm/bondkit/components/TradingView.js +294 -0
  117. package/dist/esm/bondkit/components/config/cdn.d.ts +42 -0
  118. package/dist/esm/bondkit/components/config/cdn.js +55 -0
  119. package/dist/esm/bondkit/components/index.d.ts +5 -0
  120. package/dist/esm/bondkit/components/index.js +4 -0
  121. package/dist/esm/bondkit/components/types.d.ts +8 -0
  122. package/dist/esm/bondkit/components/types.js +4 -0
  123. package/dist/esm/bondkit/components/utils/cdn-loader.d.ts +24 -0
  124. package/dist/esm/bondkit/components/utils/cdn-loader.js +66 -0
  125. package/dist/esm/bondkit/components/utils/format.d.ts +4 -0
  126. package/dist/esm/bondkit/components/utils/format.js +28 -0
  127. package/dist/esm/bondkit/config.d.ts +10 -0
  128. package/dist/esm/bondkit/config.js +14 -0
  129. package/dist/esm/bondkit/constants.d.ts +3 -0
  130. package/dist/esm/bondkit/constants.js +2 -0
  131. package/dist/esm/bondkit/index.d.ts +7 -0
  132. package/dist/esm/bondkit/index.js +12 -0
  133. package/dist/esm/bondkit/json_abis/BondkitABI.json +1329 -0
  134. package/dist/esm/bondkit/json_abis/BondkitFactoryABI.json +511 -0
  135. package/dist/esm/bondkit/json_abis/index.d.ts +3 -0
  136. package/dist/esm/bondkit/json_abis/index.js +3 -0
  137. package/dist/esm/bondkit/json_abis/index.ts +4 -0
  138. package/dist/esm/bondkit/types.d.ts +77 -0
  139. package/dist/esm/bondkit/types.js +8 -0
  140. package/dist/esm/global-account/react/components/B3DynamicModal.js +1 -1
  141. package/dist/esm/global-account/react/components/MintButton/MintButton.js +0 -1
  142. package/dist/esm/global-account/react/components/SendERC20Button/SendERC20Button.d.ts +13 -0
  143. package/dist/esm/global-account/react/components/SendERC20Button/SendERC20Button.js +30 -0
  144. package/dist/esm/global-account/react/components/SendETHButton/SendETHButton.d.ts +12 -0
  145. package/dist/esm/global-account/react/components/SendETHButton/SendETHButton.js +20 -0
  146. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +4 -2
  147. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +2 -2
  148. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  149. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
  150. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
  151. package/dist/esm/global-account/react/components/index.d.ts +2 -0
  152. package/dist/esm/global-account/react/components/index.js +4 -0
  153. package/dist/esm/global-account/react/components/ui/scroll-area.js +1 -1
  154. package/dist/esm/global-account/react/components/ui/tooltip.d.ts +1 -1
  155. package/dist/esm/global-account/react/hooks/index.d.ts +2 -1
  156. package/dist/esm/global-account/react/hooks/index.js +2 -1
  157. package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -0
  158. package/dist/esm/global-account/react/hooks/useAuthentication.js +4 -4
  159. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.d.ts +1 -2
  160. package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +2 -2
  161. package/dist/esm/global-account/react/hooks/useFirstEOA.js +9 -7
  162. package/dist/esm/global-account/react/hooks/useUnifiedChainSwitchAndExecute.d.ts +11 -0
  163. package/dist/esm/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +154 -0
  164. package/dist/esm/shared/constants/chains/supported.d.ts +4 -0
  165. package/dist/esm/shared/constants/chains/supported.js +10 -0
  166. package/dist/esm/shared/generated/chain-networks.json +1 -1
  167. package/dist/styles/index.css +1 -1
  168. package/dist/types/anyspend/react/components/common/Accordion.d.ts +7 -0
  169. package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +0 -1
  170. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +2 -2
  171. package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +0 -1
  172. package/dist/types/bondkit/abis/BondkitTokenABI.d.ts +1020 -0
  173. package/dist/types/bondkit/abis/BondkitTokenFactoryABI.d.ts +391 -0
  174. package/dist/types/bondkit/abis/index.d.ts +2 -0
  175. package/dist/types/bondkit/bondkitToken.d.ts +68 -0
  176. package/dist/types/bondkit/bondkitTokenFactory.d.ts +60 -0
  177. package/dist/types/bondkit/components/TradingView.d.ts +3 -0
  178. package/dist/types/bondkit/components/config/cdn.d.ts +42 -0
  179. package/dist/types/bondkit/components/index.d.ts +5 -0
  180. package/dist/types/bondkit/components/types.d.ts +8 -0
  181. package/dist/types/bondkit/components/utils/cdn-loader.d.ts +24 -0
  182. package/dist/types/bondkit/components/utils/format.d.ts +4 -0
  183. package/dist/types/bondkit/config.d.ts +10 -0
  184. package/dist/types/bondkit/constants.d.ts +3 -0
  185. package/dist/types/bondkit/index.d.ts +7 -0
  186. package/dist/types/bondkit/json_abis/index.d.ts +3 -0
  187. package/dist/types/bondkit/types.d.ts +77 -0
  188. package/dist/types/global-account/react/components/SendERC20Button/SendERC20Button.d.ts +13 -0
  189. package/dist/types/global-account/react/components/SendETHButton/SendETHButton.d.ts +12 -0
  190. package/dist/types/global-account/react/components/index.d.ts +2 -0
  191. package/dist/types/global-account/react/components/ui/tooltip.d.ts +1 -1
  192. package/dist/types/global-account/react/hooks/index.d.ts +2 -1
  193. package/dist/types/global-account/react/hooks/useChainSwitchWithAction.d.ts +1 -2
  194. package/dist/types/global-account/react/hooks/useUnifiedChainSwitchAndExecute.d.ts +11 -0
  195. package/dist/types/shared/constants/chains/supported.d.ts +4 -0
  196. package/package.json +42 -7
  197. package/src/anyspend/react/components/AnySpend.tsx +5 -23
  198. package/src/anyspend/react/components/AnySpendBondKit.tsx +2 -2
  199. package/src/anyspend/react/components/AnySpendBuySpin.tsx +42 -32
  200. package/src/anyspend/react/components/AnySpendCustom.tsx +7 -13
  201. package/src/anyspend/react/components/AnySpendStakeB3.tsx +44 -34
  202. package/src/anyspend/react/components/common/Accordion.tsx +56 -0
  203. package/src/anyspend/react/components/common/ConnectWalletPayment.tsx +0 -25
  204. package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +1 -2
  205. package/src/anyspend/react/components/common/OrderDetails.tsx +292 -260
  206. package/src/anyspend/react/components/common/OrderStatus.tsx +1 -1
  207. package/src/anyspend/react/components/common/PanelOnramp.tsx +7 -7
  208. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +0 -6
  209. package/src/anyspend/react/components/common/StepProgress.tsx +2 -2
  210. package/src/anyspend/react/components/common/TokenBalance.tsx +3 -3
  211. package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +2 -4
  212. package/src/anyspend/react/hooks/useStripeSupport.ts +0 -1
  213. package/src/anyspend/utils/chain.ts +1 -1
  214. package/src/bondkit/abis/BondkitTokenABI.ts +1329 -0
  215. package/src/bondkit/abis/BondkitTokenFactoryABI.ts +511 -0
  216. package/src/bondkit/abis/index.ts +2 -0
  217. package/src/bondkit/bondkitToken.ts +539 -0
  218. package/src/bondkit/bondkitTokenFactory.ts +336 -0
  219. package/src/bondkit/components/TradingView.tsx +341 -0
  220. package/src/bondkit/components/config/cdn.ts +63 -0
  221. package/src/bondkit/components/index.ts +5 -0
  222. package/src/bondkit/components/types.ts +9 -0
  223. package/src/bondkit/components/utils/cdn-loader.ts +77 -0
  224. package/src/bondkit/components/utils/format.ts +36 -0
  225. package/src/bondkit/config.ts +26 -0
  226. package/src/bondkit/constants.ts +5 -0
  227. package/src/bondkit/index.ts +16 -0
  228. package/src/bondkit/json_abis/BondkitABI.json +1329 -0
  229. package/src/bondkit/json_abis/BondkitFactoryABI.json +511 -0
  230. package/src/bondkit/json_abis/index.ts +4 -0
  231. package/src/bondkit/types.ts +98 -0
  232. package/src/global-account/react/components/B3DynamicModal.tsx +2 -1
  233. package/src/global-account/react/components/MintButton/MintButton.tsx +0 -1
  234. package/src/global-account/react/components/SendERC20Button/SendERC20Button.tsx +57 -0
  235. package/src/global-account/react/components/SendETHButton/SendETHButton.tsx +37 -0
  236. package/src/global-account/react/components/SignInWithB3/SignIn.tsx +21 -22
  237. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +2 -2
  238. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +1 -1
  239. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +2 -2
  240. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +2 -2
  241. package/src/global-account/react/components/index.ts +6 -0
  242. package/src/global-account/react/components/ui/scroll-area.tsx +2 -2
  243. package/src/global-account/react/components/ui/tooltip.tsx +1 -1
  244. package/src/global-account/react/hooks/index.ts +2 -1
  245. package/src/global-account/react/hooks/useAccountWallet.tsx +10 -1
  246. package/src/global-account/react/hooks/useAuthentication.ts +4 -4
  247. package/src/global-account/react/hooks/useChainSwitchWithAction.ts +3 -4
  248. package/src/global-account/react/hooks/useFirstEOA.tsx +10 -7
  249. package/src/global-account/react/hooks/useUnifiedChainSwitchAndExecute.ts +186 -0
  250. package/src/shared/constants/chains/supported.ts +11 -0
  251. package/src/shared/generated/chain-networks.json +1 -1
  252. package/src/styles/index.css +27 -0
@@ -0,0 +1,511 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_initialOwner",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_implementationAddress",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "CloneInitializationReturnedFalse",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "string",
27
+ "name": "reason",
28
+ "type": "string"
29
+ }
30
+ ],
31
+ "name": "CloneInitializationReverted",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "FailedDeployment",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "uint256",
43
+ "name": "balance",
44
+ "type": "uint256"
45
+ },
46
+ {
47
+ "internalType": "uint256",
48
+ "name": "needed",
49
+ "type": "uint256"
50
+ }
51
+ ],
52
+ "name": "InsufficientBalance",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "providedAddress",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "InvalidImplementationAddress",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "owner",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "OwnableInvalidOwner",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "account",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "OwnableUnauthorizedAccount",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "value",
93
+ "type": "uint256"
94
+ }
95
+ ],
96
+ "name": "ValidationInvalidAggressivenessFactor",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [
101
+ {
102
+ "internalType": "address",
103
+ "name": "providedAddress",
104
+ "type": "address"
105
+ }
106
+ ],
107
+ "name": "ValidationInvalidFeeRecipientAddress",
108
+ "type": "error"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "value",
115
+ "type": "uint256"
116
+ }
117
+ ],
118
+ "name": "ValidationInvalidFinalTokenSupply",
119
+ "type": "error"
120
+ },
121
+ {
122
+ "inputs": [
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "value",
126
+ "type": "uint256"
127
+ }
128
+ ],
129
+ "name": "ValidationInvalidLPSplitRatio",
130
+ "type": "error"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "address",
136
+ "name": "providedAddress",
137
+ "type": "address"
138
+ }
139
+ ],
140
+ "name": "ValidationInvalidMigrationAdminAddress",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [
145
+ {
146
+ "internalType": "address",
147
+ "name": "providedAddress",
148
+ "type": "address"
149
+ }
150
+ ],
151
+ "name": "ValidationInvalidRouterAddress",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "anonymous": false,
156
+ "inputs": [
157
+ {
158
+ "indexed": true,
159
+ "internalType": "address",
160
+ "name": "tokenAddress",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "indexed": true,
165
+ "internalType": "address",
166
+ "name": "implementationAddress",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "indexed": false,
171
+ "internalType": "string",
172
+ "name": "name",
173
+ "type": "string"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "internalType": "string",
178
+ "name": "symbol",
179
+ "type": "string"
180
+ },
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "feeRecipient",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "indexed": false,
189
+ "internalType": "address",
190
+ "name": "migrationAdmin",
191
+ "type": "address"
192
+ }
193
+ ],
194
+ "name": "BondkitTokenCreated",
195
+ "type": "event"
196
+ },
197
+ {
198
+ "anonymous": false,
199
+ "inputs": [
200
+ {
201
+ "indexed": true,
202
+ "internalType": "address",
203
+ "name": "cloneAddress",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "CloneInitializationFailed",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [
213
+ {
214
+ "indexed": true,
215
+ "internalType": "address",
216
+ "name": "cloneAddress",
217
+ "type": "address"
218
+ }
219
+ ],
220
+ "name": "CloneInitializationSuccess",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "previousOwner",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": true,
234
+ "internalType": "address",
235
+ "name": "newOwner",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "OwnershipTransferred",
240
+ "type": "event"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "address",
246
+ "name": "",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "name": "bondkitTokenConfigs",
251
+ "outputs": [
252
+ {
253
+ "internalType": "string",
254
+ "name": "name",
255
+ "type": "string"
256
+ },
257
+ {
258
+ "internalType": "string",
259
+ "name": "symbol",
260
+ "type": "string"
261
+ },
262
+ {
263
+ "internalType": "address",
264
+ "name": "feeRecipient",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "finalTokenSupply",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "uint8",
274
+ "name": "aggressivenessFactor",
275
+ "type": "uint8"
276
+ },
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "lpSplitRatioFeeRecipientBps",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "targetEth",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "internalType": "address",
289
+ "name": "uniswapV2RouterAddress",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "internalType": "address",
294
+ "name": "migrationAdminAddress",
295
+ "type": "address"
296
+ }
297
+ ],
298
+ "stateMutability": "view",
299
+ "type": "function"
300
+ },
301
+ {
302
+ "inputs": [],
303
+ "name": "bondkitTokenImplementation",
304
+ "outputs": [
305
+ {
306
+ "internalType": "address",
307
+ "name": "",
308
+ "type": "address"
309
+ }
310
+ ],
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [
316
+ {
317
+ "components": [
318
+ {
319
+ "internalType": "string",
320
+ "name": "name",
321
+ "type": "string"
322
+ },
323
+ {
324
+ "internalType": "string",
325
+ "name": "symbol",
326
+ "type": "string"
327
+ },
328
+ {
329
+ "internalType": "address",
330
+ "name": "feeRecipient",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "internalType": "uint256",
335
+ "name": "finalTokenSupply",
336
+ "type": "uint256"
337
+ },
338
+ {
339
+ "internalType": "uint8",
340
+ "name": "aggressivenessFactor",
341
+ "type": "uint8"
342
+ },
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "lpSplitRatioFeeRecipientBps",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "targetEth",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "internalType": "address",
355
+ "name": "uniswapV2RouterAddress",
356
+ "type": "address"
357
+ },
358
+ {
359
+ "internalType": "address",
360
+ "name": "migrationAdminAddress",
361
+ "type": "address"
362
+ }
363
+ ],
364
+ "internalType": "struct BondkitTokenConfigLib.Config",
365
+ "name": "_config",
366
+ "type": "tuple"
367
+ }
368
+ ],
369
+ "name": "deployBondkitToken",
370
+ "outputs": [
371
+ {
372
+ "internalType": "address",
373
+ "name": "",
374
+ "type": "address"
375
+ }
376
+ ],
377
+ "stateMutability": "nonpayable",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [
382
+ {
383
+ "internalType": "uint256",
384
+ "name": "",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "name": "deployedBondkitTokens",
389
+ "outputs": [
390
+ {
391
+ "internalType": "address",
392
+ "name": "",
393
+ "type": "address"
394
+ }
395
+ ],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
401
+ {
402
+ "internalType": "address",
403
+ "name": "_tokenAddress",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "name": "getBondkitTokenConfig",
408
+ "outputs": [
409
+ {
410
+ "components": [
411
+ {
412
+ "internalType": "string",
413
+ "name": "name",
414
+ "type": "string"
415
+ },
416
+ {
417
+ "internalType": "string",
418
+ "name": "symbol",
419
+ "type": "string"
420
+ },
421
+ {
422
+ "internalType": "address",
423
+ "name": "feeRecipient",
424
+ "type": "address"
425
+ },
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "finalTokenSupply",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "internalType": "uint8",
433
+ "name": "aggressivenessFactor",
434
+ "type": "uint8"
435
+ },
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "lpSplitRatioFeeRecipientBps",
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "internalType": "uint256",
443
+ "name": "targetEth",
444
+ "type": "uint256"
445
+ },
446
+ {
447
+ "internalType": "address",
448
+ "name": "uniswapV2RouterAddress",
449
+ "type": "address"
450
+ },
451
+ {
452
+ "internalType": "address",
453
+ "name": "migrationAdminAddress",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "internalType": "struct BondkitTokenConfigLib.Config",
458
+ "name": "",
459
+ "type": "tuple"
460
+ }
461
+ ],
462
+ "stateMutability": "view",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [],
467
+ "name": "getDeployedBondkitTokens",
468
+ "outputs": [
469
+ {
470
+ "internalType": "address[]",
471
+ "name": "",
472
+ "type": "address[]"
473
+ }
474
+ ],
475
+ "stateMutability": "view",
476
+ "type": "function"
477
+ },
478
+ {
479
+ "inputs": [],
480
+ "name": "owner",
481
+ "outputs": [
482
+ {
483
+ "internalType": "address",
484
+ "name": "",
485
+ "type": "address"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [],
493
+ "name": "renounceOwnership",
494
+ "outputs": [],
495
+ "stateMutability": "nonpayable",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ {
501
+ "internalType": "address",
502
+ "name": "newOwner",
503
+ "type": "address"
504
+ }
505
+ ],
506
+ "name": "transferOwnership",
507
+ "outputs": [],
508
+ "stateMutability": "nonpayable",
509
+ "type": "function"
510
+ }
511
+ ]
@@ -0,0 +1,4 @@
1
+ import BondkitABI from "./BondkitABI.json";
2
+ import BondkitFactoryABI from "./BondkitFactoryABI.json";
3
+
4
+ export { BondkitABI, BondkitFactoryABI };
@@ -0,0 +1,98 @@
1
+ import type { Address, Hex } from "viem";
2
+
3
+ export type TokenDetails = {
4
+ name: string;
5
+ symbol: string;
6
+ decimals: number;
7
+ totalSupply: bigint;
8
+ owner: Address;
9
+ };
10
+
11
+ // From BondkitTokenFactoryABI for deployBondkitToken function
12
+ export type BondkitTokenConfig = {
13
+ name: string;
14
+ symbol: string;
15
+ feeRecipient: Address;
16
+ finalTokenSupply: bigint;
17
+ aggressivenessFactor: number; // uint8
18
+ lpSplitRatioFeeRecipientBps: bigint;
19
+ targetEth: bigint;
20
+ uniswapV2RouterAddress: Address;
21
+ migrationAdminAddress: Address;
22
+ };
23
+
24
+ // Event type for BondkitTokenCreated from BondkitTokenFactoryABI
25
+ export type BondkitTokenCreatedEventArgs = {
26
+ tokenAddress: Address;
27
+ implementationAddress: Address;
28
+ name: string;
29
+ symbol: string;
30
+ feeRecipient: Address;
31
+ migrationAdmin: Address;
32
+ };
33
+
34
+ // From BondkitTokenABI for initialize function
35
+ // This is the same structure as BondkitTokenConfig from the factory, re-using it.
36
+ // If they can diverge, define a separate type here.
37
+ export type BondkitTokenInitializationConfig = BondkitTokenConfig;
38
+
39
+ // Event type for Bought from BondkitTokenABI
40
+ export type BoughtEventArgs = {
41
+ buyer: Address;
42
+ ethIn: bigint;
43
+ tokensOut: bigint;
44
+ feeRecipientFee: bigint;
45
+ };
46
+
47
+ // Event type for Sold from BondkitTokenABI
48
+ export type SoldEventArgs = {
49
+ seller: Address;
50
+ tokensIn: bigint;
51
+ ethOut: bigint;
52
+ feeRecipientFee: bigint;
53
+ };
54
+
55
+ // Event type for DexMigration from BondkitTokenABI
56
+ export type DexMigrationEventArgs = {
57
+ ethForLp: bigint;
58
+ tokensForLp: bigint;
59
+ ethForFeeRecipient: bigint;
60
+ };
61
+
62
+ // Enum for Status (used in BondkitToken ABI)
63
+ export enum TokenStatus {
64
+ Inactive = 0, // Assuming mapping from ABI, verify actual enum values if specified elsewhere
65
+ BondingPhase = 1,
66
+ DexPhase = 2,
67
+ Migrated = 3,
68
+ }
69
+
70
+ export interface GetTransactionHistoryOptions {
71
+ userAddress?: Address;
72
+ type?: "buy" | "sell";
73
+ from?: number;
74
+ to?: number;
75
+ // The number of records to return. Minimum 1, maximum 100.
76
+ limit?: number;
77
+ offset?: number;
78
+ }
79
+
80
+ export interface Transaction {
81
+ timestamp: number;
82
+ price: number;
83
+ amount: string; // API returns amount as a string
84
+ type: "buy" | "sell";
85
+ userAddress: Address;
86
+ txHash: Hex;
87
+ chainId: number;
88
+ blockNumber?: number;
89
+ totalEthRaisedBonding?: string;
90
+ value?: string;
91
+ }
92
+
93
+ export interface TransactionResponse {
94
+ total: number;
95
+ limit: number;
96
+ skip: number;
97
+ data: Transaction[];
98
+ }
@@ -19,6 +19,7 @@ import { Dialog, DialogContent, DialogDescription, DialogTitle } from "./ui/dial
19
19
  import { Drawer, DrawerContent, DrawerDescription, DrawerTitle } from "./ui/drawer";
20
20
 
21
21
  const debug = debugB3React("B3DynamicModal");
22
+
22
23
  export function B3DynamicModal() {
23
24
  const { isOpen, setB3ModalOpen, contentType, history, navigateBack } = useModalStore();
24
25
  const { theme } = useB3();
@@ -66,7 +67,7 @@ export function B3DynamicModal() {
66
67
  contentClass += " transak-modal";
67
68
  }
68
69
 
69
- debug("@@DynamicModal:contentType", contentType);
70
+ debug("contentType", contentType);
70
71
  const renderContent = () => {
71
72
  if (!contentType) return null;
72
73
 
@@ -31,7 +31,6 @@ export function MintButton({
31
31
  onError,
32
32
  }: MintButtonProps) {
33
33
  const ecoSystemWallet = useActiveAccount();
34
- console.log("@@ecoSystemWallet", ecoSystemWallet);
35
34
 
36
35
  const { claim, isMinting } = useClaim({
37
36
  contractAddress,
@@ -0,0 +1,57 @@
1
+ import { Button, useUnifiedChainSwitchAndExecute } from "@b3dotfun/sdk/global-account/react";
2
+ import type { JSX } from "react";
3
+ import { useCallback } from "react";
4
+ import { encodeFunctionData, erc20Abi } from "viem";
5
+
6
+ interface SendERC20ButtonProps {
7
+ chainId: number;
8
+ to: `0x${string}`;
9
+ tokenAddress: `0x${string}`;
10
+ amount: bigint;
11
+ className?: string;
12
+ children?: string | JSX.Element;
13
+ onSuccess?: (tx: `0x${string}`) => void;
14
+ onError?: (error: Error) => void;
15
+ }
16
+
17
+ export function SendERC20Button({
18
+ chainId,
19
+ to,
20
+ tokenAddress,
21
+ amount,
22
+ className,
23
+ children,
24
+ onSuccess,
25
+ onError,
26
+ }: SendERC20ButtonProps) {
27
+ const { switchChainAndExecute, isSwitchingOrExecuting } = useUnifiedChainSwitchAndExecute();
28
+
29
+ const handleSendERC20 = useCallback(async () => {
30
+ try {
31
+ const bytecode = encodeFunctionData({
32
+ abi: erc20Abi,
33
+ functionName: "transfer",
34
+ args: [to, amount],
35
+ });
36
+ const tx = await switchChainAndExecute(chainId, {
37
+ to: tokenAddress as `0x${string}`,
38
+ data: bytecode,
39
+ value: BigInt(0),
40
+ });
41
+ if (tx) {
42
+ onSuccess?.(tx as `0x${string}`);
43
+ }
44
+ } catch (error) {
45
+ onError?.(error as Error);
46
+ throw error;
47
+ }
48
+ }, [switchChainAndExecute, chainId, to, tokenAddress, amount, onSuccess, onError]);
49
+
50
+ const buttonText = isSwitchingOrExecuting ? "Sending..." : String(children);
51
+
52
+ return (
53
+ <Button onClick={handleSendERC20} disabled={isSwitchingOrExecuting} className={className}>
54
+ {buttonText}
55
+ </Button>
56
+ );
57
+ }