@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.
- package/README.md +69 -0
- package/dist/chunk-3LTCKCJC.js +319 -0
- package/dist/chunk-3LTCKCJC.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/{chunk-4XN6DQBW.js.map → chunk-PZ5AY32C.js.map} +1 -1
- package/dist/chunk-RO6R66OM.js +974 -0
- package/dist/chunk-RO6R66OM.js.map +1 -0
- package/dist/evm/index.d.ts +8533 -0
- package/dist/evm/index.js +15055 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/oracle-BSvZ6pxp.d.ts +820 -0
- package/dist/pda-RVIHNLRP.js +4 -0
- package/dist/pda-RVIHNLRP.js.map +1 -0
- package/dist/solana/index.d.ts +2495 -0
- package/dist/solana/index.js +2209 -0
- package/dist/solana/index.js.map +1 -0
- package/dist/solana/react/index.d.ts +1046 -0
- package/dist/solana/react/index.js +1436 -0
- package/dist/solana/react/index.js.map +1 -0
- package/package.json +36 -20
- package/dist/DopplerSDK.d.mts +0 -106
- package/dist/DopplerSDK.d.ts +0 -106
- package/dist/DopplerSDK.js +0 -53
- package/dist/DopplerSDK.js.map +0 -1
- package/dist/DopplerSDK.mjs +0 -44
- package/dist/DopplerSDK.mjs.map +0 -1
- package/dist/abis/bytecodes/derc20.d.mts +0 -3
- package/dist/abis/bytecodes/derc20.d.ts +0 -3
- package/dist/abis/bytecodes/derc20.js +0 -9
- package/dist/abis/bytecodes/derc20.js.map +0 -1
- package/dist/abis/bytecodes/derc20.mjs +0 -3
- package/dist/abis/bytecodes/derc20.mjs.map +0 -1
- package/dist/abis/bytecodes/derc2080.d.mts +0 -3
- package/dist/abis/bytecodes/derc2080.d.ts +0 -3
- package/dist/abis/bytecodes/derc2080.js +0 -9
- package/dist/abis/bytecodes/derc2080.js.map +0 -1
- package/dist/abis/bytecodes/derc2080.mjs +0 -3
- package/dist/abis/bytecodes/derc2080.mjs.map +0 -1
- package/dist/abis/bytecodes/doppler.d.mts +0 -3
- package/dist/abis/bytecodes/doppler.d.ts +0 -3
- package/dist/abis/bytecodes/doppler.js +0 -9
- package/dist/abis/bytecodes/doppler.js.map +0 -1
- package/dist/abis/bytecodes/doppler.mjs +0 -3
- package/dist/abis/bytecodes/doppler.mjs.map +0 -1
- package/dist/abis/bytecodes/dopplerDN404.d.mts +0 -3
- package/dist/abis/bytecodes/dopplerDN404.d.ts +0 -3
- package/dist/abis/bytecodes/dopplerDN404.js +0 -9
- package/dist/abis/bytecodes/dopplerDN404.js.map +0 -1
- package/dist/abis/bytecodes/dopplerDN404.mjs +0 -3
- package/dist/abis/bytecodes/dopplerDN404.mjs.map +0 -1
- package/dist/abis/bytecodes/stateView.d.mts +0 -3
- package/dist/abis/bytecodes/stateView.d.ts +0 -3
- package/dist/abis/bytecodes/stateView.js +0 -9
- package/dist/abis/bytecodes/stateView.js.map +0 -1
- package/dist/abis/bytecodes/stateView.mjs +0 -3
- package/dist/abis/bytecodes/stateView.mjs.map +0 -1
- package/dist/abis/bytecodes.d.mts +0 -5
- package/dist/abis/bytecodes.d.ts +0 -5
- package/dist/abis/bytecodes.js +0 -33
- package/dist/abis/bytecodes.js.map +0 -1
- package/dist/abis/bytecodes.mjs +0 -8
- package/dist/abis/bytecodes.mjs.map +0 -1
- package/dist/abis/index.d.mts +0 -3871
- package/dist/abis/index.d.ts +0 -3871
- package/dist/abis/index.js +0 -130
- package/dist/abis/index.js.map +0 -1
- package/dist/abis/index.mjs +0 -9
- package/dist/abis/index.mjs.map +0 -1
- package/dist/addresses.d.mts +0 -69
- package/dist/addresses.d.ts +0 -69
- package/dist/addresses.js +0 -29
- package/dist/addresses.js.map +0 -1
- package/dist/addresses.mjs +0 -4
- package/dist/addresses.mjs.map +0 -1
- package/dist/builders/DynamicAuctionBuilder.d.mts +0 -138
- package/dist/builders/DynamicAuctionBuilder.d.ts +0 -138
- package/dist/builders/DynamicAuctionBuilder.js +0 -35
- package/dist/builders/DynamicAuctionBuilder.js.map +0 -1
- package/dist/builders/DynamicAuctionBuilder.mjs +0 -26
- package/dist/builders/DynamicAuctionBuilder.mjs.map +0 -1
- package/dist/builders/MulticurveBuilder.d.mts +0 -196
- package/dist/builders/MulticurveBuilder.d.ts +0 -196
- package/dist/builders/MulticurveBuilder.js +0 -35
- package/dist/builders/MulticurveBuilder.js.map +0 -1
- package/dist/builders/MulticurveBuilder.mjs +0 -26
- package/dist/builders/MulticurveBuilder.mjs.map +0 -1
- package/dist/builders/StaticAuctionBuilder.d.mts +0 -131
- package/dist/builders/StaticAuctionBuilder.d.ts +0 -131
- package/dist/builders/StaticAuctionBuilder.js +0 -35
- package/dist/builders/StaticAuctionBuilder.js.map +0 -1
- package/dist/builders/StaticAuctionBuilder.mjs +0 -26
- package/dist/builders/StaticAuctionBuilder.mjs.map +0 -1
- package/dist/builders/index.d.mts +0 -8
- package/dist/builders/index.d.ts +0 -8
- package/dist/builders/index.js +0 -62
- package/dist/builders/index.js.map +0 -1
- package/dist/builders/index.mjs +0 -29
- package/dist/builders/index.mjs.map +0 -1
- package/dist/builders/shared.d.mts +0 -115
- package/dist/builders/shared.d.ts +0 -115
- package/dist/builders/shared.js +0 -46
- package/dist/builders/shared.js.map +0 -1
- package/dist/builders/shared.mjs +0 -25
- package/dist/builders/shared.mjs.map +0 -1
- package/dist/chunk-25GEBO3B.mjs +0 -219
- package/dist/chunk-25GEBO3B.mjs.map +0 -1
- package/dist/chunk-2A3B3NVB.js +0 -737
- package/dist/chunk-2A3B3NVB.js.map +0 -1
- package/dist/chunk-3NMGCQJ4.mjs +0 -6
- package/dist/chunk-3NMGCQJ4.mjs.map +0 -1
- package/dist/chunk-44CYUEPG.js +0 -377
- package/dist/chunk-44CYUEPG.js.map +0 -1
- package/dist/chunk-4VWQNNNW.js +0 -233
- package/dist/chunk-4VWQNNNW.js.map +0 -1
- package/dist/chunk-4XN6DQBW.js +0 -4
- package/dist/chunk-5GQJRNFL.mjs +0 -40
- package/dist/chunk-5GQJRNFL.mjs.map +0 -1
- package/dist/chunk-5JHXBDZD.js +0 -265
- package/dist/chunk-5JHXBDZD.js.map +0 -1
- package/dist/chunk-5TQOT6CW.js +0 -8
- package/dist/chunk-5TQOT6CW.js.map +0 -1
- package/dist/chunk-65CESA3J.js +0 -46
- package/dist/chunk-65CESA3J.js.map +0 -1
- package/dist/chunk-6BQY5EPB.js +0 -144
- package/dist/chunk-6BQY5EPB.js.map +0 -1
- package/dist/chunk-6H6X3VTZ.js +0 -18
- package/dist/chunk-6H6X3VTZ.js.map +0 -1
- package/dist/chunk-7A4DBBXA.js +0 -311
- package/dist/chunk-7A4DBBXA.js.map +0 -1
- package/dist/chunk-7M57PU6V.js +0 -28
- package/dist/chunk-7M57PU6V.js.map +0 -1
- package/dist/chunk-7ZUV6WPX.mjs +0 -3
- package/dist/chunk-7ZUV6WPX.mjs.map +0 -1
- package/dist/chunk-A2CJYRRQ.js +0 -330
- package/dist/chunk-A2CJYRRQ.js.map +0 -1
- package/dist/chunk-ABT6AT7C.mjs +0 -16
- package/dist/chunk-ABT6AT7C.mjs.map +0 -1
- package/dist/chunk-BK3S6SVR.js +0 -2707
- package/dist/chunk-BK3S6SVR.js.map +0 -1
- package/dist/chunk-BQZTELUX.js +0 -45
- package/dist/chunk-BQZTELUX.js.map +0 -1
- package/dist/chunk-CFAAYL5M.mjs +0 -26
- package/dist/chunk-CFAAYL5M.mjs.map +0 -1
- package/dist/chunk-CFXXUZJY.js +0 -275
- package/dist/chunk-CFXXUZJY.js.map +0 -1
- package/dist/chunk-CWTGQAOG.mjs +0 -72
- package/dist/chunk-CWTGQAOG.mjs.map +0 -1
- package/dist/chunk-DCWF3EMP.js +0 -171
- package/dist/chunk-DCWF3EMP.js.map +0 -1
- package/dist/chunk-DOUF6NON.mjs +0 -3
- package/dist/chunk-DOUF6NON.mjs.map +0 -1
- package/dist/chunk-DQJXCZU2.mjs +0 -318
- package/dist/chunk-DQJXCZU2.mjs.map +0 -1
- package/dist/chunk-DSYPZETD.js +0 -4
- package/dist/chunk-DSYPZETD.js.map +0 -1
- package/dist/chunk-F2BYG63D.mjs +0 -145
- package/dist/chunk-F2BYG63D.mjs.map +0 -1
- package/dist/chunk-FNUBKONK.js +0 -291
- package/dist/chunk-FNUBKONK.js.map +0 -1
- package/dist/chunk-FOESYJP3.mjs +0 -3
- package/dist/chunk-FOESYJP3.mjs.map +0 -1
- package/dist/chunk-FXTGIKQG.mjs +0 -3
- package/dist/chunk-FXTGIKQG.mjs.map +0 -1
- package/dist/chunk-GSBQIVME.mjs +0 -278
- package/dist/chunk-GSBQIVME.mjs.map +0 -1
- package/dist/chunk-H3B54PFV.mjs +0 -17
- package/dist/chunk-H3B54PFV.mjs.map +0 -1
- package/dist/chunk-HJFVRV47.js +0 -120
- package/dist/chunk-HJFVRV47.js.map +0 -1
- package/dist/chunk-IIM2CSDQ.js +0 -147
- package/dist/chunk-IIM2CSDQ.js.map +0 -1
- package/dist/chunk-IUTIHSLH.mjs +0 -295
- package/dist/chunk-IUTIHSLH.mjs.map +0 -1
- package/dist/chunk-IUZ3BBQP.mjs +0 -117
- package/dist/chunk-IUZ3BBQP.mjs.map +0 -1
- package/dist/chunk-IWJOPXYN.mjs +0 -96
- package/dist/chunk-IWJOPXYN.mjs.map +0 -1
- package/dist/chunk-IX4V4UGW.mjs +0 -141
- package/dist/chunk-IX4V4UGW.mjs.map +0 -1
- package/dist/chunk-J62YDWIK.js +0 -8
- package/dist/chunk-J62YDWIK.js.map +0 -1
- package/dist/chunk-JIKAD4YL.js +0 -4
- package/dist/chunk-JIKAD4YL.js.map +0 -1
- package/dist/chunk-JLUOFAE4.mjs +0 -2531
- package/dist/chunk-JLUOFAE4.mjs.map +0 -1
- package/dist/chunk-KAZQJ24E.mjs +0 -59
- package/dist/chunk-KAZQJ24E.mjs.map +0 -1
- package/dist/chunk-KHUE77HC.js +0 -81
- package/dist/chunk-KHUE77HC.js.map +0 -1
- package/dist/chunk-KOAC3BBP.mjs +0 -11
- package/dist/chunk-KOAC3BBP.mjs.map +0 -1
- package/dist/chunk-LW3CYA27.mjs +0 -2705
- package/dist/chunk-LW3CYA27.mjs.map +0 -1
- package/dist/chunk-MEA2C5YX.js +0 -143
- package/dist/chunk-MEA2C5YX.js.map +0 -1
- package/dist/chunk-MU56HCUI.js +0 -2556
- package/dist/chunk-MU56HCUI.js.map +0 -1
- package/dist/chunk-OCIY7QEJ.mjs +0 -169
- package/dist/chunk-OCIY7QEJ.mjs.map +0 -1
- package/dist/chunk-OHA5KJ2M.mjs +0 -6
- package/dist/chunk-OHA5KJ2M.mjs.map +0 -1
- package/dist/chunk-P25HBGP5.mjs +0 -3
- package/dist/chunk-P25HBGP5.mjs.map +0 -1
- package/dist/chunk-P563HTVU.js +0 -164
- package/dist/chunk-P563HTVU.js.map +0 -1
- package/dist/chunk-P7CHGWY7.js +0 -4
- package/dist/chunk-P7CHGWY7.js.map +0 -1
- package/dist/chunk-PGYTMRP3.js +0 -277
- package/dist/chunk-PGYTMRP3.js.map +0 -1
- package/dist/chunk-QAPQGDWK.js +0 -8
- package/dist/chunk-QAPQGDWK.js.map +0 -1
- package/dist/chunk-QHBKRUBY.mjs +0 -328
- package/dist/chunk-QHBKRUBY.mjs.map +0 -1
- package/dist/chunk-QOYI7WCH.js +0 -120
- package/dist/chunk-QOYI7WCH.js.map +0 -1
- package/dist/chunk-QRTABC4Z.js +0 -8
- package/dist/chunk-QRTABC4Z.js.map +0 -1
- package/dist/chunk-QSQGLWNY.mjs +0 -3
- package/dist/chunk-QSQGLWNY.mjs.map +0 -1
- package/dist/chunk-QUBD6HUZ.mjs +0 -735
- package/dist/chunk-QUBD6HUZ.mjs.map +0 -1
- package/dist/chunk-RDTIXP6S.mjs +0 -263
- package/dist/chunk-RDTIXP6S.mjs.map +0 -1
- package/dist/chunk-RLOZWHRR.js +0 -320
- package/dist/chunk-RLOZWHRR.js.map +0 -1
- package/dist/chunk-RV64M4Q6.mjs +0 -3
- package/dist/chunk-RV64M4Q6.mjs.map +0 -1
- package/dist/chunk-SWWLOD7Q.mjs +0 -6
- package/dist/chunk-SWWLOD7Q.mjs.map +0 -1
- package/dist/chunk-T3UA4MJL.js +0 -4
- package/dist/chunk-T3UA4MJL.js.map +0 -1
- package/dist/chunk-TEWAXP5C.mjs +0 -162
- package/dist/chunk-TEWAXP5C.mjs.map +0 -1
- package/dist/chunk-THEIRDGE.mjs +0 -273
- package/dist/chunk-THEIRDGE.mjs.map +0 -1
- package/dist/chunk-U3GOWK6J.mjs +0 -6
- package/dist/chunk-U3GOWK6J.mjs.map +0 -1
- package/dist/chunk-UPVKABAV.js +0 -19
- package/dist/chunk-UPVKABAV.js.map +0 -1
- package/dist/chunk-VEIVYUYF.js +0 -4
- package/dist/chunk-VEIVYUYF.js.map +0 -1
- package/dist/chunk-VKSD3KXF.mjs +0 -275
- package/dist/chunk-VKSD3KXF.mjs.map +0 -1
- package/dist/chunk-VYSOAGRU.mjs +0 -6
- package/dist/chunk-VYSOAGRU.mjs.map +0 -1
- package/dist/chunk-WDC53TM7.mjs +0 -305
- package/dist/chunk-WDC53TM7.mjs.map +0 -1
- package/dist/chunk-WKWP42TD.mjs +0 -39
- package/dist/chunk-WKWP42TD.mjs.map +0 -1
- package/dist/chunk-WNUB3UTT.js +0 -241
- package/dist/chunk-WNUB3UTT.js.map +0 -1
- package/dist/chunk-WNWK2QMU.mjs +0 -375
- package/dist/chunk-WNWK2QMU.mjs.map +0 -1
- package/dist/chunk-WQHTNL5L.js +0 -4
- package/dist/chunk-WQHTNL5L.js.map +0 -1
- package/dist/chunk-WZF5XNBC.js +0 -297
- package/dist/chunk-WZF5XNBC.js.map +0 -1
- package/dist/chunk-X3UMAHOJ.js +0 -4
- package/dist/chunk-X3UMAHOJ.js.map +0 -1
- package/dist/chunk-XMFOZYNI.js +0 -8
- package/dist/chunk-XMFOZYNI.js.map +0 -1
- package/dist/chunk-XNMXN5SZ.mjs +0 -3
- package/dist/chunk-XNMXN5SZ.mjs.map +0 -1
- package/dist/chunk-XSJTASPK.js +0 -13
- package/dist/chunk-XSJTASPK.js.map +0 -1
- package/dist/chunk-YBK6EBA5.mjs +0 -239
- package/dist/chunk-YBK6EBA5.mjs.map +0 -1
- package/dist/chunk-YYLD3AJ7.js +0 -61
- package/dist/chunk-YYLD3AJ7.js.map +0 -1
- package/dist/chunk-ZEDJUNC6.mjs +0 -115
- package/dist/chunk-ZEDJUNC6.mjs.map +0 -1
- package/dist/constants.d.mts +0 -91
- package/dist/constants.d.ts +0 -91
- package/dist/constants.js +0 -196
- package/dist/constants.js.map +0 -1
- package/dist/constants.mjs +0 -3
- package/dist/constants.mjs.map +0 -1
- package/dist/deployments.generated.d.mts +0 -275
- package/dist/deployments.generated.d.ts +0 -275
- package/dist/deployments.generated.js +0 -12
- package/dist/deployments.generated.js.map +0 -1
- package/dist/deployments.generated.mjs +0 -3
- package/dist/deployments.generated.mjs.map +0 -1
- package/dist/entities/DopplerFactory.d.mts +0 -272
- package/dist/entities/DopplerFactory.d.ts +0 -272
- package/dist/entities/DopplerFactory.js +0 -34
- package/dist/entities/DopplerFactory.js.map +0 -1
- package/dist/entities/DopplerFactory.mjs +0 -25
- package/dist/entities/DopplerFactory.mjs.map +0 -1
- package/dist/entities/auction/DynamicAuction.d.mts +0 -72
- package/dist/entities/auction/DynamicAuction.d.ts +0 -72
- package/dist/entities/auction/DynamicAuction.js +0 -21
- package/dist/entities/auction/DynamicAuction.js.map +0 -1
- package/dist/entities/auction/DynamicAuction.mjs +0 -12
- package/dist/entities/auction/DynamicAuction.mjs.map +0 -1
- package/dist/entities/auction/MulticurvePool.d.mts +0 -78
- package/dist/entities/auction/MulticurvePool.d.ts +0 -78
- package/dist/entities/auction/MulticurvePool.js +0 -24
- package/dist/entities/auction/MulticurvePool.js.map +0 -1
- package/dist/entities/auction/MulticurvePool.mjs +0 -15
- package/dist/entities/auction/MulticurvePool.mjs.map +0 -1
- package/dist/entities/auction/RehypeDopplerHook.d.mts +0 -57
- package/dist/entities/auction/RehypeDopplerHook.d.ts +0 -57
- package/dist/entities/auction/RehypeDopplerHook.js +0 -34
- package/dist/entities/auction/RehypeDopplerHook.js.map +0 -1
- package/dist/entities/auction/RehypeDopplerHook.mjs +0 -25
- package/dist/entities/auction/RehypeDopplerHook.mjs.map +0 -1
- package/dist/entities/auction/RehypeDopplerHookMigrator.d.mts +0 -48
- package/dist/entities/auction/RehypeDopplerHookMigrator.d.ts +0 -48
- package/dist/entities/auction/RehypeDopplerHookMigrator.js +0 -34
- package/dist/entities/auction/RehypeDopplerHookMigrator.js.map +0 -1
- package/dist/entities/auction/RehypeDopplerHookMigrator.mjs +0 -25
- package/dist/entities/auction/RehypeDopplerHookMigrator.mjs.map +0 -1
- package/dist/entities/auction/StaticAuction.d.mts +0 -44
- package/dist/entities/auction/StaticAuction.d.ts +0 -44
- package/dist/entities/auction/StaticAuction.js +0 -21
- package/dist/entities/auction/StaticAuction.js.map +0 -1
- package/dist/entities/auction/StaticAuction.mjs +0 -12
- package/dist/entities/auction/StaticAuction.mjs.map +0 -1
- package/dist/entities/auction/index.d.mts +0 -9
- package/dist/entities/auction/index.d.ts +0 -9
- package/dist/entities/auction/index.js +0 -55
- package/dist/entities/auction/index.js.map +0 -1
- package/dist/entities/auction/index.mjs +0 -30
- package/dist/entities/auction/index.mjs.map +0 -1
- package/dist/entities/quoter/Quoter.d.mts +0 -150
- package/dist/entities/quoter/Quoter.d.ts +0 -150
- package/dist/entities/quoter/Quoter.js +0 -21
- package/dist/entities/quoter/Quoter.js.map +0 -1
- package/dist/entities/quoter/Quoter.mjs +0 -12
- package/dist/entities/quoter/Quoter.mjs.map +0 -1
- package/dist/entities/quoter/index.d.mts +0 -5
- package/dist/entities/quoter/index.d.ts +0 -5
- package/dist/entities/quoter/index.js +0 -22
- package/dist/entities/quoter/index.js.map +0 -1
- package/dist/entities/quoter/index.mjs +0 -13
- package/dist/entities/quoter/index.mjs.map +0 -1
- package/dist/entities/token/derc20/Derc20.d.mts +0 -102
- package/dist/entities/token/derc20/Derc20.d.ts +0 -102
- package/dist/entities/token/derc20/Derc20.js +0 -19
- package/dist/entities/token/derc20/Derc20.js.map +0 -1
- package/dist/entities/token/derc20/Derc20.mjs +0 -10
- package/dist/entities/token/derc20/Derc20.mjs.map +0 -1
- package/dist/entities/token/derc20/index.d.mts +0 -5
- package/dist/entities/token/derc20/index.d.ts +0 -5
- package/dist/entities/token/derc20/index.js +0 -20
- package/dist/entities/token/derc20/index.js.map +0 -1
- package/dist/entities/token/derc20/index.mjs +0 -11
- package/dist/entities/token/derc20/index.mjs.map +0 -1
- package/dist/entities/token/eth/Eth.d.mts +0 -54
- package/dist/entities/token/eth/Eth.d.ts +0 -54
- package/dist/entities/token/eth/Eth.js +0 -12
- package/dist/entities/token/eth/Eth.js.map +0 -1
- package/dist/entities/token/eth/Eth.mjs +0 -3
- package/dist/entities/token/eth/Eth.mjs.map +0 -1
- package/dist/entities/token/eth/index.d.mts +0 -5
- package/dist/entities/token/eth/index.d.ts +0 -5
- package/dist/entities/token/eth/index.js +0 -13
- package/dist/entities/token/eth/index.js.map +0 -1
- package/dist/entities/token/eth/index.mjs +0 -4
- package/dist/entities/token/eth/index.mjs.map +0 -1
- package/dist/entities/token/index.d.mts +0 -6
- package/dist/entities/token/index.d.ts +0 -6
- package/dist/entities/token/index.js +0 -27
- package/dist/entities/token/index.js.map +0 -1
- package/dist/entities/token/index.mjs +0 -14
- package/dist/entities/token/index.mjs.map +0 -1
- package/dist/index.d.mts +0 -39
- package/dist/index.d.ts +0 -39
- package/dist/index.js +0 -587
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -49
- package/dist/index.mjs.map +0 -1
- package/dist/types.d.mts +0 -662
- package/dist/types.d.ts +0 -662
- package/dist/types.js +0 -34
- package/dist/types.js.map +0 -1
- package/dist/types.mjs +0 -5
- package/dist/types.mjs.map +0 -1
- package/dist/utils/airlock.d.mts +0 -11
- package/dist/utils/airlock.d.ts +0 -11
- package/dist/utils/airlock.js +0 -26
- package/dist/utils/airlock.js.map +0 -1
- package/dist/utils/airlock.mjs +0 -5
- package/dist/utils/airlock.mjs.map +0 -1
- package/dist/utils/balanceDelta.d.mts +0 -10
- package/dist/utils/balanceDelta.d.ts +0 -10
- package/dist/utils/balanceDelta.js +0 -12
- package/dist/utils/balanceDelta.js.map +0 -1
- package/dist/utils/balanceDelta.mjs +0 -3
- package/dist/utils/balanceDelta.mjs.map +0 -1
- package/dist/utils/computeOptimalGamma.d.mts +0 -7
- package/dist/utils/computeOptimalGamma.d.ts +0 -7
- package/dist/utils/computeOptimalGamma.js +0 -12
- package/dist/utils/computeOptimalGamma.js.map +0 -1
- package/dist/utils/computeOptimalGamma.mjs +0 -3
- package/dist/utils/computeOptimalGamma.mjs.map +0 -1
- package/dist/utils/dopplerHookMigrator.d.mts +0 -18
- package/dist/utils/dopplerHookMigrator.d.ts +0 -18
- package/dist/utils/dopplerHookMigrator.js +0 -20
- package/dist/utils/dopplerHookMigrator.js.map +0 -1
- package/dist/utils/dopplerHookMigrator.mjs +0 -7
- package/dist/utils/dopplerHookMigrator.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -14
- package/dist/utils/index.d.ts +0 -14
- package/dist/utils/index.js +0 -197
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -24
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/isToken0Expected.d.mts +0 -13
- package/dist/utils/isToken0Expected.d.ts +0 -13
- package/dist/utils/isToken0Expected.js +0 -12
- package/dist/utils/isToken0Expected.js.map +0 -1
- package/dist/utils/isToken0Expected.mjs +0 -3
- package/dist/utils/isToken0Expected.mjs.map +0 -1
- package/dist/utils/marketCapHelpers.d.mts +0 -259
- package/dist/utils/marketCapHelpers.d.ts +0 -259
- package/dist/utils/marketCapHelpers.js +0 -58
- package/dist/utils/marketCapHelpers.js.map +0 -1
- package/dist/utils/marketCapHelpers.mjs +0 -5
- package/dist/utils/marketCapHelpers.mjs.map +0 -1
- package/dist/utils/poolKey.d.mts +0 -17
- package/dist/utils/poolKey.d.ts +0 -17
- package/dist/utils/poolKey.js +0 -12
- package/dist/utils/poolKey.js.map +0 -1
- package/dist/utils/poolKey.mjs +0 -3
- package/dist/utils/poolKey.mjs.map +0 -1
- package/dist/utils/priceHelpers.d.mts +0 -86
- package/dist/utils/priceHelpers.d.ts +0 -86
- package/dist/utils/priceHelpers.js +0 -41
- package/dist/utils/priceHelpers.js.map +0 -1
- package/dist/utils/priceHelpers.mjs +0 -4
- package/dist/utils/priceHelpers.mjs.map +0 -1
- package/dist/utils/tickMath.d.mts +0 -72
- package/dist/utils/tickMath.d.ts +0 -72
- package/dist/utils/tickMath.js +0 -60
- package/dist/utils/tickMath.js.map +0 -1
- package/dist/utils/tickMath.mjs +0 -3
- package/dist/utils/tickMath.mjs.map +0 -1
- package/dist/utils/tokenAddressMiner.d.mts +0 -37
- package/dist/utils/tokenAddressMiner.d.ts +0 -37
- package/dist/utils/tokenAddressMiner.js +0 -19
- package/dist/utils/tokenAddressMiner.js.map +0 -1
- package/dist/utils/tokenAddressMiner.mjs +0 -10
- package/dist/utils/tokenAddressMiner.mjs.map +0 -1
package/dist/types.d.mts
DELETED
|
@@ -1,662 +0,0 @@
|
|
|
1
|
-
import { mainnet, sepolia, base, baseSepolia, ink, unichain } from 'viem/chains';
|
|
2
|
-
import { SupportedChainId } from './addresses.mjs';
|
|
3
|
-
import { WalletClient, Address } from 'viem';
|
|
4
|
-
|
|
5
|
-
type SupportedChain = typeof mainnet | typeof sepolia | typeof base | typeof baseSepolia | typeof ink | typeof unichain;
|
|
6
|
-
type SupportedPublicClient = unknown;
|
|
7
|
-
interface StandardTokenConfig {
|
|
8
|
-
type?: 'standard';
|
|
9
|
-
name: string;
|
|
10
|
-
symbol: string;
|
|
11
|
-
tokenURI: string;
|
|
12
|
-
yearlyMintRate?: bigint;
|
|
13
|
-
}
|
|
14
|
-
interface Doppler404TokenConfig {
|
|
15
|
-
type: 'doppler404';
|
|
16
|
-
name: string;
|
|
17
|
-
symbol: string;
|
|
18
|
-
baseURI: string;
|
|
19
|
-
unit?: bigint;
|
|
20
|
-
}
|
|
21
|
-
type TokenConfig = StandardTokenConfig | Doppler404TokenConfig;
|
|
22
|
-
interface SaleConfig {
|
|
23
|
-
initialSupply: bigint;
|
|
24
|
-
numTokensToSell: bigint;
|
|
25
|
-
numeraire: Address;
|
|
26
|
-
}
|
|
27
|
-
interface StaticPoolConfig {
|
|
28
|
-
startTick: number;
|
|
29
|
-
endTick: number;
|
|
30
|
-
fee: number;
|
|
31
|
-
numPositions?: number;
|
|
32
|
-
maxShareToBeSold?: bigint;
|
|
33
|
-
beneficiaries?: BeneficiaryData[];
|
|
34
|
-
}
|
|
35
|
-
interface DynamicAuctionConfig {
|
|
36
|
-
duration: number;
|
|
37
|
-
epochLength: number;
|
|
38
|
-
startTick: number;
|
|
39
|
-
endTick: number;
|
|
40
|
-
gamma?: number;
|
|
41
|
-
minProceeds: bigint;
|
|
42
|
-
maxProceeds: bigint;
|
|
43
|
-
numPdSlugs?: number;
|
|
44
|
-
}
|
|
45
|
-
interface VestingConfig {
|
|
46
|
-
duration: number;
|
|
47
|
-
cliffDuration: number;
|
|
48
|
-
recipients?: Address[];
|
|
49
|
-
amounts?: bigint[];
|
|
50
|
-
}
|
|
51
|
-
declare const NO_OP_ENABLED_CHAIN_IDS: readonly [1, 11155111, 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
|
-
declare const LAUNCHPAD_ENABLED_CHAIN_IDS: readonly [8453, 143];
|
|
58
|
-
type LaunchpadEnabledChainId = (typeof LAUNCHPAD_ENABLED_CHAIN_IDS)[number];
|
|
59
|
-
/**
|
|
60
|
-
* Check if a chain supports launchpad governance
|
|
61
|
-
*/
|
|
62
|
-
declare function isLaunchpadEnabledChain(chainId: number): chainId is LaunchpadEnabledChainId;
|
|
63
|
-
type GovernanceDefault = {
|
|
64
|
-
type: 'default';
|
|
65
|
-
};
|
|
66
|
-
interface GovernanceCustom {
|
|
67
|
-
type: 'custom';
|
|
68
|
-
initialVotingDelay: number;
|
|
69
|
-
initialVotingPeriod: number;
|
|
70
|
-
initialProposalThreshold: bigint;
|
|
71
|
-
}
|
|
72
|
-
type GovernanceNoOp = {
|
|
73
|
-
type: 'noOp';
|
|
74
|
-
};
|
|
75
|
-
interface GovernanceLaunchpad {
|
|
76
|
-
type: 'launchpad';
|
|
77
|
-
multisig: Address;
|
|
78
|
-
}
|
|
79
|
-
type GovernanceOption<C extends SupportedChainId> = GovernanceDefault | GovernanceCustom | (C extends NoOpEnabledChainId ? GovernanceNoOp : never) | (C extends LaunchpadEnabledChainId ? GovernanceLaunchpad : never);
|
|
80
|
-
interface BeneficiaryData {
|
|
81
|
-
beneficiary: Address;
|
|
82
|
-
shares: bigint;
|
|
83
|
-
}
|
|
84
|
-
declare enum LockablePoolStatus {
|
|
85
|
-
Uninitialized = 0,
|
|
86
|
-
Initialized = 1,
|
|
87
|
-
Locked = 2,
|
|
88
|
-
Exited = 3
|
|
89
|
-
}
|
|
90
|
-
interface LockablePoolState {
|
|
91
|
-
asset: Address;
|
|
92
|
-
numeraire: Address;
|
|
93
|
-
tickLower: number;
|
|
94
|
-
tickUpper: number;
|
|
95
|
-
maxShareToBeSold: bigint;
|
|
96
|
-
totalTokensOnBondingCurve: bigint;
|
|
97
|
-
status: LockablePoolStatus;
|
|
98
|
-
}
|
|
99
|
-
interface MulticurvePoolState {
|
|
100
|
-
asset: Address;
|
|
101
|
-
numeraire: Address;
|
|
102
|
-
fee: number;
|
|
103
|
-
tickSpacing: number;
|
|
104
|
-
status: LockablePoolStatus;
|
|
105
|
-
poolKey: V4PoolKey;
|
|
106
|
-
farTick: number;
|
|
107
|
-
}
|
|
108
|
-
interface RehypeDopplerHookMigratorConfig {
|
|
109
|
-
hookAddress?: Address;
|
|
110
|
-
buybackDestination: Address;
|
|
111
|
-
customFee: number;
|
|
112
|
-
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
113
|
-
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
116
|
-
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
117
|
-
*/
|
|
118
|
-
assetBuybackPercentWad?: bigint;
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
121
|
-
*/
|
|
122
|
-
numeraireBuybackPercentWad?: bigint;
|
|
123
|
-
/**
|
|
124
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
125
|
-
*/
|
|
126
|
-
beneficiaryPercentWad?: bigint;
|
|
127
|
-
/**
|
|
128
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
129
|
-
*/
|
|
130
|
-
lpPercentWad?: bigint;
|
|
131
|
-
}
|
|
132
|
-
interface DopplerHookMigrationConfig {
|
|
133
|
-
type: 'dopplerHook';
|
|
134
|
-
fee: number;
|
|
135
|
-
useDynamicFee?: boolean;
|
|
136
|
-
tickSpacing: number;
|
|
137
|
-
lockDuration: number;
|
|
138
|
-
beneficiaries: BeneficiaryData[];
|
|
139
|
-
hook?: {
|
|
140
|
-
hookAddress: Address;
|
|
141
|
-
onInitializationCalldata?: `0x${string}`;
|
|
142
|
-
};
|
|
143
|
-
rehype?: RehypeDopplerHookMigratorConfig;
|
|
144
|
-
proceedsSplit?: {
|
|
145
|
-
recipient: Address;
|
|
146
|
-
share: bigint;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
type MigrationConfig = {
|
|
150
|
-
type: 'uniswapV2';
|
|
151
|
-
} | {
|
|
152
|
-
type: 'uniswapV4';
|
|
153
|
-
fee: number;
|
|
154
|
-
tickSpacing: number;
|
|
155
|
-
streamableFees?: {
|
|
156
|
-
lockDuration: number;
|
|
157
|
-
beneficiaries: BeneficiaryData[];
|
|
158
|
-
};
|
|
159
|
-
} | DopplerHookMigrationConfig | {
|
|
160
|
-
type: 'noOp';
|
|
161
|
-
};
|
|
162
|
-
interface CreateStaticAuctionParams<C extends SupportedChainId = SupportedChainId> {
|
|
163
|
-
token: TokenConfig;
|
|
164
|
-
sale: SaleConfig;
|
|
165
|
-
pool: StaticPoolConfig;
|
|
166
|
-
vesting?: VestingConfig;
|
|
167
|
-
governance: GovernanceOption<C>;
|
|
168
|
-
migration: MigrationConfig;
|
|
169
|
-
integrator?: Address;
|
|
170
|
-
userAddress: Address;
|
|
171
|
-
modules?: ModuleAddressOverrides;
|
|
172
|
-
gas?: bigint;
|
|
173
|
-
}
|
|
174
|
-
interface CreateDynamicAuctionParams<C extends SupportedChainId = SupportedChainId> {
|
|
175
|
-
token: TokenConfig;
|
|
176
|
-
sale: SaleConfig;
|
|
177
|
-
auction: DynamicAuctionConfig;
|
|
178
|
-
pool: {
|
|
179
|
-
fee: number;
|
|
180
|
-
tickSpacing: number;
|
|
181
|
-
};
|
|
182
|
-
vesting?: VestingConfig;
|
|
183
|
-
governance: GovernanceOption<C>;
|
|
184
|
-
migration: MigrationConfig;
|
|
185
|
-
integrator?: Address;
|
|
186
|
-
userAddress: Address;
|
|
187
|
-
startTimeOffset?: number;
|
|
188
|
-
blockTimestamp?: number;
|
|
189
|
-
gas?: bigint;
|
|
190
|
-
modules?: ModuleAddressOverrides;
|
|
191
|
-
}
|
|
192
|
-
interface PriceRange {
|
|
193
|
-
startPrice: number;
|
|
194
|
-
endPrice: number;
|
|
195
|
-
}
|
|
196
|
-
interface TickRange {
|
|
197
|
-
startTick: number;
|
|
198
|
-
endTick: number;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Market cap range in USD for price configurations.
|
|
202
|
-
* Used to define start and end market caps for bonding curves.
|
|
203
|
-
*/
|
|
204
|
-
interface MarketCapRange {
|
|
205
|
-
/** Starting market cap in USD (e.g., 100_000 for $100k) */
|
|
206
|
-
start: number;
|
|
207
|
-
/** Ending market cap in USD (e.g., 10_000_000 for $10M) */
|
|
208
|
-
end: number;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Base configuration for market cap-based tick calculations.
|
|
212
|
-
* Used by builder methods to convert market caps to ticks.
|
|
213
|
-
*/
|
|
214
|
-
interface MarketCapConfig {
|
|
215
|
-
/** Target market cap range in USD */
|
|
216
|
-
marketCap: MarketCapRange;
|
|
217
|
-
/** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
|
|
218
|
-
numerairePrice: number;
|
|
219
|
-
/**
|
|
220
|
-
* Token supply override. If not provided, inferred from saleConfig.initialSupply.
|
|
221
|
-
* Must include decimals (e.g., parseEther('1000000000') for 1B tokens).
|
|
222
|
-
*/
|
|
223
|
-
tokenSupply?: bigint;
|
|
224
|
-
/** Token decimals (default: 18) */
|
|
225
|
-
tokenDecimals?: number;
|
|
226
|
-
/** Numeraire decimals (default: 18) */
|
|
227
|
-
numeraireDecimals?: number;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Market cap configuration for V3 Static Auctions.
|
|
231
|
-
* Extends base config with V3-specific parameters.
|
|
232
|
-
*/
|
|
233
|
-
interface StaticAuctionMarketCapConfig extends MarketCapConfig {
|
|
234
|
-
/** Fee tier in basis points (e.g., 10000 for 1%). Default: 10000 */
|
|
235
|
-
fee?: number;
|
|
236
|
-
/** Number of liquidity positions. Default: 15 */
|
|
237
|
-
numPositions?: number;
|
|
238
|
-
/** Maximum share of tokens to sell per position (WAD). Default: 35% */
|
|
239
|
-
maxShareToBeSold?: bigint;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Market cap range for V4 Dynamic Auctions (Dutch auctions).
|
|
243
|
-
* Uses start/min because price descends from start to minimum.
|
|
244
|
-
*/
|
|
245
|
-
interface DynamicMarketCapRange {
|
|
246
|
-
/** Starting market cap in USD - auction begins here (e.g., 500_000 for $500k) */
|
|
247
|
-
start: number;
|
|
248
|
-
/** Minimum market cap in USD - floor price the auction descends to (e.g., 50_000 for $50k) */
|
|
249
|
-
min: number;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Market cap configuration for V4 Dynamic Auctions.
|
|
253
|
-
* Uses start/min (not start/end) because Dutch auctions descend from start to minimum.
|
|
254
|
-
*/
|
|
255
|
-
interface DynamicAuctionMarketCapConfig {
|
|
256
|
-
/** Target market cap range (start = launch price, min = floor price) */
|
|
257
|
-
marketCap: DynamicMarketCapRange;
|
|
258
|
-
/** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
|
|
259
|
-
numerairePrice: number;
|
|
260
|
-
/**
|
|
261
|
-
* Token supply override. If not provided, inferred from saleConfig.initialSupply.
|
|
262
|
-
* Must include decimals (e.g., parseEther('1000000000') for 1B tokens).
|
|
263
|
-
*/
|
|
264
|
-
tokenSupply?: bigint;
|
|
265
|
-
/** Token decimals (default: 18) */
|
|
266
|
-
tokenDecimals?: number;
|
|
267
|
-
/** Numeraire decimals (default: 18) */
|
|
268
|
-
numeraireDecimals?: number;
|
|
269
|
-
/**
|
|
270
|
-
* Pool fee in basis points. Default: 10000 (1%)
|
|
271
|
-
*
|
|
272
|
-
* V4 pools support any fee from 0 to 100,000 (10%).
|
|
273
|
-
* Standard tiers (100, 500, 3000, 10000) auto-derive tickSpacing.
|
|
274
|
-
* Custom fees require explicit tickSpacing parameter.
|
|
275
|
-
*/
|
|
276
|
-
fee?: number;
|
|
277
|
-
/**
|
|
278
|
-
* Tick spacing for the pool. Required for custom fees.
|
|
279
|
-
*
|
|
280
|
-
* Must be <= 30 for Doppler pools (MAX_TICK_SPACING constraint).
|
|
281
|
-
* If not provided with a standard fee tier, defaults to 30.
|
|
282
|
-
*/
|
|
283
|
-
tickSpacing?: number;
|
|
284
|
-
/** Minimum proceeds required for successful auction */
|
|
285
|
-
minProceeds: bigint;
|
|
286
|
-
/** Maximum proceeds cap for the auction */
|
|
287
|
-
maxProceeds: bigint;
|
|
288
|
-
/** Auction duration in seconds. Default: 7 days */
|
|
289
|
-
duration?: number;
|
|
290
|
-
/** Epoch length in seconds. Default: 3600 (1 hour) */
|
|
291
|
-
epochLength?: number;
|
|
292
|
-
/** Gamma (tick decay per epoch). Auto-calculated if not provided */
|
|
293
|
-
gamma?: number;
|
|
294
|
-
/** Number of price discovery slugs. Default: 5 */
|
|
295
|
-
numPdSlugs?: number;
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Result of market cap parameter validation.
|
|
299
|
-
*/
|
|
300
|
-
interface MarketCapValidationResult {
|
|
301
|
-
/** Whether all parameters are within normal bounds */
|
|
302
|
-
valid: boolean;
|
|
303
|
-
/** Warning messages for unusual but technically valid values */
|
|
304
|
-
warnings: string[];
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Parameters for converting market cap range to ticks for V3 Static Auctions.
|
|
308
|
-
*/
|
|
309
|
-
interface StaticAuctionTickParams {
|
|
310
|
-
marketCapRange: MarketCapRange;
|
|
311
|
-
tokenSupply: bigint;
|
|
312
|
-
numerairePriceUSD: number;
|
|
313
|
-
tickSpacing: number;
|
|
314
|
-
tokenDecimals?: number;
|
|
315
|
-
numeraireDecimals?: number;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Parameters for converting market cap range to ticks for V4 Dynamic Auctions.
|
|
319
|
-
*/
|
|
320
|
-
interface DynamicAuctionTickParams {
|
|
321
|
-
marketCapRange: MarketCapRange;
|
|
322
|
-
tokenSupply: bigint;
|
|
323
|
-
numerairePriceUSD: number;
|
|
324
|
-
numeraire: Address;
|
|
325
|
-
tickSpacing: number;
|
|
326
|
-
tokenDecimals?: number;
|
|
327
|
-
numeraireDecimals?: number;
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Parameters for converting market cap range to ticks for V4 Multicurve pools.
|
|
331
|
-
*/
|
|
332
|
-
interface MulticurveTickRangeParams {
|
|
333
|
-
marketCapLower: number;
|
|
334
|
-
marketCapUpper: number | 'max';
|
|
335
|
-
tokenSupply: bigint;
|
|
336
|
-
numerairePriceUSD: number;
|
|
337
|
-
tickSpacing: number;
|
|
338
|
-
tokenDecimals?: number;
|
|
339
|
-
numeraireDecimals?: number;
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Parameters for converting a single market cap to a tick for Multicurve.
|
|
343
|
-
*/
|
|
344
|
-
interface MulticurveTickParams {
|
|
345
|
-
marketCapUSD: number;
|
|
346
|
-
tokenSupply: bigint;
|
|
347
|
-
numerairePriceUSD: number;
|
|
348
|
-
tickSpacing: number;
|
|
349
|
-
tokenDecimals?: number;
|
|
350
|
-
numeraireDecimals?: number;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Parameters for converting a tick to market cap (reverse conversion).
|
|
354
|
-
*/
|
|
355
|
-
interface TickToMarketCapParams {
|
|
356
|
-
tick: number;
|
|
357
|
-
tokenSupply: bigint;
|
|
358
|
-
numerairePriceUSD: number;
|
|
359
|
-
tokenDecimals?: number;
|
|
360
|
-
numeraireDecimals?: number;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Curve configuration for Multicurve pools using market cap ranges.
|
|
364
|
-
* Each curve defines a market cap range and liquidity distribution.
|
|
365
|
-
*/
|
|
366
|
-
interface MulticurveMarketCapRangeCurve {
|
|
367
|
-
/** Market cap range for this curve */
|
|
368
|
-
marketCap: {
|
|
369
|
-
/** Start market cap in USD (for the first curve, this is the launch price) */
|
|
370
|
-
start: number;
|
|
371
|
-
/** End market cap in USD, or 'max' for MAX_TICK rounded to tick spacing */
|
|
372
|
-
end: number | 'max';
|
|
373
|
-
};
|
|
374
|
-
/** Number of liquidity positions in this curve */
|
|
375
|
-
numPositions: number;
|
|
376
|
-
/** Share of total supply allocated to this curve (WAD, e.g., parseEther('0.3') = 30%) */
|
|
377
|
-
shares: bigint;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Market cap-based configuration for Multicurve pools.
|
|
381
|
-
* No tick math required - just specify market caps in USD.
|
|
382
|
-
*/
|
|
383
|
-
interface MulticurveMarketCapCurvesConfig {
|
|
384
|
-
/** Price of numeraire in USD (e.g., 3000 for ETH at $3000) */
|
|
385
|
-
numerairePrice: number;
|
|
386
|
-
/**
|
|
387
|
-
* Array of curves defining market cap ranges and liquidity distribution.
|
|
388
|
-
* The first curve's marketCap.start is the launch price.
|
|
389
|
-
* Curves must be contiguous (no gaps allowed).
|
|
390
|
-
*/
|
|
391
|
-
curves: MulticurveMarketCapRangeCurve[];
|
|
392
|
-
/** Token supply override */
|
|
393
|
-
tokenSupply?: bigint;
|
|
394
|
-
/** Token decimals (default: 18) */
|
|
395
|
-
tokenDecimals?: number;
|
|
396
|
-
/** Numeraire decimals (default: 18) */
|
|
397
|
-
numeraireDecimals?: number;
|
|
398
|
-
/** Fee tier (default: FEE_TIERS.LOW) */
|
|
399
|
-
fee?: number;
|
|
400
|
-
/** Tick spacing (derived from fee if not provided) */
|
|
401
|
-
tickSpacing?: number;
|
|
402
|
-
/** Optional beneficiaries for fee streaming */
|
|
403
|
-
beneficiaries?: BeneficiaryData[];
|
|
404
|
-
}
|
|
405
|
-
interface StaticAuctionBuildConfig {
|
|
406
|
-
name: string;
|
|
407
|
-
symbol: string;
|
|
408
|
-
totalSupply?: bigint;
|
|
409
|
-
numTokensToSell?: bigint;
|
|
410
|
-
tokenURI: string;
|
|
411
|
-
startTimeOffset?: number;
|
|
412
|
-
numeraire: Address;
|
|
413
|
-
tickRange?: TickRange;
|
|
414
|
-
priceRange?: PriceRange;
|
|
415
|
-
fee?: number;
|
|
416
|
-
numPositions?: number;
|
|
417
|
-
maxShareToBeSold?: bigint;
|
|
418
|
-
yearlyMintRate?: bigint;
|
|
419
|
-
vestingDuration?: bigint;
|
|
420
|
-
recipients?: Address[];
|
|
421
|
-
amounts?: bigint[];
|
|
422
|
-
migration: MigrationConfig;
|
|
423
|
-
integrator?: Address;
|
|
424
|
-
useGovernance?: boolean;
|
|
425
|
-
}
|
|
426
|
-
interface DynamicAuctionBuildConfig {
|
|
427
|
-
name: string;
|
|
428
|
-
symbol: string;
|
|
429
|
-
totalSupply: bigint;
|
|
430
|
-
numTokensToSell: bigint;
|
|
431
|
-
tokenURI: string;
|
|
432
|
-
startTimeOffset?: number;
|
|
433
|
-
blockTimestamp?: number;
|
|
434
|
-
duration?: number;
|
|
435
|
-
epochLength?: number;
|
|
436
|
-
numeraire?: Address;
|
|
437
|
-
tickRange?: TickRange;
|
|
438
|
-
priceRange?: PriceRange;
|
|
439
|
-
tickSpacing: number;
|
|
440
|
-
gamma?: number;
|
|
441
|
-
fee: number;
|
|
442
|
-
minProceeds: bigint;
|
|
443
|
-
maxProceeds: bigint;
|
|
444
|
-
numPdSlugs?: number;
|
|
445
|
-
yearlyMintRate?: bigint;
|
|
446
|
-
vestingDuration: bigint;
|
|
447
|
-
recipients: Address[];
|
|
448
|
-
amounts: bigint[];
|
|
449
|
-
migration: MigrationConfig;
|
|
450
|
-
integrator?: Address;
|
|
451
|
-
useGovernance?: boolean;
|
|
452
|
-
}
|
|
453
|
-
interface DopplerSDKConfig {
|
|
454
|
-
publicClient: SupportedPublicClient;
|
|
455
|
-
walletClient?: WalletClient;
|
|
456
|
-
chainId: number;
|
|
457
|
-
}
|
|
458
|
-
interface PoolInfo {
|
|
459
|
-
address: Address;
|
|
460
|
-
tokenAddress: Address;
|
|
461
|
-
numeraireAddress: Address;
|
|
462
|
-
fee: number;
|
|
463
|
-
liquidity: bigint;
|
|
464
|
-
sqrtPriceX96: bigint;
|
|
465
|
-
}
|
|
466
|
-
interface HookInfo {
|
|
467
|
-
hookAddress: Address;
|
|
468
|
-
tokenAddress: Address;
|
|
469
|
-
numeraireAddress: Address;
|
|
470
|
-
poolId: string;
|
|
471
|
-
currentEpoch: number;
|
|
472
|
-
totalProceeds: bigint;
|
|
473
|
-
totalTokensSold: bigint;
|
|
474
|
-
earlyExit: boolean;
|
|
475
|
-
insufficientProceeds: boolean;
|
|
476
|
-
startingTime: bigint;
|
|
477
|
-
endingTime: bigint;
|
|
478
|
-
epochLength: bigint;
|
|
479
|
-
minimumProceeds: bigint;
|
|
480
|
-
maximumProceeds: bigint;
|
|
481
|
-
}
|
|
482
|
-
interface QuoteResult {
|
|
483
|
-
amountOut: bigint;
|
|
484
|
-
priceImpact: number;
|
|
485
|
-
fee: bigint;
|
|
486
|
-
route: string[];
|
|
487
|
-
}
|
|
488
|
-
interface LockableV3InitializerParams {
|
|
489
|
-
fee: number;
|
|
490
|
-
tickLower: number;
|
|
491
|
-
tickUpper: number;
|
|
492
|
-
numPositions: number;
|
|
493
|
-
maxShareToBeSold: bigint;
|
|
494
|
-
beneficiaries: BeneficiaryData[];
|
|
495
|
-
}
|
|
496
|
-
interface MulticurveCurve {
|
|
497
|
-
tickLower: number;
|
|
498
|
-
tickUpper: number;
|
|
499
|
-
numPositions: number;
|
|
500
|
-
shares: bigint;
|
|
501
|
-
}
|
|
502
|
-
type MulticurveMarketCapPreset = 'low' | 'medium' | 'high';
|
|
503
|
-
interface V4PoolKey {
|
|
504
|
-
currency0: Address;
|
|
505
|
-
currency1: Address;
|
|
506
|
-
fee: number;
|
|
507
|
-
tickSpacing: number;
|
|
508
|
-
hooks: Address;
|
|
509
|
-
}
|
|
510
|
-
interface MulticurveBundleExactOutResult {
|
|
511
|
-
asset: Address;
|
|
512
|
-
poolKey: V4PoolKey;
|
|
513
|
-
amountIn: bigint;
|
|
514
|
-
gasEstimate: bigint;
|
|
515
|
-
}
|
|
516
|
-
interface MulticurveBundleExactInResult {
|
|
517
|
-
asset: Address;
|
|
518
|
-
poolKey: V4PoolKey;
|
|
519
|
-
amountOut: bigint;
|
|
520
|
-
gasEstimate: bigint;
|
|
521
|
-
}
|
|
522
|
-
interface RehypeFeeDistributionInfo {
|
|
523
|
-
assetFeesToAssetBuybackWad: bigint;
|
|
524
|
-
assetFeesToNumeraireBuybackWad: bigint;
|
|
525
|
-
assetFeesToBeneficiaryWad: bigint;
|
|
526
|
-
assetFeesToLpWad: bigint;
|
|
527
|
-
numeraireFeesToAssetBuybackWad: bigint;
|
|
528
|
-
numeraireFeesToNumeraireBuybackWad: bigint;
|
|
529
|
-
numeraireFeesToBeneficiaryWad: bigint;
|
|
530
|
-
numeraireFeesToLpWad: bigint;
|
|
531
|
-
}
|
|
532
|
-
declare enum RehypeFeeRoutingMode {
|
|
533
|
-
DirectBuyback = 0,
|
|
534
|
-
RouteToBeneficiaryFees = 1
|
|
535
|
-
}
|
|
536
|
-
interface RehypeDopplerHookConfig {
|
|
537
|
-
hookAddress: Address;
|
|
538
|
-
buybackDestination: Address;
|
|
539
|
-
startFee?: number;
|
|
540
|
-
endFee?: number;
|
|
541
|
-
durationSeconds?: number | bigint;
|
|
542
|
-
startingTime?: number | bigint | Date;
|
|
543
|
-
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
544
|
-
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
545
|
-
/**
|
|
546
|
-
* @deprecated Use startFee/endFee instead. When provided alone, maps to startFee=endFee=customFee.
|
|
547
|
-
*/
|
|
548
|
-
customFee?: number;
|
|
549
|
-
/**
|
|
550
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
551
|
-
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
552
|
-
*/
|
|
553
|
-
assetBuybackPercentWad?: bigint;
|
|
554
|
-
/**
|
|
555
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
556
|
-
*/
|
|
557
|
-
numeraireBuybackPercentWad?: bigint;
|
|
558
|
-
/**
|
|
559
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
560
|
-
*/
|
|
561
|
-
beneficiaryPercentWad?: bigint;
|
|
562
|
-
/**
|
|
563
|
-
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
564
|
-
*/
|
|
565
|
-
lpPercentWad?: bigint;
|
|
566
|
-
graduationCalldata?: `0x${string}`;
|
|
567
|
-
graduationMarketCap?: number;
|
|
568
|
-
numerairePrice?: number;
|
|
569
|
-
farTick?: number;
|
|
570
|
-
}
|
|
571
|
-
interface MulticurveDecayFeeSchedule {
|
|
572
|
-
startingTime: number;
|
|
573
|
-
startFee: number;
|
|
574
|
-
endFee: number;
|
|
575
|
-
lastFee: number;
|
|
576
|
-
durationSeconds: number;
|
|
577
|
-
}
|
|
578
|
-
type MulticurveInitializerConfig = {
|
|
579
|
-
type: 'standard';
|
|
580
|
-
} | {
|
|
581
|
-
type: 'scheduled';
|
|
582
|
-
startTime: number;
|
|
583
|
-
} | {
|
|
584
|
-
type: 'decay';
|
|
585
|
-
startTime: number;
|
|
586
|
-
startFee: number;
|
|
587
|
-
durationSeconds: number;
|
|
588
|
-
} | {
|
|
589
|
-
type: 'rehype';
|
|
590
|
-
config: RehypeDopplerHookConfig;
|
|
591
|
-
};
|
|
592
|
-
interface CreateMulticurveParams<C extends SupportedChainId = SupportedChainId> {
|
|
593
|
-
token: TokenConfig;
|
|
594
|
-
sale: SaleConfig;
|
|
595
|
-
pool: {
|
|
596
|
-
fee: number;
|
|
597
|
-
tickSpacing: number;
|
|
598
|
-
curves: MulticurveCurve[];
|
|
599
|
-
beneficiaries?: BeneficiaryData[];
|
|
600
|
-
};
|
|
601
|
-
initializer?: MulticurveInitializerConfig;
|
|
602
|
-
/**
|
|
603
|
-
* @deprecated Use initializer: { type: 'scheduled', startTime } instead.
|
|
604
|
-
* Retained for backwards compatibility.
|
|
605
|
-
*/
|
|
606
|
-
schedule?: {
|
|
607
|
-
startTime: number;
|
|
608
|
-
};
|
|
609
|
-
/**
|
|
610
|
-
* @deprecated Use initializer: { type: 'rehype', config } instead.
|
|
611
|
-
* Retained for backwards compatibility.
|
|
612
|
-
*/
|
|
613
|
-
dopplerHook?: RehypeDopplerHookConfig;
|
|
614
|
-
vesting?: VestingConfig;
|
|
615
|
-
governance: GovernanceOption<C>;
|
|
616
|
-
migration: MigrationConfig;
|
|
617
|
-
integrator?: Address;
|
|
618
|
-
userAddress: Address;
|
|
619
|
-
modules?: ModuleAddressOverrides;
|
|
620
|
-
gas?: bigint;
|
|
621
|
-
}
|
|
622
|
-
interface CreateParams {
|
|
623
|
-
initialSupply: bigint;
|
|
624
|
-
numTokensToSell: bigint;
|
|
625
|
-
numeraire: Address;
|
|
626
|
-
tokenFactory: Address;
|
|
627
|
-
tokenFactoryData: `0x${string}`;
|
|
628
|
-
governanceFactory: Address;
|
|
629
|
-
governanceFactoryData: `0x${string}`;
|
|
630
|
-
poolInitializer: Address;
|
|
631
|
-
poolInitializerData: `0x${string}`;
|
|
632
|
-
liquidityMigrator: Address;
|
|
633
|
-
liquidityMigratorData: `0x${string}`;
|
|
634
|
-
integrator: Address;
|
|
635
|
-
salt: `0x${string}`;
|
|
636
|
-
}
|
|
637
|
-
interface ModuleAddressOverrides {
|
|
638
|
-
airlock?: Address;
|
|
639
|
-
tokenFactory?: Address;
|
|
640
|
-
v3Initializer?: Address;
|
|
641
|
-
lockableV3Initializer?: Address;
|
|
642
|
-
v4Initializer?: Address;
|
|
643
|
-
v4MulticurveInitializer?: Address;
|
|
644
|
-
v4ScheduledMulticurveInitializer?: Address;
|
|
645
|
-
v4DecayMulticurveInitializer?: Address;
|
|
646
|
-
dopplerHookInitializer?: Address;
|
|
647
|
-
rehypeDopplerHookInitializer?: Address;
|
|
648
|
-
/**
|
|
649
|
-
* @deprecated Use rehypeDopplerHookInitializer instead.
|
|
650
|
-
*/
|
|
651
|
-
rehypeDopplerHook?: Address;
|
|
652
|
-
governanceFactory?: Address;
|
|
653
|
-
poolManager?: Address;
|
|
654
|
-
dopplerDeployer?: Address;
|
|
655
|
-
v2Migrator?: Address;
|
|
656
|
-
v4Migrator?: Address;
|
|
657
|
-
dopplerHookMigrator?: Address;
|
|
658
|
-
rehypeDopplerHookMigrator?: Address;
|
|
659
|
-
noOpMigrator?: Address;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerHookMigrationConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicAuctionTickParams, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceLaunchpad, type GovernanceNoOp, type GovernanceOption, type HookInfo, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, type MulticurveTickParams, type MulticurveTickRangeParams, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type RehypeDopplerHookConfig, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticAuctionTickParams, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TickToMarketCapParams, type TokenConfig, type V4PoolKey, type VestingConfig, isLaunchpadEnabledChain, isNoOpEnabledChain };
|