@whetstone-research/doppler-sdk 0.0.23 → 1.0.0

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 (425) hide show
  1. package/README.md +556 -229
  2. package/dist/chunk-3LTCKCJC.js +319 -0
  3. package/dist/chunk-3LTCKCJC.js.map +1 -0
  4. package/dist/chunk-PZ5AY32C.js +9 -0
  5. package/dist/{chunk-3PNCB4W5.js.map → chunk-PZ5AY32C.js.map} +1 -1
  6. package/dist/chunk-RO6R66OM.js +974 -0
  7. package/dist/chunk-RO6R66OM.js.map +1 -0
  8. package/dist/evm/index.d.ts +8533 -0
  9. package/dist/evm/index.js +15055 -0
  10. package/dist/evm/index.js.map +1 -0
  11. package/dist/oracle-BSvZ6pxp.d.ts +820 -0
  12. package/dist/pda-RVIHNLRP.js +4 -0
  13. package/dist/pda-RVIHNLRP.js.map +1 -0
  14. package/dist/solana/index.d.ts +2495 -0
  15. package/dist/solana/index.js +2209 -0
  16. package/dist/solana/index.js.map +1 -0
  17. package/dist/solana/react/index.d.ts +1046 -0
  18. package/dist/solana/react/index.js +1436 -0
  19. package/dist/solana/react/index.js.map +1 -0
  20. package/package.json +37 -21
  21. package/dist/DopplerSDK.d.mts +0 -94
  22. package/dist/DopplerSDK.d.ts +0 -94
  23. package/dist/DopplerSDK.js +0 -51
  24. package/dist/DopplerSDK.js.map +0 -1
  25. package/dist/DopplerSDK.mjs +0 -42
  26. package/dist/DopplerSDK.mjs.map +0 -1
  27. package/dist/abis/bytecodes/derc20.d.mts +0 -3
  28. package/dist/abis/bytecodes/derc20.d.ts +0 -3
  29. package/dist/abis/bytecodes/derc20.js +0 -9
  30. package/dist/abis/bytecodes/derc20.js.map +0 -1
  31. package/dist/abis/bytecodes/derc20.mjs +0 -3
  32. package/dist/abis/bytecodes/derc20.mjs.map +0 -1
  33. package/dist/abis/bytecodes/derc2080.d.mts +0 -3
  34. package/dist/abis/bytecodes/derc2080.d.ts +0 -3
  35. package/dist/abis/bytecodes/derc2080.js +0 -9
  36. package/dist/abis/bytecodes/derc2080.js.map +0 -1
  37. package/dist/abis/bytecodes/derc2080.mjs +0 -3
  38. package/dist/abis/bytecodes/derc2080.mjs.map +0 -1
  39. package/dist/abis/bytecodes/doppler.d.mts +0 -3
  40. package/dist/abis/bytecodes/doppler.d.ts +0 -3
  41. package/dist/abis/bytecodes/doppler.js +0 -9
  42. package/dist/abis/bytecodes/doppler.js.map +0 -1
  43. package/dist/abis/bytecodes/doppler.mjs +0 -3
  44. package/dist/abis/bytecodes/doppler.mjs.map +0 -1
  45. package/dist/abis/bytecodes/dopplerDN404.d.mts +0 -3
  46. package/dist/abis/bytecodes/dopplerDN404.d.ts +0 -3
  47. package/dist/abis/bytecodes/dopplerDN404.js +0 -9
  48. package/dist/abis/bytecodes/dopplerDN404.js.map +0 -1
  49. package/dist/abis/bytecodes/dopplerDN404.mjs +0 -3
  50. package/dist/abis/bytecodes/dopplerDN404.mjs.map +0 -1
  51. package/dist/abis/bytecodes/stateView.d.mts +0 -3
  52. package/dist/abis/bytecodes/stateView.d.ts +0 -3
  53. package/dist/abis/bytecodes/stateView.js +0 -9
  54. package/dist/abis/bytecodes/stateView.js.map +0 -1
  55. package/dist/abis/bytecodes/stateView.mjs +0 -3
  56. package/dist/abis/bytecodes/stateView.mjs.map +0 -1
  57. package/dist/abis/bytecodes.d.mts +0 -5
  58. package/dist/abis/bytecodes.d.ts +0 -5
  59. package/dist/abis/bytecodes.js +0 -33
  60. package/dist/abis/bytecodes.js.map +0 -1
  61. package/dist/abis/bytecodes.mjs +0 -8
  62. package/dist/abis/bytecodes.mjs.map +0 -1
  63. package/dist/abis/index.d.mts +0 -3460
  64. package/dist/abis/index.d.ts +0 -3460
  65. package/dist/abis/index.js +0 -122
  66. package/dist/abis/index.js.map +0 -1
  67. package/dist/abis/index.mjs +0 -9
  68. package/dist/abis/index.mjs.map +0 -1
  69. package/dist/addresses.d.mts +0 -65
  70. package/dist/addresses.d.ts +0 -65
  71. package/dist/addresses.js +0 -29
  72. package/dist/addresses.js.map +0 -1
  73. package/dist/addresses.mjs +0 -4
  74. package/dist/addresses.mjs.map +0 -1
  75. package/dist/builders/DynamicAuctionBuilder.d.mts +0 -138
  76. package/dist/builders/DynamicAuctionBuilder.d.ts +0 -138
  77. package/dist/builders/DynamicAuctionBuilder.js +0 -35
  78. package/dist/builders/DynamicAuctionBuilder.js.map +0 -1
  79. package/dist/builders/DynamicAuctionBuilder.mjs +0 -26
  80. package/dist/builders/DynamicAuctionBuilder.mjs.map +0 -1
  81. package/dist/builders/MulticurveBuilder.d.mts +0 -183
  82. package/dist/builders/MulticurveBuilder.d.ts +0 -183
  83. package/dist/builders/MulticurveBuilder.js +0 -35
  84. package/dist/builders/MulticurveBuilder.js.map +0 -1
  85. package/dist/builders/MulticurveBuilder.mjs +0 -26
  86. package/dist/builders/MulticurveBuilder.mjs.map +0 -1
  87. package/dist/builders/StaticAuctionBuilder.d.mts +0 -131
  88. package/dist/builders/StaticAuctionBuilder.d.ts +0 -131
  89. package/dist/builders/StaticAuctionBuilder.js +0 -35
  90. package/dist/builders/StaticAuctionBuilder.js.map +0 -1
  91. package/dist/builders/StaticAuctionBuilder.mjs +0 -26
  92. package/dist/builders/StaticAuctionBuilder.mjs.map +0 -1
  93. package/dist/builders/index.d.mts +0 -8
  94. package/dist/builders/index.d.ts +0 -8
  95. package/dist/builders/index.js +0 -62
  96. package/dist/builders/index.js.map +0 -1
  97. package/dist/builders/index.mjs +0 -29
  98. package/dist/builders/index.mjs.map +0 -1
  99. package/dist/builders/shared.d.mts +0 -115
  100. package/dist/builders/shared.d.ts +0 -115
  101. package/dist/builders/shared.js +0 -45
  102. package/dist/builders/shared.js.map +0 -1
  103. package/dist/builders/shared.mjs +0 -24
  104. package/dist/builders/shared.mjs.map +0 -1
  105. package/dist/chunk-25GEBO3B.mjs +0 -219
  106. package/dist/chunk-25GEBO3B.mjs.map +0 -1
  107. package/dist/chunk-3MVW6UIW.js +0 -2294
  108. package/dist/chunk-3MVW6UIW.js.map +0 -1
  109. package/dist/chunk-3NMGCQJ4.mjs +0 -6
  110. package/dist/chunk-3NMGCQJ4.mjs.map +0 -1
  111. package/dist/chunk-3PNCB4W5.js +0 -4
  112. package/dist/chunk-4VWQNNNW.js +0 -233
  113. package/dist/chunk-4VWQNNNW.js.map +0 -1
  114. package/dist/chunk-4XN6DQBW.js +0 -4
  115. package/dist/chunk-4XN6DQBW.js.map +0 -1
  116. package/dist/chunk-5TQOT6CW.js +0 -8
  117. package/dist/chunk-5TQOT6CW.js.map +0 -1
  118. package/dist/chunk-6BQY5EPB.js +0 -144
  119. package/dist/chunk-6BQY5EPB.js.map +0 -1
  120. package/dist/chunk-6H6X3VTZ.js +0 -18
  121. package/dist/chunk-6H6X3VTZ.js.map +0 -1
  122. package/dist/chunk-6UHDSD42.js +0 -2585
  123. package/dist/chunk-6UHDSD42.js.map +0 -1
  124. package/dist/chunk-7CAAI5DL.js +0 -273
  125. package/dist/chunk-7CAAI5DL.js.map +0 -1
  126. package/dist/chunk-7M57PU6V.js +0 -28
  127. package/dist/chunk-7M57PU6V.js.map +0 -1
  128. package/dist/chunk-7P2SPZC7.mjs +0 -2583
  129. package/dist/chunk-7P2SPZC7.mjs.map +0 -1
  130. package/dist/chunk-7ZUV6WPX.mjs +0 -3
  131. package/dist/chunk-7ZUV6WPX.mjs.map +0 -1
  132. package/dist/chunk-ABT6AT7C.mjs +0 -16
  133. package/dist/chunk-ABT6AT7C.mjs.map +0 -1
  134. package/dist/chunk-C6MH7HYT.mjs +0 -138
  135. package/dist/chunk-C6MH7HYT.mjs.map +0 -1
  136. package/dist/chunk-CATH4QRQ.mjs +0 -141
  137. package/dist/chunk-CATH4QRQ.mjs.map +0 -1
  138. package/dist/chunk-CFAAYL5M.mjs +0 -26
  139. package/dist/chunk-CFAAYL5M.mjs.map +0 -1
  140. package/dist/chunk-CMNJZKTM.js +0 -140
  141. package/dist/chunk-CMNJZKTM.js.map +0 -1
  142. package/dist/chunk-CWTGQAOG.mjs +0 -72
  143. package/dist/chunk-CWTGQAOG.mjs.map +0 -1
  144. package/dist/chunk-DNB3T5P2.js +0 -269
  145. package/dist/chunk-DNB3T5P2.js.map +0 -1
  146. package/dist/chunk-DOUF6NON.mjs +0 -3
  147. package/dist/chunk-DOUF6NON.mjs.map +0 -1
  148. package/dist/chunk-DSYPZETD.js +0 -4
  149. package/dist/chunk-DSYPZETD.js.map +0 -1
  150. package/dist/chunk-E2NF4AQB.mjs +0 -2271
  151. package/dist/chunk-E2NF4AQB.mjs.map +0 -1
  152. package/dist/chunk-EH3V2BJF.js +0 -592
  153. package/dist/chunk-EH3V2BJF.js.map +0 -1
  154. package/dist/chunk-EIXUJANI.mjs +0 -590
  155. package/dist/chunk-EIXUJANI.mjs.map +0 -1
  156. package/dist/chunk-FFV6DMPA.mjs +0 -263
  157. package/dist/chunk-FFV6DMPA.mjs.map +0 -1
  158. package/dist/chunk-FLFYAWSS.mjs +0 -238
  159. package/dist/chunk-FLFYAWSS.mjs.map +0 -1
  160. package/dist/chunk-FNUBKONK.js +0 -291
  161. package/dist/chunk-FNUBKONK.js.map +0 -1
  162. package/dist/chunk-FOESYJP3.mjs +0 -3
  163. package/dist/chunk-FOESYJP3.mjs.map +0 -1
  164. package/dist/chunk-FTRCBE3J.js +0 -320
  165. package/dist/chunk-FTRCBE3J.js.map +0 -1
  166. package/dist/chunk-FZ4FIWCR.js +0 -240
  167. package/dist/chunk-FZ4FIWCR.js.map +0 -1
  168. package/dist/chunk-GDODJJ7D.mjs +0 -36
  169. package/dist/chunk-GDODJJ7D.mjs.map +0 -1
  170. package/dist/chunk-GSBQIVME.mjs +0 -278
  171. package/dist/chunk-GSBQIVME.mjs.map +0 -1
  172. package/dist/chunk-GSTY3GO7.mjs +0 -40
  173. package/dist/chunk-GSTY3GO7.mjs.map +0 -1
  174. package/dist/chunk-H3B54PFV.mjs +0 -17
  175. package/dist/chunk-H3B54PFV.mjs.map +0 -1
  176. package/dist/chunk-H7WPK5CR.js +0 -297
  177. package/dist/chunk-H7WPK5CR.js.map +0 -1
  178. package/dist/chunk-HJFVRV47.js +0 -120
  179. package/dist/chunk-HJFVRV47.js.map +0 -1
  180. package/dist/chunk-HL7ZAAD4.mjs +0 -375
  181. package/dist/chunk-HL7ZAAD4.mjs.map +0 -1
  182. package/dist/chunk-IWJOPXYN.mjs +0 -96
  183. package/dist/chunk-IWJOPXYN.mjs.map +0 -1
  184. package/dist/chunk-J62YDWIK.js +0 -8
  185. package/dist/chunk-J62YDWIK.js.map +0 -1
  186. package/dist/chunk-JB5XXPLL.js +0 -377
  187. package/dist/chunk-JB5XXPLL.js.map +0 -1
  188. package/dist/chunk-JIKAD4YL.js +0 -4
  189. package/dist/chunk-JIKAD4YL.js.map +0 -1
  190. package/dist/chunk-KAZQJ24E.mjs +0 -59
  191. package/dist/chunk-KAZQJ24E.mjs.map +0 -1
  192. package/dist/chunk-KHUE77HC.js +0 -81
  193. package/dist/chunk-KHUE77HC.js.map +0 -1
  194. package/dist/chunk-KOAC3BBP.mjs +0 -11
  195. package/dist/chunk-KOAC3BBP.mjs.map +0 -1
  196. package/dist/chunk-OHA5KJ2M.mjs +0 -6
  197. package/dist/chunk-OHA5KJ2M.mjs.map +0 -1
  198. package/dist/chunk-OX5CESVM.js +0 -40
  199. package/dist/chunk-OX5CESVM.js.map +0 -1
  200. package/dist/chunk-P25HBGP5.mjs +0 -3
  201. package/dist/chunk-P25HBGP5.mjs.map +0 -1
  202. package/dist/chunk-P7CHGWY7.js +0 -4
  203. package/dist/chunk-P7CHGWY7.js.map +0 -1
  204. package/dist/chunk-QAPQGDWK.js +0 -8
  205. package/dist/chunk-QAPQGDWK.js.map +0 -1
  206. package/dist/chunk-QOGBOT2M.mjs +0 -328
  207. package/dist/chunk-QOGBOT2M.mjs.map +0 -1
  208. package/dist/chunk-QRTABC4Z.js +0 -8
  209. package/dist/chunk-QRTABC4Z.js.map +0 -1
  210. package/dist/chunk-QSQGLWNY.mjs +0 -3
  211. package/dist/chunk-QSQGLWNY.mjs.map +0 -1
  212. package/dist/chunk-RI6SDMER.mjs +0 -295
  213. package/dist/chunk-RI6SDMER.mjs.map +0 -1
  214. package/dist/chunk-RIIVW6TQ.mjs +0 -267
  215. package/dist/chunk-RIIVW6TQ.mjs.map +0 -1
  216. package/dist/chunk-RV64M4Q6.mjs +0 -3
  217. package/dist/chunk-RV64M4Q6.mjs.map +0 -1
  218. package/dist/chunk-RXUJ4DUB.js +0 -330
  219. package/dist/chunk-RXUJ4DUB.js.map +0 -1
  220. package/dist/chunk-SD7BHT2F.mjs +0 -3
  221. package/dist/chunk-SD7BHT2F.mjs.map +0 -1
  222. package/dist/chunk-SWWLOD7Q.mjs +0 -6
  223. package/dist/chunk-SWWLOD7Q.mjs.map +0 -1
  224. package/dist/chunk-TIGHBA37.js +0 -143
  225. package/dist/chunk-TIGHBA37.js.map +0 -1
  226. package/dist/chunk-TLEVIIUE.mjs +0 -34
  227. package/dist/chunk-TLEVIIUE.mjs.map +0 -1
  228. package/dist/chunk-U3GOWK6J.mjs +0 -6
  229. package/dist/chunk-U3GOWK6J.mjs.map +0 -1
  230. package/dist/chunk-UPVKABAV.js +0 -19
  231. package/dist/chunk-UPVKABAV.js.map +0 -1
  232. package/dist/chunk-VCX6FG3E.mjs +0 -318
  233. package/dist/chunk-VCX6FG3E.mjs.map +0 -1
  234. package/dist/chunk-VEIVYUYF.js +0 -4
  235. package/dist/chunk-VEIVYUYF.js.map +0 -1
  236. package/dist/chunk-VYSOAGRU.mjs +0 -6
  237. package/dist/chunk-VYSOAGRU.mjs.map +0 -1
  238. package/dist/chunk-WJBJARLJ.js +0 -38
  239. package/dist/chunk-WJBJARLJ.js.map +0 -1
  240. package/dist/chunk-WNUB3UTT.js +0 -241
  241. package/dist/chunk-WNUB3UTT.js.map +0 -1
  242. package/dist/chunk-WQHTNL5L.js +0 -4
  243. package/dist/chunk-WQHTNL5L.js.map +0 -1
  244. package/dist/chunk-X3UMAHOJ.js +0 -4
  245. package/dist/chunk-X3UMAHOJ.js.map +0 -1
  246. package/dist/chunk-XMFOZYNI.js +0 -8
  247. package/dist/chunk-XMFOZYNI.js.map +0 -1
  248. package/dist/chunk-XNMXN5SZ.mjs +0 -3
  249. package/dist/chunk-XNMXN5SZ.mjs.map +0 -1
  250. package/dist/chunk-XRYLHTVV.mjs +0 -267
  251. package/dist/chunk-XRYLHTVV.mjs.map +0 -1
  252. package/dist/chunk-XSJTASPK.js +0 -13
  253. package/dist/chunk-XSJTASPK.js.map +0 -1
  254. package/dist/chunk-XT3BAM4H.js +0 -45
  255. package/dist/chunk-XT3BAM4H.js.map +0 -1
  256. package/dist/chunk-YBK6EBA5.mjs +0 -239
  257. package/dist/chunk-YBK6EBA5.mjs.map +0 -1
  258. package/dist/chunk-YFEPTSI2.js +0 -265
  259. package/dist/chunk-YFEPTSI2.js.map +0 -1
  260. package/dist/chunk-YYLD3AJ7.js +0 -61
  261. package/dist/chunk-YYLD3AJ7.js.map +0 -1
  262. package/dist/chunk-ZEDJUNC6.mjs +0 -115
  263. package/dist/chunk-ZEDJUNC6.mjs.map +0 -1
  264. package/dist/constants.d.mts +0 -91
  265. package/dist/constants.d.ts +0 -91
  266. package/dist/constants.js +0 -196
  267. package/dist/constants.js.map +0 -1
  268. package/dist/constants.mjs +0 -3
  269. package/dist/constants.mjs.map +0 -1
  270. package/dist/deployments.generated.d.mts +0 -267
  271. package/dist/deployments.generated.d.ts +0 -267
  272. package/dist/deployments.generated.js +0 -12
  273. package/dist/deployments.generated.js.map +0 -1
  274. package/dist/deployments.generated.mjs +0 -3
  275. package/dist/deployments.generated.mjs.map +0 -1
  276. package/dist/entities/DopplerFactory.d.mts +0 -266
  277. package/dist/entities/DopplerFactory.d.ts +0 -266
  278. package/dist/entities/DopplerFactory.js +0 -33
  279. package/dist/entities/DopplerFactory.js.map +0 -1
  280. package/dist/entities/DopplerFactory.mjs +0 -24
  281. package/dist/entities/DopplerFactory.mjs.map +0 -1
  282. package/dist/entities/auction/DynamicAuction.d.mts +0 -72
  283. package/dist/entities/auction/DynamicAuction.d.ts +0 -72
  284. package/dist/entities/auction/DynamicAuction.js +0 -21
  285. package/dist/entities/auction/DynamicAuction.js.map +0 -1
  286. package/dist/entities/auction/DynamicAuction.mjs +0 -12
  287. package/dist/entities/auction/DynamicAuction.mjs.map +0 -1
  288. package/dist/entities/auction/MulticurvePool.d.mts +0 -74
  289. package/dist/entities/auction/MulticurvePool.d.ts +0 -74
  290. package/dist/entities/auction/MulticurvePool.js +0 -24
  291. package/dist/entities/auction/MulticurvePool.js.map +0 -1
  292. package/dist/entities/auction/MulticurvePool.mjs +0 -15
  293. package/dist/entities/auction/MulticurvePool.mjs.map +0 -1
  294. package/dist/entities/auction/StaticAuction.d.mts +0 -44
  295. package/dist/entities/auction/StaticAuction.d.ts +0 -44
  296. package/dist/entities/auction/StaticAuction.js +0 -21
  297. package/dist/entities/auction/StaticAuction.js.map +0 -1
  298. package/dist/entities/auction/StaticAuction.mjs +0 -12
  299. package/dist/entities/auction/StaticAuction.mjs.map +0 -1
  300. package/dist/entities/auction/index.d.mts +0 -7
  301. package/dist/entities/auction/index.d.ts +0 -7
  302. package/dist/entities/auction/index.js +0 -35
  303. package/dist/entities/auction/index.js.map +0 -1
  304. package/dist/entities/auction/index.mjs +0 -18
  305. package/dist/entities/auction/index.mjs.map +0 -1
  306. package/dist/entities/quoter/Quoter.d.mts +0 -150
  307. package/dist/entities/quoter/Quoter.d.ts +0 -150
  308. package/dist/entities/quoter/Quoter.js +0 -21
  309. package/dist/entities/quoter/Quoter.js.map +0 -1
  310. package/dist/entities/quoter/Quoter.mjs +0 -12
  311. package/dist/entities/quoter/Quoter.mjs.map +0 -1
  312. package/dist/entities/quoter/index.d.mts +0 -5
  313. package/dist/entities/quoter/index.d.ts +0 -5
  314. package/dist/entities/quoter/index.js +0 -22
  315. package/dist/entities/quoter/index.js.map +0 -1
  316. package/dist/entities/quoter/index.mjs +0 -13
  317. package/dist/entities/quoter/index.mjs.map +0 -1
  318. package/dist/entities/token/derc20/Derc20.d.mts +0 -102
  319. package/dist/entities/token/derc20/Derc20.d.ts +0 -102
  320. package/dist/entities/token/derc20/Derc20.js +0 -19
  321. package/dist/entities/token/derc20/Derc20.js.map +0 -1
  322. package/dist/entities/token/derc20/Derc20.mjs +0 -10
  323. package/dist/entities/token/derc20/Derc20.mjs.map +0 -1
  324. package/dist/entities/token/derc20/index.d.mts +0 -5
  325. package/dist/entities/token/derc20/index.d.ts +0 -5
  326. package/dist/entities/token/derc20/index.js +0 -20
  327. package/dist/entities/token/derc20/index.js.map +0 -1
  328. package/dist/entities/token/derc20/index.mjs +0 -11
  329. package/dist/entities/token/derc20/index.mjs.map +0 -1
  330. package/dist/entities/token/eth/Eth.d.mts +0 -54
  331. package/dist/entities/token/eth/Eth.d.ts +0 -54
  332. package/dist/entities/token/eth/Eth.js +0 -12
  333. package/dist/entities/token/eth/Eth.js.map +0 -1
  334. package/dist/entities/token/eth/Eth.mjs +0 -3
  335. package/dist/entities/token/eth/Eth.mjs.map +0 -1
  336. package/dist/entities/token/eth/index.d.mts +0 -5
  337. package/dist/entities/token/eth/index.d.ts +0 -5
  338. package/dist/entities/token/eth/index.js +0 -13
  339. package/dist/entities/token/eth/index.js.map +0 -1
  340. package/dist/entities/token/eth/index.mjs +0 -4
  341. package/dist/entities/token/eth/index.mjs.map +0 -1
  342. package/dist/entities/token/index.d.mts +0 -6
  343. package/dist/entities/token/index.d.ts +0 -6
  344. package/dist/entities/token/index.js +0 -27
  345. package/dist/entities/token/index.js.map +0 -1
  346. package/dist/entities/token/index.mjs +0 -14
  347. package/dist/entities/token/index.mjs.map +0 -1
  348. package/dist/index.d.mts +0 -37
  349. package/dist/index.d.ts +0 -37
  350. package/dist/index.js +0 -565
  351. package/dist/index.js.map +0 -1
  352. package/dist/index.mjs +0 -47
  353. package/dist/index.mjs.map +0 -1
  354. package/dist/types.d.mts +0 -607
  355. package/dist/types.d.ts +0 -607
  356. package/dist/types.js +0 -30
  357. package/dist/types.js.map +0 -1
  358. package/dist/types.mjs +0 -5
  359. package/dist/types.mjs.map +0 -1
  360. package/dist/utils/airlock.d.mts +0 -11
  361. package/dist/utils/airlock.d.ts +0 -11
  362. package/dist/utils/airlock.js +0 -26
  363. package/dist/utils/airlock.js.map +0 -1
  364. package/dist/utils/airlock.mjs +0 -5
  365. package/dist/utils/airlock.mjs.map +0 -1
  366. package/dist/utils/balanceDelta.d.mts +0 -10
  367. package/dist/utils/balanceDelta.d.ts +0 -10
  368. package/dist/utils/balanceDelta.js +0 -12
  369. package/dist/utils/balanceDelta.js.map +0 -1
  370. package/dist/utils/balanceDelta.mjs +0 -3
  371. package/dist/utils/balanceDelta.mjs.map +0 -1
  372. package/dist/utils/computeOptimalGamma.d.mts +0 -7
  373. package/dist/utils/computeOptimalGamma.d.ts +0 -7
  374. package/dist/utils/computeOptimalGamma.js +0 -12
  375. package/dist/utils/computeOptimalGamma.js.map +0 -1
  376. package/dist/utils/computeOptimalGamma.mjs +0 -3
  377. package/dist/utils/computeOptimalGamma.mjs.map +0 -1
  378. package/dist/utils/dopplerHookMigrator.d.mts +0 -11
  379. package/dist/utils/dopplerHookMigrator.d.ts +0 -11
  380. package/dist/utils/dopplerHookMigrator.js +0 -12
  381. package/dist/utils/dopplerHookMigrator.js.map +0 -1
  382. package/dist/utils/dopplerHookMigrator.mjs +0 -3
  383. package/dist/utils/dopplerHookMigrator.mjs.map +0 -1
  384. package/dist/utils/index.d.mts +0 -14
  385. package/dist/utils/index.d.ts +0 -14
  386. package/dist/utils/index.js +0 -195
  387. package/dist/utils/index.js.map +0 -1
  388. package/dist/utils/index.mjs +0 -22
  389. package/dist/utils/index.mjs.map +0 -1
  390. package/dist/utils/isToken0Expected.d.mts +0 -13
  391. package/dist/utils/isToken0Expected.d.ts +0 -13
  392. package/dist/utils/isToken0Expected.js +0 -12
  393. package/dist/utils/isToken0Expected.js.map +0 -1
  394. package/dist/utils/isToken0Expected.mjs +0 -3
  395. package/dist/utils/isToken0Expected.mjs.map +0 -1
  396. package/dist/utils/marketCapHelpers.d.mts +0 -259
  397. package/dist/utils/marketCapHelpers.d.ts +0 -259
  398. package/dist/utils/marketCapHelpers.js +0 -58
  399. package/dist/utils/marketCapHelpers.js.map +0 -1
  400. package/dist/utils/marketCapHelpers.mjs +0 -5
  401. package/dist/utils/marketCapHelpers.mjs.map +0 -1
  402. package/dist/utils/poolKey.d.mts +0 -17
  403. package/dist/utils/poolKey.d.ts +0 -17
  404. package/dist/utils/poolKey.js +0 -12
  405. package/dist/utils/poolKey.js.map +0 -1
  406. package/dist/utils/poolKey.mjs +0 -3
  407. package/dist/utils/poolKey.mjs.map +0 -1
  408. package/dist/utils/priceHelpers.d.mts +0 -86
  409. package/dist/utils/priceHelpers.d.ts +0 -86
  410. package/dist/utils/priceHelpers.js +0 -41
  411. package/dist/utils/priceHelpers.js.map +0 -1
  412. package/dist/utils/priceHelpers.mjs +0 -4
  413. package/dist/utils/priceHelpers.mjs.map +0 -1
  414. package/dist/utils/tickMath.d.mts +0 -72
  415. package/dist/utils/tickMath.d.ts +0 -72
  416. package/dist/utils/tickMath.js +0 -60
  417. package/dist/utils/tickMath.js.map +0 -1
  418. package/dist/utils/tickMath.mjs +0 -3
  419. package/dist/utils/tickMath.mjs.map +0 -1
  420. package/dist/utils/tokenAddressMiner.d.mts +0 -37
  421. package/dist/utils/tokenAddressMiner.d.ts +0 -37
  422. package/dist/utils/tokenAddressMiner.js +0 -19
  423. package/dist/utils/tokenAddressMiner.js.map +0 -1
  424. package/dist/utils/tokenAddressMiner.mjs +0 -10
  425. package/dist/utils/tokenAddressMiner.mjs.map +0 -1
@@ -1,2294 +0,0 @@
1
- 'use strict';
2
-
3
- // src/abis/index.ts
4
- var airlockAbi = [
5
- {
6
- type: "constructor",
7
- inputs: [{ name: "owner_", type: "address", internalType: "address" }],
8
- stateMutability: "nonpayable"
9
- },
10
- { type: "receive", stateMutability: "payable" },
11
- {
12
- type: "function",
13
- name: "collectIntegratorFees",
14
- inputs: [
15
- { name: "to", type: "address", internalType: "address" },
16
- { name: "token", type: "address", internalType: "address" },
17
- { name: "amount", type: "uint256", internalType: "uint256" }
18
- ],
19
- outputs: [],
20
- stateMutability: "nonpayable"
21
- },
22
- {
23
- type: "function",
24
- name: "collectProtocolFees",
25
- inputs: [
26
- { name: "to", type: "address", internalType: "address" },
27
- { name: "token", type: "address", internalType: "address" },
28
- { name: "amount", type: "uint256", internalType: "uint256" }
29
- ],
30
- outputs: [],
31
- stateMutability: "nonpayable"
32
- },
33
- {
34
- type: "function",
35
- name: "create",
36
- inputs: [
37
- {
38
- name: "createData",
39
- type: "tuple",
40
- internalType: "struct CreateParams",
41
- components: [
42
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
43
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
44
- { name: "numeraire", type: "address", internalType: "address" },
45
- {
46
- name: "tokenFactory",
47
- type: "address",
48
- internalType: "contract ITokenFactory"
49
- },
50
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
51
- {
52
- name: "governanceFactory",
53
- type: "address",
54
- internalType: "contract IGovernanceFactory"
55
- },
56
- {
57
- name: "governanceFactoryData",
58
- type: "bytes",
59
- internalType: "bytes"
60
- },
61
- {
62
- name: "poolInitializer",
63
- type: "address",
64
- internalType: "contract IPoolInitializer"
65
- },
66
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
67
- {
68
- name: "liquidityMigrator",
69
- type: "address",
70
- internalType: "contract ILiquidityMigrator"
71
- },
72
- {
73
- name: "liquidityMigratorData",
74
- type: "bytes",
75
- internalType: "bytes"
76
- },
77
- { name: "integrator", type: "address", internalType: "address" },
78
- { name: "salt", type: "bytes32", internalType: "bytes32" }
79
- ]
80
- }
81
- ],
82
- outputs: [
83
- { name: "asset", type: "address", internalType: "address" },
84
- { name: "pool", type: "address", internalType: "address" },
85
- { name: "governance", type: "address", internalType: "address" },
86
- { name: "timelock", type: "address", internalType: "address" },
87
- { name: "migrationPool", type: "address", internalType: "address" }
88
- ],
89
- stateMutability: "nonpayable"
90
- },
91
- {
92
- type: "function",
93
- name: "getAssetData",
94
- inputs: [{ name: "asset", type: "address", internalType: "address" }],
95
- outputs: [
96
- { name: "numeraire", type: "address", internalType: "address" },
97
- { name: "timelock", type: "address", internalType: "address" },
98
- { name: "governance", type: "address", internalType: "address" },
99
- {
100
- name: "liquidityMigrator",
101
- type: "address",
102
- internalType: "contract ILiquidityMigrator"
103
- },
104
- {
105
- name: "poolInitializer",
106
- type: "address",
107
- internalType: "contract IPoolInitializer"
108
- },
109
- { name: "pool", type: "address", internalType: "address" },
110
- { name: "migrationPool", type: "address", internalType: "address" },
111
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
112
- { name: "totalSupply", type: "uint256", internalType: "uint256" },
113
- { name: "integrator", type: "address", internalType: "address" }
114
- ],
115
- stateMutability: "view"
116
- },
117
- {
118
- type: "function",
119
- name: "getModuleState",
120
- inputs: [{ name: "module", type: "address", internalType: "address" }],
121
- outputs: [
122
- { name: "state", type: "uint8", internalType: "enum ModuleState" }
123
- ],
124
- stateMutability: "view"
125
- },
126
- {
127
- type: "function",
128
- name: "integratorFees",
129
- inputs: [
130
- { name: "integrator", type: "address", internalType: "address" },
131
- { name: "token", type: "address", internalType: "address" }
132
- ],
133
- outputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
134
- stateMutability: "view"
135
- },
136
- {
137
- type: "function",
138
- name: "migrate",
139
- inputs: [{ name: "asset", type: "address", internalType: "address" }],
140
- outputs: [],
141
- stateMutability: "nonpayable"
142
- },
143
- {
144
- type: "function",
145
- name: "owner",
146
- inputs: [],
147
- outputs: [{ name: "", type: "address", internalType: "address" }],
148
- stateMutability: "view"
149
- },
150
- {
151
- type: "function",
152
- name: "protocolFees",
153
- inputs: [{ name: "token", type: "address", internalType: "address" }],
154
- outputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
155
- stateMutability: "view"
156
- },
157
- {
158
- type: "function",
159
- name: "renounceOwnership",
160
- inputs: [],
161
- outputs: [],
162
- stateMutability: "nonpayable"
163
- },
164
- {
165
- type: "function",
166
- name: "setModuleState",
167
- inputs: [
168
- { name: "modules", type: "address[]", internalType: "address[]" },
169
- { name: "states", type: "uint8[]", internalType: "enum ModuleState[]" }
170
- ],
171
- outputs: [],
172
- stateMutability: "nonpayable"
173
- },
174
- {
175
- type: "function",
176
- name: "transferOwnership",
177
- inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
178
- outputs: [],
179
- stateMutability: "nonpayable"
180
- },
181
- {
182
- type: "event",
183
- name: "Collect",
184
- inputs: [
185
- { name: "to", type: "address", indexed: true, internalType: "address" },
186
- {
187
- name: "token",
188
- type: "address",
189
- indexed: true,
190
- internalType: "address"
191
- },
192
- {
193
- name: "amount",
194
- type: "uint256",
195
- indexed: false,
196
- internalType: "uint256"
197
- }
198
- ],
199
- anonymous: false
200
- },
201
- {
202
- type: "event",
203
- name: "Create",
204
- inputs: [
205
- {
206
- name: "asset",
207
- type: "address",
208
- indexed: false,
209
- internalType: "address"
210
- },
211
- {
212
- name: "numeraire",
213
- type: "address",
214
- indexed: true,
215
- internalType: "address"
216
- },
217
- {
218
- name: "initializer",
219
- type: "address",
220
- indexed: false,
221
- internalType: "address"
222
- },
223
- {
224
- name: "poolOrHook",
225
- type: "address",
226
- indexed: false,
227
- internalType: "address"
228
- }
229
- ],
230
- anonymous: false
231
- },
232
- {
233
- type: "event",
234
- name: "Migrate",
235
- inputs: [
236
- {
237
- name: "asset",
238
- type: "address",
239
- indexed: true,
240
- internalType: "address"
241
- },
242
- { name: "pool", type: "address", indexed: true, internalType: "address" }
243
- ],
244
- anonymous: false
245
- },
246
- {
247
- type: "event",
248
- name: "OwnershipTransferred",
249
- inputs: [
250
- {
251
- name: "previousOwner",
252
- type: "address",
253
- indexed: true,
254
- internalType: "address"
255
- },
256
- {
257
- name: "newOwner",
258
- type: "address",
259
- indexed: true,
260
- internalType: "address"
261
- }
262
- ],
263
- anonymous: false
264
- },
265
- {
266
- type: "event",
267
- name: "SetModuleState",
268
- inputs: [
269
- {
270
- name: "module",
271
- type: "address",
272
- indexed: true,
273
- internalType: "address"
274
- },
275
- {
276
- name: "state",
277
- type: "uint8",
278
- indexed: true,
279
- internalType: "enum ModuleState"
280
- }
281
- ],
282
- anonymous: false
283
- },
284
- { type: "error", name: "ArrayLengthsMismatch", inputs: [] },
285
- {
286
- type: "error",
287
- name: "OwnableInvalidOwner",
288
- inputs: [{ name: "owner", type: "address", internalType: "address" }]
289
- },
290
- {
291
- type: "error",
292
- name: "OwnableUnauthorizedAccount",
293
- inputs: [{ name: "account", type: "address", internalType: "address" }]
294
- },
295
- {
296
- type: "error",
297
- name: "WrongModuleState",
298
- inputs: [
299
- { name: "module", type: "address", internalType: "address" },
300
- { name: "expected", type: "uint8", internalType: "enum ModuleState" },
301
- { name: "actual", type: "uint8", internalType: "enum ModuleState" }
302
- ]
303
- },
304
- // Pool initializer errors (included for better error decoding when calls bubble up)
305
- {
306
- type: "error",
307
- name: "InvalidTickRange",
308
- inputs: [
309
- { name: "tick", type: "int24", internalType: "int24" },
310
- { name: "tickSpacing", type: "int24", internalType: "int24" }
311
- ]
312
- },
313
- {
314
- type: "error",
315
- name: "InvalidTickRangeMisordered",
316
- inputs: [
317
- { name: "tickLower", type: "int24", internalType: "int24" },
318
- { name: "tickUpper", type: "int24", internalType: "int24" }
319
- ]
320
- },
321
- {
322
- type: "error",
323
- name: "InvalidFee",
324
- inputs: [{ name: "fee", type: "uint24", internalType: "uint24" }]
325
- },
326
- {
327
- type: "error",
328
- name: "CannotMigrateInsufficientTick",
329
- inputs: [
330
- { name: "targetTick", type: "int24", internalType: "int24" },
331
- { name: "currentTick", type: "int24", internalType: "int24" }
332
- ]
333
- },
334
- { type: "error", name: "CannotMintZeroLiquidity", inputs: [] },
335
- {
336
- type: "error",
337
- name: "MaxShareToBeSoldExceeded",
338
- inputs: [
339
- { name: "value", type: "uint256", internalType: "uint256" },
340
- { name: "limit", type: "uint256", internalType: "uint256" }
341
- ]
342
- },
343
- { type: "error", name: "PoolAlreadyExited", inputs: [] },
344
- { type: "error", name: "PoolAlreadyInitialized", inputs: [] },
345
- { type: "error", name: "PoolLocked", inputs: [] },
346
- { type: "error", name: "SenderNotAirlock", inputs: [] },
347
- { type: "error", name: "UnorderedBeneficiaries", inputs: [] },
348
- { type: "error", name: "InvalidShares", inputs: [] },
349
- { type: "error", name: "InvalidTotalShares", inputs: [] },
350
- { type: "error", name: "InvalidProtocolOwnerShares", inputs: [] },
351
- { type: "error", name: "InvalidProtocolOwnerBeneficiary", inputs: [] }
352
- ];
353
- var uniswapV3InitializerAbi = [
354
- {
355
- type: "function",
356
- name: "encodePoolInitializerData",
357
- inputs: [
358
- {
359
- name: "params",
360
- type: "tuple",
361
- components: [
362
- { name: "numTokensToSell", type: "uint256" },
363
- { name: "startTick", type: "int24" },
364
- { name: "endTick", type: "int24" },
365
- { name: "fee", type: "uint24" }
366
- ]
367
- }
368
- ],
369
- outputs: [{ name: "", type: "bytes" }],
370
- stateMutability: "pure"
371
- }
372
- ];
373
- var v2MigratorAbi = [
374
- {
375
- type: "function",
376
- name: "encodeLiquidityMigratorData",
377
- inputs: [],
378
- outputs: [{ name: "", type: "bytes" }],
379
- stateMutability: "pure"
380
- }
381
- ];
382
- var v3MigratorAbi = [
383
- {
384
- type: "function",
385
- name: "encodeLiquidityMigratorData",
386
- inputs: [
387
- { name: "fee", type: "uint24" },
388
- { name: "tickSpacing", type: "int24" }
389
- ],
390
- outputs: [{ name: "", type: "bytes" }],
391
- stateMutability: "pure"
392
- }
393
- ];
394
- var v4MigratorAbi = [
395
- {
396
- type: "function",
397
- name: "encodeLiquidityMigratorData",
398
- inputs: [
399
- { name: "fee", type: "uint24" },
400
- { name: "tickSpacing", type: "int24" },
401
- { name: "lockDuration", type: "uint256" },
402
- { name: "beneficiaries", type: "address[]" },
403
- { name: "percentages", type: "uint256[]" }
404
- ],
405
- outputs: [{ name: "", type: "bytes" }],
406
- stateMutability: "pure"
407
- },
408
- // V4 Migrator errors
409
- { type: "error", name: "TickOutOfRange", inputs: [] },
410
- { type: "error", name: "ZeroLiquidity", inputs: [] }
411
- ];
412
- var uniswapV3PoolAbi = [
413
- {
414
- type: "function",
415
- name: "slot0",
416
- inputs: [],
417
- outputs: [
418
- { name: "sqrtPriceX96", type: "uint160" },
419
- { name: "tick", type: "int24" },
420
- { name: "observationIndex", type: "uint16" },
421
- { name: "observationCardinality", type: "uint16" },
422
- { name: "observationCardinalityNext", type: "uint16" },
423
- { name: "feeProtocol", type: "uint8" },
424
- { name: "unlocked", type: "bool" }
425
- ],
426
- stateMutability: "view"
427
- },
428
- {
429
- type: "function",
430
- name: "liquidity",
431
- inputs: [],
432
- outputs: [{ name: "", type: "uint128" }],
433
- stateMutability: "view"
434
- },
435
- {
436
- type: "function",
437
- name: "token0",
438
- inputs: [],
439
- outputs: [{ name: "", type: "address" }],
440
- stateMutability: "view"
441
- },
442
- {
443
- type: "function",
444
- name: "token1",
445
- inputs: [],
446
- outputs: [{ name: "", type: "address" }],
447
- stateMutability: "view"
448
- },
449
- {
450
- type: "function",
451
- name: "fee",
452
- inputs: [],
453
- outputs: [{ name: "", type: "uint24" }],
454
- stateMutability: "view"
455
- }
456
- ];
457
- var derc20Abi = [
458
- {
459
- type: "function",
460
- name: "allowance",
461
- inputs: [
462
- { name: "owner", type: "address", internalType: "address" },
463
- { name: "spender", type: "address", internalType: "address" }
464
- ],
465
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
466
- stateMutability: "view"
467
- },
468
- {
469
- type: "function",
470
- name: "approve",
471
- inputs: [
472
- { name: "spender", type: "address", internalType: "address" },
473
- { name: "value", type: "uint256", internalType: "uint256" }
474
- ],
475
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
476
- stateMutability: "nonpayable"
477
- },
478
- // OpenZeppelin Votes (governance) — delegation + queries
479
- {
480
- type: "function",
481
- name: "delegate",
482
- inputs: [{ name: "delegatee", type: "address", internalType: "address" }],
483
- outputs: [],
484
- stateMutability: "nonpayable"
485
- },
486
- {
487
- type: "function",
488
- name: "delegateBySig",
489
- inputs: [
490
- { name: "delegatee", type: "address", internalType: "address" },
491
- { name: "nonce", type: "uint256", internalType: "uint256" },
492
- { name: "expiry", type: "uint256", internalType: "uint256" },
493
- { name: "v", type: "uint8", internalType: "uint8" },
494
- { name: "r", type: "bytes32", internalType: "bytes32" },
495
- { name: "s", type: "bytes32", internalType: "bytes32" }
496
- ],
497
- outputs: [],
498
- stateMutability: "nonpayable"
499
- },
500
- {
501
- type: "function",
502
- name: "delegates",
503
- inputs: [{ name: "account", type: "address", internalType: "address" }],
504
- outputs: [{ name: "", type: "address", internalType: "address" }],
505
- stateMutability: "view"
506
- },
507
- {
508
- type: "function",
509
- name: "getVotes",
510
- inputs: [{ name: "account", type: "address", internalType: "address" }],
511
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
512
- stateMutability: "view"
513
- },
514
- {
515
- type: "function",
516
- name: "getPastVotes",
517
- inputs: [
518
- { name: "account", type: "address", internalType: "address" },
519
- { name: "timepoint", type: "uint256", internalType: "uint256" }
520
- ],
521
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
522
- stateMutability: "view"
523
- },
524
- {
525
- type: "function",
526
- name: "getPastTotalSupply",
527
- inputs: [{ name: "timepoint", type: "uint256", internalType: "uint256" }],
528
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
529
- stateMutability: "view"
530
- },
531
- {
532
- type: "function",
533
- name: "nonces",
534
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
535
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
536
- stateMutability: "view"
537
- },
538
- {
539
- type: "function",
540
- name: "DOMAIN_SEPARATOR",
541
- inputs: [],
542
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
543
- stateMutability: "view"
544
- },
545
- {
546
- type: "function",
547
- name: "balanceOf",
548
- inputs: [{ name: "account", type: "address", internalType: "address" }],
549
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
550
- stateMutability: "view"
551
- },
552
- {
553
- type: "function",
554
- name: "computeAvailableVestedAmount",
555
- inputs: [{ name: "account", type: "address", internalType: "address" }],
556
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
557
- stateMutability: "view"
558
- },
559
- {
560
- type: "function",
561
- name: "currentYearStart",
562
- inputs: [],
563
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
564
- stateMutability: "view"
565
- },
566
- {
567
- type: "function",
568
- name: "decimals",
569
- inputs: [],
570
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
571
- stateMutability: "view"
572
- },
573
- {
574
- type: "function",
575
- name: "getVestingDataOf",
576
- inputs: [{ name: "account", type: "address", internalType: "address" }],
577
- outputs: [
578
- { name: "totalAmount", type: "uint256", internalType: "uint256" },
579
- { name: "releasedAmount", type: "uint256", internalType: "uint256" }
580
- ],
581
- stateMutability: "view"
582
- },
583
- {
584
- type: "function",
585
- name: "isPoolUnlocked",
586
- inputs: [],
587
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
588
- stateMutability: "view"
589
- },
590
- {
591
- type: "function",
592
- name: "lastMintTimestamp",
593
- inputs: [],
594
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
595
- stateMutability: "view"
596
- },
597
- {
598
- type: "function",
599
- name: "name",
600
- inputs: [],
601
- outputs: [{ name: "", type: "string", internalType: "string" }],
602
- stateMutability: "view"
603
- },
604
- {
605
- type: "function",
606
- name: "pool",
607
- inputs: [],
608
- outputs: [{ name: "", type: "address", internalType: "address" }],
609
- stateMutability: "view"
610
- },
611
- {
612
- type: "function",
613
- name: "release",
614
- inputs: [],
615
- outputs: [],
616
- stateMutability: "nonpayable"
617
- },
618
- {
619
- type: "function",
620
- name: "symbol",
621
- inputs: [],
622
- outputs: [{ name: "", type: "string", internalType: "string" }],
623
- stateMutability: "view"
624
- },
625
- {
626
- type: "function",
627
- name: "tokenURI",
628
- inputs: [],
629
- outputs: [{ name: "", type: "string", internalType: "string" }],
630
- stateMutability: "view"
631
- },
632
- {
633
- type: "function",
634
- name: "totalSupply",
635
- inputs: [],
636
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
637
- stateMutability: "view"
638
- },
639
- {
640
- type: "function",
641
- name: "transfer",
642
- inputs: [
643
- { name: "to", type: "address", internalType: "address" },
644
- { name: "value", type: "uint256", internalType: "uint256" }
645
- ],
646
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
647
- stateMutability: "nonpayable"
648
- },
649
- {
650
- type: "function",
651
- name: "transferFrom",
652
- inputs: [
653
- { name: "from", type: "address", internalType: "address" },
654
- { name: "to", type: "address", internalType: "address" },
655
- { name: "value", type: "uint256", internalType: "uint256" }
656
- ],
657
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
658
- stateMutability: "nonpayable"
659
- },
660
- {
661
- type: "function",
662
- name: "vestedTotalAmount",
663
- inputs: [],
664
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
665
- stateMutability: "view"
666
- },
667
- {
668
- type: "function",
669
- name: "vestingDuration",
670
- inputs: [],
671
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
672
- stateMutability: "view"
673
- },
674
- {
675
- type: "function",
676
- name: "vestingStart",
677
- inputs: [],
678
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
679
- stateMutability: "view"
680
- },
681
- {
682
- type: "function",
683
- name: "yearlyMintRate",
684
- inputs: [],
685
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
686
- stateMutability: "view"
687
- },
688
- // DERC20 errors
689
- { type: "error", name: "MintingNotStartedYet", inputs: [] },
690
- { type: "error", name: "ExceedsYearlyMintCap", inputs: [] },
691
- { type: "error", name: "NoMintableAmount", inputs: [] },
692
- { type: "error", name: "PoolLocked", inputs: [] },
693
- { type: "error", name: "ArrayLengthsMismatch", inputs: [] },
694
- { type: "error", name: "ReleaseAmountInvalid", inputs: [] },
695
- {
696
- type: "error",
697
- name: "MaxPreMintPerAddressExceeded",
698
- inputs: [
699
- { name: "amount", type: "uint256", internalType: "uint256" },
700
- { name: "limit", type: "uint256", internalType: "uint256" }
701
- ]
702
- },
703
- {
704
- type: "error",
705
- name: "MaxTotalPreMintExceeded",
706
- inputs: [
707
- { name: "amount", type: "uint256", internalType: "uint256" },
708
- { name: "limit", type: "uint256", internalType: "uint256" }
709
- ]
710
- },
711
- {
712
- type: "error",
713
- name: "MaxTotalVestedExceeded",
714
- inputs: [
715
- { name: "amount", type: "uint256", internalType: "uint256" },
716
- { name: "limit", type: "uint256", internalType: "uint256" }
717
- ]
718
- },
719
- { type: "error", name: "VestingNotStartedYet", inputs: [] },
720
- {
721
- type: "error",
722
- name: "MaxYearlyMintRateExceeded",
723
- inputs: [
724
- { name: "amount", type: "uint256", internalType: "uint256" },
725
- { name: "limit", type: "uint256", internalType: "uint256" }
726
- ]
727
- }
728
- ];
729
- var uniswapV4InitializerAbi = [
730
- {
731
- type: "function",
732
- name: "encodePoolInitializerData",
733
- inputs: [
734
- {
735
- name: "params",
736
- type: "tuple",
737
- components: [
738
- { name: "minimumProceeds", type: "uint256" },
739
- { name: "maximumProceeds", type: "uint256" },
740
- { name: "startingTime", type: "uint256" },
741
- { name: "endingTime", type: "uint256" },
742
- { name: "startingTick", type: "int24" },
743
- { name: "endingTick", type: "int24" },
744
- { name: "epochLength", type: "uint256" },
745
- { name: "gamma", type: "int24" },
746
- { name: "isToken0", type: "bool" },
747
- { name: "numPDSlugs", type: "uint256" },
748
- { name: "fee", type: "uint24" },
749
- { name: "tickSpacing", type: "int24" }
750
- ]
751
- }
752
- ],
753
- outputs: [{ name: "", type: "bytes" }],
754
- stateMutability: "pure"
755
- }
756
- ];
757
- var dopplerHookAbi = [
758
- {
759
- type: "function",
760
- name: "state",
761
- inputs: [],
762
- outputs: [
763
- { name: "lastEpoch", type: "uint40" },
764
- { name: "tickAccumulator", type: "int256" },
765
- { name: "totalTokensSold", type: "uint256" },
766
- { name: "totalProceeds", type: "uint256" },
767
- { name: "totalTokensSoldLastEpoch", type: "uint256" },
768
- // BalanceDelta is encoded as a single int256 in the compiled ABI.
769
- { name: "feesAccrued", type: "int256" }
770
- ],
771
- stateMutability: "view"
772
- },
773
- {
774
- type: "function",
775
- name: "earlyExit",
776
- inputs: [],
777
- outputs: [{ name: "", type: "bool" }],
778
- stateMutability: "view"
779
- },
780
- {
781
- type: "function",
782
- name: "insufficientProceeds",
783
- inputs: [],
784
- outputs: [{ name: "", type: "bool" }],
785
- stateMutability: "view"
786
- },
787
- {
788
- type: "function",
789
- name: "poolKey",
790
- inputs: [],
791
- outputs: [
792
- { name: "currency0", type: "address" },
793
- { name: "currency1", type: "address" },
794
- { name: "fee", type: "uint24" },
795
- { name: "tickSpacing", type: "int24" },
796
- { name: "hooks", type: "address" }
797
- ],
798
- stateMutability: "view"
799
- },
800
- {
801
- type: "function",
802
- name: "startingTime",
803
- inputs: [],
804
- outputs: [{ name: "", type: "uint256" }],
805
- stateMutability: "view"
806
- },
807
- {
808
- type: "function",
809
- name: "endingTime",
810
- inputs: [],
811
- outputs: [{ name: "", type: "uint256" }],
812
- stateMutability: "view"
813
- },
814
- {
815
- type: "function",
816
- name: "epochLength",
817
- inputs: [],
818
- outputs: [{ name: "", type: "uint256" }],
819
- stateMutability: "view"
820
- },
821
- {
822
- type: "function",
823
- name: "minimumProceeds",
824
- inputs: [],
825
- outputs: [{ name: "", type: "uint256" }],
826
- stateMutability: "view"
827
- },
828
- {
829
- type: "function",
830
- name: "maximumProceeds",
831
- inputs: [],
832
- outputs: [{ name: "", type: "uint256" }],
833
- stateMutability: "view"
834
- },
835
- {
836
- type: "function",
837
- name: "numTokensToSell",
838
- inputs: [],
839
- outputs: [{ name: "", type: "uint256" }],
840
- stateMutability: "view"
841
- },
842
- {
843
- type: "function",
844
- name: "startingTick",
845
- inputs: [],
846
- outputs: [{ name: "", type: "int24" }],
847
- stateMutability: "view"
848
- },
849
- {
850
- type: "function",
851
- name: "endingTick",
852
- inputs: [],
853
- outputs: [{ name: "", type: "int24" }],
854
- stateMutability: "view"
855
- },
856
- {
857
- type: "function",
858
- name: "gamma",
859
- inputs: [],
860
- outputs: [{ name: "", type: "int24" }],
861
- stateMutability: "view"
862
- },
863
- {
864
- type: "function",
865
- name: "isToken0",
866
- inputs: [],
867
- outputs: [{ name: "", type: "bool" }],
868
- stateMutability: "view"
869
- },
870
- {
871
- type: "function",
872
- name: "numPDSlugs",
873
- inputs: [],
874
- outputs: [{ name: "", type: "uint256" }],
875
- stateMutability: "view"
876
- },
877
- // Doppler Hook errors
878
- { type: "error", name: "InvalidGamma", inputs: [] },
879
- { type: "error", name: "InvalidTimeRange", inputs: [] },
880
- { type: "error", name: "CannotAddLiquidity", inputs: [] },
881
- { type: "error", name: "CannotSwapBeforeStartTime", inputs: [] },
882
- { type: "error", name: "SwapBelowRange", inputs: [] },
883
- { type: "error", name: "InvalidStartTime", inputs: [] },
884
- { type: "error", name: "InvalidTickRange", inputs: [] },
885
- { type: "error", name: "InvalidTickSpacing", inputs: [] },
886
- { type: "error", name: "InvalidEpochLength", inputs: [] },
887
- { type: "error", name: "InvalidProceedLimits", inputs: [] },
888
- { type: "error", name: "InvalidNumPDSlugs", inputs: [] },
889
- {
890
- type: "error",
891
- name: "InvalidSwapAfterMaturitySufficientProceeds",
892
- inputs: []
893
- },
894
- {
895
- type: "error",
896
- name: "InvalidSwapAfterMaturityInsufficientProceeds",
897
- inputs: []
898
- },
899
- { type: "error", name: "MaximumProceedsReached", inputs: [] },
900
- { type: "error", name: "SenderNotPoolManager", inputs: [] },
901
- { type: "error", name: "AlreadyInitialized", inputs: [] },
902
- { type: "error", name: "SenderNotInitializer", inputs: [] },
903
- { type: "error", name: "CannotMigrate", inputs: [] },
904
- { type: "error", name: "CannotDonate", inputs: [] }
905
- ];
906
- var quoterV2Abi = [
907
- {
908
- inputs: [
909
- { internalType: "address", name: "_factory", type: "address" },
910
- { internalType: "address", name: "_WETH9", type: "address" }
911
- ],
912
- stateMutability: "nonpayable",
913
- type: "constructor"
914
- },
915
- {
916
- inputs: [],
917
- name: "WETH9",
918
- outputs: [{ internalType: "address", name: "", type: "address" }],
919
- stateMutability: "view",
920
- type: "function"
921
- },
922
- {
923
- inputs: [],
924
- name: "factory",
925
- outputs: [{ internalType: "address", name: "", type: "address" }],
926
- stateMutability: "view",
927
- type: "function"
928
- },
929
- {
930
- inputs: [
931
- { internalType: "bytes", name: "path", type: "bytes" },
932
- { internalType: "uint256", name: "amountIn", type: "uint256" }
933
- ],
934
- name: "quoteExactInput",
935
- outputs: [
936
- { internalType: "uint256", name: "amountOut", type: "uint256" },
937
- {
938
- internalType: "uint160[]",
939
- name: "sqrtPriceX96AfterList",
940
- type: "uint160[]"
941
- },
942
- {
943
- internalType: "uint32[]",
944
- name: "initializedTicksCrossedList",
945
- type: "uint32[]"
946
- },
947
- { internalType: "uint256", name: "gasEstimate", type: "uint256" }
948
- ],
949
- stateMutability: "nonpayable",
950
- type: "function"
951
- },
952
- {
953
- inputs: [
954
- {
955
- components: [
956
- { internalType: "address", name: "tokenIn", type: "address" },
957
- { internalType: "address", name: "tokenOut", type: "address" },
958
- { internalType: "uint256", name: "amountIn", type: "uint256" },
959
- { internalType: "uint24", name: "fee", type: "uint24" },
960
- {
961
- internalType: "uint160",
962
- name: "sqrtPriceLimitX96",
963
- type: "uint160"
964
- }
965
- ],
966
- internalType: "struct IQuoterV2.QuoteExactInputSingleParams",
967
- name: "params",
968
- type: "tuple"
969
- }
970
- ],
971
- name: "quoteExactInputSingle",
972
- outputs: [
973
- { internalType: "uint256", name: "amountOut", type: "uint256" },
974
- { internalType: "uint160", name: "sqrtPriceX96After", type: "uint160" },
975
- {
976
- internalType: "uint32",
977
- name: "initializedTicksCrossed",
978
- type: "uint32"
979
- },
980
- { internalType: "uint256", name: "gasEstimate", type: "uint256" }
981
- ],
982
- stateMutability: "nonpayable",
983
- type: "function"
984
- },
985
- {
986
- inputs: [
987
- { internalType: "bytes", name: "path", type: "bytes" },
988
- { internalType: "uint256", name: "amountOut", type: "uint256" }
989
- ],
990
- name: "quoteExactOutput",
991
- outputs: [
992
- { internalType: "uint256", name: "amountIn", type: "uint256" },
993
- {
994
- internalType: "uint160[]",
995
- name: "sqrtPriceX96AfterList",
996
- type: "uint160[]"
997
- },
998
- {
999
- internalType: "uint32[]",
1000
- name: "initializedTicksCrossedList",
1001
- type: "uint32[]"
1002
- },
1003
- { internalType: "uint256", name: "gasEstimate", type: "uint256" }
1004
- ],
1005
- stateMutability: "nonpayable",
1006
- type: "function"
1007
- },
1008
- {
1009
- inputs: [
1010
- {
1011
- components: [
1012
- { internalType: "address", name: "tokenIn", type: "address" },
1013
- { internalType: "address", name: "tokenOut", type: "address" },
1014
- { internalType: "uint256", name: "amount", type: "uint256" },
1015
- { internalType: "uint24", name: "fee", type: "uint24" },
1016
- {
1017
- internalType: "uint160",
1018
- name: "sqrtPriceLimitX96",
1019
- type: "uint160"
1020
- }
1021
- ],
1022
- internalType: "struct IQuoterV2.QuoteExactOutputSingleParams",
1023
- name: "params",
1024
- type: "tuple"
1025
- }
1026
- ],
1027
- name: "quoteExactOutputSingle",
1028
- outputs: [
1029
- { internalType: "uint256", name: "amountIn", type: "uint256" },
1030
- { internalType: "uint160", name: "sqrtPriceX96After", type: "uint160" },
1031
- {
1032
- internalType: "uint32",
1033
- name: "initializedTicksCrossed",
1034
- type: "uint32"
1035
- },
1036
- { internalType: "uint256", name: "gasEstimate", type: "uint256" }
1037
- ],
1038
- stateMutability: "nonpayable",
1039
- type: "function"
1040
- },
1041
- {
1042
- inputs: [
1043
- { internalType: "int256", name: "amount0Delta", type: "int256" },
1044
- { internalType: "int256", name: "amount1Delta", type: "int256" },
1045
- { internalType: "bytes", name: "_data", type: "bytes" }
1046
- ],
1047
- name: "uniswapV3SwapCallback",
1048
- outputs: [],
1049
- stateMutability: "view",
1050
- type: "function"
1051
- }
1052
- ];
1053
- var uniswapV2Router02Abi = [
1054
- {
1055
- inputs: [
1056
- { internalType: "uint256", name: "amountIn", type: "uint256" },
1057
- { internalType: "address[]", name: "path", type: "address[]" }
1058
- ],
1059
- name: "getAmountsOut",
1060
- outputs: [
1061
- { internalType: "uint256[]", name: "amounts", type: "uint256[]" }
1062
- ],
1063
- stateMutability: "view",
1064
- type: "function"
1065
- },
1066
- {
1067
- inputs: [
1068
- { internalType: "uint256", name: "amountOut", type: "uint256" },
1069
- { internalType: "address[]", name: "path", type: "address[]" }
1070
- ],
1071
- name: "getAmountsIn",
1072
- outputs: [
1073
- { internalType: "uint256[]", name: "amounts", type: "uint256[]" }
1074
- ],
1075
- stateMutability: "view",
1076
- type: "function"
1077
- }
1078
- ];
1079
- var v4QuoterAbi = [
1080
- {
1081
- type: "constructor",
1082
- inputs: [
1083
- {
1084
- name: "_poolManager",
1085
- type: "address",
1086
- internalType: "contract IPoolManager"
1087
- }
1088
- ],
1089
- stateMutability: "nonpayable"
1090
- },
1091
- {
1092
- type: "function",
1093
- name: "quoteExactInputSingle",
1094
- inputs: [
1095
- {
1096
- name: "params",
1097
- type: "tuple",
1098
- internalType: "struct IV4Quoter.QuoteExactSingleParams",
1099
- components: [
1100
- {
1101
- name: "poolKey",
1102
- type: "tuple",
1103
- internalType: "struct PoolKey",
1104
- components: [
1105
- { name: "currency0", type: "address", internalType: "Currency" },
1106
- { name: "currency1", type: "address", internalType: "Currency" },
1107
- { name: "fee", type: "uint24", internalType: "uint24" },
1108
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1109
- {
1110
- name: "hooks",
1111
- type: "address",
1112
- internalType: "contract IHooks"
1113
- }
1114
- ]
1115
- },
1116
- { name: "zeroForOne", type: "bool", internalType: "bool" },
1117
- { name: "exactAmount", type: "uint128", internalType: "uint128" },
1118
- { name: "hookData", type: "bytes", internalType: "bytes" }
1119
- ]
1120
- }
1121
- ],
1122
- outputs: [
1123
- { name: "amountOut", type: "uint256", internalType: "uint256" },
1124
- { name: "gasEstimate", type: "uint256", internalType: "uint256" }
1125
- ],
1126
- stateMutability: "nonpayable"
1127
- },
1128
- {
1129
- type: "function",
1130
- name: "quoteExactOutputSingle",
1131
- inputs: [
1132
- {
1133
- name: "params",
1134
- type: "tuple",
1135
- internalType: "struct IV4Quoter.QuoteExactSingleParams",
1136
- components: [
1137
- {
1138
- name: "poolKey",
1139
- type: "tuple",
1140
- internalType: "struct PoolKey",
1141
- components: [
1142
- { name: "currency0", type: "address", internalType: "Currency" },
1143
- { name: "currency1", type: "address", internalType: "Currency" },
1144
- { name: "fee", type: "uint24", internalType: "uint24" },
1145
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1146
- {
1147
- name: "hooks",
1148
- type: "address",
1149
- internalType: "contract IHooks"
1150
- }
1151
- ]
1152
- },
1153
- { name: "zeroForOne", type: "bool", internalType: "bool" },
1154
- { name: "exactAmount", type: "uint128", internalType: "uint128" },
1155
- { name: "hookData", type: "bytes", internalType: "bytes" }
1156
- ]
1157
- }
1158
- ],
1159
- outputs: [
1160
- { name: "amountIn", type: "uint256", internalType: "uint256" },
1161
- { name: "gasEstimate", type: "uint256", internalType: "uint256" }
1162
- ],
1163
- stateMutability: "nonpayable"
1164
- },
1165
- {
1166
- type: "function",
1167
- name: "poolManager",
1168
- inputs: [],
1169
- outputs: [
1170
- { name: "", type: "address", internalType: "contract IPoolManager" }
1171
- ],
1172
- stateMutability: "view"
1173
- }
1174
- ];
1175
- var lockableUniswapV3InitializerAbi = [
1176
- {
1177
- type: "constructor",
1178
- inputs: [
1179
- { name: "airlock_", type: "address", internalType: "address" },
1180
- {
1181
- name: "factory_",
1182
- type: "address",
1183
- internalType: "contract IUniswapV3Factory"
1184
- }
1185
- ],
1186
- stateMutability: "nonpayable"
1187
- },
1188
- {
1189
- type: "function",
1190
- name: "airlock",
1191
- inputs: [],
1192
- outputs: [{ name: "", type: "address", internalType: "contract Airlock" }],
1193
- stateMutability: "view"
1194
- },
1195
- {
1196
- type: "function",
1197
- name: "collectFees",
1198
- inputs: [{ name: "pool", type: "address", internalType: "address" }],
1199
- outputs: [
1200
- { name: "fees0ToDistribute", type: "uint256", internalType: "uint256" },
1201
- { name: "fees1ToDistribute", type: "uint256", internalType: "uint256" }
1202
- ],
1203
- stateMutability: "nonpayable"
1204
- },
1205
- {
1206
- type: "function",
1207
- name: "exitLiquidity",
1208
- inputs: [{ name: "pool", type: "address", internalType: "address" }],
1209
- outputs: [
1210
- { name: "sqrtPriceX96", type: "uint160", internalType: "uint160" },
1211
- { name: "token0", type: "address", internalType: "address" },
1212
- { name: "fees0", type: "uint128", internalType: "uint128" },
1213
- { name: "balance0", type: "uint128", internalType: "uint128" },
1214
- { name: "token1", type: "address", internalType: "address" },
1215
- { name: "fees1", type: "uint128", internalType: "uint128" },
1216
- { name: "balance1", type: "uint128", internalType: "uint128" }
1217
- ],
1218
- stateMutability: "nonpayable"
1219
- },
1220
- {
1221
- type: "function",
1222
- name: "factory",
1223
- inputs: [],
1224
- outputs: [
1225
- { name: "", type: "address", internalType: "contract IUniswapV3Factory" }
1226
- ],
1227
- stateMutability: "view"
1228
- },
1229
- {
1230
- type: "function",
1231
- name: "getState",
1232
- inputs: [{ name: "pool", type: "address", internalType: "address" }],
1233
- outputs: [
1234
- { name: "asset", type: "address", internalType: "address" },
1235
- { name: "numeraire", type: "address", internalType: "address" },
1236
- { name: "tickLower", type: "int24", internalType: "int24" },
1237
- { name: "tickUpper", type: "int24", internalType: "int24" },
1238
- { name: "maxShareToBeSold", type: "uint256", internalType: "uint256" },
1239
- {
1240
- name: "totalTokensOnBondingCurve",
1241
- type: "uint256",
1242
- internalType: "uint256"
1243
- },
1244
- { name: "status", type: "uint8", internalType: "enum PoolStatus" }
1245
- ],
1246
- stateMutability: "view"
1247
- },
1248
- {
1249
- type: "function",
1250
- name: "initialize",
1251
- inputs: [
1252
- { name: "asset", type: "address", internalType: "address" },
1253
- { name: "numeraire", type: "address", internalType: "address" },
1254
- {
1255
- name: "totalTokensOnBondingCurve",
1256
- type: "uint256",
1257
- internalType: "uint256"
1258
- },
1259
- { name: "", type: "bytes32", internalType: "bytes32" },
1260
- { name: "data", type: "bytes", internalType: "bytes" }
1261
- ],
1262
- outputs: [{ name: "pool", type: "address", internalType: "address" }],
1263
- stateMutability: "nonpayable"
1264
- },
1265
- {
1266
- type: "function",
1267
- name: "uniswapV3MintCallback",
1268
- inputs: [
1269
- { name: "amount0Owed", type: "uint256", internalType: "uint256" },
1270
- { name: "amount1Owed", type: "uint256", internalType: "uint256" },
1271
- { name: "data", type: "bytes", internalType: "bytes" }
1272
- ],
1273
- outputs: [],
1274
- stateMutability: "nonpayable"
1275
- },
1276
- {
1277
- type: "function",
1278
- name: "encodePoolInitializerData",
1279
- inputs: [
1280
- {
1281
- name: "params",
1282
- type: "tuple",
1283
- components: [
1284
- { name: "fee", type: "uint24" },
1285
- { name: "tickLower", type: "int24" },
1286
- { name: "tickUpper", type: "int24" },
1287
- { name: "numPositions", type: "uint16" },
1288
- { name: "maxShareToBeSold", type: "uint256" },
1289
- {
1290
- name: "beneficiaries",
1291
- type: "tuple[]",
1292
- components: [
1293
- { name: "beneficiary", type: "address" },
1294
- { name: "shares", type: "uint96" }
1295
- ]
1296
- }
1297
- ]
1298
- }
1299
- ],
1300
- outputs: [{ name: "", type: "bytes" }],
1301
- stateMutability: "pure"
1302
- },
1303
- {
1304
- type: "event",
1305
- name: "Collect",
1306
- inputs: [
1307
- { name: "pool", type: "address", indexed: true, internalType: "address" },
1308
- {
1309
- name: "beneficiary",
1310
- type: "address",
1311
- indexed: true,
1312
- internalType: "address"
1313
- },
1314
- {
1315
- name: "fees0",
1316
- type: "uint256",
1317
- indexed: false,
1318
- internalType: "uint256"
1319
- },
1320
- {
1321
- name: "fees1",
1322
- type: "uint256",
1323
- indexed: false,
1324
- internalType: "uint256"
1325
- }
1326
- ],
1327
- anonymous: false
1328
- },
1329
- {
1330
- type: "event",
1331
- name: "Create",
1332
- inputs: [
1333
- {
1334
- name: "poolOrHook",
1335
- type: "address",
1336
- indexed: true,
1337
- internalType: "address"
1338
- },
1339
- {
1340
- name: "asset",
1341
- type: "address",
1342
- indexed: true,
1343
- internalType: "address"
1344
- },
1345
- {
1346
- name: "numeraire",
1347
- type: "address",
1348
- indexed: true,
1349
- internalType: "address"
1350
- }
1351
- ],
1352
- anonymous: false
1353
- },
1354
- {
1355
- type: "event",
1356
- name: "Lock",
1357
- inputs: [
1358
- { name: "pool", type: "address", indexed: true, internalType: "address" },
1359
- {
1360
- name: "beneficiaries",
1361
- type: "tuple[]",
1362
- indexed: false,
1363
- internalType: "struct BeneficiaryData[]",
1364
- components: [
1365
- { name: "beneficiary", type: "address", internalType: "address" },
1366
- { name: "shares", type: "uint96", internalType: "uint96" }
1367
- ]
1368
- }
1369
- ],
1370
- anonymous: false
1371
- },
1372
- {
1373
- type: "error",
1374
- name: "CannotMigrateInsufficientTick",
1375
- inputs: [
1376
- { name: "targetTick", type: "int24", internalType: "int24" },
1377
- { name: "currentTick", type: "int24", internalType: "int24" }
1378
- ]
1379
- },
1380
- { type: "error", name: "CannotMintZeroLiquidity", inputs: [] },
1381
- {
1382
- type: "error",
1383
- name: "InvalidFee",
1384
- inputs: [{ name: "fee", type: "uint24", internalType: "uint24" }]
1385
- },
1386
- {
1387
- type: "error",
1388
- name: "InvalidTickRange",
1389
- inputs: [
1390
- { name: "tick", type: "int24", internalType: "int24" },
1391
- { name: "tickSpacing", type: "int24", internalType: "int24" }
1392
- ]
1393
- },
1394
- {
1395
- type: "error",
1396
- name: "InvalidTickRangeMisordered",
1397
- inputs: [
1398
- { name: "tickLower", type: "int24", internalType: "int24" },
1399
- { name: "tickUpper", type: "int24", internalType: "int24" }
1400
- ]
1401
- },
1402
- {
1403
- type: "error",
1404
- name: "MaxShareToBeSoldExceeded",
1405
- inputs: [
1406
- { name: "value", type: "uint256", internalType: "uint256" },
1407
- { name: "limit", type: "uint256", internalType: "uint256" }
1408
- ]
1409
- },
1410
- { type: "error", name: "OnlyPool", inputs: [] },
1411
- { type: "error", name: "PoolAlreadyExited", inputs: [] },
1412
- { type: "error", name: "PoolAlreadyInitialized", inputs: [] },
1413
- { type: "error", name: "PoolLocked", inputs: [] },
1414
- { type: "error", name: "SenderNotAirlock", inputs: [] },
1415
- { type: "error", name: "UnorderedBeneficiaries", inputs: [] },
1416
- { type: "error", name: "InvalidShares", inputs: [] },
1417
- { type: "error", name: "InvalidTotalShares", inputs: [] },
1418
- { type: "error", name: "InvalidProtocolOwnerShares", inputs: [] },
1419
- { type: "error", name: "InvalidProtocolOwnerBeneficiary", inputs: [] }
1420
- ];
1421
- var v4MulticurveInitializerAbi = [
1422
- {
1423
- type: "function",
1424
- name: "airlock",
1425
- inputs: [],
1426
- outputs: [{ name: "", type: "address", internalType: "contract Airlock" }],
1427
- stateMutability: "view"
1428
- },
1429
- {
1430
- type: "function",
1431
- name: "HOOK",
1432
- inputs: [],
1433
- outputs: [{ name: "", type: "address", internalType: "contract IHooks" }],
1434
- stateMutability: "view"
1435
- },
1436
- {
1437
- type: "function",
1438
- name: "collectFees",
1439
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
1440
- outputs: [
1441
- { name: "fees0", type: "uint128", internalType: "uint128" },
1442
- { name: "fees1", type: "uint128", internalType: "uint128" }
1443
- ],
1444
- stateMutability: "nonpayable"
1445
- },
1446
- {
1447
- type: "function",
1448
- name: "getState",
1449
- inputs: [{ name: "asset", type: "address", internalType: "address" }],
1450
- outputs: [
1451
- { name: "numeraire", type: "address", internalType: "address" },
1452
- { name: "status", type: "uint8", internalType: "enum PoolStatus" },
1453
- {
1454
- name: "poolKey",
1455
- type: "tuple",
1456
- internalType: "struct PoolKey",
1457
- components: [
1458
- { name: "currency0", type: "address", internalType: "Currency" },
1459
- { name: "currency1", type: "address", internalType: "Currency" },
1460
- { name: "fee", type: "uint24", internalType: "uint24" },
1461
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1462
- { name: "hooks", type: "address", internalType: "contract IHooks" }
1463
- ]
1464
- },
1465
- { name: "farTick", type: "int24", internalType: "int24" }
1466
- ],
1467
- stateMutability: "view"
1468
- },
1469
- {
1470
- type: "event",
1471
- name: "Collect",
1472
- inputs: [
1473
- { name: "pool", type: "address", indexed: true, internalType: "address" },
1474
- {
1475
- name: "beneficiary",
1476
- type: "address",
1477
- indexed: true,
1478
- internalType: "address"
1479
- },
1480
- {
1481
- name: "fees0",
1482
- type: "uint256",
1483
- indexed: false,
1484
- internalType: "uint256"
1485
- },
1486
- {
1487
- name: "fees1",
1488
- type: "uint256",
1489
- indexed: false,
1490
- internalType: "uint256"
1491
- }
1492
- ],
1493
- anonymous: false
1494
- },
1495
- {
1496
- type: "event",
1497
- name: "Create",
1498
- inputs: [
1499
- {
1500
- name: "poolOrHook",
1501
- type: "address",
1502
- indexed: true,
1503
- internalType: "address"
1504
- },
1505
- {
1506
- name: "asset",
1507
- type: "address",
1508
- indexed: true,
1509
- internalType: "address"
1510
- },
1511
- {
1512
- name: "numeraire",
1513
- type: "address",
1514
- indexed: true,
1515
- internalType: "address"
1516
- }
1517
- ],
1518
- anonymous: false
1519
- },
1520
- {
1521
- type: "event",
1522
- name: "Lock",
1523
- inputs: [
1524
- { name: "pool", type: "address", indexed: true, internalType: "address" },
1525
- {
1526
- name: "beneficiaries",
1527
- type: "tuple[]",
1528
- indexed: false,
1529
- internalType: "struct BeneficiaryData[]",
1530
- components: [
1531
- { name: "beneficiary", type: "address", internalType: "address" },
1532
- { name: "shares", type: "uint96", internalType: "uint96" }
1533
- ]
1534
- }
1535
- ],
1536
- anonymous: false
1537
- },
1538
- { type: "error", name: "PoolLocked", inputs: [] },
1539
- { type: "error", name: "PoolNotLocked", inputs: [] },
1540
- { type: "error", name: "PoolAlreadyInitialized", inputs: [] },
1541
- { type: "error", name: "PoolAlreadyExited", inputs: [] },
1542
- {
1543
- type: "error",
1544
- name: "CannotMigrateInsufficientTick",
1545
- inputs: [
1546
- { name: "targetTick", type: "int24", internalType: "int24" },
1547
- { name: "currentTick", type: "int24", internalType: "int24" }
1548
- ]
1549
- },
1550
- { type: "error", name: "SenderNotAirlock", inputs: [] },
1551
- { type: "error", name: "UnorderedBeneficiaries", inputs: [] },
1552
- { type: "error", name: "InvalidShares", inputs: [] },
1553
- { type: "error", name: "InvalidTotalShares", inputs: [] },
1554
- { type: "error", name: "InvalidProtocolOwnerShares", inputs: [] },
1555
- { type: "error", name: "InvalidProtocolOwnerBeneficiary", inputs: [] }
1556
- ];
1557
- var decayMulticurveInitializerHookAbi = [
1558
- {
1559
- type: "function",
1560
- name: "getFeeScheduleOf",
1561
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
1562
- outputs: [
1563
- { name: "startingTime", type: "uint32", internalType: "uint32" },
1564
- { name: "startFee", type: "uint24", internalType: "uint24" },
1565
- { name: "endFee", type: "uint24", internalType: "uint24" },
1566
- { name: "lastFee", type: "uint24", internalType: "uint24" },
1567
- { name: "durationSeconds", type: "uint32", internalType: "uint32" }
1568
- ],
1569
- stateMutability: "view"
1570
- }
1571
- ];
1572
- var streamableFeesLockerAbi = [
1573
- {
1574
- type: "function",
1575
- name: "collectFees",
1576
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
1577
- outputs: [
1578
- { name: "fees0", type: "uint128", internalType: "uint128" },
1579
- { name: "fees1", type: "uint128", internalType: "uint128" }
1580
- ],
1581
- stateMutability: "nonpayable"
1582
- },
1583
- {
1584
- type: "function",
1585
- name: "streams",
1586
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
1587
- outputs: [
1588
- {
1589
- name: "poolKey",
1590
- type: "tuple",
1591
- internalType: "struct PoolKey",
1592
- components: [
1593
- { name: "currency0", type: "address", internalType: "Currency" },
1594
- { name: "currency1", type: "address", internalType: "Currency" },
1595
- { name: "fee", type: "uint24", internalType: "uint24" },
1596
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1597
- { name: "hooks", type: "address", internalType: "contract IHooks" }
1598
- ]
1599
- },
1600
- { name: "recipient", type: "address", internalType: "address" },
1601
- { name: "startDate", type: "uint32", internalType: "uint32" },
1602
- { name: "lockDuration", type: "uint32", internalType: "uint32" },
1603
- { name: "isUnlocked", type: "bool", internalType: "bool" },
1604
- {
1605
- name: "beneficiaries",
1606
- type: "tuple[]",
1607
- internalType: "struct BeneficiaryData[]",
1608
- components: [
1609
- { name: "beneficiary", type: "address", internalType: "address" },
1610
- { name: "shares", type: "uint96", internalType: "uint96" }
1611
- ]
1612
- },
1613
- {
1614
- name: "positions",
1615
- type: "tuple[]",
1616
- internalType: "struct Position[]",
1617
- components: [
1618
- { name: "tickLower", type: "int24", internalType: "int24" },
1619
- { name: "tickUpper", type: "int24", internalType: "int24" },
1620
- { name: "liquidity", type: "uint128", internalType: "uint128" },
1621
- { name: "salt", type: "bytes32", internalType: "bytes32" }
1622
- ]
1623
- }
1624
- ],
1625
- stateMutability: "view"
1626
- },
1627
- // StreamableFeesLocker errors
1628
- { type: "error", name: "NonPositionManager", inputs: [] },
1629
- { type: "error", name: "NotApprovedMigrator", inputs: [] },
1630
- { type: "error", name: "PositionNotFound", inputs: [] },
1631
- { type: "error", name: "PositionAlreadyUnlocked", inputs: [] },
1632
- { type: "error", name: "InvalidBeneficiary", inputs: [] }
1633
- ];
1634
- var v4MulticurveMigratorAbi = [
1635
- {
1636
- type: "function",
1637
- name: "getAssetData",
1638
- inputs: [
1639
- { name: "token0", type: "address", internalType: "address" },
1640
- { name: "token1", type: "address", internalType: "address" }
1641
- ],
1642
- outputs: [
1643
- { name: "isToken0", type: "bool", internalType: "bool" },
1644
- {
1645
- name: "poolKey",
1646
- type: "tuple",
1647
- internalType: "struct PoolKey",
1648
- components: [
1649
- { name: "currency0", type: "address", internalType: "Currency" },
1650
- { name: "currency1", type: "address", internalType: "Currency" },
1651
- { name: "fee", type: "uint24", internalType: "uint24" },
1652
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1653
- { name: "hooks", type: "address", internalType: "contract IHooks" }
1654
- ]
1655
- },
1656
- { name: "lockDuration", type: "uint32", internalType: "uint32" },
1657
- {
1658
- name: "curves",
1659
- type: "tuple[]",
1660
- internalType: "struct Curve[]",
1661
- components: [
1662
- { name: "tickLower", type: "int24", internalType: "int24" },
1663
- { name: "tickUpper", type: "int24", internalType: "int24" },
1664
- { name: "numPositions", type: "uint16", internalType: "uint16" },
1665
- { name: "shares", type: "uint256", internalType: "uint256" }
1666
- ]
1667
- },
1668
- {
1669
- name: "beneficiaries",
1670
- type: "tuple[]",
1671
- internalType: "struct BeneficiaryData[]",
1672
- components: [
1673
- { name: "beneficiary", type: "address", internalType: "address" },
1674
- { name: "shares", type: "uint96", internalType: "uint96" }
1675
- ]
1676
- }
1677
- ],
1678
- stateMutability: "view"
1679
- },
1680
- {
1681
- type: "function",
1682
- name: "locker",
1683
- inputs: [],
1684
- outputs: [
1685
- {
1686
- name: "",
1687
- type: "address",
1688
- internalType: "contract StreamableFeesLockerV2"
1689
- }
1690
- ],
1691
- stateMutability: "view"
1692
- },
1693
- // V4 Multicurve Migrator errors
1694
- { type: "error", name: "PoolNotInitialized", inputs: [] }
1695
- ];
1696
- var dopplerLensAbi = [
1697
- {
1698
- type: "function",
1699
- name: "quoteDopplerLensData",
1700
- inputs: [
1701
- {
1702
- name: "params",
1703
- type: "tuple",
1704
- internalType: "struct IV4Quoter.QuoteExactSingleParams",
1705
- components: [
1706
- {
1707
- name: "poolKey",
1708
- type: "tuple",
1709
- internalType: "struct PoolKey",
1710
- components: [
1711
- { name: "currency0", type: "address", internalType: "Currency" },
1712
- { name: "currency1", type: "address", internalType: "Currency" },
1713
- { name: "fee", type: "uint24", internalType: "uint24" },
1714
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1715
- {
1716
- name: "hooks",
1717
- type: "address",
1718
- internalType: "contract IHooks"
1719
- }
1720
- ]
1721
- },
1722
- { name: "zeroForOne", type: "bool", internalType: "bool" },
1723
- { name: "exactAmount", type: "uint128", internalType: "uint128" },
1724
- { name: "hookData", type: "bytes", internalType: "bytes" }
1725
- ]
1726
- }
1727
- ],
1728
- outputs: [
1729
- {
1730
- name: "returnData",
1731
- type: "tuple",
1732
- internalType: "struct DopplerLensReturnData",
1733
- components: [
1734
- { name: "sqrtPriceX96", type: "uint160", internalType: "uint160" },
1735
- { name: "amount0", type: "uint256", internalType: "uint256" },
1736
- { name: "amount1", type: "uint256", internalType: "uint256" },
1737
- { name: "tick", type: "int24", internalType: "int24" }
1738
- ]
1739
- }
1740
- ],
1741
- stateMutability: "nonpayable"
1742
- }
1743
- ];
1744
- var bundlerAbi = [
1745
- {
1746
- type: "function",
1747
- name: "bundle",
1748
- inputs: [
1749
- {
1750
- name: "createData",
1751
- type: "tuple",
1752
- internalType: "struct CreateParams",
1753
- components: [
1754
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
1755
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
1756
- { name: "numeraire", type: "address", internalType: "address" },
1757
- {
1758
- name: "tokenFactory",
1759
- type: "address",
1760
- internalType: "contract ITokenFactory"
1761
- },
1762
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
1763
- {
1764
- name: "governanceFactory",
1765
- type: "address",
1766
- internalType: "contract IGovernanceFactory"
1767
- },
1768
- {
1769
- name: "governanceFactoryData",
1770
- type: "bytes",
1771
- internalType: "bytes"
1772
- },
1773
- {
1774
- name: "poolInitializer",
1775
- type: "address",
1776
- internalType: "contract IPoolInitializer"
1777
- },
1778
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
1779
- {
1780
- name: "liquidityMigrator",
1781
- type: "address",
1782
- internalType: "contract ILiquidityMigrator"
1783
- },
1784
- {
1785
- name: "liquidityMigratorData",
1786
- type: "bytes",
1787
- internalType: "bytes"
1788
- },
1789
- { name: "integrator", type: "address", internalType: "address" },
1790
- { name: "salt", type: "bytes32", internalType: "bytes32" }
1791
- ]
1792
- },
1793
- { name: "commands", type: "bytes", internalType: "bytes" },
1794
- { name: "inputs", type: "bytes[]", internalType: "bytes[]" }
1795
- ],
1796
- outputs: [],
1797
- stateMutability: "payable"
1798
- },
1799
- {
1800
- type: "function",
1801
- name: "simulateBundleExactIn",
1802
- inputs: [
1803
- {
1804
- name: "createData",
1805
- type: "tuple",
1806
- internalType: "struct CreateParams",
1807
- components: [
1808
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
1809
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
1810
- { name: "numeraire", type: "address", internalType: "address" },
1811
- {
1812
- name: "tokenFactory",
1813
- type: "address",
1814
- internalType: "contract ITokenFactory"
1815
- },
1816
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
1817
- {
1818
- name: "governanceFactory",
1819
- type: "address",
1820
- internalType: "contract IGovernanceFactory"
1821
- },
1822
- {
1823
- name: "governanceFactoryData",
1824
- type: "bytes",
1825
- internalType: "bytes"
1826
- },
1827
- {
1828
- name: "poolInitializer",
1829
- type: "address",
1830
- internalType: "contract IPoolInitializer"
1831
- },
1832
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
1833
- {
1834
- name: "liquidityMigrator",
1835
- type: "address",
1836
- internalType: "contract ILiquidityMigrator"
1837
- },
1838
- {
1839
- name: "liquidityMigratorData",
1840
- type: "bytes",
1841
- internalType: "bytes"
1842
- },
1843
- { name: "integrator", type: "address", internalType: "address" },
1844
- { name: "salt", type: "bytes32", internalType: "bytes32" }
1845
- ]
1846
- },
1847
- {
1848
- name: "params",
1849
- type: "tuple",
1850
- internalType: "struct IQuoterV2.QuoteExactInputSingleParams",
1851
- components: [
1852
- { name: "tokenIn", type: "address", internalType: "address" },
1853
- { name: "tokenOut", type: "address", internalType: "address" },
1854
- { name: "amountIn", type: "uint256", internalType: "uint256" },
1855
- { name: "fee", type: "uint24", internalType: "uint24" },
1856
- {
1857
- name: "sqrtPriceLimitX96",
1858
- type: "uint160",
1859
- internalType: "uint160"
1860
- }
1861
- ]
1862
- }
1863
- ],
1864
- outputs: [{ name: "amountOut", type: "uint256", internalType: "uint256" }],
1865
- stateMutability: "nonpayable"
1866
- },
1867
- {
1868
- type: "function",
1869
- name: "simulateBundleExactOut",
1870
- inputs: [
1871
- {
1872
- name: "createData",
1873
- type: "tuple",
1874
- internalType: "struct CreateParams",
1875
- components: [
1876
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
1877
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
1878
- { name: "numeraire", type: "address", internalType: "address" },
1879
- {
1880
- name: "tokenFactory",
1881
- type: "address",
1882
- internalType: "contract ITokenFactory"
1883
- },
1884
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
1885
- {
1886
- name: "governanceFactory",
1887
- type: "address",
1888
- internalType: "contract IGovernanceFactory"
1889
- },
1890
- {
1891
- name: "governanceFactoryData",
1892
- type: "bytes",
1893
- internalType: "bytes"
1894
- },
1895
- {
1896
- name: "poolInitializer",
1897
- type: "address",
1898
- internalType: "contract IPoolInitializer"
1899
- },
1900
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
1901
- {
1902
- name: "liquidityMigrator",
1903
- type: "address",
1904
- internalType: "contract ILiquidityMigrator"
1905
- },
1906
- {
1907
- name: "liquidityMigratorData",
1908
- type: "bytes",
1909
- internalType: "bytes"
1910
- },
1911
- { name: "integrator", type: "address", internalType: "address" },
1912
- { name: "salt", type: "bytes32", internalType: "bytes32" }
1913
- ]
1914
- },
1915
- {
1916
- name: "params",
1917
- type: "tuple",
1918
- internalType: "struct IQuoterV2.QuoteExactOutputSingleParams",
1919
- components: [
1920
- { name: "tokenIn", type: "address", internalType: "address" },
1921
- { name: "tokenOut", type: "address", internalType: "address" },
1922
- { name: "amount", type: "uint256", internalType: "uint256" },
1923
- { name: "fee", type: "uint24", internalType: "uint24" },
1924
- {
1925
- name: "sqrtPriceLimitX96",
1926
- type: "uint160",
1927
- internalType: "uint160"
1928
- }
1929
- ]
1930
- }
1931
- ],
1932
- outputs: [{ name: "amountIn", type: "uint256", internalType: "uint256" }],
1933
- stateMutability: "nonpayable"
1934
- },
1935
- {
1936
- type: "function",
1937
- name: "simulateMulticurveBundleExactOut",
1938
- inputs: [
1939
- {
1940
- name: "createData",
1941
- type: "tuple",
1942
- internalType: "struct CreateParams",
1943
- components: [
1944
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
1945
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
1946
- { name: "numeraire", type: "address", internalType: "address" },
1947
- {
1948
- name: "tokenFactory",
1949
- type: "address",
1950
- internalType: "contract ITokenFactory"
1951
- },
1952
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
1953
- {
1954
- name: "governanceFactory",
1955
- type: "address",
1956
- internalType: "contract IGovernanceFactory"
1957
- },
1958
- {
1959
- name: "governanceFactoryData",
1960
- type: "bytes",
1961
- internalType: "bytes"
1962
- },
1963
- {
1964
- name: "poolInitializer",
1965
- type: "address",
1966
- internalType: "contract IPoolInitializer"
1967
- },
1968
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
1969
- {
1970
- name: "liquidityMigrator",
1971
- type: "address",
1972
- internalType: "contract ILiquidityMigrator"
1973
- },
1974
- {
1975
- name: "liquidityMigratorData",
1976
- type: "bytes",
1977
- internalType: "bytes"
1978
- },
1979
- { name: "integrator", type: "address", internalType: "address" },
1980
- { name: "salt", type: "bytes32", internalType: "bytes32" }
1981
- ]
1982
- },
1983
- { name: "exactAmountOut", type: "uint128", internalType: "uint128" },
1984
- { name: "hookData", type: "bytes", internalType: "bytes" }
1985
- ],
1986
- outputs: [
1987
- { name: "asset", type: "address", internalType: "address" },
1988
- {
1989
- name: "poolKey",
1990
- type: "tuple",
1991
- internalType: "struct PoolKey",
1992
- components: [
1993
- { name: "currency0", type: "address", internalType: "Currency" },
1994
- { name: "currency1", type: "address", internalType: "Currency" },
1995
- { name: "fee", type: "uint24", internalType: "uint24" },
1996
- { name: "tickSpacing", type: "int24", internalType: "int24" },
1997
- { name: "hooks", type: "address", internalType: "contract IHooks" }
1998
- ]
1999
- },
2000
- { name: "amountIn", type: "uint256", internalType: "uint256" },
2001
- { name: "gasEstimate", type: "uint256", internalType: "uint256" }
2002
- ],
2003
- stateMutability: "nonpayable"
2004
- },
2005
- {
2006
- type: "function",
2007
- name: "simulateMulticurveBundleExactIn",
2008
- inputs: [
2009
- {
2010
- name: "createData",
2011
- type: "tuple",
2012
- internalType: "struct CreateParams",
2013
- components: [
2014
- { name: "initialSupply", type: "uint256", internalType: "uint256" },
2015
- { name: "numTokensToSell", type: "uint256", internalType: "uint256" },
2016
- { name: "numeraire", type: "address", internalType: "address" },
2017
- {
2018
- name: "tokenFactory",
2019
- type: "address",
2020
- internalType: "contract ITokenFactory"
2021
- },
2022
- { name: "tokenFactoryData", type: "bytes", internalType: "bytes" },
2023
- {
2024
- name: "governanceFactory",
2025
- type: "address",
2026
- internalType: "contract IGovernanceFactory"
2027
- },
2028
- {
2029
- name: "governanceFactoryData",
2030
- type: "bytes",
2031
- internalType: "bytes"
2032
- },
2033
- {
2034
- name: "poolInitializer",
2035
- type: "address",
2036
- internalType: "contract IPoolInitializer"
2037
- },
2038
- { name: "poolInitializerData", type: "bytes", internalType: "bytes" },
2039
- {
2040
- name: "liquidityMigrator",
2041
- type: "address",
2042
- internalType: "contract ILiquidityMigrator"
2043
- },
2044
- {
2045
- name: "liquidityMigratorData",
2046
- type: "bytes",
2047
- internalType: "bytes"
2048
- },
2049
- { name: "integrator", type: "address", internalType: "address" },
2050
- { name: "salt", type: "bytes32", internalType: "bytes32" }
2051
- ]
2052
- },
2053
- { name: "exactAmountIn", type: "uint128", internalType: "uint128" },
2054
- { name: "hookData", type: "bytes", internalType: "bytes" }
2055
- ],
2056
- outputs: [
2057
- { name: "asset", type: "address", internalType: "address" },
2058
- {
2059
- name: "poolKey",
2060
- type: "tuple",
2061
- internalType: "struct PoolKey",
2062
- components: [
2063
- { name: "currency0", type: "address", internalType: "Currency" },
2064
- { name: "currency1", type: "address", internalType: "Currency" },
2065
- { name: "fee", type: "uint24", internalType: "uint24" },
2066
- { name: "tickSpacing", type: "int24", internalType: "int24" },
2067
- { name: "hooks", type: "address", internalType: "contract IHooks" }
2068
- ]
2069
- },
2070
- { name: "amountOut", type: "uint256", internalType: "uint256" },
2071
- { name: "gasEstimate", type: "uint256", internalType: "uint256" }
2072
- ],
2073
- stateMutability: "nonpayable"
2074
- },
2075
- { type: "error", name: "InvalidAddresses", inputs: [] },
2076
- { type: "error", name: "InvalidBundleData", inputs: [] },
2077
- { type: "error", name: "InvalidOutputToken", inputs: [] }
2078
- ];
2079
- var poolManagerAbi = [
2080
- {
2081
- type: "function",
2082
- name: "swap",
2083
- inputs: [
2084
- {
2085
- name: "key",
2086
- type: "tuple",
2087
- internalType: "struct PoolKey",
2088
- components: [
2089
- { name: "currency0", type: "address", internalType: "Currency" },
2090
- { name: "currency1", type: "address", internalType: "Currency" },
2091
- { name: "fee", type: "uint24", internalType: "uint24" },
2092
- { name: "tickSpacing", type: "int24", internalType: "int24" },
2093
- { name: "hooks", type: "address", internalType: "contract IHooks" }
2094
- ]
2095
- },
2096
- {
2097
- name: "params",
2098
- type: "tuple",
2099
- internalType: "struct IPoolManager.SwapParams",
2100
- components: [
2101
- { name: "zeroForOne", type: "bool", internalType: "bool" },
2102
- { name: "amountSpecified", type: "int256", internalType: "int256" },
2103
- {
2104
- name: "sqrtPriceLimitX96",
2105
- type: "uint160",
2106
- internalType: "uint160"
2107
- }
2108
- ]
2109
- },
2110
- { name: "hookData", type: "bytes", internalType: "bytes" }
2111
- ],
2112
- outputs: [
2113
- { name: "swapDelta", type: "int256", internalType: "BalanceDelta" }
2114
- ],
2115
- stateMutability: "nonpayable"
2116
- }
2117
- ];
2118
- var weth9Abi = [
2119
- {
2120
- type: "function",
2121
- name: "deposit",
2122
- inputs: [],
2123
- outputs: [],
2124
- stateMutability: "payable"
2125
- },
2126
- {
2127
- type: "function",
2128
- name: "withdraw",
2129
- inputs: [{ name: "wad", type: "uint256", internalType: "uint256" }],
2130
- outputs: [],
2131
- stateMutability: "nonpayable"
2132
- },
2133
- {
2134
- type: "function",
2135
- name: "approve",
2136
- inputs: [
2137
- { name: "spender", type: "address", internalType: "address" },
2138
- { name: "amount", type: "uint256", internalType: "uint256" }
2139
- ],
2140
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
2141
- stateMutability: "nonpayable"
2142
- },
2143
- {
2144
- type: "function",
2145
- name: "balanceOf",
2146
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
2147
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
2148
- stateMutability: "view"
2149
- }
2150
- ];
2151
- var rehypeDopplerHookAbi = [
2152
- {
2153
- type: "function",
2154
- name: "INITIALIZER",
2155
- inputs: [],
2156
- outputs: [{ name: "", type: "address", internalType: "address" }],
2157
- stateMutability: "view"
2158
- },
2159
- {
2160
- type: "function",
2161
- name: "collectFees",
2162
- inputs: [{ name: "asset", type: "address", internalType: "address" }],
2163
- outputs: [{ name: "fees", type: "int256", internalType: "BalanceDelta" }],
2164
- stateMutability: "nonpayable"
2165
- },
2166
- {
2167
- type: "function",
2168
- name: "getFeeDistributionInfo",
2169
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
2170
- outputs: [
2171
- {
2172
- name: "assetBuybackPercentWad",
2173
- type: "uint256",
2174
- internalType: "uint256"
2175
- },
2176
- {
2177
- name: "numeraireBuybackPercentWad",
2178
- type: "uint256",
2179
- internalType: "uint256"
2180
- },
2181
- {
2182
- name: "beneficiaryPercentWad",
2183
- type: "uint256",
2184
- internalType: "uint256"
2185
- },
2186
- { name: "lpPercentWad", type: "uint256", internalType: "uint256" }
2187
- ],
2188
- stateMutability: "view"
2189
- },
2190
- {
2191
- type: "function",
2192
- name: "getHookFees",
2193
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
2194
- outputs: [
2195
- { name: "fees0", type: "uint128", internalType: "uint128" },
2196
- { name: "fees1", type: "uint128", internalType: "uint128" },
2197
- { name: "beneficiaryFees0", type: "uint128", internalType: "uint128" },
2198
- { name: "beneficiaryFees1", type: "uint128", internalType: "uint128" },
2199
- { name: "customFee", type: "uint24", internalType: "uint24" }
2200
- ],
2201
- stateMutability: "view"
2202
- },
2203
- {
2204
- type: "function",
2205
- name: "getPoolInfo",
2206
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
2207
- outputs: [
2208
- { name: "asset", type: "address", internalType: "address" },
2209
- { name: "numeraire", type: "address", internalType: "address" },
2210
- { name: "buybackDst", type: "address", internalType: "address" }
2211
- ],
2212
- stateMutability: "view"
2213
- },
2214
- {
2215
- type: "function",
2216
- name: "getPosition",
2217
- inputs: [{ name: "poolId", type: "bytes32", internalType: "PoolId" }],
2218
- outputs: [
2219
- { name: "tickLower", type: "int24", internalType: "int24" },
2220
- { name: "tickUpper", type: "int24", internalType: "int24" },
2221
- { name: "liquidity", type: "uint128", internalType: "uint128" },
2222
- { name: "salt", type: "bytes32", internalType: "bytes32" }
2223
- ],
2224
- stateMutability: "view"
2225
- },
2226
- {
2227
- type: "function",
2228
- name: "poolManager",
2229
- inputs: [],
2230
- outputs: [
2231
- { name: "", type: "address", internalType: "contract IPoolManager" }
2232
- ],
2233
- stateMutability: "view"
2234
- },
2235
- {
2236
- type: "function",
2237
- name: "quoter",
2238
- inputs: [],
2239
- outputs: [{ name: "", type: "address", internalType: "contract Quoter" }],
2240
- stateMutability: "view"
2241
- },
2242
- {
2243
- type: "function",
2244
- name: "setFeeDistribution",
2245
- inputs: [
2246
- { name: "poolId", type: "bytes32", internalType: "PoolId" },
2247
- {
2248
- name: "assetBuybackPercentWad",
2249
- type: "uint256",
2250
- internalType: "uint256"
2251
- },
2252
- {
2253
- name: "numeraireBuybackPercentWad",
2254
- type: "uint256",
2255
- internalType: "uint256"
2256
- },
2257
- {
2258
- name: "beneficiaryPercentWad",
2259
- type: "uint256",
2260
- internalType: "uint256"
2261
- },
2262
- { name: "lpPercentWad", type: "uint256", internalType: "uint256" }
2263
- ],
2264
- outputs: [],
2265
- stateMutability: "nonpayable"
2266
- },
2267
- { type: "error", name: "FeeDistributionMustAddUpToWAD", inputs: [] },
2268
- { type: "error", name: "SenderNotInitializer", inputs: [] }
2269
- ];
2270
-
2271
- exports.airlockAbi = airlockAbi;
2272
- exports.bundlerAbi = bundlerAbi;
2273
- exports.decayMulticurveInitializerHookAbi = decayMulticurveInitializerHookAbi;
2274
- exports.derc20Abi = derc20Abi;
2275
- exports.dopplerHookAbi = dopplerHookAbi;
2276
- exports.dopplerLensAbi = dopplerLensAbi;
2277
- exports.lockableUniswapV3InitializerAbi = lockableUniswapV3InitializerAbi;
2278
- exports.poolManagerAbi = poolManagerAbi;
2279
- exports.quoterV2Abi = quoterV2Abi;
2280
- exports.rehypeDopplerHookAbi = rehypeDopplerHookAbi;
2281
- exports.streamableFeesLockerAbi = streamableFeesLockerAbi;
2282
- exports.uniswapV2Router02Abi = uniswapV2Router02Abi;
2283
- exports.uniswapV3InitializerAbi = uniswapV3InitializerAbi;
2284
- exports.uniswapV3PoolAbi = uniswapV3PoolAbi;
2285
- exports.uniswapV4InitializerAbi = uniswapV4InitializerAbi;
2286
- exports.v2MigratorAbi = v2MigratorAbi;
2287
- exports.v3MigratorAbi = v3MigratorAbi;
2288
- exports.v4MigratorAbi = v4MigratorAbi;
2289
- exports.v4MulticurveInitializerAbi = v4MulticurveInitializerAbi;
2290
- exports.v4MulticurveMigratorAbi = v4MulticurveMigratorAbi;
2291
- exports.v4QuoterAbi = v4QuoterAbi;
2292
- exports.weth9Abi = weth9Abi;
2293
- //# sourceMappingURL=chunk-3MVW6UIW.js.map
2294
- //# sourceMappingURL=chunk-3MVW6UIW.js.map