@whetstone-research/doppler-sdk 0.0.24 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/dist/chunk-LIXSTCMM.js +974 -0
- package/dist/chunk-LIXSTCMM.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-T46KDO65.js +322 -0
- package/dist/chunk-T46KDO65.js.map +1 -0
- package/dist/evm/index.d.ts +8533 -0
- package/dist/evm/index.js +15230 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/oracle-B2LV97ff.d.ts +826 -0
- package/dist/pda-LKHUH6JK.js +4 -0
- package/dist/pda-LKHUH6JK.js.map +1 -0
- package/dist/solana/index.d.ts +2534 -0
- package/dist/solana/index.js +2298 -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,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Price helper utilities for common token launch scenarios
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Calculate the tick range for a desired price range
|
|
6
|
-
* @param minPrice Minimum price (ETH per token)
|
|
7
|
-
* @param maxPrice Maximum price (ETH per token)
|
|
8
|
-
* @param tickSpacing The tick spacing of the pool
|
|
9
|
-
* @param wethDecimals Decimals of WETH (usually 18)
|
|
10
|
-
* @param tokenDecimals Decimals of the token (usually 18)
|
|
11
|
-
* @returns Object with startTick and endTick
|
|
12
|
-
*/
|
|
13
|
-
declare function calculateTickRange(minPrice: number, maxPrice: number, tickSpacing: number, wethDecimals?: number, tokenDecimals?: number): {
|
|
14
|
-
startTick: number;
|
|
15
|
-
endTick: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Calculate the number of tokens to sell based on desired raise
|
|
19
|
-
* @param targetRaiseETH Target amount to raise in ETH
|
|
20
|
-
* @param avgPricePerToken Average expected price per token in ETH
|
|
21
|
-
* @returns Number of tokens to sell (as bigint)
|
|
22
|
-
*/
|
|
23
|
-
declare function calculateTokensToSell(targetRaiseETH: number, avgPricePerToken: number): bigint;
|
|
24
|
-
/**
|
|
25
|
-
* Calculate gamma for dynamic auctions
|
|
26
|
-
* @param startTick Starting tick
|
|
27
|
-
* @param endTick Ending tick
|
|
28
|
-
* @param duration Duration in seconds
|
|
29
|
-
* @param epochLength Epoch length in seconds
|
|
30
|
-
* @returns Gamma value
|
|
31
|
-
*/
|
|
32
|
-
declare function calculateGamma(startTick: number, endTick: number, duration: number, epochLength: number): number;
|
|
33
|
-
/**
|
|
34
|
-
* Estimate the price at a specific epoch in a dynamic auction
|
|
35
|
-
* @param startTick Starting tick
|
|
36
|
-
* @param gamma Tick movement per epoch
|
|
37
|
-
* @param currentEpoch Current epoch number
|
|
38
|
-
* @param tokenDecimals Token decimals
|
|
39
|
-
* @param wethDecimals WETH decimals
|
|
40
|
-
* @param isIncreasing Whether price increases (true) or decreases (false) over time
|
|
41
|
-
* @returns Estimated price in ETH per token
|
|
42
|
-
*/
|
|
43
|
-
declare function estimatePriceAtEpoch(startTick: number, gamma: number, currentEpoch: number, tokenDecimals?: number, wethDecimals?: number, isIncreasing?: boolean): number;
|
|
44
|
-
/**
|
|
45
|
-
* Format a tick value to a human-readable price string
|
|
46
|
-
* @param tick The tick value
|
|
47
|
-
* @param tokenSymbol Symbol of the token
|
|
48
|
-
* @param numeraireSymbol Symbol of the numeraire (e.g., "ETH")
|
|
49
|
-
* @param tokenDecimals Token decimals
|
|
50
|
-
* @param numeraireDecimals Numeraire decimals
|
|
51
|
-
* @returns Formatted price string
|
|
52
|
-
*/
|
|
53
|
-
declare function formatTickAsPrice(tick: number, tokenSymbol: string, numeraireSymbol: string, tokenDecimals?: number, numeraireDecimals?: number): string;
|
|
54
|
-
/**
|
|
55
|
-
* Calculate the market cap at a given price
|
|
56
|
-
* @param totalSupply Total token supply (as bigint)
|
|
57
|
-
* @param pricePerToken Price per token in ETH
|
|
58
|
-
* @param ethPrice Current ETH price in USD (optional)
|
|
59
|
-
* @returns Market cap object with ETH and USD values
|
|
60
|
-
*/
|
|
61
|
-
declare function calculateMarketCap(totalSupply: bigint, pricePerToken: number, ethPrice?: number): {
|
|
62
|
-
eth: string;
|
|
63
|
-
usd?: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Calculate fully diluted valuation (FDV)
|
|
67
|
-
* @param totalSupply Total token supply including vested tokens (as bigint)
|
|
68
|
-
* @param pricePerToken Price per token in ETH
|
|
69
|
-
* @param ethPrice Current ETH price in USD (optional)
|
|
70
|
-
* @returns FDV object with ETH and USD values
|
|
71
|
-
*/
|
|
72
|
-
declare function calculateFDV(totalSupply: bigint, pricePerToken: number, ethPrice?: number): {
|
|
73
|
-
eth: string;
|
|
74
|
-
usd?: string;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Estimate slippage for a trade in a concentrated liquidity pool
|
|
78
|
-
* @param amountIn Amount to trade
|
|
79
|
-
* @param liquidity Current liquidity
|
|
80
|
-
* @param currentTick Current tick
|
|
81
|
-
* @param fee Pool fee (e.g., 3000 for 0.3%)
|
|
82
|
-
* @returns Estimated slippage percentage
|
|
83
|
-
*/
|
|
84
|
-
declare function estimateSlippage(amountIn: bigint, liquidity: bigint, currentTick: number, fee: number): number;
|
|
85
|
-
|
|
86
|
-
export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Price helper utilities for common token launch scenarios
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Calculate the tick range for a desired price range
|
|
6
|
-
* @param minPrice Minimum price (ETH per token)
|
|
7
|
-
* @param maxPrice Maximum price (ETH per token)
|
|
8
|
-
* @param tickSpacing The tick spacing of the pool
|
|
9
|
-
* @param wethDecimals Decimals of WETH (usually 18)
|
|
10
|
-
* @param tokenDecimals Decimals of the token (usually 18)
|
|
11
|
-
* @returns Object with startTick and endTick
|
|
12
|
-
*/
|
|
13
|
-
declare function calculateTickRange(minPrice: number, maxPrice: number, tickSpacing: number, wethDecimals?: number, tokenDecimals?: number): {
|
|
14
|
-
startTick: number;
|
|
15
|
-
endTick: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Calculate the number of tokens to sell based on desired raise
|
|
19
|
-
* @param targetRaiseETH Target amount to raise in ETH
|
|
20
|
-
* @param avgPricePerToken Average expected price per token in ETH
|
|
21
|
-
* @returns Number of tokens to sell (as bigint)
|
|
22
|
-
*/
|
|
23
|
-
declare function calculateTokensToSell(targetRaiseETH: number, avgPricePerToken: number): bigint;
|
|
24
|
-
/**
|
|
25
|
-
* Calculate gamma for dynamic auctions
|
|
26
|
-
* @param startTick Starting tick
|
|
27
|
-
* @param endTick Ending tick
|
|
28
|
-
* @param duration Duration in seconds
|
|
29
|
-
* @param epochLength Epoch length in seconds
|
|
30
|
-
* @returns Gamma value
|
|
31
|
-
*/
|
|
32
|
-
declare function calculateGamma(startTick: number, endTick: number, duration: number, epochLength: number): number;
|
|
33
|
-
/**
|
|
34
|
-
* Estimate the price at a specific epoch in a dynamic auction
|
|
35
|
-
* @param startTick Starting tick
|
|
36
|
-
* @param gamma Tick movement per epoch
|
|
37
|
-
* @param currentEpoch Current epoch number
|
|
38
|
-
* @param tokenDecimals Token decimals
|
|
39
|
-
* @param wethDecimals WETH decimals
|
|
40
|
-
* @param isIncreasing Whether price increases (true) or decreases (false) over time
|
|
41
|
-
* @returns Estimated price in ETH per token
|
|
42
|
-
*/
|
|
43
|
-
declare function estimatePriceAtEpoch(startTick: number, gamma: number, currentEpoch: number, tokenDecimals?: number, wethDecimals?: number, isIncreasing?: boolean): number;
|
|
44
|
-
/**
|
|
45
|
-
* Format a tick value to a human-readable price string
|
|
46
|
-
* @param tick The tick value
|
|
47
|
-
* @param tokenSymbol Symbol of the token
|
|
48
|
-
* @param numeraireSymbol Symbol of the numeraire (e.g., "ETH")
|
|
49
|
-
* @param tokenDecimals Token decimals
|
|
50
|
-
* @param numeraireDecimals Numeraire decimals
|
|
51
|
-
* @returns Formatted price string
|
|
52
|
-
*/
|
|
53
|
-
declare function formatTickAsPrice(tick: number, tokenSymbol: string, numeraireSymbol: string, tokenDecimals?: number, numeraireDecimals?: number): string;
|
|
54
|
-
/**
|
|
55
|
-
* Calculate the market cap at a given price
|
|
56
|
-
* @param totalSupply Total token supply (as bigint)
|
|
57
|
-
* @param pricePerToken Price per token in ETH
|
|
58
|
-
* @param ethPrice Current ETH price in USD (optional)
|
|
59
|
-
* @returns Market cap object with ETH and USD values
|
|
60
|
-
*/
|
|
61
|
-
declare function calculateMarketCap(totalSupply: bigint, pricePerToken: number, ethPrice?: number): {
|
|
62
|
-
eth: string;
|
|
63
|
-
usd?: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Calculate fully diluted valuation (FDV)
|
|
67
|
-
* @param totalSupply Total token supply including vested tokens (as bigint)
|
|
68
|
-
* @param pricePerToken Price per token in ETH
|
|
69
|
-
* @param ethPrice Current ETH price in USD (optional)
|
|
70
|
-
* @returns FDV object with ETH and USD values
|
|
71
|
-
*/
|
|
72
|
-
declare function calculateFDV(totalSupply: bigint, pricePerToken: number, ethPrice?: number): {
|
|
73
|
-
eth: string;
|
|
74
|
-
usd?: string;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Estimate slippage for a trade in a concentrated liquidity pool
|
|
78
|
-
* @param amountIn Amount to trade
|
|
79
|
-
* @param liquidity Current liquidity
|
|
80
|
-
* @param currentTick Current tick
|
|
81
|
-
* @param fee Pool fee (e.g., 3000 for 0.3%)
|
|
82
|
-
* @returns Estimated slippage percentage
|
|
83
|
-
*/
|
|
84
|
-
declare function estimateSlippage(amountIn: bigint, liquidity: bigint, currentTick: number, fee: number): number;
|
|
85
|
-
|
|
86
|
-
export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKHUE77HC_js = require('../chunk-KHUE77HC.js');
|
|
4
|
-
require('../chunk-4VWQNNNW.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "calculateFDV", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkKHUE77HC_js.calculateFDV; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "calculateGamma", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkKHUE77HC_js.calculateGamma; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "calculateMarketCap", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkKHUE77HC_js.calculateMarketCap; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "calculateTickRange", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkKHUE77HC_js.calculateTickRange; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "calculateTokensToSell", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkKHUE77HC_js.calculateTokensToSell; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "estimatePriceAtEpoch", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkKHUE77HC_js.estimatePriceAtEpoch; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "estimateSlippage", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return chunkKHUE77HC_js.estimateSlippage; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "formatTickAsPrice", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkKHUE77HC_js.formatTickAsPrice; }
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=priceHelpers.js.map
|
|
41
|
-
//# sourceMappingURL=priceHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"priceHelpers.js"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice } from '../chunk-CWTGQAOG.mjs';
|
|
2
|
-
import '../chunk-25GEBO3B.mjs';
|
|
3
|
-
//# sourceMappingURL=priceHelpers.mjs.map
|
|
4
|
-
//# sourceMappingURL=priceHelpers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"priceHelpers.mjs"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tick math utilities for Uniswap V3/V4 price calculations
|
|
3
|
-
*
|
|
4
|
-
* These utilities help convert between ticks, sqrtPriceX96 values, and human-readable prices
|
|
5
|
-
*/
|
|
6
|
-
declare const MIN_TICK = -887272;
|
|
7
|
-
declare const MAX_TICK = 887272;
|
|
8
|
-
declare const MIN_SQRT_RATIO = 4295128739n;
|
|
9
|
-
declare const MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342n;
|
|
10
|
-
declare const Q96: bigint;
|
|
11
|
-
declare const Q192: bigint;
|
|
12
|
-
/**
|
|
13
|
-
* Get the sqrt ratio at a given tick
|
|
14
|
-
* @param tick The tick value
|
|
15
|
-
* @returns The sqrt price as a Q64.96 fixed point number
|
|
16
|
-
*/
|
|
17
|
-
declare function getSqrtRatioAtTick(tick: number): bigint;
|
|
18
|
-
/**
|
|
19
|
-
* Get the tick at a given sqrt ratio
|
|
20
|
-
* Based on Uniswap v3 TickMath.sol with corrected BigInt handling
|
|
21
|
-
*
|
|
22
|
-
* @param sqrtRatioX96 The sqrt price as a Q64.96 fixed point number
|
|
23
|
-
* @returns The tick value
|
|
24
|
-
*/
|
|
25
|
-
declare function getTickAtSqrtRatio(sqrtRatioX96: bigint): number;
|
|
26
|
-
/**
|
|
27
|
-
* Convert sqrtPriceX96 to a human-readable price
|
|
28
|
-
* Uses BigInt arithmetic throughout to avoid precision loss with Q96
|
|
29
|
-
*
|
|
30
|
-
* @param sqrtPriceX96 The sqrt price as a Q64.96 fixed point number
|
|
31
|
-
* @param decimals0 Decimals of token0
|
|
32
|
-
* @param decimals1 Decimals of token1
|
|
33
|
-
* @param token0IsBase Whether to return price in terms of token0 (true) or token1 (false)
|
|
34
|
-
* @returns The price as a number
|
|
35
|
-
*/
|
|
36
|
-
declare function sqrtPriceX96ToPrice(sqrtPriceX96: bigint, decimals0: number, decimals1: number, token0IsBase?: boolean): number;
|
|
37
|
-
/**
|
|
38
|
-
* Convert a human-readable price to sqrtPriceX96
|
|
39
|
-
* Uses BigInt arithmetic throughout to avoid precision loss with Q96
|
|
40
|
-
*
|
|
41
|
-
* @param price The price (token1/token0)
|
|
42
|
-
* @param decimals0 Decimals of token0
|
|
43
|
-
* @param decimals1 Decimals of token1
|
|
44
|
-
* @returns The sqrt price as a Q64.96 fixed point number
|
|
45
|
-
*/
|
|
46
|
-
declare function priceToSqrtPriceX96(price: number, decimals0: number, decimals1: number): bigint;
|
|
47
|
-
/**
|
|
48
|
-
* Convert a tick to a human-readable price
|
|
49
|
-
* @param tick The tick value
|
|
50
|
-
* @param decimals0 Decimals of token0
|
|
51
|
-
* @param decimals1 Decimals of token1
|
|
52
|
-
* @param token0IsBase Whether to return price in terms of token0 (true) or token1 (false)
|
|
53
|
-
* @returns The price as a number
|
|
54
|
-
*/
|
|
55
|
-
declare function tickToPrice(tick: number, decimals0: number, decimals1: number, token0IsBase?: boolean): number;
|
|
56
|
-
/**
|
|
57
|
-
* Convert a human-readable price to a tick
|
|
58
|
-
* @param price The price (token1/token0)
|
|
59
|
-
* @param decimals0 Decimals of token0
|
|
60
|
-
* @param decimals1 Decimals of token1
|
|
61
|
-
* @returns The tick value
|
|
62
|
-
*/
|
|
63
|
-
declare function priceToTick(price: number, decimals0: number, decimals1: number): number;
|
|
64
|
-
/**
|
|
65
|
-
* Get the nearest usable tick for a given tick spacing
|
|
66
|
-
* @param tick The desired tick
|
|
67
|
-
* @param tickSpacing The tick spacing of the pool
|
|
68
|
-
* @returns The nearest valid tick
|
|
69
|
-
*/
|
|
70
|
-
declare function getNearestUsableTick(tick: number, tickSpacing: number): number;
|
|
71
|
-
|
|
72
|
-
export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q192, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice };
|
package/dist/utils/tickMath.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tick math utilities for Uniswap V3/V4 price calculations
|
|
3
|
-
*
|
|
4
|
-
* These utilities help convert between ticks, sqrtPriceX96 values, and human-readable prices
|
|
5
|
-
*/
|
|
6
|
-
declare const MIN_TICK = -887272;
|
|
7
|
-
declare const MAX_TICK = 887272;
|
|
8
|
-
declare const MIN_SQRT_RATIO = 4295128739n;
|
|
9
|
-
declare const MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342n;
|
|
10
|
-
declare const Q96: bigint;
|
|
11
|
-
declare const Q192: bigint;
|
|
12
|
-
/**
|
|
13
|
-
* Get the sqrt ratio at a given tick
|
|
14
|
-
* @param tick The tick value
|
|
15
|
-
* @returns The sqrt price as a Q64.96 fixed point number
|
|
16
|
-
*/
|
|
17
|
-
declare function getSqrtRatioAtTick(tick: number): bigint;
|
|
18
|
-
/**
|
|
19
|
-
* Get the tick at a given sqrt ratio
|
|
20
|
-
* Based on Uniswap v3 TickMath.sol with corrected BigInt handling
|
|
21
|
-
*
|
|
22
|
-
* @param sqrtRatioX96 The sqrt price as a Q64.96 fixed point number
|
|
23
|
-
* @returns The tick value
|
|
24
|
-
*/
|
|
25
|
-
declare function getTickAtSqrtRatio(sqrtRatioX96: bigint): number;
|
|
26
|
-
/**
|
|
27
|
-
* Convert sqrtPriceX96 to a human-readable price
|
|
28
|
-
* Uses BigInt arithmetic throughout to avoid precision loss with Q96
|
|
29
|
-
*
|
|
30
|
-
* @param sqrtPriceX96 The sqrt price as a Q64.96 fixed point number
|
|
31
|
-
* @param decimals0 Decimals of token0
|
|
32
|
-
* @param decimals1 Decimals of token1
|
|
33
|
-
* @param token0IsBase Whether to return price in terms of token0 (true) or token1 (false)
|
|
34
|
-
* @returns The price as a number
|
|
35
|
-
*/
|
|
36
|
-
declare function sqrtPriceX96ToPrice(sqrtPriceX96: bigint, decimals0: number, decimals1: number, token0IsBase?: boolean): number;
|
|
37
|
-
/**
|
|
38
|
-
* Convert a human-readable price to sqrtPriceX96
|
|
39
|
-
* Uses BigInt arithmetic throughout to avoid precision loss with Q96
|
|
40
|
-
*
|
|
41
|
-
* @param price The price (token1/token0)
|
|
42
|
-
* @param decimals0 Decimals of token0
|
|
43
|
-
* @param decimals1 Decimals of token1
|
|
44
|
-
* @returns The sqrt price as a Q64.96 fixed point number
|
|
45
|
-
*/
|
|
46
|
-
declare function priceToSqrtPriceX96(price: number, decimals0: number, decimals1: number): bigint;
|
|
47
|
-
/**
|
|
48
|
-
* Convert a tick to a human-readable price
|
|
49
|
-
* @param tick The tick value
|
|
50
|
-
* @param decimals0 Decimals of token0
|
|
51
|
-
* @param decimals1 Decimals of token1
|
|
52
|
-
* @param token0IsBase Whether to return price in terms of token0 (true) or token1 (false)
|
|
53
|
-
* @returns The price as a number
|
|
54
|
-
*/
|
|
55
|
-
declare function tickToPrice(tick: number, decimals0: number, decimals1: number, token0IsBase?: boolean): number;
|
|
56
|
-
/**
|
|
57
|
-
* Convert a human-readable price to a tick
|
|
58
|
-
* @param price The price (token1/token0)
|
|
59
|
-
* @param decimals0 Decimals of token0
|
|
60
|
-
* @param decimals1 Decimals of token1
|
|
61
|
-
* @returns The tick value
|
|
62
|
-
*/
|
|
63
|
-
declare function priceToTick(price: number, decimals0: number, decimals1: number): number;
|
|
64
|
-
/**
|
|
65
|
-
* Get the nearest usable tick for a given tick spacing
|
|
66
|
-
* @param tick The desired tick
|
|
67
|
-
* @param tickSpacing The tick spacing of the pool
|
|
68
|
-
* @returns The nearest valid tick
|
|
69
|
-
*/
|
|
70
|
-
declare function getNearestUsableTick(tick: number, tickSpacing: number): number;
|
|
71
|
-
|
|
72
|
-
export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q192, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice };
|
package/dist/utils/tickMath.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk4VWQNNNW_js = require('../chunk-4VWQNNNW.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "MAX_SQRT_RATIO", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk4VWQNNNW_js.MAX_SQRT_RATIO; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "MAX_TICK", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk4VWQNNNW_js.MAX_TICK; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "MIN_SQRT_RATIO", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunk4VWQNNNW_js.MIN_SQRT_RATIO; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "MIN_TICK", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk4VWQNNNW_js.MIN_TICK; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "Q192", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunk4VWQNNNW_js.Q192; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "Q96", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunk4VWQNNNW_js.Q96; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "getNearestUsableTick", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunk4VWQNNNW_js.getNearestUsableTick; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "getSqrtRatioAtTick", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunk4VWQNNNW_js.getSqrtRatioAtTick; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "getTickAtSqrtRatio", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunk4VWQNNNW_js.getTickAtSqrtRatio; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "priceToSqrtPriceX96", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunk4VWQNNNW_js.priceToSqrtPriceX96; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "priceToTick", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunk4VWQNNNW_js.priceToTick; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "sqrtPriceX96ToPrice", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunk4VWQNNNW_js.sqrtPriceX96ToPrice; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "tickToPrice", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return chunk4VWQNNNW_js.tickToPrice; }
|
|
58
|
-
});
|
|
59
|
-
//# sourceMappingURL=tickMath.js.map
|
|
60
|
-
//# sourceMappingURL=tickMath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"tickMath.js"}
|
package/dist/utils/tickMath.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q192, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice } from '../chunk-25GEBO3B.mjs';
|
|
2
|
-
//# sourceMappingURL=tickMath.mjs.map
|
|
3
|
-
//# sourceMappingURL=tickMath.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"tickMath.mjs"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Address, Hex, Hash } from 'viem';
|
|
2
|
-
|
|
3
|
-
type TokenVariant = 'standard' | 'doppler404';
|
|
4
|
-
interface TokenAddressHookConfig {
|
|
5
|
-
deployer: Address;
|
|
6
|
-
initCodeHash: Hash;
|
|
7
|
-
prefix?: string;
|
|
8
|
-
suffix?: string;
|
|
9
|
-
}
|
|
10
|
-
interface TokenAddressMiningParams {
|
|
11
|
-
/**
|
|
12
|
-
* Vanity prefix (hex). Keep as `''` (empty string) if you only want to mine a suffix.
|
|
13
|
-
* Note: this is required for backwards compatibility with older SDK versions.
|
|
14
|
-
*/
|
|
15
|
-
prefix: string;
|
|
16
|
-
/** Vanity suffix (hex), useful as an identifier at the end of the address. */
|
|
17
|
-
suffix?: string;
|
|
18
|
-
tokenFactory: Address;
|
|
19
|
-
initialSupply: bigint;
|
|
20
|
-
recipient: Address;
|
|
21
|
-
owner: Address;
|
|
22
|
-
tokenData: Hex;
|
|
23
|
-
tokenVariant?: TokenVariant;
|
|
24
|
-
customBytecode?: Hex;
|
|
25
|
-
maxIterations?: number;
|
|
26
|
-
startSalt?: bigint;
|
|
27
|
-
hook?: TokenAddressHookConfig;
|
|
28
|
-
}
|
|
29
|
-
interface TokenAddressMiningResult {
|
|
30
|
-
salt: Hash;
|
|
31
|
-
tokenAddress: Address;
|
|
32
|
-
iterations: number;
|
|
33
|
-
hookAddress?: Address;
|
|
34
|
-
}
|
|
35
|
-
declare function mineTokenAddress(params: TokenAddressMiningParams): TokenAddressMiningResult;
|
|
36
|
-
|
|
37
|
-
export { type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenVariant, mineTokenAddress };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Address, Hex, Hash } from 'viem';
|
|
2
|
-
|
|
3
|
-
type TokenVariant = 'standard' | 'doppler404';
|
|
4
|
-
interface TokenAddressHookConfig {
|
|
5
|
-
deployer: Address;
|
|
6
|
-
initCodeHash: Hash;
|
|
7
|
-
prefix?: string;
|
|
8
|
-
suffix?: string;
|
|
9
|
-
}
|
|
10
|
-
interface TokenAddressMiningParams {
|
|
11
|
-
/**
|
|
12
|
-
* Vanity prefix (hex). Keep as `''` (empty string) if you only want to mine a suffix.
|
|
13
|
-
* Note: this is required for backwards compatibility with older SDK versions.
|
|
14
|
-
*/
|
|
15
|
-
prefix: string;
|
|
16
|
-
/** Vanity suffix (hex), useful as an identifier at the end of the address. */
|
|
17
|
-
suffix?: string;
|
|
18
|
-
tokenFactory: Address;
|
|
19
|
-
initialSupply: bigint;
|
|
20
|
-
recipient: Address;
|
|
21
|
-
owner: Address;
|
|
22
|
-
tokenData: Hex;
|
|
23
|
-
tokenVariant?: TokenVariant;
|
|
24
|
-
customBytecode?: Hex;
|
|
25
|
-
maxIterations?: number;
|
|
26
|
-
startSalt?: bigint;
|
|
27
|
-
hook?: TokenAddressHookConfig;
|
|
28
|
-
}
|
|
29
|
-
interface TokenAddressMiningResult {
|
|
30
|
-
salt: Hash;
|
|
31
|
-
tokenAddress: Address;
|
|
32
|
-
iterations: number;
|
|
33
|
-
hookAddress?: Address;
|
|
34
|
-
}
|
|
35
|
-
declare function mineTokenAddress(params: TokenAddressMiningParams): TokenAddressMiningResult;
|
|
36
|
-
|
|
37
|
-
export { type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenVariant, mineTokenAddress };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWNUB3UTT_js = require('../chunk-WNUB3UTT.js');
|
|
4
|
-
require('../chunk-MU56HCUI.js');
|
|
5
|
-
require('../chunk-4XN6DQBW.js');
|
|
6
|
-
require('../chunk-QRTABC4Z.js');
|
|
7
|
-
require('../chunk-J62YDWIK.js');
|
|
8
|
-
require('../chunk-XMFOZYNI.js');
|
|
9
|
-
require('../chunk-QAPQGDWK.js');
|
|
10
|
-
require('../chunk-5TQOT6CW.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(exports, "mineTokenAddress", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return chunkWNUB3UTT_js.mineTokenAddress; }
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=tokenAddressMiner.js.map
|
|
19
|
-
//# sourceMappingURL=tokenAddressMiner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"tokenAddressMiner.js"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { mineTokenAddress } from '../chunk-YBK6EBA5.mjs';
|
|
2
|
-
import '../chunk-JLUOFAE4.mjs';
|
|
3
|
-
import '../chunk-DOUF6NON.mjs';
|
|
4
|
-
import '../chunk-VYSOAGRU.mjs';
|
|
5
|
-
import '../chunk-U3GOWK6J.mjs';
|
|
6
|
-
import '../chunk-SWWLOD7Q.mjs';
|
|
7
|
-
import '../chunk-OHA5KJ2M.mjs';
|
|
8
|
-
import '../chunk-3NMGCQJ4.mjs';
|
|
9
|
-
//# sourceMappingURL=tokenAddressMiner.mjs.map
|
|
10
|
-
//# sourceMappingURL=tokenAddressMiner.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"tokenAddressMiner.mjs"}
|