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