@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,259 +0,0 @@
1
- import { Address } from 'viem';
2
- import { StaticAuctionTickParams, DynamicAuctionTickParams, MulticurveTickRangeParams, MulticurveTickParams, MarketCapValidationResult, TickToMarketCapParams } from '../types.mjs';
3
- export { MarketCapRange } from '../types.mjs';
4
- import 'viem/chains';
5
- import '../addresses.mjs';
6
-
7
- /**
8
- * Market cap conversion utilities for token launches
9
- *
10
- * These utilities convert between market cap (USD) and Uniswap ticks
11
- * following the mathematical relationship:
12
- *
13
- * Market Cap (USD) → Token Price (USD) → Ratio (numeraire/token) → Tick
14
- *
15
- * Based on reference implementation: plan/priceMultiCurve.py
16
- */
17
-
18
- declare function getMaxTickRounded(tickSpacing: number): number;
19
- /**
20
- * Convert market cap to token price
21
- *
22
- * @param marketCapUSD - Market capitalization in USD
23
- * @param tokenSupply - Total token supply (as bigint with decimals, e.g., parseEther('1000000000'))
24
- * @param tokenDecimals - Token decimals (default: 18)
25
- * @returns Price of one token in USD
26
- *
27
- * @example
28
- * ```ts
29
- * // $1M market cap with 1B tokens (18 decimals)
30
- * const price = marketCapToTokenPrice(1_000_000, parseEther('1000000000'))
31
- * // Returns: 0.001 (each token is worth $0.001)
32
- * ```
33
- */
34
- declare function marketCapToTokenPrice(marketCapUSD: number, tokenSupply: bigint, tokenDecimals?: number): number;
35
- /**
36
- * Convert token price to price ratio (numeraire per token)
37
- *
38
- * @param tokenPriceUSD - Price of one token in USD
39
- * @param numerairePriceUSD - Price of numeraire (e.g., ETH) in USD
40
- * @param tokenDecimals - Token decimals (default: 18)
41
- * @param numeraireDecimals - Numeraire decimals (default: 18)
42
- * @returns Price ratio adjusted for decimals
43
- *
44
- * @example
45
- * ```ts
46
- * // Token at $0.001, ETH at $3000, both 18 decimals
47
- * const ratio = tokenPriceToRatio(0.001, 3000, 18, 18)
48
- * // Returns: 3,000,000 (3M ETH wei per token wei at this ratio)
49
- * ```
50
- */
51
- declare function tokenPriceToRatio(tokenPriceUSD: number, numerairePriceUSD: number, tokenDecimals?: number, numeraireDecimals?: number): number;
52
- /**
53
- * Convert ratio to tick using Uniswap's formula: tick = log(ratio) / log(1.0001)
54
- *
55
- * @param ratio - Price ratio (must be positive)
56
- * @returns Raw tick value (before spacing adjustment)
57
- *
58
- * @example
59
- * ```ts
60
- * ratioToTick(1) // Returns: 0
61
- * ratioToTick(1.0001) // Returns: ~1
62
- * ratioToTick(Math.pow(1.0001, 1000)) // Returns: ~1000
63
- * ```
64
- */
65
- declare function ratioToTick(ratio: number): number;
66
- /**
67
- * Determine if the new token will be token1 in the Uniswap pair
68
- *
69
- * Uniswap orders tokens by address (token0 < token1 in hex comparison).
70
- * This affects how ticks are interpreted for price calculations.
71
- *
72
- * @param tokenAddress - Address of the new token
73
- * @param numeraireAddress - Address of the numeraire (e.g., WETH)
74
- * @returns true if token will be token1, false if token0
75
- *
76
- * @example
77
- * ```ts
78
- * isToken1('0xB000...', '0xA000...') // true (B > A)
79
- * isToken1('0xA000...', '0xB000...') // false (A < B)
80
- * ```
81
- */
82
- declare function isToken1(tokenAddress: string, numeraireAddress: string): boolean;
83
- /**
84
- * Convert market cap range to ticks for V3 Static Auctions.
85
- *
86
- * V3 Static auctions ALWAYS use positive ticks with startTick < endTick.
87
- * This is because CREATE2 mining ensures token address > numeraire (token1).
88
- *
89
- * @param params - Configuration object with market cap range and token parameters
90
- * @returns { startTick, endTick } - positive ticks, startTick < endTick
91
- *
92
- * @example
93
- * ```ts
94
- * const { startTick, endTick } = marketCapToTicksForStaticAuction({
95
- * marketCapRange: { start: 100_000, end: 10_000_000 },
96
- * tokenSupply: parseEther('1000000000'),
97
- * numerairePriceUSD: 3000,
98
- * tickSpacing: 60,
99
- * })
100
- * // Returns: { startTick: 120000, endTick: 170000 } (both positive)
101
- * ```
102
- */
103
- declare function marketCapToTicksForStaticAuction(params: StaticAuctionTickParams): {
104
- startTick: number;
105
- endTick: number;
106
- };
107
- /**
108
- * Convert market cap range to ticks for V4 Dynamic Auctions (Doppler).
109
- *
110
- * Dynamic auctions compute tick sign based on expected token ordering:
111
- * - Token1 (ETH numeraire): positive ticks, startTick < endTick
112
- * - Token0 (stablecoin numeraire): negative ticks, startTick > endTick
113
- *
114
- * Unlike Multicurve, Doppler contract does NOT auto-flip ticks.
115
- *
116
- * @param params - Configuration object with market cap range and token parameters
117
- * @returns { startTick, endTick } with correct sign and ordering for Doppler contract
118
- *
119
- * @example
120
- * ```ts
121
- * // ETH numeraire (token1) - positive ticks
122
- * const eth = marketCapToTicksForDynamicAuction({
123
- * marketCapRange: { start: 50_000, end: 500_000 },
124
- * tokenSupply: parseEther('1000000000'),
125
- * numerairePriceUSD: 3000,
126
- * numeraire: WETH_ADDRESS,
127
- * tickSpacing: 30,
128
- * })
129
- * // Returns: { startTick: 120000, endTick: 170000 } (positive, ascending)
130
- *
131
- * // USDC numeraire (token0) - negative ticks
132
- * const usdc = marketCapToTicksForDynamicAuction({
133
- * marketCapRange: { start: 50_000, end: 500_000 },
134
- * tokenSupply: parseEther('1000000000'),
135
- * numerairePriceUSD: 1,
136
- * numeraire: USDC_ADDRESS,
137
- * tickSpacing: 30,
138
- * tokenDecimals: 18,
139
- * numeraireDecimals: 6,
140
- * })
141
- * // Returns: { startTick: -120000, endTick: -170000 } (negative, descending)
142
- * ```
143
- */
144
- declare function marketCapToTicksForDynamicAuction(params: DynamicAuctionTickParams): {
145
- startTick: number;
146
- endTick: number;
147
- };
148
- /**
149
- * Convert market cap range to ticks for V4 Multicurve pools.
150
- *
151
- * Tick sign depends on the underlying price ratio - can be positive or negative.
152
- * The contract's adjustCurves() handles token ordering internally.
153
- *
154
- * @param params - Configuration object with market cap range and token parameters
155
- * @returns { tickLower, tickUpper } - tick range where tickLower < tickUpper
156
- *
157
- * @example
158
- * ```ts
159
- * const { tickLower, tickUpper } = marketCapToTicksForMulticurve({
160
- * marketCapLower: 500_000,
161
- * marketCapUpper: 5_000_000,
162
- * tokenSupply: parseEther('1000000000'),
163
- * numerairePriceUSD: 3000,
164
- * tickSpacing: 60,
165
- * })
166
- * ```
167
- */
168
- declare function marketCapToTicksForMulticurve(params: MulticurveTickRangeParams): {
169
- tickLower: number;
170
- tickUpper: number;
171
- };
172
- /**
173
- * Convert a single market cap to a tick for Multicurve use cases.
174
- *
175
- * Used for farTick and pegTick calculations.
176
- * Tick sign depends on the underlying price ratio - can be positive or negative.
177
- *
178
- * @param params - Configuration object with market cap and token parameters
179
- * @returns Tick value (sign depends on price ratio)
180
- *
181
- * @example
182
- * ```ts
183
- * const farTick = marketCapToTickForMulticurve({
184
- * marketCapUSD: 50_000_000,
185
- * tokenSupply: supply,
186
- * numerairePriceUSD: 3000,
187
- * tickSpacing: 60,
188
- * })
189
- * ```
190
- */
191
- declare function marketCapToTickForMulticurve(params: MulticurveTickParams): number;
192
- /**
193
- * Apply curvature offsets to a peg tick for Multicurve positions.
194
- *
195
- * Tick sign depends on the underlying price ratio - can be positive or negative.
196
- * The contract's adjustCurves() handles token ordering internally.
197
- *
198
- * @example
199
- * ```ts
200
- * // Peg at 200000, curve extends 10000 ticks toward higher market cap
201
- * applyTickOffsets(200000, 0, 10000, WETH)
202
- * // Returns: { tickLower: 200000, tickUpper: 210000 }
203
- * ```
204
- */
205
- declare function applyTickOffsets(pegTick: number, offsetLower: number, offsetUpper: number, numeraire: Address): {
206
- tickLower: number;
207
- tickUpper: number;
208
- };
209
- /**
210
- * Validate market cap parameters and return warnings for unusual values
211
- *
212
- * This doesn't prevent execution but helps catch potential mistakes:
213
- * - Very small market caps (< $1,000)
214
- * - Very large market caps (> $1 trillion)
215
- * - Extreme token prices (< $0.000001 or > $1M)
216
- *
217
- * @param marketCap - Market cap value to validate
218
- * @param tokenSupply - Token supply (with decimals)
219
- * @param tokenDecimals - Token decimals (default: 18)
220
- * @returns Validation result with warnings array
221
- *
222
- * @example
223
- * ```ts
224
- * const result = validateMarketCapParameters(500, parseEther('1000000'))
225
- * if (result.warnings.length > 0) {
226
- * console.warn('Warnings:', result.warnings)
227
- * }
228
- * ```
229
- */
230
- declare function validateMarketCapParameters(marketCap: number, tokenSupply: bigint, tokenDecimals?: number): MarketCapValidationResult;
231
- /**
232
- * Calculate market cap from a tick (reverse conversion)
233
- *
234
- * Useful for displaying what market cap a given tick represents.
235
- * Works with ticks from any auction type (Static, Dynamic, Multicurve).
236
- *
237
- * @param params - Configuration object with tick and token parameters
238
- * @returns Market cap in USD
239
- *
240
- * @example
241
- * ```ts
242
- * // Works with negative ticks (Multicurve)
243
- * tickToMarketCap({
244
- * tick: -156000,
245
- * tokenSupply: supply,
246
- * numerairePriceUSD: 3000,
247
- * })
248
- *
249
- * // Works with positive ticks (Static/Dynamic)
250
- * tickToMarketCap({
251
- * tick: 156000,
252
- * tokenSupply: supply,
253
- * numerairePriceUSD: 3000,
254
- * })
255
- * ```
256
- */
257
- declare function tickToMarketCap(params: TickToMarketCapParams): number;
258
-
259
- export { DynamicAuctionTickParams, MarketCapValidationResult, MulticurveTickParams, MulticurveTickRangeParams, StaticAuctionTickParams, TickToMarketCapParams, applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters };
@@ -1,259 +0,0 @@
1
- import { Address } from 'viem';
2
- import { StaticAuctionTickParams, DynamicAuctionTickParams, MulticurveTickRangeParams, MulticurveTickParams, MarketCapValidationResult, TickToMarketCapParams } from '../types.js';
3
- export { MarketCapRange } from '../types.js';
4
- import 'viem/chains';
5
- import '../addresses.js';
6
-
7
- /**
8
- * Market cap conversion utilities for token launches
9
- *
10
- * These utilities convert between market cap (USD) and Uniswap ticks
11
- * following the mathematical relationship:
12
- *
13
- * Market Cap (USD) → Token Price (USD) → Ratio (numeraire/token) → Tick
14
- *
15
- * Based on reference implementation: plan/priceMultiCurve.py
16
- */
17
-
18
- declare function getMaxTickRounded(tickSpacing: number): number;
19
- /**
20
- * Convert market cap to token price
21
- *
22
- * @param marketCapUSD - Market capitalization in USD
23
- * @param tokenSupply - Total token supply (as bigint with decimals, e.g., parseEther('1000000000'))
24
- * @param tokenDecimals - Token decimals (default: 18)
25
- * @returns Price of one token in USD
26
- *
27
- * @example
28
- * ```ts
29
- * // $1M market cap with 1B tokens (18 decimals)
30
- * const price = marketCapToTokenPrice(1_000_000, parseEther('1000000000'))
31
- * // Returns: 0.001 (each token is worth $0.001)
32
- * ```
33
- */
34
- declare function marketCapToTokenPrice(marketCapUSD: number, tokenSupply: bigint, tokenDecimals?: number): number;
35
- /**
36
- * Convert token price to price ratio (numeraire per token)
37
- *
38
- * @param tokenPriceUSD - Price of one token in USD
39
- * @param numerairePriceUSD - Price of numeraire (e.g., ETH) in USD
40
- * @param tokenDecimals - Token decimals (default: 18)
41
- * @param numeraireDecimals - Numeraire decimals (default: 18)
42
- * @returns Price ratio adjusted for decimals
43
- *
44
- * @example
45
- * ```ts
46
- * // Token at $0.001, ETH at $3000, both 18 decimals
47
- * const ratio = tokenPriceToRatio(0.001, 3000, 18, 18)
48
- * // Returns: 3,000,000 (3M ETH wei per token wei at this ratio)
49
- * ```
50
- */
51
- declare function tokenPriceToRatio(tokenPriceUSD: number, numerairePriceUSD: number, tokenDecimals?: number, numeraireDecimals?: number): number;
52
- /**
53
- * Convert ratio to tick using Uniswap's formula: tick = log(ratio) / log(1.0001)
54
- *
55
- * @param ratio - Price ratio (must be positive)
56
- * @returns Raw tick value (before spacing adjustment)
57
- *
58
- * @example
59
- * ```ts
60
- * ratioToTick(1) // Returns: 0
61
- * ratioToTick(1.0001) // Returns: ~1
62
- * ratioToTick(Math.pow(1.0001, 1000)) // Returns: ~1000
63
- * ```
64
- */
65
- declare function ratioToTick(ratio: number): number;
66
- /**
67
- * Determine if the new token will be token1 in the Uniswap pair
68
- *
69
- * Uniswap orders tokens by address (token0 < token1 in hex comparison).
70
- * This affects how ticks are interpreted for price calculations.
71
- *
72
- * @param tokenAddress - Address of the new token
73
- * @param numeraireAddress - Address of the numeraire (e.g., WETH)
74
- * @returns true if token will be token1, false if token0
75
- *
76
- * @example
77
- * ```ts
78
- * isToken1('0xB000...', '0xA000...') // true (B > A)
79
- * isToken1('0xA000...', '0xB000...') // false (A < B)
80
- * ```
81
- */
82
- declare function isToken1(tokenAddress: string, numeraireAddress: string): boolean;
83
- /**
84
- * Convert market cap range to ticks for V3 Static Auctions.
85
- *
86
- * V3 Static auctions ALWAYS use positive ticks with startTick < endTick.
87
- * This is because CREATE2 mining ensures token address > numeraire (token1).
88
- *
89
- * @param params - Configuration object with market cap range and token parameters
90
- * @returns { startTick, endTick } - positive ticks, startTick < endTick
91
- *
92
- * @example
93
- * ```ts
94
- * const { startTick, endTick } = marketCapToTicksForStaticAuction({
95
- * marketCapRange: { start: 100_000, end: 10_000_000 },
96
- * tokenSupply: parseEther('1000000000'),
97
- * numerairePriceUSD: 3000,
98
- * tickSpacing: 60,
99
- * })
100
- * // Returns: { startTick: 120000, endTick: 170000 } (both positive)
101
- * ```
102
- */
103
- declare function marketCapToTicksForStaticAuction(params: StaticAuctionTickParams): {
104
- startTick: number;
105
- endTick: number;
106
- };
107
- /**
108
- * Convert market cap range to ticks for V4 Dynamic Auctions (Doppler).
109
- *
110
- * Dynamic auctions compute tick sign based on expected token ordering:
111
- * - Token1 (ETH numeraire): positive ticks, startTick < endTick
112
- * - Token0 (stablecoin numeraire): negative ticks, startTick > endTick
113
- *
114
- * Unlike Multicurve, Doppler contract does NOT auto-flip ticks.
115
- *
116
- * @param params - Configuration object with market cap range and token parameters
117
- * @returns { startTick, endTick } with correct sign and ordering for Doppler contract
118
- *
119
- * @example
120
- * ```ts
121
- * // ETH numeraire (token1) - positive ticks
122
- * const eth = marketCapToTicksForDynamicAuction({
123
- * marketCapRange: { start: 50_000, end: 500_000 },
124
- * tokenSupply: parseEther('1000000000'),
125
- * numerairePriceUSD: 3000,
126
- * numeraire: WETH_ADDRESS,
127
- * tickSpacing: 30,
128
- * })
129
- * // Returns: { startTick: 120000, endTick: 170000 } (positive, ascending)
130
- *
131
- * // USDC numeraire (token0) - negative ticks
132
- * const usdc = marketCapToTicksForDynamicAuction({
133
- * marketCapRange: { start: 50_000, end: 500_000 },
134
- * tokenSupply: parseEther('1000000000'),
135
- * numerairePriceUSD: 1,
136
- * numeraire: USDC_ADDRESS,
137
- * tickSpacing: 30,
138
- * tokenDecimals: 18,
139
- * numeraireDecimals: 6,
140
- * })
141
- * // Returns: { startTick: -120000, endTick: -170000 } (negative, descending)
142
- * ```
143
- */
144
- declare function marketCapToTicksForDynamicAuction(params: DynamicAuctionTickParams): {
145
- startTick: number;
146
- endTick: number;
147
- };
148
- /**
149
- * Convert market cap range to ticks for V4 Multicurve pools.
150
- *
151
- * Tick sign depends on the underlying price ratio - can be positive or negative.
152
- * The contract's adjustCurves() handles token ordering internally.
153
- *
154
- * @param params - Configuration object with market cap range and token parameters
155
- * @returns { tickLower, tickUpper } - tick range where tickLower < tickUpper
156
- *
157
- * @example
158
- * ```ts
159
- * const { tickLower, tickUpper } = marketCapToTicksForMulticurve({
160
- * marketCapLower: 500_000,
161
- * marketCapUpper: 5_000_000,
162
- * tokenSupply: parseEther('1000000000'),
163
- * numerairePriceUSD: 3000,
164
- * tickSpacing: 60,
165
- * })
166
- * ```
167
- */
168
- declare function marketCapToTicksForMulticurve(params: MulticurveTickRangeParams): {
169
- tickLower: number;
170
- tickUpper: number;
171
- };
172
- /**
173
- * Convert a single market cap to a tick for Multicurve use cases.
174
- *
175
- * Used for farTick and pegTick calculations.
176
- * Tick sign depends on the underlying price ratio - can be positive or negative.
177
- *
178
- * @param params - Configuration object with market cap and token parameters
179
- * @returns Tick value (sign depends on price ratio)
180
- *
181
- * @example
182
- * ```ts
183
- * const farTick = marketCapToTickForMulticurve({
184
- * marketCapUSD: 50_000_000,
185
- * tokenSupply: supply,
186
- * numerairePriceUSD: 3000,
187
- * tickSpacing: 60,
188
- * })
189
- * ```
190
- */
191
- declare function marketCapToTickForMulticurve(params: MulticurveTickParams): number;
192
- /**
193
- * Apply curvature offsets to a peg tick for Multicurve positions.
194
- *
195
- * Tick sign depends on the underlying price ratio - can be positive or negative.
196
- * The contract's adjustCurves() handles token ordering internally.
197
- *
198
- * @example
199
- * ```ts
200
- * // Peg at 200000, curve extends 10000 ticks toward higher market cap
201
- * applyTickOffsets(200000, 0, 10000, WETH)
202
- * // Returns: { tickLower: 200000, tickUpper: 210000 }
203
- * ```
204
- */
205
- declare function applyTickOffsets(pegTick: number, offsetLower: number, offsetUpper: number, numeraire: Address): {
206
- tickLower: number;
207
- tickUpper: number;
208
- };
209
- /**
210
- * Validate market cap parameters and return warnings for unusual values
211
- *
212
- * This doesn't prevent execution but helps catch potential mistakes:
213
- * - Very small market caps (< $1,000)
214
- * - Very large market caps (> $1 trillion)
215
- * - Extreme token prices (< $0.000001 or > $1M)
216
- *
217
- * @param marketCap - Market cap value to validate
218
- * @param tokenSupply - Token supply (with decimals)
219
- * @param tokenDecimals - Token decimals (default: 18)
220
- * @returns Validation result with warnings array
221
- *
222
- * @example
223
- * ```ts
224
- * const result = validateMarketCapParameters(500, parseEther('1000000'))
225
- * if (result.warnings.length > 0) {
226
- * console.warn('Warnings:', result.warnings)
227
- * }
228
- * ```
229
- */
230
- declare function validateMarketCapParameters(marketCap: number, tokenSupply: bigint, tokenDecimals?: number): MarketCapValidationResult;
231
- /**
232
- * Calculate market cap from a tick (reverse conversion)
233
- *
234
- * Useful for displaying what market cap a given tick represents.
235
- * Works with ticks from any auction type (Static, Dynamic, Multicurve).
236
- *
237
- * @param params - Configuration object with tick and token parameters
238
- * @returns Market cap in USD
239
- *
240
- * @example
241
- * ```ts
242
- * // Works with negative ticks (Multicurve)
243
- * tickToMarketCap({
244
- * tick: -156000,
245
- * tokenSupply: supply,
246
- * numerairePriceUSD: 3000,
247
- * })
248
- *
249
- * // Works with positive ticks (Static/Dynamic)
250
- * tickToMarketCap({
251
- * tick: 156000,
252
- * tokenSupply: supply,
253
- * numerairePriceUSD: 3000,
254
- * })
255
- * ```
256
- */
257
- declare function tickToMarketCap(params: TickToMarketCapParams): number;
258
-
259
- export { DynamicAuctionTickParams, MarketCapValidationResult, MulticurveTickParams, MulticurveTickRangeParams, StaticAuctionTickParams, TickToMarketCapParams, applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters };
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkFNUBKONK_js = require('../chunk-FNUBKONK.js');
4
- require('../chunk-6H6X3VTZ.js');
5
- require('../chunk-4VWQNNNW.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "applyTickOffsets", {
10
- enumerable: true,
11
- get: function () { return chunkFNUBKONK_js.applyTickOffsets; }
12
- });
13
- Object.defineProperty(exports, "getMaxTickRounded", {
14
- enumerable: true,
15
- get: function () { return chunkFNUBKONK_js.getMaxTickRounded; }
16
- });
17
- Object.defineProperty(exports, "isToken1", {
18
- enumerable: true,
19
- get: function () { return chunkFNUBKONK_js.isToken1; }
20
- });
21
- Object.defineProperty(exports, "marketCapToTickForMulticurve", {
22
- enumerable: true,
23
- get: function () { return chunkFNUBKONK_js.marketCapToTickForMulticurve; }
24
- });
25
- Object.defineProperty(exports, "marketCapToTicksForDynamicAuction", {
26
- enumerable: true,
27
- get: function () { return chunkFNUBKONK_js.marketCapToTicksForDynamicAuction; }
28
- });
29
- Object.defineProperty(exports, "marketCapToTicksForMulticurve", {
30
- enumerable: true,
31
- get: function () { return chunkFNUBKONK_js.marketCapToTicksForMulticurve; }
32
- });
33
- Object.defineProperty(exports, "marketCapToTicksForStaticAuction", {
34
- enumerable: true,
35
- get: function () { return chunkFNUBKONK_js.marketCapToTicksForStaticAuction; }
36
- });
37
- Object.defineProperty(exports, "marketCapToTokenPrice", {
38
- enumerable: true,
39
- get: function () { return chunkFNUBKONK_js.marketCapToTokenPrice; }
40
- });
41
- Object.defineProperty(exports, "ratioToTick", {
42
- enumerable: true,
43
- get: function () { return chunkFNUBKONK_js.ratioToTick; }
44
- });
45
- Object.defineProperty(exports, "tickToMarketCap", {
46
- enumerable: true,
47
- get: function () { return chunkFNUBKONK_js.tickToMarketCap; }
48
- });
49
- Object.defineProperty(exports, "tokenPriceToRatio", {
50
- enumerable: true,
51
- get: function () { return chunkFNUBKONK_js.tokenPriceToRatio; }
52
- });
53
- Object.defineProperty(exports, "validateMarketCapParameters", {
54
- enumerable: true,
55
- get: function () { return chunkFNUBKONK_js.validateMarketCapParameters; }
56
- });
57
- //# sourceMappingURL=marketCapHelpers.js.map
58
- //# sourceMappingURL=marketCapHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"marketCapHelpers.js"}
@@ -1,5 +0,0 @@
1
- export { applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters } from '../chunk-GSBQIVME.mjs';
2
- import '../chunk-ABT6AT7C.mjs';
3
- import '../chunk-25GEBO3B.mjs';
4
- //# sourceMappingURL=marketCapHelpers.mjs.map
5
- //# sourceMappingURL=marketCapHelpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"marketCapHelpers.mjs"}
@@ -1,17 +0,0 @@
1
- import { Hex } from 'viem';
2
- import { V4PoolKey } from '../types.mjs';
3
- import 'viem/chains';
4
- import '../addresses.mjs';
5
-
6
- /**
7
- * Computes the PoolId (bytes32) from a V4 PoolKey
8
- *
9
- * In Uniswap V4, a PoolId is computed as keccak256(abi.encode(poolKey))
10
- * where poolKey contains: currency0, currency1, fee, tickSpacing, hooks
11
- *
12
- * @param poolKey - The V4 pool key containing currency0, currency1, fee, tickSpacing, and hooks
13
- * @returns The computed PoolId as a bytes32 hex string
14
- */
15
- declare function computePoolId(poolKey: V4PoolKey): Hex;
16
-
17
- export { computePoolId };
@@ -1,17 +0,0 @@
1
- import { Hex } from 'viem';
2
- import { V4PoolKey } from '../types.js';
3
- import 'viem/chains';
4
- import '../addresses.js';
5
-
6
- /**
7
- * Computes the PoolId (bytes32) from a V4 PoolKey
8
- *
9
- * In Uniswap V4, a PoolId is computed as keccak256(abi.encode(poolKey))
10
- * where poolKey contains: currency0, currency1, fee, tickSpacing, hooks
11
- *
12
- * @param poolKey - The V4 pool key containing currency0, currency1, fee, tickSpacing, and hooks
13
- * @returns The computed PoolId as a bytes32 hex string
14
- */
15
- declare function computePoolId(poolKey: V4PoolKey): Hex;
16
-
17
- export { computePoolId };
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk7M57PU6V_js = require('../chunk-7M57PU6V.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "computePoolId", {
8
- enumerable: true,
9
- get: function () { return chunk7M57PU6V_js.computePoolId; }
10
- });
11
- //# sourceMappingURL=poolKey.js.map
12
- //# sourceMappingURL=poolKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"poolKey.js"}
@@ -1,3 +0,0 @@
1
- export { computePoolId } from '../chunk-CFAAYL5M.mjs';
2
- //# sourceMappingURL=poolKey.mjs.map
3
- //# sourceMappingURL=poolKey.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"poolKey.mjs"}