@whetstone-research/doppler-sdk 0.0.1-alpha.8 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +726 -25
- package/dist/DopplerSDK.d.mts +45 -7
- package/dist/DopplerSDK.d.ts +45 -7
- package/dist/DopplerSDK.js +35 -12
- package/dist/DopplerSDK.mjs +34 -11
- package/dist/abis/bytecodes.d.mts +3 -2
- package/dist/abis/bytecodes.d.ts +3 -2
- package/dist/abis/bytecodes.js +9 -6
- package/dist/abis/bytecodes.mjs +1 -2
- package/dist/abis/index.d.mts +1507 -129
- package/dist/abis/index.d.ts +1507 -129
- package/dist/abis/index.js +43 -20
- package/dist/abis/index.mjs +2 -3
- package/dist/addresses.d.mts +16 -3
- package/dist/addresses.d.ts +16 -3
- package/dist/addresses.js +13 -5
- package/dist/addresses.mjs +2 -2
- package/dist/builders/DynamicAuctionBuilder.d.mts +119 -0
- package/dist/builders/DynamicAuctionBuilder.d.ts +119 -0
- package/dist/builders/DynamicAuctionBuilder.js +29 -0
- package/dist/builders/DynamicAuctionBuilder.js.map +1 -0
- package/dist/builders/DynamicAuctionBuilder.mjs +20 -0
- package/dist/builders/DynamicAuctionBuilder.mjs.map +1 -0
- package/dist/builders/MulticurveBuilder.d.mts +132 -0
- package/dist/builders/MulticurveBuilder.d.ts +132 -0
- package/dist/builders/MulticurveBuilder.js +29 -0
- package/dist/builders/MulticurveBuilder.js.map +1 -0
- package/dist/builders/MulticurveBuilder.mjs +20 -0
- package/dist/builders/MulticurveBuilder.mjs.map +1 -0
- package/dist/builders/StaticAuctionBuilder.d.mts +124 -0
- package/dist/builders/StaticAuctionBuilder.d.ts +124 -0
- package/dist/builders/StaticAuctionBuilder.js +29 -0
- package/dist/builders/StaticAuctionBuilder.js.map +1 -0
- package/dist/builders/StaticAuctionBuilder.mjs +20 -0
- package/dist/builders/StaticAuctionBuilder.mjs.map +1 -0
- package/dist/builders/index.d.mts +8 -0
- package/dist/builders/index.d.ts +8 -0
- package/dist/builders/index.js +56 -0
- package/dist/builders/index.js.map +1 -0
- package/dist/builders/index.mjs +23 -0
- package/dist/builders/index.mjs.map +1 -0
- package/dist/builders/shared.d.mts +116 -0
- package/dist/builders/shared.d.ts +116 -0
- package/dist/builders/shared.js +39 -0
- package/dist/builders/shared.js.map +1 -0
- package/dist/builders/shared.mjs +18 -0
- package/dist/builders/shared.mjs.map +1 -0
- package/dist/builders.d.mts +8 -131
- package/dist/builders.d.ts +8 -131
- package/dist/builders.js +44 -5
- package/dist/builders.mjs +22 -3
- package/dist/chunk-3PNCB4W5.js +4 -0
- package/dist/{chunk-KRN3ROUE.js.map → chunk-3PNCB4W5.js.map} +1 -1
- package/dist/chunk-3RK7LRAA.js +282 -0
- package/dist/chunk-3RK7LRAA.js.map +1 -0
- package/dist/chunk-4HM3ERBU.js +13 -0
- package/dist/chunk-4HM3ERBU.js.map +1 -0
- package/dist/{chunk-7W72MFJO.mjs → chunk-4TROGENW.mjs} +5 -4
- package/dist/chunk-4TROGENW.mjs.map +1 -0
- package/dist/chunk-5TL5V6UX.mjs +3 -0
- package/dist/{chunk-AZLFJNTG.mjs.map → chunk-5TL5V6UX.mjs.map} +1 -1
- package/dist/chunk-64AWG57M.mjs +192 -0
- package/dist/chunk-64AWG57M.mjs.map +1 -0
- package/dist/chunk-6KWCHTK3.js +166 -0
- package/dist/chunk-6KWCHTK3.js.map +1 -0
- package/dist/chunk-6OOWOPCX.js +1708 -0
- package/dist/chunk-6OOWOPCX.js.map +1 -0
- package/dist/chunk-7BBRPWQJ.js +257 -0
- package/dist/chunk-7BBRPWQJ.js.map +1 -0
- package/dist/{chunk-FVTIDXYK.mjs → chunk-AKSEBAR7.mjs} +29 -19
- package/dist/chunk-AKSEBAR7.mjs.map +1 -0
- package/dist/chunk-AS64GWBX.js +204 -0
- package/dist/chunk-AS64GWBX.js.map +1 -0
- package/dist/chunk-AULFBXM5.mjs +331 -0
- package/dist/chunk-AULFBXM5.mjs.map +1 -0
- package/dist/chunk-AW3WR2D3.mjs +238 -0
- package/dist/chunk-AW3WR2D3.mjs.map +1 -0
- package/dist/chunk-BIQQ53O2.js +45 -0
- package/dist/chunk-BIQQ53O2.js.map +1 -0
- package/dist/chunk-C6MPV3CY.js +260 -0
- package/dist/chunk-C6MPV3CY.js.map +1 -0
- package/dist/{chunk-AYPP5JEQ.mjs → chunk-CLEQO6GU.mjs} +5 -5
- package/dist/chunk-CLEQO6GU.mjs.map +1 -0
- package/dist/chunk-CVHPLURA.js +147 -0
- package/dist/chunk-CVHPLURA.js.map +1 -0
- package/dist/chunk-D2RBCFNW.mjs +130 -0
- package/dist/chunk-D2RBCFNW.mjs.map +1 -0
- package/dist/chunk-ECD4FV3A.mjs +11 -0
- package/dist/chunk-ECD4FV3A.mjs.map +1 -0
- package/dist/chunk-EDJBZPMW.mjs +255 -0
- package/dist/chunk-EDJBZPMW.mjs.map +1 -0
- package/dist/chunk-FPAI4QYW.mjs +145 -0
- package/dist/chunk-FPAI4QYW.mjs.map +1 -0
- package/dist/chunk-HM25ZMO3.js +18 -0
- package/dist/chunk-HM25ZMO3.js.map +1 -0
- package/dist/chunk-IHC6UYKK.js +4 -0
- package/dist/{chunk-DRBRT57F.js.map → chunk-IHC6UYKK.js.map} +1 -1
- package/dist/{chunk-DMAHXBA5.mjs → chunk-J5BFFL3X.mjs} +87 -47
- package/dist/chunk-J5BFFL3X.mjs.map +1 -0
- package/dist/chunk-JIKAD4YL.js +4 -0
- package/dist/{chunk-KEXKKQVW.js.map → chunk-JIKAD4YL.js.map} +1 -1
- package/dist/{chunk-EFAPDN4J.js → chunk-JWEXGALU.js} +730 -33
- package/dist/chunk-JWEXGALU.js.map +1 -0
- package/dist/{chunk-4K5GBNQV.mjs → chunk-KDT76YQE.mjs} +52 -13
- package/dist/chunk-KDT76YQE.mjs.map +1 -0
- package/dist/chunk-LMQLMMEX.js +317 -0
- package/dist/chunk-LMQLMMEX.js.map +1 -0
- package/dist/{chunk-TOMVBPNZ.js → chunk-LS4TK6SX.js} +9 -4
- package/dist/chunk-LS4TK6SX.js.map +1 -0
- package/dist/chunk-M4WMHD3X.mjs +40 -0
- package/dist/chunk-M4WMHD3X.mjs.map +1 -0
- package/dist/chunk-MCOK3UFR.mjs +280 -0
- package/dist/chunk-MCOK3UFR.mjs.map +1 -0
- package/dist/chunk-MGQSQCFG.js +176 -0
- package/dist/chunk-MGQSQCFG.js.map +1 -0
- package/dist/chunk-MKE3BUL3.mjs +3 -0
- package/dist/{chunk-CYDWEPFL.mjs.map → chunk-MKE3BUL3.mjs.map} +1 -1
- package/dist/chunk-MNJ5OYPE.mjs +17 -0
- package/dist/chunk-MNJ5OYPE.mjs.map +1 -0
- package/dist/chunk-MNXD45J7.mjs +164 -0
- package/dist/chunk-MNXD45J7.mjs.map +1 -0
- package/dist/chunk-NGDPQC5E.js +333 -0
- package/dist/chunk-NGDPQC5E.js.map +1 -0
- package/dist/chunk-NNNCVFOH.mjs +16 -0
- package/dist/chunk-NNNCVFOH.mjs.map +1 -0
- package/dist/chunk-NZ4BJ2IC.mjs +315 -0
- package/dist/chunk-NZ4BJ2IC.mjs.map +1 -0
- package/dist/chunk-OKNM7ODQ.js +29 -0
- package/dist/chunk-OKNM7ODQ.js.map +1 -0
- package/dist/{chunk-DCFHANLR.mjs → chunk-OTG75GVH.mjs} +725 -34
- package/dist/chunk-OTG75GVH.mjs.map +1 -0
- package/dist/chunk-OZ6DGBRL.mjs +25 -0
- package/dist/chunk-OZ6DGBRL.mjs.map +1 -0
- package/dist/chunk-P25HBGP5.mjs +3 -0
- package/dist/chunk-P25HBGP5.mjs.map +1 -0
- package/dist/{chunk-XG7K4R56.js → chunk-P7KLEPVI.js} +52 -12
- package/dist/chunk-P7KLEPVI.js.map +1 -0
- package/dist/{chunk-OPKQMN46.mjs → chunk-PAPXGPJB.mjs} +9 -4
- package/dist/chunk-PAPXGPJB.mjs.map +1 -0
- package/dist/chunk-PCNXJAU5.js +19 -0
- package/dist/chunk-PCNXJAU5.js.map +1 -0
- package/dist/{chunk-5IT5OXQ5.js → chunk-PD6HWEMG.js} +40 -30
- package/dist/chunk-PD6HWEMG.js.map +1 -0
- package/dist/{chunk-ER42VG7H.js → chunk-PH2KXREH.js} +20 -3
- package/dist/chunk-PH2KXREH.js.map +1 -0
- package/dist/chunk-Q5ERW5ZW.mjs +107 -0
- package/dist/chunk-Q5ERW5ZW.mjs.map +1 -0
- package/dist/chunk-Q7YNBSVH.js +28 -0
- package/dist/chunk-Q7YNBSVH.js.map +1 -0
- package/dist/{chunk-T644D54P.mjs → chunk-QKO2FZGN.mjs} +16 -4
- package/dist/chunk-QKO2FZGN.mjs.map +1 -0
- package/dist/{chunk-CIRZKWLL.js → chunk-RVFSRYI5.js} +5 -3
- package/dist/chunk-RVFSRYI5.js.map +1 -0
- package/dist/{chunk-KPBCG4X2.js → chunk-RW37KJ77.js} +11 -11
- package/dist/chunk-RW37KJ77.js.map +1 -0
- package/dist/chunk-SD7BHT2F.mjs +3 -0
- package/dist/chunk-SD7BHT2F.mjs.map +1 -0
- package/dist/chunk-SP5M57BG.mjs +258 -0
- package/dist/chunk-SP5M57BG.mjs.map +1 -0
- package/dist/chunk-TKSHYEYA.mjs +1706 -0
- package/dist/chunk-TKSHYEYA.mjs.map +1 -0
- package/dist/chunk-WTS75RUC.js +4 -0
- package/dist/chunk-WTS75RUC.js.map +1 -0
- package/dist/{chunk-ZRDU6CIB.js → chunk-XRPIGMA2.js} +108 -68
- package/dist/chunk-XRPIGMA2.js.map +1 -0
- package/dist/chunk-XTKSM4QE.js +132 -0
- package/dist/chunk-XTKSM4QE.js.map +1 -0
- package/dist/chunk-XUE3CIJ5.mjs +174 -0
- package/dist/chunk-XUE3CIJ5.mjs.map +1 -0
- package/dist/chunk-YYUOLM6U.js +244 -0
- package/dist/chunk-YYUOLM6U.js.map +1 -0
- package/dist/chunk-ZH44DHVR.mjs +26 -0
- package/dist/chunk-ZH44DHVR.mjs.map +1 -0
- package/dist/chunk-ZPHOOG72.js +112 -0
- package/dist/chunk-ZPHOOG72.js.map +1 -0
- package/dist/constants.d.mts +7 -2
- package/dist/constants.d.ts +7 -2
- package/dist/constants.js +57 -38
- package/dist/constants.mjs +1 -2
- package/dist/deployments.generated.d.mts +2 -0
- package/dist/deployments.generated.d.ts +2 -0
- package/dist/deployments.generated.js +12 -0
- package/dist/deployments.generated.js.map +1 -0
- package/dist/deployments.generated.mjs +3 -0
- package/dist/deployments.generated.mjs.map +1 -0
- package/dist/entities/DopplerFactory.d.mts +139 -11
- package/dist/entities/DopplerFactory.d.ts +139 -11
- package/dist/entities/DopplerFactory.js +17 -7
- package/dist/entities/DopplerFactory.mjs +16 -6
- package/dist/entities/auction/DynamicAuction.d.mts +19 -4
- package/dist/entities/auction/DynamicAuction.d.ts +19 -4
- package/dist/entities/auction/DynamicAuction.js +6 -6
- package/dist/entities/auction/DynamicAuction.mjs +5 -5
- package/dist/entities/auction/MulticurvePool.d.mts +55 -0
- package/dist/entities/auction/MulticurvePool.d.ts +55 -0
- package/dist/entities/auction/MulticurvePool.js +18 -0
- package/dist/entities/auction/MulticurvePool.js.map +1 -0
- package/dist/entities/auction/MulticurvePool.mjs +9 -0
- package/dist/entities/auction/MulticurvePool.mjs.map +1 -0
- package/dist/entities/auction/StaticAuction.d.mts +6 -3
- package/dist/entities/auction/StaticAuction.d.ts +6 -3
- package/dist/entities/auction/StaticAuction.js +6 -6
- package/dist/entities/auction/StaticAuction.mjs +5 -5
- package/dist/entities/auction/index.d.mts +3 -0
- package/dist/entities/auction/index.d.ts +3 -0
- package/dist/entities/auction/index.js +16 -9
- package/dist/entities/auction/index.mjs +10 -7
- package/dist/entities/quoter/Quoter.d.mts +44 -2
- package/dist/entities/quoter/Quoter.d.ts +44 -2
- package/dist/entities/quoter/Quoter.js +6 -6
- package/dist/entities/quoter/Quoter.mjs +5 -5
- package/dist/entities/quoter/index.d.mts +3 -0
- package/dist/entities/quoter/index.d.ts +3 -0
- package/dist/entities/quoter/index.js +6 -6
- package/dist/entities/quoter/index.mjs +5 -5
- package/dist/entities/token/derc20/Derc20.d.mts +33 -7
- package/dist/entities/token/derc20/Derc20.d.ts +33 -7
- package/dist/entities/token/derc20/Derc20.js +4 -5
- package/dist/entities/token/derc20/Derc20.mjs +3 -4
- package/dist/entities/token/derc20/index.d.mts +3 -0
- package/dist/entities/token/derc20/index.d.ts +3 -0
- package/dist/entities/token/derc20/index.js +4 -5
- package/dist/entities/token/derc20/index.mjs +3 -4
- package/dist/entities/token/eth/Eth.d.mts +7 -3
- package/dist/entities/token/eth/Eth.d.ts +7 -3
- package/dist/entities/token/eth/Eth.js +2 -3
- package/dist/entities/token/eth/Eth.mjs +1 -2
- package/dist/entities/token/eth/index.d.mts +3 -0
- package/dist/entities/token/eth/index.d.ts +3 -0
- package/dist/entities/token/eth/index.js +2 -3
- package/dist/entities/token/eth/index.mjs +1 -2
- package/dist/entities/token/index.d.mts +3 -0
- package/dist/entities/token/index.d.ts +3 -0
- package/dist/entities/token/index.js +6 -7
- package/dist/entities/token/index.mjs +4 -5
- package/dist/index.d.mts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +305 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -19
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +260 -22
- package/dist/types.d.ts +260 -22
- package/dist/types.js +12 -3
- package/dist/types.mjs +3 -2
- package/dist/utils/airlock.d.mts +11 -0
- package/dist/utils/airlock.d.ts +11 -0
- package/dist/utils/airlock.js +26 -0
- package/dist/utils/airlock.js.map +1 -0
- package/dist/utils/airlock.mjs +5 -0
- package/dist/utils/airlock.mjs.map +1 -0
- package/dist/utils/balanceDelta.d.mts +10 -0
- package/dist/utils/balanceDelta.d.ts +10 -0
- package/dist/utils/balanceDelta.js +12 -0
- package/dist/utils/balanceDelta.js.map +1 -0
- package/dist/utils/balanceDelta.mjs +3 -0
- package/dist/utils/balanceDelta.mjs.map +1 -0
- package/dist/utils/computeOptimalGamma.d.mts +7 -0
- package/dist/utils/computeOptimalGamma.d.ts +7 -0
- package/dist/utils/computeOptimalGamma.js +12 -0
- package/dist/utils/computeOptimalGamma.js.map +1 -0
- package/dist/utils/computeOptimalGamma.mjs +3 -0
- package/dist/utils/computeOptimalGamma.mjs.map +1 -0
- package/dist/utils/index.d.mts +11 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.js +114 -24
- package/dist/utils/index.mjs +14 -4
- package/dist/utils/isToken0Expected.d.mts +13 -0
- package/dist/utils/isToken0Expected.d.ts +13 -0
- package/dist/utils/isToken0Expected.js +12 -0
- package/dist/utils/isToken0Expected.js.map +1 -0
- package/dist/utils/isToken0Expected.mjs +3 -0
- package/dist/utils/isToken0Expected.mjs.map +1 -0
- package/dist/utils/marketCapHelpers.d.mts +309 -0
- package/dist/utils/marketCapHelpers.d.ts +309 -0
- package/dist/utils/marketCapHelpers.js +54 -0
- package/dist/utils/marketCapHelpers.js.map +1 -0
- package/dist/utils/marketCapHelpers.mjs +5 -0
- package/dist/utils/marketCapHelpers.mjs.map +1 -0
- package/dist/utils/poolKey.d.mts +17 -0
- package/dist/utils/poolKey.d.ts +17 -0
- package/dist/utils/poolKey.js +12 -0
- package/dist/utils/poolKey.js.map +1 -0
- package/dist/utils/poolKey.mjs +3 -0
- package/dist/utils/poolKey.mjs.map +1 -0
- package/dist/utils/priceHelpers.d.mts +3 -3
- package/dist/utils/priceHelpers.d.ts +3 -3
- package/dist/utils/priceHelpers.js +10 -11
- package/dist/utils/priceHelpers.mjs +2 -3
- package/dist/utils/tickMath.d.mts +8 -1
- package/dist/utils/tickMath.d.ts +8 -1
- package/dist/utils/tickMath.js +17 -14
- package/dist/utils/tickMath.mjs +1 -2
- package/dist/utils/tokenAddressMiner.d.mts +30 -0
- package/dist/utils/tokenAddressMiner.d.ts +30 -0
- package/dist/utils/tokenAddressMiner.js +14 -0
- package/dist/utils/tokenAddressMiner.js.map +1 -0
- package/dist/utils/tokenAddressMiner.mjs +5 -0
- package/dist/utils/tokenAddressMiner.mjs.map +1 -0
- package/package.json +14 -11
- package/dist/__tests__/mocks/addresses.d.mts +0 -46
- package/dist/__tests__/mocks/addresses.d.ts +0 -46
- package/dist/__tests__/mocks/addresses.js +0 -53
- package/dist/__tests__/mocks/addresses.js.map +0 -1
- package/dist/__tests__/mocks/addresses.mjs +0 -44
- package/dist/__tests__/mocks/addresses.mjs.map +0 -1
- package/dist/__tests__/mocks/clients.d.mts +0 -22
- package/dist/__tests__/mocks/clients.d.ts +0 -22
- package/dist/__tests__/mocks/clients.js +0 -17036
- package/dist/__tests__/mocks/clients.js.map +0 -1
- package/dist/__tests__/mocks/clients.mjs +0 -17032
- package/dist/__tests__/mocks/clients.mjs.map +0 -1
- package/dist/chunk-2N5JZSZ4.js +0 -14
- package/dist/chunk-2N5JZSZ4.js.map +0 -1
- package/dist/chunk-3OZRDL3O.js +0 -162
- package/dist/chunk-3OZRDL3O.js.map +0 -1
- package/dist/chunk-4K5GBNQV.mjs.map +0 -1
- package/dist/chunk-5IT5OXQ5.js.map +0 -1
- package/dist/chunk-7F5IXZLH.js +0 -308
- package/dist/chunk-7F5IXZLH.js.map +0 -1
- package/dist/chunk-7VP5VR7J.js +0 -82
- package/dist/chunk-7VP5VR7J.js.map +0 -1
- package/dist/chunk-7W72MFJO.mjs.map +0 -1
- package/dist/chunk-AYPP5JEQ.mjs.map +0 -1
- package/dist/chunk-AZLFJNTG.mjs +0 -3
- package/dist/chunk-CIRZKWLL.js.map +0 -1
- package/dist/chunk-CYDWEPFL.mjs +0 -3
- package/dist/chunk-DCFHANLR.mjs.map +0 -1
- package/dist/chunk-DMAHXBA5.mjs.map +0 -1
- package/dist/chunk-DRBRT57F.js +0 -4
- package/dist/chunk-EFAPDN4J.js.map +0 -1
- package/dist/chunk-ER42VG7H.js.map +0 -1
- package/dist/chunk-FVTIDXYK.mjs.map +0 -1
- package/dist/chunk-IHBIBFZK.mjs +0 -12
- package/dist/chunk-IHBIBFZK.mjs.map +0 -1
- package/dist/chunk-IXSKPEHB.mjs +0 -160
- package/dist/chunk-IXSKPEHB.mjs.map +0 -1
- package/dist/chunk-KEXKKQVW.js +0 -42
- package/dist/chunk-KFD6U3LQ.mjs +0 -305
- package/dist/chunk-KFD6U3LQ.mjs.map +0 -1
- package/dist/chunk-KPBCG4X2.js.map +0 -1
- package/dist/chunk-KRN3ROUE.js +0 -4
- package/dist/chunk-KT7U37XS.mjs +0 -207
- package/dist/chunk-KT7U37XS.mjs.map +0 -1
- package/dist/chunk-LOROXNH3.mjs +0 -37
- package/dist/chunk-LOROXNH3.mjs.map +0 -1
- package/dist/chunk-O6GYIJ6X.mjs +0 -80
- package/dist/chunk-O6GYIJ6X.mjs.map +0 -1
- package/dist/chunk-OPKQMN46.mjs.map +0 -1
- package/dist/chunk-RIMM47JL.mjs +0 -176
- package/dist/chunk-RIMM47JL.mjs.map +0 -1
- package/dist/chunk-SUOMK3CU.js +0 -872
- package/dist/chunk-SUOMK3CU.js.map +0 -1
- package/dist/chunk-T644D54P.mjs.map +0 -1
- package/dist/chunk-TOMVBPNZ.js.map +0 -1
- package/dist/chunk-XEMZQHTX.mjs +0 -870
- package/dist/chunk-XEMZQHTX.mjs.map +0 -1
- package/dist/chunk-XG7K4R56.js.map +0 -1
- package/dist/chunk-XQ2VMR26.js +0 -180
- package/dist/chunk-XQ2VMR26.js.map +0 -1
- package/dist/chunk-ZAIP54LX.js +0 -209
- package/dist/chunk-ZAIP54LX.js.map +0 -1
- package/dist/chunk-ZRDU6CIB.js.map +0 -1
- package/dist/magic-string.es-CBLXTCZP.js +0 -1304
- package/dist/magic-string.es-CBLXTCZP.js.map +0 -1
- package/dist/magic-string.es-QHA47FSB.mjs +0 -1298
- package/dist/magic-string.es-QHA47FSB.mjs.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../chunk-JIKAD4YL.js');
|
|
4
|
+
var chunk3RK7LRAA_js = require('../chunk-3RK7LRAA.js');
|
|
5
|
+
var chunkNGDPQC5E_js = require('../chunk-NGDPQC5E.js');
|
|
6
|
+
var chunkC6MPV3CY_js = require('../chunk-C6MPV3CY.js');
|
|
7
|
+
var chunkZPHOOG72_js = require('../chunk-ZPHOOG72.js');
|
|
8
|
+
require('../chunk-WTS75RUC.js');
|
|
9
|
+
require('../chunk-MGQSQCFG.js');
|
|
10
|
+
require('../chunk-4HM3ERBU.js');
|
|
11
|
+
require('../chunk-PCNXJAU5.js');
|
|
12
|
+
require('../chunk-AS64GWBX.js');
|
|
13
|
+
require('../chunk-HM25ZMO3.js');
|
|
14
|
+
require('../chunk-Q7YNBSVH.js');
|
|
15
|
+
require('../chunk-RW37KJ77.js');
|
|
16
|
+
require('../chunk-P7KLEPVI.js');
|
|
17
|
+
require('../chunk-JWEXGALU.js');
|
|
18
|
+
require('../chunk-BIQQ53O2.js');
|
|
19
|
+
require('../chunk-PH2KXREH.js');
|
|
20
|
+
require('../chunk-OKNM7ODQ.js');
|
|
21
|
+
require('../chunk-YYUOLM6U.js');
|
|
22
|
+
require('../chunk-CVHPLURA.js');
|
|
23
|
+
require('../chunk-RVFSRYI5.js');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Object.defineProperty(exports, "DynamicAuctionBuilder", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk3RK7LRAA_js.DynamicAuctionBuilder; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "MulticurveBuilder", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkNGDPQC5E_js.MulticurveBuilder; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "StaticAuctionBuilder", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkC6MPV3CY_js.StaticAuctionBuilder; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "MARKET_CAP_PRESETS", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkZPHOOG72_js.MARKET_CAP_PRESETS; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "MARKET_CAP_PRESET_ORDER", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkZPHOOG72_js.MARKET_CAP_PRESET_ORDER; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "buildCurvesFromPresets", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkZPHOOG72_js.buildCurvesFromPresets; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "computeTicks", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkZPHOOG72_js.computeTicks; }
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '../chunk-P25HBGP5.mjs';
|
|
2
|
+
export { DynamicAuctionBuilder } from '../chunk-MCOK3UFR.mjs';
|
|
3
|
+
export { MulticurveBuilder } from '../chunk-AULFBXM5.mjs';
|
|
4
|
+
export { StaticAuctionBuilder } from '../chunk-SP5M57BG.mjs';
|
|
5
|
+
export { MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, buildCurvesFromPresets, computeTicks } from '../chunk-Q5ERW5ZW.mjs';
|
|
6
|
+
import '../chunk-5TL5V6UX.mjs';
|
|
7
|
+
import '../chunk-XUE3CIJ5.mjs';
|
|
8
|
+
import '../chunk-ECD4FV3A.mjs';
|
|
9
|
+
import '../chunk-MNJ5OYPE.mjs';
|
|
10
|
+
import '../chunk-64AWG57M.mjs';
|
|
11
|
+
import '../chunk-NNNCVFOH.mjs';
|
|
12
|
+
import '../chunk-ZH44DHVR.mjs';
|
|
13
|
+
import '../chunk-CLEQO6GU.mjs';
|
|
14
|
+
import '../chunk-KDT76YQE.mjs';
|
|
15
|
+
import '../chunk-OTG75GVH.mjs';
|
|
16
|
+
import '../chunk-M4WMHD3X.mjs';
|
|
17
|
+
import '../chunk-QKO2FZGN.mjs';
|
|
18
|
+
import '../chunk-OZ6DGBRL.mjs';
|
|
19
|
+
import '../chunk-AW3WR2D3.mjs';
|
|
20
|
+
import '../chunk-FPAI4QYW.mjs';
|
|
21
|
+
import '../chunk-4TROGENW.mjs';
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
23
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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' }, or { type: 'custom', ... }
|
|
58
|
+
*/
|
|
59
|
+
withGovernance(params: GovernanceOption<C>): this;
|
|
60
|
+
/**
|
|
61
|
+
* Configure post-auction liquidity migration.
|
|
62
|
+
* @param migration - Migration target (uniswapV2, uniswapV3, uniswapV4, 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
|
+
withV3Migrator(address: Address): this;
|
|
84
|
+
withV4Migrator(address: Address): this;
|
|
85
|
+
withNoOpMigrator(address: Address): this;
|
|
86
|
+
}
|
|
87
|
+
declare function computeTicks(priceRange: PriceRange, tickSpacing: number): TickRange;
|
|
88
|
+
declare const MARKET_CAP_PRESET_ORDER: readonly ["low", "medium", "high"];
|
|
89
|
+
type MarketCapPresetConfig = {
|
|
90
|
+
tickLower: number;
|
|
91
|
+
tickUpper: number;
|
|
92
|
+
numPositions: number;
|
|
93
|
+
shares: bigint;
|
|
94
|
+
};
|
|
95
|
+
declare const MARKET_CAP_PRESETS: Record<MulticurveMarketCapPreset, MarketCapPresetConfig>;
|
|
96
|
+
type MarketCapPresetOverrides = Partial<Record<MulticurveMarketCapPreset, {
|
|
97
|
+
tickLower?: number;
|
|
98
|
+
tickUpper?: number;
|
|
99
|
+
numPositions?: number;
|
|
100
|
+
shares?: bigint;
|
|
101
|
+
}>>;
|
|
102
|
+
/**
|
|
103
|
+
* Helper to build curves from market cap presets with optional filler curve
|
|
104
|
+
*/
|
|
105
|
+
declare function buildCurvesFromPresets(params: {
|
|
106
|
+
fee?: number;
|
|
107
|
+
tickSpacing?: number;
|
|
108
|
+
presets?: MulticurveMarketCapPreset[];
|
|
109
|
+
overrides?: MarketCapPresetOverrides;
|
|
110
|
+
}): {
|
|
111
|
+
fee: number;
|
|
112
|
+
tickSpacing: number;
|
|
113
|
+
curves: MarketCapPresetConfig[];
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export { type BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, type MarketCapPresetConfig, type MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks };
|
|
@@ -0,0 +1,116 @@
|
|
|
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' }, or { type: 'custom', ... }
|
|
58
|
+
*/
|
|
59
|
+
withGovernance(params: GovernanceOption<C>): this;
|
|
60
|
+
/**
|
|
61
|
+
* Configure post-auction liquidity migration.
|
|
62
|
+
* @param migration - Migration target (uniswapV2, uniswapV3, uniswapV4, 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
|
+
withV3Migrator(address: Address): this;
|
|
84
|
+
withV4Migrator(address: Address): this;
|
|
85
|
+
withNoOpMigrator(address: Address): this;
|
|
86
|
+
}
|
|
87
|
+
declare function computeTicks(priceRange: PriceRange, tickSpacing: number): TickRange;
|
|
88
|
+
declare const MARKET_CAP_PRESET_ORDER: readonly ["low", "medium", "high"];
|
|
89
|
+
type MarketCapPresetConfig = {
|
|
90
|
+
tickLower: number;
|
|
91
|
+
tickUpper: number;
|
|
92
|
+
numPositions: number;
|
|
93
|
+
shares: bigint;
|
|
94
|
+
};
|
|
95
|
+
declare const MARKET_CAP_PRESETS: Record<MulticurveMarketCapPreset, MarketCapPresetConfig>;
|
|
96
|
+
type MarketCapPresetOverrides = Partial<Record<MulticurveMarketCapPreset, {
|
|
97
|
+
tickLower?: number;
|
|
98
|
+
tickUpper?: number;
|
|
99
|
+
numPositions?: number;
|
|
100
|
+
shares?: bigint;
|
|
101
|
+
}>>;
|
|
102
|
+
/**
|
|
103
|
+
* Helper to build curves from market cap presets with optional filler curve
|
|
104
|
+
*/
|
|
105
|
+
declare function buildCurvesFromPresets(params: {
|
|
106
|
+
fee?: number;
|
|
107
|
+
tickSpacing?: number;
|
|
108
|
+
presets?: MulticurveMarketCapPreset[];
|
|
109
|
+
overrides?: MarketCapPresetOverrides;
|
|
110
|
+
}): {
|
|
111
|
+
fee: number;
|
|
112
|
+
tickSpacing: number;
|
|
113
|
+
curves: MarketCapPresetConfig[];
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export { type BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, type MarketCapPresetConfig, type MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZPHOOG72_js = require('../chunk-ZPHOOG72.js');
|
|
4
|
+
require('../chunk-WTS75RUC.js');
|
|
5
|
+
require('../chunk-MGQSQCFG.js');
|
|
6
|
+
require('../chunk-4HM3ERBU.js');
|
|
7
|
+
require('../chunk-PCNXJAU5.js');
|
|
8
|
+
require('../chunk-AS64GWBX.js');
|
|
9
|
+
require('../chunk-HM25ZMO3.js');
|
|
10
|
+
require('../chunk-Q7YNBSVH.js');
|
|
11
|
+
require('../chunk-RW37KJ77.js');
|
|
12
|
+
require('../chunk-P7KLEPVI.js');
|
|
13
|
+
require('../chunk-JWEXGALU.js');
|
|
14
|
+
require('../chunk-BIQQ53O2.js');
|
|
15
|
+
require('../chunk-PH2KXREH.js');
|
|
16
|
+
require('../chunk-YYUOLM6U.js');
|
|
17
|
+
require('../chunk-CVHPLURA.js');
|
|
18
|
+
require('../chunk-RVFSRYI5.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Object.defineProperty(exports, "MARKET_CAP_PRESETS", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkZPHOOG72_js.MARKET_CAP_PRESETS; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "MARKET_CAP_PRESET_ORDER", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkZPHOOG72_js.MARKET_CAP_PRESET_ORDER; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "buildCurvesFromPresets", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkZPHOOG72_js.buildCurvesFromPresets; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "computeTicks", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkZPHOOG72_js.computeTicks; }
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=shared.js.map
|
|
39
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"shared.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, buildCurvesFromPresets, computeTicks } from '../chunk-Q5ERW5ZW.mjs';
|
|
2
|
+
import '../chunk-5TL5V6UX.mjs';
|
|
3
|
+
import '../chunk-XUE3CIJ5.mjs';
|
|
4
|
+
import '../chunk-ECD4FV3A.mjs';
|
|
5
|
+
import '../chunk-MNJ5OYPE.mjs';
|
|
6
|
+
import '../chunk-64AWG57M.mjs';
|
|
7
|
+
import '../chunk-NNNCVFOH.mjs';
|
|
8
|
+
import '../chunk-ZH44DHVR.mjs';
|
|
9
|
+
import '../chunk-CLEQO6GU.mjs';
|
|
10
|
+
import '../chunk-KDT76YQE.mjs';
|
|
11
|
+
import '../chunk-OTG75GVH.mjs';
|
|
12
|
+
import '../chunk-M4WMHD3X.mjs';
|
|
13
|
+
import '../chunk-QKO2FZGN.mjs';
|
|
14
|
+
import '../chunk-AW3WR2D3.mjs';
|
|
15
|
+
import '../chunk-FPAI4QYW.mjs';
|
|
16
|
+
import '../chunk-4TROGENW.mjs';
|
|
17
|
+
//# sourceMappingURL=shared.mjs.map
|
|
18
|
+
//# sourceMappingURL=shared.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"shared.mjs"}
|
package/dist/builders.d.mts
CHANGED
|
@@ -1,131 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private governance?;
|
|
10
|
-
private migration?;
|
|
11
|
-
private integrator?;
|
|
12
|
-
private userAddress?;
|
|
13
|
-
tokenConfig(params: {
|
|
14
|
-
type?: 'standard';
|
|
15
|
-
name: string;
|
|
16
|
-
symbol: string;
|
|
17
|
-
tokenURI: string;
|
|
18
|
-
yearlyMintRate?: bigint;
|
|
19
|
-
} | {
|
|
20
|
-
type: 'doppler404';
|
|
21
|
-
name: string;
|
|
22
|
-
symbol: string;
|
|
23
|
-
baseURI: string;
|
|
24
|
-
unit?: bigint;
|
|
25
|
-
}): this;
|
|
26
|
-
saleConfig(params: {
|
|
27
|
-
initialSupply: bigint;
|
|
28
|
-
numTokensToSell: bigint;
|
|
29
|
-
numeraire: Address;
|
|
30
|
-
}): this;
|
|
31
|
-
poolByTicks(params: {
|
|
32
|
-
startTick?: number;
|
|
33
|
-
endTick?: number;
|
|
34
|
-
fee?: number;
|
|
35
|
-
numPositions?: number;
|
|
36
|
-
maxShareToBeSold?: bigint;
|
|
37
|
-
}): this;
|
|
38
|
-
poolByPriceRange(params: {
|
|
39
|
-
priceRange: PriceRange;
|
|
40
|
-
fee?: number;
|
|
41
|
-
numPositions?: number;
|
|
42
|
-
maxShareToBeSold?: bigint;
|
|
43
|
-
}): this;
|
|
44
|
-
withVesting(params?: {
|
|
45
|
-
duration?: bigint;
|
|
46
|
-
cliffDuration?: number;
|
|
47
|
-
}): this;
|
|
48
|
-
withGovernance(params?: GovernanceConfig | {
|
|
49
|
-
useDefaults?: boolean;
|
|
50
|
-
} | {
|
|
51
|
-
noOp: true;
|
|
52
|
-
}): this;
|
|
53
|
-
withMigration(migration: MigrationConfig): this;
|
|
54
|
-
withUserAddress(address: Address): this;
|
|
55
|
-
withIntegrator(address?: Address): this;
|
|
56
|
-
build(): CreateStaticAuctionParams;
|
|
57
|
-
}
|
|
58
|
-
declare class DynamicAuctionBuilder {
|
|
59
|
-
private token?;
|
|
60
|
-
private sale?;
|
|
61
|
-
private auction?;
|
|
62
|
-
private pool?;
|
|
63
|
-
private vesting?;
|
|
64
|
-
private governance?;
|
|
65
|
-
private migration?;
|
|
66
|
-
private integrator?;
|
|
67
|
-
private userAddress?;
|
|
68
|
-
private startTimeOffset?;
|
|
69
|
-
private blockTimestamp?;
|
|
70
|
-
tokenConfig(params: {
|
|
71
|
-
type?: 'standard';
|
|
72
|
-
name: string;
|
|
73
|
-
symbol: string;
|
|
74
|
-
tokenURI: string;
|
|
75
|
-
yearlyMintRate?: bigint;
|
|
76
|
-
} | {
|
|
77
|
-
type: 'doppler404';
|
|
78
|
-
name: string;
|
|
79
|
-
symbol: string;
|
|
80
|
-
baseURI: string;
|
|
81
|
-
unit?: bigint;
|
|
82
|
-
}): this;
|
|
83
|
-
saleConfig(params: {
|
|
84
|
-
initialSupply: bigint;
|
|
85
|
-
numTokensToSell: bigint;
|
|
86
|
-
numeraire?: Address;
|
|
87
|
-
}): this;
|
|
88
|
-
poolConfig(params: {
|
|
89
|
-
fee: number;
|
|
90
|
-
tickSpacing: number;
|
|
91
|
-
}): this;
|
|
92
|
-
auctionByTicks(params: {
|
|
93
|
-
startTick: number;
|
|
94
|
-
endTick: number;
|
|
95
|
-
minProceeds: bigint;
|
|
96
|
-
maxProceeds: bigint;
|
|
97
|
-
durationDays?: number;
|
|
98
|
-
epochLength?: number;
|
|
99
|
-
gamma?: number;
|
|
100
|
-
numPdSlugs?: number;
|
|
101
|
-
}): this;
|
|
102
|
-
auctionByPriceRange(params: {
|
|
103
|
-
priceRange: PriceRange;
|
|
104
|
-
minProceeds: bigint;
|
|
105
|
-
maxProceeds: bigint;
|
|
106
|
-
durationDays?: number;
|
|
107
|
-
epochLength?: number;
|
|
108
|
-
gamma?: number;
|
|
109
|
-
tickSpacing?: number;
|
|
110
|
-
numPdSlugs?: number;
|
|
111
|
-
}): this;
|
|
112
|
-
withVesting(params?: {
|
|
113
|
-
duration?: bigint;
|
|
114
|
-
cliffDuration?: number;
|
|
115
|
-
}): this;
|
|
116
|
-
withGovernance(params?: GovernanceConfig | {
|
|
117
|
-
useDefaults?: boolean;
|
|
118
|
-
} | {
|
|
119
|
-
noOp: true;
|
|
120
|
-
}): this;
|
|
121
|
-
withMigration(migration: MigrationConfig): this;
|
|
122
|
-
withUserAddress(address: Address): this;
|
|
123
|
-
withIntegrator(address?: Address): this;
|
|
124
|
-
withTime(params?: {
|
|
125
|
-
startTimeOffset?: number;
|
|
126
|
-
blockTimestamp?: number;
|
|
127
|
-
}): this;
|
|
128
|
-
build(): CreateDynamicAuctionParams;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export { DynamicAuctionBuilder, StaticAuctionBuilder };
|
|
1
|
+
export { StaticAuctionBuilder } from './builders/StaticAuctionBuilder.mjs';
|
|
2
|
+
export { DynamicAuctionBuilder } from './builders/DynamicAuctionBuilder.mjs';
|
|
3
|
+
export { MulticurveBuilder } from './builders/MulticurveBuilder.mjs';
|
|
4
|
+
export { BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, MarketCapPresetConfig, MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks } from './builders/shared.mjs';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import './types.mjs';
|
|
7
|
+
import 'viem/chains';
|
|
8
|
+
import './addresses.mjs';
|
package/dist/builders.d.ts
CHANGED
|
@@ -1,131 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private governance?;
|
|
10
|
-
private migration?;
|
|
11
|
-
private integrator?;
|
|
12
|
-
private userAddress?;
|
|
13
|
-
tokenConfig(params: {
|
|
14
|
-
type?: 'standard';
|
|
15
|
-
name: string;
|
|
16
|
-
symbol: string;
|
|
17
|
-
tokenURI: string;
|
|
18
|
-
yearlyMintRate?: bigint;
|
|
19
|
-
} | {
|
|
20
|
-
type: 'doppler404';
|
|
21
|
-
name: string;
|
|
22
|
-
symbol: string;
|
|
23
|
-
baseURI: string;
|
|
24
|
-
unit?: bigint;
|
|
25
|
-
}): this;
|
|
26
|
-
saleConfig(params: {
|
|
27
|
-
initialSupply: bigint;
|
|
28
|
-
numTokensToSell: bigint;
|
|
29
|
-
numeraire: Address;
|
|
30
|
-
}): this;
|
|
31
|
-
poolByTicks(params: {
|
|
32
|
-
startTick?: number;
|
|
33
|
-
endTick?: number;
|
|
34
|
-
fee?: number;
|
|
35
|
-
numPositions?: number;
|
|
36
|
-
maxShareToBeSold?: bigint;
|
|
37
|
-
}): this;
|
|
38
|
-
poolByPriceRange(params: {
|
|
39
|
-
priceRange: PriceRange;
|
|
40
|
-
fee?: number;
|
|
41
|
-
numPositions?: number;
|
|
42
|
-
maxShareToBeSold?: bigint;
|
|
43
|
-
}): this;
|
|
44
|
-
withVesting(params?: {
|
|
45
|
-
duration?: bigint;
|
|
46
|
-
cliffDuration?: number;
|
|
47
|
-
}): this;
|
|
48
|
-
withGovernance(params?: GovernanceConfig | {
|
|
49
|
-
useDefaults?: boolean;
|
|
50
|
-
} | {
|
|
51
|
-
noOp: true;
|
|
52
|
-
}): this;
|
|
53
|
-
withMigration(migration: MigrationConfig): this;
|
|
54
|
-
withUserAddress(address: Address): this;
|
|
55
|
-
withIntegrator(address?: Address): this;
|
|
56
|
-
build(): CreateStaticAuctionParams;
|
|
57
|
-
}
|
|
58
|
-
declare class DynamicAuctionBuilder {
|
|
59
|
-
private token?;
|
|
60
|
-
private sale?;
|
|
61
|
-
private auction?;
|
|
62
|
-
private pool?;
|
|
63
|
-
private vesting?;
|
|
64
|
-
private governance?;
|
|
65
|
-
private migration?;
|
|
66
|
-
private integrator?;
|
|
67
|
-
private userAddress?;
|
|
68
|
-
private startTimeOffset?;
|
|
69
|
-
private blockTimestamp?;
|
|
70
|
-
tokenConfig(params: {
|
|
71
|
-
type?: 'standard';
|
|
72
|
-
name: string;
|
|
73
|
-
symbol: string;
|
|
74
|
-
tokenURI: string;
|
|
75
|
-
yearlyMintRate?: bigint;
|
|
76
|
-
} | {
|
|
77
|
-
type: 'doppler404';
|
|
78
|
-
name: string;
|
|
79
|
-
symbol: string;
|
|
80
|
-
baseURI: string;
|
|
81
|
-
unit?: bigint;
|
|
82
|
-
}): this;
|
|
83
|
-
saleConfig(params: {
|
|
84
|
-
initialSupply: bigint;
|
|
85
|
-
numTokensToSell: bigint;
|
|
86
|
-
numeraire?: Address;
|
|
87
|
-
}): this;
|
|
88
|
-
poolConfig(params: {
|
|
89
|
-
fee: number;
|
|
90
|
-
tickSpacing: number;
|
|
91
|
-
}): this;
|
|
92
|
-
auctionByTicks(params: {
|
|
93
|
-
startTick: number;
|
|
94
|
-
endTick: number;
|
|
95
|
-
minProceeds: bigint;
|
|
96
|
-
maxProceeds: bigint;
|
|
97
|
-
durationDays?: number;
|
|
98
|
-
epochLength?: number;
|
|
99
|
-
gamma?: number;
|
|
100
|
-
numPdSlugs?: number;
|
|
101
|
-
}): this;
|
|
102
|
-
auctionByPriceRange(params: {
|
|
103
|
-
priceRange: PriceRange;
|
|
104
|
-
minProceeds: bigint;
|
|
105
|
-
maxProceeds: bigint;
|
|
106
|
-
durationDays?: number;
|
|
107
|
-
epochLength?: number;
|
|
108
|
-
gamma?: number;
|
|
109
|
-
tickSpacing?: number;
|
|
110
|
-
numPdSlugs?: number;
|
|
111
|
-
}): this;
|
|
112
|
-
withVesting(params?: {
|
|
113
|
-
duration?: bigint;
|
|
114
|
-
cliffDuration?: number;
|
|
115
|
-
}): this;
|
|
116
|
-
withGovernance(params?: GovernanceConfig | {
|
|
117
|
-
useDefaults?: boolean;
|
|
118
|
-
} | {
|
|
119
|
-
noOp: true;
|
|
120
|
-
}): this;
|
|
121
|
-
withMigration(migration: MigrationConfig): this;
|
|
122
|
-
withUserAddress(address: Address): this;
|
|
123
|
-
withIntegrator(address?: Address): this;
|
|
124
|
-
withTime(params?: {
|
|
125
|
-
startTimeOffset?: number;
|
|
126
|
-
blockTimestamp?: number;
|
|
127
|
-
}): this;
|
|
128
|
-
build(): CreateDynamicAuctionParams;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export { DynamicAuctionBuilder, StaticAuctionBuilder };
|
|
1
|
+
export { StaticAuctionBuilder } from './builders/StaticAuctionBuilder.js';
|
|
2
|
+
export { DynamicAuctionBuilder } from './builders/DynamicAuctionBuilder.js';
|
|
3
|
+
export { MulticurveBuilder } from './builders/MulticurveBuilder.js';
|
|
4
|
+
export { BaseAuctionBuilder, MARKET_CAP_PRESETS, MARKET_CAP_PRESET_ORDER, MarketCapPresetConfig, MarketCapPresetOverrides, buildCurvesFromPresets, computeTicks } from './builders/shared.js';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import './types.js';
|
|
7
|
+
import 'viem/chains';
|
|
8
|
+
import './addresses.js';
|