@whetstone-research/doppler-sdk 1.0.34 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,8 @@ declare const SEED_PROTOCOL_FEE_OWNER = "protocol_fee_owner";
39
39
  declare const HF_BEFORE_SWAP$1: number;
40
40
  /** Hook: called after swap */
41
41
  declare const HF_AFTER_SWAP$1: number;
42
+ /** Hook flags supported by immutable spot pools */
43
+ declare const SPOT_HOOK_FLAG_MASK: number;
42
44
  /** Hook: called before add liquidity */
43
45
  declare const HF_BEFORE_ADD_LIQ: number;
44
46
  /** Hook: called after add liquidity */
@@ -218,6 +220,14 @@ declare function getPoolAddress(mint0: Address, mint1: Address, programId?: Addr
218
220
  * Note: Mints will be automatically sorted if not in canonical order.
219
221
  */
220
222
  declare function getSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, programId?: Address): Promise<ProgramDerivedAddress>;
223
+ /**
224
+ * Derive the hooked spot Pool PDA for a token pair, fee tier, and immutable
225
+ * swap-hook configuration.
226
+ * Seeds: ['spot_pool', token0_mint, token1_mint, swap_fee_bps_le, hook_program, hook_flags_le]
227
+ *
228
+ * Note: Mints will be automatically sorted if not in canonical order.
229
+ */
230
+ declare function getHookedSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, hookProgram: Address, hookFlags: number, programId?: Address): Promise<ProgramDerivedAddress>;
221
231
  /**
222
232
  * Derive the Pool authority PDA (vault owner)
223
233
  * Seeds: ['authority', pool]
@@ -1460,6 +1470,159 @@ type ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_P
1460
1470
  };
1461
1471
  declare function parseInitializeSpotPoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
1462
1472
 
1473
+ /**
1474
+ * This code was AUTOGENERATED using the Codama library.
1475
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1476
+ * to add features, then rerun Codama to update it.
1477
+ *
1478
+ * @see https://github.com/codama-idl/codama
1479
+ */
1480
+
1481
+ declare const INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1482
+ declare function getInitializeSpotPoolWithHookDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1483
+ type InitializeSpotPoolWithHookInstruction<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, TAccountHookProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1484
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1485
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1486
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
1487
+ TAccountProtocolFeeOwner extends string ? ReadonlyAccount<TAccountProtocolFeeOwner> : TAccountProtocolFeeOwner,
1488
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1489
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1490
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1491
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1492
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1493
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1494
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1495
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1496
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1497
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
1498
+ TAccountMigrationAuthority extends string ? ReadonlySignerAccount<TAccountMigrationAuthority> & AccountSignerMeta<TAccountMigrationAuthority> : TAccountMigrationAuthority,
1499
+ TAccountHookProgram extends string ? ReadonlyAccount<TAccountHookProgram> : TAccountHookProgram,
1500
+ ...TRemainingAccounts
1501
+ ]>;
1502
+ type InitializeSpotPoolWithHookInstructionData = {
1503
+ discriminator: ReadonlyUint8Array;
1504
+ mintA: Address;
1505
+ mintB: Address;
1506
+ swapFeeBps: number;
1507
+ hookProgram: Address;
1508
+ hookFlags: number;
1509
+ };
1510
+ type InitializeSpotPoolWithHookInstructionDataArgs = {
1511
+ mintA: Address;
1512
+ mintB: Address;
1513
+ swapFeeBps: number;
1514
+ hookProgram: Address;
1515
+ hookFlags: number;
1516
+ };
1517
+ declare function getInitializeSpotPoolWithHookInstructionDataEncoder(): FixedSizeEncoder<InitializeSpotPoolWithHookInstructionDataArgs>;
1518
+ declare function getInitializeSpotPoolWithHookInstructionDataDecoder(): FixedSizeDecoder<InitializeSpotPoolWithHookInstructionData>;
1519
+ declare function getInitializeSpotPoolWithHookInstructionDataCodec(): FixedSizeCodec<InitializeSpotPoolWithHookInstructionDataArgs, InitializeSpotPoolWithHookInstructionData>;
1520
+ type InitializeSpotPoolWithHookAsyncInput<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, TAccountHookProgram extends string = string> = {
1521
+ config: Address<TAccountConfig>;
1522
+ pool: Address<TAccountPool>;
1523
+ protocolFeePosition?: Address<TAccountProtocolFeePosition>;
1524
+ protocolFeeOwner?: Address<TAccountProtocolFeeOwner>;
1525
+ authority?: Address<TAccountAuthority>;
1526
+ vault0?: Address<TAccountVault0>;
1527
+ vault1?: Address<TAccountVault1>;
1528
+ token0Mint: Address<TAccountToken0Mint>;
1529
+ token1Mint: Address<TAccountToken1Mint>;
1530
+ payer: TransactionSigner<TAccountPayer>;
1531
+ token0Program: Address<TAccountToken0Program>;
1532
+ token1Program: Address<TAccountToken1Program>;
1533
+ systemProgram?: Address<TAccountSystemProgram>;
1534
+ rent?: Address<TAccountRent>;
1535
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1536
+ /**
1537
+ * `args.hook_program` and required to be executable, which rules out the
1538
+ * common way of bricking an immutable pool: a typo'd address that is not a
1539
+ * program at all. It does NOT prove the program implements the hook ABI —
1540
+ * an executable that never `set_return_data`s a 32-byte `HookResultV1`
1541
+ * still fails every before-swap CPI with `HookReturnDataMissing`. The
1542
+ * handler additionally rejects the pool's own token programs, which
1543
+ * `swap_exact_in`'s denylist would otherwise skip before they could be
1544
+ * bound as the hook program account.
1545
+ */
1546
+ hookProgram: Address<TAccountHookProgram>;
1547
+ mintA: InitializeSpotPoolWithHookInstructionDataArgs['mintA'];
1548
+ mintB: InitializeSpotPoolWithHookInstructionDataArgs['mintB'];
1549
+ swapFeeBps: InitializeSpotPoolWithHookInstructionDataArgs['swapFeeBps'];
1550
+ hookProgramArg: InitializeSpotPoolWithHookInstructionDataArgs['hookProgram'];
1551
+ hookFlags: InitializeSpotPoolWithHookInstructionDataArgs['hookFlags'];
1552
+ };
1553
+ declare function getInitializeSpotPoolWithHookInstructionAsync<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, TAccountHookProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolWithHookAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>, config?: {
1554
+ programAddress?: TProgramAddress;
1555
+ }): Promise<InitializeSpotPoolWithHookInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>>;
1556
+ type InitializeSpotPoolWithHookInput<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, TAccountHookProgram extends string = string> = {
1557
+ config: Address<TAccountConfig>;
1558
+ pool: Address<TAccountPool>;
1559
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1560
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
1561
+ authority: Address<TAccountAuthority>;
1562
+ vault0: Address<TAccountVault0>;
1563
+ vault1: Address<TAccountVault1>;
1564
+ token0Mint: Address<TAccountToken0Mint>;
1565
+ token1Mint: Address<TAccountToken1Mint>;
1566
+ payer: TransactionSigner<TAccountPayer>;
1567
+ token0Program: Address<TAccountToken0Program>;
1568
+ token1Program: Address<TAccountToken1Program>;
1569
+ systemProgram?: Address<TAccountSystemProgram>;
1570
+ rent?: Address<TAccountRent>;
1571
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1572
+ /**
1573
+ * `args.hook_program` and required to be executable, which rules out the
1574
+ * common way of bricking an immutable pool: a typo'd address that is not a
1575
+ * program at all. It does NOT prove the program implements the hook ABI —
1576
+ * an executable that never `set_return_data`s a 32-byte `HookResultV1`
1577
+ * still fails every before-swap CPI with `HookReturnDataMissing`. The
1578
+ * handler additionally rejects the pool's own token programs, which
1579
+ * `swap_exact_in`'s denylist would otherwise skip before they could be
1580
+ * bound as the hook program account.
1581
+ */
1582
+ hookProgram: Address<TAccountHookProgram>;
1583
+ mintA: InitializeSpotPoolWithHookInstructionDataArgs['mintA'];
1584
+ mintB: InitializeSpotPoolWithHookInstructionDataArgs['mintB'];
1585
+ swapFeeBps: InitializeSpotPoolWithHookInstructionDataArgs['swapFeeBps'];
1586
+ hookProgramArg: InitializeSpotPoolWithHookInstructionDataArgs['hookProgram'];
1587
+ hookFlags: InitializeSpotPoolWithHookInstructionDataArgs['hookFlags'];
1588
+ };
1589
+ declare function getInitializeSpotPoolWithHookInstruction<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, TAccountHookProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolWithHookInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>, config?: {
1590
+ programAddress?: TProgramAddress;
1591
+ }): InitializeSpotPoolWithHookInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>;
1592
+ type ParsedInitializeSpotPoolWithHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1593
+ programAddress: Address<TProgram>;
1594
+ accounts: {
1595
+ config: TAccountMetas[0];
1596
+ pool: TAccountMetas[1];
1597
+ protocolFeePosition: TAccountMetas[2];
1598
+ protocolFeeOwner: TAccountMetas[3];
1599
+ authority: TAccountMetas[4];
1600
+ vault0: TAccountMetas[5];
1601
+ vault1: TAccountMetas[6];
1602
+ token0Mint: TAccountMetas[7];
1603
+ token1Mint: TAccountMetas[8];
1604
+ payer: TAccountMetas[9];
1605
+ token0Program: TAccountMetas[10];
1606
+ token1Program: TAccountMetas[11];
1607
+ systemProgram: TAccountMetas[12];
1608
+ rent: TAccountMetas[13];
1609
+ migrationAuthority: TAccountMetas[14];
1610
+ /**
1611
+ * `args.hook_program` and required to be executable, which rules out the
1612
+ * common way of bricking an immutable pool: a typo'd address that is not a
1613
+ * program at all. It does NOT prove the program implements the hook ABI —
1614
+ * an executable that never `set_return_data`s a 32-byte `HookResultV1`
1615
+ * still fails every before-swap CPI with `HookReturnDataMissing`. The
1616
+ * handler additionally rejects the pool's own token programs, which
1617
+ * `swap_exact_in`'s denylist would otherwise skip before they could be
1618
+ * bound as the hook program account.
1619
+ */
1620
+ hookProgram: TAccountMetas[15];
1621
+ };
1622
+ data: InitializeSpotPoolWithHookInstructionData;
1623
+ };
1624
+ declare function parseInitializeSpotPoolWithHookInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeSpotPoolWithHookInstruction<TProgram, TAccountMetas>;
1625
+
1463
1626
  /**
1464
1627
  * This code was AUTOGENERATED using the Codama library.
1465
1628
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2537,6 +2700,7 @@ declare const index$5_HookInvokedEvent: typeof HookInvokedEvent;
2537
2700
  declare const index$5_HookUpdatedEvent: typeof HookUpdatedEvent;
2538
2701
  declare const index$5_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
2539
2702
  declare const index$5_INITIALIZE_SPOT_POOL_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_DISCRIMINATOR;
2703
+ declare const index$5_INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR;
2540
2704
  declare const index$5_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
2541
2705
  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>;
2542
2706
  declare const index$5_InitializePoolArgs: typeof InitializePoolArgs;
@@ -2550,6 +2714,11 @@ type index$5_InitializeSpotPoolInput<TAccountConfig extends string = string, TAc
2550
2714
  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
2715
  type index$5_InitializeSpotPoolInstructionData = InitializeSpotPoolInstructionData;
2552
2716
  type index$5_InitializeSpotPoolInstructionDataArgs = InitializeSpotPoolInstructionDataArgs;
2717
+ type index$5_InitializeSpotPoolWithHookAsyncInput<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, TAccountHookProgram extends string = string> = InitializeSpotPoolWithHookAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>;
2718
+ type index$5_InitializeSpotPoolWithHookInput<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, TAccountHookProgram extends string = string> = InitializeSpotPoolWithHookInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram>;
2719
+ type index$5_InitializeSpotPoolWithHookInstruction<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, TAccountHookProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeSpotPoolWithHookInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TAccountHookProgram, TRemainingAccounts>;
2720
+ type index$5_InitializeSpotPoolWithHookInstructionData = InitializeSpotPoolWithHookInstructionData;
2721
+ type index$5_InitializeSpotPoolWithHookInstructionDataArgs = InitializeSpotPoolWithHookInstructionDataArgs;
2553
2722
  declare const index$5_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
2554
2723
  declare const index$5_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
2555
2724
  declare const index$5_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
@@ -2580,6 +2749,7 @@ type index$5_ParsedCollectProtocolFeesInstruction<TProgram extends string = type
2580
2749
  type index$5_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
2581
2750
  type index$5_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
2582
2751
  type index$5_ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
2752
+ type index$5_ParsedInitializeSpotPoolWithHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeSpotPoolWithHookInstruction<TProgram, TAccountMetas>;
2583
2753
  type index$5_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
2584
2754
  type index$5_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
2585
2755
  type index$5_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
@@ -2635,6 +2805,7 @@ declare const index$5_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER;
2635
2805
  declare const index$5_SEED_SPOT_POOL: typeof SEED_SPOT_POOL;
2636
2806
  declare const index$5_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2637
2807
  declare const index$5_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
2808
+ declare const index$5_SPOT_HOOK_FLAG_MASK: typeof SPOT_HOOK_FLAG_MASK;
2638
2809
  declare const index$5_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
2639
2810
  declare const index$5_SetFeesArgs: typeof SetFeesArgs;
2640
2811
  type index$5_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
@@ -2767,6 +2938,7 @@ declare const index$5_getCreatePositionInstructionDataCodec: typeof getCreatePos
2767
2938
  declare const index$5_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder;
2768
2939
  declare const index$5_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder;
2769
2940
  declare const index$5_getErrorMessage: typeof getErrorMessage;
2941
+ declare const index$5_getHookedSpotPoolAddress: typeof getHookedSpotPoolAddress;
2770
2942
  declare const index$5_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync;
2771
2943
  declare const index$5_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes;
2772
2944
  declare const index$5_getInitializePoolInstruction: typeof getInitializePoolInstruction;
@@ -2780,6 +2952,12 @@ declare const index$5_getInitializeSpotPoolInstructionAsync: typeof getInitializ
2780
2952
  declare const index$5_getInitializeSpotPoolInstructionDataCodec: typeof getInitializeSpotPoolInstructionDataCodec;
2781
2953
  declare const index$5_getInitializeSpotPoolInstructionDataDecoder: typeof getInitializeSpotPoolInstructionDataDecoder;
2782
2954
  declare const index$5_getInitializeSpotPoolInstructionDataEncoder: typeof getInitializeSpotPoolInstructionDataEncoder;
2955
+ declare const index$5_getInitializeSpotPoolWithHookDiscriminatorBytes: typeof getInitializeSpotPoolWithHookDiscriminatorBytes;
2956
+ declare const index$5_getInitializeSpotPoolWithHookInstruction: typeof getInitializeSpotPoolWithHookInstruction;
2957
+ declare const index$5_getInitializeSpotPoolWithHookInstructionAsync: typeof getInitializeSpotPoolWithHookInstructionAsync;
2958
+ declare const index$5_getInitializeSpotPoolWithHookInstructionDataCodec: typeof getInitializeSpotPoolWithHookInstructionDataCodec;
2959
+ declare const index$5_getInitializeSpotPoolWithHookInstructionDataDecoder: typeof getInitializeSpotPoolWithHookInstructionDataDecoder;
2960
+ declare const index$5_getInitializeSpotPoolWithHookInstructionDataEncoder: typeof getInitializeSpotPoolWithHookInstructionDataEncoder;
2783
2961
  declare const index$5_getK: typeof getK;
2784
2962
  declare const index$5_getLiquidityAddresses: typeof getLiquidityAddresses;
2785
2963
  declare const index$5_getMetadataAddress: typeof getMetadataAddress;
@@ -2907,6 +3085,7 @@ declare const index$5_parseCreatePositionInstruction: typeof parseCreatePosition
2907
3085
  declare const index$5_parseErrorFromLogs: typeof parseErrorFromLogs;
2908
3086
  declare const index$5_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
2909
3087
  declare const index$5_parseInitializeSpotPoolInstruction: typeof parseInitializeSpotPoolInstruction;
3088
+ declare const index$5_parseInitializeSpotPoolWithHookInstruction: typeof parseInitializeSpotPoolWithHookInstruction;
2910
3089
  declare const index$5_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
2911
3090
  declare const index$5_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
2912
3091
  declare const index$5_parsePauseInstruction: typeof parsePauseInstruction;
@@ -2938,7 +3117,7 @@ declare const index$5_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2938
3117
  declare const index$5_validateMarketCapParameters: typeof validateMarketCapParameters;
2939
3118
  declare const index$5_warnAccountDecodeFailure: typeof warnAccountDecodeFailure;
2940
3119
  declare namespace index$5 {
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 };
3120
+ 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_INITIALIZE_SPOT_POOL_WITH_HOOK_DISCRIMINATOR as INITIALIZE_SPOT_POOL_WITH_HOOK_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, type index$5_InitializeSpotPoolWithHookAsyncInput as InitializeSpotPoolWithHookAsyncInput, type index$5_InitializeSpotPoolWithHookInput as InitializeSpotPoolWithHookInput, type index$5_InitializeSpotPoolWithHookInstruction as InitializeSpotPoolWithHookInstruction, type index$5_InitializeSpotPoolWithHookInstructionData as InitializeSpotPoolWithHookInstructionData, type index$5_InitializeSpotPoolWithHookInstructionDataArgs as InitializeSpotPoolWithHookInstructionDataArgs, 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_ParsedInitializeSpotPoolWithHookInstruction as ParsedInitializeSpotPoolWithHookInstruction, 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_SPOT_HOOK_FLAG_MASK as SPOT_HOOK_FLAG_MASK, 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, index$5_getHookedSpotPoolAddress as getHookedSpotPoolAddress, 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_getInitializeSpotPoolWithHookDiscriminatorBytes as getInitializeSpotPoolWithHookDiscriminatorBytes, index$5_getInitializeSpotPoolWithHookInstruction as getInitializeSpotPoolWithHookInstruction, index$5_getInitializeSpotPoolWithHookInstructionAsync as getInitializeSpotPoolWithHookInstructionAsync, index$5_getInitializeSpotPoolWithHookInstructionDataCodec as getInitializeSpotPoolWithHookInstructionDataCodec, index$5_getInitializeSpotPoolWithHookInstructionDataDecoder as getInitializeSpotPoolWithHookInstructionDataDecoder, index$5_getInitializeSpotPoolWithHookInstructionDataEncoder as getInitializeSpotPoolWithHookInstructionDataEncoder, 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_parseInitializeSpotPoolWithHookInstruction as parseInitializeSpotPoolWithHookInstruction, 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 };
2942
3121
  }
2943
3122
 
2944
3123
  /**
@@ -4408,6 +4587,13 @@ type CreateSpotPoolArgs = {
4408
4587
  amount0Max: bigint;
4409
4588
  amount1Max: bigint;
4410
4589
  minSharesOut: bigint;
4590
+ /**
4591
+ * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path).
4592
+ * Any other value creates a hooked spot pool whose address commits to the
4593
+ * hook program and flags.
4594
+ */
4595
+ hookProgram: Address;
4596
+ hookFlags: number;
4411
4597
  };
4412
4598
  type CreateSpotPoolArgsArgs = {
4413
4599
  swapFeeBps: number;
@@ -4415,6 +4601,13 @@ type CreateSpotPoolArgsArgs = {
4415
4601
  amount0Max: number | bigint;
4416
4602
  amount1Max: number | bigint;
4417
4603
  minSharesOut: number | bigint;
4604
+ /**
4605
+ * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path).
4606
+ * Any other value creates a hooked spot pool whose address commits to the
4607
+ * hook program and flags.
4608
+ */
4609
+ hookProgram: Address;
4610
+ hookFlags: number;
4418
4611
  };
4419
4612
  declare function getCreateSpotPoolArgsEncoder(): FixedSizeEncoder<CreateSpotPoolArgsArgs>;
4420
4613
  declare function getCreateSpotPoolArgsDecoder(): FixedSizeDecoder<CreateSpotPoolArgs>;
@@ -4532,6 +4725,8 @@ type SpotPoolCreated = {
4532
4725
  amount0Max: bigint;
4533
4726
  amount1Max: bigint;
4534
4727
  swapFeeBps: number;
4728
+ hookProgram: Address;
4729
+ hookFlags: number;
4535
4730
  };
4536
4731
  type SpotPoolCreatedArgs = {
4537
4732
  pool: Address;
@@ -4541,6 +4736,8 @@ type SpotPoolCreatedArgs = {
4541
4736
  amount0Max: number | bigint;
4542
4737
  amount1Max: number | bigint;
4543
4738
  swapFeeBps: number;
4739
+ hookProgram: Address;
4740
+ hookFlags: number;
4544
4741
  };
4545
4742
 
4546
4743
  /**
@@ -4637,7 +4834,7 @@ declare const CPMM_MIGRATOR_PROGRAM_ADDRESS: Address<"7WMUTNC41eMCo6eGH5Sy2xbgE3
4637
4834
  * @see https://github.com/codama-idl/codama
4638
4835
  */
4639
4836
 
4640
- 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<[
4837
+ 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', TAccountHookProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4641
4838
  TAccountCpmmConfig extends string ? ReadonlyAccount<TAccountCpmmConfig> : TAccountCpmmConfig,
4642
4839
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
4643
4840
  TAccountLiquidityOwner extends string ? ReadonlySignerAccount<TAccountLiquidityOwner> & AccountSignerMeta<TAccountLiquidityOwner> : TAccountLiquidityOwner,
@@ -4658,6 +4855,7 @@ type CreateSpotPoolInstruction$1<TProgram extends string = typeof CPMM_MIGRATOR_
4658
4855
  TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
4659
4856
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
4660
4857
  TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
4858
+ TAccountHookProgram extends string ? ReadonlyAccount<TAccountHookProgram> : TAccountHookProgram,
4661
4859
  ...TRemainingAccounts
4662
4860
  ]>;
4663
4861
  type CreateSpotPoolInstructionData = {
@@ -4667,6 +4865,13 @@ type CreateSpotPoolInstructionData = {
4667
4865
  amount0Max: bigint;
4668
4866
  amount1Max: bigint;
4669
4867
  minSharesOut: bigint;
4868
+ /**
4869
+ * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path).
4870
+ * Any other value creates a hooked spot pool whose address commits to the
4871
+ * hook program and flags.
4872
+ */
4873
+ hookProgram: Address;
4874
+ hookFlags: number;
4670
4875
  };
4671
4876
  type CreateSpotPoolInstructionDataArgs = {
4672
4877
  swapFeeBps: number;
@@ -4674,11 +4879,18 @@ type CreateSpotPoolInstructionDataArgs = {
4674
4879
  amount0Max: number | bigint;
4675
4880
  amount1Max: number | bigint;
4676
4881
  minSharesOut: number | bigint;
4882
+ /**
4883
+ * `Pubkey::default()` creates a hookless spot pool (unchanged legacy path).
4884
+ * Any other value creates a hooked spot pool whose address commits to the
4885
+ * hook program and flags.
4886
+ */
4887
+ hookProgram: Address;
4888
+ hookFlags: number;
4677
4889
  };
4678
4890
  declare function getCreateSpotPoolInstructionDataEncoder(): FixedSizeEncoder<CreateSpotPoolInstructionDataArgs>;
4679
4891
  declare function getCreateSpotPoolInstructionDataDecoder(): FixedSizeDecoder<CreateSpotPoolInstructionData>;
4680
4892
  declare function getCreateSpotPoolInstructionDataCodec(): FixedSizeCodec<CreateSpotPoolInstructionDataArgs, CreateSpotPoolInstructionData>;
4681
- 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> = {
4893
+ 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, TAccountHookProgram extends string = string> = {
4682
4894
  cpmmConfig: Address<TAccountCpmmConfig>;
4683
4895
  payer: TransactionSigner<TAccountPayer>;
4684
4896
  liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
@@ -4699,16 +4911,23 @@ type CreateSpotPoolAsyncInput<TAccountCpmmConfig extends string = string, TAccou
4699
4911
  token1Program: Address<TAccountToken1Program>;
4700
4912
  systemProgram?: Address<TAccountSystemProgram>;
4701
4913
  rent?: Address<TAccountRent>;
4914
+ /**
4915
+ * Omit it entirely for a hookless pool. When present it must equal
4916
+ * `args.hook_program`; CPMM additionally requires it to be executable.
4917
+ */
4918
+ hookProgram?: Address<TAccountHookProgram>;
4702
4919
  swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4703
4920
  positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4704
4921
  amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4705
4922
  amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4706
4923
  minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4924
+ hookProgramArg: CreateSpotPoolInstructionDataArgs['hookProgram'];
4925
+ hookFlags: CreateSpotPoolInstructionDataArgs['hookFlags'];
4707
4926
  };
4708
- 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?: {
4927
+ 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, TAccountHookProgram 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, TAccountHookProgram>, config?: {
4709
4928
  programAddress?: TProgramAddress;
4710
- }): Promise<CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>>;
4711
- 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> = {
4929
+ }): Promise<CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountHookProgram>>;
4930
+ 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, TAccountHookProgram extends string = string> = {
4712
4931
  cpmmConfig: Address<TAccountCpmmConfig>;
4713
4932
  payer: TransactionSigner<TAccountPayer>;
4714
4933
  liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
@@ -4729,15 +4948,22 @@ type CreateSpotPoolInput<TAccountCpmmConfig extends string = string, TAccountPay
4729
4948
  token1Program: Address<TAccountToken1Program>;
4730
4949
  systemProgram?: Address<TAccountSystemProgram>;
4731
4950
  rent?: Address<TAccountRent>;
4951
+ /**
4952
+ * Omit it entirely for a hookless pool. When present it must equal
4953
+ * `args.hook_program`; CPMM additionally requires it to be executable.
4954
+ */
4955
+ hookProgram?: Address<TAccountHookProgram>;
4732
4956
  swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4733
4957
  positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4734
4958
  amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4735
4959
  amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4736
4960
  minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4961
+ hookProgramArg: CreateSpotPoolInstructionDataArgs['hookProgram'];
4962
+ hookFlags: CreateSpotPoolInstructionDataArgs['hookFlags'];
4737
4963
  };
4738
- 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?: {
4964
+ 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, TAccountHookProgram 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, TAccountHookProgram>, config?: {
4739
4965
  programAddress?: TProgramAddress;
4740
- }): CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>;
4966
+ }): CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountHookProgram>;
4741
4967
 
4742
4968
  declare const CPMM_MIGRATOR_PROGRAM_ID: Address;
4743
4969
  declare const SEED_STATE = "state";
@@ -4769,6 +4995,10 @@ type DeriveSpotPoolAccountsInput = {
4769
4995
  token0Account?: Address;
4770
4996
  token1Account?: Address;
4771
4997
  positionId?: number | bigint;
4998
+ /** Optional allowlisted hook program. Set hookFlags when provided. */
4999
+ hookProgram?: Address;
5000
+ /** Immutable swap-phase flags: HF_BEFORE_SWAP, HF_AFTER_SWAP, or both. */
5001
+ hookFlags?: number;
4772
5002
  cpmmProgram?: Address;
4773
5003
  cpmmMigratorProgram?: Address;
4774
5004
  };
@@ -4801,7 +5031,7 @@ type CreateSpotPoolInstructionInput = Omit<DeriveSpotPoolAccountsInput, 'liquidi
4801
5031
  rent?: Address;
4802
5032
  };
4803
5033
  type CreateSpotPoolInstruction = Instruction & InstructionWithAccounts<(AccountMeta | AccountSignerMeta)[]> & InstructionWithData<ReadonlyUint8Array>;
4804
- declare function deriveSpotPoolAccounts({ tokenAMint, tokenBMint, swapFeeBps, liquidityOwner, tokenAProgram, tokenBProgram, tokenAAccount, tokenBAccount, token0Account, token1Account, positionId, cpmmProgram, cpmmMigratorProgram, }: DeriveSpotPoolAccountsInput): Promise<SpotPoolAccounts>;
5034
+ declare function deriveSpotPoolAccounts({ tokenAMint, tokenBMint, swapFeeBps, liquidityOwner, tokenAProgram, tokenBProgram, tokenAAccount, tokenBAccount, token0Account, token1Account, positionId, hookProgram, hookFlags, cpmmProgram, cpmmMigratorProgram, }: DeriveSpotPoolAccountsInput): Promise<SpotPoolAccounts>;
4805
5035
  declare function createSpotPoolInstruction(input: CreateSpotPoolInstructionInput): Promise<CreateSpotPoolInstruction>;
4806
5036
 
4807
5037
  interface CpmmMigrationRemainingAccountsInput {
@@ -4837,7 +5067,8 @@ declare function buildCpmmMigrationRemainingAccounts({ launch, baseMint, quoteMi
4837
5067
  declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRemainingAccountsInput): Promise<Uint8Array>;
4838
5068
 
4839
5069
  type RegisterLaunchPayloadArgs = Omit<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'> & Partial<Pick<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'>>;
4840
- declare function encodeCreateSpotPoolPayload(args: CreateSpotPoolArgsArgs): Uint8Array;
5070
+ type CreateSpotPoolPayloadArgs = Omit<CreateSpotPoolArgsArgs, 'hookProgram' | 'hookFlags'> & Partial<Pick<CreateSpotPoolArgsArgs, 'hookProgram' | 'hookFlags'>>;
5071
+ declare function encodeCreateSpotPoolPayload(args: CreateSpotPoolPayloadArgs): Uint8Array;
4841
5072
  declare function encodeRegisterLaunchPayload(args: RegisterLaunchPayloadArgs): Uint8Array;
4842
5073
  declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
4843
5074
 
@@ -4852,6 +5083,7 @@ type index$3_CreateSpotPoolArgs = CreateSpotPoolArgs;
4852
5083
  type index$3_CreateSpotPoolArgsArgs = CreateSpotPoolArgsArgs;
4853
5084
  type index$3_CreateSpotPoolInstruction = CreateSpotPoolInstruction;
4854
5085
  type index$3_CreateSpotPoolInstructionInput = CreateSpotPoolInstructionInput;
5086
+ type index$3_CreateSpotPoolPayloadArgs = CreateSpotPoolPayloadArgs;
4855
5087
  type index$3_DeriveSpotPoolAccountsInput = DeriveSpotPoolAccountsInput;
4856
5088
  declare const index$3_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
4857
5089
  type index$3_MigrateArgs = MigrateArgs;
@@ -4899,7 +5131,7 @@ declare const index$3_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCo
4899
5131
  declare const index$3_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
4900
5132
  declare const index$3_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
4901
5133
  declare namespace index$3 {
4902
- 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 };
5134
+ 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_CreateSpotPoolPayloadArgs as CreateSpotPoolPayloadArgs, 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 };
4903
5135
  }
4904
5136
 
4905
5137
  type AddressOrSigner$1 = InitializeLaunchAccounts['baseMint'];