@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
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { PriceRange, StaticAuctionMarketCapConfig, GovernanceOption, MigrationConfig, CreateStaticAuctionParams } from '../types.js';
|
|
3
|
-
import { SupportedChainId } from '../addresses.js';
|
|
4
|
-
import { BaseAuctionBuilder } from './shared.js';
|
|
5
|
-
import 'viem/chains';
|
|
6
|
-
|
|
7
|
-
declare class StaticAuctionBuilder<C extends SupportedChainId> implements BaseAuctionBuilder<C> {
|
|
8
|
-
private token?;
|
|
9
|
-
private sale?;
|
|
10
|
-
private pool?;
|
|
11
|
-
private beneficiaries?;
|
|
12
|
-
private vesting?;
|
|
13
|
-
private governance?;
|
|
14
|
-
private migration?;
|
|
15
|
-
private integrator?;
|
|
16
|
-
private userAddress?;
|
|
17
|
-
private moduleAddresses?;
|
|
18
|
-
private gasLimit?;
|
|
19
|
-
private marketCapConfig?;
|
|
20
|
-
chainId: C;
|
|
21
|
-
constructor(chainId: C);
|
|
22
|
-
static forChain<C extends SupportedChainId>(chainId: C): StaticAuctionBuilder<C>;
|
|
23
|
-
tokenConfig(params: {
|
|
24
|
-
type?: 'standard';
|
|
25
|
-
name: string;
|
|
26
|
-
symbol: string;
|
|
27
|
-
tokenURI: string;
|
|
28
|
-
yearlyMintRate?: bigint;
|
|
29
|
-
} | {
|
|
30
|
-
type: 'doppler404';
|
|
31
|
-
name: string;
|
|
32
|
-
symbol: string;
|
|
33
|
-
baseURI: string;
|
|
34
|
-
unit?: bigint;
|
|
35
|
-
}): this;
|
|
36
|
-
saleConfig(params: {
|
|
37
|
-
initialSupply: bigint;
|
|
38
|
-
numTokensToSell: bigint;
|
|
39
|
-
numeraire: Address;
|
|
40
|
-
}): this;
|
|
41
|
-
/**
|
|
42
|
-
* Provide pool ticks directly.
|
|
43
|
-
*
|
|
44
|
-
* Note: Static Auctions use Uniswap V3, which only supports 4 fee tiers:
|
|
45
|
-
* 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%).
|
|
46
|
-
* For custom fees, use Dynamic or Multicurve auctions (V4).
|
|
47
|
-
*/
|
|
48
|
-
poolByTicks(params: {
|
|
49
|
-
startTick?: number;
|
|
50
|
-
endTick?: number;
|
|
51
|
-
fee?: number;
|
|
52
|
-
numPositions?: number;
|
|
53
|
-
maxShareToBeSold?: bigint;
|
|
54
|
-
}): this;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use withMarketCapRange() instead for more intuitive market cap configuration
|
|
57
|
-
*/
|
|
58
|
-
poolByPriceRange(params: {
|
|
59
|
-
priceRange: PriceRange;
|
|
60
|
-
fee?: number;
|
|
61
|
-
numPositions?: number;
|
|
62
|
-
maxShareToBeSold?: bigint;
|
|
63
|
-
}): this;
|
|
64
|
-
/**
|
|
65
|
-
* Configure pool using target market cap range.
|
|
66
|
-
* Converts market cap values (in USD) to Uniswap ticks.
|
|
67
|
-
*
|
|
68
|
-
* @param params - Market cap configuration
|
|
69
|
-
* @returns Builder instance for chaining
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* builder
|
|
74
|
-
* .saleConfig({ initialSupply, numTokensToSell, numeraire: WETH })
|
|
75
|
-
* .withMarketCapRange({
|
|
76
|
-
* marketCap: { start: 100_000, end: 10_000_000 }, // $100k to $10M
|
|
77
|
-
* numerairePrice: 3000, // ETH = $3000
|
|
78
|
-
* })
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
withMarketCapRange(params: StaticAuctionMarketCapConfig): this;
|
|
82
|
-
/**
|
|
83
|
-
* Configure beneficiaries for fee streaming on locked V3 pools.
|
|
84
|
-
*
|
|
85
|
-
* When beneficiaries are provided, the pool enters a "Locked" state where:
|
|
86
|
-
* - Fees are collected and distributed to beneficiaries according to their shares
|
|
87
|
-
* - Liquidity cannot be exited/migrated (pool stays locked permanently)
|
|
88
|
-
* - Anyone can call collectFees() to distribute accumulated fees
|
|
89
|
-
*
|
|
90
|
-
* IMPORTANT:
|
|
91
|
-
* - Shares must sum to exactly WAD (1e18 = 100%)
|
|
92
|
-
* - Protocol owner (Airlock.owner()) must be included with at least 5% shares
|
|
93
|
-
* - Beneficiaries will be automatically sorted by address (ascending)
|
|
94
|
-
* - Use withMigration({ type: 'noOp' }) when using beneficiaries
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```typescript
|
|
98
|
-
* builder.withBeneficiaries([
|
|
99
|
-
* { beneficiary: protocolOwner, shares: parseEther('0.05') }, // 5% (minimum required)
|
|
100
|
-
* { beneficiary: teamWallet, shares: parseEther('0.45') }, // 45%
|
|
101
|
-
* { beneficiary: daoTreasury, shares: parseEther('0.50') }, // 50%
|
|
102
|
-
* ])
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
withBeneficiaries(beneficiaries: {
|
|
106
|
-
beneficiary: Address;
|
|
107
|
-
shares: bigint;
|
|
108
|
-
}[]): this;
|
|
109
|
-
withVesting(params?: {
|
|
110
|
-
duration?: bigint;
|
|
111
|
-
cliffDuration?: number;
|
|
112
|
-
recipients?: Address[];
|
|
113
|
-
amounts?: bigint[];
|
|
114
|
-
}): this;
|
|
115
|
-
withGovernance(params: GovernanceOption<C>): this;
|
|
116
|
-
withMigration(migration: MigrationConfig): this;
|
|
117
|
-
withUserAddress(address: Address): this;
|
|
118
|
-
withIntegrator(address?: Address): this;
|
|
119
|
-
withGasLimit(gas?: bigint): this;
|
|
120
|
-
private overrideModule;
|
|
121
|
-
withTokenFactory(address: Address): this;
|
|
122
|
-
withAirlock(address: Address): this;
|
|
123
|
-
withV3Initializer(address: Address): this;
|
|
124
|
-
withGovernanceFactory(address: Address): this;
|
|
125
|
-
withV2Migrator(address: Address): this;
|
|
126
|
-
withV4Migrator(address: Address): this;
|
|
127
|
-
withNoOpMigrator(address: Address): this;
|
|
128
|
-
build(): CreateStaticAuctionParams<C>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export { StaticAuctionBuilder };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkRLOZWHRR_js = require('../chunk-RLOZWHRR.js');
|
|
4
|
-
require('../chunk-HJFVRV47.js');
|
|
5
|
-
require('../chunk-DSYPZETD.js');
|
|
6
|
-
require('../chunk-WNUB3UTT.js');
|
|
7
|
-
require('../chunk-UPVKABAV.js');
|
|
8
|
-
require('../chunk-QOYI7WCH.js');
|
|
9
|
-
require('../chunk-FNUBKONK.js');
|
|
10
|
-
require('../chunk-6H6X3VTZ.js');
|
|
11
|
-
require('../chunk-7M57PU6V.js');
|
|
12
|
-
require('../chunk-KHUE77HC.js');
|
|
13
|
-
require('../chunk-4VWQNNNW.js');
|
|
14
|
-
require('../chunk-BQZTELUX.js');
|
|
15
|
-
require('../chunk-XSJTASPK.js');
|
|
16
|
-
require('../chunk-6BQY5EPB.js');
|
|
17
|
-
require('../chunk-65CESA3J.js');
|
|
18
|
-
require('../chunk-7A4DBBXA.js');
|
|
19
|
-
require('../chunk-PGYTMRP3.js');
|
|
20
|
-
require('../chunk-MU56HCUI.js');
|
|
21
|
-
require('../chunk-4XN6DQBW.js');
|
|
22
|
-
require('../chunk-QRTABC4Z.js');
|
|
23
|
-
require('../chunk-J62YDWIK.js');
|
|
24
|
-
require('../chunk-XMFOZYNI.js');
|
|
25
|
-
require('../chunk-QAPQGDWK.js');
|
|
26
|
-
require('../chunk-5TQOT6CW.js');
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "StaticAuctionBuilder", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return chunkRLOZWHRR_js.StaticAuctionBuilder; }
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=StaticAuctionBuilder.js.map
|
|
35
|
-
//# sourceMappingURL=StaticAuctionBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StaticAuctionBuilder.js"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { StaticAuctionBuilder } from '../chunk-DQJXCZU2.mjs';
|
|
2
|
-
import '../chunk-ZEDJUNC6.mjs';
|
|
3
|
-
import '../chunk-7ZUV6WPX.mjs';
|
|
4
|
-
import '../chunk-YBK6EBA5.mjs';
|
|
5
|
-
import '../chunk-H3B54PFV.mjs';
|
|
6
|
-
import '../chunk-IUZ3BBQP.mjs';
|
|
7
|
-
import '../chunk-GSBQIVME.mjs';
|
|
8
|
-
import '../chunk-ABT6AT7C.mjs';
|
|
9
|
-
import '../chunk-CFAAYL5M.mjs';
|
|
10
|
-
import '../chunk-CWTGQAOG.mjs';
|
|
11
|
-
import '../chunk-25GEBO3B.mjs';
|
|
12
|
-
import '../chunk-5GQJRNFL.mjs';
|
|
13
|
-
import '../chunk-KOAC3BBP.mjs';
|
|
14
|
-
import '../chunk-IWJOPXYN.mjs';
|
|
15
|
-
import '../chunk-WKWP42TD.mjs';
|
|
16
|
-
import '../chunk-WDC53TM7.mjs';
|
|
17
|
-
import '../chunk-VKSD3KXF.mjs';
|
|
18
|
-
import '../chunk-JLUOFAE4.mjs';
|
|
19
|
-
import '../chunk-DOUF6NON.mjs';
|
|
20
|
-
import '../chunk-VYSOAGRU.mjs';
|
|
21
|
-
import '../chunk-U3GOWK6J.mjs';
|
|
22
|
-
import '../chunk-SWWLOD7Q.mjs';
|
|
23
|
-
import '../chunk-OHA5KJ2M.mjs';
|
|
24
|
-
import '../chunk-3NMGCQJ4.mjs';
|
|
25
|
-
//# sourceMappingURL=StaticAuctionBuilder.mjs.map
|
|
26
|
-
//# sourceMappingURL=StaticAuctionBuilder.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"StaticAuctionBuilder.mjs"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { StaticAuctionBuilder } from './StaticAuctionBuilder.mjs';
|
|
2
|
-
export { DynamicAuctionBuilder } from './DynamicAuctionBuilder.mjs';
|
|
3
|
-
export { MulticurveBuilder } from './MulticurveBuilder.mjs';
|
|
4
|
-
export { BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, MarketCapPresetConfig, MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks } from './shared.mjs';
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../types.mjs';
|
|
7
|
-
import 'viem/chains';
|
|
8
|
-
import '../addresses.mjs';
|
package/dist/builders/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { StaticAuctionBuilder } from './StaticAuctionBuilder.js';
|
|
2
|
-
export { DynamicAuctionBuilder } from './DynamicAuctionBuilder.js';
|
|
3
|
-
export { MulticurveBuilder } from './MulticurveBuilder.js';
|
|
4
|
-
export { BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, MarketCapPresetConfig, MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks } from './shared.js';
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../types.js';
|
|
7
|
-
import 'viem/chains';
|
|
8
|
-
import '../addresses.js';
|
package/dist/builders/index.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('../chunk-JIKAD4YL.js');
|
|
4
|
-
var chunk44CYUEPG_js = require('../chunk-44CYUEPG.js');
|
|
5
|
-
var chunk2A3B3NVB_js = require('../chunk-2A3B3NVB.js');
|
|
6
|
-
var chunkRLOZWHRR_js = require('../chunk-RLOZWHRR.js');
|
|
7
|
-
var chunkHJFVRV47_js = require('../chunk-HJFVRV47.js');
|
|
8
|
-
require('../chunk-DSYPZETD.js');
|
|
9
|
-
require('../chunk-WNUB3UTT.js');
|
|
10
|
-
require('../chunk-UPVKABAV.js');
|
|
11
|
-
require('../chunk-QOYI7WCH.js');
|
|
12
|
-
require('../chunk-FNUBKONK.js');
|
|
13
|
-
require('../chunk-6H6X3VTZ.js');
|
|
14
|
-
require('../chunk-7M57PU6V.js');
|
|
15
|
-
require('../chunk-KHUE77HC.js');
|
|
16
|
-
require('../chunk-4VWQNNNW.js');
|
|
17
|
-
require('../chunk-BQZTELUX.js');
|
|
18
|
-
require('../chunk-XSJTASPK.js');
|
|
19
|
-
require('../chunk-6BQY5EPB.js');
|
|
20
|
-
require('../chunk-65CESA3J.js');
|
|
21
|
-
require('../chunk-7A4DBBXA.js');
|
|
22
|
-
require('../chunk-PGYTMRP3.js');
|
|
23
|
-
require('../chunk-MU56HCUI.js');
|
|
24
|
-
require('../chunk-4XN6DQBW.js');
|
|
25
|
-
require('../chunk-QRTABC4Z.js');
|
|
26
|
-
require('../chunk-J62YDWIK.js');
|
|
27
|
-
require('../chunk-XMFOZYNI.js');
|
|
28
|
-
require('../chunk-QAPQGDWK.js');
|
|
29
|
-
require('../chunk-5TQOT6CW.js');
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Object.defineProperty(exports, "DynamicAuctionBuilder", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunk44CYUEPG_js.DynamicAuctionBuilder; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "MulticurveBuilder", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunk2A3B3NVB_js.MulticurveBuilder; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "StaticAuctionBuilder", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return chunkRLOZWHRR_js.StaticAuctionBuilder; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "MARKET_CAP_PRESETS", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunkHJFVRV47_js.MARKET_CAP_PRESETS; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "MARKET_CAP_PRESET_ORDER", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return chunkHJFVRV47_js.MARKET_CAP_PRESET_ORDER; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "buildCurvesFromPresets", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return chunkHJFVRV47_js.buildCurvesFromPresets; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "computeTicks", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return chunkHJFVRV47_js.computeTicks; }
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=index.js.map
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/builders/index.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import '../chunk-P25HBGP5.mjs';
|
|
2
|
-
export { DynamicAuctionBuilder } from '../chunk-WNWK2QMU.mjs';
|
|
3
|
-
export { MulticurveBuilder } from '../chunk-QUBD6HUZ.mjs';
|
|
4
|
-
export { StaticAuctionBuilder } from '../chunk-DQJXCZU2.mjs';
|
|
5
|
-
export { MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, buildCurvesFromPresets, computeTicks } from '../chunk-ZEDJUNC6.mjs';
|
|
6
|
-
import '../chunk-7ZUV6WPX.mjs';
|
|
7
|
-
import '../chunk-YBK6EBA5.mjs';
|
|
8
|
-
import '../chunk-H3B54PFV.mjs';
|
|
9
|
-
import '../chunk-IUZ3BBQP.mjs';
|
|
10
|
-
import '../chunk-GSBQIVME.mjs';
|
|
11
|
-
import '../chunk-ABT6AT7C.mjs';
|
|
12
|
-
import '../chunk-CFAAYL5M.mjs';
|
|
13
|
-
import '../chunk-CWTGQAOG.mjs';
|
|
14
|
-
import '../chunk-25GEBO3B.mjs';
|
|
15
|
-
import '../chunk-5GQJRNFL.mjs';
|
|
16
|
-
import '../chunk-KOAC3BBP.mjs';
|
|
17
|
-
import '../chunk-IWJOPXYN.mjs';
|
|
18
|
-
import '../chunk-WKWP42TD.mjs';
|
|
19
|
-
import '../chunk-WDC53TM7.mjs';
|
|
20
|
-
import '../chunk-VKSD3KXF.mjs';
|
|
21
|
-
import '../chunk-JLUOFAE4.mjs';
|
|
22
|
-
import '../chunk-DOUF6NON.mjs';
|
|
23
|
-
import '../chunk-VYSOAGRU.mjs';
|
|
24
|
-
import '../chunk-U3GOWK6J.mjs';
|
|
25
|
-
import '../chunk-SWWLOD7Q.mjs';
|
|
26
|
-
import '../chunk-OHA5KJ2M.mjs';
|
|
27
|
-
import '../chunk-3NMGCQJ4.mjs';
|
|
28
|
-
//# sourceMappingURL=index.mjs.map
|
|
29
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { GovernanceOption, MigrationConfig, MulticurveMarketCapPreset, PriceRange, TickRange } from '../types.mjs';
|
|
3
|
-
import { SupportedChainId } from '../addresses.mjs';
|
|
4
|
-
import 'viem/chains';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Common interface shared by all auction builders.
|
|
8
|
-
*
|
|
9
|
-
* Defines the methods that all builders (Static, Dynamic, Multicurve) implement.
|
|
10
|
-
* Useful for documentation and ensuring API consistency across builders.
|
|
11
|
-
*
|
|
12
|
-
* @template C - The chain ID type
|
|
13
|
-
*/
|
|
14
|
-
interface BaseAuctionBuilder<C extends SupportedChainId> {
|
|
15
|
-
/** The chain ID this builder is configured for */
|
|
16
|
-
readonly chainId: C;
|
|
17
|
-
/**
|
|
18
|
-
* Configure the token to be created.
|
|
19
|
-
* Supports standard ERC20 or Doppler404 token types.
|
|
20
|
-
*/
|
|
21
|
-
tokenConfig(params: {
|
|
22
|
-
type?: 'standard';
|
|
23
|
-
name: string;
|
|
24
|
-
symbol: string;
|
|
25
|
-
tokenURI: string;
|
|
26
|
-
yearlyMintRate?: bigint;
|
|
27
|
-
} | {
|
|
28
|
-
type: 'doppler404';
|
|
29
|
-
name: string;
|
|
30
|
-
symbol: string;
|
|
31
|
-
baseURI: string;
|
|
32
|
-
unit?: bigint;
|
|
33
|
-
}): this;
|
|
34
|
-
/**
|
|
35
|
-
* Configure the token sale parameters.
|
|
36
|
-
* @param params.initialSupply - Total token supply to mint
|
|
37
|
-
* @param params.numTokensToSell - Number of tokens allocated for the bonding curve
|
|
38
|
-
* @param params.numeraire - The quote token address (e.g., WETH)
|
|
39
|
-
*/
|
|
40
|
-
saleConfig(params: {
|
|
41
|
-
initialSupply: bigint;
|
|
42
|
-
numTokensToSell: bigint;
|
|
43
|
-
numeraire: Address;
|
|
44
|
-
}): this;
|
|
45
|
-
/**
|
|
46
|
-
* Configure token vesting for team/investor allocations.
|
|
47
|
-
* Pass undefined or omit to disable vesting.
|
|
48
|
-
*/
|
|
49
|
-
withVesting(params?: {
|
|
50
|
-
duration?: bigint;
|
|
51
|
-
cliffDuration?: number;
|
|
52
|
-
recipients?: Address[];
|
|
53
|
-
amounts?: bigint[];
|
|
54
|
-
}): this;
|
|
55
|
-
/**
|
|
56
|
-
* Configure governance for the token.
|
|
57
|
-
* @param params - Use { type: 'default' }, { type: 'noOp' }, { type: 'launchpad', multisig: '0x...' }, or { type: 'custom', ... }
|
|
58
|
-
*/
|
|
59
|
-
withGovernance(params: GovernanceOption<C>): this;
|
|
60
|
-
/**
|
|
61
|
-
* Configure post-auction liquidity migration.
|
|
62
|
-
* @param migration - Migration target (uniswapV2, uniswapV4, dopplerHook, or noOp)
|
|
63
|
-
*/
|
|
64
|
-
withMigration(migration: MigrationConfig): this;
|
|
65
|
-
/**
|
|
66
|
-
* Set the user address (token creator/owner).
|
|
67
|
-
* Required for build().
|
|
68
|
-
*/
|
|
69
|
-
withUserAddress(address: Address): this;
|
|
70
|
-
/**
|
|
71
|
-
* Set the integrator address for fee attribution.
|
|
72
|
-
* Defaults to zero address if not provided.
|
|
73
|
-
*/
|
|
74
|
-
withIntegrator(address?: Address): this;
|
|
75
|
-
/**
|
|
76
|
-
* Override the default gas limit for the create transaction.
|
|
77
|
-
*/
|
|
78
|
-
withGasLimit(gas?: bigint): this;
|
|
79
|
-
withTokenFactory(address: Address): this;
|
|
80
|
-
withAirlock(address: Address): this;
|
|
81
|
-
withGovernanceFactory(address: Address): this;
|
|
82
|
-
withV2Migrator(address: Address): this;
|
|
83
|
-
withV4Migrator(address: Address): this;
|
|
84
|
-
withNoOpMigrator(address: Address): this;
|
|
85
|
-
}
|
|
86
|
-
declare function computeTicks(priceRange: PriceRange, tickSpacing: number): TickRange;
|
|
87
|
-
declare const MARKET_CAP_PRESET_ORDER: readonly ["low", "medium", "high"];
|
|
88
|
-
type MarketCapPresetConfig = {
|
|
89
|
-
tickLower: number;
|
|
90
|
-
tickUpper: number;
|
|
91
|
-
numPositions: number;
|
|
92
|
-
shares: bigint;
|
|
93
|
-
};
|
|
94
|
-
declare const MARKET_CAP_PRESETS: Record<MulticurveMarketCapPreset, MarketCapPresetConfig>;
|
|
95
|
-
type MarketCapPresetOverrides = Partial<Record<MulticurveMarketCapPreset, {
|
|
96
|
-
tickLower?: number;
|
|
97
|
-
tickUpper?: number;
|
|
98
|
-
numPositions?: number;
|
|
99
|
-
shares?: bigint;
|
|
100
|
-
}>>;
|
|
101
|
-
/**
|
|
102
|
-
* Helper to build curves from market cap presets with optional filler curve
|
|
103
|
-
*/
|
|
104
|
-
declare function buildCurvesFromPresets(params: {
|
|
105
|
-
fee?: number;
|
|
106
|
-
tickSpacing?: number;
|
|
107
|
-
presets?: MulticurveMarketCapPreset[];
|
|
108
|
-
overrides?: MarketCapPresetOverrides;
|
|
109
|
-
}): {
|
|
110
|
-
fee: number;
|
|
111
|
-
tickSpacing: number;
|
|
112
|
-
curves: MarketCapPresetConfig[];
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export { type BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, type MarketCapPresetConfig, type MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks };
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { GovernanceOption, MigrationConfig, MulticurveMarketCapPreset, PriceRange, TickRange } from '../types.js';
|
|
3
|
-
import { SupportedChainId } from '../addresses.js';
|
|
4
|
-
import 'viem/chains';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Common interface shared by all auction builders.
|
|
8
|
-
*
|
|
9
|
-
* Defines the methods that all builders (Static, Dynamic, Multicurve) implement.
|
|
10
|
-
* Useful for documentation and ensuring API consistency across builders.
|
|
11
|
-
*
|
|
12
|
-
* @template C - The chain ID type
|
|
13
|
-
*/
|
|
14
|
-
interface BaseAuctionBuilder<C extends SupportedChainId> {
|
|
15
|
-
/** The chain ID this builder is configured for */
|
|
16
|
-
readonly chainId: C;
|
|
17
|
-
/**
|
|
18
|
-
* Configure the token to be created.
|
|
19
|
-
* Supports standard ERC20 or Doppler404 token types.
|
|
20
|
-
*/
|
|
21
|
-
tokenConfig(params: {
|
|
22
|
-
type?: 'standard';
|
|
23
|
-
name: string;
|
|
24
|
-
symbol: string;
|
|
25
|
-
tokenURI: string;
|
|
26
|
-
yearlyMintRate?: bigint;
|
|
27
|
-
} | {
|
|
28
|
-
type: 'doppler404';
|
|
29
|
-
name: string;
|
|
30
|
-
symbol: string;
|
|
31
|
-
baseURI: string;
|
|
32
|
-
unit?: bigint;
|
|
33
|
-
}): this;
|
|
34
|
-
/**
|
|
35
|
-
* Configure the token sale parameters.
|
|
36
|
-
* @param params.initialSupply - Total token supply to mint
|
|
37
|
-
* @param params.numTokensToSell - Number of tokens allocated for the bonding curve
|
|
38
|
-
* @param params.numeraire - The quote token address (e.g., WETH)
|
|
39
|
-
*/
|
|
40
|
-
saleConfig(params: {
|
|
41
|
-
initialSupply: bigint;
|
|
42
|
-
numTokensToSell: bigint;
|
|
43
|
-
numeraire: Address;
|
|
44
|
-
}): this;
|
|
45
|
-
/**
|
|
46
|
-
* Configure token vesting for team/investor allocations.
|
|
47
|
-
* Pass undefined or omit to disable vesting.
|
|
48
|
-
*/
|
|
49
|
-
withVesting(params?: {
|
|
50
|
-
duration?: bigint;
|
|
51
|
-
cliffDuration?: number;
|
|
52
|
-
recipients?: Address[];
|
|
53
|
-
amounts?: bigint[];
|
|
54
|
-
}): this;
|
|
55
|
-
/**
|
|
56
|
-
* Configure governance for the token.
|
|
57
|
-
* @param params - Use { type: 'default' }, { type: 'noOp' }, { type: 'launchpad', multisig: '0x...' }, or { type: 'custom', ... }
|
|
58
|
-
*/
|
|
59
|
-
withGovernance(params: GovernanceOption<C>): this;
|
|
60
|
-
/**
|
|
61
|
-
* Configure post-auction liquidity migration.
|
|
62
|
-
* @param migration - Migration target (uniswapV2, uniswapV4, dopplerHook, or noOp)
|
|
63
|
-
*/
|
|
64
|
-
withMigration(migration: MigrationConfig): this;
|
|
65
|
-
/**
|
|
66
|
-
* Set the user address (token creator/owner).
|
|
67
|
-
* Required for build().
|
|
68
|
-
*/
|
|
69
|
-
withUserAddress(address: Address): this;
|
|
70
|
-
/**
|
|
71
|
-
* Set the integrator address for fee attribution.
|
|
72
|
-
* Defaults to zero address if not provided.
|
|
73
|
-
*/
|
|
74
|
-
withIntegrator(address?: Address): this;
|
|
75
|
-
/**
|
|
76
|
-
* Override the default gas limit for the create transaction.
|
|
77
|
-
*/
|
|
78
|
-
withGasLimit(gas?: bigint): this;
|
|
79
|
-
withTokenFactory(address: Address): this;
|
|
80
|
-
withAirlock(address: Address): this;
|
|
81
|
-
withGovernanceFactory(address: Address): this;
|
|
82
|
-
withV2Migrator(address: Address): this;
|
|
83
|
-
withV4Migrator(address: Address): this;
|
|
84
|
-
withNoOpMigrator(address: Address): this;
|
|
85
|
-
}
|
|
86
|
-
declare function computeTicks(priceRange: PriceRange, tickSpacing: number): TickRange;
|
|
87
|
-
declare const MARKET_CAP_PRESET_ORDER: readonly ["low", "medium", "high"];
|
|
88
|
-
type MarketCapPresetConfig = {
|
|
89
|
-
tickLower: number;
|
|
90
|
-
tickUpper: number;
|
|
91
|
-
numPositions: number;
|
|
92
|
-
shares: bigint;
|
|
93
|
-
};
|
|
94
|
-
declare const MARKET_CAP_PRESETS: Record<MulticurveMarketCapPreset, MarketCapPresetConfig>;
|
|
95
|
-
type MarketCapPresetOverrides = Partial<Record<MulticurveMarketCapPreset, {
|
|
96
|
-
tickLower?: number;
|
|
97
|
-
tickUpper?: number;
|
|
98
|
-
numPositions?: number;
|
|
99
|
-
shares?: bigint;
|
|
100
|
-
}>>;
|
|
101
|
-
/**
|
|
102
|
-
* Helper to build curves from market cap presets with optional filler curve
|
|
103
|
-
*/
|
|
104
|
-
declare function buildCurvesFromPresets(params: {
|
|
105
|
-
fee?: number;
|
|
106
|
-
tickSpacing?: number;
|
|
107
|
-
presets?: MulticurveMarketCapPreset[];
|
|
108
|
-
overrides?: MarketCapPresetOverrides;
|
|
109
|
-
}): {
|
|
110
|
-
fee: number;
|
|
111
|
-
tickSpacing: number;
|
|
112
|
-
curves: MarketCapPresetConfig[];
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export { type BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, type MarketCapPresetConfig, type MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks };
|
package/dist/builders/shared.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkHJFVRV47_js = require('../chunk-HJFVRV47.js');
|
|
4
|
-
require('../chunk-DSYPZETD.js');
|
|
5
|
-
require('../chunk-WNUB3UTT.js');
|
|
6
|
-
require('../chunk-UPVKABAV.js');
|
|
7
|
-
require('../chunk-QOYI7WCH.js');
|
|
8
|
-
require('../chunk-FNUBKONK.js');
|
|
9
|
-
require('../chunk-6H6X3VTZ.js');
|
|
10
|
-
require('../chunk-7M57PU6V.js');
|
|
11
|
-
require('../chunk-KHUE77HC.js');
|
|
12
|
-
require('../chunk-4VWQNNNW.js');
|
|
13
|
-
require('../chunk-BQZTELUX.js');
|
|
14
|
-
require('../chunk-XSJTASPK.js');
|
|
15
|
-
require('../chunk-6BQY5EPB.js');
|
|
16
|
-
require('../chunk-65CESA3J.js');
|
|
17
|
-
require('../chunk-7A4DBBXA.js');
|
|
18
|
-
require('../chunk-PGYTMRP3.js');
|
|
19
|
-
require('../chunk-MU56HCUI.js');
|
|
20
|
-
require('../chunk-4XN6DQBW.js');
|
|
21
|
-
require('../chunk-QRTABC4Z.js');
|
|
22
|
-
require('../chunk-J62YDWIK.js');
|
|
23
|
-
require('../chunk-XMFOZYNI.js');
|
|
24
|
-
require('../chunk-QAPQGDWK.js');
|
|
25
|
-
require('../chunk-5TQOT6CW.js');
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Object.defineProperty(exports, "MARKET_CAP_PRESETS", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return chunkHJFVRV47_js.MARKET_CAP_PRESETS; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "MARKET_CAP_PRESET_ORDER", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunkHJFVRV47_js.MARKET_CAP_PRESET_ORDER; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "buildCurvesFromPresets", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunkHJFVRV47_js.buildCurvesFromPresets; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "computeTicks", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return chunkHJFVRV47_js.computeTicks; }
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=shared.js.map
|
|
46
|
-
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"shared.js"}
|
package/dist/builders/shared.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, buildCurvesFromPresets, computeTicks } from '../chunk-ZEDJUNC6.mjs';
|
|
2
|
-
import '../chunk-7ZUV6WPX.mjs';
|
|
3
|
-
import '../chunk-YBK6EBA5.mjs';
|
|
4
|
-
import '../chunk-H3B54PFV.mjs';
|
|
5
|
-
import '../chunk-IUZ3BBQP.mjs';
|
|
6
|
-
import '../chunk-GSBQIVME.mjs';
|
|
7
|
-
import '../chunk-ABT6AT7C.mjs';
|
|
8
|
-
import '../chunk-CFAAYL5M.mjs';
|
|
9
|
-
import '../chunk-CWTGQAOG.mjs';
|
|
10
|
-
import '../chunk-25GEBO3B.mjs';
|
|
11
|
-
import '../chunk-5GQJRNFL.mjs';
|
|
12
|
-
import '../chunk-KOAC3BBP.mjs';
|
|
13
|
-
import '../chunk-IWJOPXYN.mjs';
|
|
14
|
-
import '../chunk-WKWP42TD.mjs';
|
|
15
|
-
import '../chunk-WDC53TM7.mjs';
|
|
16
|
-
import '../chunk-VKSD3KXF.mjs';
|
|
17
|
-
import '../chunk-JLUOFAE4.mjs';
|
|
18
|
-
import '../chunk-DOUF6NON.mjs';
|
|
19
|
-
import '../chunk-VYSOAGRU.mjs';
|
|
20
|
-
import '../chunk-U3GOWK6J.mjs';
|
|
21
|
-
import '../chunk-SWWLOD7Q.mjs';
|
|
22
|
-
import '../chunk-OHA5KJ2M.mjs';
|
|
23
|
-
import '../chunk-3NMGCQJ4.mjs';
|
|
24
|
-
//# sourceMappingURL=shared.mjs.map
|
|
25
|
-
//# sourceMappingURL=shared.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"shared.mjs"}
|