@whetstone-research/doppler-sdk 1.0.27 → 1.0.29

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, OptionOrNullable, Option, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit';
2
+ import { Address, ReadonlyUint8Array, Codec, Base58EncodedBytes, Base64EncodedBytes, TransactionSigner, AccountRole, AccountMeta, AccountSignerMeta, ProgramDerivedAddress, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, 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
5
 
@@ -23,8 +23,10 @@ declare const MAX_HOOK_ALLOWLIST$1 = 32;
23
23
  declare const MAX_ORACLE_OBSERVATIONS = 64;
24
24
  /** Seed for AmmConfig PDA: ['config'] */
25
25
  declare const SEED_CONFIG$1 = "config";
26
- /** Seed prefix for Pool PDA: ['pool', token0_mint, token1_mint] */
26
+ /** Seed prefix for launch-migrated Pool PDA: ['pool', token0_mint, token1_mint] */
27
27
  declare const SEED_POOL = "pool";
28
+ /** Seed prefix for spot Pool PDA: ['spot_pool', token0_mint, token1_mint, swap_fee_bps] */
29
+ declare const SEED_SPOT_POOL = "spot_pool";
28
30
  /** Seed prefix for pool authority PDA: ['authority', pool] */
29
31
  declare const SEED_AUTHORITY = "authority";
30
32
  /** Seed prefix for Position PDA: ['position', pool, owner, position_id] */
@@ -162,6 +164,27 @@ declare function encodeTransferAdminArgs(args: TransferAdminArgs): Uint8Array;
162
164
  /** Encode OracleConsult args */
163
165
  declare function encodeOracleConsultArgs(args: OracleConsultArgs): Uint8Array;
164
166
 
167
+ type AddressOrTransactionSigner = Address | TransactionSigner;
168
+ type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
169
+ type AccountMetaRole = typeof AccountRole.READONLY | typeof AccountRole.WRITABLE | typeof AccountRole.READONLY_SIGNER | typeof AccountRole.WRITABLE_SIGNER;
170
+ type EncodedProgramAccount = Readonly<{
171
+ pubkey: Address;
172
+ account: Readonly<{
173
+ data: readonly [string, 'base64'];
174
+ }>;
175
+ }>;
176
+ declare function isTransactionSigner(value: unknown): value is TransactionSigner;
177
+ declare function getAddressFromAddressOrSigner(value: AddressOrTransactionSigner): Address;
178
+ declare function getAddressFromRemainingAccount(account: RemainingAccount): Address;
179
+ declare function createAccountMeta(value: AddressOrTransactionSigner, role: AccountMetaRole): AccountMeta | AccountSignerMeta;
180
+ declare function createReadonlyRemainingAccountMeta(account: RemainingAccount): AccountMeta | AccountSignerMeta;
181
+ declare function bytesToBase64(bytes: ReadonlyUint8Array): string;
182
+ declare function bytesToBase64EncodedBytes(bytes: ReadonlyUint8Array): Base64EncodedBytes;
183
+ declare function base64ToBytes(base64: string): Uint8Array;
184
+ declare function addressToBase58EncodedBytes(address: Address): Base58EncodedBytes;
185
+ declare function normalizeProgramAccountsResponse(response: unknown): EncodedProgramAccount[];
186
+ declare function warnAccountDecodeFailure(accountType: string, accountAddress: Address): void;
187
+
165
188
  /**
166
189
  * Sort two mints into canonical order (token0 < token1 by bytes)
167
190
  * This is required for Pool PDA derivation and instruction ordering.
@@ -188,6 +211,13 @@ declare function getConfigAddress$1(programId?: Address): Promise<ProgramDerived
188
211
  * Note: Mints will be automatically sorted if not in canonical order.
189
212
  */
190
213
  declare function getPoolAddress(mint0: Address, mint1: Address, programId?: Address): Promise<ProgramDerivedAddress>;
214
+ /**
215
+ * Derive the spot Pool PDA address for a token pair and immutable fee tier.
216
+ * Seeds: ['spot_pool', token0_mint, token1_mint, swap_fee_bps_le]
217
+ *
218
+ * Note: Mints will be automatically sorted if not in canonical order.
219
+ */
220
+ declare function getSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, programId?: Address): Promise<ProgramDerivedAddress>;
191
221
  /**
192
222
  * Derive the Pool authority PDA (vault owner)
193
223
  * Seeds: ['authority', pool]
@@ -1319,6 +1349,117 @@ type ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGR
1319
1349
  };
1320
1350
  declare function parseInitializePoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
1321
1351
 
1352
+ /**
1353
+ * This code was AUTOGENERATED using the Codama library.
1354
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1355
+ * to add features, then rerun Codama to update it.
1356
+ *
1357
+ * @see https://github.com/codama-idl/codama
1358
+ */
1359
+
1360
+ declare const INITIALIZE_SPOT_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1361
+ declare function getInitializeSpotPoolDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1362
+ type InitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1363
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1364
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1365
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
1366
+ TAccountProtocolFeeOwner extends string ? ReadonlyAccount<TAccountProtocolFeeOwner> : TAccountProtocolFeeOwner,
1367
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1368
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1369
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1370
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1371
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1372
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1373
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1374
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1375
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1376
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
1377
+ TAccountMigrationAuthority extends string ? ReadonlySignerAccount<TAccountMigrationAuthority> & AccountSignerMeta<TAccountMigrationAuthority> : TAccountMigrationAuthority,
1378
+ ...TRemainingAccounts
1379
+ ]>;
1380
+ type InitializeSpotPoolInstructionData = {
1381
+ discriminator: ReadonlyUint8Array;
1382
+ mintA: Address;
1383
+ mintB: Address;
1384
+ swapFeeBps: number;
1385
+ };
1386
+ type InitializeSpotPoolInstructionDataArgs = {
1387
+ mintA: Address;
1388
+ mintB: Address;
1389
+ swapFeeBps: number;
1390
+ };
1391
+ declare function getInitializeSpotPoolInstructionDataEncoder(): FixedSizeEncoder<InitializeSpotPoolInstructionDataArgs>;
1392
+ declare function getInitializeSpotPoolInstructionDataDecoder(): FixedSizeDecoder<InitializeSpotPoolInstructionData>;
1393
+ declare function getInitializeSpotPoolInstructionDataCodec(): FixedSizeCodec<InitializeSpotPoolInstructionDataArgs, InitializeSpotPoolInstructionData>;
1394
+ type InitializeSpotPoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = {
1395
+ config: Address<TAccountConfig>;
1396
+ pool: Address<TAccountPool>;
1397
+ protocolFeePosition?: Address<TAccountProtocolFeePosition>;
1398
+ protocolFeeOwner?: Address<TAccountProtocolFeeOwner>;
1399
+ authority?: Address<TAccountAuthority>;
1400
+ vault0?: Address<TAccountVault0>;
1401
+ vault1?: Address<TAccountVault1>;
1402
+ token0Mint: Address<TAccountToken0Mint>;
1403
+ token1Mint: Address<TAccountToken1Mint>;
1404
+ payer: TransactionSigner<TAccountPayer>;
1405
+ token0Program: Address<TAccountToken0Program>;
1406
+ token1Program: Address<TAccountToken1Program>;
1407
+ systemProgram?: Address<TAccountSystemProgram>;
1408
+ rent?: Address<TAccountRent>;
1409
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1410
+ mintA: InitializeSpotPoolInstructionDataArgs['mintA'];
1411
+ mintB: InitializeSpotPoolInstructionDataArgs['mintB'];
1412
+ swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps'];
1413
+ };
1414
+ declare function getInitializeSpotPoolInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountProtocolFeeOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1415
+ programAddress?: TProgramAddress;
1416
+ }): Promise<InitializeSpotPoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>>;
1417
+ type InitializeSpotPoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = {
1418
+ config: Address<TAccountConfig>;
1419
+ pool: Address<TAccountPool>;
1420
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1421
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
1422
+ authority: Address<TAccountAuthority>;
1423
+ vault0: Address<TAccountVault0>;
1424
+ vault1: Address<TAccountVault1>;
1425
+ token0Mint: Address<TAccountToken0Mint>;
1426
+ token1Mint: Address<TAccountToken1Mint>;
1427
+ payer: TransactionSigner<TAccountPayer>;
1428
+ token0Program: Address<TAccountToken0Program>;
1429
+ token1Program: Address<TAccountToken1Program>;
1430
+ systemProgram?: Address<TAccountSystemProgram>;
1431
+ rent?: Address<TAccountRent>;
1432
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1433
+ mintA: InitializeSpotPoolInstructionDataArgs['mintA'];
1434
+ mintB: InitializeSpotPoolInstructionDataArgs['mintB'];
1435
+ swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps'];
1436
+ };
1437
+ declare function getInitializeSpotPoolInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountProtocolFeeOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1438
+ programAddress?: TProgramAddress;
1439
+ }): InitializeSpotPoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
1440
+ type ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1441
+ programAddress: Address<TProgram>;
1442
+ accounts: {
1443
+ config: TAccountMetas[0];
1444
+ pool: TAccountMetas[1];
1445
+ protocolFeePosition: TAccountMetas[2];
1446
+ protocolFeeOwner: TAccountMetas[3];
1447
+ authority: TAccountMetas[4];
1448
+ vault0: TAccountMetas[5];
1449
+ vault1: TAccountMetas[6];
1450
+ token0Mint: TAccountMetas[7];
1451
+ token1Mint: TAccountMetas[8];
1452
+ payer: TAccountMetas[9];
1453
+ token0Program: TAccountMetas[10];
1454
+ token1Program: TAccountMetas[11];
1455
+ systemProgram: TAccountMetas[12];
1456
+ rent: TAccountMetas[13];
1457
+ migrationAuthority: TAccountMetas[14];
1458
+ };
1459
+ data: InitializeSpotPoolInstructionData;
1460
+ };
1461
+ declare function parseInitializeSpotPoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
1462
+
1322
1463
  /**
1323
1464
  * This code was AUTOGENERATED using the Codama library.
1324
1465
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1881,7 +2022,7 @@ type SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool
1881
2022
  declare function getSwapExactInInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1882
2023
  programAddress?: TProgramAddress;
1883
2024
  }): Promise<SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
1884
- type SwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
2025
+ type SwapExactInInput$1<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1885
2026
  config: Address<TAccountConfig>;
1886
2027
  pool: Address<TAccountPool>;
1887
2028
  authority: Address<TAccountAuthority>;
@@ -1900,7 +2041,7 @@ type SwapExactInInput<TAccountConfig extends string = string, TAccountPool exten
1900
2041
  tradeDirection: SwapExactInInstructionDataArgs['tradeDirection'];
1901
2042
  updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
1902
2043
  };
1903
- declare function getSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
2044
+ declare function getSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInInput$1<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1904
2045
  programAddress?: TProgramAddress;
1905
2046
  }): SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1906
2047
  type ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
@@ -2147,7 +2288,6 @@ type ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_
2147
2288
  };
2148
2289
  declare function parseWithdrawVaultExcessInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2149
2290
 
2150
- type RemainingAccount$3 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
2151
2291
  /**
2152
2292
  * Helper to create swap instruction with simplified parameters
2153
2293
  */
@@ -2166,7 +2306,7 @@ declare function createSwapInstruction(params: {
2166
2306
  minAmountOut: bigint;
2167
2307
  tradeDirection: TradeDirection;
2168
2308
  oracle?: Address;
2169
- remainingAccounts?: RemainingAccount$3[];
2309
+ remainingAccounts?: RemainingAccount[];
2170
2310
  updateOracle?: boolean;
2171
2311
  token0Program?: Address;
2172
2312
  token1Program?: Address;
@@ -2333,6 +2473,7 @@ declare function fetchConfigWithAddress(rpc: Rpc<GetAccountInfoApi>, programId?:
2333
2473
  declare const index$5_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
2334
2474
  declare const index$5_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
2335
2475
  declare const index$5_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
2476
+ type index$5_AccountMetaRole = AccountMetaRole;
2336
2477
  declare const index$5_AddLiquidityArgs: typeof AddLiquidityArgs;
2337
2478
  type index$5_AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2338
2479
  declare const index$5_AddLiquidityEvent: typeof AddLiquidityEvent;
@@ -2341,6 +2482,7 @@ type index$5_AddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGR
2341
2482
  type index$5_AddLiquidityInstructionData = AddLiquidityInstructionData;
2342
2483
  type index$5_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
2343
2484
  declare const index$5_AddLiquidityQuote: typeof AddLiquidityQuote;
2485
+ type index$5_AddressOrTransactionSigner = AddressOrTransactionSigner;
2344
2486
  declare const index$5_AdminTransferredEvent: typeof AdminTransferredEvent;
2345
2487
  declare const index$5_AmmConfig: typeof AmmConfig;
2346
2488
  declare const index$5_BPS_DENOM: typeof BPS_DENOM;
@@ -2380,6 +2522,7 @@ type index$5_CreatePositionInstructionData = CreatePositionInstructionData;
2380
2522
  type index$5_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs;
2381
2523
  declare const index$5_CurveParams: typeof CurveParams;
2382
2524
  declare const index$5_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput;
2525
+ type index$5_EncodedProgramAccount = EncodedProgramAccount;
2383
2526
  declare const index$5_FeesUpdatedEvent: typeof FeesUpdatedEvent;
2384
2527
  declare const index$5_FetchOracleConfig: typeof FetchOracleConfig;
2385
2528
  type index$5_FetchPoolsConfig = FetchPoolsConfig;
@@ -2393,6 +2536,7 @@ declare const index$5_HookErrorEvent: typeof HookErrorEvent;
2393
2536
  declare const index$5_HookInvokedEvent: typeof HookInvokedEvent;
2394
2537
  declare const index$5_HookUpdatedEvent: typeof HookUpdatedEvent;
2395
2538
  declare const index$5_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
2539
+ declare const index$5_INITIALIZE_SPOT_POOL_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_DISCRIMINATOR;
2396
2540
  declare const index$5_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
2397
2541
  type index$5_InitializeOracleAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountOracle extends string = string, TAccountAdmin extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = InitializeOracleAsyncInput<TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>;
2398
2542
  declare const index$5_InitializePoolArgs: typeof InitializePoolArgs;
@@ -2401,6 +2545,11 @@ type index$5_InitializePoolInput<TAccountConfig extends string = string, TAccoun
2401
2545
  type index$5_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2402
2546
  type index$5_InitializePoolInstructionData = InitializePoolInstructionData;
2403
2547
  type index$5_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
2548
+ type index$5_InitializeSpotPoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializeSpotPoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2549
+ type index$5_InitializeSpotPoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializeSpotPoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2550
+ type index$5_InitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeSpotPoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2551
+ type index$5_InitializeSpotPoolInstructionData = InitializeSpotPoolInstructionData;
2552
+ type index$5_InitializeSpotPoolInstructionDataArgs = InitializeSpotPoolInstructionDataArgs;
2404
2553
  declare const index$5_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
2405
2554
  declare const index$5_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
2406
2555
  declare const index$5_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
@@ -2430,6 +2579,7 @@ type index$5_ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_
2430
2579
  type index$5_ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
2431
2580
  type index$5_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
2432
2581
  type index$5_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
2582
+ type index$5_ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
2433
2583
  type index$5_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
2434
2584
  type index$5_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
2435
2585
  type index$5_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
@@ -2468,6 +2618,7 @@ type index$5_RedeemProtocolSharesInput<TAccountConfig extends string = string, T
2468
2618
  type index$5_RedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RedeemProtocolSharesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2469
2619
  type index$5_RedeemProtocolSharesInstructionData = RedeemProtocolSharesInstructionData;
2470
2620
  type index$5_RedeemProtocolSharesInstructionDataArgs = RedeemProtocolSharesInstructionDataArgs;
2621
+ type index$5_RemainingAccount = RemainingAccount;
2471
2622
  declare const index$5_RemoveLiquidityArgs: typeof RemoveLiquidityArgs;
2472
2623
  type index$5_RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2473
2624
  declare const index$5_RemoveLiquidityEvent: typeof RemoveLiquidityEvent;
@@ -2481,6 +2632,7 @@ declare const index$5_SEED_ORACLE: typeof SEED_ORACLE;
2481
2632
  declare const index$5_SEED_POOL: typeof SEED_POOL;
2482
2633
  declare const index$5_SEED_POSITION: typeof SEED_POSITION;
2483
2634
  declare const index$5_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER;
2635
+ declare const index$5_SEED_SPOT_POOL: typeof SEED_SPOT_POOL;
2484
2636
  declare const index$5_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2485
2637
  declare const index$5_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
2486
2638
  declare const index$5_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
@@ -2497,7 +2649,6 @@ type index$5_SetHookInstructionDataArgs = SetHookInstructionDataArgs;
2497
2649
  declare const index$5_SwapEvent: typeof SwapEvent;
2498
2650
  declare const index$5_SwapExactInArgs: typeof SwapExactInArgs;
2499
2651
  type index$5_SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2500
- type index$5_SwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2501
2652
  type index$5_SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2502
2653
  type index$5_SwapExactInInstructionData = SwapExactInInstructionData;
2503
2654
  type index$5_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs;
@@ -2531,8 +2682,12 @@ type index$5_WithdrawVaultExcessInstruction<TProgram extends string = typeof CPM
2531
2682
  type index$5_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData;
2532
2683
  type index$5_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs;
2533
2684
  declare const index$5_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
2685
+ declare const index$5_addressToBase58EncodedBytes: typeof addressToBase58EncodedBytes;
2534
2686
  declare const index$5_ammConfigDataCodec: typeof ammConfigDataCodec;
2535
2687
  declare const index$5_areMintsOrdered: typeof areMintsOrdered;
2688
+ declare const index$5_base64ToBytes: typeof base64ToBytes;
2689
+ declare const index$5_bytesToBase64: typeof bytesToBase64;
2690
+ declare const index$5_bytesToBase64EncodedBytes: typeof bytesToBase64EncodedBytes;
2536
2691
  declare const index$5_calculateAccruedFees: typeof calculateAccruedFees;
2537
2692
  declare const index$5_calculateTwap: typeof calculateTwap;
2538
2693
  declare const index$5_calculateTwapNumber: typeof calculateTwapNumber;
@@ -2543,7 +2698,9 @@ declare const index$5_comparePoolAndOraclePrices: typeof comparePoolAndOraclePri
2543
2698
  declare const index$5_computePrice0Q64: typeof computePrice0Q64;
2544
2699
  declare const index$5_computePrice1Q64: typeof computePrice1Q64;
2545
2700
  declare const index$5_consultTwap: typeof consultTwap;
2701
+ declare const index$5_createAccountMeta: typeof createAccountMeta;
2546
2702
  declare const index$5_createPositionArgsCodec: typeof createPositionArgsCodec;
2703
+ declare const index$5_createReadonlyRemainingAccountMeta: typeof createReadonlyRemainingAccountMeta;
2547
2704
  declare const index$5_createSwapInstruction: typeof createSwapInstruction;
2548
2705
  declare const index$5_curveParamsToMarketCap: typeof curveParamsToMarketCap;
2549
2706
  declare const index$5_decodeAmmConfig: typeof decodeAmmConfig;
@@ -2584,6 +2741,8 @@ declare const index$5_getAddLiquidityInstructionDataCodec: typeof getAddLiquidit
2584
2741
  declare const index$5_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder;
2585
2742
  declare const index$5_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder;
2586
2743
  declare const index$5_getAddLiquidityQuote: typeof getAddLiquidityQuote;
2744
+ declare const index$5_getAddressFromAddressOrSigner: typeof getAddressFromAddressOrSigner;
2745
+ declare const index$5_getAddressFromRemainingAccount: typeof getAddressFromRemainingAccount;
2587
2746
  declare const index$5_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes;
2588
2747
  declare const index$5_getClosePositionInstruction: typeof getClosePositionInstruction;
2589
2748
  declare const index$5_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec;
@@ -2615,6 +2774,12 @@ declare const index$5_getInitializePoolInstructionAsync: typeof getInitializePoo
2615
2774
  declare const index$5_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec;
2616
2775
  declare const index$5_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder;
2617
2776
  declare const index$5_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder;
2777
+ declare const index$5_getInitializeSpotPoolDiscriminatorBytes: typeof getInitializeSpotPoolDiscriminatorBytes;
2778
+ declare const index$5_getInitializeSpotPoolInstruction: typeof getInitializeSpotPoolInstruction;
2779
+ declare const index$5_getInitializeSpotPoolInstructionAsync: typeof getInitializeSpotPoolInstructionAsync;
2780
+ declare const index$5_getInitializeSpotPoolInstructionDataCodec: typeof getInitializeSpotPoolInstructionDataCodec;
2781
+ declare const index$5_getInitializeSpotPoolInstructionDataDecoder: typeof getInitializeSpotPoolInstructionDataDecoder;
2782
+ declare const index$5_getInitializeSpotPoolInstructionDataEncoder: typeof getInitializeSpotPoolInstructionDataEncoder;
2618
2783
  declare const index$5_getK: typeof getK;
2619
2784
  declare const index$5_getLiquidityAddresses: typeof getLiquidityAddresses;
2620
2785
  declare const index$5_getMetadataAddress: typeof getMetadataAddress;
@@ -2683,6 +2848,7 @@ declare const index$5_getSetHookInstruction: typeof getSetHookInstruction;
2683
2848
  declare const index$5_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec;
2684
2849
  declare const index$5_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder;
2685
2850
  declare const index$5_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder;
2851
+ declare const index$5_getSpotPoolAddress: typeof getSpotPoolAddress;
2686
2852
  declare const index$5_getSpotPrice0: typeof getSpotPrice0;
2687
2853
  declare const index$5_getSpotPrice1: typeof getSpotPrice1;
2688
2854
  declare const index$5_getSwapAddresses: typeof getSwapAddresses;
@@ -2721,12 +2887,14 @@ declare const index$5_initializeOracleArgsCodec: typeof initializeOracleArgsCode
2721
2887
  declare const index$5_initializePoolArgsCodec: typeof initializePoolArgsCodec;
2722
2888
  declare const index$5_isCpmmError: typeof isCpmmError;
2723
2889
  declare const index$5_isOracleStale: typeof isOracleStale;
2890
+ declare const index$5_isTransactionSigner: typeof isTransactionSigner;
2724
2891
  declare const index$5_isqrt: typeof isqrt;
2725
2892
  declare const index$5_marketCapToCurveParams: typeof marketCapToCurveParams;
2726
2893
  declare const index$5_marketCapToSingleCurveParams: typeof marketCapToSingleCurveParams;
2727
2894
  declare const index$5_marketCapToTokenPrice: typeof marketCapToTokenPrice;
2728
2895
  declare const index$5_maxBigInt: typeof maxBigInt;
2729
2896
  declare const index$5_minBigInt: typeof minBigInt;
2897
+ declare const index$5_normalizeProgramAccountsResponse: typeof normalizeProgramAccountsResponse;
2730
2898
  declare const index$5_numberToQ64: typeof numberToQ64;
2731
2899
  declare const index$5_observationCodec: typeof observationCodec;
2732
2900
  declare const index$5_oracleConsultArgsCodec: typeof oracleConsultArgsCodec;
@@ -2738,6 +2906,7 @@ declare const index$5_parseCollectProtocolFeesInstruction: typeof parseCollectPr
2738
2906
  declare const index$5_parseCreatePositionInstruction: typeof parseCreatePositionInstruction;
2739
2907
  declare const index$5_parseErrorFromLogs: typeof parseErrorFromLogs;
2740
2908
  declare const index$5_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
2909
+ declare const index$5_parseInitializeSpotPoolInstruction: typeof parseInitializeSpotPoolInstruction;
2741
2910
  declare const index$5_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
2742
2911
  declare const index$5_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
2743
2912
  declare const index$5_parsePauseInstruction: typeof parsePauseInstruction;
@@ -2767,8 +2936,9 @@ declare const index$5_sortPositionsByShares: typeof sortPositionsByShares;
2767
2936
  declare const index$5_swapExactInArgsCodec: typeof swapExactInArgsCodec;
2768
2937
  declare const index$5_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2769
2938
  declare const index$5_validateMarketCapParameters: typeof validateMarketCapParameters;
2939
+ declare const index$5_warnAccountDecodeFailure: typeof warnAccountDecodeFailure;
2770
2940
  declare namespace index$5 {
2771
- export { index$5_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$5_ACCOUNT_VERSION as ACCOUNT_VERSION, index$5_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, index$5_AddLiquidityArgs as AddLiquidityArgs, type index$5_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$5_AddLiquidityEvent as AddLiquidityEvent, type index$5_AddLiquidityInput as AddLiquidityInput, type index$5_AddLiquidityInstruction as AddLiquidityInstruction, type index$5_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$5_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$5_AddLiquidityQuote as AddLiquidityQuote, index$5_AdminTransferredEvent as AdminTransferredEvent, index$5_AmmConfig as AmmConfig, index$5_BPS_DENOM as BPS_DENOM, index$5_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$5_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$5_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$5_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$5_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$5_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$5_ClosePositionInput as ClosePositionInput, type index$5_ClosePositionInstruction as ClosePositionInstruction, type index$5_ClosePositionInstructionData as ClosePositionInstructionData, type index$5_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$5_CollectFeesArgs as CollectFeesArgs, type index$5_CollectFeesAsyncInput as CollectFeesAsyncInput, index$5_CollectFeesEvent as CollectFeesEvent, type index$5_CollectFeesInput as CollectFeesInput, type index$5_CollectFeesInstruction as CollectFeesInstruction, type index$5_CollectFeesInstructionData as CollectFeesInstructionData, type index$5_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$5_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$5_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$5_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$5_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$5_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$5_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$5_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$5_CpmmError as CpmmError, index$5_CpmmErrorCode as CpmmErrorCode, index$5_CreatePositionArgs as CreatePositionArgs, type index$5_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$5_CreatePositionInput as CreatePositionInput, type index$5_CreatePositionInstruction as CreatePositionInstruction, type index$5_CreatePositionInstructionData as CreatePositionInstructionData, type index$5_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$5_CurveParams as CurveParams, index$5_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$5_FeesUpdatedEvent as FeesUpdatedEvent, index$5_FetchOracleConfig as FetchOracleConfig, type index$5_FetchPoolsConfig as FetchPoolsConfig, index$5_FetchPositionsConfig as FetchPositionsConfig, index$5_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$5_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$5_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$5_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$5_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$5_HookErrorEvent as HookErrorEvent, index$5_HookInvokedEvent as HookInvokedEvent, index$5_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$5_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$5_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$5_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$5_InitializePoolArgs as InitializePoolArgs, type index$5_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$5_InitializePoolInput as InitializePoolInput, type index$5_InitializePoolInstruction as InitializePoolInstruction, type index$5_InitializePoolInstructionData as InitializePoolInstructionData, type index$5_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, index$5_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$5_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$5_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$5_MarketCapValidationResult as MarketCapValidationResult, index$5_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$5_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$5_Observation as Observation, index$5_OracleConsultArgs as OracleConsultArgs, type index$5_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$5_OracleConsultInput as OracleConsultInput, type index$5_OracleConsultInstruction as OracleConsultInstruction, type index$5_OracleConsultInstructionData as OracleConsultInstructionData, type index$5_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$5_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$5_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$5_OracleUpdateInput as OracleUpdateInput, type index$5_OracleUpdateInstruction as OracleUpdateInstruction, type index$5_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$5_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$5_OracleUpdatedEvent as OracleUpdatedEvent, index$5_OracleWithAddress as OracleWithAddress, index$5_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$5_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$5_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$5_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$5_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$5_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$5_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$5_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$5_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$5_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$5_ParsedPauseInstruction as ParsedPauseInstruction, type index$5_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$5_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$5_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$5_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$5_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$5_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$5_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$5_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$5_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$5_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$5_PauseInput as PauseInput, type index$5_PauseInstruction as PauseInstruction, type index$5_PauseInstructionData as PauseInstructionData, type index$5_PauseInstructionDataArgs as PauseInstructionDataArgs, index$5_PausedEvent as PausedEvent, index$5_Pool as Pool, index$5_PoolInitializedEvent as PoolInitializedEvent, type index$5_PoolWithAddress as PoolWithAddress, index$5_Position as Position, index$5_PositionClosedEvent as PositionClosedEvent, index$5_PositionCreatedEvent as PositionCreatedEvent, index$5_PositionValue as PositionValue, index$5_PositionWithAddress as PositionWithAddress, type index$5_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$5_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$5_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$5_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$5_Q64_ONE as Q64_ONE, index$5_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$5_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$5_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$5_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$5_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$5_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$5_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, index$5_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$5_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$5_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$5_RemoveLiquidityInput as RemoveLiquidityInput, type index$5_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$5_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$5_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$5_RemoveLiquidityQuote as RemoveLiquidityQuote, index$5_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$5_SEED_ORACLE as SEED_ORACLE, index$5_SEED_POOL as SEED_POOL, index$5_SEED_POSITION as SEED_POSITION, index$5_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$5_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$5_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$5_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$5_SetFeesArgs as SetFeesArgs, type index$5_SetFeesInput as SetFeesInput, type index$5_SetFeesInstruction as SetFeesInstruction, type index$5_SetFeesInstructionData as SetFeesInstructionData, type index$5_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$5_SetHookArgs as SetHookArgs, type index$5_SetHookInput as SetHookInput, type index$5_SetHookInstruction as SetHookInstruction, type index$5_SetHookInstructionData as SetHookInstructionData, type index$5_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$5_SwapEvent as SwapEvent, index$5_SwapExactInArgs as SwapExactInArgs, type index$5_SwapExactInAsyncInput as SwapExactInAsyncInput, type index$5_SwapExactInInput as SwapExactInInput, type index$5_SwapExactInInstruction as SwapExactInInstruction, type index$5_SwapExactInInstructionData as SwapExactInInstructionData, type index$5_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$5_SwapQuote as SwapQuote, index$5_SwapQuoteExactOut as SwapQuoteExactOut, index$5_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$5_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$5_TradeDirection as TradeDirection, index$5_TransferAdminArgs as TransferAdminArgs, type index$5_TransferAdminInput as TransferAdminInput, type index$5_TransferAdminInstruction as TransferAdminInstruction, type index$5_TransferAdminInstructionData as TransferAdminInstructionData, type index$5_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$5_TwapResult as TwapResult, index$5_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$5_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$5_UnpauseInput as UnpauseInput, type index$5_UnpauseInstruction as UnpauseInstruction, type index$5_UnpauseInstructionData as UnpauseInstructionData, type index$5_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$5_UnpausedEvent as UnpausedEvent, type index$5_UpdateConfigInput as UpdateConfigInput, type index$5_UpdateConfigInstruction as UpdateConfigInstruction, type index$5_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$5_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$5_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$5_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$5_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$5_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$5_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$5_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$5_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$5_addLiquidityArgsCodec as addLiquidityArgsCodec, index$5_ammConfigDataCodec as ammConfigDataCodec, index$5_areMintsOrdered as areMintsOrdered, index$5_calculateAccruedFees as calculateAccruedFees, index$5_calculateTwap as calculateTwap, index$5_calculateTwapNumber as calculateTwapNumber, index$5_ceilDiv as ceilDiv, index$5_collectFeesArgsCodec as collectFeesArgsCodec, index$5_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$5_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$5_computePrice0Q64 as computePrice0Q64, index$5_computePrice1Q64 as computePrice1Q64, index$5_consultTwap as consultTwap, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$1 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$5_createPositionArgsCodec as createPositionArgsCodec, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$5_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$5_curveParamsToMarketCap as curveParamsToMarketCap, index$5_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$5_decodePool as decodePool, index$5_decodePosition as decodePosition, index$5_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$5_encodeCollectFeesArgs as encodeCollectFeesArgs, index$5_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$5_encodeCreatePositionArgs as encodeCreatePositionArgs, index$5_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$5_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$5_encodeInitializePoolArgs as encodeInitializePoolArgs, index$5_encodeInstructionData as encodeInstructionData, index$5_encodeOracleConsultArgs as encodeOracleConsultArgs, index$5_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$5_encodeSetFeesArgs as encodeSetFeesArgs, index$5_encodeSetHookArgs as encodeSetHookArgs, index$5_encodeSwapExactInArgs as encodeSwapExactInArgs, index$5_encodeTransferAdminArgs as encodeTransferAdminArgs, index$5_fetchAllPools as fetchAllPools, index$5_fetchConfig as fetchConfig, index$5_fetchConfigWithAddress as fetchConfigWithAddress, index$5_fetchOracle as fetchOracle, index$5_fetchOraclesBatch as fetchOraclesBatch, index$5_fetchPool as fetchPool, index$5_fetchPoolPositions as fetchPoolPositions, index$5_fetchPoolsBatch as fetchPoolsBatch, index$5_fetchPosition as fetchPosition, index$5_fetchPositionByParams as fetchPositionByParams, index$5_fetchPositionsBatch as fetchPositionsBatch, index$5_fetchUserPositions as fetchUserPositions, index$5_filterActivePositions as filterActivePositions, index$5_filterPoolsByMint as filterPoolsByMint, index$5_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$5_getAddLiquidityInstruction as getAddLiquidityInstruction, index$5_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$5_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$5_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$5_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$5_getAddLiquidityQuote as getAddLiquidityQuote, index$5_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$5_getClosePositionInstruction as getClosePositionInstruction, index$5_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$5_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$5_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$5_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$5_getCollectFeesInstruction as getCollectFeesInstruction, index$5_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$5_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$5_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$5_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$5_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$5_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$5_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$5_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$5_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$5_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$5_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$5_getCreatePositionInstruction as getCreatePositionInstruction, index$5_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$5_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$5_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$5_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$5_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$5_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$5_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$5_getInitializePoolInstruction as getInitializePoolInstruction, index$5_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$5_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$5_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$5_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$5_getK as getK, index$5_getLiquidityAddresses as getLiquidityAddresses, index$5_getMetadataAddress as getMetadataAddress, index$5_getOracleAddress as getOracleAddress, index$5_getOracleAddressFromPool as getOracleAddressFromPool, index$5_getOracleAge as getOracleAge, index$5_getOracleBufferStats as getOracleBufferStats, index$5_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$5_getOracleConsultInstruction as getOracleConsultInstruction, index$5_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$5_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$5_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$5_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$5_getOracleDeviation as getOracleDeviation, index$5_getOracleForPool as getOracleForPool, index$5_getOracleSpotPrices as getOracleSpotPrices, index$5_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$5_getOracleUpdateInstruction as getOracleUpdateInstruction, index$5_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$5_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$5_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$5_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$5_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$5_getPauseInstruction as getPauseInstruction, index$5_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$5_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$5_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$5_getPendingFees as getPendingFees, index$5_getPoolAddress as getPoolAddress, index$5_getPoolAddressFromMints as getPoolAddressFromMints, index$5_getPoolAuthorityAddress as getPoolAuthorityAddress, index$5_getPoolByMints as getPoolByMints, index$5_getPoolInitAddresses as getPoolInitAddresses, index$5_getPoolVault0Address as getPoolVault0Address, index$5_getPoolVault1Address as getPoolVault1Address, index$5_getPositionAddress as getPositionAddress, index$5_getPositionAddressFromParams as getPositionAddressFromParams, index$5_getPositionValue as getPositionValue, index$5_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$5_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$5_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$5_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$5_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$5_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$5_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$5_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$5_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$5_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$5_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$5_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$5_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$5_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$5_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$5_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$5_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$5_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$5_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$5_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$5_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$5_getSetFeesInstruction as getSetFeesInstruction, index$5_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$5_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$5_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$5_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$5_getSetHookInstruction as getSetHookInstruction, index$5_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$5_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$5_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$5_getSpotPrice0 as getSpotPrice0, index$5_getSpotPrice1 as getSpotPrice1, index$5_getSwapAddresses as getSwapAddresses, index$5_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$5_getSwapExactInInstruction as getSwapExactInInstruction, index$5_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$5_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$5_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$5_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$5_getSwapQuote as getSwapQuote, index$5_getSwapQuoteExactOut as getSwapQuoteExactOut, index$5_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$5_getTransferAdminInstruction as getTransferAdminInstruction, index$5_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$5_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$5_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$5_getTvl as getTvl, index$5_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$5_getUnpauseInstruction as getUnpauseInstruction, index$5_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$5_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$5_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$5_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$5_getUpdateConfigInstruction as getUpdateConfigInstruction, index$5_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$5_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$5_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$5_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$5_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$5_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$5_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$5_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$5_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$5_initializeConfigArgsCodec as initializeConfigArgsCodec, index$5_initializeOracleArgsCodec as initializeOracleArgsCodec, index$5_initializePoolArgsCodec as initializePoolArgsCodec, index$5_isCpmmError as isCpmmError, index$5_isOracleStale as isOracleStale, index$5_isqrt as isqrt, index$5_marketCapToCurveParams as marketCapToCurveParams, index$5_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$5_marketCapToTokenPrice as marketCapToTokenPrice, index$5_maxBigInt as maxBigInt, index$5_minBigInt as minBigInt, index$5_numberToQ64 as numberToQ64, index$5_observationCodec as observationCodec, index$5_oracleConsultArgsCodec as oracleConsultArgsCodec, index$5_oracleStateDataCodec as oracleStateDataCodec, index$5_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$5_parseClosePositionInstruction as parseClosePositionInstruction, index$5_parseCollectFeesInstruction as parseCollectFeesInstruction, index$5_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$5_parseCreatePositionInstruction as parseCreatePositionInstruction, index$5_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$5_parseInitializePoolInstruction as parseInitializePoolInstruction, index$5_parseOracleConsultInstruction as parseOracleConsultInstruction, index$5_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$5_parsePauseInstruction as parsePauseInstruction, index$5_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$5_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$5_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$5_parseSetFeesInstruction as parseSetFeesInstruction, index$5_parseSetHookInstruction as parseSetHookInstruction, index$5_parseSwapExactInInstruction as parseSwapExactInInstruction, index$5_parseTransferAdminInstruction as parseTransferAdminInstruction, index$5_parseUnpauseInstruction as parseUnpauseInstruction, index$5_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$5_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$5_poolDataCodec as poolDataCodec, index$5_poolExists as poolExists, index$5_positionDataCodec as positionDataCodec, index$5_q64Div as q64Div, index$5_q64Mul as q64Mul, index$5_q64ToNumber as q64ToNumber, index$5_ratioToNumber as ratioToNumber, index$5_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$5_setFeesArgsCodec as setFeesArgsCodec, index$5_setHookArgsCodec as setHookArgsCodec, index$5_sortMints as sortMints, index$5_sortPoolsByReserves as sortPoolsByReserves, index$5_sortPositionsByShares as sortPositionsByShares, index$5_swapExactInArgsCodec as swapExactInArgsCodec, index$5_transferAdminArgsCodec as transferAdminArgsCodec, index$5_validateMarketCapParameters as validateMarketCapParameters };
2941
+ export { index$5_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$5_ACCOUNT_VERSION as ACCOUNT_VERSION, index$5_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, type index$5_AccountMetaRole as AccountMetaRole, index$5_AddLiquidityArgs as AddLiquidityArgs, type index$5_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$5_AddLiquidityEvent as AddLiquidityEvent, type index$5_AddLiquidityInput as AddLiquidityInput, type index$5_AddLiquidityInstruction as AddLiquidityInstruction, type index$5_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$5_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$5_AddLiquidityQuote as AddLiquidityQuote, type index$5_AddressOrTransactionSigner as AddressOrTransactionSigner, index$5_AdminTransferredEvent as AdminTransferredEvent, index$5_AmmConfig as AmmConfig, index$5_BPS_DENOM as BPS_DENOM, index$5_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$5_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$5_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$5_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$5_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$5_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$5_ClosePositionInput as ClosePositionInput, type index$5_ClosePositionInstruction as ClosePositionInstruction, type index$5_ClosePositionInstructionData as ClosePositionInstructionData, type index$5_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$5_CollectFeesArgs as CollectFeesArgs, type index$5_CollectFeesAsyncInput as CollectFeesAsyncInput, index$5_CollectFeesEvent as CollectFeesEvent, type index$5_CollectFeesInput as CollectFeesInput, type index$5_CollectFeesInstruction as CollectFeesInstruction, type index$5_CollectFeesInstructionData as CollectFeesInstructionData, type index$5_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$5_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$5_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$5_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$5_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$5_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$5_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$5_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$5_CpmmError as CpmmError, index$5_CpmmErrorCode as CpmmErrorCode, index$5_CreatePositionArgs as CreatePositionArgs, type index$5_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$5_CreatePositionInput as CreatePositionInput, type index$5_CreatePositionInstruction as CreatePositionInstruction, type index$5_CreatePositionInstructionData as CreatePositionInstructionData, type index$5_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$5_CurveParams as CurveParams, index$5_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, type index$5_EncodedProgramAccount as EncodedProgramAccount, index$5_FeesUpdatedEvent as FeesUpdatedEvent, index$5_FetchOracleConfig as FetchOracleConfig, type index$5_FetchPoolsConfig as FetchPoolsConfig, index$5_FetchPositionsConfig as FetchPositionsConfig, index$5_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$5_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$5_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$5_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$5_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$5_HookErrorEvent as HookErrorEvent, index$5_HookInvokedEvent as HookInvokedEvent, index$5_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$5_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$5_INITIALIZE_SPOT_POOL_DISCRIMINATOR as INITIALIZE_SPOT_POOL_DISCRIMINATOR, index$5_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$5_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$5_InitializePoolArgs as InitializePoolArgs, type index$5_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$5_InitializePoolInput as InitializePoolInput, type index$5_InitializePoolInstruction as InitializePoolInstruction, type index$5_InitializePoolInstructionData as InitializePoolInstructionData, type index$5_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, type index$5_InitializeSpotPoolAsyncInput as InitializeSpotPoolAsyncInput, type index$5_InitializeSpotPoolInput as InitializeSpotPoolInput, type index$5_InitializeSpotPoolInstruction as InitializeSpotPoolInstruction, type index$5_InitializeSpotPoolInstructionData as InitializeSpotPoolInstructionData, type index$5_InitializeSpotPoolInstructionDataArgs as InitializeSpotPoolInstructionDataArgs, index$5_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$5_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$5_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$5_MarketCapValidationResult as MarketCapValidationResult, index$5_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$5_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$5_Observation as Observation, index$5_OracleConsultArgs as OracleConsultArgs, type index$5_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$5_OracleConsultInput as OracleConsultInput, type index$5_OracleConsultInstruction as OracleConsultInstruction, type index$5_OracleConsultInstructionData as OracleConsultInstructionData, type index$5_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$5_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$5_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$5_OracleUpdateInput as OracleUpdateInput, type index$5_OracleUpdateInstruction as OracleUpdateInstruction, type index$5_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$5_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$5_OracleUpdatedEvent as OracleUpdatedEvent, index$5_OracleWithAddress as OracleWithAddress, index$5_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$5_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$5_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$5_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$5_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$5_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$5_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$5_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$5_ParsedInitializeSpotPoolInstruction as ParsedInitializeSpotPoolInstruction, type index$5_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$5_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$5_ParsedPauseInstruction as ParsedPauseInstruction, type index$5_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$5_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$5_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$5_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$5_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$5_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$5_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$5_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$5_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$5_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$5_PauseInput as PauseInput, type index$5_PauseInstruction as PauseInstruction, type index$5_PauseInstructionData as PauseInstructionData, type index$5_PauseInstructionDataArgs as PauseInstructionDataArgs, index$5_PausedEvent as PausedEvent, index$5_Pool as Pool, index$5_PoolInitializedEvent as PoolInitializedEvent, type index$5_PoolWithAddress as PoolWithAddress, index$5_Position as Position, index$5_PositionClosedEvent as PositionClosedEvent, index$5_PositionCreatedEvent as PositionCreatedEvent, index$5_PositionValue as PositionValue, index$5_PositionWithAddress as PositionWithAddress, type index$5_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$5_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$5_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$5_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$5_Q64_ONE as Q64_ONE, index$5_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$5_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$5_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$5_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$5_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$5_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$5_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, type index$5_RemainingAccount as RemainingAccount, index$5_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$5_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$5_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$5_RemoveLiquidityInput as RemoveLiquidityInput, type index$5_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$5_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$5_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$5_RemoveLiquidityQuote as RemoveLiquidityQuote, index$5_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$5_SEED_ORACLE as SEED_ORACLE, index$5_SEED_POOL as SEED_POOL, index$5_SEED_POSITION as SEED_POSITION, index$5_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$5_SEED_SPOT_POOL as SEED_SPOT_POOL, index$5_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$5_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$5_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$5_SetFeesArgs as SetFeesArgs, type index$5_SetFeesInput as SetFeesInput, type index$5_SetFeesInstruction as SetFeesInstruction, type index$5_SetFeesInstructionData as SetFeesInstructionData, type index$5_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$5_SetHookArgs as SetHookArgs, type index$5_SetHookInput as SetHookInput, type index$5_SetHookInstruction as SetHookInstruction, type index$5_SetHookInstructionData as SetHookInstructionData, type index$5_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$5_SwapEvent as SwapEvent, index$5_SwapExactInArgs as SwapExactInArgs, type index$5_SwapExactInAsyncInput as SwapExactInAsyncInput, type SwapExactInInput$1 as SwapExactInInput, type index$5_SwapExactInInstruction as SwapExactInInstruction, type index$5_SwapExactInInstructionData as SwapExactInInstructionData, type index$5_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$5_SwapQuote as SwapQuote, index$5_SwapQuoteExactOut as SwapQuoteExactOut, index$5_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$5_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$5_TradeDirection as TradeDirection, index$5_TransferAdminArgs as TransferAdminArgs, type index$5_TransferAdminInput as TransferAdminInput, type index$5_TransferAdminInstruction as TransferAdminInstruction, type index$5_TransferAdminInstructionData as TransferAdminInstructionData, type index$5_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$5_TwapResult as TwapResult, index$5_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$5_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$5_UnpauseInput as UnpauseInput, type index$5_UnpauseInstruction as UnpauseInstruction, type index$5_UnpauseInstructionData as UnpauseInstructionData, type index$5_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$5_UnpausedEvent as UnpausedEvent, type index$5_UpdateConfigInput as UpdateConfigInput, type index$5_UpdateConfigInstruction as UpdateConfigInstruction, type index$5_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$5_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$5_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$5_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$5_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$5_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$5_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$5_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$5_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$5_addLiquidityArgsCodec as addLiquidityArgsCodec, index$5_addressToBase58EncodedBytes as addressToBase58EncodedBytes, index$5_ammConfigDataCodec as ammConfigDataCodec, index$5_areMintsOrdered as areMintsOrdered, index$5_base64ToBytes as base64ToBytes, index$5_bytesToBase64 as bytesToBase64, index$5_bytesToBase64EncodedBytes as bytesToBase64EncodedBytes, index$5_calculateAccruedFees as calculateAccruedFees, index$5_calculateTwap as calculateTwap, index$5_calculateTwapNumber as calculateTwapNumber, index$5_ceilDiv as ceilDiv, index$5_collectFeesArgsCodec as collectFeesArgsCodec, index$5_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$5_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$5_computePrice0Q64 as computePrice0Q64, index$5_computePrice1Q64 as computePrice1Q64, index$5_consultTwap as consultTwap, index$5_createAccountMeta as createAccountMeta, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$1 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$5_createPositionArgsCodec as createPositionArgsCodec, index$5_createReadonlyRemainingAccountMeta as createReadonlyRemainingAccountMeta, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$5_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$5_curveParamsToMarketCap as curveParamsToMarketCap, index$5_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$5_decodePool as decodePool, index$5_decodePosition as decodePosition, index$5_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$5_encodeCollectFeesArgs as encodeCollectFeesArgs, index$5_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$5_encodeCreatePositionArgs as encodeCreatePositionArgs, index$5_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$5_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$5_encodeInitializePoolArgs as encodeInitializePoolArgs, index$5_encodeInstructionData as encodeInstructionData, index$5_encodeOracleConsultArgs as encodeOracleConsultArgs, index$5_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$5_encodeSetFeesArgs as encodeSetFeesArgs, index$5_encodeSetHookArgs as encodeSetHookArgs, index$5_encodeSwapExactInArgs as encodeSwapExactInArgs, index$5_encodeTransferAdminArgs as encodeTransferAdminArgs, index$5_fetchAllPools as fetchAllPools, index$5_fetchConfig as fetchConfig, index$5_fetchConfigWithAddress as fetchConfigWithAddress, index$5_fetchOracle as fetchOracle, index$5_fetchOraclesBatch as fetchOraclesBatch, index$5_fetchPool as fetchPool, index$5_fetchPoolPositions as fetchPoolPositions, index$5_fetchPoolsBatch as fetchPoolsBatch, index$5_fetchPosition as fetchPosition, index$5_fetchPositionByParams as fetchPositionByParams, index$5_fetchPositionsBatch as fetchPositionsBatch, index$5_fetchUserPositions as fetchUserPositions, index$5_filterActivePositions as filterActivePositions, index$5_filterPoolsByMint as filterPoolsByMint, index$5_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$5_getAddLiquidityInstruction as getAddLiquidityInstruction, index$5_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$5_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$5_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$5_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$5_getAddLiquidityQuote as getAddLiquidityQuote, index$5_getAddressFromAddressOrSigner as getAddressFromAddressOrSigner, index$5_getAddressFromRemainingAccount as getAddressFromRemainingAccount, index$5_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$5_getClosePositionInstruction as getClosePositionInstruction, index$5_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$5_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$5_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$5_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$5_getCollectFeesInstruction as getCollectFeesInstruction, index$5_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$5_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$5_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$5_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$5_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$5_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$5_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$5_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$5_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$5_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$5_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$5_getCreatePositionInstruction as getCreatePositionInstruction, index$5_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$5_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$5_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$5_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$5_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$5_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$5_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$5_getInitializePoolInstruction as getInitializePoolInstruction, index$5_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$5_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$5_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$5_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$5_getInitializeSpotPoolDiscriminatorBytes as getInitializeSpotPoolDiscriminatorBytes, index$5_getInitializeSpotPoolInstruction as getInitializeSpotPoolInstruction, index$5_getInitializeSpotPoolInstructionAsync as getInitializeSpotPoolInstructionAsync, index$5_getInitializeSpotPoolInstructionDataCodec as getInitializeSpotPoolInstructionDataCodec, index$5_getInitializeSpotPoolInstructionDataDecoder as getInitializeSpotPoolInstructionDataDecoder, index$5_getInitializeSpotPoolInstructionDataEncoder as getInitializeSpotPoolInstructionDataEncoder, index$5_getK as getK, index$5_getLiquidityAddresses as getLiquidityAddresses, index$5_getMetadataAddress as getMetadataAddress, index$5_getOracleAddress as getOracleAddress, index$5_getOracleAddressFromPool as getOracleAddressFromPool, index$5_getOracleAge as getOracleAge, index$5_getOracleBufferStats as getOracleBufferStats, index$5_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$5_getOracleConsultInstruction as getOracleConsultInstruction, index$5_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$5_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$5_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$5_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$5_getOracleDeviation as getOracleDeviation, index$5_getOracleForPool as getOracleForPool, index$5_getOracleSpotPrices as getOracleSpotPrices, index$5_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$5_getOracleUpdateInstruction as getOracleUpdateInstruction, index$5_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$5_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$5_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$5_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$5_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$5_getPauseInstruction as getPauseInstruction, index$5_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$5_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$5_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$5_getPendingFees as getPendingFees, index$5_getPoolAddress as getPoolAddress, index$5_getPoolAddressFromMints as getPoolAddressFromMints, index$5_getPoolAuthorityAddress as getPoolAuthorityAddress, index$5_getPoolByMints as getPoolByMints, index$5_getPoolInitAddresses as getPoolInitAddresses, index$5_getPoolVault0Address as getPoolVault0Address, index$5_getPoolVault1Address as getPoolVault1Address, index$5_getPositionAddress as getPositionAddress, index$5_getPositionAddressFromParams as getPositionAddressFromParams, index$5_getPositionValue as getPositionValue, index$5_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$5_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$5_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$5_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$5_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$5_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$5_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$5_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$5_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$5_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$5_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$5_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$5_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$5_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$5_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$5_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$5_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$5_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$5_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$5_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$5_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$5_getSetFeesInstruction as getSetFeesInstruction, index$5_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$5_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$5_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$5_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$5_getSetHookInstruction as getSetHookInstruction, index$5_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$5_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$5_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$5_getSpotPoolAddress as getSpotPoolAddress, index$5_getSpotPrice0 as getSpotPrice0, index$5_getSpotPrice1 as getSpotPrice1, index$5_getSwapAddresses as getSwapAddresses, index$5_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$5_getSwapExactInInstruction as getSwapExactInInstruction, index$5_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$5_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$5_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$5_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$5_getSwapQuote as getSwapQuote, index$5_getSwapQuoteExactOut as getSwapQuoteExactOut, index$5_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$5_getTransferAdminInstruction as getTransferAdminInstruction, index$5_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$5_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$5_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$5_getTvl as getTvl, index$5_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$5_getUnpauseInstruction as getUnpauseInstruction, index$5_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$5_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$5_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$5_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$5_getUpdateConfigInstruction as getUpdateConfigInstruction, index$5_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$5_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$5_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$5_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$5_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$5_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$5_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$5_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$5_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$5_initializeConfigArgsCodec as initializeConfigArgsCodec, index$5_initializeOracleArgsCodec as initializeOracleArgsCodec, index$5_initializePoolArgsCodec as initializePoolArgsCodec, index$5_isCpmmError as isCpmmError, index$5_isOracleStale as isOracleStale, index$5_isTransactionSigner as isTransactionSigner, index$5_isqrt as isqrt, index$5_marketCapToCurveParams as marketCapToCurveParams, index$5_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$5_marketCapToTokenPrice as marketCapToTokenPrice, index$5_maxBigInt as maxBigInt, index$5_minBigInt as minBigInt, index$5_normalizeProgramAccountsResponse as normalizeProgramAccountsResponse, index$5_numberToQ64 as numberToQ64, index$5_observationCodec as observationCodec, index$5_oracleConsultArgsCodec as oracleConsultArgsCodec, index$5_oracleStateDataCodec as oracleStateDataCodec, index$5_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$5_parseClosePositionInstruction as parseClosePositionInstruction, index$5_parseCollectFeesInstruction as parseCollectFeesInstruction, index$5_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$5_parseCreatePositionInstruction as parseCreatePositionInstruction, index$5_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$5_parseInitializePoolInstruction as parseInitializePoolInstruction, index$5_parseInitializeSpotPoolInstruction as parseInitializeSpotPoolInstruction, index$5_parseOracleConsultInstruction as parseOracleConsultInstruction, index$5_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$5_parsePauseInstruction as parsePauseInstruction, index$5_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$5_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$5_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$5_parseSetFeesInstruction as parseSetFeesInstruction, index$5_parseSetHookInstruction as parseSetHookInstruction, index$5_parseSwapExactInInstruction as parseSwapExactInInstruction, index$5_parseTransferAdminInstruction as parseTransferAdminInstruction, index$5_parseUnpauseInstruction as parseUnpauseInstruction, index$5_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$5_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$5_poolDataCodec as poolDataCodec, index$5_poolExists as poolExists, index$5_positionDataCodec as positionDataCodec, index$5_q64Div as q64Div, index$5_q64Mul as q64Mul, index$5_q64ToNumber as q64ToNumber, index$5_ratioToNumber as ratioToNumber, index$5_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$5_setFeesArgsCodec as setFeesArgsCodec, index$5_setHookArgsCodec as setHookArgsCodec, index$5_sortMints as sortMints, index$5_sortPoolsByReserves as sortPoolsByReserves, index$5_sortPositionsByShares as sortPositionsByShares, index$5_swapExactInArgsCodec as swapExactInArgsCodec, index$5_transferAdminArgsCodec as transferAdminArgsCodec, index$5_validateMarketCapParameters as validateMarketCapParameters, index$5_warnAccountDecodeFailure as warnAccountDecodeFailure };
2772
2942
  }
2773
2943
 
2774
2944
  /**
@@ -2820,21 +2990,31 @@ declare function getCosignerConfigSize(): number;
2820
2990
  * @see https://github.com/codama-idl/codama
2821
2991
  */
2822
2992
 
2993
+ /** InvalidInstructionData: Invalid instruction data */
2994
+ declare const CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA = 6000;
2995
+ /** InvalidScheduleData: Invalid schedule payload */
2996
+ declare const CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA = 6001;
2997
+ /** InvalidFee: Invalid fee */
2998
+ declare const CPMM_HOOK_ERROR__INVALID_FEE = 6002;
2999
+ /** InvalidDuration: Invalid fee duration */
3000
+ declare const CPMM_HOOK_ERROR__INVALID_DURATION = 6003;
3001
+ /** ArithmeticOverflow: Arithmetic overflow */
3002
+ declare const CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW = 6004;
3003
+ /** InvalidAuthority: Invalid hook authority */
3004
+ declare const CPMM_HOOK_ERROR__INVALID_AUTHORITY = 6005;
2823
3005
  /** InvalidConfig: Invalid cosigner hook config */
2824
- declare const COSIGNER_HOOK_ERROR__INVALID_CONFIG = 6000;
2825
- /** InvalidAuthority: Invalid cosigner hook authority */
2826
- declare const COSIGNER_HOOK_ERROR__INVALID_AUTHORITY = 6001;
3006
+ declare const CPMM_HOOK_ERROR__INVALID_CONFIG = 6006;
2827
3007
  /** InvalidCosigner: Invalid cosigner key */
2828
- declare const COSIGNER_HOOK_ERROR__INVALID_COSIGNER = 6002;
3008
+ declare const CPMM_HOOK_ERROR__INVALID_COSIGNER = 6007;
2829
3009
  /** CosignerAlreadyExists: Cosigner already exists */
2830
- declare const COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6003;
3010
+ declare const CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6008;
2831
3011
  /** CosignerNotFound: Cosigner not found */
2832
- declare const COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND = 6004;
3012
+ declare const CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND = 6009;
2833
3013
  /** CosignerListFull: Cosigner list is full */
2834
- declare const COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL = 6005;
2835
- type CosignerHookError = typeof COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL | typeof COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof COSIGNER_HOOK_ERROR__INVALID_AUTHORITY | typeof COSIGNER_HOOK_ERROR__INVALID_CONFIG | typeof COSIGNER_HOOK_ERROR__INVALID_COSIGNER;
2836
- declare function getCosignerHookErrorMessage(code: CosignerHookError): string;
2837
- declare function isCosignerHookError<TProgramErrorCode extends CosignerHookError>(error: unknown, transactionMessage: {
3014
+ declare const CPMM_HOOK_ERROR__COSIGNER_LIST_FULL = 6010;
3015
+ type CpmmHookError = typeof CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW | typeof CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof CPMM_HOOK_ERROR__COSIGNER_LIST_FULL | typeof CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof CPMM_HOOK_ERROR__INVALID_AUTHORITY | typeof CPMM_HOOK_ERROR__INVALID_CONFIG | typeof CPMM_HOOK_ERROR__INVALID_COSIGNER | typeof CPMM_HOOK_ERROR__INVALID_DURATION | typeof CPMM_HOOK_ERROR__INVALID_FEE | typeof CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA | typeof CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA;
3016
+ declare function getCpmmHookErrorMessage(code: CpmmHookError): string;
3017
+ declare function isCpmmHookError<TProgramErrorCode extends CpmmHookError>(error: unknown, transactionMessage: {
2838
3018
  instructions: Record<number, {
2839
3019
  programAddress: Address;
2840
3020
  }>;
@@ -2852,48 +3032,48 @@ declare function isCosignerHookError<TProgramErrorCode extends CosignerHookError
2852
3032
  * @see https://github.com/codama-idl/codama
2853
3033
  */
2854
3034
 
2855
- declare const COSIGNER_HOOK_PROGRAM_ADDRESS: Address<"JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt">;
2856
- declare enum CosignerHookAccount {
3035
+ declare const CPMM_HOOK_PROGRAM_ADDRESS: Address<"HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i">;
3036
+ declare enum CpmmHookAccount {
2857
3037
  CosignerConfig = 0
2858
3038
  }
2859
- declare function identifyCosignerHookAccount(account: {
3039
+ declare function identifyCpmmHookAccount(account: {
2860
3040
  data: ReadonlyUint8Array;
2861
- } | ReadonlyUint8Array): CosignerHookAccount;
2862
- declare enum CosignerHookInstruction {
3041
+ } | ReadonlyUint8Array): CpmmHookAccount;
3042
+ declare enum CpmmHookInstruction {
2863
3043
  AddCosigner = 0,
2864
3044
  InitializeConfig = 1,
2865
3045
  RemoveCosigner = 2,
2866
3046
  SetAuthority = 3
2867
3047
  }
2868
- declare function identifyCosignerHookInstruction(instruction: {
3048
+ declare function identifyCpmmHookInstruction(instruction: {
2869
3049
  data: ReadonlyUint8Array;
2870
- } | ReadonlyUint8Array): CosignerHookInstruction;
2871
- type ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ({
2872
- instructionType: CosignerHookInstruction.AddCosigner;
3050
+ } | ReadonlyUint8Array): CpmmHookInstruction;
3051
+ type ParsedCpmmHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ({
3052
+ instructionType: CpmmHookInstruction.AddCosigner;
2873
3053
  } & ParsedAddCosignerInstruction<TProgram>) | ({
2874
- instructionType: CosignerHookInstruction.InitializeConfig;
3054
+ instructionType: CpmmHookInstruction.InitializeConfig;
2875
3055
  } & ParsedInitializeConfigInstruction<TProgram>) | ({
2876
- instructionType: CosignerHookInstruction.RemoveCosigner;
3056
+ instructionType: CpmmHookInstruction.RemoveCosigner;
2877
3057
  } & ParsedRemoveCosignerInstruction<TProgram>) | ({
2878
- instructionType: CosignerHookInstruction.SetAuthority;
3058
+ instructionType: CpmmHookInstruction.SetAuthority;
2879
3059
  } & ParsedSetAuthorityInstruction<TProgram>);
2880
- declare function parseCosignerHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedCosignerHookInstruction<TProgram>;
2881
- type CosignerHookPlugin = {
2882
- accounts: CosignerHookPluginAccounts;
2883
- instructions: CosignerHookPluginInstructions;
3060
+ declare function parseCpmmHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedCpmmHookInstruction<TProgram>;
3061
+ type CpmmHookPlugin = {
3062
+ accounts: CpmmHookPluginAccounts;
3063
+ instructions: CpmmHookPluginInstructions;
2884
3064
  };
2885
- type CosignerHookPluginAccounts = {
3065
+ type CpmmHookPluginAccounts = {
2886
3066
  cosignerConfig: ReturnType<typeof getCosignerConfigCodec> & SelfFetchFunctions<CosignerConfigArgs, CosignerConfig>;
2887
3067
  };
2888
- type CosignerHookPluginInstructions = {
3068
+ type CpmmHookPluginInstructions = {
2889
3069
  addCosigner: (input: AddCosignerAsyncInput) => ReturnType<typeof getAddCosignerInstructionAsync> & SelfPlanAndSendFunctions;
2890
3070
  initializeConfig: (input: MakeOptional$1<InitializeConfigAsyncInput, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync> & SelfPlanAndSendFunctions;
2891
3071
  removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType<typeof getRemoveCosignerInstructionAsync> & SelfPlanAndSendFunctions;
2892
3072
  setAuthority: (input: SetAuthorityAsyncInput) => ReturnType<typeof getSetAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
2893
3073
  };
2894
- type CosignerHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
2895
- declare function cosignerHookProgram(): <T extends CosignerHookPluginRequirements>(client: T) => T & {
2896
- cosignerHook: CosignerHookPlugin;
3074
+ type CpmmHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
3075
+ declare function cpmmHookProgram(): <T extends CpmmHookPluginRequirements>(client: T) => T & {
3076
+ cpmmHook: CpmmHookPlugin;
2897
3077
  };
2898
3078
  type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2899
3079
 
@@ -2907,7 +3087,7 @@ type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2907
3087
 
2908
3088
  declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2909
3089
  declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2910
- type AddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3090
+ type AddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2911
3091
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
2912
3092
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
2913
3093
  ...TRemainingAccounts
@@ -2927,7 +3107,7 @@ type AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAcco
2927
3107
  config?: Address<TAccountConfig>;
2928
3108
  cosigner: AddCosignerInstructionDataArgs['cosigner'];
2929
3109
  };
2930
- declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3110
+ declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
2931
3111
  programAddress?: TProgramAddress;
2932
3112
  }): Promise<AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
2933
3113
  type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
@@ -2935,10 +3115,10 @@ type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountCo
2935
3115
  config: Address<TAccountConfig>;
2936
3116
  cosigner: AddCosignerInstructionDataArgs['cosigner'];
2937
3117
  };
2938
- declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3118
+ declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
2939
3119
  programAddress?: TProgramAddress;
2940
3120
  }): AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
2941
- type ParsedAddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3121
+ type ParsedAddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2942
3122
  programAddress: Address<TProgram>;
2943
3123
  accounts: {
2944
3124
  adminAuthority: TAccountMetas[0];
@@ -2958,7 +3138,7 @@ declare function parseAddCosignerInstruction<TProgram extends string, TAccountMe
2958
3138
 
2959
3139
  declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2960
3140
  declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2961
- type InitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3141
+ type InitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2962
3142
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
2963
3143
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
2964
3144
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
@@ -2984,7 +3164,7 @@ type InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountA
2984
3164
  systemProgram?: Address<TAccountSystemProgram>;
2985
3165
  cosigners: InitializeConfigInstructionDataArgs['cosigners'];
2986
3166
  };
2987
- declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3167
+ declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
2988
3168
  programAddress?: TProgramAddress;
2989
3169
  }): Promise<InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
2990
3170
  type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
@@ -2995,10 +3175,10 @@ type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminA
2995
3175
  systemProgram?: Address<TAccountSystemProgram>;
2996
3176
  cosigners: InitializeConfigInstructionDataArgs['cosigners'];
2997
3177
  };
2998
- declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3178
+ declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
2999
3179
  programAddress?: TProgramAddress;
3000
3180
  }): InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3001
- type ParsedInitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3181
+ type ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3002
3182
  programAddress: Address<TProgram>;
3003
3183
  accounts: {
3004
3184
  payer: TAccountMetas[0];
@@ -3021,7 +3201,7 @@ declare function parseInitializeConfigInstruction<TProgram extends string, TAcco
3021
3201
 
3022
3202
  declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3023
3203
  declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3024
- type RemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3204
+ type RemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3025
3205
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
3026
3206
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
3027
3207
  ...TRemainingAccounts
@@ -3041,7 +3221,7 @@ type RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TA
3041
3221
  config?: Address<TAccountConfig>;
3042
3222
  cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
3043
3223
  };
3044
- declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3224
+ declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3045
3225
  programAddress?: TProgramAddress;
3046
3226
  }): Promise<RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3047
3227
  type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
@@ -3049,10 +3229,10 @@ type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccoun
3049
3229
  config: Address<TAccountConfig>;
3050
3230
  cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
3051
3231
  };
3052
- declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3232
+ declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3053
3233
  programAddress?: TProgramAddress;
3054
3234
  }): RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3055
- type ParsedRemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3235
+ type ParsedRemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3056
3236
  programAddress: Address<TProgram>;
3057
3237
  accounts: {
3058
3238
  adminAuthority: TAccountMetas[0];
@@ -3072,7 +3252,7 @@ declare function parseRemoveCosignerInstruction<TProgram extends string, TAccoun
3072
3252
 
3073
3253
  declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3074
3254
  declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3075
- type SetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3255
+ type SetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3076
3256
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
3077
3257
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
3078
3258
  ...TRemainingAccounts
@@ -3092,7 +3272,7 @@ type SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAcc
3092
3272
  config?: Address<TAccountConfig>;
3093
3273
  adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
3094
3274
  };
3095
- declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3275
+ declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3096
3276
  programAddress?: TProgramAddress;
3097
3277
  }): Promise<SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3098
3278
  type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
@@ -3100,10 +3280,10 @@ type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountC
3100
3280
  config: Address<TAccountConfig>;
3101
3281
  adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
3102
3282
  };
3103
- declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3283
+ declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3104
3284
  programAddress?: TProgramAddress;
3105
3285
  }): SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3106
- type ParsedSetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3286
+ type ParsedSetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3107
3287
  programAddress: Address<TProgram>;
3108
3288
  accounts: {
3109
3289
  adminAuthority: TAccountMetas[0];
@@ -3161,16 +3341,10 @@ declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgs
3161
3341
  declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
3162
3342
  declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
3163
3343
 
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;
3173
- declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
3344
+ /** Default Doppler CPMM hook program for devnet deployments. */
3345
+ declare const DEVNET_CPMM_HOOK_PROGRAM_ID: Address;
3346
+ declare const CPMM_HOOK_PROGRAM_ID: Address;
3347
+ declare const SEED_CPMM_HOOK_CONFIG = "cosigner_hook_config";
3174
3348
  declare const MAX_COSIGNERS = 32;
3175
3349
  declare const GATE_EXPIRY_DISABLED = 0;
3176
3350
  declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
@@ -3178,6 +3352,11 @@ declare const GATE_EXPIRY_SLOT = 2;
3178
3352
  declare const GATE_EXPIRY_PAYLOAD_VERSION = 1;
3179
3353
  declare const GATE_EXPIRY_HEADER_LEN = 10;
3180
3354
  declare const GATE_EXPIRY_PAYLOAD_LEN = 42;
3355
+ declare const DYNAMIC_FEE_SCHEDULE_MAGIC: Uint8Array<ArrayBuffer>;
3356
+ declare const DYNAMIC_FEE_SCHEDULE_VERSION = 1;
3357
+ declare const DYNAMIC_FEE_SCHEDULE_LEN = 32;
3358
+ declare const DYNAMIC_FEE_SCHEDULE_HEADER_LEN = 16;
3359
+ declare const DYNAMIC_FEE_SCHEDULE_MAX_BPS = 10000;
3181
3360
 
3182
3361
  type CosignerGateClock = {
3183
3362
  unixTimestamp?: bigint | number;
@@ -3203,37 +3382,75 @@ type CosignerGateStatus = {
3203
3382
  expiryValue: bigint;
3204
3383
  reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
3205
3384
  };
3206
- type CosignerHookRemainingAccounts = {
3207
- signedHookRemainingAccounts: [Address, TransactionSigner];
3208
- unsignedHookRemainingAccounts: [Address, Address];
3209
- hookRemainingAccountsHash: Uint8Array;
3210
- };
3211
3385
  declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
3212
3386
  declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
3213
3387
  declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
3214
3388
  declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
3215
- declare function getCosignerHookRemainingAccounts({ namespace, cosigner, }: {
3389
+
3390
+ type DynamicFeeScheduleArgs = {
3391
+ /**
3392
+ * Unix timestamp for the schedule start. Use 0 to let the hook normalize the
3393
+ * start to the launch creation timestamp during BEFORE_CREATE.
3394
+ */
3395
+ startingTime: bigint | number;
3396
+ startFeeBps: number;
3397
+ endFeeBps: number;
3398
+ durationSeconds: bigint | number;
3399
+ };
3400
+ type CpmmHookPayloadArgs = {
3401
+ schedule?: DynamicFeeScheduleArgs | null;
3402
+ gateExpiry?: CosignerGateExpiryArgs | null;
3403
+ };
3404
+ type CpmmHookRemainingAccounts = {
3405
+ signedHookRemainingAccounts: RemainingAccount[];
3406
+ unsignedHookRemainingAccounts: Address[];
3407
+ hookRemainingAccountsHash: Uint8Array;
3408
+ };
3409
+ declare function validateDynamicFeeScheduleArgs(schedule: DynamicFeeScheduleArgs): {
3410
+ startingTime: bigint;
3411
+ durationSeconds: bigint;
3412
+ };
3413
+ declare function encodeDynamicFeeSchedule(schedule: DynamicFeeScheduleArgs): Uint8Array;
3414
+ declare function encodeCpmmHookPayload(args?: CpmmHookPayloadArgs): Uint8Array;
3415
+ declare function encodeDynamicFeeCosignerGatePayload(args: {
3416
+ value: bigint | number;
3417
+ mode: Exclude<CosignerGateExpiryArgs['mode'], typeof GATE_EXPIRY_DISABLED>;
3418
+ cosigner: Address;
3419
+ }): Uint8Array;
3420
+ declare function getCpmmHookRemainingAccounts({ namespace, config, cosigner, }: {
3421
+ namespace: Address;
3422
+ config?: Address;
3423
+ cosigner?: AddressOrTransactionSigner;
3424
+ }): CpmmHookRemainingAccounts;
3425
+ declare function getCpmmHookRemainingAccountAddresses({ namespace, config, cosigner, }: {
3216
3426
  namespace: Address;
3217
- cosigner: TransactionSigner;
3218
- }): CosignerHookRemainingAccounts;
3427
+ config?: Address;
3428
+ cosigner?: AddressOrTransactionSigner;
3429
+ }): Address[];
3430
+ declare function isDynamicFeeSchedulePayload(payload: ReadonlyUint8Array): boolean;
3219
3431
 
3220
- declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3432
+ declare function getCpmmHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3221
3433
 
3222
3434
  declare const index$4_ADD_COSIGNER_DISCRIMINATOR: typeof ADD_COSIGNER_DISCRIMINATOR;
3223
3435
  type index$4_AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3224
3436
  type index$4_AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerInput<TAccountAdminAuthority, TAccountConfig>;
3225
- type index$4_AddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3437
+ type index$4_AddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3226
3438
  type index$4_AddCosignerInstructionData = AddCosignerInstructionData;
3227
3439
  type index$4_AddCosignerInstructionDataArgs = AddCosignerInstructionDataArgs;
3228
3440
  declare const index$4_COSIGNER_CONFIG_DISCRIMINATOR: typeof COSIGNER_CONFIG_DISCRIMINATOR;
3229
- declare const index$4_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
3230
- declare const index$4_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL: typeof COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL;
3231
- declare const index$4_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND;
3232
- declare const index$4_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY: typeof COSIGNER_HOOK_ERROR__INVALID_AUTHORITY;
3233
- declare const index$4_COSIGNER_HOOK_ERROR__INVALID_CONFIG: typeof COSIGNER_HOOK_ERROR__INVALID_CONFIG;
3234
- declare const index$4_COSIGNER_HOOK_ERROR__INVALID_COSIGNER: typeof COSIGNER_HOOK_ERROR__INVALID_COSIGNER;
3235
- declare const index$4_COSIGNER_HOOK_PROGRAM_ADDRESS: typeof COSIGNER_HOOK_PROGRAM_ADDRESS;
3236
- declare const index$4_COSIGNER_HOOK_PROGRAM_ID: typeof COSIGNER_HOOK_PROGRAM_ID;
3441
+ declare const index$4_CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW: typeof CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW;
3442
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
3443
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_LIST_FULL: typeof CPMM_HOOK_ERROR__COSIGNER_LIST_FULL;
3444
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND;
3445
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_AUTHORITY: typeof CPMM_HOOK_ERROR__INVALID_AUTHORITY;
3446
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_CONFIG: typeof CPMM_HOOK_ERROR__INVALID_CONFIG;
3447
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_COSIGNER: typeof CPMM_HOOK_ERROR__INVALID_COSIGNER;
3448
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_DURATION: typeof CPMM_HOOK_ERROR__INVALID_DURATION;
3449
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_FEE: typeof CPMM_HOOK_ERROR__INVALID_FEE;
3450
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA: typeof CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA;
3451
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA: typeof CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA;
3452
+ declare const index$4_CPMM_HOOK_PROGRAM_ADDRESS: typeof CPMM_HOOK_PROGRAM_ADDRESS;
3453
+ declare const index$4_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
3237
3454
  type index$4_CosignerArg = CosignerArg;
3238
3455
  type index$4_CosignerArgArgs = CosignerArgArgs;
3239
3456
  type index$4_CosignerConfig = CosignerConfig;
@@ -3242,17 +3459,24 @@ type index$4_CosignerGateClock = CosignerGateClock;
3242
3459
  type index$4_CosignerGateExpiry = CosignerGateExpiry;
3243
3460
  type index$4_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3244
3461
  type index$4_CosignerGateStatus = CosignerGateStatus;
3245
- type index$4_CosignerHookAccount = CosignerHookAccount;
3246
- declare const index$4_CosignerHookAccount: typeof CosignerHookAccount;
3247
- type index$4_CosignerHookError = CosignerHookError;
3248
- type index$4_CosignerHookInstruction = CosignerHookInstruction;
3249
- declare const index$4_CosignerHookInstruction: typeof CosignerHookInstruction;
3250
- type index$4_CosignerHookPlugin = CosignerHookPlugin;
3251
- type index$4_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
3252
- type index$4_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
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;
3462
+ type index$4_CpmmHookAccount = CpmmHookAccount;
3463
+ declare const index$4_CpmmHookAccount: typeof CpmmHookAccount;
3464
+ type index$4_CpmmHookError = CpmmHookError;
3465
+ type index$4_CpmmHookInstruction = CpmmHookInstruction;
3466
+ declare const index$4_CpmmHookInstruction: typeof CpmmHookInstruction;
3467
+ type index$4_CpmmHookPayloadArgs = CpmmHookPayloadArgs;
3468
+ type index$4_CpmmHookPlugin = CpmmHookPlugin;
3469
+ type index$4_CpmmHookPluginAccounts = CpmmHookPluginAccounts;
3470
+ type index$4_CpmmHookPluginInstructions = CpmmHookPluginInstructions;
3471
+ type index$4_CpmmHookPluginRequirements = CpmmHookPluginRequirements;
3472
+ type index$4_CpmmHookRemainingAccounts = CpmmHookRemainingAccounts;
3473
+ declare const index$4_DEVNET_CPMM_HOOK_PROGRAM_ID: typeof DEVNET_CPMM_HOOK_PROGRAM_ID;
3474
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN: typeof DYNAMIC_FEE_SCHEDULE_HEADER_LEN;
3475
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_LEN: typeof DYNAMIC_FEE_SCHEDULE_LEN;
3476
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_MAGIC: typeof DYNAMIC_FEE_SCHEDULE_MAGIC;
3477
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS: typeof DYNAMIC_FEE_SCHEDULE_MAX_BPS;
3478
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_VERSION: typeof DYNAMIC_FEE_SCHEDULE_VERSION;
3479
+ type index$4_DynamicFeeScheduleArgs = DynamicFeeScheduleArgs;
3256
3480
  declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3257
3481
  declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3258
3482
  declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
@@ -3262,34 +3486,37 @@ declare const index$4_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMEST
3262
3486
  declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
3263
3487
  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>;
3264
3488
  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>;
3265
- type index$4_InitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram, TRemainingAccounts>;
3489
+ type index$4_InitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram, TRemainingAccounts>;
3266
3490
  type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
3267
3491
  type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
3268
3492
  declare const index$4_MAX_COSIGNERS: typeof MAX_COSIGNERS;
3269
- type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
3270
- type index$4_ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ParsedCosignerHookInstruction<TProgram>;
3271
- type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
3272
- type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
3273
- type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
3493
+ type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
3494
+ type index$4_ParsedCpmmHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ParsedCpmmHookInstruction<TProgram>;
3495
+ type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
3496
+ type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
3497
+ type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
3274
3498
  declare const index$4_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR;
3275
3499
  type index$4_RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3276
3500
  type index$4_RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>;
3277
- type index$4_RemoveCosignerInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3501
+ type index$4_RemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3278
3502
  type index$4_RemoveCosignerInstructionData = RemoveCosignerInstructionData;
3279
3503
  type index$4_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs;
3280
- declare const index$4_SEED_COSIGNER_HOOK_CONFIG: typeof SEED_COSIGNER_HOOK_CONFIG;
3504
+ declare const index$4_SEED_CPMM_HOOK_CONFIG: typeof SEED_CPMM_HOOK_CONFIG;
3281
3505
  declare const index$4_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR;
3282
3506
  type index$4_SetAuthorityArgs = SetAuthorityArgs;
3283
3507
  type index$4_SetAuthorityArgsArgs = SetAuthorityArgsArgs;
3284
3508
  type index$4_SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3285
3509
  type index$4_SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>;
3286
- type index$4_SetAuthorityInstruction<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3510
+ type index$4_SetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3287
3511
  type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
3288
3512
  type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
3289
- declare const index$4_cosignerHookProgram: typeof cosignerHookProgram;
3513
+ declare const index$4_cpmmHookProgram: typeof cpmmHookProgram;
3290
3514
  declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
3291
3515
  declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3292
3516
  declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3517
+ declare const index$4_encodeCpmmHookPayload: typeof encodeCpmmHookPayload;
3518
+ declare const index$4_encodeDynamicFeeCosignerGatePayload: typeof encodeDynamicFeeCosignerGatePayload;
3519
+ declare const index$4_encodeDynamicFeeSchedule: typeof encodeDynamicFeeSchedule;
3293
3520
  declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
3294
3521
  declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
3295
3522
  declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
@@ -3309,9 +3536,10 @@ declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerCon
3309
3536
  declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
3310
3537
  declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
3311
3538
  declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
3312
- declare const index$4_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
3313
- declare const index$4_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
3314
- declare const index$4_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
3539
+ declare const index$4_getCpmmHookConfigAddress: typeof getCpmmHookConfigAddress;
3540
+ declare const index$4_getCpmmHookErrorMessage: typeof getCpmmHookErrorMessage;
3541
+ declare const index$4_getCpmmHookRemainingAccountAddresses: typeof getCpmmHookRemainingAccountAddresses;
3542
+ declare const index$4_getCpmmHookRemainingAccounts: typeof getCpmmHookRemainingAccounts;
3315
3543
  declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
3316
3544
  declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
3317
3545
  declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
@@ -3333,17 +3561,19 @@ declare const index$4_getSetAuthorityInstructionAsync: typeof getSetAuthorityIns
3333
3561
  declare const index$4_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec;
3334
3562
  declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder;
3335
3563
  declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
3336
- declare const index$4_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
3337
- declare const index$4_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
3564
+ declare const index$4_identifyCpmmHookAccount: typeof identifyCpmmHookAccount;
3565
+ declare const index$4_identifyCpmmHookInstruction: typeof identifyCpmmHookInstruction;
3338
3566
  declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3339
- declare const index$4_isCosignerHookError: typeof isCosignerHookError;
3567
+ declare const index$4_isCpmmHookError: typeof isCpmmHookError;
3568
+ declare const index$4_isDynamicFeeSchedulePayload: typeof isDynamicFeeSchedulePayload;
3340
3569
  declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
3341
- declare const index$4_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
3570
+ declare const index$4_parseCpmmHookInstruction: typeof parseCpmmHookInstruction;
3342
3571
  declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
3343
3572
  declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
3344
3573
  declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
3574
+ declare const index$4_validateDynamicFeeScheduleArgs: typeof validateDynamicFeeScheduleArgs;
3345
3575
  declare namespace index$4 {
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 };
3576
+ 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_CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW as CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW, index$4_CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_CPMM_HOOK_ERROR__COSIGNER_LIST_FULL as CPMM_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND as CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_CPMM_HOOK_ERROR__INVALID_AUTHORITY as CPMM_HOOK_ERROR__INVALID_AUTHORITY, index$4_CPMM_HOOK_ERROR__INVALID_CONFIG as CPMM_HOOK_ERROR__INVALID_CONFIG, index$4_CPMM_HOOK_ERROR__INVALID_COSIGNER as CPMM_HOOK_ERROR__INVALID_COSIGNER, index$4_CPMM_HOOK_ERROR__INVALID_DURATION as CPMM_HOOK_ERROR__INVALID_DURATION, index$4_CPMM_HOOK_ERROR__INVALID_FEE as CPMM_HOOK_ERROR__INVALID_FEE, index$4_CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA as CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA, index$4_CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA as CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA, index$4_CPMM_HOOK_PROGRAM_ADDRESS as CPMM_HOOK_PROGRAM_ADDRESS, index$4_CPMM_HOOK_PROGRAM_ID as CPMM_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_CpmmHookAccount as CpmmHookAccount, type index$4_CpmmHookError as CpmmHookError, index$4_CpmmHookInstruction as CpmmHookInstruction, type index$4_CpmmHookPayloadArgs as CpmmHookPayloadArgs, type index$4_CpmmHookPlugin as CpmmHookPlugin, type index$4_CpmmHookPluginAccounts as CpmmHookPluginAccounts, type index$4_CpmmHookPluginInstructions as CpmmHookPluginInstructions, type index$4_CpmmHookPluginRequirements as CpmmHookPluginRequirements, type index$4_CpmmHookRemainingAccounts as CpmmHookRemainingAccounts, index$4_DEVNET_CPMM_HOOK_PROGRAM_ID as DEVNET_CPMM_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN as DYNAMIC_FEE_SCHEDULE_HEADER_LEN, index$4_DYNAMIC_FEE_SCHEDULE_LEN as DYNAMIC_FEE_SCHEDULE_LEN, index$4_DYNAMIC_FEE_SCHEDULE_MAGIC as DYNAMIC_FEE_SCHEDULE_MAGIC, index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS as DYNAMIC_FEE_SCHEDULE_MAX_BPS, index$4_DYNAMIC_FEE_SCHEDULE_VERSION as DYNAMIC_FEE_SCHEDULE_VERSION, type index$4_DynamicFeeScheduleArgs as DynamicFeeScheduleArgs, 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_ParsedCpmmHookInstruction as ParsedCpmmHookInstruction, 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_CPMM_HOOK_CONFIG as SEED_CPMM_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_cpmmHookProgram as cpmmHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_encodeCpmmHookPayload as encodeCpmmHookPayload, index$4_encodeDynamicFeeCosignerGatePayload as encodeDynamicFeeCosignerGatePayload, index$4_encodeDynamicFeeSchedule as encodeDynamicFeeSchedule, 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_getCpmmHookConfigAddress as getCpmmHookConfigAddress, index$4_getCpmmHookErrorMessage as getCpmmHookErrorMessage, index$4_getCpmmHookRemainingAccountAddresses as getCpmmHookRemainingAccountAddresses, index$4_getCpmmHookRemainingAccounts as getCpmmHookRemainingAccounts, 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_identifyCpmmHookAccount as identifyCpmmHookAccount, index$4_identifyCpmmHookInstruction as identifyCpmmHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCpmmHookError as isCpmmHookError, index$4_isDynamicFeeSchedulePayload as isDynamicFeeSchedulePayload, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCpmmHookInstruction as parseCpmmHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction, index$4_validateDynamicFeeScheduleArgs as validateDynamicFeeScheduleArgs };
3347
3577
  }
3348
3578
 
3349
3579
  /**
@@ -3353,13 +3583,6 @@ declare namespace index$4 {
3353
3583
  */
3354
3584
  declare const INITIALIZER_PROGRAM_ID: Address;
3355
3585
  declare const BPF_LOADER_UPGRADEABLE_PROGRAM_ID: Address;
3356
- /**
3357
- * Hook program for CPMM-migrated launches.
3358
- * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
3359
- *
3360
- * Source of truth: programs/cpmm_hook/src/lib.rs
3361
- */
3362
- declare const CPMM_HOOK_PROGRAM_ID: Address;
3363
3586
  /**
3364
3587
  * Hook program for prediction market launches.
3365
3588
  * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
@@ -3971,25 +4194,25 @@ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address):
3971
4194
  */
3972
4195
  declare function launchIdFromU64(launchId: bigint): Uint8Array;
3973
4196
 
3974
- type AddressOrSigner$6 = Address | TransactionSigner;
4197
+ type AddressOrSigner$7 = AddressOrTransactionSigner;
3975
4198
  interface InitializeConfigAccounts {
3976
- admin: AddressOrSigner$6;
4199
+ admin: AddressOrSigner$7;
3977
4200
  config: Address;
3978
4201
  programData: Address;
3979
4202
  systemProgram?: Address;
3980
4203
  }
3981
4204
  declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
3982
4205
 
3983
- type AddressOrSigner$5 = Address | TransactionSigner;
4206
+ type AddressOrSigner$6 = AddressOrTransactionSigner;
3984
4207
  interface SetMigratorAllowlistAccounts {
3985
- admin: AddressOrSigner$5;
4208
+ admin: AddressOrSigner$6;
3986
4209
  config: Address;
3987
4210
  }
3988
4211
  declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3989
4212
 
3990
- type AddressOrSigner$4 = Address | TransactionSigner;
4213
+ type AddressOrSigner$5 = AddressOrTransactionSigner;
3991
4214
  interface SetHookAllowlistAccounts {
3992
- admin: AddressOrSigner$4;
4215
+ admin: AddressOrSigner$5;
3993
4216
  config: Address;
3994
4217
  }
3995
4218
  declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
@@ -4010,8 +4233,8 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
4010
4233
  hookCreateRemainingAccountsLen?: number;
4011
4234
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
4012
4235
  };
4013
- type AddressOrSigner$3 = Address | TransactionSigner;
4014
- type ReadonlyRemainingAccount = AddressOrSigner$3;
4236
+ type AddressOrSigner$4 = AddressOrTransactionSigner;
4237
+ type ReadonlyRemainingAccount = AddressOrSigner$4;
4015
4238
  /**
4016
4239
  * Derive the Metaplex token metadata PDA for a given mint.
4017
4240
  * Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
@@ -4024,13 +4247,13 @@ interface InitializeLaunchAccounts {
4024
4247
  config: Address;
4025
4248
  launch: Address;
4026
4249
  launchAuthority: Address;
4027
- baseMint: AddressOrSigner$3;
4250
+ baseMint: AddressOrSigner$4;
4028
4251
  quoteMint: Address;
4029
- baseVault: AddressOrSigner$3;
4030
- quoteVault: AddressOrSigner$3;
4252
+ baseVault: AddressOrSigner$4;
4253
+ quoteVault: AddressOrSigner$4;
4031
4254
  launchFeeState?: Address;
4032
- payer: AddressOrSigner$3;
4033
- authority?: AddressOrSigner$3;
4255
+ payer: AddressOrSigner$4;
4256
+ authority?: AddressOrSigner$4;
4034
4257
  hookProgram?: Address;
4035
4258
  migratorProgram?: Address;
4036
4259
  baseTokenProgram?: Address;
@@ -4051,8 +4274,6 @@ interface InitializeLaunchAccounts {
4051
4274
  }
4052
4275
  declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
4053
4276
 
4054
- type AddressOrSigner$2 = Address | TransactionSigner;
4055
- type RemainingAccount$2 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4056
4277
  interface CurveSwapExactInAccounts {
4057
4278
  launch: Address;
4058
4279
  launchAuthority: Address;
@@ -4062,13 +4283,13 @@ interface CurveSwapExactInAccounts {
4062
4283
  userQuoteAccount: Address;
4063
4284
  baseMint: Address;
4064
4285
  quoteMint: Address;
4065
- user: AddressOrSigner$2;
4286
+ user: AddressOrTransactionSigner;
4066
4287
  /** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
4067
4288
  hookProgram?: Address;
4068
4289
  launchFeeState: Address;
4069
4290
  baseTokenProgram?: Address;
4070
4291
  quoteTokenProgram?: Address;
4071
- remainingAccounts?: RemainingAccount$2[];
4292
+ remainingAccounts?: RemainingAccount[];
4072
4293
  }
4073
4294
  declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
4074
4295
  amountIn: bigint;
@@ -4076,7 +4297,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
4076
4297
  tradeDirection: number;
4077
4298
  }, programId?: Address): Instruction;
4078
4299
 
4079
- type AddressOrSigner$1 = Address | TransactionSigner;
4300
+ type AddressOrSigner$3 = AddressOrTransactionSigner;
4080
4301
  interface MigrateLaunchAccounts {
4081
4302
  config: Address;
4082
4303
  launch: Address;
@@ -4087,7 +4308,7 @@ interface MigrateLaunchAccounts {
4087
4308
  quoteVault: Address;
4088
4309
  launchFeeState: Address;
4089
4310
  migratorProgram: Address;
4090
- payer: AddressOrSigner$1;
4311
+ payer: AddressOrSigner$3;
4091
4312
  baseTokenProgram?: Address;
4092
4313
  quoteTokenProgram?: Address;
4093
4314
  systemProgram?: Address;
@@ -4095,7 +4316,6 @@ interface MigrateLaunchAccounts {
4095
4316
  }
4096
4317
  declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
4097
4318
 
4098
- type RemainingAccount$1 = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4099
4319
  interface PreviewSwapExactInResult {
4100
4320
  amountOut: bigint;
4101
4321
  feePaid: bigint;
@@ -4106,7 +4326,7 @@ interface PreviewSwapExactInAccounts {
4106
4326
  baseVault: Address;
4107
4327
  quoteVault: Address;
4108
4328
  hookProgram?: Address;
4109
- remainingAccounts?: RemainingAccount$1[];
4329
+ remainingAccounts?: RemainingAccount[];
4110
4330
  }
4111
4331
  declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
4112
4332
  amountIn: bigint;
@@ -4133,7 +4353,6 @@ interface SolanaCpmmProgramAddresses {
4133
4353
  initializerProgram: Address;
4134
4354
  cpmmMigratorProgram: Address;
4135
4355
  cpmmHookProgram: Address;
4136
- cosignerHookProgram: Address;
4137
4356
  }
4138
4357
  interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4139
4358
  cpmmConfig: Address;
@@ -4142,6 +4361,32 @@ interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4142
4361
  declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4143
4362
  declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
4144
4363
 
4364
+ /**
4365
+ * This code was AUTOGENERATED using the Codama library.
4366
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4367
+ * to add features, then rerun Codama to update it.
4368
+ *
4369
+ * @see https://github.com/codama-idl/codama
4370
+ */
4371
+
4372
+ type CreateSpotPoolArgs = {
4373
+ swapFeeBps: number;
4374
+ positionId: bigint;
4375
+ amount0Max: bigint;
4376
+ amount1Max: bigint;
4377
+ minSharesOut: bigint;
4378
+ };
4379
+ type CreateSpotPoolArgsArgs = {
4380
+ swapFeeBps: number;
4381
+ positionId: number | bigint;
4382
+ amount0Max: number | bigint;
4383
+ amount1Max: number | bigint;
4384
+ minSharesOut: number | bigint;
4385
+ };
4386
+ declare function getCreateSpotPoolArgsEncoder(): FixedSizeEncoder<CreateSpotPoolArgsArgs>;
4387
+ declare function getCreateSpotPoolArgsDecoder(): FixedSizeDecoder<CreateSpotPoolArgs>;
4388
+ declare function getCreateSpotPoolArgsCodec(): FixedSizeCodec<CreateSpotPoolArgsArgs, CreateSpotPoolArgs>;
4389
+
4145
4390
  /**
4146
4391
  * This code was AUTOGENERATED using the Codama library.
4147
4392
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -4238,6 +4483,33 @@ declare function getRegisterLaunchArgsEncoder(): Encoder<RegisterLaunchArgsArgs>
4238
4483
  declare function getRegisterLaunchArgsDecoder(): Decoder<RegisterLaunchArgs>;
4239
4484
  declare function getRegisterLaunchArgsCodec(): Codec<RegisterLaunchArgsArgs, RegisterLaunchArgs>;
4240
4485
 
4486
+ /**
4487
+ * This code was AUTOGENERATED using the Codama library.
4488
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4489
+ * to add features, then rerun Codama to update it.
4490
+ *
4491
+ * @see https://github.com/codama-idl/codama
4492
+ */
4493
+
4494
+ type SpotPoolCreated = {
4495
+ pool: Address;
4496
+ owner: Address;
4497
+ token0Mint: Address;
4498
+ token1Mint: Address;
4499
+ amount0Max: bigint;
4500
+ amount1Max: bigint;
4501
+ swapFeeBps: number;
4502
+ };
4503
+ type SpotPoolCreatedArgs = {
4504
+ pool: Address;
4505
+ owner: Address;
4506
+ token0Mint: Address;
4507
+ token1Mint: Address;
4508
+ amount0Max: number | bigint;
4509
+ amount1Max: number | bigint;
4510
+ swapFeeBps: number;
4511
+ };
4512
+
4241
4513
  /**
4242
4514
  * This code was AUTOGENERATED using the Codama library.
4243
4515
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -4314,11 +4586,132 @@ declare function getCpmmMigratorStateDecoder(): Decoder<CpmmMigratorState>;
4314
4586
  /** Gets the codec for {@link CpmmMigratorState} account data. */
4315
4587
  declare function getCpmmMigratorStateCodec(): Codec<CpmmMigratorStateArgs, CpmmMigratorState>;
4316
4588
 
4589
+ /**
4590
+ * This code was AUTOGENERATED using the Codama library.
4591
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4592
+ * to add features, then rerun Codama to update it.
4593
+ *
4594
+ * @see https://github.com/codama-idl/codama
4595
+ */
4596
+
4597
+ declare const CPMM_MIGRATOR_PROGRAM_ADDRESS: Address<"7WMUTNC41eMCo6eGH5Sy2xbgE3AycvLbFPo95AU9CSUd">;
4598
+
4599
+ /**
4600
+ * This code was AUTOGENERATED using the Codama library.
4601
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4602
+ * to add features, then rerun Codama to update it.
4603
+ *
4604
+ * @see https://github.com/codama-idl/codama
4605
+ */
4606
+
4607
+ type CreateSpotPoolInstruction$1<TProgram extends string = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS, TAccountCpmmConfig extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountLiquidityOwner extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPoolAuthority extends string | AccountMeta<string> = string, TAccountPoolVault0 extends string | AccountMeta<string> = string, TAccountPoolVault1 extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountCpmmProgram extends string | AccountMeta<string> = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4608
+ TAccountCpmmConfig extends string ? ReadonlyAccount<TAccountCpmmConfig> : TAccountCpmmConfig,
4609
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
4610
+ TAccountLiquidityOwner extends string ? ReadonlySignerAccount<TAccountLiquidityOwner> & AccountSignerMeta<TAccountLiquidityOwner> : TAccountLiquidityOwner,
4611
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
4612
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
4613
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
4614
+ TAccountPoolAuthority extends string ? ReadonlyAccount<TAccountPoolAuthority> : TAccountPoolAuthority,
4615
+ TAccountPoolVault0 extends string ? WritableAccount<TAccountPoolVault0> : TAccountPoolVault0,
4616
+ TAccountPoolVault1 extends string ? WritableAccount<TAccountPoolVault1> : TAccountPoolVault1,
4617
+ TAccountProtocolFeeOwner extends string ? ReadonlyAccount<TAccountProtocolFeeOwner> : TAccountProtocolFeeOwner,
4618
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
4619
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
4620
+ TAccountUser0 extends string ? WritableAccount<TAccountUser0> : TAccountUser0,
4621
+ TAccountUser1 extends string ? WritableAccount<TAccountUser1> : TAccountUser1,
4622
+ TAccountCpmmProgram extends string ? ReadonlyAccount<TAccountCpmmProgram> : TAccountCpmmProgram,
4623
+ TAccountMigrationAuthority extends string ? ReadonlyAccount<TAccountMigrationAuthority> : TAccountMigrationAuthority,
4624
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
4625
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
4626
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
4627
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
4628
+ ...TRemainingAccounts
4629
+ ]>;
4630
+ type CreateSpotPoolInstructionData = {
4631
+ discriminator: ReadonlyUint8Array;
4632
+ swapFeeBps: number;
4633
+ positionId: bigint;
4634
+ amount0Max: bigint;
4635
+ amount1Max: bigint;
4636
+ minSharesOut: bigint;
4637
+ };
4638
+ type CreateSpotPoolInstructionDataArgs = {
4639
+ swapFeeBps: number;
4640
+ positionId: number | bigint;
4641
+ amount0Max: number | bigint;
4642
+ amount1Max: number | bigint;
4643
+ minSharesOut: number | bigint;
4644
+ };
4645
+ declare function getCreateSpotPoolInstructionDataEncoder(): FixedSizeEncoder<CreateSpotPoolInstructionDataArgs>;
4646
+ declare function getCreateSpotPoolInstructionDataDecoder(): FixedSizeDecoder<CreateSpotPoolInstructionData>;
4647
+ declare function getCreateSpotPoolInstructionDataCodec(): FixedSizeCodec<CreateSpotPoolInstructionDataArgs, CreateSpotPoolInstructionData>;
4648
+ type CreateSpotPoolAsyncInput<TAccountCpmmConfig extends string = string, TAccountPayer extends string = string, TAccountLiquidityOwner extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountProtocolFeePosition extends string = string, TAccountPosition extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountCpmmProgram extends string = string, TAccountMigrationAuthority extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
4649
+ cpmmConfig: Address<TAccountCpmmConfig>;
4650
+ payer: TransactionSigner<TAccountPayer>;
4651
+ liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
4652
+ token0Mint: Address<TAccountToken0Mint>;
4653
+ token1Mint: Address<TAccountToken1Mint>;
4654
+ pool: Address<TAccountPool>;
4655
+ poolAuthority: Address<TAccountPoolAuthority>;
4656
+ poolVault0: Address<TAccountPoolVault0>;
4657
+ poolVault1: Address<TAccountPoolVault1>;
4658
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
4659
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
4660
+ position: Address<TAccountPosition>;
4661
+ user0: Address<TAccountUser0>;
4662
+ user1: Address<TAccountUser1>;
4663
+ cpmmProgram?: Address<TAccountCpmmProgram>;
4664
+ migrationAuthority?: Address<TAccountMigrationAuthority>;
4665
+ token0Program: Address<TAccountToken0Program>;
4666
+ token1Program: Address<TAccountToken1Program>;
4667
+ systemProgram?: Address<TAccountSystemProgram>;
4668
+ rent?: Address<TAccountRent>;
4669
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4670
+ positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4671
+ amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4672
+ amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4673
+ minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4674
+ };
4675
+ declare function getCreateSpotPoolInstructionAsync<TAccountCpmmConfig extends string, TAccountPayer extends string, TAccountLiquidityOwner extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolVault0 extends string, TAccountPoolVault1 extends string, TAccountProtocolFeeOwner extends string, TAccountProtocolFeePosition extends string, TAccountPosition extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountCpmmProgram extends string, TAccountMigrationAuthority extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS>(input: CreateSpotPoolAsyncInput<TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>, config?: {
4676
+ programAddress?: TProgramAddress;
4677
+ }): Promise<CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>>;
4678
+ type CreateSpotPoolInput<TAccountCpmmConfig extends string = string, TAccountPayer extends string = string, TAccountLiquidityOwner extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountProtocolFeePosition extends string = string, TAccountPosition extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountCpmmProgram extends string = string, TAccountMigrationAuthority extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
4679
+ cpmmConfig: Address<TAccountCpmmConfig>;
4680
+ payer: TransactionSigner<TAccountPayer>;
4681
+ liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
4682
+ token0Mint: Address<TAccountToken0Mint>;
4683
+ token1Mint: Address<TAccountToken1Mint>;
4684
+ pool: Address<TAccountPool>;
4685
+ poolAuthority: Address<TAccountPoolAuthority>;
4686
+ poolVault0: Address<TAccountPoolVault0>;
4687
+ poolVault1: Address<TAccountPoolVault1>;
4688
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
4689
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
4690
+ position: Address<TAccountPosition>;
4691
+ user0: Address<TAccountUser0>;
4692
+ user1: Address<TAccountUser1>;
4693
+ cpmmProgram?: Address<TAccountCpmmProgram>;
4694
+ migrationAuthority: Address<TAccountMigrationAuthority>;
4695
+ token0Program: Address<TAccountToken0Program>;
4696
+ token1Program: Address<TAccountToken1Program>;
4697
+ systemProgram?: Address<TAccountSystemProgram>;
4698
+ rent?: Address<TAccountRent>;
4699
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4700
+ positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4701
+ amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4702
+ amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4703
+ minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4704
+ };
4705
+ declare function getCreateSpotPoolInstruction<TAccountCpmmConfig extends string, TAccountPayer extends string, TAccountLiquidityOwner extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolVault0 extends string, TAccountPoolVault1 extends string, TAccountProtocolFeeOwner extends string, TAccountProtocolFeePosition extends string, TAccountPosition extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountCpmmProgram extends string, TAccountMigrationAuthority extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS>(input: CreateSpotPoolInput<TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>, config?: {
4706
+ programAddress?: TProgramAddress;
4707
+ }): CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>;
4708
+
4317
4709
  declare const CPMM_MIGRATOR_PROGRAM_ID: Address;
4318
4710
  declare const SEED_STATE = "state";
4319
4711
  declare const SEED_MIGRATION_AUTHORITY = "migration_authority";
4320
4712
  declare const MAX_RECIPIENTS = 2;
4321
4713
  declare const CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: {
4714
+ readonly createSpotPool: Uint8Array<ArrayBuffer>;
4322
4715
  readonly registerLaunch: Uint8Array<ArrayBuffer>;
4323
4716
  readonly migrate: Uint8Array<ArrayBuffer>;
4324
4717
  };
@@ -4331,6 +4724,53 @@ declare function getCpmmMigrationAuthorityAddress(programId?: Address): Promise<
4331
4724
 
4332
4725
  declare function fetchCpmmMigratorState(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<CpmmMigratorState | null>;
4333
4726
 
4727
+ type DeriveSpotPoolAccountsInput = {
4728
+ tokenAMint: Address;
4729
+ tokenBMint: Address;
4730
+ swapFeeBps: number;
4731
+ liquidityOwner: Address;
4732
+ tokenAProgram?: Address;
4733
+ tokenBProgram?: Address;
4734
+ tokenAAccount?: Address;
4735
+ tokenBAccount?: Address;
4736
+ token0Account?: Address;
4737
+ token1Account?: Address;
4738
+ positionId?: number | bigint;
4739
+ cpmmProgram?: Address;
4740
+ cpmmMigratorProgram?: Address;
4741
+ };
4742
+ type SpotPoolAccounts = {
4743
+ cpmmConfig: Address;
4744
+ token0Mint: Address;
4745
+ token1Mint: Address;
4746
+ token0Program: Address;
4747
+ token1Program: Address;
4748
+ pool: Address;
4749
+ poolAuthority: Address;
4750
+ poolVault0: Address;
4751
+ poolVault1: Address;
4752
+ protocolFeeOwner: Address;
4753
+ protocolFeePosition: Address;
4754
+ position: Address;
4755
+ user0: Address;
4756
+ user1: Address;
4757
+ migrationAuthority: Address;
4758
+ };
4759
+ type AddressOrSigner$2 = Address | TransactionSigner;
4760
+ type CreateSpotPoolInstructionInput = Omit<DeriveSpotPoolAccountsInput, 'liquidityOwner' | 'swapFeeBps'> & {
4761
+ payer: AddressOrSigner$2;
4762
+ tokenAAmount: CreateSpotPoolInstructionDataArgs['amount0Max'];
4763
+ tokenBAmount: CreateSpotPoolInstructionDataArgs['amount1Max'];
4764
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4765
+ minSharesOut?: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4766
+ liquidityOwner?: AddressOrSigner$2;
4767
+ systemProgram?: Address;
4768
+ rent?: Address;
4769
+ };
4770
+ type CreateSpotPoolInstruction = Instruction & InstructionWithAccounts<(AccountMeta | AccountSignerMeta)[]> & InstructionWithData<ReadonlyUint8Array>;
4771
+ declare function deriveSpotPoolAccounts({ tokenAMint, tokenBMint, swapFeeBps, liquidityOwner, tokenAProgram, tokenBProgram, tokenAAccount, tokenBAccount, token0Account, token1Account, positionId, cpmmProgram, cpmmMigratorProgram, }: DeriveSpotPoolAccountsInput): Promise<SpotPoolAccounts>;
4772
+ declare function createSpotPoolInstruction(input: CreateSpotPoolInstructionInput): Promise<CreateSpotPoolInstruction>;
4773
+
4334
4774
  interface CpmmMigrationRemainingAccountsInput {
4335
4775
  launch: Address;
4336
4776
  baseMint: Address;
@@ -4363,7 +4803,9 @@ interface CpmmMigrationRemainingAccounts {
4363
4803
  declare function buildCpmmMigrationRemainingAccounts({ launch, baseMint, quoteMint, launchAuthority, adminBaseAta, adminQuoteAta, recipientAtas, cpmmProgram, cpmmMigratorProgram, }: CpmmMigrationRemainingAccountsInput): Promise<CpmmMigrationRemainingAccounts>;
4364
4804
  declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRemainingAccountsInput): Promise<Uint8Array>;
4365
4805
 
4366
- declare function encodeRegisterLaunchPayload(args: RegisterLaunchArgsArgs): Uint8Array;
4806
+ type RegisterLaunchPayloadArgs = Omit<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'> & Partial<Pick<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'>>;
4807
+ declare function encodeCreateSpotPoolPayload(args: CreateSpotPoolArgsArgs): Uint8Array;
4808
+ declare function encodeRegisterLaunchPayload(args: RegisterLaunchPayloadArgs): Uint8Array;
4367
4809
  declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
4368
4810
 
4369
4811
  declare const index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
@@ -4373,6 +4815,11 @@ type index$3_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
4373
4815
  type index$3_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
4374
4816
  type index$3_CpmmMigratorState = CpmmMigratorState;
4375
4817
  type index$3_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
4818
+ type index$3_CreateSpotPoolArgs = CreateSpotPoolArgs;
4819
+ type index$3_CreateSpotPoolArgsArgs = CreateSpotPoolArgsArgs;
4820
+ type index$3_CreateSpotPoolInstruction = CreateSpotPoolInstruction;
4821
+ type index$3_CreateSpotPoolInstructionInput = CreateSpotPoolInstructionInput;
4822
+ type index$3_DeriveSpotPoolAccountsInput = DeriveSpotPoolAccountsInput;
4376
4823
  declare const index$3_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
4377
4824
  type index$3_MigrateArgs = MigrateArgs;
4378
4825
  type index$3_MigrateArgsArgs = MigrateArgsArgs;
@@ -4382,10 +4829,17 @@ type index$3_Recipient = Recipient;
4382
4829
  type index$3_RecipientArgs = RecipientArgs;
4383
4830
  type index$3_RegisterLaunchArgs = RegisterLaunchArgs;
4384
4831
  type index$3_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
4832
+ type index$3_RegisterLaunchPayloadArgs = RegisterLaunchPayloadArgs;
4385
4833
  declare const index$3_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
4386
4834
  declare const index$3_SEED_STATE: typeof SEED_STATE;
4835
+ type index$3_SpotPoolAccounts = SpotPoolAccounts;
4836
+ type index$3_SpotPoolCreated = SpotPoolCreated;
4837
+ type index$3_SpotPoolCreatedArgs = SpotPoolCreatedArgs;
4387
4838
  declare const index$3_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
4388
4839
  declare const index$3_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
4840
+ declare const index$3_createSpotPoolInstruction: typeof createSpotPoolInstruction;
4841
+ declare const index$3_deriveSpotPoolAccounts: typeof deriveSpotPoolAccounts;
4842
+ declare const index$3_encodeCreateSpotPoolPayload: typeof encodeCreateSpotPoolPayload;
4389
4843
  declare const index$3_encodeMigratePayload: typeof encodeMigratePayload;
4390
4844
  declare const index$3_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
4391
4845
  declare const index$3_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
@@ -4394,6 +4848,14 @@ declare const index$3_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAd
4394
4848
  declare const index$3_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
4395
4849
  declare const index$3_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
4396
4850
  declare const index$3_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder;
4851
+ declare const index$3_getCreateSpotPoolArgsCodec: typeof getCreateSpotPoolArgsCodec;
4852
+ declare const index$3_getCreateSpotPoolArgsDecoder: typeof getCreateSpotPoolArgsDecoder;
4853
+ declare const index$3_getCreateSpotPoolArgsEncoder: typeof getCreateSpotPoolArgsEncoder;
4854
+ declare const index$3_getCreateSpotPoolInstruction: typeof getCreateSpotPoolInstruction;
4855
+ declare const index$3_getCreateSpotPoolInstructionAsync: typeof getCreateSpotPoolInstructionAsync;
4856
+ declare const index$3_getCreateSpotPoolInstructionDataCodec: typeof getCreateSpotPoolInstructionDataCodec;
4857
+ declare const index$3_getCreateSpotPoolInstructionDataDecoder: typeof getCreateSpotPoolInstructionDataDecoder;
4858
+ declare const index$3_getCreateSpotPoolInstructionDataEncoder: typeof getCreateSpotPoolInstructionDataEncoder;
4397
4859
  declare const index$3_getMigrateArgsCodec: typeof getMigrateArgsCodec;
4398
4860
  declare const index$3_getMigrateArgsDecoder: typeof getMigrateArgsDecoder;
4399
4861
  declare const index$3_getMigrateArgsEncoder: typeof getMigrateArgsEncoder;
@@ -4404,11 +4866,10 @@ declare const index$3_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCo
4404
4866
  declare const index$3_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
4405
4867
  declare const index$3_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
4406
4868
  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 };
4869
+ export { type AddressOrSigner$2 as AddressOrSigner, 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, type index$3_CreateSpotPoolArgs as CreateSpotPoolArgs, type index$3_CreateSpotPoolArgsArgs as CreateSpotPoolArgsArgs, type index$3_CreateSpotPoolInstruction as CreateSpotPoolInstruction, type index$3_CreateSpotPoolInstructionInput as CreateSpotPoolInstructionInput, type index$3_DeriveSpotPoolAccountsInput as DeriveSpotPoolAccountsInput, 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, type index$3_RegisterLaunchPayloadArgs as RegisterLaunchPayloadArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, type index$3_SpotPoolAccounts as SpotPoolAccounts, type index$3_SpotPoolCreated as SpotPoolCreated, type index$3_SpotPoolCreatedArgs as SpotPoolCreatedArgs, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_createSpotPoolInstruction as createSpotPoolInstruction, index$3_deriveSpotPoolAccounts as deriveSpotPoolAccounts, index$3_encodeCreateSpotPoolPayload as encodeCreateSpotPoolPayload, 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_getCreateSpotPoolArgsCodec as getCreateSpotPoolArgsCodec, index$3_getCreateSpotPoolArgsDecoder as getCreateSpotPoolArgsDecoder, index$3_getCreateSpotPoolArgsEncoder as getCreateSpotPoolArgsEncoder, index$3_getCreateSpotPoolInstruction as getCreateSpotPoolInstruction, index$3_getCreateSpotPoolInstructionAsync as getCreateSpotPoolInstructionAsync, index$3_getCreateSpotPoolInstructionDataCodec as getCreateSpotPoolInstructionDataCodec, index$3_getCreateSpotPoolInstructionDataDecoder as getCreateSpotPoolInstructionDataDecoder, index$3_getCreateSpotPoolInstructionDataEncoder as getCreateSpotPoolInstructionDataEncoder, 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
4870
  }
4409
4871
 
4410
- type AddressOrSigner = InitializeLaunchAccounts['baseMint'];
4411
- type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
4872
+ type AddressOrSigner$1 = InitializeLaunchAccounts['baseMint'];
4412
4873
  type LaunchTokenPrograms = {
4413
4874
  baseTokenProgram: Address;
4414
4875
  quoteTokenProgram: Address;
@@ -4430,12 +4891,11 @@ type LaunchMetadata = {
4430
4891
  metadataUri: string;
4431
4892
  };
4432
4893
  type CreateLaunchAccountSigners = {
4433
- baseMint: AddressOrSigner;
4894
+ baseMint: AddressOrSigner$1;
4434
4895
  quoteMint: Address;
4435
- baseVault: AddressOrSigner;
4436
- quoteVault: AddressOrSigner;
4896
+ baseVault: AddressOrSigner$1;
4897
+ quoteVault: AddressOrSigner$1;
4437
4898
  };
4438
- type CreateLaunchHookMode = 'cpmm' | 'cosigner' | false;
4439
4899
  type CreateLaunchCpmmMigrationConfig = {
4440
4900
  enabled?: true;
4441
4901
  kind?: 'cpmm';
@@ -4480,26 +4940,26 @@ type DeriveCreateLaunchAddressesInput = {
4480
4940
  config?: Address;
4481
4941
  namespace: Address;
4482
4942
  launchId: Uint8Array;
4483
- baseMint: AddressOrSigner;
4943
+ baseMint: AddressOrSigner$1;
4484
4944
  metadata?: LaunchMetadata | null;
4485
4945
  metadataAccount?: Address;
4486
4946
  };
4487
4947
  type CreateLaunchInput = {
4488
- deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram'>>;
4948
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram'>>;
4489
4949
  programId?: Address;
4490
4950
  config?: Address;
4491
4951
  namespace?: Address;
4492
4952
  launchId?: Uint8Array;
4493
4953
  addresses?: CreateLaunchAddresses;
4494
4954
  launchAccounts: CreateLaunchAccountSigners;
4495
- payer: AddressOrSigner;
4496
- authority?: AddressOrSigner;
4955
+ payer: AddressOrSigner$1;
4956
+ authority?: AddressOrSigner$1;
4497
4957
  supply: LaunchSupply;
4498
4958
  curve: XykCurveConfig;
4499
4959
  tokenPrograms?: Partial<LaunchTokenPrograms>;
4500
- hook?: CreateLaunchHookMode | null;
4501
- cosigner?: AddressOrSigner;
4960
+ cosigner?: AddressOrSigner$1;
4502
4961
  cosignGateExpiresAt?: bigint | number | null;
4962
+ dynamicFee?: DynamicFeeScheduleArgs | null;
4503
4963
  migration?: boolean | CreateLaunchMigrationConfig | null;
4504
4964
  metadata?: LaunchMetadata | null;
4505
4965
  feeBeneficiaries?: InitializeLaunchParams['feeBeneficiaries'];
@@ -4630,7 +5090,6 @@ declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, l
4630
5090
  declare const index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
4631
5091
  type index$2_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
4632
5092
  type index$2_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
4633
- declare const index$2_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
4634
5093
  declare const index$2_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
4635
5094
  declare const index$2_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
4636
5095
  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>;
@@ -4638,7 +5097,6 @@ type index$2_CreateLaunchAccountSigners = CreateLaunchAccountSigners;
4638
5097
  type index$2_CreateLaunchAddresses = CreateLaunchAddresses;
4639
5098
  type index$2_CreateLaunchCpmmMigrationConfig = CreateLaunchCpmmMigrationConfig;
4640
5099
  type index$2_CreateLaunchCustomMigrationConfig = CreateLaunchCustomMigrationConfig;
4641
- type index$2_CreateLaunchHookMode = CreateLaunchHookMode;
4642
5100
  type index$2_CreateLaunchInput = CreateLaunchInput;
4643
5101
  type index$2_CreateLaunchMigrationConfig = CreateLaunchMigrationConfig;
4644
5102
  type index$2_CreateLaunchResult = CreateLaunchResult;
@@ -4749,7 +5207,7 @@ declare const index$2_measureTransactionMessageSize: typeof measureTransactionMe
4749
5207
  declare const index$2_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
4750
5208
  declare const index$2_phaseLabel: typeof phaseLabel;
4751
5209
  declare namespace index$2 {
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 };
5210
+ 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_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_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 };
4753
5211
  }
4754
5212
 
4755
5213
  /**
@@ -6573,4 +7031,135 @@ declare namespace index {
6573
7031
  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 };
6574
7032
  }
6575
7033
 
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 };
7034
+ type SolanaRemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
7035
+ type AddressOrSigner = Address | TransactionSigner;
7036
+ type CurveSwapExactInInput = {
7037
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmHookProgram'>>;
7038
+ programId?: Address;
7039
+ launch: Address;
7040
+ launchAuthority: Address;
7041
+ baseVault: Address;
7042
+ quoteVault: Address;
7043
+ launchFeeState: Address;
7044
+ baseMint: Address;
7045
+ quoteMint: Address;
7046
+ payer: TransactionSigner;
7047
+ user?: AddressOrSigner;
7048
+ amountIn: bigint;
7049
+ minAmountOut: bigint;
7050
+ tradeDirection: 0 | 1;
7051
+ remainingAccounts?: ReadonlyArray<SolanaRemainingAccount>;
7052
+ baseTokenProgram?: Address;
7053
+ quoteTokenProgram?: Address;
7054
+ wrapSol?: boolean;
7055
+ };
7056
+ type CurveSwapExactInResult = {
7057
+ userBaseAccount: Address;
7058
+ userQuoteAccount: Address;
7059
+ userIn: Address;
7060
+ userOut: Address;
7061
+ setupInstructions: Instruction[];
7062
+ swapInstruction: Instruction;
7063
+ instructions: Instruction[];
7064
+ };
7065
+ type SwapExactInBaseInput = {
7066
+ deployment?: Pick<SolanaCpmmDeployment, 'cpmmProgram' | 'cpmmConfig'>;
7067
+ programId?: Address;
7068
+ config?: Address;
7069
+ payer: TransactionSigner;
7070
+ user?: AddressOrSigner;
7071
+ amountIn: bigint;
7072
+ tradeDirection: TradeDirection;
7073
+ minAmountOut?: bigint;
7074
+ slippageBps?: number | bigint;
7075
+ token0Program?: Address;
7076
+ token1Program?: Address;
7077
+ tokenProgram?: Address;
7078
+ oracle?: Address;
7079
+ remainingAccounts?: ReadonlyArray<SolanaRemainingAccount>;
7080
+ updateOracle?: boolean;
7081
+ };
7082
+ type SwapExactInInput = (SwapExactInBaseInput & {
7083
+ pool: PoolWithAddress;
7084
+ rpc?: never;
7085
+ mintA?: never;
7086
+ mintB?: never;
7087
+ }) | (SwapExactInBaseInput & {
7088
+ rpc: Rpc<GetAccountInfoApi>;
7089
+ mintA: Address;
7090
+ mintB: Address;
7091
+ pool?: never;
7092
+ });
7093
+ type SwapExactInResult = {
7094
+ pool: PoolWithAddress;
7095
+ quote: SwapQuote;
7096
+ minAmountOut: bigint;
7097
+ userToken0: Address;
7098
+ userToken1: Address;
7099
+ userIn: Address;
7100
+ userOut: Address;
7101
+ setupInstructions: Instruction[];
7102
+ swapInstruction: Instruction;
7103
+ instructions: Instruction[];
7104
+ };
7105
+ declare function curveSwapExactIn(input: CurveSwapExactInInput): Promise<CurveSwapExactInResult>;
7106
+ declare function swapExactIn(input: SwapExactInInput): Promise<SwapExactInResult>;
7107
+
7108
+ type TokenBalanceRpc = {
7109
+ getTokenAccountBalance(address: Address, config?: {
7110
+ commitment?: 'processed' | 'confirmed' | 'finalized';
7111
+ }): {
7112
+ send(): Promise<{
7113
+ value: {
7114
+ amount: string;
7115
+ };
7116
+ }>;
7117
+ };
7118
+ };
7119
+ type MigrateLaunchInput = {
7120
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerProgram' | 'initializerConfig' | 'cpmmMigratorProgram'>;
7121
+ programId?: Address;
7122
+ config?: Address;
7123
+ launch: Address;
7124
+ launchAuthority: Address;
7125
+ baseMint: Address;
7126
+ quoteMint: Address;
7127
+ baseVault: Address;
7128
+ quoteVault: Address;
7129
+ launchFeeState: Address;
7130
+ payer: TransactionSigner;
7131
+ cpmmMigration: CpmmMigrationRemainingAccounts;
7132
+ recipients?: ReadonlyArray<Pick<RecipientArgs, 'wallet'>>;
7133
+ computeUnitLimit?: number | false;
7134
+ baseTokenProgram?: Address;
7135
+ quoteTokenProgram?: Address;
7136
+ systemProgram?: Address;
7137
+ rent?: Address;
7138
+ };
7139
+ type MigrateLaunchResult = {
7140
+ recipientAtaInstructions: Instruction[];
7141
+ computeUnitLimitInstruction?: Instruction;
7142
+ migrateInstruction: Instruction;
7143
+ instructions: Instruction[];
7144
+ };
7145
+ type MigrationQuoteProgress = {
7146
+ quoteVaultAmount: bigint;
7147
+ pendingQuoteFees: bigint;
7148
+ migrationQuoteAmount: bigint;
7149
+ };
7150
+ declare function migrateLaunch(input: MigrateLaunchInput): MigrateLaunchResult;
7151
+ declare function getMigrationQuoteProgress({ rpc, quoteVault, pendingQuoteFees, commitment, }: {
7152
+ rpc: TokenBalanceRpc;
7153
+ quoteVault: Address;
7154
+ pendingQuoteFees: bigint;
7155
+ commitment?: 'processed' | 'confirmed' | 'finalized';
7156
+ }): Promise<MigrationQuoteProgress>;
7157
+ declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFees, minRaiseQuote, commitment, }: {
7158
+ rpc: TokenBalanceRpc;
7159
+ quoteVault: Address;
7160
+ pendingQuoteFees: bigint;
7161
+ minRaiseQuote: bigint;
7162
+ commitment?: 'processed' | 'confirmed' | 'finalized';
7163
+ }): Promise<MigrationQuoteProgress>;
7164
+
7165
+ export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };