@whetstone-research/doppler-sdk 0.0.1-alpha.8 → 0.0.1

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 (368) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +726 -25
  3. package/dist/DopplerSDK.d.mts +45 -7
  4. package/dist/DopplerSDK.d.ts +45 -7
  5. package/dist/DopplerSDK.js +35 -12
  6. package/dist/DopplerSDK.mjs +34 -11
  7. package/dist/abis/bytecodes.d.mts +3 -2
  8. package/dist/abis/bytecodes.d.ts +3 -2
  9. package/dist/abis/bytecodes.js +9 -6
  10. package/dist/abis/bytecodes.mjs +1 -2
  11. package/dist/abis/index.d.mts +1507 -129
  12. package/dist/abis/index.d.ts +1507 -129
  13. package/dist/abis/index.js +43 -20
  14. package/dist/abis/index.mjs +2 -3
  15. package/dist/addresses.d.mts +16 -3
  16. package/dist/addresses.d.ts +16 -3
  17. package/dist/addresses.js +13 -5
  18. package/dist/addresses.mjs +2 -2
  19. package/dist/builders/DynamicAuctionBuilder.d.mts +119 -0
  20. package/dist/builders/DynamicAuctionBuilder.d.ts +119 -0
  21. package/dist/builders/DynamicAuctionBuilder.js +29 -0
  22. package/dist/builders/DynamicAuctionBuilder.js.map +1 -0
  23. package/dist/builders/DynamicAuctionBuilder.mjs +20 -0
  24. package/dist/builders/DynamicAuctionBuilder.mjs.map +1 -0
  25. package/dist/builders/MulticurveBuilder.d.mts +132 -0
  26. package/dist/builders/MulticurveBuilder.d.ts +132 -0
  27. package/dist/builders/MulticurveBuilder.js +29 -0
  28. package/dist/builders/MulticurveBuilder.js.map +1 -0
  29. package/dist/builders/MulticurveBuilder.mjs +20 -0
  30. package/dist/builders/MulticurveBuilder.mjs.map +1 -0
  31. package/dist/builders/StaticAuctionBuilder.d.mts +124 -0
  32. package/dist/builders/StaticAuctionBuilder.d.ts +124 -0
  33. package/dist/builders/StaticAuctionBuilder.js +29 -0
  34. package/dist/builders/StaticAuctionBuilder.js.map +1 -0
  35. package/dist/builders/StaticAuctionBuilder.mjs +20 -0
  36. package/dist/builders/StaticAuctionBuilder.mjs.map +1 -0
  37. package/dist/builders/index.d.mts +8 -0
  38. package/dist/builders/index.d.ts +8 -0
  39. package/dist/builders/index.js +56 -0
  40. package/dist/builders/index.js.map +1 -0
  41. package/dist/builders/index.mjs +23 -0
  42. package/dist/builders/index.mjs.map +1 -0
  43. package/dist/builders/shared.d.mts +116 -0
  44. package/dist/builders/shared.d.ts +116 -0
  45. package/dist/builders/shared.js +39 -0
  46. package/dist/builders/shared.js.map +1 -0
  47. package/dist/builders/shared.mjs +18 -0
  48. package/dist/builders/shared.mjs.map +1 -0
  49. package/dist/builders.d.mts +8 -131
  50. package/dist/builders.d.ts +8 -131
  51. package/dist/builders.js +44 -5
  52. package/dist/builders.mjs +22 -3
  53. package/dist/chunk-3PNCB4W5.js +4 -0
  54. package/dist/{chunk-KRN3ROUE.js.map → chunk-3PNCB4W5.js.map} +1 -1
  55. package/dist/chunk-3RK7LRAA.js +282 -0
  56. package/dist/chunk-3RK7LRAA.js.map +1 -0
  57. package/dist/chunk-4HM3ERBU.js +13 -0
  58. package/dist/chunk-4HM3ERBU.js.map +1 -0
  59. package/dist/{chunk-7W72MFJO.mjs → chunk-4TROGENW.mjs} +5 -4
  60. package/dist/chunk-4TROGENW.mjs.map +1 -0
  61. package/dist/chunk-5TL5V6UX.mjs +3 -0
  62. package/dist/{chunk-AZLFJNTG.mjs.map → chunk-5TL5V6UX.mjs.map} +1 -1
  63. package/dist/chunk-64AWG57M.mjs +192 -0
  64. package/dist/chunk-64AWG57M.mjs.map +1 -0
  65. package/dist/chunk-6KWCHTK3.js +166 -0
  66. package/dist/chunk-6KWCHTK3.js.map +1 -0
  67. package/dist/chunk-6OOWOPCX.js +1708 -0
  68. package/dist/chunk-6OOWOPCX.js.map +1 -0
  69. package/dist/chunk-7BBRPWQJ.js +257 -0
  70. package/dist/chunk-7BBRPWQJ.js.map +1 -0
  71. package/dist/{chunk-FVTIDXYK.mjs → chunk-AKSEBAR7.mjs} +29 -19
  72. package/dist/chunk-AKSEBAR7.mjs.map +1 -0
  73. package/dist/chunk-AS64GWBX.js +204 -0
  74. package/dist/chunk-AS64GWBX.js.map +1 -0
  75. package/dist/chunk-AULFBXM5.mjs +331 -0
  76. package/dist/chunk-AULFBXM5.mjs.map +1 -0
  77. package/dist/chunk-AW3WR2D3.mjs +238 -0
  78. package/dist/chunk-AW3WR2D3.mjs.map +1 -0
  79. package/dist/chunk-BIQQ53O2.js +45 -0
  80. package/dist/chunk-BIQQ53O2.js.map +1 -0
  81. package/dist/chunk-C6MPV3CY.js +260 -0
  82. package/dist/chunk-C6MPV3CY.js.map +1 -0
  83. package/dist/{chunk-AYPP5JEQ.mjs → chunk-CLEQO6GU.mjs} +5 -5
  84. package/dist/chunk-CLEQO6GU.mjs.map +1 -0
  85. package/dist/chunk-CVHPLURA.js +147 -0
  86. package/dist/chunk-CVHPLURA.js.map +1 -0
  87. package/dist/chunk-D2RBCFNW.mjs +130 -0
  88. package/dist/chunk-D2RBCFNW.mjs.map +1 -0
  89. package/dist/chunk-ECD4FV3A.mjs +11 -0
  90. package/dist/chunk-ECD4FV3A.mjs.map +1 -0
  91. package/dist/chunk-EDJBZPMW.mjs +255 -0
  92. package/dist/chunk-EDJBZPMW.mjs.map +1 -0
  93. package/dist/chunk-FPAI4QYW.mjs +145 -0
  94. package/dist/chunk-FPAI4QYW.mjs.map +1 -0
  95. package/dist/chunk-HM25ZMO3.js +18 -0
  96. package/dist/chunk-HM25ZMO3.js.map +1 -0
  97. package/dist/chunk-IHC6UYKK.js +4 -0
  98. package/dist/{chunk-DRBRT57F.js.map → chunk-IHC6UYKK.js.map} +1 -1
  99. package/dist/{chunk-DMAHXBA5.mjs → chunk-J5BFFL3X.mjs} +87 -47
  100. package/dist/chunk-J5BFFL3X.mjs.map +1 -0
  101. package/dist/chunk-JIKAD4YL.js +4 -0
  102. package/dist/{chunk-KEXKKQVW.js.map → chunk-JIKAD4YL.js.map} +1 -1
  103. package/dist/{chunk-EFAPDN4J.js → chunk-JWEXGALU.js} +730 -33
  104. package/dist/chunk-JWEXGALU.js.map +1 -0
  105. package/dist/{chunk-4K5GBNQV.mjs → chunk-KDT76YQE.mjs} +52 -13
  106. package/dist/chunk-KDT76YQE.mjs.map +1 -0
  107. package/dist/chunk-LMQLMMEX.js +317 -0
  108. package/dist/chunk-LMQLMMEX.js.map +1 -0
  109. package/dist/{chunk-TOMVBPNZ.js → chunk-LS4TK6SX.js} +9 -4
  110. package/dist/chunk-LS4TK6SX.js.map +1 -0
  111. package/dist/chunk-M4WMHD3X.mjs +40 -0
  112. package/dist/chunk-M4WMHD3X.mjs.map +1 -0
  113. package/dist/chunk-MCOK3UFR.mjs +280 -0
  114. package/dist/chunk-MCOK3UFR.mjs.map +1 -0
  115. package/dist/chunk-MGQSQCFG.js +176 -0
  116. package/dist/chunk-MGQSQCFG.js.map +1 -0
  117. package/dist/chunk-MKE3BUL3.mjs +3 -0
  118. package/dist/{chunk-CYDWEPFL.mjs.map → chunk-MKE3BUL3.mjs.map} +1 -1
  119. package/dist/chunk-MNJ5OYPE.mjs +17 -0
  120. package/dist/chunk-MNJ5OYPE.mjs.map +1 -0
  121. package/dist/chunk-MNXD45J7.mjs +164 -0
  122. package/dist/chunk-MNXD45J7.mjs.map +1 -0
  123. package/dist/chunk-NGDPQC5E.js +333 -0
  124. package/dist/chunk-NGDPQC5E.js.map +1 -0
  125. package/dist/chunk-NNNCVFOH.mjs +16 -0
  126. package/dist/chunk-NNNCVFOH.mjs.map +1 -0
  127. package/dist/chunk-NZ4BJ2IC.mjs +315 -0
  128. package/dist/chunk-NZ4BJ2IC.mjs.map +1 -0
  129. package/dist/chunk-OKNM7ODQ.js +29 -0
  130. package/dist/chunk-OKNM7ODQ.js.map +1 -0
  131. package/dist/{chunk-DCFHANLR.mjs → chunk-OTG75GVH.mjs} +725 -34
  132. package/dist/chunk-OTG75GVH.mjs.map +1 -0
  133. package/dist/chunk-OZ6DGBRL.mjs +25 -0
  134. package/dist/chunk-OZ6DGBRL.mjs.map +1 -0
  135. package/dist/chunk-P25HBGP5.mjs +3 -0
  136. package/dist/chunk-P25HBGP5.mjs.map +1 -0
  137. package/dist/{chunk-XG7K4R56.js → chunk-P7KLEPVI.js} +52 -12
  138. package/dist/chunk-P7KLEPVI.js.map +1 -0
  139. package/dist/{chunk-OPKQMN46.mjs → chunk-PAPXGPJB.mjs} +9 -4
  140. package/dist/chunk-PAPXGPJB.mjs.map +1 -0
  141. package/dist/chunk-PCNXJAU5.js +19 -0
  142. package/dist/chunk-PCNXJAU5.js.map +1 -0
  143. package/dist/{chunk-5IT5OXQ5.js → chunk-PD6HWEMG.js} +40 -30
  144. package/dist/chunk-PD6HWEMG.js.map +1 -0
  145. package/dist/{chunk-ER42VG7H.js → chunk-PH2KXREH.js} +20 -3
  146. package/dist/chunk-PH2KXREH.js.map +1 -0
  147. package/dist/chunk-Q5ERW5ZW.mjs +107 -0
  148. package/dist/chunk-Q5ERW5ZW.mjs.map +1 -0
  149. package/dist/chunk-Q7YNBSVH.js +28 -0
  150. package/dist/chunk-Q7YNBSVH.js.map +1 -0
  151. package/dist/{chunk-T644D54P.mjs → chunk-QKO2FZGN.mjs} +16 -4
  152. package/dist/chunk-QKO2FZGN.mjs.map +1 -0
  153. package/dist/{chunk-CIRZKWLL.js → chunk-RVFSRYI5.js} +5 -3
  154. package/dist/chunk-RVFSRYI5.js.map +1 -0
  155. package/dist/{chunk-KPBCG4X2.js → chunk-RW37KJ77.js} +11 -11
  156. package/dist/chunk-RW37KJ77.js.map +1 -0
  157. package/dist/chunk-SD7BHT2F.mjs +3 -0
  158. package/dist/chunk-SD7BHT2F.mjs.map +1 -0
  159. package/dist/chunk-SP5M57BG.mjs +258 -0
  160. package/dist/chunk-SP5M57BG.mjs.map +1 -0
  161. package/dist/chunk-TKSHYEYA.mjs +1706 -0
  162. package/dist/chunk-TKSHYEYA.mjs.map +1 -0
  163. package/dist/chunk-WTS75RUC.js +4 -0
  164. package/dist/chunk-WTS75RUC.js.map +1 -0
  165. package/dist/{chunk-ZRDU6CIB.js → chunk-XRPIGMA2.js} +108 -68
  166. package/dist/chunk-XRPIGMA2.js.map +1 -0
  167. package/dist/chunk-XTKSM4QE.js +132 -0
  168. package/dist/chunk-XTKSM4QE.js.map +1 -0
  169. package/dist/chunk-XUE3CIJ5.mjs +174 -0
  170. package/dist/chunk-XUE3CIJ5.mjs.map +1 -0
  171. package/dist/chunk-YYUOLM6U.js +244 -0
  172. package/dist/chunk-YYUOLM6U.js.map +1 -0
  173. package/dist/chunk-ZH44DHVR.mjs +26 -0
  174. package/dist/chunk-ZH44DHVR.mjs.map +1 -0
  175. package/dist/chunk-ZPHOOG72.js +112 -0
  176. package/dist/chunk-ZPHOOG72.js.map +1 -0
  177. package/dist/constants.d.mts +7 -2
  178. package/dist/constants.d.ts +7 -2
  179. package/dist/constants.js +57 -38
  180. package/dist/constants.mjs +1 -2
  181. package/dist/deployments.generated.d.mts +2 -0
  182. package/dist/deployments.generated.d.ts +2 -0
  183. package/dist/deployments.generated.js +12 -0
  184. package/dist/deployments.generated.js.map +1 -0
  185. package/dist/deployments.generated.mjs +3 -0
  186. package/dist/deployments.generated.mjs.map +1 -0
  187. package/dist/entities/DopplerFactory.d.mts +139 -11
  188. package/dist/entities/DopplerFactory.d.ts +139 -11
  189. package/dist/entities/DopplerFactory.js +17 -7
  190. package/dist/entities/DopplerFactory.mjs +16 -6
  191. package/dist/entities/auction/DynamicAuction.d.mts +19 -4
  192. package/dist/entities/auction/DynamicAuction.d.ts +19 -4
  193. package/dist/entities/auction/DynamicAuction.js +6 -6
  194. package/dist/entities/auction/DynamicAuction.mjs +5 -5
  195. package/dist/entities/auction/MulticurvePool.d.mts +55 -0
  196. package/dist/entities/auction/MulticurvePool.d.ts +55 -0
  197. package/dist/entities/auction/MulticurvePool.js +18 -0
  198. package/dist/entities/auction/MulticurvePool.js.map +1 -0
  199. package/dist/entities/auction/MulticurvePool.mjs +9 -0
  200. package/dist/entities/auction/MulticurvePool.mjs.map +1 -0
  201. package/dist/entities/auction/StaticAuction.d.mts +6 -3
  202. package/dist/entities/auction/StaticAuction.d.ts +6 -3
  203. package/dist/entities/auction/StaticAuction.js +6 -6
  204. package/dist/entities/auction/StaticAuction.mjs +5 -5
  205. package/dist/entities/auction/index.d.mts +3 -0
  206. package/dist/entities/auction/index.d.ts +3 -0
  207. package/dist/entities/auction/index.js +16 -9
  208. package/dist/entities/auction/index.mjs +10 -7
  209. package/dist/entities/quoter/Quoter.d.mts +44 -2
  210. package/dist/entities/quoter/Quoter.d.ts +44 -2
  211. package/dist/entities/quoter/Quoter.js +6 -6
  212. package/dist/entities/quoter/Quoter.mjs +5 -5
  213. package/dist/entities/quoter/index.d.mts +3 -0
  214. package/dist/entities/quoter/index.d.ts +3 -0
  215. package/dist/entities/quoter/index.js +6 -6
  216. package/dist/entities/quoter/index.mjs +5 -5
  217. package/dist/entities/token/derc20/Derc20.d.mts +33 -7
  218. package/dist/entities/token/derc20/Derc20.d.ts +33 -7
  219. package/dist/entities/token/derc20/Derc20.js +4 -5
  220. package/dist/entities/token/derc20/Derc20.mjs +3 -4
  221. package/dist/entities/token/derc20/index.d.mts +3 -0
  222. package/dist/entities/token/derc20/index.d.ts +3 -0
  223. package/dist/entities/token/derc20/index.js +4 -5
  224. package/dist/entities/token/derc20/index.mjs +3 -4
  225. package/dist/entities/token/eth/Eth.d.mts +7 -3
  226. package/dist/entities/token/eth/Eth.d.ts +7 -3
  227. package/dist/entities/token/eth/Eth.js +2 -3
  228. package/dist/entities/token/eth/Eth.mjs +1 -2
  229. package/dist/entities/token/eth/index.d.mts +3 -0
  230. package/dist/entities/token/eth/index.d.ts +3 -0
  231. package/dist/entities/token/eth/index.js +2 -3
  232. package/dist/entities/token/eth/index.mjs +1 -2
  233. package/dist/entities/token/index.d.mts +3 -0
  234. package/dist/entities/token/index.d.ts +3 -0
  235. package/dist/entities/token/index.js +6 -7
  236. package/dist/entities/token/index.mjs +4 -5
  237. package/dist/index.d.mts +18 -6
  238. package/dist/index.d.ts +18 -6
  239. package/dist/index.js +305 -140
  240. package/dist/index.js.map +1 -1
  241. package/dist/index.mjs +32 -19
  242. package/dist/index.mjs.map +1 -1
  243. package/dist/types.d.mts +260 -22
  244. package/dist/types.d.ts +260 -22
  245. package/dist/types.js +12 -3
  246. package/dist/types.mjs +3 -2
  247. package/dist/utils/airlock.d.mts +11 -0
  248. package/dist/utils/airlock.d.ts +11 -0
  249. package/dist/utils/airlock.js +26 -0
  250. package/dist/utils/airlock.js.map +1 -0
  251. package/dist/utils/airlock.mjs +5 -0
  252. package/dist/utils/airlock.mjs.map +1 -0
  253. package/dist/utils/balanceDelta.d.mts +10 -0
  254. package/dist/utils/balanceDelta.d.ts +10 -0
  255. package/dist/utils/balanceDelta.js +12 -0
  256. package/dist/utils/balanceDelta.js.map +1 -0
  257. package/dist/utils/balanceDelta.mjs +3 -0
  258. package/dist/utils/balanceDelta.mjs.map +1 -0
  259. package/dist/utils/computeOptimalGamma.d.mts +7 -0
  260. package/dist/utils/computeOptimalGamma.d.ts +7 -0
  261. package/dist/utils/computeOptimalGamma.js +12 -0
  262. package/dist/utils/computeOptimalGamma.js.map +1 -0
  263. package/dist/utils/computeOptimalGamma.mjs +3 -0
  264. package/dist/utils/computeOptimalGamma.mjs.map +1 -0
  265. package/dist/utils/index.d.mts +11 -0
  266. package/dist/utils/index.d.ts +11 -0
  267. package/dist/utils/index.js +114 -24
  268. package/dist/utils/index.mjs +14 -4
  269. package/dist/utils/isToken0Expected.d.mts +13 -0
  270. package/dist/utils/isToken0Expected.d.ts +13 -0
  271. package/dist/utils/isToken0Expected.js +12 -0
  272. package/dist/utils/isToken0Expected.js.map +1 -0
  273. package/dist/utils/isToken0Expected.mjs +3 -0
  274. package/dist/utils/isToken0Expected.mjs.map +1 -0
  275. package/dist/utils/marketCapHelpers.d.mts +309 -0
  276. package/dist/utils/marketCapHelpers.d.ts +309 -0
  277. package/dist/utils/marketCapHelpers.js +54 -0
  278. package/dist/utils/marketCapHelpers.js.map +1 -0
  279. package/dist/utils/marketCapHelpers.mjs +5 -0
  280. package/dist/utils/marketCapHelpers.mjs.map +1 -0
  281. package/dist/utils/poolKey.d.mts +17 -0
  282. package/dist/utils/poolKey.d.ts +17 -0
  283. package/dist/utils/poolKey.js +12 -0
  284. package/dist/utils/poolKey.js.map +1 -0
  285. package/dist/utils/poolKey.mjs +3 -0
  286. package/dist/utils/poolKey.mjs.map +1 -0
  287. package/dist/utils/priceHelpers.d.mts +3 -3
  288. package/dist/utils/priceHelpers.d.ts +3 -3
  289. package/dist/utils/priceHelpers.js +10 -11
  290. package/dist/utils/priceHelpers.mjs +2 -3
  291. package/dist/utils/tickMath.d.mts +8 -1
  292. package/dist/utils/tickMath.d.ts +8 -1
  293. package/dist/utils/tickMath.js +17 -14
  294. package/dist/utils/tickMath.mjs +1 -2
  295. package/dist/utils/tokenAddressMiner.d.mts +30 -0
  296. package/dist/utils/tokenAddressMiner.d.ts +30 -0
  297. package/dist/utils/tokenAddressMiner.js +14 -0
  298. package/dist/utils/tokenAddressMiner.js.map +1 -0
  299. package/dist/utils/tokenAddressMiner.mjs +5 -0
  300. package/dist/utils/tokenAddressMiner.mjs.map +1 -0
  301. package/package.json +14 -11
  302. package/dist/__tests__/mocks/addresses.d.mts +0 -46
  303. package/dist/__tests__/mocks/addresses.d.ts +0 -46
  304. package/dist/__tests__/mocks/addresses.js +0 -53
  305. package/dist/__tests__/mocks/addresses.js.map +0 -1
  306. package/dist/__tests__/mocks/addresses.mjs +0 -44
  307. package/dist/__tests__/mocks/addresses.mjs.map +0 -1
  308. package/dist/__tests__/mocks/clients.d.mts +0 -22
  309. package/dist/__tests__/mocks/clients.d.ts +0 -22
  310. package/dist/__tests__/mocks/clients.js +0 -17036
  311. package/dist/__tests__/mocks/clients.js.map +0 -1
  312. package/dist/__tests__/mocks/clients.mjs +0 -17032
  313. package/dist/__tests__/mocks/clients.mjs.map +0 -1
  314. package/dist/chunk-2N5JZSZ4.js +0 -14
  315. package/dist/chunk-2N5JZSZ4.js.map +0 -1
  316. package/dist/chunk-3OZRDL3O.js +0 -162
  317. package/dist/chunk-3OZRDL3O.js.map +0 -1
  318. package/dist/chunk-4K5GBNQV.mjs.map +0 -1
  319. package/dist/chunk-5IT5OXQ5.js.map +0 -1
  320. package/dist/chunk-7F5IXZLH.js +0 -308
  321. package/dist/chunk-7F5IXZLH.js.map +0 -1
  322. package/dist/chunk-7VP5VR7J.js +0 -82
  323. package/dist/chunk-7VP5VR7J.js.map +0 -1
  324. package/dist/chunk-7W72MFJO.mjs.map +0 -1
  325. package/dist/chunk-AYPP5JEQ.mjs.map +0 -1
  326. package/dist/chunk-AZLFJNTG.mjs +0 -3
  327. package/dist/chunk-CIRZKWLL.js.map +0 -1
  328. package/dist/chunk-CYDWEPFL.mjs +0 -3
  329. package/dist/chunk-DCFHANLR.mjs.map +0 -1
  330. package/dist/chunk-DMAHXBA5.mjs.map +0 -1
  331. package/dist/chunk-DRBRT57F.js +0 -4
  332. package/dist/chunk-EFAPDN4J.js.map +0 -1
  333. package/dist/chunk-ER42VG7H.js.map +0 -1
  334. package/dist/chunk-FVTIDXYK.mjs.map +0 -1
  335. package/dist/chunk-IHBIBFZK.mjs +0 -12
  336. package/dist/chunk-IHBIBFZK.mjs.map +0 -1
  337. package/dist/chunk-IXSKPEHB.mjs +0 -160
  338. package/dist/chunk-IXSKPEHB.mjs.map +0 -1
  339. package/dist/chunk-KEXKKQVW.js +0 -42
  340. package/dist/chunk-KFD6U3LQ.mjs +0 -305
  341. package/dist/chunk-KFD6U3LQ.mjs.map +0 -1
  342. package/dist/chunk-KPBCG4X2.js.map +0 -1
  343. package/dist/chunk-KRN3ROUE.js +0 -4
  344. package/dist/chunk-KT7U37XS.mjs +0 -207
  345. package/dist/chunk-KT7U37XS.mjs.map +0 -1
  346. package/dist/chunk-LOROXNH3.mjs +0 -37
  347. package/dist/chunk-LOROXNH3.mjs.map +0 -1
  348. package/dist/chunk-O6GYIJ6X.mjs +0 -80
  349. package/dist/chunk-O6GYIJ6X.mjs.map +0 -1
  350. package/dist/chunk-OPKQMN46.mjs.map +0 -1
  351. package/dist/chunk-RIMM47JL.mjs +0 -176
  352. package/dist/chunk-RIMM47JL.mjs.map +0 -1
  353. package/dist/chunk-SUOMK3CU.js +0 -872
  354. package/dist/chunk-SUOMK3CU.js.map +0 -1
  355. package/dist/chunk-T644D54P.mjs.map +0 -1
  356. package/dist/chunk-TOMVBPNZ.js.map +0 -1
  357. package/dist/chunk-XEMZQHTX.mjs +0 -870
  358. package/dist/chunk-XEMZQHTX.mjs.map +0 -1
  359. package/dist/chunk-XG7K4R56.js.map +0 -1
  360. package/dist/chunk-XQ2VMR26.js +0 -180
  361. package/dist/chunk-XQ2VMR26.js.map +0 -1
  362. package/dist/chunk-ZAIP54LX.js +0 -209
  363. package/dist/chunk-ZAIP54LX.js.map +0 -1
  364. package/dist/chunk-ZRDU6CIB.js.map +0 -1
  365. package/dist/magic-string.es-CBLXTCZP.js +0 -1304
  366. package/dist/magic-string.es-CBLXTCZP.js.map +0 -1
  367. package/dist/magic-string.es-QHA47FSB.mjs +0 -1298
  368. package/dist/magic-string.es-QHA47FSB.mjs.map +0 -1
package/dist/types.d.ts CHANGED
@@ -1,5 +1,9 @@
1
- import { PublicClient, WalletClient, Address } from 'viem';
1
+ import { base, baseSepolia, ink, unichain } from 'viem/chains';
2
+ import { SupportedChainId } from './addresses.js';
3
+ import { WalletClient, Address } from 'viem';
2
4
 
5
+ type SupportedChain = typeof base | typeof baseSepolia | typeof ink | typeof unichain | typeof baseSepolia;
6
+ type SupportedPublicClient = unknown;
3
7
  interface StandardTokenConfig {
4
8
  type?: 'standard';
5
9
  name: string;
@@ -26,7 +30,7 @@ interface StaticPoolConfig {
26
30
  fee: number;
27
31
  numPositions?: number;
28
32
  maxShareToBeSold?: bigint;
29
- lockableBeneficiaries?: LockableBeneficiaryData[];
33
+ beneficiaries?: BeneficiaryData[];
30
34
  }
31
35
  interface DynamicAuctionConfig {
32
36
  duration: number;
@@ -41,21 +45,29 @@ interface DynamicAuctionConfig {
41
45
  interface VestingConfig {
42
46
  duration: number;
43
47
  cliffDuration: number;
48
+ recipients?: Address[];
49
+ amounts?: bigint[];
44
50
  }
45
- interface GovernanceConfig {
46
- initialVotingDelay?: number;
47
- initialVotingPeriod?: number;
48
- initialProposalThreshold?: bigint;
49
- }
50
- interface NoOpGovernance {
51
- noOp: true;
51
+ declare const NO_OP_ENABLED_CHAIN_IDS: readonly [8453, 84532, 130, 1301, 10143, 143];
52
+ type NoOpEnabledChainId = (typeof NO_OP_ENABLED_CHAIN_IDS)[number];
53
+ /**
54
+ * Check if a chain supports no-op governance
55
+ */
56
+ declare function isNoOpEnabledChain(chainId: number): chainId is NoOpEnabledChainId;
57
+ type GovernanceDefault = {
58
+ type: 'default';
59
+ };
60
+ interface GovernanceCustom {
61
+ type: 'custom';
62
+ initialVotingDelay: number;
63
+ initialVotingPeriod: number;
64
+ initialProposalThreshold: bigint;
52
65
  }
53
- type GovernanceOption = GovernanceConfig | NoOpGovernance;
66
+ type GovernanceNoOp = {
67
+ type: 'noOp';
68
+ };
69
+ type GovernanceOption<C extends SupportedChainId> = GovernanceDefault | GovernanceCustom | (C extends NoOpEnabledChainId ? GovernanceNoOp : never);
54
70
  interface BeneficiaryData {
55
- address: Address;
56
- percentage: number;
57
- }
58
- interface LockableBeneficiaryData {
59
71
  beneficiary: Address;
60
72
  shares: bigint;
61
73
  }
@@ -74,6 +86,15 @@ interface LockablePoolState {
74
86
  totalTokensOnBondingCurve: bigint;
75
87
  status: LockablePoolStatus;
76
88
  }
89
+ interface MulticurvePoolState {
90
+ asset: Address;
91
+ numeraire: Address;
92
+ fee: number;
93
+ tickSpacing: number;
94
+ status: LockablePoolStatus;
95
+ poolKey: V4PoolKey;
96
+ farTick: number;
97
+ }
77
98
  type MigrationConfig = {
78
99
  type: 'uniswapV2';
79
100
  } | {
@@ -84,22 +105,26 @@ type MigrationConfig = {
84
105
  type: 'uniswapV4';
85
106
  fee: number;
86
107
  tickSpacing: number;
87
- streamableFees: {
108
+ streamableFees?: {
88
109
  lockDuration: number;
89
110
  beneficiaries: BeneficiaryData[];
90
111
  };
112
+ } | {
113
+ type: 'noOp';
91
114
  };
92
- interface CreateStaticAuctionParams {
115
+ interface CreateStaticAuctionParams<C extends SupportedChainId = SupportedChainId> {
93
116
  token: TokenConfig;
94
117
  sale: SaleConfig;
95
118
  pool: StaticPoolConfig;
96
119
  vesting?: VestingConfig;
97
- governance: GovernanceOption;
120
+ governance: GovernanceOption<C>;
98
121
  migration: MigrationConfig;
99
122
  integrator?: Address;
100
123
  userAddress: Address;
124
+ modules?: ModuleAddressOverrides;
125
+ gas?: bigint;
101
126
  }
102
- interface CreateDynamicAuctionParams {
127
+ interface CreateDynamicAuctionParams<C extends SupportedChainId = SupportedChainId> {
103
128
  token: TokenConfig;
104
129
  sale: SaleConfig;
105
130
  auction: DynamicAuctionConfig;
@@ -108,12 +133,14 @@ interface CreateDynamicAuctionParams {
108
133
  tickSpacing: number;
109
134
  };
110
135
  vesting?: VestingConfig;
111
- governance: GovernanceOption;
136
+ governance: GovernanceOption<C>;
112
137
  migration: MigrationConfig;
113
138
  integrator?: Address;
114
139
  userAddress: Address;
115
140
  startTimeOffset?: number;
116
141
  blockTimestamp?: number;
142
+ gas?: bigint;
143
+ modules?: ModuleAddressOverrides;
117
144
  }
118
145
  interface PriceRange {
119
146
  startPrice: number;
@@ -123,6 +150,140 @@ interface TickRange {
123
150
  startTick: number;
124
151
  endTick: number;
125
152
  }
153
+ /**
154
+ * Market cap range in USD for price configurations.
155
+ * Used to define start and end market caps for bonding curves.
156
+ */
157
+ interface MarketCapRange {
158
+ /** Starting market cap in USD (e.g., 100_000 for $100k) */
159
+ start: number;
160
+ /** Ending market cap in USD (e.g., 10_000_000 for $10M) */
161
+ end: number;
162
+ }
163
+ /**
164
+ * Base configuration for market cap-based tick calculations.
165
+ * Used by builder methods to convert market caps to ticks.
166
+ */
167
+ interface MarketCapConfig {
168
+ /** Target market cap range in USD */
169
+ marketCap: MarketCapRange;
170
+ /** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
171
+ numerairePrice: number;
172
+ /**
173
+ * Token supply override. If not provided, inferred from saleConfig.initialSupply.
174
+ * Must include decimals (e.g., parseEther('1000000000') for 1B tokens).
175
+ */
176
+ tokenSupply?: bigint;
177
+ /** Token decimals (default: 18) */
178
+ tokenDecimals?: number;
179
+ /** Numeraire decimals (default: 18) */
180
+ numeraireDecimals?: number;
181
+ }
182
+ /**
183
+ * Market cap configuration for V3 Static Auctions.
184
+ * Extends base config with V3-specific parameters.
185
+ */
186
+ interface StaticAuctionMarketCapConfig extends MarketCapConfig {
187
+ /** Fee tier in basis points (e.g., 10000 for 1%). Default: 10000 */
188
+ fee?: number;
189
+ /** Number of liquidity positions. Default: 15 */
190
+ numPositions?: number;
191
+ /** Maximum share of tokens to sell per position (WAD). Default: 35% */
192
+ maxShareToBeSold?: bigint;
193
+ }
194
+ /**
195
+ * Market cap range for V4 Dynamic Auctions (Dutch auctions).
196
+ * Uses start/min because price descends from start to minimum.
197
+ */
198
+ interface DynamicMarketCapRange {
199
+ /** Starting market cap in USD - auction begins here (e.g., 500_000 for $500k) */
200
+ start: number;
201
+ /** Minimum market cap in USD - floor price the auction descends to (e.g., 50_000 for $50k) */
202
+ min: number;
203
+ }
204
+ /**
205
+ * Market cap configuration for V4 Dynamic Auctions.
206
+ * Uses start/min (not start/end) because Dutch auctions descend from start to minimum.
207
+ */
208
+ interface DynamicAuctionMarketCapConfig {
209
+ /** Target market cap range (start = launch price, min = floor price) */
210
+ marketCap: DynamicMarketCapRange;
211
+ /** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
212
+ numerairePrice: number;
213
+ /**
214
+ * Token supply override. If not provided, inferred from saleConfig.initialSupply.
215
+ * Must include decimals (e.g., parseEther('1000000000') for 1B tokens).
216
+ */
217
+ tokenSupply?: bigint;
218
+ /** Token decimals (default: 18) */
219
+ tokenDecimals?: number;
220
+ /** Numeraire decimals (default: 18) */
221
+ numeraireDecimals?: number;
222
+ /** Minimum proceeds required for successful auction */
223
+ minProceeds: bigint;
224
+ /** Maximum proceeds cap for the auction */
225
+ maxProceeds: bigint;
226
+ /** Auction duration in seconds. Default: 7 days */
227
+ duration?: number;
228
+ /** Epoch length in seconds. Default: 3600 (1 hour) */
229
+ epochLength?: number;
230
+ /** Gamma (tick decay per epoch). Auto-calculated if not provided */
231
+ gamma?: number;
232
+ /** Number of price discovery slugs. Default: 5 */
233
+ numPdSlugs?: number;
234
+ }
235
+ /**
236
+ * Result of market cap parameter validation.
237
+ */
238
+ interface MarketCapValidationResult {
239
+ /** Whether all parameters are within normal bounds */
240
+ valid: boolean;
241
+ /** Warning messages for unusual but technically valid values */
242
+ warnings: string[];
243
+ }
244
+ /**
245
+ * Curve configuration for Multicurve pools using market cap ranges.
246
+ * Each curve defines a market cap range and liquidity distribution.
247
+ */
248
+ interface MulticurveMarketCapRangeCurve {
249
+ /** Market cap range for this curve */
250
+ marketCap: {
251
+ /** Start market cap in USD (for the first curve, this is the launch price) */
252
+ start: number;
253
+ /** End market cap in USD */
254
+ end: number;
255
+ };
256
+ /** Number of liquidity positions in this curve */
257
+ numPositions: number;
258
+ /** Share of total supply allocated to this curve (WAD, e.g., parseEther('0.3') = 30%) */
259
+ shares: bigint;
260
+ }
261
+ /**
262
+ * Market cap-based configuration for Multicurve pools.
263
+ * No tick math required - just specify market caps in USD.
264
+ */
265
+ interface MulticurveMarketCapCurvesConfig {
266
+ /** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
267
+ numerairePrice: number;
268
+ /**
269
+ * Array of curves defining market cap ranges and liquidity distribution.
270
+ * The first curve's marketCap.start is the launch price.
271
+ * Curves must be contiguous (no gaps allowed).
272
+ */
273
+ curves: MulticurveMarketCapRangeCurve[];
274
+ /** Token supply override */
275
+ tokenSupply?: bigint;
276
+ /** Token decimals (default: 18) */
277
+ tokenDecimals?: number;
278
+ /** Numeraire decimals (default: 18) */
279
+ numeraireDecimals?: number;
280
+ /** Fee tier (default: FEE_TIERS.LOW) */
281
+ fee?: number;
282
+ /** Tick spacing (derived from fee if not provided) */
283
+ tickSpacing?: number;
284
+ /** Optional beneficiaries for fee streaming */
285
+ beneficiaries?: BeneficiaryData[];
286
+ }
126
287
  interface StaticAuctionBuildConfig {
127
288
  name: string;
128
289
  symbol: string;
@@ -172,7 +333,7 @@ interface DynamicAuctionBuildConfig {
172
333
  useGovernance?: boolean;
173
334
  }
174
335
  interface DopplerSDKConfig {
175
- publicClient: PublicClient;
336
+ publicClient: SupportedPublicClient;
176
337
  walletClient?: WalletClient;
177
338
  chainId: number;
178
339
  }
@@ -212,7 +373,84 @@ interface LockableV3InitializerParams {
212
373
  tickUpper: number;
213
374
  numPositions: number;
214
375
  maxShareToBeSold: bigint;
215
- beneficiaries: LockableBeneficiaryData[];
376
+ beneficiaries: BeneficiaryData[];
377
+ }
378
+ interface MulticurveCurve {
379
+ tickLower: number;
380
+ tickUpper: number;
381
+ numPositions: number;
382
+ shares: bigint;
383
+ }
384
+ type MulticurveMarketCapPreset = 'low' | 'medium' | 'high';
385
+ interface V4PoolKey {
386
+ currency0: Address;
387
+ currency1: Address;
388
+ fee: number;
389
+ tickSpacing: number;
390
+ hooks: Address;
391
+ }
392
+ interface MulticurveBundleExactOutResult {
393
+ asset: Address;
394
+ poolKey: V4PoolKey;
395
+ amountIn: bigint;
396
+ gasEstimate: bigint;
397
+ }
398
+ interface MulticurveBundleExactInResult {
399
+ asset: Address;
400
+ poolKey: V4PoolKey;
401
+ amountOut: bigint;
402
+ gasEstimate: bigint;
403
+ }
404
+ interface CreateMulticurveParams<C extends SupportedChainId = SupportedChainId> {
405
+ token: TokenConfig;
406
+ sale: SaleConfig;
407
+ pool: {
408
+ fee: number;
409
+ tickSpacing: number;
410
+ curves: MulticurveCurve[];
411
+ beneficiaries?: BeneficiaryData[];
412
+ };
413
+ schedule?: {
414
+ startTime: number;
415
+ };
416
+ vesting?: VestingConfig;
417
+ governance: GovernanceOption<C>;
418
+ migration: MigrationConfig;
419
+ integrator?: Address;
420
+ userAddress: Address;
421
+ modules?: ModuleAddressOverrides;
422
+ gas?: bigint;
423
+ }
424
+ interface CreateParams {
425
+ initialSupply: bigint;
426
+ numTokensToSell: bigint;
427
+ numeraire: Address;
428
+ tokenFactory: Address;
429
+ tokenFactoryData: `0x${string}`;
430
+ governanceFactory: Address;
431
+ governanceFactoryData: `0x${string}`;
432
+ poolInitializer: Address;
433
+ poolInitializerData: `0x${string}`;
434
+ liquidityMigrator: Address;
435
+ liquidityMigratorData: `0x${string}`;
436
+ integrator: Address;
437
+ salt: `0x${string}`;
438
+ }
439
+ interface ModuleAddressOverrides {
440
+ airlock?: Address;
441
+ tokenFactory?: Address;
442
+ v3Initializer?: Address;
443
+ lockableV3Initializer?: Address;
444
+ v4Initializer?: Address;
445
+ v4MulticurveInitializer?: Address;
446
+ v4ScheduledMulticurveInitializer?: Address;
447
+ governanceFactory?: Address;
448
+ poolManager?: Address;
449
+ dopplerDeployer?: Address;
450
+ v2Migrator?: Address;
451
+ v3Migrator?: Address;
452
+ v4Migrator?: Address;
453
+ noOpMigrator?: Address;
216
454
  }
217
455
 
218
- export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type GovernanceConfig, type GovernanceOption, type HookInfo, type LockableBeneficiaryData, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MigrationConfig, type NoOpGovernance, type PoolInfo, type PriceRange, type QuoteResult, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticPoolConfig, type TickRange, type TokenConfig, type VestingConfig };
456
+ export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceNoOp, type GovernanceOption, type HookInfo, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TokenConfig, type V4PoolKey, type VestingConfig, isNoOpEnabledChain };
package/dist/types.js CHANGED
@@ -1,13 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunk2N5JZSZ4_js = require('./chunk-2N5JZSZ4.js');
4
- require('./chunk-KEXKKQVW.js');
3
+ var chunkOKNM7ODQ_js = require('./chunk-OKNM7ODQ.js');
4
+ require('./chunk-YYUOLM6U.js');
5
+ require('./chunk-CVHPLURA.js');
5
6
 
6
7
 
7
8
 
8
9
  Object.defineProperty(exports, "LockablePoolStatus", {
9
10
  enumerable: true,
10
- get: function () { return chunk2N5JZSZ4_js.LockablePoolStatus; }
11
+ get: function () { return chunkOKNM7ODQ_js.LockablePoolStatus; }
12
+ });
13
+ Object.defineProperty(exports, "NO_OP_ENABLED_CHAIN_IDS", {
14
+ enumerable: true,
15
+ get: function () { return chunkOKNM7ODQ_js.NO_OP_ENABLED_CHAIN_IDS; }
16
+ });
17
+ Object.defineProperty(exports, "isNoOpEnabledChain", {
18
+ enumerable: true,
19
+ get: function () { return chunkOKNM7ODQ_js.isNoOpEnabledChain; }
11
20
  });
12
21
  //# sourceMappingURL=types.js.map
13
22
  //# sourceMappingURL=types.js.map
package/dist/types.mjs CHANGED
@@ -1,4 +1,5 @@
1
- export { LockablePoolStatus } from './chunk-IHBIBFZK.mjs';
2
- import './chunk-LOROXNH3.mjs';
1
+ export { LockablePoolStatus, NO_OP_ENABLED_CHAIN_IDS, isNoOpEnabledChain } from './chunk-OZ6DGBRL.mjs';
2
+ import './chunk-AW3WR2D3.mjs';
3
+ import './chunk-FPAI4QYW.mjs';
3
4
  //# sourceMappingURL=types.mjs.map
4
5
  //# sourceMappingURL=types.mjs.map
@@ -0,0 +1,11 @@
1
+ import { Address } from 'viem';
2
+ import { BeneficiaryData } from '../types.mjs';
3
+ import 'viem/chains';
4
+ import '../addresses.mjs';
5
+
6
+ declare const getAirlockOwner: (publicClient: unknown) => Promise<Address>;
7
+ declare const DEFAULT_AIRLOCK_BENEFICIARY_SHARES: bigint;
8
+ declare const createAirlockBeneficiary: (owner: Address, shares?: bigint) => BeneficiaryData;
9
+ declare const getAirlockBeneficiary: (publicClient: unknown, shares?: bigint) => Promise<BeneficiaryData>;
10
+
11
+ export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner };
@@ -0,0 +1,11 @@
1
+ import { Address } from 'viem';
2
+ import { BeneficiaryData } from '../types.js';
3
+ import 'viem/chains';
4
+ import '../addresses.js';
5
+
6
+ declare const getAirlockOwner: (publicClient: unknown) => Promise<Address>;
7
+ declare const DEFAULT_AIRLOCK_BENEFICIARY_SHARES: bigint;
8
+ declare const createAirlockBeneficiary: (owner: Address, shares?: bigint) => BeneficiaryData;
9
+ declare const getAirlockBeneficiary: (publicClient: unknown, shares?: bigint) => Promise<BeneficiaryData>;
10
+
11
+ export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner };
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var chunkBIQQ53O2_js = require('../chunk-BIQQ53O2.js');
4
+ require('../chunk-YYUOLM6U.js');
5
+ require('../chunk-CVHPLURA.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "DEFAULT_AIRLOCK_BENEFICIARY_SHARES", {
10
+ enumerable: true,
11
+ get: function () { return chunkBIQQ53O2_js.DEFAULT_AIRLOCK_BENEFICIARY_SHARES; }
12
+ });
13
+ Object.defineProperty(exports, "createAirlockBeneficiary", {
14
+ enumerable: true,
15
+ get: function () { return chunkBIQQ53O2_js.createAirlockBeneficiary; }
16
+ });
17
+ Object.defineProperty(exports, "getAirlockBeneficiary", {
18
+ enumerable: true,
19
+ get: function () { return chunkBIQQ53O2_js.getAirlockBeneficiary; }
20
+ });
21
+ Object.defineProperty(exports, "getAirlockOwner", {
22
+ enumerable: true,
23
+ get: function () { return chunkBIQQ53O2_js.getAirlockOwner; }
24
+ });
25
+ //# sourceMappingURL=airlock.js.map
26
+ //# sourceMappingURL=airlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"airlock.js"}
@@ -0,0 +1,5 @@
1
+ export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from '../chunk-M4WMHD3X.mjs';
2
+ import '../chunk-AW3WR2D3.mjs';
3
+ import '../chunk-FPAI4QYW.mjs';
4
+ //# sourceMappingURL=airlock.mjs.map
5
+ //# sourceMappingURL=airlock.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"airlock.mjs"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Decode a Uniswap V4 BalanceDelta (int256) value into separate int128 deltas.
3
+ * The upper 128 bits represent amount0, the lower 128 bits represent amount1.
4
+ */
5
+ declare function decodeBalanceDelta(delta: bigint): {
6
+ amount0: bigint;
7
+ amount1: bigint;
8
+ };
9
+
10
+ export { decodeBalanceDelta };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Decode a Uniswap V4 BalanceDelta (int256) value into separate int128 deltas.
3
+ * The upper 128 bits represent amount0, the lower 128 bits represent amount1.
4
+ */
5
+ declare function decodeBalanceDelta(delta: bigint): {
6
+ amount0: bigint;
7
+ amount1: bigint;
8
+ };
9
+
10
+ export { decodeBalanceDelta };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunk4HM3ERBU_js = require('../chunk-4HM3ERBU.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "decodeBalanceDelta", {
8
+ enumerable: true,
9
+ get: function () { return chunk4HM3ERBU_js.decodeBalanceDelta; }
10
+ });
11
+ //# sourceMappingURL=balanceDelta.js.map
12
+ //# sourceMappingURL=balanceDelta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"balanceDelta.js"}
@@ -0,0 +1,3 @@
1
+ export { decodeBalanceDelta } from '../chunk-ECD4FV3A.mjs';
2
+ //# sourceMappingURL=balanceDelta.mjs.map
3
+ //# sourceMappingURL=balanceDelta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"balanceDelta.mjs"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Compute optimal gamma parameter based on price range and time parameters
3
+ * Gamma determines how much the price can move per epoch during the sale.
4
+ */
5
+ declare function computeOptimalGamma(startTick: number, endTick: number, duration: number, epochLength: number, tickSpacing: number): number;
6
+
7
+ export { computeOptimalGamma };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Compute optimal gamma parameter based on price range and time parameters
3
+ * Gamma determines how much the price can move per epoch during the sale.
4
+ */
5
+ declare function computeOptimalGamma(startTick: number, endTick: number, duration: number, epochLength: number, tickSpacing: number): number;
6
+
7
+ export { computeOptimalGamma };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkPCNXJAU5_js = require('../chunk-PCNXJAU5.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "computeOptimalGamma", {
8
+ enumerable: true,
9
+ get: function () { return chunkPCNXJAU5_js.computeOptimalGamma; }
10
+ });
11
+ //# sourceMappingURL=computeOptimalGamma.js.map
12
+ //# sourceMappingURL=computeOptimalGamma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"computeOptimalGamma.js"}
@@ -0,0 +1,3 @@
1
+ export { computeOptimalGamma } from '../chunk-MNJ5OYPE.mjs';
2
+ //# sourceMappingURL=computeOptimalGamma.mjs.map
3
+ //# sourceMappingURL=computeOptimalGamma.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"computeOptimalGamma.mjs"}
@@ -1,2 +1,13 @@
1
1
  export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice } from './tickMath.mjs';
2
2
  export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice } from './priceHelpers.mjs';
3
+ export { TokenAddressHookConfig, TokenAddressMiningParams, TokenAddressMiningResult, TokenVariant, mineTokenAddress } from './tokenAddressMiner.mjs';
4
+ export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from './airlock.mjs';
5
+ export { decodeBalanceDelta } from './balanceDelta.mjs';
6
+ export { computePoolId } from './poolKey.mjs';
7
+ export { computeOptimalGamma } from './computeOptimalGamma.mjs';
8
+ export { isToken0Expected } from './isToken0Expected.mjs';
9
+ export { applyTickOffsets, isToken1, marketCapRangeToTicks, marketCapRangeToTicksForCurve, marketCapToTick, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, transformTicksForAuction, validateMarketCapParameters } from './marketCapHelpers.mjs';
10
+ export { MarketCapRange, MarketCapValidationResult } from '../types.mjs';
11
+ import 'viem';
12
+ import 'viem/chains';
13
+ import '../addresses.mjs';
@@ -1,2 +1,13 @@
1
1
  export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice } from './tickMath.js';
2
2
  export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice } from './priceHelpers.js';
3
+ export { TokenAddressHookConfig, TokenAddressMiningParams, TokenAddressMiningResult, TokenVariant, mineTokenAddress } from './tokenAddressMiner.js';
4
+ export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from './airlock.js';
5
+ export { decodeBalanceDelta } from './balanceDelta.js';
6
+ export { computePoolId } from './poolKey.js';
7
+ export { computeOptimalGamma } from './computeOptimalGamma.js';
8
+ export { isToken0Expected } from './isToken0Expected.js';
9
+ export { applyTickOffsets, isToken1, marketCapRangeToTicks, marketCapRangeToTicksForCurve, marketCapToTick, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, transformTicksForAuction, validateMarketCapParameters } from './marketCapHelpers.js';
10
+ export { MarketCapRange, MarketCapValidationResult } from '../types.js';
11
+ import 'viem';
12
+ import 'viem/chains';
13
+ import '../addresses.js';