@coinbase/agentkit 0.0.0-nightly-20250328174338

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/README.md +827 -0
  2. package/dist/action-providers/across/acrossActionProvider.d.ts +50 -0
  3. package/dist/action-providers/across/acrossActionProvider.js +333 -0
  4. package/dist/action-providers/across/acrossActionProvider.test.d.ts +1 -0
  5. package/dist/action-providers/across/acrossActionProvider.test.js +391 -0
  6. package/dist/action-providers/across/constants.d.ts +1 -0
  7. package/dist/action-providers/across/constants.js +2 -0
  8. package/dist/action-providers/across/index.d.ts +1 -0
  9. package/dist/action-providers/across/index.js +17 -0
  10. package/dist/action-providers/across/schemas.d.ts +36 -0
  11. package/dist/action-providers/across/schemas.js +46 -0
  12. package/dist/action-providers/across/utils.d.ts +7 -0
  13. package/dist/action-providers/across/utils.js +25 -0
  14. package/dist/action-providers/actionDecorator.d.ts +69 -0
  15. package/dist/action-providers/actionDecorator.js +96 -0
  16. package/dist/action-providers/actionProvider.d.ts +48 -0
  17. package/dist/action-providers/actionProvider.js +62 -0
  18. package/dist/action-providers/alchemy/alchemyTokenPricesActionProvider.d.ts +55 -0
  19. package/dist/action-providers/alchemy/alchemyTokenPricesActionProvider.js +173 -0
  20. package/dist/action-providers/alchemy/alchemyTokenPricesActionProvider.test.d.ts +1 -0
  21. package/dist/action-providers/alchemy/alchemyTokenPricesActionProvider.test.js +131 -0
  22. package/dist/action-providers/alchemy/index.d.ts +2 -0
  23. package/dist/action-providers/alchemy/index.js +18 -0
  24. package/dist/action-providers/alchemy/schemas.d.ts +41 -0
  25. package/dist/action-providers/alchemy/schemas.js +34 -0
  26. package/dist/action-providers/allora/alloraActionProvider.d.ts +44 -0
  27. package/dist/action-providers/allora/alloraActionProvider.js +195 -0
  28. package/dist/action-providers/allora/alloraActionProvider.test.d.ts +1 -0
  29. package/dist/action-providers/allora/alloraActionProvider.test.js +109 -0
  30. package/dist/action-providers/allora/index.d.ts +2 -0
  31. package/dist/action-providers/allora/index.js +18 -0
  32. package/dist/action-providers/allora/schemas.d.ts +28 -0
  33. package/dist/action-providers/allora/schemas.js +30 -0
  34. package/dist/action-providers/basename/basenameActionProvider.d.ts +30 -0
  35. package/dist/action-providers/basename/basenameActionProvider.js +109 -0
  36. package/dist/action-providers/basename/basenameActionProvider.test.d.ts +1 -0
  37. package/dist/action-providers/basename/basenameActionProvider.test.js +146 -0
  38. package/dist/action-providers/basename/constants.d.ts +52 -0
  39. package/dist/action-providers/basename/constants.js +81 -0
  40. package/dist/action-providers/basename/index.d.ts +2 -0
  41. package/dist/action-providers/basename/index.js +18 -0
  42. package/dist/action-providers/basename/schemas.d.ts +14 -0
  43. package/dist/action-providers/basename/schemas.js +14 -0
  44. package/dist/action-providers/cdp/cdpApiActionProvider.d.ts +43 -0
  45. package/dist/action-providers/cdp/cdpApiActionProvider.js +128 -0
  46. package/dist/action-providers/cdp/cdpApiActionProvider.test.d.ts +1 -0
  47. package/dist/action-providers/cdp/cdpApiActionProvider.test.js +146 -0
  48. package/dist/action-providers/cdp/cdpWalletActionProvider.d.ts +58 -0
  49. package/dist/action-providers/cdp/cdpWalletActionProvider.js +224 -0
  50. package/dist/action-providers/cdp/cdpWalletActionProvider.test.d.ts +1 -0
  51. package/dist/action-providers/cdp/cdpWalletActionProvider.test.js +267 -0
  52. package/dist/action-providers/cdp/constants.d.ts +31 -0
  53. package/dist/action-providers/cdp/constants.js +34 -0
  54. package/dist/action-providers/cdp/index.d.ts +3 -0
  55. package/dist/action-providers/cdp/index.js +19 -0
  56. package/dist/action-providers/cdp/schemas.d.ts +91 -0
  57. package/dist/action-providers/cdp/schemas.js +77 -0
  58. package/dist/action-providers/compound/compoundActionProvider.d.ts +67 -0
  59. package/dist/action-providers/compound/compoundActionProvider.js +365 -0
  60. package/dist/action-providers/compound/compoundActionProvider.test.d.ts +1 -0
  61. package/dist/action-providers/compound/compoundActionProvider.test.js +353 -0
  62. package/dist/action-providers/compound/constants.d.ts +180 -0
  63. package/dist/action-providers/compound/constants.js +129 -0
  64. package/dist/action-providers/compound/index.d.ts +1 -0
  65. package/dist/action-providers/compound/index.js +17 -0
  66. package/dist/action-providers/compound/schemas.d.ts +57 -0
  67. package/dist/action-providers/compound/schemas.js +58 -0
  68. package/dist/action-providers/compound/utils.d.ts +95 -0
  69. package/dist/action-providers/compound/utils.js +353 -0
  70. package/dist/action-providers/customActionProvider.d.ts +30 -0
  71. package/dist/action-providers/customActionProvider.js +66 -0
  72. package/dist/action-providers/defillama/constants.d.ts +8 -0
  73. package/dist/action-providers/defillama/constants.js +11 -0
  74. package/dist/action-providers/defillama/defillamaActionProvider.d.ts +54 -0
  75. package/dist/action-providers/defillama/defillamaActionProvider.js +180 -0
  76. package/dist/action-providers/defillama/defillamaActionProvider.test.d.ts +1 -0
  77. package/dist/action-providers/defillama/defillamaActionProvider.test.js +114 -0
  78. package/dist/action-providers/defillama/index.d.ts +1 -0
  79. package/dist/action-providers/defillama/index.js +17 -0
  80. package/dist/action-providers/defillama/schemas.d.ts +34 -0
  81. package/dist/action-providers/defillama/schemas.js +34 -0
  82. package/dist/action-providers/defillama/types.d.ts +73 -0
  83. package/dist/action-providers/defillama/types.js +2 -0
  84. package/dist/action-providers/defillama/utils.d.ts +10 -0
  85. package/dist/action-providers/defillama/utils.js +87 -0
  86. package/dist/action-providers/defillama/utils.test.d.ts +1 -0
  87. package/dist/action-providers/defillama/utils.test.js +124 -0
  88. package/dist/action-providers/erc20/constants.d.ts +137 -0
  89. package/dist/action-providers/erc20/constants.js +202 -0
  90. package/dist/action-providers/erc20/erc20ActionProvider.d.ts +38 -0
  91. package/dist/action-providers/erc20/erc20ActionProvider.js +142 -0
  92. package/dist/action-providers/erc20/erc20ActionProvider.test.d.ts +1 -0
  93. package/dist/action-providers/erc20/erc20ActionProvider.test.js +131 -0
  94. package/dist/action-providers/erc20/index.d.ts +1 -0
  95. package/dist/action-providers/erc20/index.js +17 -0
  96. package/dist/action-providers/erc20/schemas.d.ts +27 -0
  97. package/dist/action-providers/erc20/schemas.js +26 -0
  98. package/dist/action-providers/erc721/constants.d.ts +232 -0
  99. package/dist/action-providers/erc721/constants.js +298 -0
  100. package/dist/action-providers/erc721/erc721ActionProvider.d.ts +46 -0
  101. package/dist/action-providers/erc721/erc721ActionProvider.js +164 -0
  102. package/dist/action-providers/erc721/erc721ActionProvider.test.d.ts +1 -0
  103. package/dist/action-providers/erc721/erc721ActionProvider.test.js +137 -0
  104. package/dist/action-providers/erc721/index.d.ts +1 -0
  105. package/dist/action-providers/erc721/index.js +17 -0
  106. package/dist/action-providers/erc721/schemas.d.ts +46 -0
  107. package/dist/action-providers/erc721/schemas.js +44 -0
  108. package/dist/action-providers/farcaster/farcasterActionProvider.d.ts +57 -0
  109. package/dist/action-providers/farcaster/farcasterActionProvider.js +142 -0
  110. package/dist/action-providers/farcaster/farcasterActionProvider.test.d.ts +1 -0
  111. package/dist/action-providers/farcaster/farcasterActionProvider.test.js +151 -0
  112. package/dist/action-providers/farcaster/index.d.ts +2 -0
  113. package/dist/action-providers/farcaster/index.js +18 -0
  114. package/dist/action-providers/farcaster/schemas.d.ts +15 -0
  115. package/dist/action-providers/farcaster/schemas.js +20 -0
  116. package/dist/action-providers/index.d.ts +24 -0
  117. package/dist/action-providers/index.js +40 -0
  118. package/dist/action-providers/jupiter/index.d.ts +1 -0
  119. package/dist/action-providers/jupiter/index.js +17 -0
  120. package/dist/action-providers/jupiter/jupiterActionProvider.d.ts +36 -0
  121. package/dist/action-providers/jupiter/jupiterActionProvider.js +115 -0
  122. package/dist/action-providers/jupiter/jupiterActionProvider.test.d.ts +1 -0
  123. package/dist/action-providers/jupiter/jupiterActionProvider.test.js +146 -0
  124. package/dist/action-providers/jupiter/schemas.d.ts +20 -0
  125. package/dist/action-providers/jupiter/schemas.js +20 -0
  126. package/dist/action-providers/messari/constants.d.ts +17 -0
  127. package/dist/action-providers/messari/constants.js +20 -0
  128. package/dist/action-providers/messari/index.d.ts +5 -0
  129. package/dist/action-providers/messari/index.js +21 -0
  130. package/dist/action-providers/messari/messariActionProvider.d.ts +42 -0
  131. package/dist/action-providers/messari/messariActionProvider.js +128 -0
  132. package/dist/action-providers/messari/messariActionProvider.test.d.ts +1 -0
  133. package/dist/action-providers/messari/messariActionProvider.test.js +152 -0
  134. package/dist/action-providers/messari/schemas.d.ts +11 -0
  135. package/dist/action-providers/messari/schemas.js +16 -0
  136. package/dist/action-providers/messari/types.d.ts +40 -0
  137. package/dist/action-providers/messari/types.js +2 -0
  138. package/dist/action-providers/messari/utils.d.ts +22 -0
  139. package/dist/action-providers/messari/utils.js +65 -0
  140. package/dist/action-providers/moonwell/constants.d.ts +78 -0
  141. package/dist/action-providers/moonwell/constants.js +111 -0
  142. package/dist/action-providers/moonwell/index.d.ts +1 -0
  143. package/dist/action-providers/moonwell/index.js +5 -0
  144. package/dist/action-providers/moonwell/moonwellActionProvider.d.ts +39 -0
  145. package/dist/action-providers/moonwell/moonwellActionProvider.js +249 -0
  146. package/dist/action-providers/moonwell/moonwellActionProvider.test.d.ts +1 -0
  147. package/dist/action-providers/moonwell/moonwellActionProvider.test.js +455 -0
  148. package/dist/action-providers/moonwell/schemas.d.ts +30 -0
  149. package/dist/action-providers/moonwell/schemas.js +39 -0
  150. package/dist/action-providers/morpho/constants.d.ts +16 -0
  151. package/dist/action-providers/morpho/constants.js +27 -0
  152. package/dist/action-providers/morpho/index.d.ts +2 -0
  153. package/dist/action-providers/morpho/index.js +18 -0
  154. package/dist/action-providers/morpho/morphoActionProvider.d.ts +39 -0
  155. package/dist/action-providers/morpho/morphoActionProvider.js +154 -0
  156. package/dist/action-providers/morpho/morphoActionProvider.test.d.ts +1 -0
  157. package/dist/action-providers/morpho/morphoActionProvider.test.js +128 -0
  158. package/dist/action-providers/morpho/schemas.d.ts +36 -0
  159. package/dist/action-providers/morpho/schemas.js +47 -0
  160. package/dist/action-providers/opensea/index.d.ts +1 -0
  161. package/dist/action-providers/opensea/index.js +17 -0
  162. package/dist/action-providers/opensea/openseaActionProvider.d.ts +59 -0
  163. package/dist/action-providers/opensea/openseaActionProvider.js +146 -0
  164. package/dist/action-providers/opensea/openseaActionProvider.test.d.ts +1 -0
  165. package/dist/action-providers/opensea/openseaActionProvider.test.js +201 -0
  166. package/dist/action-providers/opensea/schemas.d.ts +30 -0
  167. package/dist/action-providers/opensea/schemas.js +33 -0
  168. package/dist/action-providers/opensea/utils.d.ts +12 -0
  169. package/dist/action-providers/opensea/utils.js +47 -0
  170. package/dist/action-providers/pyth/index.d.ts +2 -0
  171. package/dist/action-providers/pyth/index.js +18 -0
  172. package/dist/action-providers/pyth/pythActionProvider.d.ts +33 -0
  173. package/dist/action-providers/pyth/pythActionProvider.js +121 -0
  174. package/dist/action-providers/pyth/pythActionProvider.test.d.ts +1 -0
  175. package/dist/action-providers/pyth/pythActionProvider.test.js +113 -0
  176. package/dist/action-providers/pyth/schemas.d.ts +21 -0
  177. package/dist/action-providers/pyth/schemas.js +20 -0
  178. package/dist/action-providers/spl/index.d.ts +1 -0
  179. package/dist/action-providers/spl/index.js +17 -0
  180. package/dist/action-providers/spl/schemas.d.ts +30 -0
  181. package/dist/action-providers/spl/schemas.js +26 -0
  182. package/dist/action-providers/spl/splActionProvider.d.ts +45 -0
  183. package/dist/action-providers/spl/splActionProvider.js +173 -0
  184. package/dist/action-providers/spl/splActionProvider.test.d.ts +1 -0
  185. package/dist/action-providers/spl/splActionProvider.test.js +300 -0
  186. package/dist/action-providers/twitter/index.d.ts +2 -0
  187. package/dist/action-providers/twitter/index.js +18 -0
  188. package/dist/action-providers/twitter/schemas.d.ts +38 -0
  189. package/dist/action-providers/twitter/schemas.js +44 -0
  190. package/dist/action-providers/twitter/twitterActionProvider.d.ts +82 -0
  191. package/dist/action-providers/twitter/twitterActionProvider.js +204 -0
  192. package/dist/action-providers/twitter/twitterActionProvider.test.d.ts +1 -0
  193. package/dist/action-providers/twitter/twitterActionProvider.test.js +185 -0
  194. package/dist/action-providers/wallet/index.d.ts +1 -0
  195. package/dist/action-providers/wallet/index.js +17 -0
  196. package/dist/action-providers/wallet/schemas.d.ts +19 -0
  197. package/dist/action-providers/wallet/schemas.js +19 -0
  198. package/dist/action-providers/wallet/walletActionProvider.d.ts +44 -0
  199. package/dist/action-providers/wallet/walletActionProvider.js +140 -0
  200. package/dist/action-providers/wallet/walletActionProvider.test.d.ts +1 -0
  201. package/dist/action-providers/wallet/walletActionProvider.test.js +194 -0
  202. package/dist/action-providers/weth/constants.d.ts +19 -0
  203. package/dist/action-providers/weth/constants.js +29 -0
  204. package/dist/action-providers/weth/index.d.ts +1 -0
  205. package/dist/action-providers/weth/index.js +17 -0
  206. package/dist/action-providers/weth/schemas.d.ts +8 -0
  207. package/dist/action-providers/weth/schemas.js +10 -0
  208. package/dist/action-providers/weth/wethActionProvider.d.ts +30 -0
  209. package/dist/action-providers/weth/wethActionProvider.js +89 -0
  210. package/dist/action-providers/weth/wethActionProvider.test.d.ts +1 -0
  211. package/dist/action-providers/weth/wethActionProvider.test.js +92 -0
  212. package/dist/action-providers/wow/constants.d.ts +15 -0
  213. package/dist/action-providers/wow/constants.js +844 -0
  214. package/dist/action-providers/wow/index.d.ts +2 -0
  215. package/dist/action-providers/wow/index.js +18 -0
  216. package/dist/action-providers/wow/schemas.d.ts +43 -0
  217. package/dist/action-providers/wow/schemas.js +47 -0
  218. package/dist/action-providers/wow/uniswap/constants.d.ts +3 -0
  219. package/dist/action-providers/wow/uniswap/constants.js +100 -0
  220. package/dist/action-providers/wow/uniswap/utils.d.ts +82 -0
  221. package/dist/action-providers/wow/uniswap/utils.js +226 -0
  222. package/dist/action-providers/wow/utils.d.ts +27 -0
  223. package/dist/action-providers/wow/utils.js +63 -0
  224. package/dist/action-providers/wow/wowActionProvider.d.ts +46 -0
  225. package/dist/action-providers/wow/wowActionProvider.js +223 -0
  226. package/dist/action-providers/wow/wowActionProvider.test.d.ts +1 -0
  227. package/dist/action-providers/wow/wowActionProvider.test.js +291 -0
  228. package/dist/agentkit.d.ts +44 -0
  229. package/dist/agentkit.js +68 -0
  230. package/dist/analytics/index.d.ts +1 -0
  231. package/dist/analytics/index.js +17 -0
  232. package/dist/analytics/sendAnalyticsEvent.d.ts +31 -0
  233. package/dist/analytics/sendAnalyticsEvent.js +52 -0
  234. package/dist/index.d.ts +4 -0
  235. package/dist/index.js +20 -0
  236. package/dist/network/index.d.ts +3 -0
  237. package/dist/network/index.js +19 -0
  238. package/dist/network/network.d.ts +20 -0
  239. package/dist/network/network.js +86 -0
  240. package/dist/network/svm.d.ts +15 -0
  241. package/dist/network/svm.js +38 -0
  242. package/dist/network/types.d.ts +17 -0
  243. package/dist/network/types.js +2 -0
  244. package/dist/utils.d.ts +22 -0
  245. package/dist/utils.js +57 -0
  246. package/dist/utils.test.d.ts +1 -0
  247. package/dist/utils.test.js +50 -0
  248. package/dist/wallet-providers/cdpWalletProvider.d.ts +246 -0
  249. package/dist/wallet-providers/cdpWalletProvider.js +421 -0
  250. package/dist/wallet-providers/cdpWalletProvider.test.d.ts +1 -0
  251. package/dist/wallet-providers/cdpWalletProvider.test.js +701 -0
  252. package/dist/wallet-providers/evmWalletProvider.d.ts +51 -0
  253. package/dist/wallet-providers/evmWalletProvider.js +14 -0
  254. package/dist/wallet-providers/evmWalletProvider.test.d.ts +1 -0
  255. package/dist/wallet-providers/evmWalletProvider.test.js +56 -0
  256. package/dist/wallet-providers/index.d.ts +10 -0
  257. package/dist/wallet-providers/index.js +26 -0
  258. package/dist/wallet-providers/privyEvmWalletProvider.d.ts +55 -0
  259. package/dist/wallet-providers/privyEvmWalletProvider.js +140 -0
  260. package/dist/wallet-providers/privyEvmWalletProvider.test.d.ts +1 -0
  261. package/dist/wallet-providers/privyEvmWalletProvider.test.js +331 -0
  262. package/dist/wallet-providers/privyShared.d.ts +40 -0
  263. package/dist/wallet-providers/privyShared.js +49 -0
  264. package/dist/wallet-providers/privySvmWalletProvider.d.ts +128 -0
  265. package/dist/wallet-providers/privySvmWalletProvider.js +212 -0
  266. package/dist/wallet-providers/privySvmWalletProvider.test.d.ts +1 -0
  267. package/dist/wallet-providers/privySvmWalletProvider.test.js +310 -0
  268. package/dist/wallet-providers/privyWalletProvider.d.ts +35 -0
  269. package/dist/wallet-providers/privyWalletProvider.js +39 -0
  270. package/dist/wallet-providers/privyWalletProvider.test.d.ts +1 -0
  271. package/dist/wallet-providers/privyWalletProvider.test.js +124 -0
  272. package/dist/wallet-providers/smartWalletProvider.d.ts +177 -0
  273. package/dist/wallet-providers/smartWalletProvider.js +303 -0
  274. package/dist/wallet-providers/smartWalletProvider.test.d.ts +1 -0
  275. package/dist/wallet-providers/smartWalletProvider.test.js +388 -0
  276. package/dist/wallet-providers/solanaKeypairWalletProvider.d.ts +143 -0
  277. package/dist/wallet-providers/solanaKeypairWalletProvider.js +280 -0
  278. package/dist/wallet-providers/solanaKeypairWalletProvider.test.d.ts +1 -0
  279. package/dist/wallet-providers/solanaKeypairWalletProvider.test.js +218 -0
  280. package/dist/wallet-providers/svmWalletProvider.d.ts +56 -0
  281. package/dist/wallet-providers/svmWalletProvider.js +13 -0
  282. package/dist/wallet-providers/svmWalletProvider.test.d.ts +1 -0
  283. package/dist/wallet-providers/svmWalletProvider.test.js +55 -0
  284. package/dist/wallet-providers/viemWalletProvider.d.ts +103 -0
  285. package/dist/wallet-providers/viemWalletProvider.js +206 -0
  286. package/dist/wallet-providers/viemWalletProvider.test.d.ts +1 -0
  287. package/dist/wallet-providers/viemWalletProvider.test.js +338 -0
  288. package/dist/wallet-providers/walletProvider.d.ts +48 -0
  289. package/dist/wallet-providers/walletProvider.js +41 -0
  290. package/dist/wallet-providers/walletProvider.test.d.ts +1 -0
  291. package/dist/wallet-providers/walletProvider.test.js +103 -0
  292. package/package.json +83 -0
@@ -0,0 +1,844 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GENERIC_TOKEN_METADATA_URI = exports.ADDRESSES = exports.WOW_FACTORY_CONTRACT_ADDRESSES = exports.WOW_ABI = exports.WOW_FACTORY_ABI = exports.SUPPORTED_NETWORKS = void 0;
4
+ exports.getFactoryAddress = getFactoryAddress;
5
+ exports.SUPPORTED_NETWORKS = ["base-mainnet", "base-sepolia"];
6
+ exports.WOW_FACTORY_ABI = [
7
+ {
8
+ type: "constructor",
9
+ inputs: [
10
+ { name: "_tokenImplementation", type: "address", internalType: "address" },
11
+ { name: "_bondingCurve", type: "address", internalType: "address" },
12
+ ],
13
+ stateMutability: "nonpayable",
14
+ },
15
+ {
16
+ type: "function",
17
+ name: "UPGRADE_INTERFACE_VERSION",
18
+ inputs: [],
19
+ outputs: [{ name: "", type: "string", internalType: "string" }],
20
+ stateMutability: "view",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "bondingCurve",
25
+ inputs: [],
26
+ outputs: [{ name: "", type: "address", internalType: "address" }],
27
+ stateMutability: "view",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "deploy",
32
+ inputs: [
33
+ { name: "_tokenCreator", type: "address", internalType: "address" },
34
+ { name: "_platformReferrer", type: "address", internalType: "address" },
35
+ { name: "_tokenURI", type: "string", internalType: "string" },
36
+ { name: "_name", type: "string", internalType: "string" },
37
+ { name: "_symbol", type: "string", internalType: "string" },
38
+ ],
39
+ outputs: [{ name: "", type: "address", internalType: "address" }],
40
+ stateMutability: "payable",
41
+ },
42
+ {
43
+ type: "function",
44
+ name: "implementation",
45
+ inputs: [],
46
+ outputs: [{ name: "", type: "address", internalType: "address" }],
47
+ stateMutability: "view",
48
+ },
49
+ {
50
+ type: "function",
51
+ name: "initialize",
52
+ inputs: [{ name: "_owner", type: "address", internalType: "address" }],
53
+ outputs: [],
54
+ stateMutability: "nonpayable",
55
+ },
56
+ {
57
+ type: "function",
58
+ name: "owner",
59
+ inputs: [],
60
+ outputs: [{ name: "", type: "address", internalType: "address" }],
61
+ stateMutability: "view",
62
+ },
63
+ {
64
+ type: "function",
65
+ name: "proxiableUUID",
66
+ inputs: [],
67
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
68
+ stateMutability: "view",
69
+ },
70
+ {
71
+ type: "function",
72
+ name: "renounceOwnership",
73
+ inputs: [],
74
+ outputs: [],
75
+ stateMutability: "nonpayable",
76
+ },
77
+ {
78
+ type: "function",
79
+ name: "tokenImplementation",
80
+ inputs: [],
81
+ outputs: [{ name: "", type: "address", internalType: "address" }],
82
+ stateMutability: "view",
83
+ },
84
+ {
85
+ type: "function",
86
+ name: "transferOwnership",
87
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
88
+ outputs: [],
89
+ stateMutability: "nonpayable",
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "upgradeToAndCall",
94
+ inputs: [
95
+ { name: "newImplementation", type: "address", internalType: "address" },
96
+ { name: "data", type: "bytes", internalType: "bytes" },
97
+ ],
98
+ outputs: [],
99
+ stateMutability: "payable",
100
+ },
101
+ {
102
+ type: "event",
103
+ name: "Initialized",
104
+ inputs: [{ name: "version", type: "uint64", indexed: false, internalType: "uint64" }],
105
+ anonymous: false,
106
+ },
107
+ {
108
+ type: "event",
109
+ name: "OwnershipTransferred",
110
+ inputs: [
111
+ { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
112
+ { name: "newOwner", type: "address", indexed: true, internalType: "address" },
113
+ ],
114
+ anonymous: false,
115
+ },
116
+ {
117
+ type: "event",
118
+ name: "Upgraded",
119
+ inputs: [{ name: "implementation", type: "address", indexed: true, internalType: "address" }],
120
+ anonymous: false,
121
+ },
122
+ {
123
+ type: "error",
124
+ name: "AddressEmptyCode",
125
+ inputs: [{ name: "target", type: "address", internalType: "address" }],
126
+ },
127
+ { type: "error", name: "ERC1167FailedCreateClone", inputs: [] },
128
+ {
129
+ type: "error",
130
+ name: "ERC1967InvalidImplementation",
131
+ inputs: [{ name: "implementation", type: "address", internalType: "address" }],
132
+ },
133
+ { type: "error", name: "ERC1967NonPayable", inputs: [] },
134
+ { type: "error", name: "FailedInnerCall", inputs: [] },
135
+ { type: "error", name: "InvalidInitialization", inputs: [] },
136
+ { type: "error", name: "NotInitializing", inputs: [] },
137
+ {
138
+ type: "error",
139
+ name: "OwnableInvalidOwner",
140
+ inputs: [{ name: "owner", type: "address", internalType: "address" }],
141
+ },
142
+ {
143
+ type: "error",
144
+ name: "OwnableUnauthorizedAccount",
145
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
146
+ },
147
+ { type: "error", name: "ReentrancyGuardReentrantCall", inputs: [] },
148
+ { type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] },
149
+ {
150
+ type: "error",
151
+ name: "UUPSUnsupportedProxiableUUID",
152
+ inputs: [{ name: "slot", type: "bytes32", internalType: "bytes32" }],
153
+ },
154
+ ];
155
+ exports.WOW_ABI = [
156
+ {
157
+ inputs: [
158
+ { internalType: "address", name: "_protocolFeeRecipient", type: "address" },
159
+ { internalType: "address", name: "_protocolRewards", type: "address" },
160
+ { internalType: "address", name: "_weth", type: "address" },
161
+ { internalType: "address", name: "_nonfungiblePositionManager", type: "address" },
162
+ { internalType: "address", name: "_swapRouter", type: "address" },
163
+ ],
164
+ stateMutability: "nonpayable",
165
+ type: "constructor",
166
+ },
167
+ {
168
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
169
+ name: "AddressEmptyCode",
170
+ type: "error",
171
+ },
172
+ {
173
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
174
+ name: "AddressInsufficientBalance",
175
+ type: "error",
176
+ },
177
+ { inputs: [], name: "AddressZero", type: "error" },
178
+ {
179
+ inputs: [
180
+ { internalType: "address", name: "spender", type: "address" },
181
+ { internalType: "uint256", name: "allowance", type: "uint256" },
182
+ { internalType: "uint256", name: "needed", type: "uint256" },
183
+ ],
184
+ name: "ERC20InsufficientAllowance",
185
+ type: "error",
186
+ },
187
+ {
188
+ inputs: [
189
+ { internalType: "address", name: "sender", type: "address" },
190
+ { internalType: "uint256", name: "balance", type: "uint256" },
191
+ { internalType: "uint256", name: "needed", type: "uint256" },
192
+ ],
193
+ name: "ERC20InsufficientBalance",
194
+ type: "error",
195
+ },
196
+ {
197
+ inputs: [{ internalType: "address", name: "approver", type: "address" }],
198
+ name: "ERC20InvalidApprover",
199
+ type: "error",
200
+ },
201
+ {
202
+ inputs: [{ internalType: "address", name: "receiver", type: "address" }],
203
+ name: "ERC20InvalidReceiver",
204
+ type: "error",
205
+ },
206
+ {
207
+ inputs: [{ internalType: "address", name: "sender", type: "address" }],
208
+ name: "ERC20InvalidSender",
209
+ type: "error",
210
+ },
211
+ {
212
+ inputs: [{ internalType: "address", name: "spender", type: "address" }],
213
+ name: "ERC20InvalidSpender",
214
+ type: "error",
215
+ },
216
+ { inputs: [], name: "EthAmountTooSmall", type: "error" },
217
+ { inputs: [], name: "EthTransferFailed", type: "error" },
218
+ { inputs: [], name: "FailedInnerCall", type: "error" },
219
+ { inputs: [], name: "InitialOrderSizeTooLarge", type: "error" },
220
+ { inputs: [], name: "InsufficientFunds", type: "error" },
221
+ { inputs: [], name: "InsufficientLiquidity", type: "error" },
222
+ { inputs: [], name: "InvalidInitialization", type: "error" },
223
+ { inputs: [], name: "InvalidMarketType", type: "error" },
224
+ { inputs: [], name: "MarketAlreadyGraduated", type: "error" },
225
+ { inputs: [], name: "MarketNotGraduated", type: "error" },
226
+ { inputs: [], name: "NotInitializing", type: "error" },
227
+ { inputs: [], name: "OnlyPool", type: "error" },
228
+ { inputs: [], name: "OnlyWeth", type: "error" },
229
+ { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
230
+ {
231
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
232
+ name: "SafeERC20FailedOperation",
233
+ type: "error",
234
+ },
235
+ { inputs: [], name: "SlippageBoundsExceeded", type: "error" },
236
+ {
237
+ anonymous: false,
238
+ inputs: [
239
+ { indexed: true, internalType: "address", name: "owner", type: "address" },
240
+ { indexed: true, internalType: "address", name: "spender", type: "address" },
241
+ { indexed: false, internalType: "uint256", name: "value", type: "uint256" },
242
+ ],
243
+ name: "Approval",
244
+ type: "event",
245
+ },
246
+ {
247
+ anonymous: false,
248
+ inputs: [{ indexed: false, internalType: "uint64", name: "version", type: "uint64" }],
249
+ name: "Initialized",
250
+ type: "event",
251
+ },
252
+ {
253
+ anonymous: false,
254
+ inputs: [
255
+ { indexed: true, internalType: "address", name: "from", type: "address" },
256
+ { indexed: true, internalType: "address", name: "to", type: "address" },
257
+ { indexed: false, internalType: "uint256", name: "value", type: "uint256" },
258
+ ],
259
+ name: "Transfer",
260
+ type: "event",
261
+ },
262
+ {
263
+ anonymous: false,
264
+ inputs: [
265
+ { indexed: true, internalType: "address", name: "tokenAddress", type: "address" },
266
+ { indexed: true, internalType: "address", name: "poolAddress", type: "address" },
267
+ {
268
+ indexed: false,
269
+ internalType: "uint256",
270
+ name: "totalEthLiquidity",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ indexed: false,
275
+ internalType: "uint256",
276
+ name: "totalTokenLiquidity",
277
+ type: "uint256",
278
+ },
279
+ {
280
+ indexed: false,
281
+ internalType: "uint256",
282
+ name: "lpPositionId",
283
+ type: "uint256",
284
+ },
285
+ {
286
+ indexed: false,
287
+ internalType: "enum IWow.MarketType",
288
+ name: "marketType",
289
+ type: "uint8",
290
+ },
291
+ ],
292
+ name: "WowMarketGraduated",
293
+ type: "event",
294
+ },
295
+ {
296
+ anonymous: false,
297
+ inputs: [
298
+ { indexed: true, internalType: "address", name: "buyer", type: "address" },
299
+ { indexed: true, internalType: "address", name: "recipient", type: "address" },
300
+ {
301
+ indexed: true,
302
+ internalType: "address",
303
+ name: "orderReferrer",
304
+ type: "address",
305
+ },
306
+ { indexed: false, internalType: "uint256", name: "totalEth", type: "uint256" },
307
+ { indexed: false, internalType: "uint256", name: "ethFee", type: "uint256" },
308
+ { indexed: false, internalType: "uint256", name: "ethSold", type: "uint256" },
309
+ {
310
+ indexed: false,
311
+ internalType: "uint256",
312
+ name: "tokensBought",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ indexed: false,
317
+ internalType: "uint256",
318
+ name: "buyerTokenBalance",
319
+ type: "uint256",
320
+ },
321
+ { indexed: false, internalType: "string", name: "comment", type: "string" },
322
+ {
323
+ indexed: false,
324
+ internalType: "enum IWow.MarketType",
325
+ name: "marketType",
326
+ type: "uint8",
327
+ },
328
+ ],
329
+ name: "WowTokenBuy",
330
+ type: "event",
331
+ },
332
+ {
333
+ anonymous: false,
334
+ inputs: [
335
+ {
336
+ indexed: true,
337
+ internalType: "address",
338
+ name: "factoryAddress",
339
+ type: "address",
340
+ },
341
+ { indexed: true, internalType: "address", name: "tokenCreator", type: "address" },
342
+ {
343
+ indexed: false,
344
+ internalType: "address",
345
+ name: "platformReferrer",
346
+ type: "address",
347
+ },
348
+ {
349
+ indexed: false,
350
+ internalType: "address",
351
+ name: "protocolFeeRecipient",
352
+ type: "address",
353
+ },
354
+ {
355
+ indexed: false,
356
+ internalType: "address",
357
+ name: "bondingCurve",
358
+ type: "address",
359
+ },
360
+ { indexed: false, internalType: "string", name: "tokenURI", type: "string" },
361
+ { indexed: false, internalType: "string", name: "name", type: "string" },
362
+ { indexed: false, internalType: "string", name: "symbol", type: "string" },
363
+ {
364
+ indexed: false,
365
+ internalType: "address",
366
+ name: "tokenAddress",
367
+ type: "address",
368
+ },
369
+ { indexed: false, internalType: "address", name: "poolAddress", type: "address" },
370
+ ],
371
+ name: "WowTokenCreated",
372
+ type: "event",
373
+ },
374
+ {
375
+ anonymous: false,
376
+ inputs: [
377
+ { indexed: true, internalType: "address", name: "tokenCreator", type: "address" },
378
+ {
379
+ indexed: true,
380
+ internalType: "address",
381
+ name: "platformReferrer",
382
+ type: "address",
383
+ },
384
+ {
385
+ indexed: true,
386
+ internalType: "address",
387
+ name: "orderReferrer",
388
+ type: "address",
389
+ },
390
+ {
391
+ indexed: false,
392
+ internalType: "address",
393
+ name: "protocolFeeRecipient",
394
+ type: "address",
395
+ },
396
+ {
397
+ indexed: false,
398
+ internalType: "uint256",
399
+ name: "tokenCreatorFee",
400
+ type: "uint256",
401
+ },
402
+ {
403
+ indexed: false,
404
+ internalType: "uint256",
405
+ name: "platformReferrerFee",
406
+ type: "uint256",
407
+ },
408
+ {
409
+ indexed: false,
410
+ internalType: "uint256",
411
+ name: "orderReferrerFee",
412
+ type: "uint256",
413
+ },
414
+ { indexed: false, internalType: "uint256", name: "protocolFee", type: "uint256" },
415
+ ],
416
+ name: "WowTokenFees",
417
+ type: "event",
418
+ },
419
+ {
420
+ anonymous: false,
421
+ inputs: [
422
+ { indexed: true, internalType: "address", name: "seller", type: "address" },
423
+ { indexed: true, internalType: "address", name: "recipient", type: "address" },
424
+ {
425
+ indexed: true,
426
+ internalType: "address",
427
+ name: "orderReferrer",
428
+ type: "address",
429
+ },
430
+ { indexed: false, internalType: "uint256", name: "totalEth", type: "uint256" },
431
+ { indexed: false, internalType: "uint256", name: "ethFee", type: "uint256" },
432
+ { indexed: false, internalType: "uint256", name: "ethBought", type: "uint256" },
433
+ { indexed: false, internalType: "uint256", name: "tokensSold", type: "uint256" },
434
+ {
435
+ indexed: false,
436
+ internalType: "uint256",
437
+ name: "sellerTokenBalance",
438
+ type: "uint256",
439
+ },
440
+ { indexed: false, internalType: "string", name: "comment", type: "string" },
441
+ {
442
+ indexed: false,
443
+ internalType: "enum IWow.MarketType",
444
+ name: "marketType",
445
+ type: "uint8",
446
+ },
447
+ ],
448
+ name: "WowTokenSell",
449
+ type: "event",
450
+ },
451
+ {
452
+ anonymous: false,
453
+ inputs: [
454
+ { indexed: true, internalType: "address", name: "from", type: "address" },
455
+ { indexed: true, internalType: "address", name: "to", type: "address" },
456
+ { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
457
+ {
458
+ indexed: false,
459
+ internalType: "uint256",
460
+ name: "fromTokenBalance",
461
+ type: "uint256",
462
+ },
463
+ {
464
+ indexed: false,
465
+ internalType: "uint256",
466
+ name: "toTokenBalance",
467
+ type: "uint256",
468
+ },
469
+ { indexed: false, internalType: "uint256", name: "totalSupply", type: "uint256" },
470
+ ],
471
+ name: "WowTokenTransfer",
472
+ type: "event",
473
+ },
474
+ {
475
+ inputs: [],
476
+ name: "MAX_TOTAL_SUPPLY",
477
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
478
+ stateMutability: "view",
479
+ type: "function",
480
+ },
481
+ {
482
+ inputs: [],
483
+ name: "MIN_ORDER_SIZE",
484
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
485
+ stateMutability: "view",
486
+ type: "function",
487
+ },
488
+ {
489
+ inputs: [],
490
+ name: "ORDER_REFERRER_FEE_BPS",
491
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
492
+ stateMutability: "view",
493
+ type: "function",
494
+ },
495
+ {
496
+ inputs: [],
497
+ name: "PLATFORM_REFERRER_FEE_BPS",
498
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
499
+ stateMutability: "view",
500
+ type: "function",
501
+ },
502
+ {
503
+ inputs: [],
504
+ name: "PROTOCOL_FEE_BPS",
505
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
506
+ stateMutability: "view",
507
+ type: "function",
508
+ },
509
+ {
510
+ inputs: [],
511
+ name: "TOKEN_CREATOR_FEE_BPS",
512
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
513
+ stateMutability: "view",
514
+ type: "function",
515
+ },
516
+ {
517
+ inputs: [],
518
+ name: "TOTAL_FEE_BPS",
519
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
520
+ stateMutability: "view",
521
+ type: "function",
522
+ },
523
+ {
524
+ inputs: [],
525
+ name: "WETH",
526
+ outputs: [{ internalType: "address", name: "", type: "address" }],
527
+ stateMutability: "view",
528
+ type: "function",
529
+ },
530
+ {
531
+ inputs: [
532
+ { internalType: "address", name: "owner", type: "address" },
533
+ { internalType: "address", name: "spender", type: "address" },
534
+ ],
535
+ name: "allowance",
536
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
537
+ stateMutability: "view",
538
+ type: "function",
539
+ },
540
+ {
541
+ inputs: [
542
+ { internalType: "address", name: "spender", type: "address" },
543
+ { internalType: "uint256", name: "value", type: "uint256" },
544
+ ],
545
+ name: "approve",
546
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
547
+ stateMutability: "nonpayable",
548
+ type: "function",
549
+ },
550
+ {
551
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
552
+ name: "balanceOf",
553
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
554
+ stateMutability: "view",
555
+ type: "function",
556
+ },
557
+ {
558
+ inputs: [],
559
+ name: "bondingCurve",
560
+ outputs: [{ internalType: "contract BondingCurve", name: "", type: "address" }],
561
+ stateMutability: "view",
562
+ type: "function",
563
+ },
564
+ {
565
+ inputs: [{ internalType: "uint256", name: "tokensToBurn", type: "uint256" }],
566
+ name: "burn",
567
+ outputs: [],
568
+ stateMutability: "nonpayable",
569
+ type: "function",
570
+ },
571
+ {
572
+ inputs: [
573
+ { internalType: "address", name: "recipient", type: "address" },
574
+ { internalType: "address", name: "refundRecipient", type: "address" },
575
+ { internalType: "address", name: "orderReferrer", type: "address" },
576
+ { internalType: "string", name: "comment", type: "string" },
577
+ { internalType: "enum IWow.MarketType", name: "expectedMarketType", type: "uint8" },
578
+ { internalType: "uint256", name: "minOrderSize", type: "uint256" },
579
+ { internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" },
580
+ ],
581
+ name: "buy",
582
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
583
+ stateMutability: "payable",
584
+ type: "function",
585
+ },
586
+ {
587
+ inputs: [],
588
+ name: "currentExchangeRate",
589
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
590
+ stateMutability: "view",
591
+ type: "function",
592
+ },
593
+ {
594
+ inputs: [],
595
+ name: "decimals",
596
+ outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
597
+ stateMutability: "view",
598
+ type: "function",
599
+ },
600
+ {
601
+ inputs: [{ internalType: "uint256", name: "ethOrderSize", type: "uint256" }],
602
+ name: "getEthBuyQuote",
603
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
604
+ stateMutability: "view",
605
+ type: "function",
606
+ },
607
+ {
608
+ inputs: [{ internalType: "uint256", name: "ethOrderSize", type: "uint256" }],
609
+ name: "getEthSellQuote",
610
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
611
+ stateMutability: "view",
612
+ type: "function",
613
+ },
614
+ {
615
+ inputs: [{ internalType: "uint256", name: "tokenOrderSize", type: "uint256" }],
616
+ name: "getTokenBuyQuote",
617
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [{ internalType: "uint256", name: "tokenOrderSize", type: "uint256" }],
623
+ name: "getTokenSellQuote",
624
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
625
+ stateMutability: "view",
626
+ type: "function",
627
+ },
628
+ {
629
+ inputs: [
630
+ { internalType: "address", name: "_tokenCreator", type: "address" },
631
+ { internalType: "address", name: "_platformReferrer", type: "address" },
632
+ { internalType: "address", name: "_bondingCurve", type: "address" },
633
+ { internalType: "string", name: "_tokenURI", type: "string" },
634
+ { internalType: "string", name: "_name", type: "string" },
635
+ { internalType: "string", name: "_symbol", type: "string" },
636
+ ],
637
+ name: "initialize",
638
+ outputs: [],
639
+ stateMutability: "payable",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [],
644
+ name: "marketType",
645
+ outputs: [{ internalType: "enum IWow.MarketType", name: "", type: "uint8" }],
646
+ stateMutability: "view",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [],
651
+ name: "name",
652
+ outputs: [{ internalType: "string", name: "", type: "string" }],
653
+ stateMutability: "view",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [],
658
+ name: "nonfungiblePositionManager",
659
+ outputs: [{ internalType: "address", name: "", type: "address" }],
660
+ stateMutability: "view",
661
+ type: "function",
662
+ },
663
+ {
664
+ inputs: [
665
+ { internalType: "address", name: "", type: "address" },
666
+ { internalType: "address", name: "", type: "address" },
667
+ { internalType: "uint256", name: "", type: "uint256" },
668
+ { internalType: "bytes", name: "", type: "bytes" },
669
+ ],
670
+ name: "onERC721Received",
671
+ outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
672
+ stateMutability: "view",
673
+ type: "function",
674
+ },
675
+ {
676
+ inputs: [],
677
+ name: "platformReferrer",
678
+ outputs: [{ internalType: "address", name: "", type: "address" }],
679
+ stateMutability: "view",
680
+ type: "function",
681
+ },
682
+ {
683
+ inputs: [],
684
+ name: "poolAddress",
685
+ outputs: [{ internalType: "address", name: "", type: "address" }],
686
+ stateMutability: "view",
687
+ type: "function",
688
+ },
689
+ {
690
+ inputs: [],
691
+ name: "protocolFeeRecipient",
692
+ outputs: [{ internalType: "address", name: "", type: "address" }],
693
+ stateMutability: "view",
694
+ type: "function",
695
+ },
696
+ {
697
+ inputs: [],
698
+ name: "protocolRewards",
699
+ outputs: [{ internalType: "address", name: "", type: "address" }],
700
+ stateMutability: "view",
701
+ type: "function",
702
+ },
703
+ {
704
+ inputs: [
705
+ { internalType: "uint256", name: "tokensToSell", type: "uint256" },
706
+ { internalType: "address", name: "recipient", type: "address" },
707
+ { internalType: "address", name: "orderReferrer", type: "address" },
708
+ { internalType: "string", name: "comment", type: "string" },
709
+ { internalType: "enum IWow.MarketType", name: "expectedMarketType", type: "uint8" },
710
+ { internalType: "uint256", name: "minPayoutSize", type: "uint256" },
711
+ { internalType: "uint160", name: "sqrtPriceLimitX96", type: "uint160" },
712
+ ],
713
+ name: "sell",
714
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
715
+ stateMutability: "nonpayable",
716
+ type: "function",
717
+ },
718
+ {
719
+ inputs: [],
720
+ name: "state",
721
+ outputs: [
722
+ {
723
+ components: [
724
+ { internalType: "enum IWow.MarketType", name: "marketType", type: "uint8" },
725
+ { internalType: "address", name: "marketAddress", type: "address" },
726
+ ],
727
+ internalType: "struct IWow.MarketState",
728
+ name: "",
729
+ type: "tuple",
730
+ },
731
+ ],
732
+ stateMutability: "view",
733
+ type: "function",
734
+ },
735
+ {
736
+ inputs: [],
737
+ name: "swapRouter",
738
+ outputs: [{ internalType: "address", name: "", type: "address" }],
739
+ stateMutability: "view",
740
+ type: "function",
741
+ },
742
+ {
743
+ inputs: [],
744
+ name: "symbol",
745
+ outputs: [{ internalType: "string", name: "", type: "string" }],
746
+ stateMutability: "view",
747
+ type: "function",
748
+ },
749
+ {
750
+ inputs: [],
751
+ name: "tokenCreator",
752
+ outputs: [{ internalType: "address", name: "", type: "address" }],
753
+ stateMutability: "view",
754
+ type: "function",
755
+ },
756
+ {
757
+ inputs: [],
758
+ name: "tokenURI",
759
+ outputs: [{ internalType: "string", name: "", type: "string" }],
760
+ stateMutability: "view",
761
+ type: "function",
762
+ },
763
+ {
764
+ inputs: [],
765
+ name: "totalSupply",
766
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
767
+ stateMutability: "view",
768
+ type: "function",
769
+ },
770
+ {
771
+ inputs: [
772
+ { internalType: "address", name: "to", type: "address" },
773
+ { internalType: "uint256", name: "value", type: "uint256" },
774
+ ],
775
+ name: "transfer",
776
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
777
+ stateMutability: "nonpayable",
778
+ type: "function",
779
+ },
780
+ {
781
+ inputs: [
782
+ { internalType: "address", name: "from", type: "address" },
783
+ { internalType: "address", name: "to", type: "address" },
784
+ { internalType: "uint256", name: "value", type: "uint256" },
785
+ ],
786
+ name: "transferFrom",
787
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
788
+ stateMutability: "nonpayable",
789
+ type: "function",
790
+ },
791
+ {
792
+ inputs: [
793
+ { internalType: "int256", name: "amount0Delta", type: "int256" },
794
+ { internalType: "int256", name: "amount1Delta", type: "int256" },
795
+ { internalType: "bytes", name: "", type: "bytes" },
796
+ ],
797
+ name: "uniswapV3SwapCallback",
798
+ outputs: [],
799
+ stateMutability: "nonpayable",
800
+ type: "function",
801
+ },
802
+ { stateMutability: "payable", type: "receive" },
803
+ ];
804
+ exports.WOW_FACTORY_CONTRACT_ADDRESSES = {
805
+ "base-sepolia": "0x04870e22fa217Cb16aa00501D7D5253B8838C1eA",
806
+ "base-mainnet": "0x997020E5F59cCB79C74D527Be492Cc610CB9fA2B",
807
+ };
808
+ exports.ADDRESSES = {
809
+ "base-sepolia": {
810
+ WowFactory: "0xB09c0b1b18369Ef62e896D5a49Af8d65EFa0A404",
811
+ WowFactoryImpl: "0xB522291f22FE7FA45D56797F7A685D5c637Edc32",
812
+ Wow: "0x15ba66e376856F3F6FE53dE9eeAb10dEF10E8C92",
813
+ BondingCurve: "0xCE00c75B9807A2aA87B2297cA7Dc1C0190137D6F",
814
+ NonfungiblePositionManager: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
815
+ SwapRouter02: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
816
+ WETH: "0x4200000000000000000000000000000000000006",
817
+ UniswapQuoter: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
818
+ },
819
+ "base-mainnet": {
820
+ WowFactory: "0xA06262157905913f855573f53AD48DE2D4ba1F4A",
821
+ WowFactoryImpl: "0xe4c17055048aEe01D0d122804816fEe5E6ac4A67",
822
+ Wow: "0x293997C6a1f2A1cA3aB971f548c4D95585E46282",
823
+ BondingCurve: "0x264ece5D58A576cc775B719bf182F2946076bE78",
824
+ NonfungiblePositionManager: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
825
+ SwapRouter02: "0x2626664c2603336E57B271c5C0b26F421741e481",
826
+ WETH: "0x4200000000000000000000000000000000000006",
827
+ UniswapQuoter: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
828
+ },
829
+ };
830
+ exports.GENERIC_TOKEN_METADATA_URI = "ipfs://QmY1GqprFYvojCcUEKgqHeDj9uhZD9jmYGrQTfA9vAE78J";
831
+ /**
832
+ * Gets the Zora Wow ERC20 Factory contract address for the specified network.
833
+ *
834
+ * @param network - The network ID to get the contract address for
835
+ * @returns The contract address for the specified network
836
+ * @throws Error if the specified network is not supported
837
+ */
838
+ function getFactoryAddress(network) {
839
+ const normalizedNetwork = network.toLowerCase();
840
+ if (!(normalizedNetwork in exports.WOW_FACTORY_CONTRACT_ADDRESSES)) {
841
+ throw new Error(`Invalid network: ${network}. Valid networks are: ${Object.keys(exports.WOW_FACTORY_CONTRACT_ADDRESSES).join(", ")}`);
842
+ }
843
+ return exports.WOW_FACTORY_CONTRACT_ADDRESSES[normalizedNetwork];
844
+ }