@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,391 @@
1
+ export declare const BondkitTokenFactoryABI: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "_initialOwner";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "address";
8
+ readonly name: "_implementationAddress";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "nonpayable";
12
+ readonly type: "constructor";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "CloneInitializationReturnedFalse";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "string";
20
+ readonly name: "reason";
21
+ readonly type: "string";
22
+ }];
23
+ readonly name: "CloneInitializationReverted";
24
+ readonly type: "error";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "FailedDeployment";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [{
31
+ readonly internalType: "uint256";
32
+ readonly name: "balance";
33
+ readonly type: "uint256";
34
+ }, {
35
+ readonly internalType: "uint256";
36
+ readonly name: "needed";
37
+ readonly type: "uint256";
38
+ }];
39
+ readonly name: "InsufficientBalance";
40
+ readonly type: "error";
41
+ }, {
42
+ readonly inputs: readonly [{
43
+ readonly internalType: "address";
44
+ readonly name: "providedAddress";
45
+ readonly type: "address";
46
+ }];
47
+ readonly name: "InvalidImplementationAddress";
48
+ readonly type: "error";
49
+ }, {
50
+ readonly inputs: readonly [{
51
+ readonly internalType: "address";
52
+ readonly name: "owner";
53
+ readonly type: "address";
54
+ }];
55
+ readonly name: "OwnableInvalidOwner";
56
+ readonly type: "error";
57
+ }, {
58
+ readonly inputs: readonly [{
59
+ readonly internalType: "address";
60
+ readonly name: "account";
61
+ readonly type: "address";
62
+ }];
63
+ readonly name: "OwnableUnauthorizedAccount";
64
+ readonly type: "error";
65
+ }, {
66
+ readonly inputs: readonly [{
67
+ readonly internalType: "uint256";
68
+ readonly name: "value";
69
+ readonly type: "uint256";
70
+ }];
71
+ readonly name: "ValidationInvalidAggressivenessFactor";
72
+ readonly type: "error";
73
+ }, {
74
+ readonly inputs: readonly [{
75
+ readonly internalType: "address";
76
+ readonly name: "providedAddress";
77
+ readonly type: "address";
78
+ }];
79
+ readonly name: "ValidationInvalidFeeRecipientAddress";
80
+ readonly type: "error";
81
+ }, {
82
+ readonly inputs: readonly [{
83
+ readonly internalType: "uint256";
84
+ readonly name: "value";
85
+ readonly type: "uint256";
86
+ }];
87
+ readonly name: "ValidationInvalidFinalTokenSupply";
88
+ readonly type: "error";
89
+ }, {
90
+ readonly inputs: readonly [{
91
+ readonly internalType: "uint256";
92
+ readonly name: "value";
93
+ readonly type: "uint256";
94
+ }];
95
+ readonly name: "ValidationInvalidLPSplitRatio";
96
+ readonly type: "error";
97
+ }, {
98
+ readonly inputs: readonly [{
99
+ readonly internalType: "address";
100
+ readonly name: "providedAddress";
101
+ readonly type: "address";
102
+ }];
103
+ readonly name: "ValidationInvalidMigrationAdminAddress";
104
+ readonly type: "error";
105
+ }, {
106
+ readonly inputs: readonly [{
107
+ readonly internalType: "address";
108
+ readonly name: "providedAddress";
109
+ readonly type: "address";
110
+ }];
111
+ readonly name: "ValidationInvalidRouterAddress";
112
+ readonly type: "error";
113
+ }, {
114
+ readonly anonymous: false;
115
+ readonly inputs: readonly [{
116
+ readonly indexed: true;
117
+ readonly internalType: "address";
118
+ readonly name: "tokenAddress";
119
+ readonly type: "address";
120
+ }, {
121
+ readonly indexed: true;
122
+ readonly internalType: "address";
123
+ readonly name: "implementationAddress";
124
+ readonly type: "address";
125
+ }, {
126
+ readonly indexed: false;
127
+ readonly internalType: "string";
128
+ readonly name: "name";
129
+ readonly type: "string";
130
+ }, {
131
+ readonly indexed: false;
132
+ readonly internalType: "string";
133
+ readonly name: "symbol";
134
+ readonly type: "string";
135
+ }, {
136
+ readonly indexed: true;
137
+ readonly internalType: "address";
138
+ readonly name: "feeRecipient";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly indexed: false;
142
+ readonly internalType: "address";
143
+ readonly name: "migrationAdmin";
144
+ readonly type: "address";
145
+ }];
146
+ readonly name: "BondkitTokenCreated";
147
+ readonly type: "event";
148
+ }, {
149
+ readonly anonymous: false;
150
+ readonly inputs: readonly [{
151
+ readonly indexed: true;
152
+ readonly internalType: "address";
153
+ readonly name: "cloneAddress";
154
+ readonly type: "address";
155
+ }];
156
+ readonly name: "CloneInitializationFailed";
157
+ readonly type: "event";
158
+ }, {
159
+ readonly anonymous: false;
160
+ readonly inputs: readonly [{
161
+ readonly indexed: true;
162
+ readonly internalType: "address";
163
+ readonly name: "cloneAddress";
164
+ readonly type: "address";
165
+ }];
166
+ readonly name: "CloneInitializationSuccess";
167
+ readonly type: "event";
168
+ }, {
169
+ readonly anonymous: false;
170
+ readonly inputs: readonly [{
171
+ readonly indexed: true;
172
+ readonly internalType: "address";
173
+ readonly name: "previousOwner";
174
+ readonly type: "address";
175
+ }, {
176
+ readonly indexed: true;
177
+ readonly internalType: "address";
178
+ readonly name: "newOwner";
179
+ readonly type: "address";
180
+ }];
181
+ readonly name: "OwnershipTransferred";
182
+ readonly type: "event";
183
+ }, {
184
+ readonly inputs: readonly [{
185
+ readonly internalType: "address";
186
+ readonly name: "";
187
+ readonly type: "address";
188
+ }];
189
+ readonly name: "bondkitTokenConfigs";
190
+ readonly outputs: readonly [{
191
+ readonly internalType: "string";
192
+ readonly name: "name";
193
+ readonly type: "string";
194
+ }, {
195
+ readonly internalType: "string";
196
+ readonly name: "symbol";
197
+ readonly type: "string";
198
+ }, {
199
+ readonly internalType: "address";
200
+ readonly name: "feeRecipient";
201
+ readonly type: "address";
202
+ }, {
203
+ readonly internalType: "uint256";
204
+ readonly name: "finalTokenSupply";
205
+ readonly type: "uint256";
206
+ }, {
207
+ readonly internalType: "uint8";
208
+ readonly name: "aggressivenessFactor";
209
+ readonly type: "uint8";
210
+ }, {
211
+ readonly internalType: "uint256";
212
+ readonly name: "lpSplitRatioFeeRecipientBps";
213
+ readonly type: "uint256";
214
+ }, {
215
+ readonly internalType: "uint256";
216
+ readonly name: "targetEth";
217
+ readonly type: "uint256";
218
+ }, {
219
+ readonly internalType: "address";
220
+ readonly name: "uniswapV2RouterAddress";
221
+ readonly type: "address";
222
+ }, {
223
+ readonly internalType: "address";
224
+ readonly name: "migrationAdminAddress";
225
+ readonly type: "address";
226
+ }];
227
+ readonly stateMutability: "view";
228
+ readonly type: "function";
229
+ }, {
230
+ readonly inputs: readonly [];
231
+ readonly name: "bondkitTokenImplementation";
232
+ readonly outputs: readonly [{
233
+ readonly internalType: "address";
234
+ readonly name: "";
235
+ readonly type: "address";
236
+ }];
237
+ readonly stateMutability: "view";
238
+ readonly type: "function";
239
+ }, {
240
+ readonly inputs: readonly [{
241
+ readonly components: readonly [{
242
+ readonly internalType: "string";
243
+ readonly name: "name";
244
+ readonly type: "string";
245
+ }, {
246
+ readonly internalType: "string";
247
+ readonly name: "symbol";
248
+ readonly type: "string";
249
+ }, {
250
+ readonly internalType: "address";
251
+ readonly name: "feeRecipient";
252
+ readonly type: "address";
253
+ }, {
254
+ readonly internalType: "uint256";
255
+ readonly name: "finalTokenSupply";
256
+ readonly type: "uint256";
257
+ }, {
258
+ readonly internalType: "uint8";
259
+ readonly name: "aggressivenessFactor";
260
+ readonly type: "uint8";
261
+ }, {
262
+ readonly internalType: "uint256";
263
+ readonly name: "lpSplitRatioFeeRecipientBps";
264
+ readonly type: "uint256";
265
+ }, {
266
+ readonly internalType: "uint256";
267
+ readonly name: "targetEth";
268
+ readonly type: "uint256";
269
+ }, {
270
+ readonly internalType: "address";
271
+ readonly name: "uniswapV2RouterAddress";
272
+ readonly type: "address";
273
+ }, {
274
+ readonly internalType: "address";
275
+ readonly name: "migrationAdminAddress";
276
+ readonly type: "address";
277
+ }];
278
+ readonly internalType: "struct BondkitTokenConfigLib.Config";
279
+ readonly name: "_config";
280
+ readonly type: "tuple";
281
+ }];
282
+ readonly name: "deployBondkitToken";
283
+ readonly outputs: readonly [{
284
+ readonly internalType: "address";
285
+ readonly name: "";
286
+ readonly type: "address";
287
+ }];
288
+ readonly stateMutability: "nonpayable";
289
+ readonly type: "function";
290
+ }, {
291
+ readonly inputs: readonly [{
292
+ readonly internalType: "uint256";
293
+ readonly name: "";
294
+ readonly type: "uint256";
295
+ }];
296
+ readonly name: "deployedBondkitTokens";
297
+ readonly outputs: readonly [{
298
+ readonly internalType: "address";
299
+ readonly name: "";
300
+ readonly type: "address";
301
+ }];
302
+ readonly stateMutability: "view";
303
+ readonly type: "function";
304
+ }, {
305
+ readonly inputs: readonly [{
306
+ readonly internalType: "address";
307
+ readonly name: "_tokenAddress";
308
+ readonly type: "address";
309
+ }];
310
+ readonly name: "getBondkitTokenConfig";
311
+ readonly outputs: readonly [{
312
+ readonly components: readonly [{
313
+ readonly internalType: "string";
314
+ readonly name: "name";
315
+ readonly type: "string";
316
+ }, {
317
+ readonly internalType: "string";
318
+ readonly name: "symbol";
319
+ readonly type: "string";
320
+ }, {
321
+ readonly internalType: "address";
322
+ readonly name: "feeRecipient";
323
+ readonly type: "address";
324
+ }, {
325
+ readonly internalType: "uint256";
326
+ readonly name: "finalTokenSupply";
327
+ readonly type: "uint256";
328
+ }, {
329
+ readonly internalType: "uint8";
330
+ readonly name: "aggressivenessFactor";
331
+ readonly type: "uint8";
332
+ }, {
333
+ readonly internalType: "uint256";
334
+ readonly name: "lpSplitRatioFeeRecipientBps";
335
+ readonly type: "uint256";
336
+ }, {
337
+ readonly internalType: "uint256";
338
+ readonly name: "targetEth";
339
+ readonly type: "uint256";
340
+ }, {
341
+ readonly internalType: "address";
342
+ readonly name: "uniswapV2RouterAddress";
343
+ readonly type: "address";
344
+ }, {
345
+ readonly internalType: "address";
346
+ readonly name: "migrationAdminAddress";
347
+ readonly type: "address";
348
+ }];
349
+ readonly internalType: "struct BondkitTokenConfigLib.Config";
350
+ readonly name: "";
351
+ readonly type: "tuple";
352
+ }];
353
+ readonly stateMutability: "view";
354
+ readonly type: "function";
355
+ }, {
356
+ readonly inputs: readonly [];
357
+ readonly name: "getDeployedBondkitTokens";
358
+ readonly outputs: readonly [{
359
+ readonly internalType: "address[]";
360
+ readonly name: "";
361
+ readonly type: "address[]";
362
+ }];
363
+ readonly stateMutability: "view";
364
+ readonly type: "function";
365
+ }, {
366
+ readonly inputs: readonly [];
367
+ readonly name: "owner";
368
+ readonly outputs: readonly [{
369
+ readonly internalType: "address";
370
+ readonly name: "";
371
+ readonly type: "address";
372
+ }];
373
+ readonly stateMutability: "view";
374
+ readonly type: "function";
375
+ }, {
376
+ readonly inputs: readonly [];
377
+ readonly name: "renounceOwnership";
378
+ readonly outputs: readonly [];
379
+ readonly stateMutability: "nonpayable";
380
+ readonly type: "function";
381
+ }, {
382
+ readonly inputs: readonly [{
383
+ readonly internalType: "address";
384
+ readonly name: "newOwner";
385
+ readonly type: "address";
386
+ }];
387
+ readonly name: "transferOwnership";
388
+ readonly outputs: readonly [];
389
+ readonly stateMutability: "nonpayable";
390
+ readonly type: "function";
391
+ }];
@@ -0,0 +1,2 @@
1
+ export * from "./BondkitTokenABI";
2
+ export * from "./BondkitTokenFactoryABI";
@@ -0,0 +1,68 @@
1
+ import type { Address, EIP1193Provider, GetContractReturnType, Hex, PublicClient, WalletClient } from "viem";
2
+ import { BondkitTokenABI } from "./abis";
3
+ import type { TokenDetails, TokenStatus, BondkitTokenInitializationConfig, GetTransactionHistoryOptions, TransactionResponse } from "./types";
4
+ type ExecuteWriteOptions = {
5
+ value?: bigint;
6
+ gas?: bigint;
7
+ maxFeePerGas?: bigint;
8
+ maxPriorityFeePerGas?: bigint;
9
+ };
10
+ export declare class BondkitToken {
11
+ contract: GetContractReturnType<typeof BondkitTokenABI, WalletClient>;
12
+ publicClient: PublicClient;
13
+ contractAddress: Hex;
14
+ private chain;
15
+ private walletKey?;
16
+ private rpcUrl;
17
+ private apiEndpoint;
18
+ private walletClientInstance;
19
+ private connectedProvider?;
20
+ constructor(contractAddress: string, walletKey?: string);
21
+ connect(provider?: EIP1193Provider): boolean;
22
+ /**
23
+ * Connects using an EIP-1193 provider and requests accounts, selecting the first one.
24
+ * Enables frontend wallet flows without requiring a private key.
25
+ */
26
+ connectWithProvider(provider: EIP1193Provider): Promise<boolean>;
27
+ private handleError;
28
+ name(): Promise<string | undefined>;
29
+ symbol(): Promise<string | undefined>;
30
+ decimals(): Promise<number | undefined>;
31
+ totalSupply(): Promise<bigint | undefined>;
32
+ balanceOf(account: Address): Promise<bigint | undefined>;
33
+ allowance(owner: Address, spender: Address): Promise<bigint | undefined>;
34
+ owner(): Promise<Address | undefined>;
35
+ getTokenDetails(): Promise<TokenDetails | undefined>;
36
+ feeRecipient(): Promise<Address | undefined>;
37
+ currentStatus(): Promise<TokenStatus | undefined>;
38
+ getCurrentPhase(): Promise<string | undefined>;
39
+ getAmountOfTokensToBuy(ethAmount: bigint | string): Promise<bigint | undefined>;
40
+ getAmountOfEthToSell(tokenAmount: bigint): Promise<bigint | undefined>;
41
+ getCurrentBondingCurvePricePerToken(): Promise<bigint | undefined>;
42
+ totalEthRaisedBonding(): Promise<bigint | undefined>;
43
+ getTotalSupply(): Promise<bigint | undefined>;
44
+ getPaginatedHolders(startIndex: bigint, count?: bigint): Promise<{
45
+ address: Address;
46
+ balance: bigint;
47
+ }[]>;
48
+ getBondingProgress(): Promise<{
49
+ progress: number;
50
+ raised: number;
51
+ threshold: number;
52
+ } | undefined>;
53
+ getTransactionHistory(options?: GetTransactionHistoryOptions): Promise<TransactionResponse | undefined>;
54
+ private executeWrite;
55
+ initialize(config: BondkitTokenInitializationConfig, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
56
+ transfer(to: Address, amount: bigint, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
57
+ approve(spender: Address, amount: bigint, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
58
+ transferFrom(from: Address, to: Address, amount: bigint, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
59
+ /** Buy tokens with ETH. Payable function. */
60
+ buy(minTokensOut: bigint, ethAmount: bigint | string, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
61
+ /** Sell tokens for ETH. */
62
+ sell(tokenAmount: bigint, minEthOut: bigint, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
63
+ /** Migrate liquidity to DEX. Only callable by owner/migrationAdmin based on typical patterns. */
64
+ migrateToDex(options?: ExecuteWriteOptions): Promise<Hex | undefined>;
65
+ transferTokenOwnership(newOwner: Address, options?: ExecuteWriteOptions): Promise<Hex | undefined>;
66
+ renounceTokenOwnership(options?: ExecuteWriteOptions): Promise<Hex | undefined>;
67
+ }
68
+ export {};
@@ -0,0 +1,60 @@
1
+ import type { Address, EIP1193Provider, Hex } from "viem";
2
+ import { SupportedChainId } from "./config";
3
+ import type { BondkitTokenConfig } from "./types";
4
+ export declare class BondkitTokenFactory {
5
+ private contract;
6
+ private publicClient;
7
+ private contractAddress;
8
+ private chain;
9
+ private walletKey?;
10
+ private rpcUrl;
11
+ private walletClientInstance;
12
+ private connectedProvider?;
13
+ constructor(chainId: SupportedChainId, walletKey?: string);
14
+ connect(provider?: EIP1193Provider): boolean;
15
+ /**
16
+ * Connects using an EIP-1193 provider and requests accounts, selecting the first one.
17
+ * Enables frontend wallet flows without requiring a private key.
18
+ */
19
+ connectWithProvider(provider: EIP1193Provider): Promise<boolean>;
20
+ /**
21
+ * Ensure we have an account set for write operations.
22
+ * If not, try to resolve from a connected provider and reinitialize the client.
23
+ */
24
+ private ensureWriteAccount;
25
+ private handleError;
26
+ /**
27
+ * Deploys a new Bondkit token using the factory.
28
+ * @param config The configuration for the token to be deployed.
29
+ * @returns The address of the newly created BondkitToken.
30
+ */
31
+ deployBondkitToken(configArg: BondkitTokenConfig): Promise<Address>;
32
+ /**
33
+ * Gets the configuration of a deployed Bondkit token.
34
+ * @param tokenAddress The address of the Bondkit token.
35
+ * @returns The configuration object for the token.
36
+ */
37
+ getBondkitTokenConfig(tokenAddress: Address): Promise<BondkitTokenConfig | undefined>;
38
+ /**
39
+ * Gets a list of all Bondkit tokens deployed by this factory.
40
+ * @returns An array of token addresses.
41
+ */
42
+ getDeployedBondkitTokens(): Promise<readonly Address[]>;
43
+ /**
44
+ * Gets the owner of the factory contract.
45
+ * @returns The address of the owner.
46
+ */
47
+ getOwner(): Promise<Address | undefined>;
48
+ /**
49
+ * Gets the implementation address used for new Bondkit token clones.
50
+ * @returns The address of the BondkitToken implementation contract.
51
+ */
52
+ getBondkitTokenImplementation(): Promise<Address | undefined>;
53
+ /**
54
+ * Transfers ownership of the factory contract to a new owner.
55
+ * Requires the current owner to call this method.
56
+ * @param newOwner The address of the new owner.
57
+ * @returns A promise that resolves with the transaction hash.
58
+ */
59
+ transferOwnership(newOwner: Address): Promise<Hex | undefined>;
60
+ }
@@ -0,0 +1,3 @@
1
+ import { TradingViewProps } from "./types";
2
+ declare const TradingView: ({ className, tokenAddress, tokenSymbol }: TradingViewProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TradingView;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * CDN Configuration
3
+ * Configure your CDN URLs here
4
+ */
5
+ export declare const CDN_CONFIG: {
6
+ readonly baseUrl: string;
7
+ readonly chartingLibrary: {
8
+ readonly basePath: "/static/charting_library";
9
+ readonly files: {
10
+ readonly main: "/charting_library.js";
11
+ readonly esm: "/charting_library.esm.js";
12
+ readonly cjs: "/charting_library.cjs.js";
13
+ readonly standalone: "/charting_library.standalone.js";
14
+ readonly types: "/charting_library.d.ts";
15
+ readonly bundles: "/bundles";
16
+ };
17
+ };
18
+ readonly datafeeds: {
19
+ readonly basePath: "/static/datafeeds";
20
+ readonly udf: "/udf/src/udf-compatible-datafeed.js";
21
+ };
22
+ };
23
+ /**
24
+ * Get full CDN URL for a resource
25
+ */
26
+ export declare function getCDNUrl(path: string): string;
27
+ /**
28
+ * Get TradingView library path for widget configuration
29
+ */
30
+ export declare function getTradingViewLibraryPath(): string;
31
+ /**
32
+ * Check if CDN is enabled (useful for development)
33
+ */
34
+ export declare function isCDNEnabled(): boolean;
35
+ /**
36
+ * Check if we're using a custom CDN domain vs the default R2 URL
37
+ */
38
+ export declare function isUsingCustomDomain(): boolean;
39
+ /**
40
+ * Get library path - Always use CDN since static files are removed
41
+ */
42
+ export declare function getLibraryPath(): string;
@@ -0,0 +1,5 @@
1
+ export { default as TradingView } from "./TradingView";
2
+ export type { TradingViewProps } from "./types";
3
+ export * from "./utils/cdn-loader";
4
+ export * from "./utils/format";
5
+ export * from "./config/cdn";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * TradingView Component Types
3
+ */
4
+ export interface TradingViewProps {
5
+ className?: string;
6
+ tokenAddress?: string;
7
+ tokenSymbol?: string;
8
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Dynamic CDN Resource Loader
3
+ * Utilities for loading resources from CDN at runtime
4
+ */
5
+ /**
6
+ * Dynamically load a script from CDN
7
+ */
8
+ export declare function loadScriptFromCDN(path: string): Promise<void>;
9
+ /**
10
+ * Dynamically load CSS from CDN
11
+ */
12
+ export declare function loadStyleFromCDN(path: string): Promise<void>;
13
+ /**
14
+ * Preload resource from CDN
15
+ */
16
+ export declare function preloadFromCDN(path: string, as?: "script" | "style" | "font" | "image"): void;
17
+ /**
18
+ * Check if a CDN resource is available
19
+ */
20
+ export declare function checkCDNResource(path: string): Promise<boolean>;
21
+ /**
22
+ * Load TradingView library dynamically
23
+ */
24
+ export declare function loadTradingViewLibrary(): Promise<any>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Number formatting utilities
3
+ */
4
+ export declare function formatNumberSmall(value: number, includeSign?: boolean): string;
@@ -0,0 +1,10 @@
1
+ import type { Address } from "viem";
2
+ import { base, type Chain } from "viem/chains";
3
+ export interface Config {
4
+ chain: Chain;
5
+ rpcUrl: string;
6
+ factoryAddress: Address;
7
+ apiEndpoint: string;
8
+ }
9
+ export type SupportedChainId = typeof base.id;
10
+ export declare const getConfig: (chainId: number) => Config;
@@ -0,0 +1,3 @@
1
+ import type { Address } from "viem";
2
+ export declare const BaseBondkitTokenFactoryContractAddress: Address;
3
+ export declare const BaseMainnetRpcUrl = "https://base-rpc.publicnode.com";
@@ -0,0 +1,7 @@
1
+ export * from "./bondkitToken";
2
+ export * from "./bondkitTokenFactory";
3
+ export * from "./config";
4
+ export * from "./constants";
5
+ export * from "./types";
6
+ export * from "./abis";
7
+ export { default as TradingView } from "./components/TradingView";
@@ -0,0 +1,3 @@
1
+ import BondkitABI from "./BondkitABI.json";
2
+ import BondkitFactoryABI from "./BondkitFactoryABI.json";
3
+ export { BondkitABI, BondkitFactoryABI };