@whetstone-research/doppler-sdk 1.0.34 → 1.0.35
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 +4 -0
- package/dist/{chunk-PSLY7M7C.js → chunk-4N5U2MXE.js} +305 -4
- package/dist/chunk-4N5U2MXE.js.map +1 -0
- package/dist/{chunk-7PXLEMBJ.cjs → chunk-AANZBN5X.cjs} +345 -36
- package/dist/chunk-AANZBN5X.cjs.map +1 -0
- package/dist/{chunk-4CI2M2F6.cjs → chunk-O2Z5ORGF.cjs} +39 -2
- package/dist/chunk-O2Z5ORGF.cjs.map +1 -0
- package/dist/{chunk-AFXFT3BD.js → chunk-PWBQLC5V.js} +39 -3
- package/dist/chunk-PWBQLC5V.js.map +1 -0
- package/dist/evm/index.cjs +343 -79
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +118 -5
- package/dist/evm/index.d.ts +118 -5
- package/dist/evm/index.js +341 -81
- package/dist/evm/index.js.map +1 -1
- package/dist/{pda-44IHEORD.cjs → pda-4VCQGO3F.cjs} +22 -18
- package/dist/{pda-44IHEORD.cjs.map → pda-4VCQGO3F.cjs.map} +1 -1
- package/dist/pda-IRVGRDQX.js +4 -0
- package/dist/pda-IRVGRDQX.js.map +1 -0
- package/dist/solana/index.cjs +481 -436
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +243 -11
- package/dist/solana/index.d.ts +243 -11
- package/dist/solana/index.js +62 -17
- package/dist/solana/index.js.map +1 -1
- package/dist/solana/react/index.cjs +45 -45
- package/dist/solana/react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-4CI2M2F6.cjs.map +0 -1
- package/dist/chunk-7PXLEMBJ.cjs.map +0 -1
- package/dist/chunk-AFXFT3BD.js.map +0 -1
- package/dist/chunk-PSLY7M7C.js.map +0 -1
- package/dist/pda-WJVDXQPW.js +0 -4
- package/dist/pda-WJVDXQPW.js.map +0 -1
package/dist/evm/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, WalletClient, Hex, Hash, Account, PublicClient } from 'viem';
|
|
1
|
+
import { Address, WalletClient, Hex, Hash, Account, PublicClient, TransactionReceipt } from 'viem';
|
|
2
2
|
import { mainnet, sepolia, base, baseSepolia, ink, unichain } from 'viem/chains';
|
|
3
3
|
|
|
4
4
|
declare const CHAIN_IDS: {
|
|
@@ -823,6 +823,38 @@ interface CreateParams {
|
|
|
823
823
|
integrator: Address;
|
|
824
824
|
salt: `0x${string}`;
|
|
825
825
|
}
|
|
826
|
+
interface PrepareCreateMulticurveOptions {
|
|
827
|
+
account: Address;
|
|
828
|
+
}
|
|
829
|
+
type MulticurveCreateGasEstimate = {
|
|
830
|
+
status: 'estimated';
|
|
831
|
+
gas: bigint;
|
|
832
|
+
} | {
|
|
833
|
+
status: 'unavailable';
|
|
834
|
+
};
|
|
835
|
+
interface MulticurveCreatePrediction {
|
|
836
|
+
tokenAddress: Address;
|
|
837
|
+
poolOrHookAddress: Address;
|
|
838
|
+
governanceAddress: Address;
|
|
839
|
+
timelockAddress: Address;
|
|
840
|
+
migrationPoolAddress: Address;
|
|
841
|
+
poolKey: V4PoolKey;
|
|
842
|
+
poolId: Hex;
|
|
843
|
+
tokenIsCurrency0: boolean;
|
|
844
|
+
}
|
|
845
|
+
interface PreparedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
846
|
+
chainId: C;
|
|
847
|
+
account: Address;
|
|
848
|
+
airlock: Address;
|
|
849
|
+
createParams: CreateParams;
|
|
850
|
+
prediction: MulticurveCreatePrediction;
|
|
851
|
+
transaction: {
|
|
852
|
+
to: Address;
|
|
853
|
+
data: Hex;
|
|
854
|
+
value: 0n;
|
|
855
|
+
};
|
|
856
|
+
gasEstimate: MulticurveCreateGasEstimate;
|
|
857
|
+
}
|
|
826
858
|
interface ModuleAddressOverrides {
|
|
827
859
|
airlock?: Address;
|
|
828
860
|
tokenFactory?: Address;
|
|
@@ -1048,6 +1080,8 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1048
1080
|
private mineDopplerCompletionSalt;
|
|
1049
1081
|
private mineDopplerHookSalt;
|
|
1050
1082
|
private mineOpeningAuctionHookAddress;
|
|
1083
|
+
private isCreateGasRevert;
|
|
1084
|
+
private resolveInternalCreateGasEstimate;
|
|
1051
1085
|
private resolveCreateGasEstimate;
|
|
1052
1086
|
private isDoppler404Token;
|
|
1053
1087
|
private isDopplerERC20V1Token;
|
|
@@ -1064,6 +1098,8 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1064
1098
|
private validateProceedsSplitConfig;
|
|
1065
1099
|
private resolveMulticurveInitializerMode;
|
|
1066
1100
|
encodeCreateMulticurveParams(params: CreateMulticurveParams<C>): CreateParams;
|
|
1101
|
+
private resolveFinalMulticurveCreate;
|
|
1102
|
+
prepareCreateMulticurve(params: CreateMulticurveParams<C>, options: PrepareCreateMulticurveOptions): Promise<PreparedMulticurveCreate<C>>;
|
|
1067
1103
|
simulateCreateMulticurve(params: CreateMulticurveParams<C>): Promise<{
|
|
1068
1104
|
createParams: CreateParams;
|
|
1069
1105
|
tokenAddress: Address;
|
|
@@ -1196,10 +1232,10 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1196
1232
|
*/
|
|
1197
1233
|
private computePoolId;
|
|
1198
1234
|
/**
|
|
1199
|
-
* Compute the V4
|
|
1200
|
-
* the initializer will register on-chain.
|
|
1235
|
+
* Compute the complete V4 multicurve pool identity from the same pool-key
|
|
1236
|
+
* fields the initializer will register on-chain.
|
|
1201
1237
|
*/
|
|
1202
|
-
private
|
|
1238
|
+
private computeMulticurvePoolIdentity;
|
|
1203
1239
|
private ensureMulticurveBundlerSupport;
|
|
1204
1240
|
}
|
|
1205
1241
|
|
|
@@ -3909,6 +3945,83 @@ declare function encodeRehypeDopplerHookMigratorCalldata(params: {
|
|
|
3909
3945
|
config: RehypeDopplerHookMigratorConfig;
|
|
3910
3946
|
}): Hex;
|
|
3911
3947
|
|
|
3948
|
+
interface ParseAirlockCreateReceiptParams {
|
|
3949
|
+
receipt: TransactionReceipt;
|
|
3950
|
+
expectedAirlock: Address;
|
|
3951
|
+
}
|
|
3952
|
+
interface AirlockCreateResult {
|
|
3953
|
+
airlock: Address;
|
|
3954
|
+
tokenAddress: Address;
|
|
3955
|
+
numeraire: Address;
|
|
3956
|
+
initializer: Address;
|
|
3957
|
+
poolOrHookAddress: Address;
|
|
3958
|
+
transactionHash: Hash;
|
|
3959
|
+
blockNumber: bigint;
|
|
3960
|
+
logIndex: number;
|
|
3961
|
+
}
|
|
3962
|
+
type AirlockCreateReceiptErrorCode = 'RECEIPT_FAILED' | 'WRONG_TRANSACTION_TARGET' | 'WRONG_TRANSACTION_SENDER' | 'MISSING_CREATE_EVENT' | 'MULTIPLE_CREATE_EVENTS' | 'TOKEN_MISMATCH' | 'NUMERAIRE_MISMATCH' | 'INITIALIZER_MISMATCH' | 'POOL_OR_HOOK_MISMATCH' | 'TRANSACTION_HASH_MISMATCH' | 'TRANSACTION_INPUT_MISMATCH' | 'TRANSACTION_VALUE_MISMATCH';
|
|
3963
|
+
declare class AirlockCreateReceiptError extends Error {
|
|
3964
|
+
readonly code: AirlockCreateReceiptErrorCode;
|
|
3965
|
+
readonly expected?: string | number;
|
|
3966
|
+
readonly actual?: string | number | null;
|
|
3967
|
+
constructor(code: AirlockCreateReceiptErrorCode, options?: {
|
|
3968
|
+
expected?: string | number;
|
|
3969
|
+
actual?: string | number | null;
|
|
3970
|
+
});
|
|
3971
|
+
}
|
|
3972
|
+
declare function parseAirlockCreateReceipt({ receipt, expectedAirlock, }: ParseAirlockCreateReceiptParams): AirlockCreateResult | null;
|
|
3973
|
+
interface PreparedMulticurveIdentity<C extends SupportedChainId = SupportedChainId> {
|
|
3974
|
+
chainId: C;
|
|
3975
|
+
tokenAddress: Address;
|
|
3976
|
+
poolOrHookAddress: Address;
|
|
3977
|
+
governanceAddress: Address;
|
|
3978
|
+
timelockAddress: Address;
|
|
3979
|
+
migrationPoolAddress: Address;
|
|
3980
|
+
poolKey: V4PoolKey;
|
|
3981
|
+
poolId: Hash;
|
|
3982
|
+
tokenIsCurrency0: boolean;
|
|
3983
|
+
}
|
|
3984
|
+
interface VerifiedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
3985
|
+
receiptIdentity: AirlockCreateResult;
|
|
3986
|
+
preparedIdentity: PreparedMulticurveIdentity<C>;
|
|
3987
|
+
}
|
|
3988
|
+
type PreparedCreateTransactionClient = {
|
|
3989
|
+
getTransaction(parameters: {
|
|
3990
|
+
hash: Hash;
|
|
3991
|
+
}): Promise<{
|
|
3992
|
+
hash: Hash;
|
|
3993
|
+
from: Address;
|
|
3994
|
+
to: Address | null;
|
|
3995
|
+
input: Hex;
|
|
3996
|
+
value: bigint;
|
|
3997
|
+
}>;
|
|
3998
|
+
};
|
|
3999
|
+
/**
|
|
4000
|
+
* Verifies only facts available in a mined receipt: success, sender, target,
|
|
4001
|
+
* one matching Airlock Create event, and its emitted deployment identity.
|
|
4002
|
+
*
|
|
4003
|
+
* This synchronous check does not retrieve or verify the transaction input or
|
|
4004
|
+
* value. Prepared-only predictions remain separate from receipt-derived facts.
|
|
4005
|
+
*/
|
|
4006
|
+
declare function verifyPreparedCreateReceipt<C extends SupportedChainId>({ prepared, receipt, }: {
|
|
4007
|
+
prepared: PreparedMulticurveCreate<C>;
|
|
4008
|
+
receipt: TransactionReceipt;
|
|
4009
|
+
}): VerifiedMulticurveCreate<C>;
|
|
4010
|
+
/**
|
|
4011
|
+
* Performs the receipt checks in {@link verifyPreparedCreateReceipt}, then
|
|
4012
|
+
* retrieves the mined transaction. Its hash must match the receipt, while its
|
|
4013
|
+
* sender, target, input, and value must match the prepared unsigned transaction.
|
|
4014
|
+
*
|
|
4015
|
+
* This stronger check requires one additional RPC request. It proves that the
|
|
4016
|
+
* prepared protocol call was mined, but does not turn simulation-only
|
|
4017
|
+
* predictions into receipt-derived facts.
|
|
4018
|
+
*/
|
|
4019
|
+
declare function verifyPreparedCreateExecution<C extends SupportedChainId>({ prepared, receipt, publicClient, }: {
|
|
4020
|
+
prepared: PreparedMulticurveCreate<C>;
|
|
4021
|
+
receipt: TransactionReceipt;
|
|
4022
|
+
publicClient: PreparedCreateTransactionClient;
|
|
4023
|
+
}): Promise<VerifiedMulticurveCreate<C>>;
|
|
4024
|
+
|
|
3912
4025
|
/**
|
|
3913
4026
|
* Market cap conversion utilities for token launches
|
|
3914
4027
|
*
|
|
@@ -12446,4 +12559,4 @@ declare const rehypeDopplerHookMigratorAbi: readonly [{
|
|
|
12446
12559
|
|
|
12447
12560
|
declare const VERSION = "1.0.0";
|
|
12448
12561
|
|
|
12449
|
-
export { ADDRESSES, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveDecayFeeSchedule, MulticurveFees, type MulticurveFeesOptions, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurveMaxTickLiquidityParams, type MulticurvePendingFees, type MulticurveFeesOptions as MulticurvePendingFeesOptions, MulticurvePool, type MulticurvePoolState, type MulticurveTokenPendingFeeBreakdown, type MulticurveTokenPendingFees, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type NormalizedRehypeDopplerHookInitializerConfig, OPENING_AUCTION_FLAGS, OPENING_AUCTION_PHASE_ACTIVE, OPENING_AUCTION_PHASE_CLOSED, OPENING_AUCTION_PHASE_NOT_STARTED, OPENING_AUCTION_PHASE_SETTLED, OPENING_AUCTION_STATUS_ACTIVE, OPENING_AUCTION_STATUS_DOPPLER_ACTIVE, OPENING_AUCTION_STATUS_EXITED, OPENING_AUCTION_STATUS_UNINITIALIZED, OpeningAuction, type OpeningAuctionAuctionSettledEvent, type OpeningAuctionBidArgs, type OpeningAuctionBidConstraints, type OpeningAuctionBidLookupArgs, OpeningAuctionBidManager, type OpeningAuctionBidManagerConfig, type OpeningAuctionBidPlacedEvent, type OpeningAuctionBidPositionInfo, type OpeningAuctionBidQuote, type OpeningAuctionBidSimulationResult, type OpeningAuctionBidStatus, type OpeningAuctionBidValidationResult, type OpeningAuctionBidWithdrawnEvent, OpeningAuctionBuilder, _default$3 as OpeningAuctionBytecode, type OpeningAuctionClaimAllIncentivesPreview, type OpeningAuctionClaimAllIncentivesResult, type OpeningAuctionClaimIncentivesSimulationResult, type OpeningAuctionCompleteResult, type OpeningAuctionConfig, type OpeningAuctionCreateResult, type OpeningAuctionDopplerConfig, type OpeningAuctionEstimatedClearingTickUpdatedEvent, type OpeningAuctionIncentiveData, type OpeningAuctionIncentivesClaimedEvent, OpeningAuctionLifecycle, type OpeningAuctionModifyLiquidityParams, type OpeningAuctionModifyLiquiditySimulationResult, type OpeningAuctionModuleAddressOverrides, type OpeningAuctionMoveBidArgs, type OpeningAuctionMoveBidResult, type OpeningAuctionMoveBidSimulationResult, type OpeningAuctionOwnerBidInfo, type OpeningAuctionOwnerBidStatus, OpeningAuctionPhase, type OpeningAuctionPhaseChangedEvent, type OpeningAuctionPosition, OpeningAuctionPositionManager, type OpeningAuctionQuoteFromTokenAmountArgs, type OpeningAuctionQuoteFromTokenAmountResult, type OpeningAuctionSettlementData, type OpeningAuctionState, OpeningAuctionStatus, type OpeningAuctionWatchBidPlacedOptions, type OpeningAuctionWatchBidStatusOptions, type OpeningAuctionWatchBidWithdrawnOptions, type OpeningAuctionWatchEstimatedClearingTickOptions, type OpeningAuctionWatchIncentivesClaimedOptions, type OpeningAuctionWatchPhaseChangeOptions, type OpeningAuctionWatchSettlementOptions, type OpeningAuctionWithdrawFullBidArgs, type OpeningAuctionWithdrawFullBidResult, type OpeningAuctionWithdrawFullBidSimulationResult, type PoolInfo, type ProceedsSplitConfig, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookInitializer, type RehypeDopplerHookInitializerConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type RehypePendingFees, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type StreamableFeesConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, TopUpDistributor, type TopUpParams, type TopUpSimulationResult, type TopUpTransaction, type UniswapV2MigrationConfig, type UniswapV2SplitMigrationConfig, type UniswapV4MigrationConfig, type UniswapV4SplitMigrationConfig, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VestingAllocationConfig, type VestingConfig, type VestingScheduleConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerDN404Abi, dopplerERC20V1Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookInitializerData, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, feeClaimsInitializerAbi, feesManagerAbi, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxLiquiditySafeMulticurveTickUpper, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizeBeneficiaries, normalizePoolKey, normalizeRehypeDopplerHookInitializerConfig, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookInitializerAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sortBeneficiaries, sqrtPriceX96ToPrice, streamableFeesLockerAbi, streamableFeesLockerV2Abi, tickToMarketCap, tickToPrice, tokenPriceToRatio, topUpDistributorAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, weth9Abi };
|
|
12562
|
+
export { ADDRESSES, AirlockCreateReceiptError, type AirlockCreateReceiptErrorCode, type AirlockCreateResult, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCreateGasEstimate, type MulticurveCreatePrediction, type MulticurveDecayFeeSchedule, MulticurveFees, type MulticurveFeesOptions, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurveMaxTickLiquidityParams, type MulticurvePendingFees, type MulticurveFeesOptions as MulticurvePendingFeesOptions, MulticurvePool, type MulticurvePoolState, type MulticurveTokenPendingFeeBreakdown, type MulticurveTokenPendingFees, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type NormalizedRehypeDopplerHookInitializerConfig, OPENING_AUCTION_FLAGS, OPENING_AUCTION_PHASE_ACTIVE, OPENING_AUCTION_PHASE_CLOSED, OPENING_AUCTION_PHASE_NOT_STARTED, OPENING_AUCTION_PHASE_SETTLED, OPENING_AUCTION_STATUS_ACTIVE, OPENING_AUCTION_STATUS_DOPPLER_ACTIVE, OPENING_AUCTION_STATUS_EXITED, OPENING_AUCTION_STATUS_UNINITIALIZED, OpeningAuction, type OpeningAuctionAuctionSettledEvent, type OpeningAuctionBidArgs, type OpeningAuctionBidConstraints, type OpeningAuctionBidLookupArgs, OpeningAuctionBidManager, type OpeningAuctionBidManagerConfig, type OpeningAuctionBidPlacedEvent, type OpeningAuctionBidPositionInfo, type OpeningAuctionBidQuote, type OpeningAuctionBidSimulationResult, type OpeningAuctionBidStatus, type OpeningAuctionBidValidationResult, type OpeningAuctionBidWithdrawnEvent, OpeningAuctionBuilder, _default$3 as OpeningAuctionBytecode, type OpeningAuctionClaimAllIncentivesPreview, type OpeningAuctionClaimAllIncentivesResult, type OpeningAuctionClaimIncentivesSimulationResult, type OpeningAuctionCompleteResult, type OpeningAuctionConfig, type OpeningAuctionCreateResult, type OpeningAuctionDopplerConfig, type OpeningAuctionEstimatedClearingTickUpdatedEvent, type OpeningAuctionIncentiveData, type OpeningAuctionIncentivesClaimedEvent, OpeningAuctionLifecycle, type OpeningAuctionModifyLiquidityParams, type OpeningAuctionModifyLiquiditySimulationResult, type OpeningAuctionModuleAddressOverrides, type OpeningAuctionMoveBidArgs, type OpeningAuctionMoveBidResult, type OpeningAuctionMoveBidSimulationResult, type OpeningAuctionOwnerBidInfo, type OpeningAuctionOwnerBidStatus, OpeningAuctionPhase, type OpeningAuctionPhaseChangedEvent, type OpeningAuctionPosition, OpeningAuctionPositionManager, type OpeningAuctionQuoteFromTokenAmountArgs, type OpeningAuctionQuoteFromTokenAmountResult, type OpeningAuctionSettlementData, type OpeningAuctionState, OpeningAuctionStatus, type OpeningAuctionWatchBidPlacedOptions, type OpeningAuctionWatchBidStatusOptions, type OpeningAuctionWatchBidWithdrawnOptions, type OpeningAuctionWatchEstimatedClearingTickOptions, type OpeningAuctionWatchIncentivesClaimedOptions, type OpeningAuctionWatchPhaseChangeOptions, type OpeningAuctionWatchSettlementOptions, type OpeningAuctionWithdrawFullBidArgs, type OpeningAuctionWithdrawFullBidResult, type OpeningAuctionWithdrawFullBidSimulationResult, type ParseAirlockCreateReceiptParams, type PoolInfo, type PrepareCreateMulticurveOptions, type PreparedCreateTransactionClient, type PreparedMulticurveCreate, type PreparedMulticurveIdentity, type ProceedsSplitConfig, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookInitializer, type RehypeDopplerHookInitializerConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type RehypePendingFees, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type StreamableFeesConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, TopUpDistributor, type TopUpParams, type TopUpSimulationResult, type TopUpTransaction, type UniswapV2MigrationConfig, type UniswapV2SplitMigrationConfig, type UniswapV4MigrationConfig, type UniswapV4SplitMigrationConfig, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VerifiedMulticurveCreate, type VestingAllocationConfig, type VestingConfig, type VestingScheduleConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerDN404Abi, dopplerERC20V1Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookInitializerData, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, feeClaimsInitializerAbi, feesManagerAbi, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxLiquiditySafeMulticurveTickUpper, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizeBeneficiaries, normalizePoolKey, normalizeRehypeDopplerHookInitializerConfig, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, parseAirlockCreateReceipt, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookInitializerAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sortBeneficiaries, sqrtPriceX96ToPrice, streamableFeesLockerAbi, streamableFeesLockerV2Abi, tickToMarketCap, tickToPrice, tokenPriceToRatio, topUpDistributorAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, verifyPreparedCreateExecution, verifyPreparedCreateReceipt, weth9Abi };
|
package/dist/evm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, WalletClient, Hex, Hash, Account, PublicClient } from 'viem';
|
|
1
|
+
import { Address, WalletClient, Hex, Hash, Account, PublicClient, TransactionReceipt } from 'viem';
|
|
2
2
|
import { mainnet, sepolia, base, baseSepolia, ink, unichain } from 'viem/chains';
|
|
3
3
|
|
|
4
4
|
declare const CHAIN_IDS: {
|
|
@@ -823,6 +823,38 @@ interface CreateParams {
|
|
|
823
823
|
integrator: Address;
|
|
824
824
|
salt: `0x${string}`;
|
|
825
825
|
}
|
|
826
|
+
interface PrepareCreateMulticurveOptions {
|
|
827
|
+
account: Address;
|
|
828
|
+
}
|
|
829
|
+
type MulticurveCreateGasEstimate = {
|
|
830
|
+
status: 'estimated';
|
|
831
|
+
gas: bigint;
|
|
832
|
+
} | {
|
|
833
|
+
status: 'unavailable';
|
|
834
|
+
};
|
|
835
|
+
interface MulticurveCreatePrediction {
|
|
836
|
+
tokenAddress: Address;
|
|
837
|
+
poolOrHookAddress: Address;
|
|
838
|
+
governanceAddress: Address;
|
|
839
|
+
timelockAddress: Address;
|
|
840
|
+
migrationPoolAddress: Address;
|
|
841
|
+
poolKey: V4PoolKey;
|
|
842
|
+
poolId: Hex;
|
|
843
|
+
tokenIsCurrency0: boolean;
|
|
844
|
+
}
|
|
845
|
+
interface PreparedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
846
|
+
chainId: C;
|
|
847
|
+
account: Address;
|
|
848
|
+
airlock: Address;
|
|
849
|
+
createParams: CreateParams;
|
|
850
|
+
prediction: MulticurveCreatePrediction;
|
|
851
|
+
transaction: {
|
|
852
|
+
to: Address;
|
|
853
|
+
data: Hex;
|
|
854
|
+
value: 0n;
|
|
855
|
+
};
|
|
856
|
+
gasEstimate: MulticurveCreateGasEstimate;
|
|
857
|
+
}
|
|
826
858
|
interface ModuleAddressOverrides {
|
|
827
859
|
airlock?: Address;
|
|
828
860
|
tokenFactory?: Address;
|
|
@@ -1048,6 +1080,8 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1048
1080
|
private mineDopplerCompletionSalt;
|
|
1049
1081
|
private mineDopplerHookSalt;
|
|
1050
1082
|
private mineOpeningAuctionHookAddress;
|
|
1083
|
+
private isCreateGasRevert;
|
|
1084
|
+
private resolveInternalCreateGasEstimate;
|
|
1051
1085
|
private resolveCreateGasEstimate;
|
|
1052
1086
|
private isDoppler404Token;
|
|
1053
1087
|
private isDopplerERC20V1Token;
|
|
@@ -1064,6 +1098,8 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1064
1098
|
private validateProceedsSplitConfig;
|
|
1065
1099
|
private resolveMulticurveInitializerMode;
|
|
1066
1100
|
encodeCreateMulticurveParams(params: CreateMulticurveParams<C>): CreateParams;
|
|
1101
|
+
private resolveFinalMulticurveCreate;
|
|
1102
|
+
prepareCreateMulticurve(params: CreateMulticurveParams<C>, options: PrepareCreateMulticurveOptions): Promise<PreparedMulticurveCreate<C>>;
|
|
1067
1103
|
simulateCreateMulticurve(params: CreateMulticurveParams<C>): Promise<{
|
|
1068
1104
|
createParams: CreateParams;
|
|
1069
1105
|
tokenAddress: Address;
|
|
@@ -1196,10 +1232,10 @@ declare class DopplerFactory<C extends SupportedChainId = SupportedChainId> {
|
|
|
1196
1232
|
*/
|
|
1197
1233
|
private computePoolId;
|
|
1198
1234
|
/**
|
|
1199
|
-
* Compute the V4
|
|
1200
|
-
* the initializer will register on-chain.
|
|
1235
|
+
* Compute the complete V4 multicurve pool identity from the same pool-key
|
|
1236
|
+
* fields the initializer will register on-chain.
|
|
1201
1237
|
*/
|
|
1202
|
-
private
|
|
1238
|
+
private computeMulticurvePoolIdentity;
|
|
1203
1239
|
private ensureMulticurveBundlerSupport;
|
|
1204
1240
|
}
|
|
1205
1241
|
|
|
@@ -3909,6 +3945,83 @@ declare function encodeRehypeDopplerHookMigratorCalldata(params: {
|
|
|
3909
3945
|
config: RehypeDopplerHookMigratorConfig;
|
|
3910
3946
|
}): Hex;
|
|
3911
3947
|
|
|
3948
|
+
interface ParseAirlockCreateReceiptParams {
|
|
3949
|
+
receipt: TransactionReceipt;
|
|
3950
|
+
expectedAirlock: Address;
|
|
3951
|
+
}
|
|
3952
|
+
interface AirlockCreateResult {
|
|
3953
|
+
airlock: Address;
|
|
3954
|
+
tokenAddress: Address;
|
|
3955
|
+
numeraire: Address;
|
|
3956
|
+
initializer: Address;
|
|
3957
|
+
poolOrHookAddress: Address;
|
|
3958
|
+
transactionHash: Hash;
|
|
3959
|
+
blockNumber: bigint;
|
|
3960
|
+
logIndex: number;
|
|
3961
|
+
}
|
|
3962
|
+
type AirlockCreateReceiptErrorCode = 'RECEIPT_FAILED' | 'WRONG_TRANSACTION_TARGET' | 'WRONG_TRANSACTION_SENDER' | 'MISSING_CREATE_EVENT' | 'MULTIPLE_CREATE_EVENTS' | 'TOKEN_MISMATCH' | 'NUMERAIRE_MISMATCH' | 'INITIALIZER_MISMATCH' | 'POOL_OR_HOOK_MISMATCH' | 'TRANSACTION_HASH_MISMATCH' | 'TRANSACTION_INPUT_MISMATCH' | 'TRANSACTION_VALUE_MISMATCH';
|
|
3963
|
+
declare class AirlockCreateReceiptError extends Error {
|
|
3964
|
+
readonly code: AirlockCreateReceiptErrorCode;
|
|
3965
|
+
readonly expected?: string | number;
|
|
3966
|
+
readonly actual?: string | number | null;
|
|
3967
|
+
constructor(code: AirlockCreateReceiptErrorCode, options?: {
|
|
3968
|
+
expected?: string | number;
|
|
3969
|
+
actual?: string | number | null;
|
|
3970
|
+
});
|
|
3971
|
+
}
|
|
3972
|
+
declare function parseAirlockCreateReceipt({ receipt, expectedAirlock, }: ParseAirlockCreateReceiptParams): AirlockCreateResult | null;
|
|
3973
|
+
interface PreparedMulticurveIdentity<C extends SupportedChainId = SupportedChainId> {
|
|
3974
|
+
chainId: C;
|
|
3975
|
+
tokenAddress: Address;
|
|
3976
|
+
poolOrHookAddress: Address;
|
|
3977
|
+
governanceAddress: Address;
|
|
3978
|
+
timelockAddress: Address;
|
|
3979
|
+
migrationPoolAddress: Address;
|
|
3980
|
+
poolKey: V4PoolKey;
|
|
3981
|
+
poolId: Hash;
|
|
3982
|
+
tokenIsCurrency0: boolean;
|
|
3983
|
+
}
|
|
3984
|
+
interface VerifiedMulticurveCreate<C extends SupportedChainId = SupportedChainId> {
|
|
3985
|
+
receiptIdentity: AirlockCreateResult;
|
|
3986
|
+
preparedIdentity: PreparedMulticurveIdentity<C>;
|
|
3987
|
+
}
|
|
3988
|
+
type PreparedCreateTransactionClient = {
|
|
3989
|
+
getTransaction(parameters: {
|
|
3990
|
+
hash: Hash;
|
|
3991
|
+
}): Promise<{
|
|
3992
|
+
hash: Hash;
|
|
3993
|
+
from: Address;
|
|
3994
|
+
to: Address | null;
|
|
3995
|
+
input: Hex;
|
|
3996
|
+
value: bigint;
|
|
3997
|
+
}>;
|
|
3998
|
+
};
|
|
3999
|
+
/**
|
|
4000
|
+
* Verifies only facts available in a mined receipt: success, sender, target,
|
|
4001
|
+
* one matching Airlock Create event, and its emitted deployment identity.
|
|
4002
|
+
*
|
|
4003
|
+
* This synchronous check does not retrieve or verify the transaction input or
|
|
4004
|
+
* value. Prepared-only predictions remain separate from receipt-derived facts.
|
|
4005
|
+
*/
|
|
4006
|
+
declare function verifyPreparedCreateReceipt<C extends SupportedChainId>({ prepared, receipt, }: {
|
|
4007
|
+
prepared: PreparedMulticurveCreate<C>;
|
|
4008
|
+
receipt: TransactionReceipt;
|
|
4009
|
+
}): VerifiedMulticurveCreate<C>;
|
|
4010
|
+
/**
|
|
4011
|
+
* Performs the receipt checks in {@link verifyPreparedCreateReceipt}, then
|
|
4012
|
+
* retrieves the mined transaction. Its hash must match the receipt, while its
|
|
4013
|
+
* sender, target, input, and value must match the prepared unsigned transaction.
|
|
4014
|
+
*
|
|
4015
|
+
* This stronger check requires one additional RPC request. It proves that the
|
|
4016
|
+
* prepared protocol call was mined, but does not turn simulation-only
|
|
4017
|
+
* predictions into receipt-derived facts.
|
|
4018
|
+
*/
|
|
4019
|
+
declare function verifyPreparedCreateExecution<C extends SupportedChainId>({ prepared, receipt, publicClient, }: {
|
|
4020
|
+
prepared: PreparedMulticurveCreate<C>;
|
|
4021
|
+
receipt: TransactionReceipt;
|
|
4022
|
+
publicClient: PreparedCreateTransactionClient;
|
|
4023
|
+
}): Promise<VerifiedMulticurveCreate<C>>;
|
|
4024
|
+
|
|
3912
4025
|
/**
|
|
3913
4026
|
* Market cap conversion utilities for token launches
|
|
3914
4027
|
*
|
|
@@ -12446,4 +12559,4 @@ declare const rehypeDopplerHookMigratorAbi: readonly [{
|
|
|
12446
12559
|
|
|
12447
12560
|
declare const VERSION = "1.0.0";
|
|
12448
12561
|
|
|
12449
|
-
export { ADDRESSES, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveDecayFeeSchedule, MulticurveFees, type MulticurveFeesOptions, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurveMaxTickLiquidityParams, type MulticurvePendingFees, type MulticurveFeesOptions as MulticurvePendingFeesOptions, MulticurvePool, type MulticurvePoolState, type MulticurveTokenPendingFeeBreakdown, type MulticurveTokenPendingFees, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type NormalizedRehypeDopplerHookInitializerConfig, OPENING_AUCTION_FLAGS, OPENING_AUCTION_PHASE_ACTIVE, OPENING_AUCTION_PHASE_CLOSED, OPENING_AUCTION_PHASE_NOT_STARTED, OPENING_AUCTION_PHASE_SETTLED, OPENING_AUCTION_STATUS_ACTIVE, OPENING_AUCTION_STATUS_DOPPLER_ACTIVE, OPENING_AUCTION_STATUS_EXITED, OPENING_AUCTION_STATUS_UNINITIALIZED, OpeningAuction, type OpeningAuctionAuctionSettledEvent, type OpeningAuctionBidArgs, type OpeningAuctionBidConstraints, type OpeningAuctionBidLookupArgs, OpeningAuctionBidManager, type OpeningAuctionBidManagerConfig, type OpeningAuctionBidPlacedEvent, type OpeningAuctionBidPositionInfo, type OpeningAuctionBidQuote, type OpeningAuctionBidSimulationResult, type OpeningAuctionBidStatus, type OpeningAuctionBidValidationResult, type OpeningAuctionBidWithdrawnEvent, OpeningAuctionBuilder, _default$3 as OpeningAuctionBytecode, type OpeningAuctionClaimAllIncentivesPreview, type OpeningAuctionClaimAllIncentivesResult, type OpeningAuctionClaimIncentivesSimulationResult, type OpeningAuctionCompleteResult, type OpeningAuctionConfig, type OpeningAuctionCreateResult, type OpeningAuctionDopplerConfig, type OpeningAuctionEstimatedClearingTickUpdatedEvent, type OpeningAuctionIncentiveData, type OpeningAuctionIncentivesClaimedEvent, OpeningAuctionLifecycle, type OpeningAuctionModifyLiquidityParams, type OpeningAuctionModifyLiquiditySimulationResult, type OpeningAuctionModuleAddressOverrides, type OpeningAuctionMoveBidArgs, type OpeningAuctionMoveBidResult, type OpeningAuctionMoveBidSimulationResult, type OpeningAuctionOwnerBidInfo, type OpeningAuctionOwnerBidStatus, OpeningAuctionPhase, type OpeningAuctionPhaseChangedEvent, type OpeningAuctionPosition, OpeningAuctionPositionManager, type OpeningAuctionQuoteFromTokenAmountArgs, type OpeningAuctionQuoteFromTokenAmountResult, type OpeningAuctionSettlementData, type OpeningAuctionState, OpeningAuctionStatus, type OpeningAuctionWatchBidPlacedOptions, type OpeningAuctionWatchBidStatusOptions, type OpeningAuctionWatchBidWithdrawnOptions, type OpeningAuctionWatchEstimatedClearingTickOptions, type OpeningAuctionWatchIncentivesClaimedOptions, type OpeningAuctionWatchPhaseChangeOptions, type OpeningAuctionWatchSettlementOptions, type OpeningAuctionWithdrawFullBidArgs, type OpeningAuctionWithdrawFullBidResult, type OpeningAuctionWithdrawFullBidSimulationResult, type PoolInfo, type ProceedsSplitConfig, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookInitializer, type RehypeDopplerHookInitializerConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type RehypePendingFees, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type StreamableFeesConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, TopUpDistributor, type TopUpParams, type TopUpSimulationResult, type TopUpTransaction, type UniswapV2MigrationConfig, type UniswapV2SplitMigrationConfig, type UniswapV4MigrationConfig, type UniswapV4SplitMigrationConfig, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VestingAllocationConfig, type VestingConfig, type VestingScheduleConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerDN404Abi, dopplerERC20V1Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookInitializerData, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, feeClaimsInitializerAbi, feesManagerAbi, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxLiquiditySafeMulticurveTickUpper, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizeBeneficiaries, normalizePoolKey, normalizeRehypeDopplerHookInitializerConfig, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookInitializerAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sortBeneficiaries, sqrtPriceX96ToPrice, streamableFeesLockerAbi, streamableFeesLockerV2Abi, tickToMarketCap, tickToPrice, tokenPriceToRatio, topUpDistributorAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, weth9Abi };
|
|
12562
|
+
export { ADDRESSES, AirlockCreateReceiptError, type AirlockCreateReceiptErrorCode, type AirlockCreateResult, BASIS_POINTS, type BaseAuctionBuilder, type BeneficiaryData, CHAIN_IDS, type ChainAddresses, type CreateDynamicAuctionParams, type CreateMulticurveParams, type CreateOpeningAuctionParams, type CreateParams, type CreateStaticAuctionParams, DAY_SECONDS, DEAD_ADDRESS, DECAY_MAX_START_FEE, DEFAULT_AIRLOCK_BENEFICIARY_SHARES, DEFAULT_AUCTION_DURATION, DEFAULT_EPOCH_LENGTH, DEFAULT_LOCK_DURATION, DEFAULT_MULTICURVE_LOWER_TICKS, DEFAULT_MULTICURVE_MAX_SUPPLY_SHARES, DEFAULT_MULTICURVE_NUM_POSITIONS, DEFAULT_MULTICURVE_UPPER_TICKS, DEFAULT_OPENING_AUCTION_DURATION, DEFAULT_OPENING_AUCTION_FEE, DEFAULT_OPENING_AUCTION_INCENTIVE_SHARE_BPS, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN0, DEFAULT_OPENING_AUCTION_MIN_ACCEPTABLE_TICK_TOKEN1, DEFAULT_OPENING_AUCTION_MIN_LIQUIDITY, DEFAULT_OPENING_AUCTION_SHARE_TO_AUCTION_BPS, DEFAULT_OPENING_DOPPLER_DURATION, DEFAULT_OPENING_DOPPLER_EPOCH_LENGTH, DEFAULT_OPENING_DOPPLER_FEE, DEFAULT_OPENING_DOPPLER_NUM_PD_SLUGS, DEFAULT_OPENING_DOPPLER_TICK_SPACING, DEFAULT_PD_SLUGS, DEFAULT_V3_END_TICK, DEFAULT_V3_FEE, DEFAULT_V3_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V3_INITIAL_SUPPLY, DEFAULT_V3_INITIAL_VOTING_DELAY, DEFAULT_V3_INITIAL_VOTING_PERIOD, DEFAULT_V3_MAX_SHARE_TO_BE_SOLD, DEFAULT_V3_NUM_POSITIONS, DEFAULT_V3_NUM_TOKENS_TO_SELL, DEFAULT_V3_PRE_MINT, DEFAULT_V3_START_TICK, DEFAULT_V3_VESTING_DURATION, DEFAULT_V3_YEARLY_MINT_RATE, DEFAULT_V4_INITIAL_PROPOSAL_THRESHOLD, DEFAULT_V4_INITIAL_VOTING_DELAY, DEFAULT_V4_INITIAL_VOTING_PERIOD, DEFAULT_V4_YEARLY_MINT_RATE, _default$1 as DERC2080Bytecode, _default$2 as DERC20Bytecode, DOPPLER_FLAGS, DOPPLER_MAX_TICK_SPACING, DYNAMIC_FEE_FLAG, Derc20, Derc20V2, _default$6 as DopplerBytecode, DopplerDN404, _default$4 as DopplerDN404BaseSepoliaBytecode, _default$5 as DopplerDN404Bytecode, DopplerERC20V1, type DopplerERC20V1TokenConfig, DopplerFactory, type DopplerHookMigrationConfig, type DopplerHookMigratorConfig, DopplerSDK, type DopplerSDKConfig, DynamicAuction, DynamicAuctionBuilder, type DynamicAuctionConfig, type DynamicAuctionMarketCapConfig, type DynamicMarketCapRange, Eth, FEE_AMOUNT_MASK, FEE_TIERS, FLAG_MASK, type FeeTier, type GovernanceLaunchpad, type GovernanceOption, type HookInfo, INT24_MAX, INT24_MIN, LAUNCHPAD_ENABLED_CHAIN_IDS, type LaunchpadEnabledChainId, type LockablePoolState, LockablePoolStatus, type LockableV3InitializerParams, MAX_SQRT_RATIO, MAX_TICK, MIN_SQRT_RATIO, MIN_TICK, type MarketCapConfig, type MarketCapRange, type MarketCapValidationResult, type MigrationConfig, type MigrationEncoder, type ModuleAddressOverrides, MulticurveBuilder, type MulticurveBundleExactInResult, type MulticurveBundleExactOutResult, type MulticurveCreateGasEstimate, type MulticurveCreatePrediction, type MulticurveDecayFeeSchedule, MulticurveFees, type MulticurveFeesOptions, type MulticurveInitializerConfig, type MulticurveMarketCapCurvesConfig, type MulticurveMarketCapPreset, type MulticurveMarketCapRangeCurve, type MulticurveMaxTickLiquidityParams, type MulticurvePendingFees, type MulticurveFeesOptions as MulticurvePendingFeesOptions, MulticurvePool, type MulticurvePoolState, type MulticurveTokenPendingFeeBreakdown, type MulticurveTokenPendingFees, NO_OP_ENABLED_CHAIN_IDS, type NoOpEnabledChainId, type NormalizedRehypeDopplerHookInitializerConfig, OPENING_AUCTION_FLAGS, OPENING_AUCTION_PHASE_ACTIVE, OPENING_AUCTION_PHASE_CLOSED, OPENING_AUCTION_PHASE_NOT_STARTED, OPENING_AUCTION_PHASE_SETTLED, OPENING_AUCTION_STATUS_ACTIVE, OPENING_AUCTION_STATUS_DOPPLER_ACTIVE, OPENING_AUCTION_STATUS_EXITED, OPENING_AUCTION_STATUS_UNINITIALIZED, OpeningAuction, type OpeningAuctionAuctionSettledEvent, type OpeningAuctionBidArgs, type OpeningAuctionBidConstraints, type OpeningAuctionBidLookupArgs, OpeningAuctionBidManager, type OpeningAuctionBidManagerConfig, type OpeningAuctionBidPlacedEvent, type OpeningAuctionBidPositionInfo, type OpeningAuctionBidQuote, type OpeningAuctionBidSimulationResult, type OpeningAuctionBidStatus, type OpeningAuctionBidValidationResult, type OpeningAuctionBidWithdrawnEvent, OpeningAuctionBuilder, _default$3 as OpeningAuctionBytecode, type OpeningAuctionClaimAllIncentivesPreview, type OpeningAuctionClaimAllIncentivesResult, type OpeningAuctionClaimIncentivesSimulationResult, type OpeningAuctionCompleteResult, type OpeningAuctionConfig, type OpeningAuctionCreateResult, type OpeningAuctionDopplerConfig, type OpeningAuctionEstimatedClearingTickUpdatedEvent, type OpeningAuctionIncentiveData, type OpeningAuctionIncentivesClaimedEvent, OpeningAuctionLifecycle, type OpeningAuctionModifyLiquidityParams, type OpeningAuctionModifyLiquiditySimulationResult, type OpeningAuctionModuleAddressOverrides, type OpeningAuctionMoveBidArgs, type OpeningAuctionMoveBidResult, type OpeningAuctionMoveBidSimulationResult, type OpeningAuctionOwnerBidInfo, type OpeningAuctionOwnerBidStatus, OpeningAuctionPhase, type OpeningAuctionPhaseChangedEvent, type OpeningAuctionPosition, OpeningAuctionPositionManager, type OpeningAuctionQuoteFromTokenAmountArgs, type OpeningAuctionQuoteFromTokenAmountResult, type OpeningAuctionSettlementData, type OpeningAuctionState, OpeningAuctionStatus, type OpeningAuctionWatchBidPlacedOptions, type OpeningAuctionWatchBidStatusOptions, type OpeningAuctionWatchBidWithdrawnOptions, type OpeningAuctionWatchEstimatedClearingTickOptions, type OpeningAuctionWatchIncentivesClaimedOptions, type OpeningAuctionWatchPhaseChangeOptions, type OpeningAuctionWatchSettlementOptions, type OpeningAuctionWithdrawFullBidArgs, type OpeningAuctionWithdrawFullBidResult, type OpeningAuctionWithdrawFullBidSimulationResult, type ParseAirlockCreateReceiptParams, type PoolInfo, type PrepareCreateMulticurveOptions, type PreparedCreateTransactionClient, type PreparedMulticurveCreate, type PreparedMulticurveIdentity, type ProceedsSplitConfig, Q96, type QuoteResult, Quoter, RehypeDopplerHook, type RehypeDopplerHookConfig, RehypeDopplerHookInitializer, type RehypeDopplerHookInitializerConfig, RehypeDopplerHookMigrator, type RehypeDopplerHookMigratorConfig, type RehypeFeeDistributionInfo, RehypeFeeRoutingMode, type RehypePendingFees, type ResolvedOpeningAuctionDopplerConfig, SECONDS_PER_DAY, SECONDS_PER_YEAR, SUPPORTED_CHAIN_IDS, type SaleConfig, _default as StateViewBytecode, StaticAuction, StaticAuctionBuilder, type StaticAuctionMarketCapConfig, type StaticPoolConfig, type StreamableFeesConfig, type SupportedChain, type SupportedChainId, type SupportedChainKey, type SupportedPublicClient, TICK_SPACINGS, type TokenAddressHookConfig, type TokenAddressMiningParams, type TokenAddressMiningResult, type TokenConfig, type TokenVariant, TopUpDistributor, type TopUpParams, type TopUpSimulationResult, type TopUpTransaction, type UniswapV2MigrationConfig, type UniswapV2SplitMigrationConfig, type UniswapV4MigrationConfig, type UniswapV4SplitMigrationConfig, V3_FEE_TIERS, type V4PoolKey, V4_MAX_FEE, VALID_FEE_TIERS, VERSION, type VerifiedMulticurveCreate, type VestingAllocationConfig, type VestingConfig, type VestingScheduleConfig, WAD, ZERO_ADDRESS, airlockAbi, applyTickOffsets, bundlerAbi, calculateFDV, calculateGamma, calculateMarketCap, calculateTickRange, calculateTokensToSell, computeOptimalGamma, computePoolId, createAirlockBeneficiary, decayMulticurveInitializerHookAbi, decodeBalanceDelta, derc20Abi, derc20V2Abi, dopplerDN404Abi, dopplerERC20V1Abi, dopplerHookAbi, dopplerHookInitializerAbi, dopplerLensAbi, encodeRehypeDopplerHookInitializerData, encodeRehypeDopplerHookMigratorCalldata, estimatePriceAtEpoch, estimateSlippage, feeClaimsInitializerAbi, feesManagerAbi, formatTickAsPrice, getAddresses, getAirlockBeneficiary, getAirlockOwner, getAmount0ForLiquidity, getAmount1ForLiquidity, getLiquidityForAmount0, getLiquidityForAmount1, getMaxLiquiditySafeMulticurveTickUpper, getMaxTickRounded, getNearestUsableTick, getSqrtRatioAtTick, getTickAtSqrtRatio, isLaunchpadEnabledChain, isNoOpEnabledChain, isSupportedChainId, isToken0Expected, isToken1, lockableUniswapV3InitializerAbi, marketCapToTickForMulticurve, marketCapToTicksForDynamicAuction, marketCapToTicksForMulticurve, marketCapToTicksForStaticAuction, marketCapToTokenPrice, mineTokenAddress, normalizeBeneficiaries, normalizePoolKey, normalizeRehypeDopplerHookInitializerConfig, openingAuctionAbi, openingAuctionInitializerAbi, openingAuctionPositionManagerAbi, parseAirlockCreateReceipt, poolManagerAbi, priceToSqrtPriceX96, priceToTick, quoterV2Abi, ratioToTick, rehypeDopplerHookAbi, rehypeDopplerHookInitializerAbi, rehypeDopplerHookMigratorAbi, resolveGasEstimate, sortBeneficiaries, sqrtPriceX96ToPrice, streamableFeesLockerAbi, streamableFeesLockerV2Abi, tickToMarketCap, tickToPrice, tokenPriceToRatio, topUpDistributorAbi, uniswapV2Router02Abi, uniswapV3InitializerAbi, uniswapV3PoolAbi, uniswapV4InitializerAbi, v2MigratorAbi, v3MigratorAbi, v4MigratorAbi, v4MulticurveInitializerAbi, v4MulticurveMigratorAbi, v4QuoterAbi, validateMarketCapParameters, verifyPreparedCreateExecution, verifyPreparedCreateReceipt, weth9Abi };
|