@whetstone-research/doppler-sdk 1.0.20 → 1.0.21

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,5 +1,5 @@
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, 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, TransactionMessage, TransactionMessageWithFeePayer, OptionOrNullable, Option } 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
5
  import * as _solana_addresses from '@solana/addresses';
@@ -3470,11 +3470,9 @@ type InitializeLaunchArgs = {
3470
3470
  curveParams: ReadonlyUint8Array;
3471
3471
  allowBuy: number;
3472
3472
  allowSell: number;
3473
- hookProgram: Address;
3474
3473
  hookFlags: number;
3475
3474
  hookPayload: ReadonlyUint8Array;
3476
3475
  hookCreateRemainingAccountsLen: number;
3477
- migratorProgram: Address;
3478
3476
  migratorInitPayload: ReadonlyUint8Array;
3479
3477
  migratorMigratePayload: ReadonlyUint8Array;
3480
3478
  /**
@@ -3519,11 +3517,9 @@ type InitializeLaunchArgsArgs = {
3519
3517
  curveParams: ReadonlyUint8Array;
3520
3518
  allowBuy: number;
3521
3519
  allowSell: number;
3522
- hookProgram: Address;
3523
3520
  hookFlags: number;
3524
3521
  hookPayload: ReadonlyUint8Array;
3525
3522
  hookCreateRemainingAccountsLen: number;
3526
- migratorProgram: Address;
3527
3523
  migratorInitPayload: ReadonlyUint8Array;
3528
3524
  migratorMigratePayload: ReadonlyUint8Array;
3529
3525
  /**
@@ -3943,7 +3939,6 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
3943
3939
  /** @deprecated Use swapFeeBps. */
3944
3940
  curveFeeBps?: number;
3945
3941
  feeBeneficiaries?: InitializeLaunchArgsArgs['feeBeneficiaries'];
3946
- hookProgram?: Address;
3947
3942
  hookCreateRemainingAccountsLen?: number;
3948
3943
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
3949
3944
  };
@@ -4114,6 +4109,33 @@ declare function compressTransactionMessageWithLookupTable<TTransactionMessage e
4114
4109
  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)[];
4115
4110
  } : TTransactionMessage);
4116
4111
 
4112
+ declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
4113
+ interface TransactionSizeReport {
4114
+ size: number;
4115
+ limit: number;
4116
+ overBy: number;
4117
+ fits: boolean;
4118
+ }
4119
+ interface TransactionSizeAssertOptions {
4120
+ label?: string;
4121
+ metadataBytes?: number;
4122
+ }
4123
+ type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
4124
+ declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
4125
+ declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4126
+ version: 'legacy';
4127
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4128
+ lookupTableAddress: Address;
4129
+ addresses: readonly Address[];
4130
+ }): TransactionSizeReport;
4131
+ declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
4132
+ declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4133
+ version: 'legacy';
4134
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4135
+ lookupTableAddress: Address;
4136
+ addresses: readonly Address[];
4137
+ }, options?: TransactionSizeAssertOptions): TransactionSizeReport;
4138
+
4117
4139
  /**
4118
4140
  * Launch fetching functions for the Initializer SDK
4119
4141
  */
@@ -4188,11 +4210,16 @@ declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
4188
4210
  declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
4189
4211
  declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
4190
4212
  declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
4213
+ declare const index$3_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
4191
4214
  type index$3_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
4192
4215
  type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
4193
4216
  type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
4194
4217
  declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
4195
4218
  declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
4219
+ type index$3_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
4220
+ type index$3_TransactionSizeReport = TransactionSizeReport;
4221
+ declare const index$3_assertTransactionMessageFits: typeof assertTransactionMessageFits;
4222
+ declare const index$3_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
4196
4223
  declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
4197
4224
  declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
4198
4225
  declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
@@ -4231,9 +4258,11 @@ declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyIns
4231
4258
  declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress;
4232
4259
  declare const index$3_launchExists: typeof launchExists;
4233
4260
  declare const index$3_launchIdFromU64: typeof launchIdFromU64;
4261
+ declare const index$3_measureTransactionMessageSize: typeof measureTransactionMessageSize;
4262
+ declare const index$3_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
4234
4263
  declare const index$3_phaseLabel: typeof phaseLabel;
4235
4264
  declare namespace index$3 {
4236
- 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, 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, 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_phaseLabel as phaseLabel };
4265
+ 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 };
4237
4266
  }
4238
4267
 
4239
4268
  /**
@@ -1,5 +1,5 @@
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, 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, TransactionMessage, TransactionMessageWithFeePayer, OptionOrNullable, Option } 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.js';
4
4
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
5
5
  import * as _solana_addresses from '@solana/addresses';
@@ -3470,11 +3470,9 @@ type InitializeLaunchArgs = {
3470
3470
  curveParams: ReadonlyUint8Array;
3471
3471
  allowBuy: number;
3472
3472
  allowSell: number;
3473
- hookProgram: Address;
3474
3473
  hookFlags: number;
3475
3474
  hookPayload: ReadonlyUint8Array;
3476
3475
  hookCreateRemainingAccountsLen: number;
3477
- migratorProgram: Address;
3478
3476
  migratorInitPayload: ReadonlyUint8Array;
3479
3477
  migratorMigratePayload: ReadonlyUint8Array;
3480
3478
  /**
@@ -3519,11 +3517,9 @@ type InitializeLaunchArgsArgs = {
3519
3517
  curveParams: ReadonlyUint8Array;
3520
3518
  allowBuy: number;
3521
3519
  allowSell: number;
3522
- hookProgram: Address;
3523
3520
  hookFlags: number;
3524
3521
  hookPayload: ReadonlyUint8Array;
3525
3522
  hookCreateRemainingAccountsLen: number;
3526
- migratorProgram: Address;
3527
3523
  migratorInitPayload: ReadonlyUint8Array;
3528
3524
  migratorMigratePayload: ReadonlyUint8Array;
3529
3525
  /**
@@ -3943,7 +3939,6 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
3943
3939
  /** @deprecated Use swapFeeBps. */
3944
3940
  curveFeeBps?: number;
3945
3941
  feeBeneficiaries?: InitializeLaunchArgsArgs['feeBeneficiaries'];
3946
- hookProgram?: Address;
3947
3942
  hookCreateRemainingAccountsLen?: number;
3948
3943
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
3949
3944
  };
@@ -4114,6 +4109,33 @@ declare function compressTransactionMessageWithLookupTable<TTransactionMessage e
4114
4109
  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)[];
4115
4110
  } : TTransactionMessage);
4116
4111
 
4112
+ declare const SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
4113
+ interface TransactionSizeReport {
4114
+ size: number;
4115
+ limit: number;
4116
+ overBy: number;
4117
+ fits: boolean;
4118
+ }
4119
+ interface TransactionSizeAssertOptions {
4120
+ label?: string;
4121
+ metadataBytes?: number;
4122
+ }
4123
+ type SizedTransactionMessage = TransactionMessage & TransactionMessageWithFeePayer;
4124
+ declare function measureTransactionMessageSize(transactionMessage: SizedTransactionMessage): TransactionSizeReport;
4125
+ declare function measureTransactionMessageSizeWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4126
+ version: 'legacy';
4127
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4128
+ lookupTableAddress: Address;
4129
+ addresses: readonly Address[];
4130
+ }): TransactionSizeReport;
4131
+ declare function assertTransactionMessageFits(transactionMessage: SizedTransactionMessage, { label, metadataBytes }?: TransactionSizeAssertOptions): TransactionSizeReport;
4132
+ declare function assertTransactionMessageFitsWithLookupTable<TTransactionMessage extends Exclude<SizedTransactionMessage, {
4133
+ version: 'legacy';
4134
+ }>>(transactionMessage: TTransactionMessage, lookupTable: {
4135
+ lookupTableAddress: Address;
4136
+ addresses: readonly Address[];
4137
+ }, options?: TransactionSizeAssertOptions): TransactionSizeReport;
4138
+
4117
4139
  /**
4118
4140
  * Launch fetching functions for the Initializer SDK
4119
4141
  */
@@ -4188,11 +4210,16 @@ declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
4188
4210
  declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
4189
4211
  declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
4190
4212
  declare const index$3_SEED_LAUNCH_FEE_STATE: typeof SEED_LAUNCH_FEE_STATE;
4213
+ declare const index$3_SOLANA_TRANSACTION_SIZE_LIMIT: typeof SOLANA_TRANSACTION_SIZE_LIMIT;
4191
4214
  type index$3_SetFeePolicyAsyncInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = SetFeePolicyAsyncInput<TAccountConfig, TAccountAdmin>;
4192
4215
  type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
4193
4216
  type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
4194
4217
  declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
4195
4218
  declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
4219
+ type index$3_TransactionSizeAssertOptions = TransactionSizeAssertOptions;
4220
+ type index$3_TransactionSizeReport = TransactionSizeReport;
4221
+ declare const index$3_assertTransactionMessageFits: typeof assertTransactionMessageFits;
4222
+ declare const index$3_assertTransactionMessageFitsWithLookupTable: typeof assertTransactionMessageFitsWithLookupTable;
4196
4223
  declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
4197
4224
  declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
4198
4225
  declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
@@ -4231,9 +4258,11 @@ declare const index$3_getSetFeePolicyInstructionAsync: typeof getSetFeePolicyIns
4231
4258
  declare const index$3_getTokenMetadataAddress: typeof getTokenMetadataAddress;
4232
4259
  declare const index$3_launchExists: typeof launchExists;
4233
4260
  declare const index$3_launchIdFromU64: typeof launchIdFromU64;
4261
+ declare const index$3_measureTransactionMessageSize: typeof measureTransactionMessageSize;
4262
+ declare const index$3_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
4234
4263
  declare const index$3_phaseLabel: typeof phaseLabel;
4235
4264
  declare namespace index$3 {
4236
- 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, 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, 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_phaseLabel as phaseLabel };
4265
+ 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 };
4237
4266
  }
4238
4267
 
4239
4268
  /**
@@ -1,7 +1,7 @@
1
1
  import { transferAdminArgsCodec, swapExactInArgsCodec, sortPositionsByShares, sortPoolsByReserves, setHookArgsCodec, setFeesArgsCodec, removeLiquidityArgsCodec, ratioToNumber, q64ToNumber, q64Mul, q64Div, positionDataCodec, poolExists, poolDataCodec, parseWithdrawVaultExcessInstruction, parseUpdateConfigInstruction, parseUnpauseInstruction, parseTransferAdminInstruction, parseSwapExactInInstruction, parseSetHookInstruction, parseSetFeesInstruction, parseRemoveLiquidityInstruction, parseRedeemProtocolSharesInstruction, parsePreviewSwapExactInInstruction, parsePauseInstruction, parseOracleUpdateInstruction, parseOracleConsultInstruction, parseInitializePoolInstruction, parseInitializeOracleInstruction, parseInitializeConfigInstruction, parseCreatePositionInstruction, parseCollectProtocolFeesInstruction, parseCollectFeesInstruction, parseClosePositionInstruction, parseAddLiquidityInstruction, oracleStateDataCodec, oracleConsultArgsCodec, observationCodec, numberToQ64, minBigInt, maxBigInt, isqrt, isOracleStale, initializePoolArgsCodec, initializeOracleArgsCodec, initializeConfigArgsCodec, getWithdrawVaultExcessInstructionDataEncoder, getWithdrawVaultExcessInstructionDataDecoder, getWithdrawVaultExcessInstructionDataCodec, getWithdrawVaultExcessInstructionAsync, getWithdrawVaultExcessInstruction, getWithdrawVaultExcessDiscriminatorBytes, getUpdateConfigInstructionDataEncoder, getUpdateConfigInstructionDataDecoder, getUpdateConfigInstructionDataCodec, getUpdateConfigInstruction, getUpdateConfigDiscriminatorBytes, getUnpauseInstructionDataEncoder, getUnpauseInstructionDataDecoder, getUnpauseInstructionDataCodec, getUnpauseInstruction, getUnpauseDiscriminatorBytes, getTvl, getTransferAdminInstructionDataEncoder, getTransferAdminInstructionDataDecoder, getTransferAdminInstructionDataCodec, getTransferAdminInstruction, getTransferAdminDiscriminatorBytes, getSwapQuoteExactOut, getSwapQuote, getSwapExactInInstructionDataEncoder, getSwapExactInInstructionDataDecoder, getSwapExactInInstructionDataCodec, getSwapExactInInstructionAsync, getSwapExactInInstruction, getSwapExactInDiscriminatorBytes, getSpotPrice1, getSpotPrice0, getSetHookInstructionDataEncoder, getSetHookInstructionDataDecoder, getSetHookInstructionDataCodec, getSetHookInstruction, getSetHookDiscriminatorBytes, getSetFeesInstructionDataEncoder, getSetFeesInstructionDataDecoder, getSetFeesInstructionDataCodec, getSetFeesInstruction, getSetFeesDiscriminatorBytes, getRemoveLiquidityQuote, getRemoveLiquidityInstructionDataEncoder, getRemoveLiquidityInstructionDataDecoder, getRemoveLiquidityInstructionDataCodec, getRemoveLiquidityInstructionAsync, getRemoveLiquidityInstruction, getRemoveLiquidityDiscriminatorBytes, getRedeemProtocolSharesInstructionDataEncoder, getRedeemProtocolSharesInstructionDataDecoder, getRedeemProtocolSharesInstructionDataCodec, getRedeemProtocolSharesInstructionAsync, getRedeemProtocolSharesInstruction, getRedeemProtocolSharesDiscriminatorBytes, getPreviewSwapExactInInstructionDataEncoder, getPreviewSwapExactInInstructionDataDecoder, getPreviewSwapExactInInstructionDataCodec, getPreviewSwapExactInInstruction, getPreviewSwapExactInDiscriminatorBytes, getPositionValue, getPositionAddressFromParams, getPoolByMints, getPoolAddressFromMints, getPendingFees, getPauseInstructionDataEncoder, getPauseInstructionDataDecoder, getPauseInstructionDataCodec, getPauseInstruction, getPauseDiscriminatorBytes, getOracleUpdateInstructionDataEncoder, getOracleUpdateInstructionDataDecoder, getOracleUpdateInstructionDataCodec, getOracleUpdateInstructionAsync, getOracleUpdateInstruction, getOracleUpdateDiscriminatorBytes, getOracleSpotPrices, getOracleForPool, getOracleDeviation, getOracleConsultInstructionDataEncoder, getOracleConsultInstructionDataDecoder, getOracleConsultInstructionDataCodec, getOracleConsultInstructionAsync, getOracleConsultInstruction, getOracleConsultDiscriminatorBytes, getOracleBufferStats, getOracleAge, getOracleAddressFromPool, getK, getInitializePoolInstructionDataEncoder, getInitializePoolInstructionDataDecoder, getInitializePoolInstructionDataCodec, getInitializePoolInstructionAsync, getInitializePoolInstruction, getInitializePoolDiscriminatorBytes, getInitializeOracleInstructionDataEncoder, getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionAsync, getInitializeOracleInstruction, getInitializeOracleDiscriminatorBytes, getInitializeConfigInstructionDataEncoder, getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionAsync, getInitializeConfigInstruction, getInitializeConfigDiscriminatorBytes, getCreatePositionInstructionDataEncoder, getCreatePositionInstructionDataDecoder, getCreatePositionInstructionDataCodec, getCreatePositionInstructionAsync, getCreatePositionInstruction, getCreatePositionDiscriminatorBytes, getCollectProtocolFeesInstructionDataEncoder, getCollectProtocolFeesInstructionDataDecoder, getCollectProtocolFeesInstructionDataCodec, getCollectProtocolFeesInstructionAsync, getCollectProtocolFeesInstruction, getCollectProtocolFeesDiscriminatorBytes, getCollectFeesInstructionDataEncoder, getCollectFeesInstructionDataDecoder, getCollectFeesInstructionDataCodec, getCollectFeesInstructionAsync, getCollectFeesInstruction, getCollectFeesDiscriminatorBytes, getClosePositionInstructionDataEncoder, getClosePositionInstructionDataDecoder, getClosePositionInstructionDataCodec, getClosePositionInstruction, getClosePositionDiscriminatorBytes, getAddLiquidityQuote, getAddLiquidityInstructionDataEncoder, getAddLiquidityInstructionDataDecoder, getAddLiquidityInstructionDataCodec, getAddLiquidityInstructionAsync, getAddLiquidityInstruction, getAddLiquidityDiscriminatorBytes, filterPoolsByMint, filterActivePositions, fetchUserPositions, fetchPositionsBatch, fetchPositionByParams, fetchPosition, fetchPoolsBatch, fetchPoolPositions, fetchPool, fetchOraclesBatch, fetchOracle, fetchAllPools, encodeTransferAdminArgs, encodeSwapExactInArgs, encodeSetHookArgs, encodeSetFeesArgs, encodeRemoveLiquidityArgs, encodeOracleConsultArgs, encodeInstructionData, encodeInitializePoolArgs, encodeInitializeOracleArgs, encodeInitializeConfigArgs, encodeCreatePositionArgs, encodeCollectProtocolFeesArgs, encodeCollectFeesArgs, encodeAddLiquidityArgs, decodePosition, decodePool, decodeOracleState, decodeAmmConfig, createPositionArgsCodec, consultTwap, computePrice1Q64, computePrice0Q64, comparePoolAndOraclePrices, collectProtocolFeesArgsCodec, collectFeesArgsCodec, ceilDiv, calculateTwapNumber, calculateTwap, calculateAccruedFees, ammConfigDataCodec, addLiquidityArgsCodec, WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, UPDATE_CONFIG_DISCRIMINATOR, UNPAUSE_DISCRIMINATOR, TRANSFER_ADMIN_DISCRIMINATOR, SWAP_EXACT_IN_DISCRIMINATOR, SET_HOOK_DISCRIMINATOR, SET_FEES_DISCRIMINATOR, REMOVE_LIQUIDITY_DISCRIMINATOR, REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, PAUSE_DISCRIMINATOR, ORACLE_UPDATE_DISCRIMINATOR, ORACLE_CONSULT_DISCRIMINATOR, INITIALIZE_POOL_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR, INITIALIZE_CONFIG_DISCRIMINATOR, CREATE_POSITION_DISCRIMINATOR, COLLECT_PROTOCOL_FEES_DISCRIMINATOR, COLLECT_FEES_DISCRIMINATOR, CLOSE_POSITION_DISCRIMINATOR, ADD_LIQUIDITY_DISCRIMINATOR, CPMM_PROGRAM_ADDRESS } from '../chunk-BESE77DM.js';
2
2
  import { sortMints, getSwapAddresses, getProtocolFeePositionAddress, getProtocolFeeOwnerAddress, getPositionAddress, getPoolVault1Address, getPoolVault0Address, getPoolInitAddresses, getPoolAuthorityAddress, getPoolAddress, getOracleAddress, getLiquidityAddresses, getConfigAddress, CPMM_PROGRAM_ID, areMintsOrdered, TOKEN_METADATA_PROGRAM_ID, SEED_PROTOCOL_FEE_OWNER, SEED_POSITION, SEED_POOL, SEED_ORACLE, SEED_CONFIG, SEED_AUTHORITY, Q64_ONE, MAX_ORACLE_OBSERVATIONS, MAX_HOOK_ALLOWLIST, INSTRUCTION_DISCRIMINATORS, HOOK_NO_CHANGE, HF_REQUIRE_ORACLE, HF_FORWARD_READONLY_SIGNERS, HF_BEFORE_SWAP, HF_BEFORE_REMOVE_LIQ, HF_BEFORE_ADD_LIQ, HF_AFTER_SWAP, HF_AFTER_REMOVE_LIQ, HF_AFTER_ADD_LIQ, BPS_DENOM, ACCOUNT_VERSION, ACCOUNT_DISCRIMINATORS, TOKEN_PROGRAM_ADDRESS, SYSTEM_PROGRAM_ADDRESS } from '../chunk-ZUJKBFXW.js';
3
3
  import { __export } from '../chunk-PZ5AY32C.js';
4
- import { getAddressCodec, getProgramDerivedAddress, createNoopSigner, fixEncoderSize, getBytesEncoder, transformEncoder, getStructEncoder, getAddressEncoder, getU8Encoder, getArrayEncoder, getStructDecoder, fixDecoderSize, getAddressDecoder, getU8Decoder, getArrayDecoder, getBytesDecoder, combineCodec, decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts, SolanaError, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, containsBytes, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, assertIsInstructionWithAccounts, isProgramError, address, getU16Encoder, getU16Decoder, getU64Encoder, addEncoderSizePrefix, getU32Encoder, getUtf8Encoder, getU64Decoder, addDecoderSizePrefix, getU32Decoder, getUtf8Decoder, AccountRole, getStructCodec, getU64Codec, compressTransactionMessageUsingAddressLookupTables, getOptionEncoder, getU128Encoder, getOptionDecoder, getU128Decoder, getBooleanEncoder, getBooleanDecoder, mergeBytes, getEnumEncoder } from '@solana/kit';
4
+ import { getAddressCodec, getProgramDerivedAddress, createNoopSigner, fixEncoderSize, getBytesEncoder, transformEncoder, getStructEncoder, getAddressEncoder, getU8Encoder, getArrayEncoder, getStructDecoder, fixDecoderSize, getAddressDecoder, getU8Decoder, getArrayDecoder, getBytesDecoder, combineCodec, decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts, SolanaError, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, containsBytes, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT, SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, assertIsInstructionWithAccounts, isProgramError, address, getU16Encoder, getU16Decoder, getU64Encoder, addEncoderSizePrefix, getU32Encoder, getUtf8Encoder, getU64Decoder, addDecoderSizePrefix, getU32Decoder, getUtf8Decoder, AccountRole, getStructCodec, getU64Codec, compressTransactionMessageUsingAddressLookupTables, getTransactionMessageSize, getOptionEncoder, getU128Encoder, getOptionDecoder, getU128Decoder, getBooleanEncoder, getBooleanDecoder, mergeBytes, getEnumEncoder } from '@solana/kit';
5
5
  import { getAccountMetaFactory, addSelfPlanAndSendFunctions, addSelfFetchFunctions, getAddressFromResolvedInstructionAccount } from '@solana/program-client-core';
6
6
  import { keccak_256 } from '@noble/hashes/sha3.js';
7
7
  import { findAddressLookupTablePda, getCreateLookupTableInstruction, getExtendLookupTableInstruction } from '@solana-program/address-lookup-table';
@@ -1686,8 +1686,11 @@ __export(initializer_exports, {
1686
1686
  SEED_LAUNCH: () => SEED_LAUNCH,
1687
1687
  SEED_LAUNCH_AUTHORITY: () => SEED_LAUNCH_AUTHORITY,
1688
1688
  SEED_LAUNCH_FEE_STATE: () => SEED_LAUNCH_FEE_STATE,
1689
+ SOLANA_TRANSACTION_SIZE_LIMIT: () => SOLANA_TRANSACTION_SIZE_LIMIT,
1689
1690
  TRADE_DIRECTION_BUY: () => TRADE_DIRECTION_BUY,
1690
1691
  TRADE_DIRECTION_SELL: () => TRADE_DIRECTION_SELL,
1692
+ assertTransactionMessageFits: () => assertTransactionMessageFits,
1693
+ assertTransactionMessageFitsWithLookupTable: () => assertTransactionMessageFitsWithLookupTable,
1691
1694
  buildAddressLookupTableSetupInstructions: () => buildAddressLookupTableSetupInstructions,
1692
1695
  compressTransactionMessageWithLookupTable: () => compressTransactionMessageWithLookupTable,
1693
1696
  computeRemainingAccountsHash: () => computeRemainingAccountsHash,
@@ -1733,6 +1736,8 @@ __export(initializer_exports, {
1733
1736
  getTokenMetadataAddress: () => getTokenMetadataAddress,
1734
1737
  launchExists: () => launchExists,
1735
1738
  launchIdFromU64: () => launchIdFromU64,
1739
+ measureTransactionMessageSize: () => measureTransactionMessageSize,
1740
+ measureTransactionMessageSizeWithLookupTable: () => measureTransactionMessageSizeWithLookupTable,
1736
1741
  phaseLabel: () => phaseLabel
1737
1742
  });
1738
1743
  var INITIALIZER_PROGRAM_ID = address(
@@ -2031,11 +2036,9 @@ function getInitializeLaunchArgsEncoder() {
2031
2036
  ["curveParams", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
2032
2037
  ["allowBuy", getU8Encoder()],
2033
2038
  ["allowSell", getU8Encoder()],
2034
- ["hookProgram", getAddressEncoder()],
2035
2039
  ["hookFlags", getU32Encoder()],
2036
2040
  ["hookPayload", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
2037
2041
  ["hookCreateRemainingAccountsLen", getU32Encoder()],
2038
- ["migratorProgram", getAddressEncoder()],
2039
2042
  [
2040
2043
  "migratorInitPayload",
2041
2044
  addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())
@@ -2072,11 +2075,9 @@ function getInitializeLaunchArgsDecoder() {
2072
2075
  ["curveParams", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
2073
2076
  ["allowBuy", getU8Decoder()],
2074
2077
  ["allowSell", getU8Decoder()],
2075
- ["hookProgram", getAddressDecoder()],
2076
2078
  ["hookFlags", getU32Decoder()],
2077
2079
  ["hookPayload", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
2078
2080
  ["hookCreateRemainingAccountsLen", getU32Decoder()],
2079
- ["migratorProgram", getAddressDecoder()],
2080
2081
  [
2081
2082
  "migratorInitPayload",
2082
2083
  addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())
@@ -2651,11 +2652,9 @@ function getInitializeLaunchInstructionDataEncoder() {
2651
2652
  ["curveParams", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
2652
2653
  ["allowBuy", getU8Encoder()],
2653
2654
  ["allowSell", getU8Encoder()],
2654
- ["hookProgram", getAddressEncoder()],
2655
2655
  ["hookFlags", getU32Encoder()],
2656
2656
  ["hookPayload", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
2657
2657
  ["hookCreateRemainingAccountsLen", getU32Encoder()],
2658
- ["migratorProgram", getAddressEncoder()],
2659
2658
  [
2660
2659
  "migratorInitPayload",
2661
2660
  addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())
@@ -5207,9 +5206,7 @@ async function createInitializeLaunchInstruction(accounts, args, programId = INI
5207
5206
  feeBeneficiaries: args.feeBeneficiaries ?? [],
5208
5207
  allowBuy: args.allowBuy ? 1 : 0,
5209
5208
  allowSell: args.allowSell ? 1 : 0,
5210
- hookProgram: args.hookProgram ?? hookProgram ?? SYSTEM_PROGRAM_ADDRESS,
5211
5209
  hookCreateRemainingAccountsLen: args.hookCreateRemainingAccountsLen ?? hookCreateRemainingAccounts.length,
5212
- migratorProgram: migratorProgram ?? SYSTEM_PROGRAM_ADDRESS,
5213
5210
  hookCreateRemainingAccountsHash: args.hookCreateRemainingAccountsHash ?? (createHooksEnabled ? computeRemainingAccountsHash(hookCreateRemainingAccountAddresses) : new Uint8Array(32))
5214
5211
  };
5215
5212
  const data = new Uint8Array(
@@ -5513,6 +5510,39 @@ function compressTransactionMessageWithLookupTable(transactionMessage, {
5513
5510
  }
5514
5511
  );
5515
5512
  }
5513
+ var SOLANA_TRANSACTION_SIZE_LIMIT = 1232;
5514
+ function measureTransactionMessageSize(transactionMessage) {
5515
+ const size = getTransactionMessageSize(transactionMessage);
5516
+ const overBy = Math.max(0, size - SOLANA_TRANSACTION_SIZE_LIMIT);
5517
+ return {
5518
+ size,
5519
+ limit: SOLANA_TRANSACTION_SIZE_LIMIT,
5520
+ overBy,
5521
+ fits: overBy === 0
5522
+ };
5523
+ }
5524
+ function measureTransactionMessageSizeWithLookupTable(transactionMessage, lookupTable) {
5525
+ return measureTransactionMessageSize(
5526
+ compressTransactionMessageWithLookupTable(transactionMessage, lookupTable)
5527
+ );
5528
+ }
5529
+ function assertTransactionMessageFits(transactionMessage, { label = "Transaction", metadataBytes } = {}) {
5530
+ const report = measureTransactionMessageSize(transactionMessage);
5531
+ if (report.fits) {
5532
+ return report;
5533
+ }
5534
+ const metadataHint = metadataBytes && metadataBytes > 0 ? ` Metadata contributes ${metadataBytes} instruction-data bytes; address lookup tables do not compress metadata strings.` : "";
5535
+ throw new Error(
5536
+ `${label} is ${report.size} bytes, exceeding Solana's ${report.limit}-byte transaction limit by ${report.overBy} bytes.${metadataHint}`
5537
+ );
5538
+ }
5539
+ function assertTransactionMessageFitsWithLookupTable(transactionMessage, lookupTable, options = {}) {
5540
+ const compressedMessage = compressTransactionMessageWithLookupTable(
5541
+ transactionMessage,
5542
+ lookupTable
5543
+ );
5544
+ return assertTransactionMessageFits(compressedMessage, options);
5545
+ }
5516
5546
  var addressCodec5 = getAddressCodec();
5517
5547
  function bytesToBase64(bytes) {
5518
5548
  let binary = "";