@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
package/dist/abis/index.js
CHANGED
|
@@ -1,78 +1,101 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-KEXKKQVW.js');
|
|
3
|
+
var chunkJWEXGALU_js = require('../chunk-JWEXGALU.js');
|
|
4
|
+
var chunkRVFSRYI5_js = require('../chunk-RVFSRYI5.js');
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
Object.defineProperty(exports, "airlockAbi", {
|
|
10
9
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkJWEXGALU_js.airlockAbi; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "bundlerAbi", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkJWEXGALU_js.bundlerAbi; }
|
|
12
15
|
});
|
|
13
16
|
Object.defineProperty(exports, "derc20Abi", {
|
|
14
17
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkJWEXGALU_js.derc20Abi; }
|
|
16
19
|
});
|
|
17
20
|
Object.defineProperty(exports, "dopplerHookAbi", {
|
|
18
21
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkJWEXGALU_js.dopplerHookAbi; }
|
|
20
23
|
});
|
|
21
24
|
Object.defineProperty(exports, "dopplerLensAbi", {
|
|
22
25
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkJWEXGALU_js.dopplerLensAbi; }
|
|
24
27
|
});
|
|
25
28
|
Object.defineProperty(exports, "lockableUniswapV3InitializerAbi", {
|
|
26
29
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkJWEXGALU_js.lockableUniswapV3InitializerAbi; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "poolManagerAbi", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkJWEXGALU_js.poolManagerAbi; }
|
|
28
35
|
});
|
|
29
36
|
Object.defineProperty(exports, "quoterV2Abi", {
|
|
30
37
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkJWEXGALU_js.quoterV2Abi; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "streamableFeesLockerAbi", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkJWEXGALU_js.streamableFeesLockerAbi; }
|
|
32
43
|
});
|
|
33
44
|
Object.defineProperty(exports, "uniswapV2Router02Abi", {
|
|
34
45
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkJWEXGALU_js.uniswapV2Router02Abi; }
|
|
36
47
|
});
|
|
37
48
|
Object.defineProperty(exports, "uniswapV3InitializerAbi", {
|
|
38
49
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkJWEXGALU_js.uniswapV3InitializerAbi; }
|
|
40
51
|
});
|
|
41
52
|
Object.defineProperty(exports, "uniswapV3PoolAbi", {
|
|
42
53
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkJWEXGALU_js.uniswapV3PoolAbi; }
|
|
44
55
|
});
|
|
45
56
|
Object.defineProperty(exports, "uniswapV4InitializerAbi", {
|
|
46
57
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkJWEXGALU_js.uniswapV4InitializerAbi; }
|
|
48
59
|
});
|
|
49
60
|
Object.defineProperty(exports, "v2MigratorAbi", {
|
|
50
61
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkJWEXGALU_js.v2MigratorAbi; }
|
|
52
63
|
});
|
|
53
64
|
Object.defineProperty(exports, "v3MigratorAbi", {
|
|
54
65
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkJWEXGALU_js.v3MigratorAbi; }
|
|
56
67
|
});
|
|
57
68
|
Object.defineProperty(exports, "v4MigratorAbi", {
|
|
58
69
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkJWEXGALU_js.v4MigratorAbi; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "v4MulticurveInitializerAbi", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunkJWEXGALU_js.v4MulticurveInitializerAbi; }
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "v4MulticurveMigratorAbi", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () { return chunkJWEXGALU_js.v4MulticurveMigratorAbi; }
|
|
60
79
|
});
|
|
61
80
|
Object.defineProperty(exports, "v4QuoterAbi", {
|
|
62
81
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkJWEXGALU_js.v4QuoterAbi; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "weth9Abi", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunkJWEXGALU_js.weth9Abi; }
|
|
64
87
|
});
|
|
65
88
|
Object.defineProperty(exports, "DERC20Bytecode", {
|
|
66
89
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkRVFSRYI5_js.DERC20Bytecode; }
|
|
68
91
|
});
|
|
69
92
|
Object.defineProperty(exports, "DopplerBytecode", {
|
|
70
93
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkRVFSRYI5_js.DopplerBytecode; }
|
|
72
95
|
});
|
|
73
96
|
Object.defineProperty(exports, "DopplerDN404Bytecode", {
|
|
74
97
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkRVFSRYI5_js.DopplerDN404Bytecode; }
|
|
76
99
|
});
|
|
77
100
|
//# sourceMappingURL=index.js.map
|
|
78
101
|
//# sourceMappingURL=index.js.map
|
package/dist/abis/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { airlockAbi, derc20Abi, dopplerHookAbi, dopplerLensAbi, lockableUniswapV3InitializerAbi, quoterV2Abi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4QuoterAbi } from '../chunk-
|
|
2
|
-
export { DERC20Bytecode, DopplerBytecode, DopplerDN404Bytecode } from '../chunk-
|
|
3
|
-
import '../chunk-LOROXNH3.mjs';
|
|
1
|
+
export { airlockAbi, bundlerAbi, derc20Abi, dopplerHookAbi, dopplerLensAbi, lockableUniswapV3InitializerAbi, poolManagerAbi, quoterV2Abi, streamableFeesLockerAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, weth9Abi } from '../chunk-OTG75GVH.mjs';
|
|
2
|
+
export { DERC20Bytecode, DopplerBytecode, DopplerDN404Bytecode } from '../chunk-4TROGENW.mjs';
|
|
4
3
|
//# sourceMappingURL=index.mjs.map
|
|
5
4
|
//# sourceMappingURL=index.mjs.map
|
package/dist/addresses.d.mts
CHANGED
|
@@ -7,8 +7,11 @@ declare const CHAIN_IDS: {
|
|
|
7
7
|
readonly INK: 57073;
|
|
8
8
|
readonly UNICHAIN: 130;
|
|
9
9
|
readonly UNICHAIN_SEPOLIA: 1301;
|
|
10
|
+
readonly MONAD_TESTNET: 10143;
|
|
11
|
+
readonly MONAD_MAINNET: 143;
|
|
10
12
|
};
|
|
11
13
|
type SupportedChainId = typeof CHAIN_IDS[keyof typeof CHAIN_IDS];
|
|
14
|
+
type SupportedChainKey = keyof typeof CHAIN_IDS;
|
|
12
15
|
interface ChainAddresses {
|
|
13
16
|
airlock: Address;
|
|
14
17
|
tokenFactory: Address;
|
|
@@ -16,16 +19,17 @@ interface ChainAddresses {
|
|
|
16
19
|
v3Quoter: Address;
|
|
17
20
|
lockableV3Initializer?: Address;
|
|
18
21
|
v4Initializer: Address;
|
|
19
|
-
|
|
22
|
+
v4MulticurveInitializer?: Address;
|
|
23
|
+
v4ScheduledMulticurveInitializer?: Address;
|
|
20
24
|
dopplerLens: Address;
|
|
21
25
|
dopplerDeployer: Address;
|
|
22
26
|
poolManager: Address;
|
|
23
|
-
stateView: Address;
|
|
24
27
|
doppler404Factory?: Address;
|
|
25
28
|
v2Migrator: Address;
|
|
26
29
|
v3Migrator: Address;
|
|
27
30
|
v4Migrator: Address;
|
|
28
31
|
v4MigratorHook?: Address;
|
|
32
|
+
noOpMigrator?: Address;
|
|
29
33
|
governanceFactory: Address;
|
|
30
34
|
noOpGovernanceFactory?: Address;
|
|
31
35
|
streamableFeesLocker?: Address;
|
|
@@ -36,11 +40,20 @@ interface ChainAddresses {
|
|
|
36
40
|
weth: Address;
|
|
37
41
|
uniswapV2Factory?: Address;
|
|
38
42
|
uniswapV3Factory?: Address;
|
|
43
|
+
uniswapV4Quoter: Address;
|
|
39
44
|
}
|
|
40
45
|
declare const ADDRESSES: Record<SupportedChainId, ChainAddresses>;
|
|
41
46
|
/**
|
|
42
47
|
* Get addresses for a specific chain
|
|
43
48
|
*/
|
|
44
49
|
declare function getAddresses(chainId: number): ChainAddresses;
|
|
50
|
+
/**
|
|
51
|
+
* List of supported chain IDs for easy iteration/validation
|
|
52
|
+
*/
|
|
53
|
+
declare const SUPPORTED_CHAIN_IDS: SupportedChainId[];
|
|
54
|
+
/**
|
|
55
|
+
* Runtime/type guard for narrowing a number to SupportedChainId
|
|
56
|
+
*/
|
|
57
|
+
declare function isSupportedChainId(id: number): id is SupportedChainId;
|
|
45
58
|
|
|
46
|
-
export { ADDRESSES, CHAIN_IDS, type ChainAddresses, type SupportedChainId, getAddresses };
|
|
59
|
+
export { ADDRESSES, CHAIN_IDS, type ChainAddresses, SUPPORTED_CHAIN_IDS, type SupportedChainId, type SupportedChainKey, getAddresses, isSupportedChainId };
|
package/dist/addresses.d.ts
CHANGED
|
@@ -7,8 +7,11 @@ declare const CHAIN_IDS: {
|
|
|
7
7
|
readonly INK: 57073;
|
|
8
8
|
readonly UNICHAIN: 130;
|
|
9
9
|
readonly UNICHAIN_SEPOLIA: 1301;
|
|
10
|
+
readonly MONAD_TESTNET: 10143;
|
|
11
|
+
readonly MONAD_MAINNET: 143;
|
|
10
12
|
};
|
|
11
13
|
type SupportedChainId = typeof CHAIN_IDS[keyof typeof CHAIN_IDS];
|
|
14
|
+
type SupportedChainKey = keyof typeof CHAIN_IDS;
|
|
12
15
|
interface ChainAddresses {
|
|
13
16
|
airlock: Address;
|
|
14
17
|
tokenFactory: Address;
|
|
@@ -16,16 +19,17 @@ interface ChainAddresses {
|
|
|
16
19
|
v3Quoter: Address;
|
|
17
20
|
lockableV3Initializer?: Address;
|
|
18
21
|
v4Initializer: Address;
|
|
19
|
-
|
|
22
|
+
v4MulticurveInitializer?: Address;
|
|
23
|
+
v4ScheduledMulticurveInitializer?: Address;
|
|
20
24
|
dopplerLens: Address;
|
|
21
25
|
dopplerDeployer: Address;
|
|
22
26
|
poolManager: Address;
|
|
23
|
-
stateView: Address;
|
|
24
27
|
doppler404Factory?: Address;
|
|
25
28
|
v2Migrator: Address;
|
|
26
29
|
v3Migrator: Address;
|
|
27
30
|
v4Migrator: Address;
|
|
28
31
|
v4MigratorHook?: Address;
|
|
32
|
+
noOpMigrator?: Address;
|
|
29
33
|
governanceFactory: Address;
|
|
30
34
|
noOpGovernanceFactory?: Address;
|
|
31
35
|
streamableFeesLocker?: Address;
|
|
@@ -36,11 +40,20 @@ interface ChainAddresses {
|
|
|
36
40
|
weth: Address;
|
|
37
41
|
uniswapV2Factory?: Address;
|
|
38
42
|
uniswapV3Factory?: Address;
|
|
43
|
+
uniswapV4Quoter: Address;
|
|
39
44
|
}
|
|
40
45
|
declare const ADDRESSES: Record<SupportedChainId, ChainAddresses>;
|
|
41
46
|
/**
|
|
42
47
|
* Get addresses for a specific chain
|
|
43
48
|
*/
|
|
44
49
|
declare function getAddresses(chainId: number): ChainAddresses;
|
|
50
|
+
/**
|
|
51
|
+
* List of supported chain IDs for easy iteration/validation
|
|
52
|
+
*/
|
|
53
|
+
declare const SUPPORTED_CHAIN_IDS: SupportedChainId[];
|
|
54
|
+
/**
|
|
55
|
+
* Runtime/type guard for narrowing a number to SupportedChainId
|
|
56
|
+
*/
|
|
57
|
+
declare function isSupportedChainId(id: number): id is SupportedChainId;
|
|
45
58
|
|
|
46
|
-
export { ADDRESSES, CHAIN_IDS, type ChainAddresses, type SupportedChainId, getAddresses };
|
|
59
|
+
export { ADDRESSES, CHAIN_IDS, type ChainAddresses, SUPPORTED_CHAIN_IDS, type SupportedChainId, type SupportedChainKey, getAddresses, isSupportedChainId };
|
package/dist/addresses.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkYYUOLM6U_js = require('./chunk-YYUOLM6U.js');
|
|
4
|
+
require('./chunk-CVHPLURA.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "ADDRESSES", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkYYUOLM6U_js.ADDRESSES; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CHAIN_IDS", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYYUOLM6U_js.CHAIN_IDS; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "SUPPORTED_CHAIN_IDS", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkYYUOLM6U_js.SUPPORTED_CHAIN_IDS; }
|
|
15
19
|
});
|
|
16
20
|
Object.defineProperty(exports, "getAddresses", {
|
|
17
21
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYYUOLM6U_js.getAddresses; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "isSupportedChainId", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkYYUOLM6U_js.isSupportedChainId; }
|
|
19
27
|
});
|
|
20
28
|
//# sourceMappingURL=addresses.js.map
|
|
21
29
|
//# sourceMappingURL=addresses.js.map
|
package/dist/addresses.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ADDRESSES, CHAIN_IDS, getAddresses } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { ADDRESSES, CHAIN_IDS, SUPPORTED_CHAIN_IDS, getAddresses, isSupportedChainId } from './chunk-AW3WR2D3.mjs';
|
|
2
|
+
import './chunk-FPAI4QYW.mjs';
|
|
3
3
|
//# sourceMappingURL=addresses.mjs.map
|
|
4
4
|
//# sourceMappingURL=addresses.mjs.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { PriceRange, DynamicAuctionMarketCapConfig, GovernanceOption, MigrationConfig, CreateDynamicAuctionParams } from '../types.mjs';
|
|
3
|
+
import { SupportedChainId } from '../addresses.mjs';
|
|
4
|
+
import { BaseAuctionBuilder } from './shared.mjs';
|
|
5
|
+
import 'viem/chains';
|
|
6
|
+
|
|
7
|
+
declare class DynamicAuctionBuilder<C extends SupportedChainId> implements BaseAuctionBuilder<C> {
|
|
8
|
+
private token?;
|
|
9
|
+
private sale?;
|
|
10
|
+
private auction?;
|
|
11
|
+
private pool?;
|
|
12
|
+
private vesting?;
|
|
13
|
+
private governance?;
|
|
14
|
+
private migration?;
|
|
15
|
+
private integrator?;
|
|
16
|
+
private userAddress?;
|
|
17
|
+
private startTimeOffset?;
|
|
18
|
+
private blockTimestamp?;
|
|
19
|
+
private moduleAddresses?;
|
|
20
|
+
private gasLimit?;
|
|
21
|
+
chainId: C;
|
|
22
|
+
constructor(chainId: C);
|
|
23
|
+
static forChain<C extends SupportedChainId>(chainId: C): DynamicAuctionBuilder<C>;
|
|
24
|
+
tokenConfig(params: {
|
|
25
|
+
type?: 'standard';
|
|
26
|
+
name: string;
|
|
27
|
+
symbol: string;
|
|
28
|
+
tokenURI: string;
|
|
29
|
+
yearlyMintRate?: bigint;
|
|
30
|
+
} | {
|
|
31
|
+
type: 'doppler404';
|
|
32
|
+
name: string;
|
|
33
|
+
symbol: string;
|
|
34
|
+
baseURI: string;
|
|
35
|
+
unit?: bigint;
|
|
36
|
+
}): this;
|
|
37
|
+
saleConfig(params: {
|
|
38
|
+
initialSupply: bigint;
|
|
39
|
+
numTokensToSell: bigint;
|
|
40
|
+
numeraire?: Address;
|
|
41
|
+
}): this;
|
|
42
|
+
poolConfig(params: {
|
|
43
|
+
fee: number;
|
|
44
|
+
tickSpacing: number;
|
|
45
|
+
}): this;
|
|
46
|
+
auctionByTicks(params: {
|
|
47
|
+
startTick: number;
|
|
48
|
+
endTick: number;
|
|
49
|
+
minProceeds: bigint;
|
|
50
|
+
maxProceeds: bigint;
|
|
51
|
+
duration?: number;
|
|
52
|
+
epochLength?: number;
|
|
53
|
+
gamma?: number;
|
|
54
|
+
numPdSlugs?: number;
|
|
55
|
+
}): this;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use withMarketCapRange() instead for more intuitive market cap configuration
|
|
58
|
+
*/
|
|
59
|
+
auctionByPriceRange(params: {
|
|
60
|
+
priceRange: PriceRange;
|
|
61
|
+
minProceeds: bigint;
|
|
62
|
+
maxProceeds: bigint;
|
|
63
|
+
duration?: number;
|
|
64
|
+
epochLength?: number;
|
|
65
|
+
gamma?: number;
|
|
66
|
+
tickSpacing?: number;
|
|
67
|
+
numPdSlugs?: number;
|
|
68
|
+
}): this;
|
|
69
|
+
/**
|
|
70
|
+
* Configure auction using target market cap range.
|
|
71
|
+
* Converts market cap values (in USD) to Uniswap ticks.
|
|
72
|
+
*
|
|
73
|
+
* @param params - Market cap configuration with auction parameters
|
|
74
|
+
* @returns Builder instance for chaining
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* builder
|
|
79
|
+
* .saleConfig({ initialSupply, numTokensToSell, numeraire: WETH })
|
|
80
|
+
* .poolConfig({ fee: 3000, tickSpacing: 60 })
|
|
81
|
+
* .withMarketCapRange({
|
|
82
|
+
* marketCap: { start: 500_000, min: 50_000 }, // $500k start, $50k floor
|
|
83
|
+
* numerairePrice: 3000, // ETH = $3000
|
|
84
|
+
* minProceeds: parseEther('10'),
|
|
85
|
+
* maxProceeds: parseEther('1000'),
|
|
86
|
+
* })
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
withMarketCapRange(params: DynamicAuctionMarketCapConfig): this;
|
|
90
|
+
withVesting(params?: {
|
|
91
|
+
duration?: bigint;
|
|
92
|
+
cliffDuration?: number;
|
|
93
|
+
recipients?: Address[];
|
|
94
|
+
amounts?: bigint[];
|
|
95
|
+
}): this;
|
|
96
|
+
withGovernance(params: GovernanceOption<C>): this;
|
|
97
|
+
withMigration(migration: MigrationConfig): this;
|
|
98
|
+
withUserAddress(address: Address): this;
|
|
99
|
+
withIntegrator(address?: Address): this;
|
|
100
|
+
withGasLimit(gas?: bigint): this;
|
|
101
|
+
withTime(params?: {
|
|
102
|
+
startTimeOffset?: number;
|
|
103
|
+
blockTimestamp?: number;
|
|
104
|
+
}): this;
|
|
105
|
+
private overrideModule;
|
|
106
|
+
withTokenFactory(address: Address): this;
|
|
107
|
+
withAirlock(address: Address): this;
|
|
108
|
+
withV4Initializer(address: Address): this;
|
|
109
|
+
withPoolManager(address: Address): this;
|
|
110
|
+
withDopplerDeployer(address: Address): this;
|
|
111
|
+
withGovernanceFactory(address: Address): this;
|
|
112
|
+
withV2Migrator(address: Address): this;
|
|
113
|
+
withV3Migrator(address: Address): this;
|
|
114
|
+
withV4Migrator(address: Address): this;
|
|
115
|
+
withNoOpMigrator(address: Address): this;
|
|
116
|
+
build(): CreateDynamicAuctionParams<C>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { DynamicAuctionBuilder };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { PriceRange, DynamicAuctionMarketCapConfig, GovernanceOption, MigrationConfig, CreateDynamicAuctionParams } from '../types.js';
|
|
3
|
+
import { SupportedChainId } from '../addresses.js';
|
|
4
|
+
import { BaseAuctionBuilder } from './shared.js';
|
|
5
|
+
import 'viem/chains';
|
|
6
|
+
|
|
7
|
+
declare class DynamicAuctionBuilder<C extends SupportedChainId> implements BaseAuctionBuilder<C> {
|
|
8
|
+
private token?;
|
|
9
|
+
private sale?;
|
|
10
|
+
private auction?;
|
|
11
|
+
private pool?;
|
|
12
|
+
private vesting?;
|
|
13
|
+
private governance?;
|
|
14
|
+
private migration?;
|
|
15
|
+
private integrator?;
|
|
16
|
+
private userAddress?;
|
|
17
|
+
private startTimeOffset?;
|
|
18
|
+
private blockTimestamp?;
|
|
19
|
+
private moduleAddresses?;
|
|
20
|
+
private gasLimit?;
|
|
21
|
+
chainId: C;
|
|
22
|
+
constructor(chainId: C);
|
|
23
|
+
static forChain<C extends SupportedChainId>(chainId: C): DynamicAuctionBuilder<C>;
|
|
24
|
+
tokenConfig(params: {
|
|
25
|
+
type?: 'standard';
|
|
26
|
+
name: string;
|
|
27
|
+
symbol: string;
|
|
28
|
+
tokenURI: string;
|
|
29
|
+
yearlyMintRate?: bigint;
|
|
30
|
+
} | {
|
|
31
|
+
type: 'doppler404';
|
|
32
|
+
name: string;
|
|
33
|
+
symbol: string;
|
|
34
|
+
baseURI: string;
|
|
35
|
+
unit?: bigint;
|
|
36
|
+
}): this;
|
|
37
|
+
saleConfig(params: {
|
|
38
|
+
initialSupply: bigint;
|
|
39
|
+
numTokensToSell: bigint;
|
|
40
|
+
numeraire?: Address;
|
|
41
|
+
}): this;
|
|
42
|
+
poolConfig(params: {
|
|
43
|
+
fee: number;
|
|
44
|
+
tickSpacing: number;
|
|
45
|
+
}): this;
|
|
46
|
+
auctionByTicks(params: {
|
|
47
|
+
startTick: number;
|
|
48
|
+
endTick: number;
|
|
49
|
+
minProceeds: bigint;
|
|
50
|
+
maxProceeds: bigint;
|
|
51
|
+
duration?: number;
|
|
52
|
+
epochLength?: number;
|
|
53
|
+
gamma?: number;
|
|
54
|
+
numPdSlugs?: number;
|
|
55
|
+
}): this;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use withMarketCapRange() instead for more intuitive market cap configuration
|
|
58
|
+
*/
|
|
59
|
+
auctionByPriceRange(params: {
|
|
60
|
+
priceRange: PriceRange;
|
|
61
|
+
minProceeds: bigint;
|
|
62
|
+
maxProceeds: bigint;
|
|
63
|
+
duration?: number;
|
|
64
|
+
epochLength?: number;
|
|
65
|
+
gamma?: number;
|
|
66
|
+
tickSpacing?: number;
|
|
67
|
+
numPdSlugs?: number;
|
|
68
|
+
}): this;
|
|
69
|
+
/**
|
|
70
|
+
* Configure auction using target market cap range.
|
|
71
|
+
* Converts market cap values (in USD) to Uniswap ticks.
|
|
72
|
+
*
|
|
73
|
+
* @param params - Market cap configuration with auction parameters
|
|
74
|
+
* @returns Builder instance for chaining
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* builder
|
|
79
|
+
* .saleConfig({ initialSupply, numTokensToSell, numeraire: WETH })
|
|
80
|
+
* .poolConfig({ fee: 3000, tickSpacing: 60 })
|
|
81
|
+
* .withMarketCapRange({
|
|
82
|
+
* marketCap: { start: 500_000, min: 50_000 }, // $500k start, $50k floor
|
|
83
|
+
* numerairePrice: 3000, // ETH = $3000
|
|
84
|
+
* minProceeds: parseEther('10'),
|
|
85
|
+
* maxProceeds: parseEther('1000'),
|
|
86
|
+
* })
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
withMarketCapRange(params: DynamicAuctionMarketCapConfig): this;
|
|
90
|
+
withVesting(params?: {
|
|
91
|
+
duration?: bigint;
|
|
92
|
+
cliffDuration?: number;
|
|
93
|
+
recipients?: Address[];
|
|
94
|
+
amounts?: bigint[];
|
|
95
|
+
}): this;
|
|
96
|
+
withGovernance(params: GovernanceOption<C>): this;
|
|
97
|
+
withMigration(migration: MigrationConfig): this;
|
|
98
|
+
withUserAddress(address: Address): this;
|
|
99
|
+
withIntegrator(address?: Address): this;
|
|
100
|
+
withGasLimit(gas?: bigint): this;
|
|
101
|
+
withTime(params?: {
|
|
102
|
+
startTimeOffset?: number;
|
|
103
|
+
blockTimestamp?: number;
|
|
104
|
+
}): this;
|
|
105
|
+
private overrideModule;
|
|
106
|
+
withTokenFactory(address: Address): this;
|
|
107
|
+
withAirlock(address: Address): this;
|
|
108
|
+
withV4Initializer(address: Address): this;
|
|
109
|
+
withPoolManager(address: Address): this;
|
|
110
|
+
withDopplerDeployer(address: Address): this;
|
|
111
|
+
withGovernanceFactory(address: Address): this;
|
|
112
|
+
withV2Migrator(address: Address): this;
|
|
113
|
+
withV3Migrator(address: Address): this;
|
|
114
|
+
withV4Migrator(address: Address): this;
|
|
115
|
+
withNoOpMigrator(address: Address): this;
|
|
116
|
+
build(): CreateDynamicAuctionParams<C>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { DynamicAuctionBuilder };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3RK7LRAA_js = require('../chunk-3RK7LRAA.js');
|
|
4
|
+
require('../chunk-ZPHOOG72.js');
|
|
5
|
+
require('../chunk-WTS75RUC.js');
|
|
6
|
+
require('../chunk-MGQSQCFG.js');
|
|
7
|
+
require('../chunk-4HM3ERBU.js');
|
|
8
|
+
require('../chunk-PCNXJAU5.js');
|
|
9
|
+
require('../chunk-AS64GWBX.js');
|
|
10
|
+
require('../chunk-HM25ZMO3.js');
|
|
11
|
+
require('../chunk-Q7YNBSVH.js');
|
|
12
|
+
require('../chunk-RW37KJ77.js');
|
|
13
|
+
require('../chunk-P7KLEPVI.js');
|
|
14
|
+
require('../chunk-JWEXGALU.js');
|
|
15
|
+
require('../chunk-BIQQ53O2.js');
|
|
16
|
+
require('../chunk-PH2KXREH.js');
|
|
17
|
+
require('../chunk-OKNM7ODQ.js');
|
|
18
|
+
require('../chunk-YYUOLM6U.js');
|
|
19
|
+
require('../chunk-CVHPLURA.js');
|
|
20
|
+
require('../chunk-RVFSRYI5.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
Object.defineProperty(exports, "DynamicAuctionBuilder", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunk3RK7LRAA_js.DynamicAuctionBuilder; }
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=DynamicAuctionBuilder.js.map
|
|
29
|
+
//# sourceMappingURL=DynamicAuctionBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"DynamicAuctionBuilder.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { DynamicAuctionBuilder } from '../chunk-MCOK3UFR.mjs';
|
|
2
|
+
import '../chunk-Q5ERW5ZW.mjs';
|
|
3
|
+
import '../chunk-5TL5V6UX.mjs';
|
|
4
|
+
import '../chunk-XUE3CIJ5.mjs';
|
|
5
|
+
import '../chunk-ECD4FV3A.mjs';
|
|
6
|
+
import '../chunk-MNJ5OYPE.mjs';
|
|
7
|
+
import '../chunk-64AWG57M.mjs';
|
|
8
|
+
import '../chunk-NNNCVFOH.mjs';
|
|
9
|
+
import '../chunk-ZH44DHVR.mjs';
|
|
10
|
+
import '../chunk-CLEQO6GU.mjs';
|
|
11
|
+
import '../chunk-KDT76YQE.mjs';
|
|
12
|
+
import '../chunk-OTG75GVH.mjs';
|
|
13
|
+
import '../chunk-M4WMHD3X.mjs';
|
|
14
|
+
import '../chunk-QKO2FZGN.mjs';
|
|
15
|
+
import '../chunk-OZ6DGBRL.mjs';
|
|
16
|
+
import '../chunk-AW3WR2D3.mjs';
|
|
17
|
+
import '../chunk-FPAI4QYW.mjs';
|
|
18
|
+
import '../chunk-4TROGENW.mjs';
|
|
19
|
+
//# sourceMappingURL=DynamicAuctionBuilder.mjs.map
|
|
20
|
+
//# sourceMappingURL=DynamicAuctionBuilder.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"DynamicAuctionBuilder.mjs"}
|