@whetstone-research/doppler-sdk 0.0.22 → 0.0.24
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 +553 -221
- package/dist/DopplerSDK.d.mts +12 -0
- package/dist/DopplerSDK.d.ts +12 -0
- package/dist/DopplerSDK.js +29 -26
- package/dist/DopplerSDK.mjs +28 -25
- package/dist/abis/bytecodes/derc20.js +2 -2
- package/dist/abis/bytecodes/derc20.mjs +1 -1
- package/dist/abis/bytecodes/derc2080.js +2 -2
- package/dist/abis/bytecodes/derc2080.mjs +1 -1
- package/dist/abis/bytecodes/doppler.js +2 -2
- package/dist/abis/bytecodes/doppler.mjs +1 -1
- package/dist/abis/bytecodes/dopplerDN404.js +2 -2
- package/dist/abis/bytecodes/dopplerDN404.mjs +1 -1
- package/dist/abis/bytecodes/stateView.js +2 -2
- package/dist/abis/bytecodes/stateView.mjs +1 -1
- package/dist/abis/bytecodes.js +10 -10
- package/dist/abis/bytecodes.mjs +5 -5
- package/dist/abis/index.d.mts +421 -10
- package/dist/abis/index.d.ts +421 -10
- package/dist/abis/index.js +41 -33
- package/dist/abis/index.mjs +6 -6
- package/dist/addresses.d.mts +6 -0
- package/dist/addresses.d.ts +6 -0
- package/dist/addresses.js +7 -7
- package/dist/addresses.mjs +2 -2
- package/dist/builders/DynamicAuctionBuilder.d.mts +2 -0
- package/dist/builders/DynamicAuctionBuilder.d.ts +2 -0
- package/dist/builders/DynamicAuctionBuilder.js +17 -16
- package/dist/builders/DynamicAuctionBuilder.mjs +16 -15
- package/dist/builders/MulticurveBuilder.d.mts +18 -5
- package/dist/builders/MulticurveBuilder.d.ts +18 -5
- package/dist/builders/MulticurveBuilder.js +17 -16
- package/dist/builders/MulticurveBuilder.mjs +16 -15
- package/dist/builders/StaticAuctionBuilder.js +17 -16
- package/dist/builders/StaticAuctionBuilder.mjs +16 -15
- package/dist/builders/index.js +25 -24
- package/dist/builders/index.mjs +18 -17
- package/dist/builders/shared.d.mts +1 -1
- package/dist/builders/shared.d.ts +1 -1
- package/dist/builders/shared.js +19 -17
- package/dist/builders/shared.mjs +15 -13
- package/dist/{chunk-3XYDN2XB.js → chunk-2A3B3NVB.js} +170 -25
- package/dist/chunk-2A3B3NVB.js.map +1 -0
- package/dist/{chunk-AZOBEWP3.mjs → chunk-3NMGCQJ4.mjs} +2 -2
- package/dist/chunk-3NMGCQJ4.mjs.map +1 -0
- package/dist/{chunk-CUB4F546.js → chunk-44CYUEPG.js} +25 -13
- package/dist/chunk-44CYUEPG.js.map +1 -0
- package/dist/{chunk-AZH2P4JK.mjs → chunk-5GQJRNFL.mjs} +3 -3
- package/dist/{chunk-AZH2P4JK.mjs.map → chunk-5GQJRNFL.mjs.map} +1 -1
- package/dist/{chunk-ZDTJ3BPS.js → chunk-5JHXBDZD.js} +20 -20
- package/dist/{chunk-ZDTJ3BPS.js.map → chunk-5JHXBDZD.js.map} +1 -1
- package/dist/{chunk-OGYWNJGI.js → chunk-5TQOT6CW.js} +2 -2
- package/dist/chunk-5TQOT6CW.js.map +1 -0
- package/dist/{chunk-COOVGAOE.js → chunk-65CESA3J.js} +19 -13
- package/dist/chunk-65CESA3J.js.map +1 -0
- package/dist/{chunk-5VV7STYK.js → chunk-7A4DBBXA.js} +141 -101
- package/dist/chunk-7A4DBBXA.js.map +1 -0
- package/dist/chunk-7ZUV6WPX.mjs +3 -0
- package/dist/{chunk-5TL5V6UX.mjs.map → chunk-7ZUV6WPX.mjs.map} +1 -1
- package/dist/{chunk-RXUJ4DUB.js → chunk-A2CJYRRQ.js} +28 -28
- package/dist/{chunk-RXUJ4DUB.js.map → chunk-A2CJYRRQ.js.map} +1 -1
- package/dist/{chunk-QQEOKYEX.js → chunk-BK3S6SVR.js} +383 -83
- package/dist/chunk-BK3S6SVR.js.map +1 -0
- package/dist/{chunk-S4IZ5ATO.js → chunk-BQZTELUX.js} +5 -5
- package/dist/{chunk-S4IZ5ATO.js.map → chunk-BQZTELUX.js.map} +1 -1
- package/dist/{chunk-WKKOBMXR.js → chunk-CFXXUZJY.js} +57 -22
- package/dist/chunk-CFXXUZJY.js.map +1 -0
- package/dist/chunk-DCWF3EMP.js +171 -0
- package/dist/chunk-DCWF3EMP.js.map +1 -0
- package/dist/{chunk-YWK6YH6M.mjs → chunk-DQJXCZU2.mjs} +5 -5
- package/dist/{chunk-YWK6YH6M.mjs.map → chunk-DQJXCZU2.mjs.map} +1 -1
- package/dist/chunk-DSYPZETD.js +4 -0
- package/dist/{chunk-3PNCB4W5.js.map → chunk-DSYPZETD.js.map} +1 -1
- package/dist/chunk-F2BYG63D.mjs +145 -0
- package/dist/chunk-F2BYG63D.mjs.map +1 -0
- package/dist/{chunk-N33R22A2.js → chunk-FNUBKONK.js} +2 -2
- package/dist/{chunk-N33R22A2.js.map → chunk-FNUBKONK.js.map} +1 -1
- package/dist/chunk-FXTGIKQG.mjs +3 -0
- package/dist/{chunk-SD7BHT2F.mjs.map → chunk-FXTGIKQG.mjs.map} +1 -1
- package/dist/{chunk-MQNSJCAW.mjs → chunk-GSBQIVME.mjs} +2 -2
- package/dist/{chunk-MQNSJCAW.mjs.map → chunk-GSBQIVME.mjs.map} +1 -1
- package/dist/{chunk-SAX7P3MH.js → chunk-HJFVRV47.js} +2 -2
- package/dist/{chunk-SAX7P3MH.js.map → chunk-HJFVRV47.js.map} +1 -1
- package/dist/chunk-IIM2CSDQ.js +147 -0
- package/dist/chunk-IIM2CSDQ.js.map +1 -0
- package/dist/{chunk-O3RH43H3.mjs → chunk-IUTIHSLH.mjs} +4 -4
- package/dist/{chunk-O3RH43H3.mjs.map → chunk-IUTIHSLH.mjs.map} +1 -1
- package/dist/chunk-IUZ3BBQP.mjs +117 -0
- package/dist/chunk-IUZ3BBQP.mjs.map +1 -0
- package/dist/{chunk-D7PCIMWU.mjs → chunk-IX4V4UGW.mjs} +4 -4
- package/dist/{chunk-D7PCIMWU.mjs.map → chunk-IX4V4UGW.mjs.map} +1 -1
- package/dist/{chunk-2ZM4JVFC.js → chunk-J62YDWIK.js} +2 -2
- package/dist/chunk-J62YDWIK.js.map +1 -0
- package/dist/{chunk-E2NF4AQB.mjs → chunk-JLUOFAE4.mjs} +272 -12
- package/dist/chunk-JLUOFAE4.mjs.map +1 -0
- package/dist/{chunk-KITPRKQ4.mjs → chunk-LW3CYA27.mjs} +351 -51
- package/dist/chunk-LW3CYA27.mjs.map +1 -0
- package/dist/{chunk-3L4DLMOK.js → chunk-MEA2C5YX.js} +16 -16
- package/dist/{chunk-3L4DLMOK.js.map → chunk-MEA2C5YX.js.map} +1 -1
- package/dist/{chunk-3MVW6UIW.js → chunk-MU56HCUI.js} +273 -11
- package/dist/chunk-MU56HCUI.js.map +1 -0
- package/dist/chunk-OCIY7QEJ.mjs +169 -0
- package/dist/chunk-OCIY7QEJ.mjs.map +1 -0
- package/dist/{chunk-WDSV4O6T.mjs → chunk-OHA5KJ2M.mjs} +2 -2
- package/dist/chunk-OHA5KJ2M.mjs.map +1 -0
- package/dist/{chunk-MT34O3YL.js → chunk-P563HTVU.js} +50 -26
- package/dist/chunk-P563HTVU.js.map +1 -0
- package/dist/{chunk-RLUMYHPI.js → chunk-PGYTMRP3.js} +46 -18
- package/dist/chunk-PGYTMRP3.js.map +1 -0
- package/dist/{chunk-VGOEXLQ2.js → chunk-QAPQGDWK.js} +2 -2
- package/dist/chunk-QAPQGDWK.js.map +1 -0
- package/dist/{chunk-QOGBOT2M.mjs → chunk-QHBKRUBY.mjs} +3 -3
- package/dist/{chunk-QOGBOT2M.mjs.map → chunk-QHBKRUBY.mjs.map} +1 -1
- package/dist/chunk-QOYI7WCH.js +120 -0
- package/dist/chunk-QOYI7WCH.js.map +1 -0
- package/dist/{chunk-OF7BIKXV.js → chunk-QRTABC4Z.js} +2 -2
- package/dist/chunk-QRTABC4Z.js.map +1 -0
- package/dist/{chunk-CS6FVODR.mjs → chunk-QUBD6HUZ.mjs} +163 -18
- package/dist/chunk-QUBD6HUZ.mjs.map +1 -0
- package/dist/{chunk-RWVNXU7Z.mjs → chunk-RDTIXP6S.mjs} +4 -4
- package/dist/{chunk-RWVNXU7Z.mjs.map → chunk-RDTIXP6S.mjs.map} +1 -1
- package/dist/{chunk-5WYXNWNH.js → chunk-RLOZWHRR.js} +11 -11
- package/dist/{chunk-5WYXNWNH.js.map → chunk-RLOZWHRR.js.map} +1 -1
- package/dist/{chunk-VK5HAWX6.mjs → chunk-SWWLOD7Q.mjs} +2 -2
- package/dist/chunk-SWWLOD7Q.mjs.map +1 -0
- package/dist/chunk-T3UA4MJL.js +4 -0
- package/dist/{chunk-WTS75RUC.js.map → chunk-T3UA4MJL.js.map} +1 -1
- package/dist/{chunk-HJ4AS5DZ.mjs → chunk-TEWAXP5C.mjs} +36 -12
- package/dist/chunk-TEWAXP5C.mjs.map +1 -0
- package/dist/{chunk-ZRNPHFP3.mjs → chunk-THEIRDGE.mjs} +50 -15
- package/dist/chunk-THEIRDGE.mjs.map +1 -0
- package/dist/{chunk-LPA32BIK.mjs → chunk-U3GOWK6J.mjs} +2 -2
- package/dist/chunk-U3GOWK6J.mjs.map +1 -0
- package/dist/{chunk-QFQXHDC7.mjs → chunk-VKSD3KXF.mjs} +46 -18
- package/dist/chunk-VKSD3KXF.mjs.map +1 -0
- package/dist/{chunk-64ZQRKG3.mjs → chunk-VYSOAGRU.mjs} +2 -2
- package/dist/chunk-VYSOAGRU.mjs.map +1 -0
- package/dist/{chunk-ADAAU4F5.mjs → chunk-WDC53TM7.mjs} +49 -9
- package/dist/chunk-WDC53TM7.mjs.map +1 -0
- package/dist/{chunk-M2EMKIP5.mjs → chunk-WKWP42TD.mjs} +9 -4
- package/dist/chunk-WKWP42TD.mjs.map +1 -0
- package/dist/{chunk-OROTK4OT.js → chunk-WNUB3UTT.js} +12 -12
- package/dist/chunk-WNUB3UTT.js.map +1 -0
- package/dist/{chunk-FVTTG72Z.mjs → chunk-WNWK2QMU.mjs} +19 -7
- package/dist/chunk-WNWK2QMU.mjs.map +1 -0
- package/dist/{chunk-INLXNN7P.js → chunk-WZF5XNBC.js} +26 -26
- package/dist/{chunk-INLXNN7P.js.map → chunk-WZF5XNBC.js.map} +1 -1
- package/dist/{chunk-SMTHFPBA.js → chunk-XMFOZYNI.js} +2 -2
- package/dist/chunk-XMFOZYNI.js.map +1 -0
- package/dist/{chunk-VGCXJRUV.mjs → chunk-YBK6EBA5.mjs} +10 -10
- package/dist/chunk-YBK6EBA5.mjs.map +1 -0
- package/dist/{chunk-HH7HQ4HC.mjs → chunk-ZEDJUNC6.mjs} +2 -2
- package/dist/{chunk-HH7HQ4HC.mjs.map → chunk-ZEDJUNC6.mjs.map} +1 -1
- package/dist/deployments.generated.d.mts +44 -16
- package/dist/deployments.generated.d.ts +44 -16
- package/dist/deployments.generated.js +2 -2
- package/dist/deployments.generated.mjs +1 -1
- package/dist/entities/DopplerFactory.d.mts +7 -1
- package/dist/entities/DopplerFactory.d.ts +7 -1
- package/dist/entities/DopplerFactory.js +16 -14
- package/dist/entities/DopplerFactory.mjs +15 -13
- package/dist/entities/auction/DynamicAuction.js +10 -10
- package/dist/entities/auction/DynamicAuction.mjs +9 -9
- package/dist/entities/auction/MulticurvePool.d.mts +6 -2
- package/dist/entities/auction/MulticurvePool.d.ts +6 -2
- package/dist/entities/auction/MulticurvePool.js +11 -11
- package/dist/entities/auction/MulticurvePool.mjs +10 -10
- package/dist/entities/auction/RehypeDopplerHook.d.mts +57 -0
- package/dist/entities/auction/RehypeDopplerHook.d.ts +57 -0
- package/dist/entities/auction/RehypeDopplerHook.js +34 -0
- package/dist/entities/auction/RehypeDopplerHook.js.map +1 -0
- package/dist/entities/auction/RehypeDopplerHook.mjs +25 -0
- package/dist/entities/auction/RehypeDopplerHook.mjs.map +1 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.d.mts +48 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.d.ts +48 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.js +34 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.js.map +1 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.mjs +25 -0
- package/dist/entities/auction/RehypeDopplerHookMigrator.mjs.map +1 -0
- package/dist/entities/auction/StaticAuction.js +10 -10
- package/dist/entities/auction/StaticAuction.mjs +9 -9
- package/dist/entities/auction/index.d.mts +2 -0
- package/dist/entities/auction/index.d.ts +2 -0
- package/dist/entities/auction/index.js +38 -18
- package/dist/entities/auction/index.mjs +25 -13
- package/dist/entities/quoter/Quoter.js +10 -10
- package/dist/entities/quoter/Quoter.mjs +9 -9
- package/dist/entities/quoter/index.js +10 -10
- package/dist/entities/quoter/index.mjs +9 -9
- package/dist/entities/token/derc20/Derc20.js +8 -8
- package/dist/entities/token/derc20/Derc20.mjs +7 -7
- package/dist/entities/token/derc20/index.js +8 -8
- package/dist/entities/token/derc20/index.mjs +7 -7
- package/dist/entities/token/index.js +11 -11
- package/dist/entities/token/index.mjs +7 -7
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +120 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -25
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +90 -7
- package/dist/types.d.ts +90 -7
- package/dist/types.js +12 -8
- package/dist/types.mjs +3 -3
- package/dist/utils/airlock.js +7 -7
- package/dist/utils/airlock.mjs +3 -3
- package/dist/utils/dopplerHookMigrator.d.mts +18 -0
- package/dist/utils/dopplerHookMigrator.d.ts +18 -0
- package/dist/utils/dopplerHookMigrator.js +20 -0
- package/dist/utils/dopplerHookMigrator.js.map +1 -0
- package/dist/utils/dopplerHookMigrator.mjs +7 -0
- package/dist/utils/dopplerHookMigrator.mjs.map +1 -0
- package/dist/utils/index.d.mts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +39 -32
- package/dist/utils/index.mjs +15 -12
- package/dist/utils/marketCapHelpers.js +13 -13
- package/dist/utils/marketCapHelpers.mjs +1 -1
- package/dist/utils/tokenAddressMiner.js +8 -8
- package/dist/utils/tokenAddressMiner.mjs +7 -7
- package/package.json +2 -2
- package/dist/chunk-2ZM4JVFC.js.map +0 -1
- package/dist/chunk-3MVW6UIW.js.map +0 -1
- package/dist/chunk-3PNCB4W5.js +0 -4
- package/dist/chunk-3XYDN2XB.js.map +0 -1
- package/dist/chunk-5TL5V6UX.mjs +0 -3
- package/dist/chunk-5VV7STYK.js.map +0 -1
- package/dist/chunk-64ZQRKG3.mjs.map +0 -1
- package/dist/chunk-ADAAU4F5.mjs.map +0 -1
- package/dist/chunk-AZOBEWP3.mjs.map +0 -1
- package/dist/chunk-COOVGAOE.js.map +0 -1
- package/dist/chunk-CS6FVODR.mjs.map +0 -1
- package/dist/chunk-CUB4F546.js.map +0 -1
- package/dist/chunk-E2NF4AQB.mjs.map +0 -1
- package/dist/chunk-FVTTG72Z.mjs.map +0 -1
- package/dist/chunk-HJ4AS5DZ.mjs.map +0 -1
- package/dist/chunk-KITPRKQ4.mjs.map +0 -1
- package/dist/chunk-LPA32BIK.mjs.map +0 -1
- package/dist/chunk-M2EMKIP5.mjs.map +0 -1
- package/dist/chunk-MT34O3YL.js.map +0 -1
- package/dist/chunk-OF7BIKXV.js.map +0 -1
- package/dist/chunk-OGYWNJGI.js.map +0 -1
- package/dist/chunk-OROTK4OT.js.map +0 -1
- package/dist/chunk-QFQXHDC7.mjs.map +0 -1
- package/dist/chunk-QQEOKYEX.js.map +0 -1
- package/dist/chunk-RLUMYHPI.js.map +0 -1
- package/dist/chunk-SD7BHT2F.mjs +0 -3
- package/dist/chunk-SMTHFPBA.js.map +0 -1
- package/dist/chunk-VGCXJRUV.mjs.map +0 -1
- package/dist/chunk-VGOEXLQ2.js.map +0 -1
- package/dist/chunk-VK5HAWX6.mjs.map +0 -1
- package/dist/chunk-WDSV4O6T.mjs.map +0 -1
- package/dist/chunk-WKKOBMXR.js.map +0 -1
- package/dist/chunk-WTS75RUC.js +0 -4
- package/dist/chunk-ZRNPHFP3.mjs.map +0 -1
package/dist/types.d.mts
CHANGED
|
@@ -105,6 +105,47 @@ interface MulticurvePoolState {
|
|
|
105
105
|
poolKey: V4PoolKey;
|
|
106
106
|
farTick: number;
|
|
107
107
|
}
|
|
108
|
+
interface RehypeDopplerHookMigratorConfig {
|
|
109
|
+
hookAddress?: Address;
|
|
110
|
+
buybackDestination: Address;
|
|
111
|
+
customFee: number;
|
|
112
|
+
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
113
|
+
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
116
|
+
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
117
|
+
*/
|
|
118
|
+
assetBuybackPercentWad?: bigint;
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
121
|
+
*/
|
|
122
|
+
numeraireBuybackPercentWad?: bigint;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
125
|
+
*/
|
|
126
|
+
beneficiaryPercentWad?: bigint;
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
129
|
+
*/
|
|
130
|
+
lpPercentWad?: bigint;
|
|
131
|
+
}
|
|
132
|
+
interface DopplerHookMigrationConfig {
|
|
133
|
+
type: 'dopplerHook';
|
|
134
|
+
fee: number;
|
|
135
|
+
useDynamicFee?: boolean;
|
|
136
|
+
tickSpacing: number;
|
|
137
|
+
lockDuration: number;
|
|
138
|
+
beneficiaries: BeneficiaryData[];
|
|
139
|
+
hook?: {
|
|
140
|
+
hookAddress: Address;
|
|
141
|
+
onInitializationCalldata?: `0x${string}`;
|
|
142
|
+
};
|
|
143
|
+
rehype?: RehypeDopplerHookMigratorConfig;
|
|
144
|
+
proceedsSplit?: {
|
|
145
|
+
recipient: Address;
|
|
146
|
+
share: bigint;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
108
149
|
type MigrationConfig = {
|
|
109
150
|
type: 'uniswapV2';
|
|
110
151
|
} | {
|
|
@@ -115,7 +156,7 @@ type MigrationConfig = {
|
|
|
115
156
|
lockDuration: number;
|
|
116
157
|
beneficiaries: BeneficiaryData[];
|
|
117
158
|
};
|
|
118
|
-
} | {
|
|
159
|
+
} | DopplerHookMigrationConfig | {
|
|
119
160
|
type: 'noOp';
|
|
120
161
|
};
|
|
121
162
|
interface CreateStaticAuctionParams<C extends SupportedChainId = SupportedChainId> {
|
|
@@ -478,14 +519,50 @@ interface MulticurveBundleExactInResult {
|
|
|
478
519
|
amountOut: bigint;
|
|
479
520
|
gasEstimate: bigint;
|
|
480
521
|
}
|
|
522
|
+
interface RehypeFeeDistributionInfo {
|
|
523
|
+
assetFeesToAssetBuybackWad: bigint;
|
|
524
|
+
assetFeesToNumeraireBuybackWad: bigint;
|
|
525
|
+
assetFeesToBeneficiaryWad: bigint;
|
|
526
|
+
assetFeesToLpWad: bigint;
|
|
527
|
+
numeraireFeesToAssetBuybackWad: bigint;
|
|
528
|
+
numeraireFeesToNumeraireBuybackWad: bigint;
|
|
529
|
+
numeraireFeesToBeneficiaryWad: bigint;
|
|
530
|
+
numeraireFeesToLpWad: bigint;
|
|
531
|
+
}
|
|
532
|
+
declare enum RehypeFeeRoutingMode {
|
|
533
|
+
DirectBuyback = 0,
|
|
534
|
+
RouteToBeneficiaryFees = 1
|
|
535
|
+
}
|
|
481
536
|
interface RehypeDopplerHookConfig {
|
|
482
537
|
hookAddress: Address;
|
|
483
538
|
buybackDestination: Address;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
539
|
+
startFee?: number;
|
|
540
|
+
endFee?: number;
|
|
541
|
+
durationSeconds?: number | bigint;
|
|
542
|
+
startingTime?: number | bigint | Date;
|
|
543
|
+
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
544
|
+
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
545
|
+
/**
|
|
546
|
+
* @deprecated Use startFee/endFee instead. When provided alone, maps to startFee=endFee=customFee.
|
|
547
|
+
*/
|
|
548
|
+
customFee?: number;
|
|
549
|
+
/**
|
|
550
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
551
|
+
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
552
|
+
*/
|
|
553
|
+
assetBuybackPercentWad?: bigint;
|
|
554
|
+
/**
|
|
555
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
556
|
+
*/
|
|
557
|
+
numeraireBuybackPercentWad?: bigint;
|
|
558
|
+
/**
|
|
559
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
560
|
+
*/
|
|
561
|
+
beneficiaryPercentWad?: bigint;
|
|
562
|
+
/**
|
|
563
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
564
|
+
*/
|
|
565
|
+
lpPercentWad?: bigint;
|
|
489
566
|
graduationCalldata?: `0x${string}`;
|
|
490
567
|
graduationMarketCap?: number;
|
|
491
568
|
numerairePrice?: number;
|
|
@@ -567,13 +644,19 @@ interface ModuleAddressOverrides {
|
|
|
567
644
|
v4ScheduledMulticurveInitializer?: Address;
|
|
568
645
|
v4DecayMulticurveInitializer?: Address;
|
|
569
646
|
dopplerHookInitializer?: Address;
|
|
647
|
+
rehypeDopplerHookInitializer?: Address;
|
|
648
|
+
/**
|
|
649
|
+
* @deprecated Use rehypeDopplerHookInitializer instead.
|
|
650
|
+
*/
|
|
570
651
|
rehypeDopplerHook?: Address;
|
|
571
652
|
governanceFactory?: Address;
|
|
572
653
|
poolManager?: Address;
|
|
573
654
|
dopplerDeployer?: Address;
|
|
574
655
|
v2Migrator?: Address;
|
|
575
656
|
v4Migrator?: Address;
|
|
657
|
+
dopplerHookMigrator?: Address;
|
|
658
|
+
rehypeDopplerHookMigrator?: Address;
|
|
576
659
|
noOpMigrator?: Address;
|
|
577
660
|
}
|
|
578
661
|
|
|
579
|
-
export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicAuctionTickParams, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceLaunchpad, type GovernanceNoOp, type GovernanceOption, type HookInfo, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, type MulticurveTickParams, type MulticurveTickRangeParams, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type RehypeDopplerHookConfig, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticAuctionTickParams, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TickToMarketCapParams, type TokenConfig, type V4PoolKey, type VestingConfig, isLaunchpadEnabledChain, isNoOpEnabledChain };
|
|
662
|
+
export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerHookMigrationConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicAuctionTickParams, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceLaunchpad, type GovernanceNoOp, type GovernanceOption, type HookInfo, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, type MulticurveTickParams, type MulticurveTickRangeParams, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type RehypeDopplerHookConfig, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticAuctionTickParams, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TickToMarketCapParams, type TokenConfig, type V4PoolKey, type VestingConfig, isLaunchpadEnabledChain, isNoOpEnabledChain };
|
package/dist/types.d.ts
CHANGED
|
@@ -105,6 +105,47 @@ interface MulticurvePoolState {
|
|
|
105
105
|
poolKey: V4PoolKey;
|
|
106
106
|
farTick: number;
|
|
107
107
|
}
|
|
108
|
+
interface RehypeDopplerHookMigratorConfig {
|
|
109
|
+
hookAddress?: Address;
|
|
110
|
+
buybackDestination: Address;
|
|
111
|
+
customFee: number;
|
|
112
|
+
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
113
|
+
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
116
|
+
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
117
|
+
*/
|
|
118
|
+
assetBuybackPercentWad?: bigint;
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
121
|
+
*/
|
|
122
|
+
numeraireBuybackPercentWad?: bigint;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
125
|
+
*/
|
|
126
|
+
beneficiaryPercentWad?: bigint;
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
129
|
+
*/
|
|
130
|
+
lpPercentWad?: bigint;
|
|
131
|
+
}
|
|
132
|
+
interface DopplerHookMigrationConfig {
|
|
133
|
+
type: 'dopplerHook';
|
|
134
|
+
fee: number;
|
|
135
|
+
useDynamicFee?: boolean;
|
|
136
|
+
tickSpacing: number;
|
|
137
|
+
lockDuration: number;
|
|
138
|
+
beneficiaries: BeneficiaryData[];
|
|
139
|
+
hook?: {
|
|
140
|
+
hookAddress: Address;
|
|
141
|
+
onInitializationCalldata?: `0x${string}`;
|
|
142
|
+
};
|
|
143
|
+
rehype?: RehypeDopplerHookMigratorConfig;
|
|
144
|
+
proceedsSplit?: {
|
|
145
|
+
recipient: Address;
|
|
146
|
+
share: bigint;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
108
149
|
type MigrationConfig = {
|
|
109
150
|
type: 'uniswapV2';
|
|
110
151
|
} | {
|
|
@@ -115,7 +156,7 @@ type MigrationConfig = {
|
|
|
115
156
|
lockDuration: number;
|
|
116
157
|
beneficiaries: BeneficiaryData[];
|
|
117
158
|
};
|
|
118
|
-
} | {
|
|
159
|
+
} | DopplerHookMigrationConfig | {
|
|
119
160
|
type: 'noOp';
|
|
120
161
|
};
|
|
121
162
|
interface CreateStaticAuctionParams<C extends SupportedChainId = SupportedChainId> {
|
|
@@ -478,14 +519,50 @@ interface MulticurveBundleExactInResult {
|
|
|
478
519
|
amountOut: bigint;
|
|
479
520
|
gasEstimate: bigint;
|
|
480
521
|
}
|
|
522
|
+
interface RehypeFeeDistributionInfo {
|
|
523
|
+
assetFeesToAssetBuybackWad: bigint;
|
|
524
|
+
assetFeesToNumeraireBuybackWad: bigint;
|
|
525
|
+
assetFeesToBeneficiaryWad: bigint;
|
|
526
|
+
assetFeesToLpWad: bigint;
|
|
527
|
+
numeraireFeesToAssetBuybackWad: bigint;
|
|
528
|
+
numeraireFeesToNumeraireBuybackWad: bigint;
|
|
529
|
+
numeraireFeesToBeneficiaryWad: bigint;
|
|
530
|
+
numeraireFeesToLpWad: bigint;
|
|
531
|
+
}
|
|
532
|
+
declare enum RehypeFeeRoutingMode {
|
|
533
|
+
DirectBuyback = 0,
|
|
534
|
+
RouteToBeneficiaryFees = 1
|
|
535
|
+
}
|
|
481
536
|
interface RehypeDopplerHookConfig {
|
|
482
537
|
hookAddress: Address;
|
|
483
538
|
buybackDestination: Address;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
539
|
+
startFee?: number;
|
|
540
|
+
endFee?: number;
|
|
541
|
+
durationSeconds?: number | bigint;
|
|
542
|
+
startingTime?: number | bigint | Date;
|
|
543
|
+
feeRoutingMode?: RehypeFeeRoutingMode | 'directBuyback' | 'routeToBeneficiaryFees';
|
|
544
|
+
feeDistributionInfo?: RehypeFeeDistributionInfo;
|
|
545
|
+
/**
|
|
546
|
+
* @deprecated Use startFee/endFee instead. When provided alone, maps to startFee=endFee=customFee.
|
|
547
|
+
*/
|
|
548
|
+
customFee?: number;
|
|
549
|
+
/**
|
|
550
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
551
|
+
* If feeDistributionInfo is omitted, legacy percentages are mirrored to both rows.
|
|
552
|
+
*/
|
|
553
|
+
assetBuybackPercentWad?: bigint;
|
|
554
|
+
/**
|
|
555
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
556
|
+
*/
|
|
557
|
+
numeraireBuybackPercentWad?: bigint;
|
|
558
|
+
/**
|
|
559
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
560
|
+
*/
|
|
561
|
+
beneficiaryPercentWad?: bigint;
|
|
562
|
+
/**
|
|
563
|
+
* @deprecated Use feeDistributionInfo.* fields instead.
|
|
564
|
+
*/
|
|
565
|
+
lpPercentWad?: bigint;
|
|
489
566
|
graduationCalldata?: `0x${string}`;
|
|
490
567
|
graduationMarketCap?: number;
|
|
491
568
|
numerairePrice?: number;
|
|
@@ -567,13 +644,19 @@ interface ModuleAddressOverrides {
|
|
|
567
644
|
v4ScheduledMulticurveInitializer?: Address;
|
|
568
645
|
v4DecayMulticurveInitializer?: Address;
|
|
569
646
|
dopplerHookInitializer?: Address;
|
|
647
|
+
rehypeDopplerHookInitializer?: Address;
|
|
648
|
+
/**
|
|
649
|
+
* @deprecated Use rehypeDopplerHookInitializer instead.
|
|
650
|
+
*/
|
|
570
651
|
rehypeDopplerHook?: Address;
|
|
571
652
|
governanceFactory?: Address;
|
|
572
653
|
poolManager?: Address;
|
|
573
654
|
dopplerDeployer?: Address;
|
|
574
655
|
v2Migrator?: Address;
|
|
575
656
|
v4Migrator?: Address;
|
|
657
|
+
dopplerHookMigrator?: Address;
|
|
658
|
+
rehypeDopplerHookMigrator?: Address;
|
|
576
659
|
noOpMigrator?: Address;
|
|
577
660
|
}
|
|
578
661
|
|
|
579
|
-
export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicAuctionTickParams, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceLaunchpad, type GovernanceNoOp, type GovernanceOption, type HookInfo, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, type MulticurveTickParams, type MulticurveTickRangeParams, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type RehypeDopplerHookConfig, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticAuctionTickParams, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TickToMarketCapParams, type TokenConfig, type V4PoolKey, type VestingConfig, isLaunchpadEnabledChain, isNoOpEnabledChain };
|
|
662
|
+
export { type BeneficiaryData, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateParams, type CreateStaticAuctionParams, type Doppler404TokenConfig, type DopplerHookMigrationConfig, type DopplerSDKConfig, type DynamicAuctionBuildConfig, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicAuctionTickParams, type DynamicMarketCapRange, type GovernanceCustom, type GovernanceDefault, type GovernanceLaunchpad, type GovernanceNoOp, type GovernanceOption, type HookInfo, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type ModuleAddressOverrides, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCurve, type MulticurveDecayFeeSchedule, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurvePoolState, type MulticurveTickParams, type MulticurveTickRangeParams, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type PoolInfo, type PriceRange, type QuoteResult, type RehypeDopplerHookConfig, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type SaleConfig, type StandardTokenConfig, type StaticAuctionBuildConfig, type StaticAuctionMarketCapConfig, type StaticAuctionTickParams, type StaticPoolConfig, type SupportedChain, SupportedChainId, type SupportedPublicClient, type TickRange, type TickToMarketCapParams, type TokenConfig, type V4PoolKey, type VestingConfig, isLaunchpadEnabledChain, isNoOpEnabledChain };
|
package/dist/types.js
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunk65CESA3J_js = require('./chunk-65CESA3J.js');
|
|
4
|
+
require('./chunk-7A4DBBXA.js');
|
|
5
|
+
require('./chunk-PGYTMRP3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "LAUNCHPAD_ENABLED_CHAIN_IDS", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk65CESA3J_js.LAUNCHPAD_ENABLED_CHAIN_IDS; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "LockablePoolStatus", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk65CESA3J_js.LockablePoolStatus; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "NO_OP_ENABLED_CHAIN_IDS", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk65CESA3J_js.NO_OP_ENABLED_CHAIN_IDS; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "RehypeFeeRoutingMode", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunk65CESA3J_js.RehypeFeeRoutingMode; }
|
|
20
24
|
});
|
|
21
25
|
Object.defineProperty(exports, "isLaunchpadEnabledChain", {
|
|
22
26
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk65CESA3J_js.isLaunchpadEnabledChain; }
|
|
24
28
|
});
|
|
25
29
|
Object.defineProperty(exports, "isNoOpEnabledChain", {
|
|
26
30
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk65CESA3J_js.isNoOpEnabledChain; }
|
|
28
32
|
});
|
|
29
33
|
//# sourceMappingURL=types.js.map
|
|
30
34
|
//# sourceMappingURL=types.js.map
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { LAUNCHPAD_ENABLED_CHAIN_IDS, LockablePoolStatus, NO_OP_ENABLED_CHAIN_IDS, isLaunchpadEnabledChain, isNoOpEnabledChain } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { LAUNCHPAD_ENABLED_CHAIN_IDS, LockablePoolStatus, NO_OP_ENABLED_CHAIN_IDS, RehypeFeeRoutingMode, isLaunchpadEnabledChain, isNoOpEnabledChain } from './chunk-WKWP42TD.mjs';
|
|
2
|
+
import './chunk-WDC53TM7.mjs';
|
|
3
|
+
import './chunk-VKSD3KXF.mjs';
|
|
4
4
|
//# sourceMappingURL=types.mjs.map
|
|
5
5
|
//# sourceMappingURL=types.mjs.map
|
package/dist/utils/airlock.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkBQZTELUX_js = require('../chunk-BQZTELUX.js');
|
|
4
|
+
require('../chunk-7A4DBBXA.js');
|
|
5
|
+
require('../chunk-PGYTMRP3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "DEFAULT_AIRLOCK_BENEFICIARY_SHARES", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkBQZTELUX_js.DEFAULT_AIRLOCK_BENEFICIARY_SHARES; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "createAirlockBeneficiary", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkBQZTELUX_js.createAirlockBeneficiary; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getAirlockBeneficiary", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkBQZTELUX_js.getAirlockBeneficiary; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "getAirlockOwner", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkBQZTELUX_js.getAirlockOwner; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=airlock.js.map
|
|
26
26
|
//# sourceMappingURL=airlock.js.map
|
package/dist/utils/airlock.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from '../chunk-5GQJRNFL.mjs';
|
|
2
|
+
import '../chunk-WDC53TM7.mjs';
|
|
3
|
+
import '../chunk-VKSD3KXF.mjs';
|
|
4
4
|
//# sourceMappingURL=airlock.mjs.map
|
|
5
5
|
//# sourceMappingURL=airlock.mjs.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
import { RehypeDopplerHookMigratorConfig, RehypeFeeRoutingMode, RehypeFeeDistributionInfo } from '../types.mjs';
|
|
3
|
+
import 'viem/chains';
|
|
4
|
+
import '../addresses.mjs';
|
|
5
|
+
|
|
6
|
+
type NormalizedRehypeDopplerHookMigratorConfig = {
|
|
7
|
+
buybackDestination: Address;
|
|
8
|
+
customFee: number;
|
|
9
|
+
feeRoutingMode: RehypeFeeRoutingMode;
|
|
10
|
+
feeDistributionInfo: RehypeFeeDistributionInfo;
|
|
11
|
+
};
|
|
12
|
+
declare function normalizeRehypeDopplerHookMigratorConfig(config: RehypeDopplerHookMigratorConfig): NormalizedRehypeDopplerHookMigratorConfig;
|
|
13
|
+
declare function encodeRehypeDopplerHookMigratorCalldata(params: {
|
|
14
|
+
numeraire: Address;
|
|
15
|
+
config: RehypeDopplerHookMigratorConfig;
|
|
16
|
+
}): Hex;
|
|
17
|
+
|
|
18
|
+
export { encodeRehypeDopplerHookMigratorCalldata, normalizeRehypeDopplerHookMigratorConfig };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
import { RehypeDopplerHookMigratorConfig, RehypeFeeRoutingMode, RehypeFeeDistributionInfo } from '../types.js';
|
|
3
|
+
import 'viem/chains';
|
|
4
|
+
import '../addresses.js';
|
|
5
|
+
|
|
6
|
+
type NormalizedRehypeDopplerHookMigratorConfig = {
|
|
7
|
+
buybackDestination: Address;
|
|
8
|
+
customFee: number;
|
|
9
|
+
feeRoutingMode: RehypeFeeRoutingMode;
|
|
10
|
+
feeDistributionInfo: RehypeFeeDistributionInfo;
|
|
11
|
+
};
|
|
12
|
+
declare function normalizeRehypeDopplerHookMigratorConfig(config: RehypeDopplerHookMigratorConfig): NormalizedRehypeDopplerHookMigratorConfig;
|
|
13
|
+
declare function encodeRehypeDopplerHookMigratorCalldata(params: {
|
|
14
|
+
numeraire: Address;
|
|
15
|
+
config: RehypeDopplerHookMigratorConfig;
|
|
16
|
+
}): Hex;
|
|
17
|
+
|
|
18
|
+
export { encodeRehypeDopplerHookMigratorCalldata, normalizeRehypeDopplerHookMigratorConfig };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQOYI7WCH_js = require('../chunk-QOYI7WCH.js');
|
|
4
|
+
require('../chunk-6BQY5EPB.js');
|
|
5
|
+
require('../chunk-65CESA3J.js');
|
|
6
|
+
require('../chunk-7A4DBBXA.js');
|
|
7
|
+
require('../chunk-PGYTMRP3.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "encodeRehypeDopplerHookMigratorCalldata", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkQOYI7WCH_js.encodeRehypeDopplerHookMigratorCalldata; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "normalizeRehypeDopplerHookMigratorConfig", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkQOYI7WCH_js.normalizeRehypeDopplerHookMigratorConfig; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=dopplerHookMigrator.js.map
|
|
20
|
+
//# sourceMappingURL=dopplerHookMigrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dopplerHookMigrator.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { encodeRehypeDopplerHookMigratorCalldata, normalizeRehypeDopplerHookMigratorConfig } from '../chunk-IUZ3BBQP.mjs';
|
|
2
|
+
import '../chunk-IWJOPXYN.mjs';
|
|
3
|
+
import '../chunk-WKWP42TD.mjs';
|
|
4
|
+
import '../chunk-WDC53TM7.mjs';
|
|
5
|
+
import '../chunk-VKSD3KXF.mjs';
|
|
6
|
+
//# sourceMappingURL=dopplerHookMigrator.mjs.map
|
|
7
|
+
//# sourceMappingURL=dopplerHookMigrator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dopplerHookMigrator.mjs"}
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ export { decodeBalanceDelta } from './balanceDelta.mjs';
|
|
|
6
6
|
export { computePoolId } from './poolKey.mjs';
|
|
7
7
|
export { computeOptimalGamma } from './computeOptimalGamma.mjs';
|
|
8
8
|
export { isToken0Expected } from './isToken0Expected.mjs';
|
|
9
|
+
export { encodeRehypeDopplerHookMigratorCalldata } from './dopplerHookMigrator.mjs';
|
|
9
10
|
export { applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters } from './marketCapHelpers.mjs';
|
|
10
11
|
export { MarketCapRange, MarketCapValidationResult } from '../types.mjs';
|
|
11
12
|
import 'viem';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { decodeBalanceDelta } from './balanceDelta.js';
|
|
|
6
6
|
export { computePoolId } from './poolKey.js';
|
|
7
7
|
export { computeOptimalGamma } from './computeOptimalGamma.js';
|
|
8
8
|
export { isToken0Expected } from './isToken0Expected.js';
|
|
9
|
+
export { encodeRehypeDopplerHookMigratorCalldata } from './dopplerHookMigrator.js';
|
|
9
10
|
export { applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters } from './marketCapHelpers.js';
|
|
10
11
|
export { MarketCapRange, MarketCapValidationResult } from '../types.js';
|
|
11
12
|
import 'viem';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,78 +1,89 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../chunk-
|
|
3
|
+
require('../chunk-DSYPZETD.js');
|
|
4
|
+
var chunkWNUB3UTT_js = require('../chunk-WNUB3UTT.js');
|
|
4
5
|
var chunkUPVKABAV_js = require('../chunk-UPVKABAV.js');
|
|
5
|
-
var
|
|
6
|
+
var chunkQOYI7WCH_js = require('../chunk-QOYI7WCH.js');
|
|
7
|
+
var chunkFNUBKONK_js = require('../chunk-FNUBKONK.js');
|
|
6
8
|
var chunk6H6X3VTZ_js = require('../chunk-6H6X3VTZ.js');
|
|
7
9
|
var chunk7M57PU6V_js = require('../chunk-7M57PU6V.js');
|
|
8
10
|
var chunkKHUE77HC_js = require('../chunk-KHUE77HC.js');
|
|
9
11
|
var chunk4VWQNNNW_js = require('../chunk-4VWQNNNW.js');
|
|
10
|
-
var
|
|
11
|
-
var chunkS4IZ5ATO_js = require('../chunk-S4IZ5ATO.js');
|
|
12
|
+
var chunkBQZTELUX_js = require('../chunk-BQZTELUX.js');
|
|
12
13
|
var chunkXSJTASPK_js = require('../chunk-XSJTASPK.js');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-6BQY5EPB.js');
|
|
15
|
+
require('../chunk-65CESA3J.js');
|
|
16
|
+
require('../chunk-7A4DBBXA.js');
|
|
17
|
+
require('../chunk-PGYTMRP3.js');
|
|
18
|
+
require('../chunk-MU56HCUI.js');
|
|
16
19
|
require('../chunk-4XN6DQBW.js');
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
20
|
-
require('../chunk-
|
|
21
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-QRTABC4Z.js');
|
|
21
|
+
require('../chunk-J62YDWIK.js');
|
|
22
|
+
require('../chunk-XMFOZYNI.js');
|
|
23
|
+
require('../chunk-QAPQGDWK.js');
|
|
24
|
+
require('../chunk-5TQOT6CW.js');
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
|
|
28
|
+
Object.defineProperty(exports, "mineTokenAddress", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkWNUB3UTT_js.mineTokenAddress; }
|
|
31
|
+
});
|
|
25
32
|
Object.defineProperty(exports, "computeOptimalGamma", {
|
|
26
33
|
enumerable: true,
|
|
27
34
|
get: function () { return chunkUPVKABAV_js.computeOptimalGamma; }
|
|
28
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "encodeRehypeDopplerHookMigratorCalldata", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkQOYI7WCH_js.encodeRehypeDopplerHookMigratorCalldata; }
|
|
39
|
+
});
|
|
29
40
|
Object.defineProperty(exports, "applyTickOffsets", {
|
|
30
41
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkFNUBKONK_js.applyTickOffsets; }
|
|
32
43
|
});
|
|
33
44
|
Object.defineProperty(exports, "getMaxTickRounded", {
|
|
34
45
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkFNUBKONK_js.getMaxTickRounded; }
|
|
36
47
|
});
|
|
37
48
|
Object.defineProperty(exports, "isToken1", {
|
|
38
49
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkFNUBKONK_js.isToken1; }
|
|
40
51
|
});
|
|
41
52
|
Object.defineProperty(exports, "marketCapToTickForMulticurve", {
|
|
42
53
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkFNUBKONK_js.marketCapToTickForMulticurve; }
|
|
44
55
|
});
|
|
45
56
|
Object.defineProperty(exports, "marketCapToTicksForDynamicAuction", {
|
|
46
57
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkFNUBKONK_js.marketCapToTicksForDynamicAuction; }
|
|
48
59
|
});
|
|
49
60
|
Object.defineProperty(exports, "marketCapToTicksForMulticurve", {
|
|
50
61
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkFNUBKONK_js.marketCapToTicksForMulticurve; }
|
|
52
63
|
});
|
|
53
64
|
Object.defineProperty(exports, "marketCapToTicksForStaticAuction", {
|
|
54
65
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkFNUBKONK_js.marketCapToTicksForStaticAuction; }
|
|
56
67
|
});
|
|
57
68
|
Object.defineProperty(exports, "marketCapToTokenPrice", {
|
|
58
69
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkFNUBKONK_js.marketCapToTokenPrice; }
|
|
60
71
|
});
|
|
61
72
|
Object.defineProperty(exports, "ratioToTick", {
|
|
62
73
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkFNUBKONK_js.ratioToTick; }
|
|
64
75
|
});
|
|
65
76
|
Object.defineProperty(exports, "tickToMarketCap", {
|
|
66
77
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkFNUBKONK_js.tickToMarketCap; }
|
|
68
79
|
});
|
|
69
80
|
Object.defineProperty(exports, "tokenPriceToRatio", {
|
|
70
81
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkFNUBKONK_js.tokenPriceToRatio; }
|
|
72
83
|
});
|
|
73
84
|
Object.defineProperty(exports, "validateMarketCapParameters", {
|
|
74
85
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkFNUBKONK_js.validateMarketCapParameters; }
|
|
76
87
|
});
|
|
77
88
|
Object.defineProperty(exports, "isToken0Expected", {
|
|
78
89
|
enumerable: true,
|
|
@@ -162,25 +173,21 @@ Object.defineProperty(exports, "tickToPrice", {
|
|
|
162
173
|
enumerable: true,
|
|
163
174
|
get: function () { return chunk4VWQNNNW_js.tickToPrice; }
|
|
164
175
|
});
|
|
165
|
-
Object.defineProperty(exports, "mineTokenAddress", {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () { return chunkOROTK4OT_js.mineTokenAddress; }
|
|
168
|
-
});
|
|
169
176
|
Object.defineProperty(exports, "DEFAULT_AIRLOCK_BENEFICIARY_SHARES", {
|
|
170
177
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkBQZTELUX_js.DEFAULT_AIRLOCK_BENEFICIARY_SHARES; }
|
|
172
179
|
});
|
|
173
180
|
Object.defineProperty(exports, "createAirlockBeneficiary", {
|
|
174
181
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkBQZTELUX_js.createAirlockBeneficiary; }
|
|
176
183
|
});
|
|
177
184
|
Object.defineProperty(exports, "getAirlockBeneficiary", {
|
|
178
185
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkBQZTELUX_js.getAirlockBeneficiary; }
|
|
180
187
|
});
|
|
181
188
|
Object.defineProperty(exports, "getAirlockOwner", {
|
|
182
189
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkBQZTELUX_js.getAirlockOwner; }
|
|
184
191
|
});
|
|
185
192
|
Object.defineProperty(exports, "decodeBalanceDelta", {
|
|
186
193
|
enumerable: true,
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import '../chunk-
|
|
1
|
+
import '../chunk-7ZUV6WPX.mjs';
|
|
2
|
+
export { mineTokenAddress } from '../chunk-YBK6EBA5.mjs';
|
|
2
3
|
export { computeOptimalGamma } from '../chunk-H3B54PFV.mjs';
|
|
3
|
-
export {
|
|
4
|
+
export { encodeRehypeDopplerHookMigratorCalldata } from '../chunk-IUZ3BBQP.mjs';
|
|
5
|
+
export { applyTickOffsets, getMaxTickRounded, isToken1, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, ratioToTick, tickToMarketCap, tokenPriceToRatio, validateMarketCapParameters } from '../chunk-GSBQIVME.mjs';
|
|
4
6
|
export { isToken0Expected } from '../chunk-ABT6AT7C.mjs';
|
|
5
7
|
export { computePoolId } from '../chunk-CFAAYL5M.mjs';
|
|
6
8
|
export { calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, estimatePriceAtEpoch, estimateSlippage, formatTickAsPrice } from '../chunk-CWTGQAOG.mjs';
|
|
7
9
|
export { MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, Q96, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, priceToSqrtPriceX96, priceToTick, sqrtPriceX96ToPrice, tickToPrice } from '../chunk-25GEBO3B.mjs';
|
|
8
|
-
export {
|
|
9
|
-
export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from '../chunk-AZH2P4JK.mjs';
|
|
10
|
+
export { DEFAULT_AIRLOCK_BENEFICIARY_SHARES, createAirlockBeneficiary, getAirlockBeneficiary, getAirlockOwner } from '../chunk-5GQJRNFL.mjs';
|
|
10
11
|
export { decodeBalanceDelta } from '../chunk-KOAC3BBP.mjs';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-IWJOPXYN.mjs';
|
|
13
|
+
import '../chunk-WKWP42TD.mjs';
|
|
14
|
+
import '../chunk-WDC53TM7.mjs';
|
|
15
|
+
import '../chunk-VKSD3KXF.mjs';
|
|
16
|
+
import '../chunk-JLUOFAE4.mjs';
|
|
14
17
|
import '../chunk-DOUF6NON.mjs';
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-VYSOAGRU.mjs';
|
|
19
|
+
import '../chunk-U3GOWK6J.mjs';
|
|
20
|
+
import '../chunk-SWWLOD7Q.mjs';
|
|
21
|
+
import '../chunk-OHA5KJ2M.mjs';
|
|
22
|
+
import '../chunk-3NMGCQJ4.mjs';
|
|
20
23
|
//# sourceMappingURL=index.mjs.map
|
|
21
24
|
//# sourceMappingURL=index.mjs.map
|