@whetstone-research/doppler-sdk 1.0.24 → 1.0.26

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.
@@ -1,8 +1,7 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
- import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, TransactionMessage, TransactionMessageWithFeePayer, OptionOrNullable, Option } from '@solana/kit';
2
+ import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, OptionOrNullable, Option, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit';
3
3
  import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$2, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, T as TransferAdminArgs, i as OracleConsultArgs, j as Observation, k as TradeDirection, l as SwapQuote, m as SwapQuoteExactOut, n as AddLiquidityQuote, o as RemoveLiquidityQuote, M as MarketCapValidationResult, p as MarketCapToCurveParamsInput, q as CurveParams, r as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, s as AddLiquidityEvent, t as AdminTransferredEvent, u as CollectFeesEvent, v as CollectProtocolFeesEvent, F as FeesUpdatedEvent, w as FetchOracleConfig, x as FetchPositionsConfig, H as HookErrorEvent, y as HookInvokedEvent, z as HookUpdatedEvent, B as OracleInitializedEvent, D as OracleUpdatedEvent, E as OracleWithAddress, J as PausedEvent, K as PoolInitializedEvent, L as PositionClosedEvent, N as PositionCreatedEvent, Q as PositionValue, U as PositionWithAddress, V as RemoveLiquidityEvent, W as SwapEvent, X as TwapResult, Y as UnpausedEvent, Z as VaultExcessWithdrawnEvent, _ as comparePoolAndOraclePrices, $ as consultTwap, a0 as fetchOracle, a1 as fetchOraclesBatch, a2 as fetchPoolPositions, a3 as fetchPosition, a4 as fetchPositionByParams, a5 as fetchPositionsBatch, a6 as fetchUserPositions, a7 as filterActivePositions, a8 as getOracleAddressFromPool, a9 as getOracleAge, aa as getOracleBufferStats, ab as getOracleDeviation, ac as getOracleForPool, ad as getOracleSpotPrices, ae as getPositionAddressFromParams, af as getPositionValue, ag as isOracleStale, ah as sortPositionsByShares } from '../oracle-D1wPWydZ.cjs';
4
4
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
5
- import * as _solana_addresses from '@solana/addresses';
6
5
 
7
6
  /**
8
7
  * @deprecated Use DEVNET_CPMM_PROGRAM_ID or pass an explicit deployment.
@@ -2148,7 +2147,7 @@ type ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_
2148
2147
  };
2149
2148
  declare function parseWithdrawVaultExcessInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2150
2149
 
2151
- type RemainingAccount$2 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
2150
+ type RemainingAccount$3 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
2152
2151
  /**
2153
2152
  * Helper to create swap instruction with simplified parameters
2154
2153
  */
@@ -2167,7 +2166,7 @@ declare function createSwapInstruction(params: {
2167
2166
  minAmountOut: bigint;
2168
2167
  tradeDirection: TradeDirection;
2169
2168
  oracle?: Address;
2170
- remainingAccounts?: RemainingAccount$2[];
2169
+ remainingAccounts?: RemainingAccount$3[];
2171
2170
  updateOracle?: boolean;
2172
2171
  token0Program?: Address;
2173
2172
  token1Program?: Address;
@@ -3162,9 +3161,61 @@ declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgs
3162
3161
  declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
3163
3162
  declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
3164
3163
 
3165
- declare const COSIGNER_HOOK_PROGRAM_ID: _solana_addresses.Address<"JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt">;
3164
+ /**
3165
+ * Default Doppler native cosigner hook program for devnet deployments.
3166
+ *
3167
+ * The generated COSIGNER_HOOK_PROGRAM_ADDRESS reflects the IDL's generic
3168
+ * cosigner hook deployment. Pass an explicit programAddress to generated
3169
+ * instructions when targeting a custom/integrator hook deployment.
3170
+ */
3171
+ declare const DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: Address;
3172
+ declare const COSIGNER_HOOK_PROGRAM_ID: Address;
3166
3173
  declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
3167
3174
  declare const MAX_COSIGNERS = 32;
3175
+ declare const GATE_EXPIRY_DISABLED = 0;
3176
+ declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
3177
+ declare const GATE_EXPIRY_SLOT = 2;
3178
+ declare const GATE_EXPIRY_PAYLOAD_VERSION = 1;
3179
+ declare const GATE_EXPIRY_HEADER_LEN = 10;
3180
+ declare const GATE_EXPIRY_PAYLOAD_LEN = 42;
3181
+
3182
+ type CosignerGateClock = {
3183
+ unixTimestamp?: bigint | number;
3184
+ slot?: bigint | number;
3185
+ };
3186
+ type CosignerGateExpiry = {
3187
+ mode: number;
3188
+ value: bigint;
3189
+ cosigner?: Address;
3190
+ };
3191
+ type CosignerGateExpiryArgs = {
3192
+ mode: typeof GATE_EXPIRY_DISABLED;
3193
+ value: bigint | number;
3194
+ cosigner?: never;
3195
+ } | {
3196
+ mode: typeof GATE_EXPIRY_UNIX_TIMESTAMP | typeof GATE_EXPIRY_SLOT;
3197
+ value: bigint | number;
3198
+ cosigner: Address;
3199
+ };
3200
+ type CosignerGateStatus = {
3201
+ gateEnforced: boolean;
3202
+ expiryMode: number;
3203
+ expiryValue: bigint;
3204
+ reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
3205
+ };
3206
+ type CosignerHookRemainingAccounts = {
3207
+ signedHookRemainingAccounts: [Address, TransactionSigner];
3208
+ unsignedHookRemainingAccounts: [Address, Address];
3209
+ hookRemainingAccountsHash: Uint8Array;
3210
+ };
3211
+ declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
3212
+ declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
3213
+ declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
3214
+ declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
3215
+ declare function getCosignerHookRemainingAccounts({ namespace, cosigner, }: {
3216
+ namespace: Address;
3217
+ cosigner: TransactionSigner;
3218
+ }): CosignerHookRemainingAccounts;
3168
3219
 
3169
3220
  declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3170
3221
 
@@ -3187,6 +3238,10 @@ type index$4_CosignerArg = CosignerArg;
3187
3238
  type index$4_CosignerArgArgs = CosignerArgArgs;
3188
3239
  type index$4_CosignerConfig = CosignerConfig;
3189
3240
  type index$4_CosignerConfigArgs = CosignerConfigArgs;
3241
+ type index$4_CosignerGateClock = CosignerGateClock;
3242
+ type index$4_CosignerGateExpiry = CosignerGateExpiry;
3243
+ type index$4_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3244
+ type index$4_CosignerGateStatus = CosignerGateStatus;
3190
3245
  type index$4_CosignerHookAccount = CosignerHookAccount;
3191
3246
  declare const index$4_CosignerHookAccount: typeof CosignerHookAccount;
3192
3247
  type index$4_CosignerHookError = CosignerHookError;
@@ -3196,6 +3251,14 @@ type index$4_CosignerHookPlugin = CosignerHookPlugin;
3196
3251
  type index$4_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
3197
3252
  type index$4_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
3198
3253
  type index$4_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
3254
+ type index$4_CosignerHookRemainingAccounts = CosignerHookRemainingAccounts;
3255
+ declare const index$4_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: typeof DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID;
3256
+ declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3257
+ declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3258
+ declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
3259
+ declare const index$4_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
3260
+ declare const index$4_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
3261
+ declare const index$4_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
3199
3262
  declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
3200
3263
  type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3201
3264
  type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
@@ -3225,6 +3288,8 @@ type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
3225
3288
  type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
3226
3289
  declare const index$4_cosignerHookProgram: typeof cosignerHookProgram;
3227
3290
  declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
3291
+ declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3292
+ declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3228
3293
  declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
3229
3294
  declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
3230
3295
  declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
@@ -3243,8 +3308,10 @@ declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
3243
3308
  declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
3244
3309
  declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
3245
3310
  declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
3311
+ declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
3246
3312
  declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
3247
3313
  declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
3314
+ declare const index$4_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
3248
3315
  declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
3249
3316
  declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
3250
3317
  declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
@@ -3268,6 +3335,7 @@ declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthor
3268
3335
  declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
3269
3336
  declare const index$4_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
3270
3337
  declare const index$4_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
3338
+ declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3271
3339
  declare const index$4_isCosignerHookError: typeof isCosignerHookError;
3272
3340
  declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
3273
3341
  declare const index$4_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
@@ -3275,7 +3343,7 @@ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeCo
3275
3343
  declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
3276
3344
  declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
3277
3345
  declare namespace index$4 {
3278
- export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3346
+ export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$4_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$4_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CosignerHookAccount as CosignerHookAccount, type index$4_CosignerHookError as CosignerHookError, index$4_CosignerHookInstruction as CosignerHookInstruction, type index$4_CosignerHookPlugin as CosignerHookPlugin, type index$4_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$4_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$4_CosignerHookPluginRequirements as CosignerHookPluginRequirements, type index$4_CosignerHookRemainingAccounts as CosignerHookRemainingAccounts, index$4_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID as DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cosignerHookProgram as cosignerHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$4_getCosignerHookErrorMessage as getCosignerHookErrorMessage, index$4_getCosignerHookRemainingAccounts as getCosignerHookRemainingAccounts, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCosignerHookAccount as identifyCosignerHookAccount, index$4_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCosignerHookError as isCosignerHookError, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCosignerHookInstruction as parseCosignerHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction };
3279
3347
  }
3280
3348
 
3281
3349
  /**
@@ -3903,25 +3971,25 @@ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address):
3903
3971
  */
3904
3972
  declare function launchIdFromU64(launchId: bigint): Uint8Array;
3905
3973
 
3906
- type AddressOrSigner$5 = Address | TransactionSigner;
3974
+ type AddressOrSigner$6 = Address | TransactionSigner;
3907
3975
  interface InitializeConfigAccounts {
3908
- admin: AddressOrSigner$5;
3976
+ admin: AddressOrSigner$6;
3909
3977
  config: Address;
3910
3978
  programData: Address;
3911
3979
  systemProgram?: Address;
3912
3980
  }
3913
3981
  declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
3914
3982
 
3915
- type AddressOrSigner$4 = Address | TransactionSigner;
3983
+ type AddressOrSigner$5 = Address | TransactionSigner;
3916
3984
  interface SetMigratorAllowlistAccounts {
3917
- admin: AddressOrSigner$4;
3985
+ admin: AddressOrSigner$5;
3918
3986
  config: Address;
3919
3987
  }
3920
3988
  declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3921
3989
 
3922
- type AddressOrSigner$3 = Address | TransactionSigner;
3990
+ type AddressOrSigner$4 = Address | TransactionSigner;
3923
3991
  interface SetHookAllowlistAccounts {
3924
- admin: AddressOrSigner$3;
3992
+ admin: AddressOrSigner$4;
3925
3993
  config: Address;
3926
3994
  }
3927
3995
  declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
@@ -3942,8 +4010,8 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
3942
4010
  hookCreateRemainingAccountsLen?: number;
3943
4011
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
3944
4012
  };
3945
- type AddressOrSigner$2 = Address | TransactionSigner;
3946
- type ReadonlyRemainingAccount = AddressOrSigner$2;
4013
+ type AddressOrSigner$3 = Address | TransactionSigner;
4014
+ type ReadonlyRemainingAccount = AddressOrSigner$3;
3947
4015
  /**
3948
4016
  * Derive the Metaplex token metadata PDA for a given mint.
3949
4017
  * Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
@@ -3956,13 +4024,13 @@ interface InitializeLaunchAccounts {
3956
4024
  config: Address;
3957
4025
  launch: Address;
3958
4026
  launchAuthority: Address;
3959
- baseMint: AddressOrSigner$2;
4027
+ baseMint: AddressOrSigner$3;
3960
4028
  quoteMint: Address;
3961
- baseVault: AddressOrSigner$2;
3962
- quoteVault: AddressOrSigner$2;
4029
+ baseVault: AddressOrSigner$3;
4030
+ quoteVault: AddressOrSigner$3;
3963
4031
  launchFeeState?: Address;
3964
- payer: AddressOrSigner$2;
3965
- authority?: AddressOrSigner$2;
4032
+ payer: AddressOrSigner$3;
4033
+ authority?: AddressOrSigner$3;
3966
4034
  hookProgram?: Address;
3967
4035
  migratorProgram?: Address;
3968
4036
  baseTokenProgram?: Address;
@@ -3983,8 +4051,8 @@ interface InitializeLaunchAccounts {
3983
4051
  }
3984
4052
  declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
3985
4053
 
3986
- type AddressOrSigner$1 = Address | TransactionSigner;
3987
- type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4054
+ type AddressOrSigner$2 = Address | TransactionSigner;
4055
+ type RemainingAccount$2 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
3988
4056
  interface CurveSwapExactInAccounts {
3989
4057
  launch: Address;
3990
4058
  launchAuthority: Address;
@@ -3994,13 +4062,13 @@ interface CurveSwapExactInAccounts {
3994
4062
  userQuoteAccount: Address;
3995
4063
  baseMint: Address;
3996
4064
  quoteMint: Address;
3997
- user: AddressOrSigner$1;
4065
+ user: AddressOrSigner$2;
3998
4066
  /** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
3999
4067
  hookProgram?: Address;
4000
4068
  launchFeeState: Address;
4001
4069
  baseTokenProgram?: Address;
4002
4070
  quoteTokenProgram?: Address;
4003
- remainingAccounts?: RemainingAccount$1[];
4071
+ remainingAccounts?: RemainingAccount$2[];
4004
4072
  }
4005
4073
  declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
4006
4074
  amountIn: bigint;
@@ -4008,7 +4076,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
4008
4076
  tradeDirection: number;
4009
4077
  }, programId?: Address): Instruction;
4010
4078
 
4011
- type AddressOrSigner = Address | TransactionSigner;
4079
+ type AddressOrSigner$1 = Address | TransactionSigner;
4012
4080
  interface MigrateLaunchAccounts {
4013
4081
  config: Address;
4014
4082
  launch: Address;
@@ -4019,7 +4087,7 @@ interface MigrateLaunchAccounts {
4019
4087
  quoteVault: Address;
4020
4088
  launchFeeState: Address;
4021
4089
  migratorProgram: Address;
4022
- payer: AddressOrSigner;
4090
+ payer: AddressOrSigner$1;
4023
4091
  baseTokenProgram?: Address;
4024
4092
  quoteTokenProgram?: Address;
4025
4093
  systemProgram?: Address;
@@ -4027,7 +4095,7 @@ interface MigrateLaunchAccounts {
4027
4095
  }
4028
4096
  declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
4029
4097
 
4030
- type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4098
+ type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4031
4099
  interface PreviewSwapExactInResult {
4032
4100
  amountOut: bigint;
4033
4101
  feePaid: bigint;
@@ -4038,7 +4106,7 @@ interface PreviewSwapExactInAccounts {
4038
4106
  baseVault: Address;
4039
4107
  quoteVault: Address;
4040
4108
  hookProgram?: Address;
4041
- remainingAccounts?: RemainingAccount[];
4109
+ remainingAccounts?: RemainingAccount$1[];
4042
4110
  }
4043
4111
  declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
4044
4112
  amountIn: bigint;
@@ -4060,209 +4128,19 @@ interface PreviewMigrationAccounts {
4060
4128
  declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction;
4061
4129
  declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult;
4062
4130
 
4063
- /**
4064
- * Compute the remaining-accounts commitment hash used by the Initializer program.
4065
- *
4066
- * Algorithm: keccak256(u32_len_le || pubkey_0 || ... || pubkey_n)
4067
- *
4068
- * This matches compute_remaining_accounts_hash in
4069
- * programs/initializer/src/instructions/launch_common.rs.
4070
- *
4071
- * Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash
4072
- * when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the
4073
- * same accounts in the same order as remaining accounts — the program verifies they match.
4074
- *
4075
- * For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead.
4076
- */
4077
- declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array;
4078
- /**
4079
- * Returns a human-readable label for a launch phase value.
4080
- * Falls back to the numeric string for any unrecognised phase.
4081
- */
4082
- declare function phaseLabel(phase: number): string;
4083
-
4084
- declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20;
4085
- declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[];
4086
- interface BuildAddressLookupTableSetupInstructionsInput {
4087
- authority: TransactionSigner;
4088
- payer: TransactionSigner;
4089
- recentSlot: number | bigint;
4090
- addresses: readonly Address[];
4091
- addressesPerExtendInstruction?: number;
4092
- }
4093
- interface BuildAddressLookupTableSetupInstructionsResult {
4094
- lookupTableAddress: Address;
4095
- createInstruction: Instruction;
4096
- extendInstructions: Instruction[];
4097
- addresses: Address[];
4098
- }
4099
- declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise<BuildAddressLookupTableSetupInstructionsResult>;
4100
- declare function compressTransactionMessageWithLookupTable<TTransactionMessage extends Exclude<TransactionMessage, {
4101
- version: 'legacy';
4102
- }>>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: {
4103
- lookupTableAddress: Address;
4104
- addresses: readonly Address[];
4105
- }): TTransactionMessage | (TTransactionMessage extends {
4106
- readonly instructions: readonly (infer TInstruction extends Instruction)[];
4107
- } ? Omit<TTransactionMessage, "instructions"> & {
4108
- readonly instructions: readonly (TInstruction extends Instruction<infer TProgramAddress extends string, infer TAccounts extends readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]> ? Instruction<TProgramAddress, { [K in keyof TAccounts]: TAccounts[K] extends _solana_kit.AccountMeta<infer TAddress extends string> ? _solana_kit.AccountMeta<TAddress> | _solana_kit.AccountLookupMeta<TAddress, string> : TAccounts[K]; }> : TInstruction)[];
4109
- } : TTransactionMessage);
4110
-
4111
- declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
4112
- interface TransactionSizeReport {
4113
- size: number;
4114
- limit: number;
4115
- overBy: number;
4116
- fits: boolean;
4117
- }
4118
- interface TransactionSizeAssertOptions {
4119
- label?: string;
4120
- metadataBytes?: number;
4121
- }
4122
- type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
4123
- declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
4124
- declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4125
- version: 'legacy';
4126
- }>>(transactionMessage: TTransactionMessage, lookupTable: {
4127
- lookupTableAddress: Address;
4128
- addresses: readonly Address[];
4129
- }): TransactionSizeReport;
4130
- declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
4131
- declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4132
- version: 'legacy';
4133
- }>>(transactionMessage: TTransactionMessage, lookupTable: {
4134
- lookupTableAddress: Address;
4135
- addresses: readonly Address[];
4136
- }, options?: TransactionSizeAssertOptions): TransactionSizeReport;
4137
-
4138
- /**
4139
- * Launch fetching functions for the Initializer SDK
4140
- */
4141
-
4142
- interface FetchLaunchesConfig {
4143
- programId?: Address;
4144
- commitment?: 'processed' | 'confirmed' | 'finalized';
4145
- }
4146
- interface LaunchWithAddress {
4147
- address: Address;
4148
- account: Launch$1;
4131
+ interface SolanaCpmmProgramAddresses {
4132
+ cpmmProgram: Address;
4133
+ initializerProgram: Address;
4134
+ cpmmMigratorProgram: Address;
4135
+ cpmmHookProgram: Address;
4136
+ cosignerHookProgram: Address;
4149
4137
  }
4150
- declare function fetchLaunch$1(rpc: Rpc<GetAccountInfoApi>, address: Address, config?: FetchLaunchesConfig): Promise<Launch$1 | null>;
4151
- declare function fetchAllLaunches(rpc: GetProgramAccountsRpc, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
4152
- /**
4153
- * Fetch launches filtered by Launch.authority (offset 8).
4154
- * Note: Permissionless launches have authority == Pubkey::default().
4155
- */
4156
- declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
4157
- declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
4158
-
4159
- declare const index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
4160
- type index$3_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
4161
- type index$3_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
4162
- declare const index$3_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
4163
- declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
4164
- declare const index$3_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
4165
- type index$3_ClaimFeesAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
4166
- type index$3_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
4167
- declare const index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
4168
- declare const index$3_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
4169
- type index$3_FeeBeneficiary = FeeBeneficiary;
4170
- type index$3_FeeBeneficiaryArgs = FeeBeneficiaryArgs;
4171
- type index$3_FeeBeneficiaryInput = FeeBeneficiaryInput;
4172
- type index$3_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs;
4173
- type index$3_FetchLaunchesConfig = FetchLaunchesConfig;
4174
- declare const index$3_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
4175
- declare const index$3_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
4176
- declare const index$3_HF_AFTER_SWAP: typeof HF_AFTER_SWAP;
4177
- declare const index$3_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE;
4178
- declare const index$3_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
4179
- declare const index$3_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
4180
- declare const index$3_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
4181
- declare const index$3_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
4182
- type index$3_HarvestMigratedFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLaunchLpPosition extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountCpmmProgram extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = HarvestMigratedFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLaunchLpPosition, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountCpmmProgram, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
4183
- declare const index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
4184
- declare const index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
4185
- declare const index$3_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
4186
- type index$3_InitializeConfigAccounts = InitializeConfigAccounts;
4187
- type index$3_InitializeConfigArgs = InitializeConfigArgs;
4188
- type index$3_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
4189
- type index$3_InitializeLaunchAccounts = InitializeLaunchAccounts;
4190
- type index$3_InitializeLaunchArgs = InitializeLaunchArgs;
4191
- type index$3_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
4192
- type index$3_LaunchFeeState = LaunchFeeState;
4193
- type index$3_LaunchFeeStateArgs = LaunchFeeStateArgs;
4194
- type index$3_LaunchWithAddress = LaunchWithAddress;
4195
- declare const index$3_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
4196
- declare const index$3_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
4197
- declare const index$3_MAX_PAYLOAD: typeof MAX_PAYLOAD;
4198
- type index$3_MigrateLaunchAccounts = MigrateLaunchAccounts;
4199
- declare const index$3_PHASE_ABORTED: typeof PHASE_ABORTED;
4200
- declare const index$3_PHASE_MIGRATED: typeof PHASE_MIGRATED;
4201
- declare const index$3_PHASE_TRADING: typeof PHASE_TRADING;
4202
- declare const index$3_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID;
4203
- type index$3_PreviewMigrationAccounts = PreviewMigrationAccounts;
4204
- type index$3_PreviewMigrationResult = PreviewMigrationResult;
4205
- type index$3_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
4206
- type index$3_PreviewSwapExactInResult = PreviewSwapExactInResult;
4207
- type index$3_ReplaceFeeBeneficiaryAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = ReplaceFeeBeneficiaryAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>;
4208
- declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
4209
- declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
4210
- declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
4211
- declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
4212
- declare const index$3_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
4213
- type index$3_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
4214
- type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
4215
- type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
4216
- declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
4217
- declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
4218
- type index$3_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
4219
- type index$3_TransactionSizeReport = TransactionSizeReport;
4220
- declare const index$3_assertTransactionMessageFits: typeof assertTransactionMessageFits;
4221
- declare const index$3_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
4222
- declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
4223
- declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
4224
- declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
4225
- declare const index$3_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
4226
- declare const index$3_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
4227
- declare const index$3_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction;
4228
- declare const index$3_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction;
4229
- declare const index$3_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction;
4230
- declare const index$3_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction;
4231
- declare const index$3_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction;
4232
- declare const index$3_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction;
4233
- declare const index$3_decodePreviewMigrationResult: typeof decodePreviewMigrationResult;
4234
- declare const index$3_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult;
4235
- declare const index$3_encodeU64LE: typeof encodeU64LE;
4236
- declare const index$3_fetchAllLaunches: typeof fetchAllLaunches;
4237
- declare const index$3_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority;
4238
- declare const index$3_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync;
4239
- declare const index$3_getConfigAddress: typeof getConfigAddress;
4240
- declare const index$3_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
4241
- declare const index$3_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
4242
- declare const index$3_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
4243
- declare const index$3_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
4244
- declare const index$3_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
4245
- declare const index$3_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
4246
- declare const index$3_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
4247
- declare const index$3_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
4248
- declare const index$3_getLaunchAddress: typeof getLaunchAddress;
4249
- declare const index$3_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
4250
- declare const index$3_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress;
4251
- declare const index$3_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec;
4252
- declare const index$3_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder;
4253
- declare const index$3_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder;
4254
- declare const index$3_getProgramDataAddress: typeof getProgramDataAddress;
4255
- declare const index$3_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync;
4256
- declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync;
4257
- declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress;
4258
- declare const index$3_launchExists: typeof launchExists;
4259
- declare const index$3_launchIdFromU64: typeof launchIdFromU64;
4260
- declare const index$3_measureTransactionMessageSize: typeof measureTransactionMessageSize;
4261
- declare const index$3_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
4262
- declare const index$3_phaseLabel: typeof phaseLabel;
4263
- declare namespace index$3 {
4264
- export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$3_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$3_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$3_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$3_CURVE_KIND_XYK as CURVE_KIND_XYK, index$3_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$3_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FeeBeneficiary as FeeBeneficiary, type index$3_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$3_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$3_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, index$3_HF_AFTER_CREATE as HF_AFTER_CREATE, index$3_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$3_HF_AFTER_SWAP as HF_AFTER_SWAP, index$3_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$3_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$3_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$3_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$3_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$3_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$3_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$3_InitializeConfigAccounts as InitializeConfigAccounts, type index$3_InitializeConfigArgs as InitializeConfigArgs, type index$3_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$3_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$3_InitializeLaunchArgs as InitializeLaunchArgs, type index$3_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$3_LaunchFeeState as LaunchFeeState, type index$3_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$3_LaunchWithAddress as LaunchWithAddress, index$3_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_PAYLOAD as MAX_PAYLOAD, type index$3_MigrateLaunchAccounts as MigrateLaunchAccounts, index$3_PHASE_ABORTED as PHASE_ABORTED, index$3_PHASE_MIGRATED as PHASE_MIGRATED, index$3_PHASE_TRADING as PHASE_TRADING, index$3_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$3_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$3_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$3_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$3_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$3_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$3_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$3_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$3_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$3_TransactionSizeReport as TransactionSizeReport, index$3_assertTransactionMessageFits as assertTransactionMessageFits, index$3_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$3_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$3_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$3_computeRemainingAccountsHash as computeRemainingAccountsHash, index$3_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$3_createInitializeConfigInstruction as createInitializeConfigInstruction, index$3_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$3_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$3_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$3_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$3_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$3_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$3_getConfigAddress as getConfigAddress, index$3_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, index$3_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$3_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$3_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$3_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$3_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$3_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$3_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$3_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$3_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$3_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$3_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_measureTransactionMessageSize as measureTransactionMessageSize, index$3_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$3_phaseLabel as phaseLabel };
4138
+ interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4139
+ cpmmConfig: Address;
4140
+ initializerConfig: Address;
4265
4141
  }
4142
+ declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4143
+ declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
4266
4144
 
4267
4145
  /**
4268
4146
  * This code was AUTOGENERATED using the Codama library.
@@ -4470,6 +4348,9 @@ interface CpmmMigrationRemainingAccounts {
4470
4348
  hash: Uint8Array;
4471
4349
  cpmmMigrationState: Address;
4472
4350
  cpmmConfig: Address;
4351
+ adminBaseAta: Address;
4352
+ adminQuoteAta: Address;
4353
+ recipientAtas: Address[];
4473
4354
  pool: Address;
4474
4355
  poolAuthority: Address;
4475
4356
  poolVault0: Address;
@@ -4485,43 +4366,390 @@ declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRem
4485
4366
  declare function encodeRegisterLaunchPayload(args: RegisterLaunchArgsArgs): Uint8Array;
4486
4367
  declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
4487
4368
 
4488
- declare const index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
4489
- declare const index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: typeof CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS;
4490
- declare const index$2_CPMM_MIGRATOR_PROGRAM_ID: typeof CPMM_MIGRATOR_PROGRAM_ID;
4491
- type index$2_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
4492
- type index$2_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
4493
- type index$2_CpmmMigratorState = CpmmMigratorState;
4494
- type index$2_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
4495
- declare const index$2_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
4496
- type index$2_MigrateArgs = MigrateArgs;
4497
- type index$2_MigrateArgsArgs = MigrateArgsArgs;
4498
- type index$2_Recipient = Recipient;
4499
- type index$2_RecipientArgs = RecipientArgs;
4500
- type index$2_RegisterLaunchArgs = RegisterLaunchArgs;
4501
- type index$2_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
4502
- declare const index$2_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
4503
- declare const index$2_SEED_STATE: typeof SEED_STATE;
4504
- declare const index$2_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
4505
- declare const index$2_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
4506
- declare const index$2_encodeMigratePayload: typeof encodeMigratePayload;
4507
- declare const index$2_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
4508
- declare const index$2_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
4509
- declare const index$2_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress;
4510
- declare const index$2_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress;
4511
- declare const index$2_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
4512
- declare const index$2_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
4513
- declare const index$2_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder;
4514
- declare const index$2_getMigrateArgsCodec: typeof getMigrateArgsCodec;
4515
- declare const index$2_getMigrateArgsDecoder: typeof getMigrateArgsDecoder;
4516
- declare const index$2_getMigrateArgsEncoder: typeof getMigrateArgsEncoder;
4517
- declare const index$2_getRecipientCodec: typeof getRecipientCodec;
4518
- declare const index$2_getRecipientDecoder: typeof getRecipientDecoder;
4519
- declare const index$2_getRecipientEncoder: typeof getRecipientEncoder;
4520
- declare const index$2_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCodec;
4521
- declare const index$2_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
4522
- declare const index$2_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
4369
+ declare const index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
4370
+ declare const index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: typeof CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS;
4371
+ declare const index$3_CPMM_MIGRATOR_PROGRAM_ID: typeof CPMM_MIGRATOR_PROGRAM_ID;
4372
+ type index$3_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
4373
+ type index$3_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
4374
+ type index$3_CpmmMigratorState = CpmmMigratorState;
4375
+ type index$3_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
4376
+ declare const index$3_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
4377
+ type index$3_MigrateArgs = MigrateArgs;
4378
+ type index$3_MigrateArgsArgs = MigrateArgsArgs;
4379
+ type index$3_MigratedPoolHookConfig = MigratedPoolHookConfig;
4380
+ type index$3_MigratedPoolHookConfigArgs = MigratedPoolHookConfigArgs;
4381
+ type index$3_Recipient = Recipient;
4382
+ type index$3_RecipientArgs = RecipientArgs;
4383
+ type index$3_RegisterLaunchArgs = RegisterLaunchArgs;
4384
+ type index$3_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
4385
+ declare const index$3_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
4386
+ declare const index$3_SEED_STATE: typeof SEED_STATE;
4387
+ declare const index$3_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
4388
+ declare const index$3_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
4389
+ declare const index$3_encodeMigratePayload: typeof encodeMigratePayload;
4390
+ declare const index$3_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
4391
+ declare const index$3_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
4392
+ declare const index$3_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress;
4393
+ declare const index$3_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress;
4394
+ declare const index$3_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
4395
+ declare const index$3_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
4396
+ declare const index$3_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder;
4397
+ declare const index$3_getMigrateArgsCodec: typeof getMigrateArgsCodec;
4398
+ declare const index$3_getMigrateArgsDecoder: typeof getMigrateArgsDecoder;
4399
+ declare const index$3_getMigrateArgsEncoder: typeof getMigrateArgsEncoder;
4400
+ declare const index$3_getRecipientCodec: typeof getRecipientCodec;
4401
+ declare const index$3_getRecipientDecoder: typeof getRecipientDecoder;
4402
+ declare const index$3_getRecipientEncoder: typeof getRecipientEncoder;
4403
+ declare const index$3_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCodec;
4404
+ declare const index$3_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
4405
+ declare const index$3_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
4406
+ declare namespace index$3 {
4407
+ export { index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$3_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$3_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$3_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$3_CpmmMigratorState as CpmmMigratorState, type index$3_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$3_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$3_MigrateArgs as MigrateArgs, type index$3_MigrateArgsArgs as MigrateArgsArgs, type index$3_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$3_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$3_Recipient as Recipient, type index$3_RecipientArgs as RecipientArgs, type index$3_RegisterLaunchArgs as RegisterLaunchArgs, type index$3_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_encodeMigratePayload as encodeMigratePayload, index$3_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$3_fetchCpmmMigratorState as fetchCpmmMigratorState, index$3_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$3_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$3_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$3_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$3_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$3_getMigrateArgsCodec as getMigrateArgsCodec, index$3_getMigrateArgsDecoder as getMigrateArgsDecoder, index$3_getMigrateArgsEncoder as getMigrateArgsEncoder, index$3_getRecipientCodec as getRecipientCodec, index$3_getRecipientDecoder as getRecipientDecoder, index$3_getRecipientEncoder as getRecipientEncoder, index$3_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$3_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$3_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
4408
+ }
4409
+
4410
+ type AddressOrSigner = InitializeLaunchAccounts['baseMint'];
4411
+ type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4412
+ type LaunchTokenPrograms = {
4413
+ baseTokenProgram: Address;
4414
+ quoteTokenProgram: Address;
4415
+ };
4416
+ type LaunchSupply = {
4417
+ baseDecimals: number;
4418
+ baseTotalSupply: bigint;
4419
+ baseForDistribution: bigint;
4420
+ baseForLiquidity: bigint;
4421
+ };
4422
+ type XykCurveConfig = {
4423
+ curveVirtualBase: bigint;
4424
+ curveVirtualQuote: bigint;
4425
+ swapFeeBps: number;
4426
+ };
4427
+ type LaunchMetadata = {
4428
+ metadataName: string;
4429
+ metadataSymbol: string;
4430
+ metadataUri: string;
4431
+ };
4432
+ type CreateLaunchAccountSigners = {
4433
+ baseMint: AddressOrSigner;
4434
+ quoteMint: Address;
4435
+ baseVault: AddressOrSigner;
4436
+ quoteVault: AddressOrSigner;
4437
+ };
4438
+ type CreateLaunchHookMode = 'cpmm' | 'cosigner' | false;
4439
+ type CreateLaunchCpmmMigrationConfig = {
4440
+ enabled?: true;
4441
+ kind?: 'cpmm';
4442
+ program?: Address;
4443
+ cpmmProgram?: Address;
4444
+ admin?: Address;
4445
+ adminBaseAta?: Address;
4446
+ adminQuoteAta?: Address;
4447
+ recipientAtas?: ReadonlyArray<Address>;
4448
+ recipients?: ReadonlyArray<RecipientArgs>;
4449
+ minRaiseQuote?: number | bigint;
4450
+ minMigrationPriceQ64Opt?: number | bigint | null;
4451
+ migratedPoolHookConfig?: MigratedPoolHookConfigArgs | null;
4452
+ initialSwapFeeBps?: number;
4453
+ initialFeeSplitBps?: number;
4454
+ baseForDistribution?: number | bigint;
4455
+ baseForLiquidity?: number | bigint;
4456
+ };
4457
+ type CreateLaunchCustomMigrationConfig = {
4458
+ enabled?: true;
4459
+ kind: 'custom';
4460
+ program: Address;
4461
+ initPayload?: ReadonlyUint8Array;
4462
+ migratePayload?: ReadonlyUint8Array;
4463
+ cpmmConfig?: Address;
4464
+ initRemainingAccounts?: ReadonlyArray<RemainingAccount>;
4465
+ initRemainingAccountsHash?: ReadonlyUint8Array;
4466
+ remainingAccounts?: ReadonlyArray<RemainingAccount>;
4467
+ remainingAccountsHash?: ReadonlyUint8Array;
4468
+ };
4469
+ type CreateLaunchMigrationConfig = CreateLaunchCpmmMigrationConfig | CreateLaunchCustomMigrationConfig;
4470
+ type CreateLaunchAddresses = {
4471
+ config: Address;
4472
+ launch: Address;
4473
+ launchAuthority: Address;
4474
+ launchFeeState: Address;
4475
+ metadataAccount?: Address;
4476
+ };
4477
+ type DeriveCreateLaunchAddressesInput = {
4478
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'>;
4479
+ programId?: Address;
4480
+ config?: Address;
4481
+ namespace: Address;
4482
+ launchId: Uint8Array;
4483
+ baseMint: AddressOrSigner;
4484
+ metadata?: LaunchMetadata | null;
4485
+ metadataAccount?: Address;
4486
+ };
4487
+ type CreateLaunchInput = {
4488
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram'>>;
4489
+ programId?: Address;
4490
+ config?: Address;
4491
+ namespace?: Address;
4492
+ launchId?: Uint8Array;
4493
+ addresses?: CreateLaunchAddresses;
4494
+ launchAccounts: CreateLaunchAccountSigners;
4495
+ payer: AddressOrSigner;
4496
+ authority?: AddressOrSigner;
4497
+ supply: LaunchSupply;
4498
+ curve: XykCurveConfig;
4499
+ tokenPrograms?: Partial<LaunchTokenPrograms>;
4500
+ hook?: CreateLaunchHookMode | null;
4501
+ cosigner?: AddressOrSigner;
4502
+ cosignGateExpiresAt?: bigint | number | null;
4503
+ migration?: boolean | CreateLaunchMigrationConfig | null;
4504
+ metadata?: LaunchMetadata | null;
4505
+ feeBeneficiaries?: InitializeLaunchParams['feeBeneficiaries'];
4506
+ allowBuy?: boolean;
4507
+ allowSell?: boolean;
4508
+ systemProgram?: Address;
4509
+ rent?: Address;
4510
+ metadataProgram?: Address;
4511
+ };
4512
+ type CreateLaunchResult = {
4513
+ namespace: Address;
4514
+ launchId: Uint8Array;
4515
+ addresses: CreateLaunchAddresses;
4516
+ instruction: Instruction;
4517
+ cpmmMigration?: CpmmMigrationRemainingAccounts;
4518
+ };
4519
+ declare const launchTokenPrograms: {
4520
+ readonly splToken: () => LaunchTokenPrograms;
4521
+ readonly token2022Base: () => LaunchTokenPrograms;
4522
+ };
4523
+ declare function createLaunchId(): Uint8Array;
4524
+ declare function deriveCreateLaunchAddresses(input: DeriveCreateLaunchAddressesInput): Promise<CreateLaunchAddresses>;
4525
+ declare function createLaunch(input: CreateLaunchInput): Promise<CreateLaunchResult>;
4526
+
4527
+ /**
4528
+ * Compute the remaining-accounts commitment hash used by the Initializer program.
4529
+ *
4530
+ * Algorithm: keccak256(u32_len_le || pubkey_0 || ... || pubkey_n)
4531
+ *
4532
+ * This matches compute_remaining_accounts_hash in
4533
+ * programs/initializer/src/instructions/launch_common.rs.
4534
+ *
4535
+ * Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash
4536
+ * when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the
4537
+ * same accounts in the same order as remaining accounts — the program verifies they match.
4538
+ *
4539
+ * For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead.
4540
+ */
4541
+ declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array;
4542
+ /**
4543
+ * Compute the fee charged by initializer bonding-curve exact-in swaps.
4544
+ *
4545
+ * The initializer program rounds swap fees up, so small non-zero trades with a
4546
+ * non-zero fee rate still pay at least one atom.
4547
+ */
4548
+ declare function getCurveSwapFeeAmount(amountIn: bigint, swapFeeBps: number): bigint;
4549
+ /**
4550
+ * Returns a human-readable label for a launch phase value.
4551
+ * Falls back to the numeric string for any unrecognised phase.
4552
+ */
4553
+ declare function phaseLabel(phase: number): string;
4554
+
4555
+ declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20;
4556
+ declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[];
4557
+ interface BuildAddressLookupTableSetupInstructionsInput {
4558
+ authority: TransactionSigner;
4559
+ payer: TransactionSigner;
4560
+ recentSlot: number | bigint;
4561
+ addresses: readonly Address[];
4562
+ addressesPerExtendInstruction?: number;
4563
+ }
4564
+ interface BuildAddressLookupTableSetupInstructionsResult {
4565
+ lookupTableAddress: Address;
4566
+ createInstruction: Instruction;
4567
+ extendInstructions: Instruction[];
4568
+ addresses: Address[];
4569
+ }
4570
+ declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise<BuildAddressLookupTableSetupInstructionsResult>;
4571
+ declare function compressTransactionMessageWithLookupTable<TTransactionMessage extends Exclude<TransactionMessage, {
4572
+ version: 'legacy';
4573
+ }>>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: {
4574
+ lookupTableAddress: Address;
4575
+ addresses: readonly Address[];
4576
+ }): TTransactionMessage | (TTransactionMessage extends {
4577
+ readonly instructions: readonly (infer TInstruction extends Instruction)[];
4578
+ } ? Omit<TTransactionMessage, "instructions"> & {
4579
+ readonly instructions: readonly (TInstruction extends Instruction<infer TProgramAddress extends string, infer TAccounts extends readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]> ? Instruction<TProgramAddress, { [K in keyof TAccounts]: TAccounts[K] extends _solana_kit.AccountMeta<infer TAddress extends string> ? _solana_kit.AccountMeta<TAddress> | _solana_kit.AccountLookupMeta<TAddress, string> : TAccounts[K]; }> : TInstruction)[];
4580
+ } : TTransactionMessage);
4581
+
4582
+ declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
4583
+ interface TransactionSizeReport {
4584
+ size: number;
4585
+ limit: number;
4586
+ overBy: number;
4587
+ fits: boolean;
4588
+ }
4589
+ interface TransactionSizeAssertOptions {
4590
+ label?: string;
4591
+ metadataBytes?: number;
4592
+ }
4593
+ type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
4594
+ declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
4595
+ declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4596
+ version: 'legacy';
4597
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4598
+ lookupTableAddress: Address;
4599
+ addresses: readonly Address[];
4600
+ }): TransactionSizeReport;
4601
+ declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
4602
+ declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4603
+ version: 'legacy';
4604
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4605
+ lookupTableAddress: Address;
4606
+ addresses: readonly Address[];
4607
+ }, options?: TransactionSizeAssertOptions): TransactionSizeReport;
4608
+
4609
+ /**
4610
+ * Launch fetching functions for the Initializer SDK
4611
+ */
4612
+
4613
+ interface FetchLaunchesConfig {
4614
+ programId?: Address;
4615
+ commitment?: 'processed' | 'confirmed' | 'finalized';
4616
+ }
4617
+ interface LaunchWithAddress {
4618
+ address: Address;
4619
+ account: Launch$1;
4620
+ }
4621
+ declare function fetchLaunch$1(rpc: Rpc<GetAccountInfoApi>, address: Address, config?: FetchLaunchesConfig): Promise<Launch$1 | null>;
4622
+ declare function fetchAllLaunches(rpc: GetProgramAccountsRpc, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
4623
+ /**
4624
+ * Fetch launches filtered by Launch.authority (offset 8).
4625
+ * Note: Permissionless launches have authority == Pubkey::default().
4626
+ */
4627
+ declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority: Address, config?: FetchLaunchesConfig): Promise<LaunchWithAddress[]>;
4628
+ declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
4629
+
4630
+ declare const index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
4631
+ type index$2_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
4632
+ type index$2_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
4633
+ declare const index$2_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
4634
+ declare const index$2_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
4635
+ declare const index$2_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
4636
+ type index$2_ClaimFeesAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
4637
+ type index$2_CreateLaunchAccountSigners = CreateLaunchAccountSigners;
4638
+ type index$2_CreateLaunchAddresses = CreateLaunchAddresses;
4639
+ type index$2_CreateLaunchCpmmMigrationConfig = CreateLaunchCpmmMigrationConfig;
4640
+ type index$2_CreateLaunchCustomMigrationConfig = CreateLaunchCustomMigrationConfig;
4641
+ type index$2_CreateLaunchHookMode = CreateLaunchHookMode;
4642
+ type index$2_CreateLaunchInput = CreateLaunchInput;
4643
+ type index$2_CreateLaunchMigrationConfig = CreateLaunchMigrationConfig;
4644
+ type index$2_CreateLaunchResult = CreateLaunchResult;
4645
+ type index$2_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
4646
+ declare const index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
4647
+ type index$2_DeriveCreateLaunchAddressesInput = DeriveCreateLaunchAddressesInput;
4648
+ declare const index$2_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
4649
+ type index$2_FeeBeneficiary = FeeBeneficiary;
4650
+ type index$2_FeeBeneficiaryArgs = FeeBeneficiaryArgs;
4651
+ type index$2_FeeBeneficiaryInput = FeeBeneficiaryInput;
4652
+ type index$2_FeeBeneficiaryInputArgs = FeeBeneficiaryInputArgs;
4653
+ type index$2_FetchLaunchesConfig = FetchLaunchesConfig;
4654
+ declare const index$2_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
4655
+ declare const index$2_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
4656
+ declare const index$2_HF_AFTER_SWAP: typeof HF_AFTER_SWAP;
4657
+ declare const index$2_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE;
4658
+ declare const index$2_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
4659
+ declare const index$2_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
4660
+ declare const index$2_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
4661
+ declare const index$2_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
4662
+ type index$2_HarvestMigratedFeesAsyncInput<TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLaunchLpPosition extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountCpmmProgram extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = HarvestMigratedFeesAsyncInput<TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLaunchLpPosition, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountCpmmProgram, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
4663
+ declare const index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
4664
+ declare const index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
4665
+ declare const index$2_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
4666
+ type index$2_InitializeConfigAccounts = InitializeConfigAccounts;
4667
+ type index$2_InitializeConfigArgs = InitializeConfigArgs;
4668
+ type index$2_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
4669
+ type index$2_InitializeLaunchAccounts = InitializeLaunchAccounts;
4670
+ type index$2_InitializeLaunchArgs = InitializeLaunchArgs;
4671
+ type index$2_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
4672
+ type index$2_LaunchFeeState = LaunchFeeState;
4673
+ type index$2_LaunchFeeStateArgs = LaunchFeeStateArgs;
4674
+ type index$2_LaunchMetadata = LaunchMetadata;
4675
+ type index$2_LaunchSupply = LaunchSupply;
4676
+ type index$2_LaunchTokenPrograms = LaunchTokenPrograms;
4677
+ type index$2_LaunchWithAddress = LaunchWithAddress;
4678
+ declare const index$2_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
4679
+ declare const index$2_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
4680
+ declare const index$2_MAX_PAYLOAD: typeof MAX_PAYLOAD;
4681
+ type index$2_MigrateLaunchAccounts = MigrateLaunchAccounts;
4682
+ declare const index$2_PHASE_ABORTED: typeof PHASE_ABORTED;
4683
+ declare const index$2_PHASE_MIGRATED: typeof PHASE_MIGRATED;
4684
+ declare const index$2_PHASE_TRADING: typeof PHASE_TRADING;
4685
+ declare const index$2_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID;
4686
+ type index$2_PreviewMigrationAccounts = PreviewMigrationAccounts;
4687
+ type index$2_PreviewMigrationResult = PreviewMigrationResult;
4688
+ type index$2_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
4689
+ type index$2_PreviewSwapExactInResult = PreviewSwapExactInResult;
4690
+ type index$2_ReplaceFeeBeneficiaryAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountCurrentBeneficiary extends string = string> = ReplaceFeeBeneficiaryAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountCurrentBeneficiary>;
4691
+ declare const index$2_SEED_CONFIG: typeof SEED_CONFIG;
4692
+ declare const index$2_SEED_LAUNCH: typeof SEED_LAUNCH;
4693
+ declare const index$2_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
4694
+ declare const index$2_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
4695
+ declare const index$2_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
4696
+ type index$2_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
4697
+ type index$2_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
4698
+ type index$2_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
4699
+ declare const index$2_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
4700
+ declare const index$2_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
4701
+ type index$2_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
4702
+ type index$2_TransactionSizeReport = TransactionSizeReport;
4703
+ type index$2_XykCurveConfig = XykCurveConfig;
4704
+ declare const index$2_assertTransactionMessageFits: typeof assertTransactionMessageFits;
4705
+ declare const index$2_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
4706
+ declare const index$2_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
4707
+ declare const index$2_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
4708
+ declare const index$2_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
4709
+ declare const index$2_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
4710
+ declare const index$2_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
4711
+ declare const index$2_createInitializeLaunchInstruction: typeof createInitializeLaunchInstruction;
4712
+ declare const index$2_createLaunchId: typeof createLaunchId;
4713
+ declare const index$2_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction;
4714
+ declare const index$2_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction;
4715
+ declare const index$2_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction;
4716
+ declare const index$2_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction;
4717
+ declare const index$2_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction;
4718
+ declare const index$2_decodePreviewMigrationResult: typeof decodePreviewMigrationResult;
4719
+ declare const index$2_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult;
4720
+ declare const index$2_deriveCreateLaunchAddresses: typeof deriveCreateLaunchAddresses;
4721
+ declare const index$2_encodeU64LE: typeof encodeU64LE;
4722
+ declare const index$2_fetchAllLaunches: typeof fetchAllLaunches;
4723
+ declare const index$2_fetchLaunchesByAuthority: typeof fetchLaunchesByAuthority;
4724
+ declare const index$2_getClaimFeesInstructionAsync: typeof getClaimFeesInstructionAsync;
4725
+ declare const index$2_getConfigAddress: typeof getConfigAddress;
4726
+ declare const index$2_getCurveSwapFeeAmount: typeof getCurveSwapFeeAmount;
4727
+ declare const index$2_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
4728
+ declare const index$2_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
4729
+ declare const index$2_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
4730
+ declare const index$2_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
4731
+ declare const index$2_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
4732
+ declare const index$2_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
4733
+ declare const index$2_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
4734
+ declare const index$2_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
4735
+ declare const index$2_getLaunchAddress: typeof getLaunchAddress;
4736
+ declare const index$2_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
4737
+ declare const index$2_getLaunchFeeStateAddress: typeof getLaunchFeeStateAddress;
4738
+ declare const index$2_getLaunchFeeStateCodec: typeof getLaunchFeeStateCodec;
4739
+ declare const index$2_getLaunchFeeStateDecoder: typeof getLaunchFeeStateDecoder;
4740
+ declare const index$2_getLaunchFeeStateEncoder: typeof getLaunchFeeStateEncoder;
4741
+ declare const index$2_getProgramDataAddress: typeof getProgramDataAddress;
4742
+ declare const index$2_getReplaceFeeBeneficiaryInstructionAsync: typeof getReplaceFeeBeneficiaryInstructionAsync;
4743
+ declare const index$2_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyInstructionAsync;
4744
+ declare const index$2_getTokenMetadataAddress: typeof getTokenMetadataAddress;
4745
+ declare const index$2_launchExists: typeof launchExists;
4746
+ declare const index$2_launchIdFromU64: typeof launchIdFromU64;
4747
+ declare const index$2_launchTokenPrograms: typeof launchTokenPrograms;
4748
+ declare const index$2_measureTransactionMessageSize: typeof measureTransactionMessageSize;
4749
+ declare const index$2_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
4750
+ declare const index$2_phaseLabel: typeof phaseLabel;
4523
4751
  declare namespace index$2 {
4524
- export { index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$2_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$2_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$2_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$2_CpmmMigratorState as CpmmMigratorState, type index$2_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$2_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$2_MigrateArgs as MigrateArgs, type index$2_MigrateArgsArgs as MigrateArgsArgs, type index$2_Recipient as Recipient, type index$2_RecipientArgs as RecipientArgs, type index$2_RegisterLaunchArgs as RegisterLaunchArgs, type index$2_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$2_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$2_SEED_STATE as SEED_STATE, index$2_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$2_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$2_encodeMigratePayload as encodeMigratePayload, index$2_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$2_fetchCpmmMigratorState as fetchCpmmMigratorState, index$2_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$2_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$2_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$2_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$2_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$2_getMigrateArgsCodec as getMigrateArgsCodec, index$2_getMigrateArgsDecoder as getMigrateArgsDecoder, index$2_getMigrateArgsEncoder as getMigrateArgsEncoder, index$2_getRecipientCodec as getRecipientCodec, index$2_getRecipientDecoder as getRecipientDecoder, index$2_getRecipientEncoder as getRecipientEncoder, index$2_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$2_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$2_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
4752
+ export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchHookMode as CreateLaunchHookMode, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type index$2_InitializeConfigArgs as InitializeConfigArgs, type index$2_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$2_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$2_InitializeLaunchArgs as InitializeLaunchArgs, type index$2_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$2_LaunchFeeState as LaunchFeeState, type index$2_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$2_LaunchMetadata as LaunchMetadata, type index$2_LaunchSupply as LaunchSupply, type index$2_LaunchTokenPrograms as LaunchTokenPrograms, type index$2_LaunchWithAddress as LaunchWithAddress, index$2_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$2_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$2_MAX_PAYLOAD as MAX_PAYLOAD, type index$2_MigrateLaunchAccounts as MigrateLaunchAccounts, index$2_PHASE_ABORTED as PHASE_ABORTED, index$2_PHASE_MIGRATED as PHASE_MIGRATED, index$2_PHASE_TRADING as PHASE_TRADING, index$2_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$2_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$2_PreviewMigrationResult as PreviewMigrationResult, type index$2_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$2_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$2_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$2_SEED_CONFIG as SEED_CONFIG, index$2_SEED_LAUNCH as SEED_LAUNCH, index$2_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$2_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$2_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$2_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$2_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$2_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$2_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$2_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$2_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$2_TransactionSizeReport as TransactionSizeReport, type index$2_XykCurveConfig as XykCurveConfig, index$2_assertTransactionMessageFits as assertTransactionMessageFits, index$2_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$2_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$2_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$2_computeRemainingAccountsHash as computeRemainingAccountsHash, index$2_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$2_createInitializeConfigInstruction as createInitializeConfigInstruction, index$2_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$2_createLaunchId as createLaunchId, index$2_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$2_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$2_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$2_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$2_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$2_decodePreviewMigrationResult as decodePreviewMigrationResult, index$2_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$2_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$2_encodeU64LE as encodeU64LE, index$2_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$2_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$2_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$2_getConfigAddress as getConfigAddress, index$2_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$2_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, index$2_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$2_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$2_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$2_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$2_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$2_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$2_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$2_getLaunchAddress as getLaunchAddress, index$2_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$2_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$2_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$2_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$2_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$2_getProgramDataAddress as getProgramDataAddress, index$2_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$2_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$2_getTokenMetadataAddress as getTokenMetadataAddress, index$2_launchExists as launchExists, index$2_launchIdFromU64 as launchIdFromU64, index$2_launchTokenPrograms as launchTokenPrograms, index$2_measureTransactionMessageSize as measureTransactionMessageSize, index$2_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$2_phaseLabel as phaseLabel };
4525
4753
  }
4526
4754
 
4527
4755
  /**
@@ -6345,18 +6573,4 @@ declare namespace index {
6345
6573
  export { index_FINALIZE_DISCRIMINATOR as FINALIZE_DISCRIMINATOR, type index_FinalizeInput as FinalizeInput, type index_FinalizeInstruction as FinalizeInstruction, type index_FinalizeInstructionData as FinalizeInstructionData, type index_FinalizeInstructionDataArgs as FinalizeInstructionDataArgs, index_INITIALIZE_ORACLE_DISCRIMINATOR as INITIALIZE_ORACLE_DISCRIMINATOR, type index_InitializeOracleArgs as InitializeOracleArgs, type index_InitializeOracleArgsArgs as InitializeOracleArgsArgs, type index_InitializeOracleInput as InitializeOracleInput, type index_InitializeOracleInstruction as InitializeOracleInstruction, type index_InitializeOracleInstructionData as InitializeOracleInstructionData, type index_InitializeOracleInstructionDataArgs as InitializeOracleInstructionDataArgs, index_ORACLE_STATE_DISCRIMINATOR as ORACLE_STATE_DISCRIMINATOR, type index_OracleState as OracleState, type index_OracleStateArgs as OracleStateArgs, type index_ParsedFinalizeInstruction as ParsedFinalizeInstruction, type index_ParsedInitializeOracleInstruction as ParsedInitializeOracleInstruction, type index_ParsedTrustedOracleInstruction as ParsedTrustedOracleInstruction, index_TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED as TRUSTED_ORACLE_ERROR__ALREADY_FINALIZED, index_TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT as TRUSTED_ORACLE_ERROR__INVALID_WINNING_MINT, index_TRUSTED_ORACLE_ERROR__UNAUTHORIZED as TRUSTED_ORACLE_ERROR__UNAUTHORIZED, index_TRUSTED_ORACLE_PROGRAM_ADDRESS as TRUSTED_ORACLE_PROGRAM_ADDRESS, index_TrustedOracleAccount as TrustedOracleAccount, type index_TrustedOracleError as TrustedOracleError, index_TrustedOracleInstruction as TrustedOracleInstruction, type index_TrustedOraclePlugin as TrustedOraclePlugin, type index_TrustedOraclePluginAccounts as TrustedOraclePluginAccounts, type index_TrustedOraclePluginInstructions as TrustedOraclePluginInstructions, type index_TrustedOraclePluginRequirements as TrustedOraclePluginRequirements, index_decodeOracleState as decodeOracleState, index_fetchAllMaybeOracleState as fetchAllMaybeOracleState, index_fetchAllOracleState as fetchAllOracleState, index_fetchMaybeOracleState as fetchMaybeOracleState, index_fetchOracleState as fetchOracleState, index_getFinalizeDiscriminatorBytes as getFinalizeDiscriminatorBytes, index_getFinalizeInstruction as getFinalizeInstruction, index_getFinalizeInstructionDataCodec as getFinalizeInstructionDataCodec, index_getFinalizeInstructionDataDecoder as getFinalizeInstructionDataDecoder, index_getFinalizeInstructionDataEncoder as getFinalizeInstructionDataEncoder, index_getInitializeOracleArgsCodec as getInitializeOracleArgsCodec, index_getInitializeOracleArgsDecoder as getInitializeOracleArgsDecoder, index_getInitializeOracleArgsEncoder as getInitializeOracleArgsEncoder, index_getInitializeOracleDiscriminatorBytes as getInitializeOracleDiscriminatorBytes, index_getInitializeOracleInstruction as getInitializeOracleInstruction, index_getInitializeOracleInstructionDataCodec as getInitializeOracleInstructionDataCodec, index_getInitializeOracleInstructionDataDecoder as getInitializeOracleInstructionDataDecoder, index_getInitializeOracleInstructionDataEncoder as getInitializeOracleInstructionDataEncoder, index_getOracleStateAddress as getOracleStateAddress, index_getOracleStateCodec as getOracleStateCodec, index_getOracleStateDecoder as getOracleStateDecoder, index_getOracleStateDiscriminatorBytes as getOracleStateDiscriminatorBytes, index_getOracleStateEncoder as getOracleStateEncoder, index_getOracleStateSize as getOracleStateSize, index_getTrustedOracleErrorMessage as getTrustedOracleErrorMessage, index_identifyTrustedOracleAccount as identifyTrustedOracleAccount, index_identifyTrustedOracleInstruction as identifyTrustedOracleInstruction, index_isTrustedOracleError as isTrustedOracleError, index_parseFinalizeInstruction as parseFinalizeInstruction, index_parseInitializeOracleInstruction as parseInitializeOracleInstruction, index_parseTrustedOracleInstruction as parseTrustedOracleInstruction, index_trustedOracleProgram as trustedOracleProgram };
6346
6574
  }
6347
6575
 
6348
- interface SolanaCpmmProgramAddresses {
6349
- cpmmProgram: Address;
6350
- initializerProgram: Address;
6351
- cpmmMigratorProgram: Address;
6352
- cpmmHookProgram: Address;
6353
- cosignerHookProgram: Address;
6354
- }
6355
- interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
6356
- cpmmConfig: Address;
6357
- initializerConfig: Address;
6358
- }
6359
- declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
6360
- declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
6361
-
6362
- export { DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, index$4 as cosignerHook, index$5 as cpmm, index$2 as cpmmMigrator, deriveSolanaCpmmDeployment, index$3 as initializer, index$1 as predictionMigrator, index as trustedOracle };
6576
+ export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchHookMode, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type XykCurveConfig, index$4 as cosignerHook, index$5 as cpmm, index$3 as cpmmMigrator, createLaunch, deriveSolanaCpmmDeployment, index$2 as initializer, index$1 as predictionMigrator, index as trustedOracle };