@whetstone-research/doppler-sdk 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, Instruction, TransactionSigner, Rpc, GetAccountInfoApi, FixedSizeDecoder, FixedSizeEncoder, FixedSizeCodec, Encoder, Decoder, OptionOrNullable, Option, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, InstructionWithData, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, AccountMeta, InstructionWithAccounts, WritableAccount, ReadonlyAccount, ReadonlySignerAccount, AccountSignerMeta, WritableSignerAccount } from '@solana/kit';
1
+ import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, OptionOrNullable, Option, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending } from '@solana/kit';
2
2
  import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$1, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetSentinelArgs, h as SetFeesArgs, i as SetRouteArgs, T as TransferAdminArgs, j as OracleConsultArgs, Q as QuoteToNumeraireArgs, k as Observation, l as SwapDirection, m as SwapQuote, n as SwapQuoteExactOut, o as AddLiquidityQuote, p as RemoveLiquidityQuote, M as MarketCapValidationResult, q as MarketCapToCurveParamsInput, r as CurveParams, s as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, t as AddLiquidityEvent, u as AdminTransferredEvent, v as CollectFeesEvent, w as CollectProtocolFeesEvent, F as FeesUpdatedEvent, x as FetchOracleConfig, y as FetchPositionsConfig, z as OracleInitializedEvent, B as OracleUpdatedEvent, D as OracleWithAddress, E as PausedEvent, H as PoolInitializedEvent, J as PositionClosedEvent, K as PositionCreatedEvent, L as PositionValue, N as PositionWithAddress, U as RemoveLiquidityEvent, V as RouteUpdatedEvent, W as SentinelErrorEvent, X as SentinelInvokedEvent, Y as SentinelUpdatedEvent, Z as SkimmedEvent, _ as SwapEvent, $ as TwapResult, a0 as UnpausedEvent, a1 as comparePoolAndOraclePrices, a2 as consultTwap, a3 as fetchOracle, a4 as fetchOraclesBatch, a5 as fetchPoolPositions, a6 as fetchPosition, a7 as fetchPositionByParams, a8 as fetchPositionsBatch, a9 as fetchUserPositions, aa as filterActivePositions, ab as getOracleAddressFromPool, ac as getOracleAge, ad as getOracleBufferStats, ae as getOracleDeviation, af as getOracleForPool, ag as getOracleSpotPrices, ah as getPositionAddressFromParams, ai as getPositionValue, aj as isOracleStale, ak as sortPositionsByShares } from '../oracle-CU-nZnja.cjs';
3
3
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
4
4
 
@@ -44,6 +44,10 @@ declare const SF_AFTER_ADD_LIQ: number;
44
44
  declare const SF_BEFORE_REMOVE_LIQ: number;
45
45
  /** Sentinel hook: called after remove liquidity */
46
46
  declare const SF_AFTER_REMOVE_LIQ: number;
47
+ /** Require an oracle account when invoking sentinel hooks */
48
+ declare const SF_REQUIRE_ORACLE: number;
49
+ /** Preserve readonly signer metas when forwarding remaining accounts to sentinels */
50
+ declare const SF_FORWARD_READONLY_SIGNERS: number;
47
51
  /** Sentinel return value indicating "no change" to fee parameter */
48
52
  declare const SENTINEL_NO_CHANGE$1 = 65535;
49
53
  /**
@@ -116,11 +120,11 @@ declare function decodeOracleState$2(data: ReadonlyUint8Array): OracleState$2;
116
120
  declare function encodeInstructionData<T>(discriminator: Uint8Array, codec?: {
117
121
  encode: (args: T) => ReadonlyUint8Array | Uint8Array;
118
122
  }, args?: T): Uint8Array;
119
- type AddLiquidityArgsWithOracle$1 = AddLiquidityArgs & {
123
+ type AddLiquidityArgsWithOracle = AddLiquidityArgs & {
120
124
  updateOracle?: boolean;
121
125
  };
122
126
  declare const swapExactInArgsCodec: Codec<SwapExactInArgs>;
123
- declare const addLiquidityArgsCodec: Codec<AddLiquidityArgsWithOracle$1>;
127
+ declare const addLiquidityArgsCodec: Codec<AddLiquidityArgsWithOracle>;
124
128
  declare const removeLiquidityArgsCodec: Codec<RemoveLiquidityArgs>;
125
129
  declare const collectFeesArgsCodec: Codec<CollectFeesArgs>;
126
130
  declare const collectProtocolFeesArgsCodec: Codec<CollectProtocolFeesArgs>;
@@ -137,7 +141,7 @@ declare const quoteToNumeraireArgsCodec: Codec<QuoteToNumeraireArgs>;
137
141
  /** Encode SwapExactIn args */
138
142
  declare function encodeSwapExactInArgs(args: SwapExactInArgs): Uint8Array;
139
143
  /** Encode AddLiquidity args */
140
- declare function encodeAddLiquidityArgs(args: AddLiquidityArgsWithOracle$1): Uint8Array;
144
+ declare function encodeAddLiquidityArgs(args: AddLiquidityArgsWithOracle): Uint8Array;
141
145
  /** Encode RemoveLiquidity args */
142
146
  declare function encodeRemoveLiquidityArgs(args: RemoveLiquidityArgs): Uint8Array;
143
147
  /** Encode CollectFees args */
@@ -593,1084 +597,1589 @@ declare function isCpmmError(code: number): code is CpmmErrorCode;
593
597
  declare function getErrorMessage(code: number): string;
594
598
 
595
599
  /**
596
- * Accounts required for initialize_config instruction
597
- */
598
- interface InitializeConfigAccounts$1 {
599
- /** AmmConfig account to initialize (writable, PDA: ['config']) */
600
- config: Address;
601
- /** Payer for account creation (writable, signer) */
602
- payer: Address;
603
- /** System program */
604
- systemProgram?: Address;
605
- }
606
- /**
607
- * Create an initialize_config instruction
608
- *
609
- * Initializes the global AMM configuration singleton. This should only be called once
610
- * per deployment to set up the admin, fees, and allowlist.
611
- *
612
- * @param accounts - Required accounts for initialization
613
- * @param args - Instruction arguments (admin, numeraireMint, fees, allowlist)
614
- * @param programId - Program ID (defaults to CPMM program)
615
- * @returns Instruction to initialize the config
600
+ * This code was AUTOGENERATED using the Codama library.
601
+ * Please DO NOT EDIT THIS FILE, instead use visitors
602
+ * to add features, then rerun Codama to update it.
616
603
  *
617
- * @example
618
- * ```ts
619
- * const [configAddress] = await getConfigAddress();
620
- * const ix = createInitializeConfigInstruction(
621
- * {
622
- * config: configAddress,
623
- * payer: payerPublicKey,
624
- * },
625
- * {
626
- * admin: adminPublicKey,
627
- * numeraireMint: usdcMint,
628
- * maxSwapFeeBps: 100,
629
- * maxFeeSplitBps: 5000,
630
- * maxRouteHops: 3,
631
- * protocolFeeEnabled: true,
632
- * protocolFeeBps: 500,
633
- * sentinelAllowlist: [],
634
- * }
635
- * );
636
- * ```
604
+ * @see https://github.com/codama-idl/codama
637
605
  */
638
- declare function createInitializeConfigInstruction$1(accounts: InitializeConfigAccounts$1, args: InitializeConfigArgs$1, programId?: Address): Instruction;
639
606
 
640
- /**
641
- * Accounts required for initialize_pool instruction
642
- */
643
- interface InitializePoolAccounts {
644
- /** AmmConfig account (read-only) */
645
- config: Address;
646
- /** Pool account to initialize (writable, PDA: ['pool', token0_mint, token1_mint]) */
647
- pool: Address;
648
- /** Protocol position account (writable, PDA: ['protocol_position', pool]) */
649
- protocolPosition: Address;
650
- /** Pool authority PDA (read-only, PDA: ['authority', pool]) */
651
- authority: Address;
652
- /** Vault PDA for token0 (writable, PDA: ['vault0', pool]) */
653
- vault0: Address;
654
- /** Vault PDA for token1 (writable, PDA: ['vault1', pool]) */
655
- vault1: Address;
656
- /** Token0 mint (read-only, must be lexicographically smaller) */
657
- token0Mint: Address;
658
- /** Token1 mint (read-only, must be lexicographically larger) */
659
- token1Mint: Address;
660
- /** Payer for account creation (writable signer - pass TransactionSigner to include signer in instruction) */
661
- payer: Address | TransactionSigner;
662
- /** Token0 program; defaults to tokenProgram or classic SPL Token */
663
- token0Program?: Address;
664
- /** Token1 program; defaults to tokenProgram or classic SPL Token */
665
- token1Program?: Address;
666
- /** Deprecated shared token program fallback */
667
- tokenProgram?: Address;
668
- /** System program */
669
- systemProgram?: Address;
670
- /** Rent sysvar */
671
- rent: Address;
672
- /** Migrator authority PDA signer authorizing pool initialization */
673
- migrationAuthority: Address | TransactionSigner;
674
- }
675
- /**
676
- * Create an initialize_pool instruction
677
- *
678
- * Initializes a new trading pool for a token pair. The mints must be in canonical order
679
- * (token0 < token1 by bytes). Use sortMints() to ensure proper ordering.
680
- *
681
- * @param accounts - Required accounts for pool initialization
682
- * @param args - Instruction arguments (mintA, mintB, fees, liquidityMeasureSide, numeraire override)
683
- * @param programId - Program ID (defaults to CPMM program)
684
- * @returns Instruction to initialize the pool
685
- *
686
- * @example
687
- * ```ts
688
- * const addresses = await getPoolInitAddresses(mintA, mintB);
689
- * const ix = createInitializePoolInstruction(
690
- * {
691
- * config: addresses.config[0],
692
- * pool: addresses.pool[0],
693
- * protocolPosition: addresses.protocolPosition[0],
694
- * authority: addresses.authority[0],
695
- * vault0: addresses.vault0[0],
696
- * vault1: addresses.vault1[0],
697
- * token0Mint: addresses.token0,
698
- * token1Mint: addresses.token1,
699
- * payer: payerSigner,
700
- * rent: SYSVAR_RENT_PUBKEY,
701
- * migrationAuthority,
702
- * },
703
- * {
704
- * mintA: mintA,
705
- * mintB: mintB,
706
- * initialSwapFeeBps: 30,
707
- * initialFeeSplitBps: 5000,
708
- * liquidityMeasureSide: 0,
709
- * numeraireMintOverride: null,
710
- * }
711
- * );
712
- * ```
713
- */
714
- declare function createInitializePoolInstruction(accounts: InitializePoolAccounts, args: InitializePoolArgs, programId?: Address): Instruction;
607
+ declare const CPMM_PROGRAM_ADDRESS: Address<"9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ">;
715
608
 
716
609
  /**
717
- * Accounts required for initialize_oracle instruction
718
- */
719
- interface InitializeOracleAccounts {
720
- /** AmmConfig account (read-only) */
721
- config: Address;
722
- /** Pool account (read-only) */
723
- pool: Address;
724
- /** Oracle PDA to initialize (writable, will be created) */
725
- oracle: Address;
726
- /** Admin authority (signer, must match config.admin) */
727
- admin: Address;
728
- /** Payer for account creation (signer, writable) */
729
- payer: Address;
730
- /** System program */
731
- systemProgram?: Address;
732
- }
733
- /**
734
- * Create an initialize_oracle instruction
735
- *
736
- * Initializes a TWAP oracle for a pool. The oracle tracks price movements
737
- * and stores observations for time-weighted average price calculations.
738
- *
739
- * @param accounts - Required accounts for the instruction
740
- * @param args - Instruction arguments (maxPriceChangeRatioQ64, observationIntervalSec, numObservations)
741
- * @param programId - Program ID (defaults to CPMM program)
742
- * @returns Instruction to initialize the oracle
610
+ * This code was AUTOGENERATED using the Codama library.
611
+ * Please DO NOT EDIT THIS FILE, instead use visitors
612
+ * to add features, then rerun Codama to update it.
743
613
  *
744
- * @example
745
- * ```ts
746
- * const ix = createInitializeOracleInstruction(
747
- * {
748
- * config: configAddress,
749
- * pool: poolAddress,
750
- * oracle: oracleAddress,
751
- * admin: adminPublicKey,
752
- * payer: payerPublicKey,
753
- * },
754
- * {
755
- * maxPriceChangeRatioQ64: 1n << 64n, // 100% max change per slot
756
- * observationIntervalSec: 60, // 1 minute between observations
757
- * numObservations: 64, // Must be MAX_ORACLE_OBSERVATIONS
758
- * }
759
- * );
760
- * ```
614
+ * @see https://github.com/codama-idl/codama
761
615
  */
762
- declare function createInitializeOracleInstruction(accounts: InitializeOracleAccounts, args: InitializeOracleArgs$1, programId?: Address): Instruction;
616
+
617
+ declare const ADD_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
618
+ declare function getAddLiquidityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
619
+ type AddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
620
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
621
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
622
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
623
+ TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
624
+ TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
625
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
626
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
627
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
628
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
629
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
630
+ TAccountUser0 extends string ? WritableAccount<TAccountUser0> : TAccountUser0,
631
+ TAccountUser1 extends string ? WritableAccount<TAccountUser1> : TAccountUser1,
632
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
633
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
634
+ TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle,
635
+ ...TRemainingAccounts
636
+ ]>;
637
+ type AddLiquidityInstructionData = {
638
+ discriminator: ReadonlyUint8Array;
639
+ amount0Max: bigint;
640
+ amount1Max: bigint;
641
+ minSharesOut: bigint;
642
+ updateOracle: boolean;
643
+ };
644
+ type AddLiquidityInstructionDataArgs = {
645
+ amount0Max: number | bigint;
646
+ amount1Max: number | bigint;
647
+ minSharesOut: number | bigint;
648
+ updateOracle: boolean;
649
+ };
650
+ declare function getAddLiquidityInstructionDataEncoder(): FixedSizeEncoder<AddLiquidityInstructionDataArgs>;
651
+ declare function getAddLiquidityInstructionDataDecoder(): FixedSizeDecoder<AddLiquidityInstructionData>;
652
+ declare function getAddLiquidityInstructionDataCodec(): FixedSizeCodec<AddLiquidityInstructionDataArgs, AddLiquidityInstructionData>;
653
+ type AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
654
+ config: Address<TAccountConfig>;
655
+ pool: Address<TAccountPool>;
656
+ position: Address<TAccountPosition>;
657
+ protocolPosition: Address<TAccountProtocolPosition>;
658
+ owner: TransactionSigner<TAccountOwner>;
659
+ authority?: Address<TAccountAuthority>;
660
+ vault0: Address<TAccountVault0>;
661
+ vault1: Address<TAccountVault1>;
662
+ token0Mint: Address<TAccountToken0Mint>;
663
+ token1Mint: Address<TAccountToken1Mint>;
664
+ user0: Address<TAccountUser0>;
665
+ user1: Address<TAccountUser1>;
666
+ token0Program: Address<TAccountToken0Program>;
667
+ token1Program: Address<TAccountToken1Program>;
668
+ oracle?: Address<TAccountOracle>;
669
+ amount0Max: AddLiquidityInstructionDataArgs['amount0Max'];
670
+ amount1Max: AddLiquidityInstructionDataArgs['amount1Max'];
671
+ minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut'];
672
+ updateOracle: AddLiquidityInstructionDataArgs['updateOracle'];
673
+ };
674
+ declare function getAddLiquidityInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
675
+ programAddress?: TProgramAddress;
676
+ }): Promise<AddLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
677
+ type AddLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
678
+ config: Address<TAccountConfig>;
679
+ pool: Address<TAccountPool>;
680
+ position: Address<TAccountPosition>;
681
+ protocolPosition: Address<TAccountProtocolPosition>;
682
+ owner: TransactionSigner<TAccountOwner>;
683
+ authority: Address<TAccountAuthority>;
684
+ vault0: Address<TAccountVault0>;
685
+ vault1: Address<TAccountVault1>;
686
+ token0Mint: Address<TAccountToken0Mint>;
687
+ token1Mint: Address<TAccountToken1Mint>;
688
+ user0: Address<TAccountUser0>;
689
+ user1: Address<TAccountUser1>;
690
+ token0Program: Address<TAccountToken0Program>;
691
+ token1Program: Address<TAccountToken1Program>;
692
+ oracle?: Address<TAccountOracle>;
693
+ amount0Max: AddLiquidityInstructionDataArgs['amount0Max'];
694
+ amount1Max: AddLiquidityInstructionDataArgs['amount1Max'];
695
+ minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut'];
696
+ updateOracle: AddLiquidityInstructionDataArgs['updateOracle'];
697
+ };
698
+ declare function getAddLiquidityInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: AddLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
699
+ programAddress?: TProgramAddress;
700
+ }): AddLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
701
+ type ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
702
+ programAddress: Address<TProgram>;
703
+ accounts: {
704
+ config: TAccountMetas[0];
705
+ pool: TAccountMetas[1];
706
+ position: TAccountMetas[2];
707
+ protocolPosition: TAccountMetas[3];
708
+ owner: TAccountMetas[4];
709
+ authority: TAccountMetas[5];
710
+ vault0: TAccountMetas[6];
711
+ vault1: TAccountMetas[7];
712
+ token0Mint: TAccountMetas[8];
713
+ token1Mint: TAccountMetas[9];
714
+ user0: TAccountMetas[10];
715
+ user1: TAccountMetas[11];
716
+ token0Program: TAccountMetas[12];
717
+ token1Program: TAccountMetas[13];
718
+ oracle?: TAccountMetas[14] | undefined;
719
+ };
720
+ data: AddLiquidityInstructionData;
721
+ };
722
+ declare function parseAddLiquidityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddLiquidityInstruction<TProgram, TAccountMetas>;
763
723
 
764
724
  /**
765
- * Accounts required for set_fees instruction
766
- */
767
- interface SetFeesAccounts {
768
- /** AmmConfig account (read-only) */
769
- config: Address;
770
- /** Pool account (writable) */
771
- pool: Address;
772
- /** Admin authority (signer, must match config.admin) */
773
- admin: Address;
774
- }
775
- /**
776
- * Create a set_fees instruction
777
- *
778
- * Admin instruction to update the swap fee and fee split on a pool.
779
- * Fees will be clamped to the config's max values.
780
- *
781
- * @param accounts - Required accounts for setting fees
782
- * @param args - Instruction arguments (swapFeeBps, feeSplitBps)
783
- * @param programId - Program ID (defaults to CPMM program)
784
- * @returns Instruction to set fees
725
+ * This code was AUTOGENERATED using the Codama library.
726
+ * Please DO NOT EDIT THIS FILE, instead use visitors
727
+ * to add features, then rerun Codama to update it.
785
728
  *
786
- * @example
787
- * ```ts
788
- * const ix = createSetFeesInstruction(
789
- * {
790
- * config: configAddress,
791
- * pool: poolAddress,
792
- * admin: adminPublicKey,
793
- * },
794
- * {
795
- * swapFeeBps: 30, // 0.30% swap fee
796
- * feeSplitBps: 5000, // 50% of fees go to LPs (distributable)
797
- * }
798
- * );
799
- * ```
729
+ * @see https://github.com/codama-idl/codama
800
730
  */
801
- declare function createSetFeesInstruction(accounts: SetFeesAccounts, args: SetFeesArgs, programId?: Address): Instruction;
731
+
732
+ declare const CLOSE_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
733
+ declare function getClosePositionDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
734
+ type ClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentRecipient extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
735
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
736
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
737
+ TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
738
+ TAccountRentRecipient extends string ? WritableAccount<TAccountRentRecipient> : TAccountRentRecipient,
739
+ ...TRemainingAccounts
740
+ ]>;
741
+ type ClosePositionInstructionData = {
742
+ discriminator: ReadonlyUint8Array;
743
+ };
744
+ type ClosePositionInstructionDataArgs = {};
745
+ declare function getClosePositionInstructionDataEncoder(): FixedSizeEncoder<ClosePositionInstructionDataArgs>;
746
+ declare function getClosePositionInstructionDataDecoder(): FixedSizeDecoder<ClosePositionInstructionData>;
747
+ declare function getClosePositionInstructionDataCodec(): FixedSizeCodec<ClosePositionInstructionDataArgs, ClosePositionInstructionData>;
748
+ type ClosePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountRentRecipient extends string = string> = {
749
+ pool: Address<TAccountPool>;
750
+ position: Address<TAccountPosition>;
751
+ owner: TransactionSigner<TAccountOwner>;
752
+ rentRecipient: Address<TAccountRentRecipient>;
753
+ };
754
+ declare function getClosePositionInstruction<TAccountPool extends string, TAccountPosition extends string, TAccountOwner extends string, TAccountRentRecipient extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: ClosePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>, config?: {
755
+ programAddress?: TProgramAddress;
756
+ }): ClosePositionInstruction<TProgramAddress, TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>;
757
+ type ParsedClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
758
+ programAddress: Address<TProgram>;
759
+ accounts: {
760
+ pool: TAccountMetas[0];
761
+ position: TAccountMetas[1];
762
+ owner: TAccountMetas[2];
763
+ rentRecipient: TAccountMetas[3];
764
+ };
765
+ data: ClosePositionInstructionData;
766
+ };
767
+ declare function parseClosePositionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClosePositionInstruction<TProgram, TAccountMetas>;
802
768
 
803
769
  /**
804
- * Accounts required for set_sentinel instruction
805
- */
806
- interface SetSentinelAccounts {
807
- /** AmmConfig account (read-only) */
808
- config: Address;
809
- /** Pool account (writable) */
810
- pool: Address;
811
- /** Admin authority (signer, must match config.admin) */
812
- admin: Address;
813
- }
814
- /**
815
- * Create a set_sentinel instruction
816
- *
817
- * Admin instruction to configure a sentinel (hook) program on a pool.
818
- * The sentinel program must be in the config's allowlist (if the allowlist is non-empty).
819
- * Use Pubkey::default() to disable the sentinel.
820
- *
821
- * @param accounts - Required accounts for setting sentinel
822
- * @param args - Instruction arguments (sentinelProgram, sentinelFlags)
823
- * @param programId - Program ID (defaults to CPMM program)
824
- * @returns Instruction to set sentinel
825
- *
826
- * @example
827
- * ```ts
828
- * import { SF_BEFORE_SWAP, SF_AFTER_SWAP } from '@cpmm/sdk';
770
+ * This code was AUTOGENERATED using the Codama library.
771
+ * Please DO NOT EDIT THIS FILE, instead use visitors
772
+ * to add features, then rerun Codama to update it.
829
773
  *
830
- * const ix = createSetSentinelInstruction(
831
- * {
832
- * config: configAddress,
833
- * pool: poolAddress,
834
- * admin: adminPublicKey,
835
- * },
836
- * {
837
- * sentinelProgram: sentinelProgramId,
838
- * sentinelFlags: SF_BEFORE_SWAP | SF_AFTER_SWAP, // Enable both hooks
839
- * }
840
- * );
841
- * ```
774
+ * @see https://github.com/codama-idl/codama
842
775
  */
843
- declare function createSetSentinelInstruction(accounts: SetSentinelAccounts, args: SetSentinelArgs, programId?: Address): Instruction;
776
+
777
+ declare const COLLECT_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
778
+ declare function getCollectFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
779
+ type CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
780
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
781
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
782
+ TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
783
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
784
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
785
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
786
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
787
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
788
+ TAccountUser0 extends string ? WritableAccount<TAccountUser0> : TAccountUser0,
789
+ TAccountUser1 extends string ? WritableAccount<TAccountUser1> : TAccountUser1,
790
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
791
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
792
+ ...TRemainingAccounts
793
+ ]>;
794
+ type CollectFeesInstructionData = {
795
+ discriminator: ReadonlyUint8Array;
796
+ max0: bigint;
797
+ max1: bigint;
798
+ };
799
+ type CollectFeesInstructionDataArgs = {
800
+ max0: number | bigint;
801
+ max1: number | bigint;
802
+ };
803
+ declare function getCollectFeesInstructionDataEncoder(): FixedSizeEncoder<CollectFeesInstructionDataArgs>;
804
+ declare function getCollectFeesInstructionDataDecoder(): FixedSizeDecoder<CollectFeesInstructionData>;
805
+ declare function getCollectFeesInstructionDataCodec(): FixedSizeCodec<CollectFeesInstructionDataArgs, CollectFeesInstructionData>;
806
+ type CollectFeesAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
807
+ pool: Address<TAccountPool>;
808
+ position: Address<TAccountPosition>;
809
+ owner: TransactionSigner<TAccountOwner>;
810
+ authority?: Address<TAccountAuthority>;
811
+ vault0: Address<TAccountVault0>;
812
+ vault1: Address<TAccountVault1>;
813
+ token0Mint: Address<TAccountToken0Mint>;
814
+ token1Mint: Address<TAccountToken1Mint>;
815
+ user0: Address<TAccountUser0>;
816
+ user1: Address<TAccountUser1>;
817
+ token0Program: Address<TAccountToken0Program>;
818
+ token1Program: Address<TAccountToken1Program>;
819
+ max0: CollectFeesInstructionDataArgs['max0'];
820
+ max1: CollectFeesInstructionDataArgs['max1'];
821
+ };
822
+ declare function getCollectFeesInstructionAsync<TAccountPool extends string, TAccountPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CollectFeesAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>, config?: {
823
+ programAddress?: TProgramAddress;
824
+ }): Promise<CollectFeesInstruction<TProgramAddress, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>>;
825
+ type CollectFeesInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
826
+ pool: Address<TAccountPool>;
827
+ position: Address<TAccountPosition>;
828
+ owner: TransactionSigner<TAccountOwner>;
829
+ authority: Address<TAccountAuthority>;
830
+ vault0: Address<TAccountVault0>;
831
+ vault1: Address<TAccountVault1>;
832
+ token0Mint: Address<TAccountToken0Mint>;
833
+ token1Mint: Address<TAccountToken1Mint>;
834
+ user0: Address<TAccountUser0>;
835
+ user1: Address<TAccountUser1>;
836
+ token0Program: Address<TAccountToken0Program>;
837
+ token1Program: Address<TAccountToken1Program>;
838
+ max0: CollectFeesInstructionDataArgs['max0'];
839
+ max1: CollectFeesInstructionDataArgs['max1'];
840
+ };
841
+ declare function getCollectFeesInstruction<TAccountPool extends string, TAccountPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CollectFeesInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>, config?: {
842
+ programAddress?: TProgramAddress;
843
+ }): CollectFeesInstruction<TProgramAddress, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
844
+ type ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
845
+ programAddress: Address<TProgram>;
846
+ accounts: {
847
+ pool: TAccountMetas[0];
848
+ position: TAccountMetas[1];
849
+ owner: TAccountMetas[2];
850
+ authority: TAccountMetas[3];
851
+ vault0: TAccountMetas[4];
852
+ vault1: TAccountMetas[5];
853
+ token0Mint: TAccountMetas[6];
854
+ token1Mint: TAccountMetas[7];
855
+ user0: TAccountMetas[8];
856
+ user1: TAccountMetas[9];
857
+ token0Program: TAccountMetas[10];
858
+ token1Program: TAccountMetas[11];
859
+ };
860
+ data: CollectFeesInstructionData;
861
+ };
862
+ declare function parseCollectFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCollectFeesInstruction<TProgram, TAccountMetas>;
844
863
 
845
864
  /**
846
- * Accounts required for set_route instruction
847
- */
848
- interface SetRouteAccounts {
849
- /** AmmConfig account (read-only) */
850
- config: Address;
851
- /** Pool account (writable) */
852
- pool: Address;
853
- /** Next pool in routing chain (optional, required if setting a route) */
854
- nextPool?: Address;
855
- /** Admin authority (signer, must match config.admin) */
856
- admin: Address;
857
- }
858
- /**
859
- * Create a set_route instruction
860
- *
861
- * Admin instruction to configure routing for a pool. This allows multi-hop swaps
862
- * through a chain of pools. The bridge mint must exist in both the current pool
863
- * and the next pool.
864
- *
865
- * To clear routing, pass Pubkey::default() for both routeNextPool and routeBridgeMint.
866
- *
867
- * @param accounts - Required accounts for setting route
868
- * @param args - Instruction arguments (routeNextPool, routeBridgeMint)
869
- * @param programId - Program ID (defaults to CPMM program)
870
- * @returns Instruction to set route
871
- *
872
- * @example
873
- * ```ts
874
- * // Set up routing: Pool A -> Pool B via USDC
875
- * const ix = createSetRouteInstruction(
876
- * {
877
- * config: configAddress,
878
- * pool: poolAAddress,
879
- * nextPool: poolBAddress,
880
- * admin: adminPublicKey,
881
- * },
882
- * {
883
- * routeNextPool: poolBAddress,
884
- * routeBridgeMint: usdcMint, // Must be in both pools
885
- * }
886
- * );
865
+ * This code was AUTOGENERATED using the Codama library.
866
+ * Please DO NOT EDIT THIS FILE, instead use visitors
867
+ * to add features, then rerun Codama to update it.
887
868
  *
888
- * // Clear routing
889
- * const clearIx = createSetRouteInstruction(
890
- * {
891
- * config: configAddress,
892
- * pool: poolAddress,
893
- * admin: adminPublicKey,
894
- * },
895
- * {
896
- * routeNextPool: address('11111111111111111111111111111111'),
897
- * routeBridgeMint: address('11111111111111111111111111111111'),
898
- * }
899
- * );
900
- * ```
869
+ * @see https://github.com/codama-idl/codama
901
870
  */
902
- declare function createSetRouteInstruction(accounts: SetRouteAccounts, args: SetRouteArgs, programId?: Address): Instruction;
871
+
872
+ declare const COLLECT_PROTOCOL_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
873
+ declare function getCollectProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
874
+ type CollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
875
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
876
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
877
+ TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
878
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
879
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
880
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
881
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
882
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
883
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
884
+ TAccountRecipient0 extends string ? WritableAccount<TAccountRecipient0> : TAccountRecipient0,
885
+ TAccountRecipient1 extends string ? WritableAccount<TAccountRecipient1> : TAccountRecipient1,
886
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
887
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
888
+ ...TRemainingAccounts
889
+ ]>;
890
+ type CollectProtocolFeesInstructionData = {
891
+ discriminator: ReadonlyUint8Array;
892
+ max0: bigint;
893
+ max1: bigint;
894
+ };
895
+ type CollectProtocolFeesInstructionDataArgs = {
896
+ max0: number | bigint;
897
+ max1: number | bigint;
898
+ };
899
+ declare function getCollectProtocolFeesInstructionDataEncoder(): FixedSizeEncoder<CollectProtocolFeesInstructionDataArgs>;
900
+ declare function getCollectProtocolFeesInstructionDataDecoder(): FixedSizeDecoder<CollectProtocolFeesInstructionData>;
901
+ declare function getCollectProtocolFeesInstructionDataCodec(): FixedSizeCodec<CollectProtocolFeesInstructionDataArgs, CollectProtocolFeesInstructionData>;
902
+ type CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
903
+ config: Address<TAccountConfig>;
904
+ pool: Address<TAccountPool>;
905
+ protocolPosition: Address<TAccountProtocolPosition>;
906
+ admin: TransactionSigner<TAccountAdmin>;
907
+ authority?: Address<TAccountAuthority>;
908
+ vault0: Address<TAccountVault0>;
909
+ vault1: Address<TAccountVault1>;
910
+ token0Mint: Address<TAccountToken0Mint>;
911
+ token1Mint: Address<TAccountToken1Mint>;
912
+ recipient0: Address<TAccountRecipient0>;
913
+ recipient1: Address<TAccountRecipient1>;
914
+ token0Program: Address<TAccountToken0Program>;
915
+ token1Program: Address<TAccountToken1Program>;
916
+ max0: CollectProtocolFeesInstructionDataArgs['max0'];
917
+ max1: CollectProtocolFeesInstructionDataArgs['max1'];
918
+ };
919
+ declare function getCollectProtocolFeesInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolPosition extends string, TAccountAdmin extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountRecipient0 extends string, TAccountRecipient1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CollectProtocolFeesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>, config?: {
920
+ programAddress?: TProgramAddress;
921
+ }): Promise<CollectProtocolFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>>;
922
+ type CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
923
+ config: Address<TAccountConfig>;
924
+ pool: Address<TAccountPool>;
925
+ protocolPosition: Address<TAccountProtocolPosition>;
926
+ admin: TransactionSigner<TAccountAdmin>;
927
+ authority: Address<TAccountAuthority>;
928
+ vault0: Address<TAccountVault0>;
929
+ vault1: Address<TAccountVault1>;
930
+ token0Mint: Address<TAccountToken0Mint>;
931
+ token1Mint: Address<TAccountToken1Mint>;
932
+ recipient0: Address<TAccountRecipient0>;
933
+ recipient1: Address<TAccountRecipient1>;
934
+ token0Program: Address<TAccountToken0Program>;
935
+ token1Program: Address<TAccountToken1Program>;
936
+ max0: CollectProtocolFeesInstructionDataArgs['max0'];
937
+ max1: CollectProtocolFeesInstructionDataArgs['max1'];
938
+ };
939
+ declare function getCollectProtocolFeesInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolPosition extends string, TAccountAdmin extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountRecipient0 extends string, TAccountRecipient1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CollectProtocolFeesInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>, config?: {
940
+ programAddress?: TProgramAddress;
941
+ }): CollectProtocolFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
942
+ type ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
943
+ programAddress: Address<TProgram>;
944
+ accounts: {
945
+ config: TAccountMetas[0];
946
+ pool: TAccountMetas[1];
947
+ protocolPosition: TAccountMetas[2];
948
+ admin: TAccountMetas[3];
949
+ authority: TAccountMetas[4];
950
+ vault0: TAccountMetas[5];
951
+ vault1: TAccountMetas[6];
952
+ token0Mint: TAccountMetas[7];
953
+ token1Mint: TAccountMetas[8];
954
+ recipient0: TAccountMetas[9];
955
+ recipient1: TAccountMetas[10];
956
+ token0Program: TAccountMetas[11];
957
+ token1Program: TAccountMetas[12];
958
+ };
959
+ data: CollectProtocolFeesInstructionData;
960
+ };
961
+ declare function parseCollectProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
903
962
 
904
963
  /**
905
- * Accounts required for pause instruction
906
- */
907
- interface PauseAccounts {
908
- /** AmmConfig account (writable) */
909
- config: Address;
910
- /** Admin authority (signer, must match config.admin) */
911
- admin: Address;
912
- }
913
- /**
914
- * Create a pause instruction
915
- *
916
- * Admin instruction to pause all pool operations globally. When paused,
917
- * swaps, liquidity additions, and liquidity removals will fail.
918
- *
919
- * @param accounts - Required accounts for pausing
920
- * @param programId - Program ID (defaults to CPMM program)
921
- * @returns Instruction to pause the AMM
964
+ * This code was AUTOGENERATED using the Codama library.
965
+ * Please DO NOT EDIT THIS FILE, instead use visitors
966
+ * to add features, then rerun Codama to update it.
922
967
  *
923
- * @example
924
- * ```ts
925
- * const ix = createPauseInstruction({
926
- * config: configAddress,
927
- * admin: adminPublicKey,
928
- * });
929
- * ```
968
+ * @see https://github.com/codama-idl/codama
930
969
  */
931
- declare function createPauseInstruction(accounts: PauseAccounts, programId?: Address): Instruction;
970
+
971
+ declare const CREATE_POSITION_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
972
+ declare function getCreatePositionDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
973
+ type CreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
974
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
975
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
976
+ TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
977
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
978
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
979
+ ...TRemainingAccounts
980
+ ]>;
981
+ type CreatePositionInstructionData = {
982
+ discriminator: ReadonlyUint8Array;
983
+ positionId: bigint;
984
+ };
985
+ type CreatePositionInstructionDataArgs = {
986
+ positionId: number | bigint;
987
+ };
988
+ declare function getCreatePositionInstructionDataEncoder(): FixedSizeEncoder<CreatePositionInstructionDataArgs>;
989
+ declare function getCreatePositionInstructionDataDecoder(): FixedSizeDecoder<CreatePositionInstructionData>;
990
+ declare function getCreatePositionInstructionDataCodec(): FixedSizeCodec<CreatePositionInstructionDataArgs, CreatePositionInstructionData>;
991
+ type CreatePositionAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
992
+ pool: Address<TAccountPool>;
993
+ position?: Address<TAccountPosition>;
994
+ owner: TransactionSigner<TAccountOwner>;
995
+ payer: TransactionSigner<TAccountPayer>;
996
+ systemProgram?: Address<TAccountSystemProgram>;
997
+ positionId: CreatePositionInstructionDataArgs['positionId'];
998
+ };
999
+ declare function getCreatePositionInstructionAsync<TAccountPool extends string, TAccountPosition extends string, TAccountOwner extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CreatePositionAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>, config?: {
1000
+ programAddress?: TProgramAddress;
1001
+ }): Promise<CreatePositionInstruction<TProgramAddress, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>>;
1002
+ type CreatePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1003
+ pool: Address<TAccountPool>;
1004
+ position: Address<TAccountPosition>;
1005
+ owner: TransactionSigner<TAccountOwner>;
1006
+ payer: TransactionSigner<TAccountPayer>;
1007
+ systemProgram?: Address<TAccountSystemProgram>;
1008
+ positionId: CreatePositionInstructionDataArgs['positionId'];
1009
+ };
1010
+ declare function getCreatePositionInstruction<TAccountPool extends string, TAccountPosition extends string, TAccountOwner extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: CreatePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>, config?: {
1011
+ programAddress?: TProgramAddress;
1012
+ }): CreatePositionInstruction<TProgramAddress, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
1013
+ type ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1014
+ programAddress: Address<TProgram>;
1015
+ accounts: {
1016
+ pool: TAccountMetas[0];
1017
+ position: TAccountMetas[1];
1018
+ owner: TAccountMetas[2];
1019
+ payer: TAccountMetas[3];
1020
+ systemProgram: TAccountMetas[4];
1021
+ };
1022
+ data: CreatePositionInstructionData;
1023
+ };
1024
+ declare function parseCreatePositionInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
932
1025
 
933
1026
  /**
934
- * Accounts required for unpause instruction
935
- */
936
- interface UnpauseAccounts {
937
- /** AmmConfig account (writable) */
938
- config: Address;
939
- /** Admin authority (signer, must match config.admin) */
940
- admin: Address;
941
- }
942
- /**
943
- * Create an unpause instruction
944
- *
945
- * Admin instruction to unpause all pool operations. This re-enables
946
- * swaps, liquidity additions, and liquidity removals after a pause.
947
- *
948
- * @param accounts - Required accounts for unpausing
949
- * @param programId - Program ID (defaults to CPMM program)
950
- * @returns Instruction to unpause the AMM
1027
+ * This code was AUTOGENERATED using the Codama library.
1028
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1029
+ * to add features, then rerun Codama to update it.
951
1030
  *
952
- * @example
953
- * ```ts
954
- * const ix = createUnpauseInstruction({
955
- * config: configAddress,
956
- * admin: adminPublicKey,
957
- * });
958
- * ```
1031
+ * @see https://github.com/codama-idl/codama
959
1032
  */
960
- declare function createUnpauseInstruction(accounts: UnpauseAccounts, programId?: Address): Instruction;
961
1033
 
962
- /**
963
- * Accounts required for transfer_admin instruction
964
- */
965
- interface TransferAdminAccounts {
966
- /** AmmConfig account (writable) */
967
- config: Address;
968
- /** Current admin authority (signer, must match config.admin) */
1034
+ declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1035
+ declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1036
+ type InitializeConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1037
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
1038
+ TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
1039
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1040
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1041
+ ...TRemainingAccounts
1042
+ ]>;
1043
+ type InitializeConfigInstructionData = {
1044
+ discriminator: ReadonlyUint8Array;
969
1045
  admin: Address;
970
- }
1046
+ numeraireMint: Address;
1047
+ maxSwapFeeBps: number;
1048
+ maxFeeSplitBps: number;
1049
+ maxRouteHops: number;
1050
+ protocolFeeEnabled: boolean;
1051
+ protocolFeeBps: number;
1052
+ sentinelAllowlist: Array<Address>;
1053
+ };
1054
+ type InitializeConfigInstructionDataArgs = {
1055
+ admin: Address;
1056
+ numeraireMint: Address;
1057
+ maxSwapFeeBps: number;
1058
+ maxFeeSplitBps: number;
1059
+ maxRouteHops: number;
1060
+ protocolFeeEnabled: boolean;
1061
+ protocolFeeBps: number;
1062
+ sentinelAllowlist: Array<Address>;
1063
+ };
1064
+ declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
1065
+ declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
1066
+ declare function getInitializeConfigInstructionDataCodec(): Codec<InitializeConfigInstructionDataArgs, InitializeConfigInstructionData>;
1067
+ type InitializeConfigAsyncInput<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1068
+ config?: Address<TAccountConfig>;
1069
+ programData: Address<TAccountProgramData>;
1070
+ payer: TransactionSigner<TAccountPayer>;
1071
+ systemProgram?: Address<TAccountSystemProgram>;
1072
+ admin: InitializeConfigInstructionDataArgs['admin'];
1073
+ numeraireMint: InitializeConfigInstructionDataArgs['numeraireMint'];
1074
+ maxSwapFeeBps: InitializeConfigInstructionDataArgs['maxSwapFeeBps'];
1075
+ maxFeeSplitBps: InitializeConfigInstructionDataArgs['maxFeeSplitBps'];
1076
+ maxRouteHops: InitializeConfigInstructionDataArgs['maxRouteHops'];
1077
+ protocolFeeEnabled: InitializeConfigInstructionDataArgs['protocolFeeEnabled'];
1078
+ protocolFeeBps: InitializeConfigInstructionDataArgs['protocolFeeBps'];
1079
+ sentinelAllowlist: InitializeConfigInstructionDataArgs['sentinelAllowlist'];
1080
+ };
1081
+ declare function getInitializeConfigInstructionAsync<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1082
+ programAddress?: TProgramAddress;
1083
+ }): Promise<InitializeConfigInstruction<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>>;
1084
+ type InitializeConfigInput<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1085
+ config: Address<TAccountConfig>;
1086
+ programData: Address<TAccountProgramData>;
1087
+ payer: TransactionSigner<TAccountPayer>;
1088
+ systemProgram?: Address<TAccountSystemProgram>;
1089
+ admin: InitializeConfigInstructionDataArgs['admin'];
1090
+ numeraireMint: InitializeConfigInstructionDataArgs['numeraireMint'];
1091
+ maxSwapFeeBps: InitializeConfigInstructionDataArgs['maxSwapFeeBps'];
1092
+ maxFeeSplitBps: InitializeConfigInstructionDataArgs['maxFeeSplitBps'];
1093
+ maxRouteHops: InitializeConfigInstructionDataArgs['maxRouteHops'];
1094
+ protocolFeeEnabled: InitializeConfigInstructionDataArgs['protocolFeeEnabled'];
1095
+ protocolFeeBps: InitializeConfigInstructionDataArgs['protocolFeeBps'];
1096
+ sentinelAllowlist: InitializeConfigInstructionDataArgs['sentinelAllowlist'];
1097
+ };
1098
+ declare function getInitializeConfigInstruction<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1099
+ programAddress?: TProgramAddress;
1100
+ }): InitializeConfigInstruction<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
1101
+ type ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1102
+ programAddress: Address<TProgram>;
1103
+ accounts: {
1104
+ config: TAccountMetas[0];
1105
+ programData: TAccountMetas[1];
1106
+ payer: TAccountMetas[2];
1107
+ systemProgram: TAccountMetas[3];
1108
+ };
1109
+ data: InitializeConfigInstructionData;
1110
+ };
1111
+ declare function parseInitializeConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
1112
+
971
1113
  /**
972
- * Create a transfer_admin instruction
973
- *
974
- * Admin instruction to transfer administrative authority to a new address.
975
- * The new admin will have full control over the AMM configuration and all pools.
976
- *
977
- * CAUTION: This action is irreversible. Ensure the new admin address is correct
978
- * and that you have access to it before executing.
979
- *
980
- * @param accounts - Required accounts for transferring admin
981
- * @param args - Instruction arguments (newAdmin)
982
- * @param programId - Program ID (defaults to CPMM program)
983
- * @returns Instruction to transfer admin
1114
+ * This code was AUTOGENERATED using the Codama library.
1115
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1116
+ * to add features, then rerun Codama to update it.
984
1117
  *
985
- * @example
986
- * ```ts
987
- * const ix = createTransferAdminInstruction(
988
- * {
989
- * config: configAddress,
990
- * admin: currentAdminPublicKey,
991
- * },
992
- * {
993
- * newAdmin: newAdminPublicKey,
994
- * }
995
- * );
996
- * ```
1118
+ * @see https://github.com/codama-idl/codama
997
1119
  */
998
- declare function createTransferAdminInstruction(accounts: TransferAdminAccounts, args: TransferAdminArgs, programId?: Address): Instruction;
1120
+
1121
+ declare const INITIALIZE_ORACLE_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
1122
+ declare function getInitializeOracleDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
1123
+ type InitializeOracleInstruction$1<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1124
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1125
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
1126
+ TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle,
1127
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1128
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1129
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1130
+ ...TRemainingAccounts
1131
+ ]>;
1132
+ type InitializeOracleInstructionData$1 = {
1133
+ discriminator: ReadonlyUint8Array;
1134
+ maxPriceChangeRatioQ64: bigint;
1135
+ observationIntervalSec: number;
1136
+ };
1137
+ type InitializeOracleInstructionDataArgs$1 = {
1138
+ maxPriceChangeRatioQ64: number | bigint;
1139
+ observationIntervalSec: number;
1140
+ };
1141
+ declare function getInitializeOracleInstructionDataEncoder$1(): FixedSizeEncoder<InitializeOracleInstructionDataArgs$1>;
1142
+ declare function getInitializeOracleInstructionDataDecoder$1(): FixedSizeDecoder<InitializeOracleInstructionData$1>;
1143
+ declare function getInitializeOracleInstructionDataCodec$1(): FixedSizeCodec<InitializeOracleInstructionDataArgs$1, InitializeOracleInstructionData$1>;
1144
+ type 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> = {
1145
+ config: Address<TAccountConfig>;
1146
+ pool: Address<TAccountPool>;
1147
+ oracle?: Address<TAccountOracle>;
1148
+ admin: TransactionSigner<TAccountAdmin>;
1149
+ payer: TransactionSigner<TAccountPayer>;
1150
+ systemProgram?: Address<TAccountSystemProgram>;
1151
+ maxPriceChangeRatioQ64: InitializeOracleInstructionDataArgs$1['maxPriceChangeRatioQ64'];
1152
+ observationIntervalSec: InitializeOracleInstructionDataArgs$1['observationIntervalSec'];
1153
+ };
1154
+ declare function getInitializeOracleInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountOracle extends string, TAccountAdmin extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeOracleAsyncInput<TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>, config?: {
1155
+ programAddress?: TProgramAddress;
1156
+ }): Promise<InitializeOracleInstruction$1<TProgramAddress, TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>>;
1157
+ type InitializeOracleInput$1<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountOracle extends string = string, TAccountAdmin extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1158
+ config: Address<TAccountConfig>;
1159
+ pool: Address<TAccountPool>;
1160
+ oracle: Address<TAccountOracle>;
1161
+ admin: TransactionSigner<TAccountAdmin>;
1162
+ payer: TransactionSigner<TAccountPayer>;
1163
+ systemProgram?: Address<TAccountSystemProgram>;
1164
+ maxPriceChangeRatioQ64: InitializeOracleInstructionDataArgs$1['maxPriceChangeRatioQ64'];
1165
+ observationIntervalSec: InitializeOracleInstructionDataArgs$1['observationIntervalSec'];
1166
+ };
1167
+ declare function getInitializeOracleInstruction$1<TAccountConfig extends string, TAccountPool extends string, TAccountOracle extends string, TAccountAdmin extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeOracleInput$1<TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>, config?: {
1168
+ programAddress?: TProgramAddress;
1169
+ }): InitializeOracleInstruction$1<TProgramAddress, TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>;
1170
+ type ParsedInitializeOracleInstruction$1<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1171
+ programAddress: Address<TProgram>;
1172
+ accounts: {
1173
+ config: TAccountMetas[0];
1174
+ pool: TAccountMetas[1];
1175
+ oracle: TAccountMetas[2];
1176
+ admin: TAccountMetas[3];
1177
+ payer: TAccountMetas[4];
1178
+ systemProgram: TAccountMetas[5];
1179
+ };
1180
+ data: InitializeOracleInstructionData$1;
1181
+ };
1182
+ declare function parseInitializeOracleInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeOracleInstruction$1<TProgram, TAccountMetas>;
999
1183
 
1000
1184
  /**
1001
- * Accounts required for skim instruction
1002
- */
1003
- interface SkimAccounts {
1004
- /** AmmConfig account (read-only) */
1005
- config: Address;
1006
- /** Pool account (read-only) */
1007
- pool: Address;
1008
- /** Admin authority (signer, must match config.admin) */
1009
- admin: Address;
1010
- /** Pool authority PDA (read-only, PDA: ['authority', pool]) */
1011
- authority: Address;
1012
- /** Token0 vault (writable) */
1013
- vault0: Address;
1014
- /** Token1 vault (writable) */
1015
- vault1: Address;
1016
- /** Token0 mint (read-only) */
1017
- token0Mint: Address;
1018
- /** Token1 mint (read-only) */
1019
- token1Mint: Address;
1020
- /** Admin's token0 ATA to receive excess (writable) */
1021
- adminAta0: Address;
1022
- /** Admin's token1 ATA to receive excess (writable) */
1023
- adminAta1: Address;
1024
- /** SPL Token program */
1025
- tokenProgram?: Address;
1026
- }
1027
- /**
1028
- * Create a skim instruction
1029
- *
1030
- * Admin instruction to withdraw excess tokens from pool vaults. This recovers any
1031
- * tokens that were accidentally sent directly to the vault accounts (outside of
1032
- * normal pool operations).
1033
- *
1034
- * Only withdraws tokens in excess of (reserve + unclaimed_fees). Normal pool
1035
- * reserves and LP fees are not affected.
1185
+ * This code was AUTOGENERATED using the Codama library.
1186
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1187
+ * to add features, then rerun Codama to update it.
1036
1188
  *
1037
- * @param accounts - Required accounts for skimming
1038
- * @param programId - Program ID (defaults to CPMM program)
1039
- * @returns Instruction to skim excess tokens
1189
+ * @see https://github.com/codama-idl/codama
1190
+ */
1191
+
1192
+ declare const INITIALIZE_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1193
+ declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1194
+ type InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1195
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1196
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1197
+ TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
1198
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1199
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1200
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1201
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1202
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1203
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1204
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1205
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1206
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1207
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
1208
+ TAccountMigrationAuthority extends string ? ReadonlySignerAccount<TAccountMigrationAuthority> & AccountSignerMeta<TAccountMigrationAuthority> : TAccountMigrationAuthority,
1209
+ ...TRemainingAccounts
1210
+ ]>;
1211
+ type InitializePoolInstructionData = {
1212
+ discriminator: ReadonlyUint8Array;
1213
+ mintA: Address;
1214
+ mintB: Address;
1215
+ initialSwapFeeBps: number;
1216
+ initialFeeSplitBps: number;
1217
+ liquidityMeasureSide: number;
1218
+ numeraireMintOverride: Option<Address>;
1219
+ };
1220
+ type InitializePoolInstructionDataArgs = {
1221
+ mintA: Address;
1222
+ mintB: Address;
1223
+ initialSwapFeeBps: number;
1224
+ initialFeeSplitBps: number;
1225
+ liquidityMeasureSide: number;
1226
+ numeraireMintOverride: OptionOrNullable<Address>;
1227
+ };
1228
+ declare function getInitializePoolInstructionDataEncoder(): Encoder<InitializePoolInstructionDataArgs>;
1229
+ declare function getInitializePoolInstructionDataDecoder(): Decoder<InitializePoolInstructionData>;
1230
+ declare function getInitializePoolInstructionDataCodec(): Codec<InitializePoolInstructionDataArgs, InitializePoolInstructionData>;
1231
+ type InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition 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> = {
1232
+ config: Address<TAccountConfig>;
1233
+ pool?: Address<TAccountPool>;
1234
+ protocolPosition?: Address<TAccountProtocolPosition>;
1235
+ authority?: Address<TAccountAuthority>;
1236
+ vault0?: Address<TAccountVault0>;
1237
+ vault1?: Address<TAccountVault1>;
1238
+ token0Mint: Address<TAccountToken0Mint>;
1239
+ token1Mint: Address<TAccountToken1Mint>;
1240
+ payer: TransactionSigner<TAccountPayer>;
1241
+ token0Program: Address<TAccountToken0Program>;
1242
+ token1Program: Address<TAccountToken1Program>;
1243
+ systemProgram?: Address<TAccountSystemProgram>;
1244
+ rent?: Address<TAccountRent>;
1245
+ /**
1246
+ * Capability PDA owned by the trusted migrator program. Anchor enforces
1247
+ * `is_signer`; the handler verifies the pubkey matches the expected
1248
+ * derivation. Together these prove the CPI originated from the migrator.
1249
+ */
1250
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1251
+ mintA: InitializePoolInstructionDataArgs['mintA'];
1252
+ mintB: InitializePoolInstructionDataArgs['mintB'];
1253
+ initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps'];
1254
+ initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1255
+ liquidityMeasureSide: InitializePoolInstructionDataArgs['liquidityMeasureSide'];
1256
+ numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1257
+ };
1258
+ declare function getInitializePoolInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolPosition extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1259
+ programAddress?: TProgramAddress;
1260
+ }): Promise<InitializePoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>>;
1261
+ type InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition 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> = {
1262
+ config: Address<TAccountConfig>;
1263
+ pool: Address<TAccountPool>;
1264
+ protocolPosition: Address<TAccountProtocolPosition>;
1265
+ authority: Address<TAccountAuthority>;
1266
+ vault0: Address<TAccountVault0>;
1267
+ vault1: Address<TAccountVault1>;
1268
+ token0Mint: Address<TAccountToken0Mint>;
1269
+ token1Mint: Address<TAccountToken1Mint>;
1270
+ payer: TransactionSigner<TAccountPayer>;
1271
+ token0Program: Address<TAccountToken0Program>;
1272
+ token1Program: Address<TAccountToken1Program>;
1273
+ systemProgram?: Address<TAccountSystemProgram>;
1274
+ rent?: Address<TAccountRent>;
1275
+ /**
1276
+ * Capability PDA owned by the trusted migrator program. Anchor enforces
1277
+ * `is_signer`; the handler verifies the pubkey matches the expected
1278
+ * derivation. Together these prove the CPI originated from the migrator.
1279
+ */
1280
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1281
+ mintA: InitializePoolInstructionDataArgs['mintA'];
1282
+ mintB: InitializePoolInstructionDataArgs['mintB'];
1283
+ initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps'];
1284
+ initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1285
+ liquidityMeasureSide: InitializePoolInstructionDataArgs['liquidityMeasureSide'];
1286
+ numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1287
+ };
1288
+ declare function getInitializePoolInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolPosition extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1289
+ programAddress?: TProgramAddress;
1290
+ }): InitializePoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
1291
+ type ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1292
+ programAddress: Address<TProgram>;
1293
+ accounts: {
1294
+ config: TAccountMetas[0];
1295
+ pool: TAccountMetas[1];
1296
+ protocolPosition: TAccountMetas[2];
1297
+ authority: TAccountMetas[3];
1298
+ vault0: TAccountMetas[4];
1299
+ vault1: TAccountMetas[5];
1300
+ token0Mint: TAccountMetas[6];
1301
+ token1Mint: TAccountMetas[7];
1302
+ payer: TAccountMetas[8];
1303
+ token0Program: TAccountMetas[9];
1304
+ token1Program: TAccountMetas[10];
1305
+ systemProgram: TAccountMetas[11];
1306
+ rent: TAccountMetas[12];
1307
+ /**
1308
+ * Capability PDA owned by the trusted migrator program. Anchor enforces
1309
+ * `is_signer`; the handler verifies the pubkey matches the expected
1310
+ * derivation. Together these prove the CPI originated from the migrator.
1311
+ */
1312
+ migrationAuthority: TAccountMetas[13];
1313
+ };
1314
+ data: InitializePoolInstructionData;
1315
+ };
1316
+ declare function parseInitializePoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
1317
+
1318
+ /**
1319
+ * This code was AUTOGENERATED using the Codama library.
1320
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1321
+ * to add features, then rerun Codama to update it.
1040
1322
  *
1041
- * @example
1042
- * ```ts
1043
- * const ix = createSkimInstruction({
1044
- * config: configAddress,
1045
- * pool: poolAddress,
1046
- * admin: adminPublicKey,
1047
- * authority: authorityAddress,
1048
- * vault0: vault0Address,
1049
- * vault1: vault1Address,
1050
- * token0Mint: mint0,
1051
- * token1Mint: mint1,
1052
- * adminAta0: adminToken0Account,
1053
- * adminAta1: adminToken1Account,
1054
- * });
1055
- * ```
1323
+ * @see https://github.com/codama-idl/codama
1056
1324
  */
1057
- declare function createSkimInstruction(accounts: SkimAccounts, programId?: Address): Instruction;
1325
+
1326
+ declare const ORACLE_CONSULT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1327
+ declare function getOracleConsultDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1328
+ type OracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1329
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
1330
+ TAccountOracle extends string ? ReadonlyAccount<TAccountOracle> : TAccountOracle,
1331
+ ...TRemainingAccounts
1332
+ ]>;
1333
+ type OracleConsultInstructionData = {
1334
+ discriminator: ReadonlyUint8Array;
1335
+ windowSeconds: number;
1336
+ };
1337
+ type OracleConsultInstructionDataArgs = {
1338
+ windowSeconds: number;
1339
+ };
1340
+ declare function getOracleConsultInstructionDataEncoder(): FixedSizeEncoder<OracleConsultInstructionDataArgs>;
1341
+ declare function getOracleConsultInstructionDataDecoder(): FixedSizeDecoder<OracleConsultInstructionData>;
1342
+ declare function getOracleConsultInstructionDataCodec(): FixedSizeCodec<OracleConsultInstructionDataArgs, OracleConsultInstructionData>;
1343
+ type OracleConsultAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = {
1344
+ pool: Address<TAccountPool>;
1345
+ oracle?: Address<TAccountOracle>;
1346
+ windowSeconds: OracleConsultInstructionDataArgs['windowSeconds'];
1347
+ };
1348
+ declare function getOracleConsultInstructionAsync<TAccountPool extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: OracleConsultAsyncInput<TAccountPool, TAccountOracle>, config?: {
1349
+ programAddress?: TProgramAddress;
1350
+ }): Promise<OracleConsultInstruction<TProgramAddress, TAccountPool, TAccountOracle>>;
1351
+ type OracleConsultInput<TAccountPool extends string = string, TAccountOracle extends string = string> = {
1352
+ pool: Address<TAccountPool>;
1353
+ oracle: Address<TAccountOracle>;
1354
+ windowSeconds: OracleConsultInstructionDataArgs['windowSeconds'];
1355
+ };
1356
+ declare function getOracleConsultInstruction<TAccountPool extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: OracleConsultInput<TAccountPool, TAccountOracle>, config?: {
1357
+ programAddress?: TProgramAddress;
1358
+ }): OracleConsultInstruction<TProgramAddress, TAccountPool, TAccountOracle>;
1359
+ type ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1360
+ programAddress: Address<TProgram>;
1361
+ accounts: {
1362
+ pool: TAccountMetas[0];
1363
+ oracle: TAccountMetas[1];
1364
+ };
1365
+ data: OracleConsultInstructionData;
1366
+ };
1367
+ declare function parseOracleConsultInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
1058
1368
 
1059
1369
  /**
1060
- * Accounts required for swap_exact_in instruction
1370
+ * This code was AUTOGENERATED using the Codama library.
1371
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1372
+ * to add features, then rerun Codama to update it.
1373
+ *
1374
+ * @see https://github.com/codama-idl/codama
1061
1375
  */
1062
- interface SwapExactInAccounts {
1063
- /** AmmConfig account (read-only) */
1064
- config: Address;
1065
- /** Pool account (writable) */
1066
- pool: Address;
1067
- /** Pool authority PDA (read-only) */
1068
- authority: Address;
1069
- /** Input token vault (writable) */
1070
- vaultIn: Address;
1071
- /** Output token vault (writable) */
1072
- vaultOut: Address;
1073
- /** Token0 mint (read-only, for transfer_checked) */
1074
- token0Mint: Address;
1075
- /** Token1 mint (read-only, for transfer_checked) */
1076
- token1Mint: Address;
1077
- /** User's input token account (writable) */
1078
- userIn: Address;
1079
- /** User's output token account (writable) */
1080
- userOut: Address;
1081
- /** User authority (signer) */
1082
- user: Address;
1083
- /** Token0 program; defaults to tokenProgram or classic SPL Token */
1084
- token0Program?: Address;
1085
- /** Token1 program; defaults to tokenProgram or classic SPL Token */
1086
- token1Program?: Address;
1087
- /** Deprecated shared token program fallback */
1088
- tokenProgram?: Address;
1089
- /** Instructions sysvar */
1090
- instructionsSysvar?: Address;
1091
- /** Oracle account (optional, required if updateOracle is true) */
1092
- oracle?: Address;
1093
- /** Optional remaining accounts (sentinel program/state, route/oracle data) */
1094
- remainingAccounts?: Address[];
1095
- }
1376
+
1377
+ declare const ORACLE_UPDATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1378
+ declare function getOracleUpdateDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1379
+ type OracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1380
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
1381
+ TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle,
1382
+ ...TRemainingAccounts
1383
+ ]>;
1384
+ type OracleUpdateInstructionData = {
1385
+ discriminator: ReadonlyUint8Array;
1386
+ };
1387
+ type OracleUpdateInstructionDataArgs = {};
1388
+ declare function getOracleUpdateInstructionDataEncoder(): FixedSizeEncoder<OracleUpdateInstructionDataArgs>;
1389
+ declare function getOracleUpdateInstructionDataDecoder(): FixedSizeDecoder<OracleUpdateInstructionData>;
1390
+ declare function getOracleUpdateInstructionDataCodec(): FixedSizeCodec<OracleUpdateInstructionDataArgs, OracleUpdateInstructionData>;
1391
+ type OracleUpdateAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = {
1392
+ pool: Address<TAccountPool>;
1393
+ oracle?: Address<TAccountOracle>;
1394
+ };
1395
+ declare function getOracleUpdateInstructionAsync<TAccountPool extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: OracleUpdateAsyncInput<TAccountPool, TAccountOracle>, config?: {
1396
+ programAddress?: TProgramAddress;
1397
+ }): Promise<OracleUpdateInstruction<TProgramAddress, TAccountPool, TAccountOracle>>;
1398
+ type OracleUpdateInput<TAccountPool extends string = string, TAccountOracle extends string = string> = {
1399
+ pool: Address<TAccountPool>;
1400
+ oracle: Address<TAccountOracle>;
1401
+ };
1402
+ declare function getOracleUpdateInstruction<TAccountPool extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: OracleUpdateInput<TAccountPool, TAccountOracle>, config?: {
1403
+ programAddress?: TProgramAddress;
1404
+ }): OracleUpdateInstruction<TProgramAddress, TAccountPool, TAccountOracle>;
1405
+ type ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1406
+ programAddress: Address<TProgram>;
1407
+ accounts: {
1408
+ pool: TAccountMetas[0];
1409
+ oracle: TAccountMetas[1];
1410
+ };
1411
+ data: OracleUpdateInstructionData;
1412
+ };
1413
+ declare function parseOracleUpdateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
1414
+
1096
1415
  /**
1097
- * Create a swap_exact_in instruction
1416
+ * This code was AUTOGENERATED using the Codama library.
1417
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1418
+ * to add features, then rerun Codama to update it.
1098
1419
  *
1099
- * Swaps an exact input amount for a minimum output amount using the CPMM formula.
1420
+ * @see https://github.com/codama-idl/codama
1421
+ */
1422
+
1423
+ declare const PAUSE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1424
+ declare function getPauseDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1425
+ type PauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1426
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
1427
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1428
+ ...TRemainingAccounts
1429
+ ]>;
1430
+ type PauseInstructionData = {
1431
+ discriminator: ReadonlyUint8Array;
1432
+ };
1433
+ type PauseInstructionDataArgs = {};
1434
+ declare function getPauseInstructionDataEncoder(): FixedSizeEncoder<PauseInstructionDataArgs>;
1435
+ declare function getPauseInstructionDataDecoder(): FixedSizeDecoder<PauseInstructionData>;
1436
+ declare function getPauseInstructionDataCodec(): FixedSizeCodec<PauseInstructionDataArgs, PauseInstructionData>;
1437
+ type PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = {
1438
+ config: Address<TAccountConfig>;
1439
+ admin: TransactionSigner<TAccountAdmin>;
1440
+ };
1441
+ declare function getPauseInstruction<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: PauseInput<TAccountConfig, TAccountAdmin>, config?: {
1442
+ programAddress?: TProgramAddress;
1443
+ }): PauseInstruction<TProgramAddress, TAccountConfig, TAccountAdmin>;
1444
+ type ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1445
+ programAddress: Address<TProgram>;
1446
+ accounts: {
1447
+ config: TAccountMetas[0];
1448
+ admin: TAccountMetas[1];
1449
+ };
1450
+ data: PauseInstructionData;
1451
+ };
1452
+ declare function parsePauseInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPauseInstruction<TProgram, TAccountMetas>;
1453
+
1454
+ /**
1455
+ * This code was AUTOGENERATED using the Codama library.
1456
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1457
+ * to add features, then rerun Codama to update it.
1100
1458
  *
1101
- * @param accounts - Required accounts for the swap
1102
- * @param args - Instruction arguments (amountIn, minAmountOut, direction, updateOracle)
1103
- * @param programId - Program ID (defaults to CPMM program)
1104
- * @returns Instruction to execute the swap
1459
+ * @see https://github.com/codama-idl/codama
1460
+ */
1461
+
1462
+ declare const PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1463
+ declare function getPreviewSwapExactInDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1464
+ type PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1465
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1466
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
1467
+ ...TRemainingAccounts
1468
+ ]>;
1469
+ type PreviewSwapExactInInstructionData = {
1470
+ discriminator: ReadonlyUint8Array;
1471
+ amountIn: bigint;
1472
+ direction: number;
1473
+ };
1474
+ type PreviewSwapExactInInstructionDataArgs = {
1475
+ amountIn: number | bigint;
1476
+ direction: number;
1477
+ };
1478
+ declare function getPreviewSwapExactInInstructionDataEncoder(): FixedSizeEncoder<PreviewSwapExactInInstructionDataArgs>;
1479
+ declare function getPreviewSwapExactInInstructionDataDecoder(): FixedSizeDecoder<PreviewSwapExactInInstructionData>;
1480
+ declare function getPreviewSwapExactInInstructionDataCodec(): FixedSizeCodec<PreviewSwapExactInInstructionDataArgs, PreviewSwapExactInInstructionData>;
1481
+ type PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string> = {
1482
+ config: Address<TAccountConfig>;
1483
+ pool: Address<TAccountPool>;
1484
+ amountIn: PreviewSwapExactInInstructionDataArgs['amountIn'];
1485
+ direction: PreviewSwapExactInInstructionDataArgs['direction'];
1486
+ };
1487
+ declare function getPreviewSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: PreviewSwapExactInInput<TAccountConfig, TAccountPool>, config?: {
1488
+ programAddress?: TProgramAddress;
1489
+ }): PreviewSwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool>;
1490
+ type ParsedPreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1491
+ programAddress: Address<TProgram>;
1492
+ accounts: {
1493
+ config: TAccountMetas[0];
1494
+ pool: TAccountMetas[1];
1495
+ };
1496
+ data: PreviewSwapExactInInstructionData;
1497
+ };
1498
+ declare function parsePreviewSwapExactInInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPreviewSwapExactInInstruction<TProgram, TAccountMetas>;
1499
+
1500
+ /**
1501
+ * This code was AUTOGENERATED using the Codama library.
1502
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1503
+ * to add features, then rerun Codama to update it.
1105
1504
  *
1106
- * @example
1107
- * ```ts
1108
- * const ix = createSwapExactInInstruction(
1109
- * {
1110
- * config: configAddress,
1111
- * pool: poolAddress,
1112
- * authority: authorityAddress,
1113
- * vaultIn: vault0Address,
1114
- * vaultOut: vault1Address,
1115
- * token0Mint: mint0,
1116
- * token1Mint: mint1,
1117
- * userIn: userToken0Account,
1118
- * userOut: userToken1Account,
1119
- * user: userPublicKey,
1120
- * },
1121
- * {
1122
- * amountIn: 1000000n,
1123
- * minAmountOut: 990000n,
1124
- * direction: 0, // token0 -> token1
1125
- * updateOracle: false,
1126
- * }
1127
- * );
1128
- * ```
1505
+ * @see https://github.com/codama-idl/codama
1129
1506
  */
1130
- declare function createSwapExactInInstruction(accounts: SwapExactInAccounts, args: SwapExactInArgs, programId?: Address): Instruction;
1507
+
1508
+ declare const QUOTE_TO_NUMERAIRE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1509
+ declare function getQuoteToNumeraireDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1510
+ type QuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountStartPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1511
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1512
+ TAccountStartPool extends string ? ReadonlyAccount<TAccountStartPool> : TAccountStartPool,
1513
+ ...TRemainingAccounts
1514
+ ]>;
1515
+ type QuoteToNumeraireInstructionData = {
1516
+ discriminator: ReadonlyUint8Array;
1517
+ amount: bigint;
1518
+ side: number;
1519
+ maxHops: number;
1520
+ useTwap: boolean;
1521
+ windowSeconds: number;
1522
+ };
1523
+ type QuoteToNumeraireInstructionDataArgs = {
1524
+ amount: number | bigint;
1525
+ side: number;
1526
+ maxHops: number;
1527
+ useTwap: boolean;
1528
+ windowSeconds: number;
1529
+ };
1530
+ declare function getQuoteToNumeraireInstructionDataEncoder(): FixedSizeEncoder<QuoteToNumeraireInstructionDataArgs>;
1531
+ declare function getQuoteToNumeraireInstructionDataDecoder(): FixedSizeDecoder<QuoteToNumeraireInstructionData>;
1532
+ declare function getQuoteToNumeraireInstructionDataCodec(): FixedSizeCodec<QuoteToNumeraireInstructionDataArgs, QuoteToNumeraireInstructionData>;
1533
+ type QuoteToNumeraireInput<TAccountConfig extends string = string, TAccountStartPool extends string = string> = {
1534
+ config: Address<TAccountConfig>;
1535
+ startPool: Address<TAccountStartPool>;
1536
+ amount: QuoteToNumeraireInstructionDataArgs['amount'];
1537
+ side: QuoteToNumeraireInstructionDataArgs['side'];
1538
+ maxHops: QuoteToNumeraireInstructionDataArgs['maxHops'];
1539
+ useTwap: QuoteToNumeraireInstructionDataArgs['useTwap'];
1540
+ windowSeconds: QuoteToNumeraireInstructionDataArgs['windowSeconds'];
1541
+ };
1542
+ declare function getQuoteToNumeraireInstruction<TAccountConfig extends string, TAccountStartPool extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: QuoteToNumeraireInput<TAccountConfig, TAccountStartPool>, config?: {
1543
+ programAddress?: TProgramAddress;
1544
+ }): QuoteToNumeraireInstruction<TProgramAddress, TAccountConfig, TAccountStartPool>;
1545
+ type ParsedQuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1546
+ programAddress: Address<TProgram>;
1547
+ accounts: {
1548
+ config: TAccountMetas[0];
1549
+ startPool: TAccountMetas[1];
1550
+ };
1551
+ data: QuoteToNumeraireInstructionData;
1552
+ };
1553
+ declare function parseQuoteToNumeraireInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedQuoteToNumeraireInstruction<TProgram, TAccountMetas>;
1554
+
1131
1555
  /**
1132
- * Helper to create swap instruction with simplified parameters
1556
+ * This code was AUTOGENERATED using the Codama library.
1557
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1558
+ * to add features, then rerun Codama to update it.
1559
+ *
1560
+ * @see https://github.com/codama-idl/codama
1133
1561
  */
1134
- declare function createSwapInstruction(params: {
1135
- config: Address;
1136
- pool: Address;
1137
- authority: Address;
1138
- vault0: Address;
1139
- vault1: Address;
1140
- token0Mint: Address;
1141
- token1Mint: Address;
1142
- userToken0: Address;
1143
- userToken1: Address;
1144
- user: Address;
1145
- amountIn: bigint;
1146
- minAmountOut: bigint;
1147
- direction: SwapDirection;
1148
- oracle?: Address;
1149
- remainingAccounts?: Address[];
1150
- updateOracle?: boolean;
1151
- token0Program?: Address;
1152
- token1Program?: Address;
1153
- tokenProgram?: Address;
1154
- instructionsSysvar?: Address;
1155
- programId?: Address;
1156
- }): Instruction;
1562
+
1563
+ declare const REMOVE_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1564
+ declare function getRemoveLiquidityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1565
+ type RemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1566
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1567
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1568
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
1569
+ TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
1570
+ TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
1571
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1572
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1573
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1574
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1575
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1576
+ TAccountUser0 extends string ? WritableAccount<TAccountUser0> : TAccountUser0,
1577
+ TAccountUser1 extends string ? WritableAccount<TAccountUser1> : TAccountUser1,
1578
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1579
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1580
+ TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle,
1581
+ ...TRemainingAccounts
1582
+ ]>;
1583
+ type RemoveLiquidityInstructionData = {
1584
+ discriminator: ReadonlyUint8Array;
1585
+ sharesIn: bigint;
1586
+ minAmount0Out: bigint;
1587
+ minAmount1Out: bigint;
1588
+ updateOracle: boolean;
1589
+ };
1590
+ type RemoveLiquidityInstructionDataArgs = {
1591
+ sharesIn: number | bigint;
1592
+ minAmount0Out: number | bigint;
1593
+ minAmount1Out: number | bigint;
1594
+ updateOracle: boolean;
1595
+ };
1596
+ declare function getRemoveLiquidityInstructionDataEncoder(): FixedSizeEncoder<RemoveLiquidityInstructionDataArgs>;
1597
+ declare function getRemoveLiquidityInstructionDataDecoder(): FixedSizeDecoder<RemoveLiquidityInstructionData>;
1598
+ declare function getRemoveLiquidityInstructionDataCodec(): FixedSizeCodec<RemoveLiquidityInstructionDataArgs, RemoveLiquidityInstructionData>;
1599
+ type RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1600
+ config: Address<TAccountConfig>;
1601
+ pool: Address<TAccountPool>;
1602
+ position: Address<TAccountPosition>;
1603
+ protocolPosition: Address<TAccountProtocolPosition>;
1604
+ owner: TransactionSigner<TAccountOwner>;
1605
+ authority?: Address<TAccountAuthority>;
1606
+ vault0: Address<TAccountVault0>;
1607
+ vault1: Address<TAccountVault1>;
1608
+ token0Mint: Address<TAccountToken0Mint>;
1609
+ token1Mint: Address<TAccountToken1Mint>;
1610
+ user0: Address<TAccountUser0>;
1611
+ user1: Address<TAccountUser1>;
1612
+ token0Program: Address<TAccountToken0Program>;
1613
+ token1Program: Address<TAccountToken1Program>;
1614
+ oracle?: Address<TAccountOracle>;
1615
+ sharesIn: RemoveLiquidityInstructionDataArgs['sharesIn'];
1616
+ minAmount0Out: RemoveLiquidityInstructionDataArgs['minAmount0Out'];
1617
+ minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out'];
1618
+ updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle'];
1619
+ };
1620
+ declare function getRemoveLiquidityInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1621
+ programAddress?: TProgramAddress;
1622
+ }): Promise<RemoveLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
1623
+ type RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1624
+ config: Address<TAccountConfig>;
1625
+ pool: Address<TAccountPool>;
1626
+ position: Address<TAccountPosition>;
1627
+ protocolPosition: Address<TAccountProtocolPosition>;
1628
+ owner: TransactionSigner<TAccountOwner>;
1629
+ authority: Address<TAccountAuthority>;
1630
+ vault0: Address<TAccountVault0>;
1631
+ vault1: Address<TAccountVault1>;
1632
+ token0Mint: Address<TAccountToken0Mint>;
1633
+ token1Mint: Address<TAccountToken1Mint>;
1634
+ user0: Address<TAccountUser0>;
1635
+ user1: Address<TAccountUser1>;
1636
+ token0Program: Address<TAccountToken0Program>;
1637
+ token1Program: Address<TAccountToken1Program>;
1638
+ oracle?: Address<TAccountOracle>;
1639
+ sharesIn: RemoveLiquidityInstructionDataArgs['sharesIn'];
1640
+ minAmount0Out: RemoveLiquidityInstructionDataArgs['minAmount0Out'];
1641
+ minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out'];
1642
+ updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle'];
1643
+ };
1644
+ declare function getRemoveLiquidityInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolPosition extends string, TAccountOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: RemoveLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1645
+ programAddress?: TProgramAddress;
1646
+ }): RemoveLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1647
+ type ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1648
+ programAddress: Address<TProgram>;
1649
+ accounts: {
1650
+ config: TAccountMetas[0];
1651
+ pool: TAccountMetas[1];
1652
+ position: TAccountMetas[2];
1653
+ protocolPosition: TAccountMetas[3];
1654
+ owner: TAccountMetas[4];
1655
+ authority: TAccountMetas[5];
1656
+ vault0: TAccountMetas[6];
1657
+ vault1: TAccountMetas[7];
1658
+ token0Mint: TAccountMetas[8];
1659
+ token1Mint: TAccountMetas[9];
1660
+ user0: TAccountMetas[10];
1661
+ user1: TAccountMetas[11];
1662
+ token0Program: TAccountMetas[12];
1663
+ token1Program: TAccountMetas[13];
1664
+ oracle?: TAccountMetas[14] | undefined;
1665
+ };
1666
+ data: RemoveLiquidityInstructionData;
1667
+ };
1668
+ declare function parseRemoveLiquidityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
1157
1669
 
1158
1670
  /**
1159
- * Accounts required for create_position instruction
1671
+ * This code was AUTOGENERATED using the Codama library.
1672
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1673
+ * to add features, then rerun Codama to update it.
1674
+ *
1675
+ * @see https://github.com/codama-idl/codama
1160
1676
  */
1161
- interface CreatePositionAccounts {
1162
- /** Pool account (read-only) */
1163
- pool: Address;
1164
- /** Position PDA to be created (writable, derived from ['position', pool, owner, position_id]) */
1165
- position: Address;
1166
- /** Owner of the position (signer) */
1167
- owner: Address;
1168
- /** Payer for rent (signer, writable) */
1169
- payer: Address;
1170
- /** System program */
1171
- systemProgram?: Address;
1172
- }
1677
+
1678
+ declare const SET_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1679
+ declare function getSetFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1680
+ type SetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1681
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1682
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1683
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1684
+ ...TRemainingAccounts
1685
+ ]>;
1686
+ type SetFeesInstructionData = {
1687
+ discriminator: ReadonlyUint8Array;
1688
+ swapFeeBps: number;
1689
+ feeSplitBps: number;
1690
+ };
1691
+ type SetFeesInstructionDataArgs = {
1692
+ swapFeeBps: number;
1693
+ feeSplitBps: number;
1694
+ };
1695
+ declare function getSetFeesInstructionDataEncoder(): FixedSizeEncoder<SetFeesInstructionDataArgs>;
1696
+ declare function getSetFeesInstructionDataDecoder(): FixedSizeDecoder<SetFeesInstructionData>;
1697
+ declare function getSetFeesInstructionDataCodec(): FixedSizeCodec<SetFeesInstructionDataArgs, SetFeesInstructionData>;
1698
+ type SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = {
1699
+ config: Address<TAccountConfig>;
1700
+ pool: Address<TAccountPool>;
1701
+ admin: TransactionSigner<TAccountAdmin>;
1702
+ swapFeeBps: SetFeesInstructionDataArgs['swapFeeBps'];
1703
+ feeSplitBps: SetFeesInstructionDataArgs['feeSplitBps'];
1704
+ };
1705
+ declare function getSetFeesInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>, config?: {
1706
+ programAddress?: TProgramAddress;
1707
+ }): SetFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin>;
1708
+ type ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1709
+ programAddress: Address<TProgram>;
1710
+ accounts: {
1711
+ config: TAccountMetas[0];
1712
+ pool: TAccountMetas[1];
1713
+ admin: TAccountMetas[2];
1714
+ };
1715
+ data: SetFeesInstructionData;
1716
+ };
1717
+ declare function parseSetFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetFeesInstruction<TProgram, TAccountMetas>;
1718
+
1173
1719
  /**
1174
- * Create a create_position instruction
1720
+ * This code was AUTOGENERATED using the Codama library.
1721
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1722
+ * to add features, then rerun Codama to update it.
1175
1723
  *
1176
- * Creates a new liquidity position for a pool. The position is a PDA derived from
1177
- * the pool, owner, and position ID. Users can have multiple positions per pool
1178
- * by using different position IDs.
1724
+ * @see https://github.com/codama-idl/codama
1725
+ */
1726
+
1727
+ declare const SET_ROUTE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1728
+ declare function getSetRouteDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1729
+ type SetRouteInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountNextPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1730
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1731
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1732
+ TAccountNextPool extends string ? ReadonlyAccount<TAccountNextPool> : TAccountNextPool,
1733
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1734
+ ...TRemainingAccounts
1735
+ ]>;
1736
+ type SetRouteInstructionData = {
1737
+ discriminator: ReadonlyUint8Array;
1738
+ routeNextPool: Address;
1739
+ routeBridgeMint: Address;
1740
+ };
1741
+ type SetRouteInstructionDataArgs = {
1742
+ routeNextPool: Address;
1743
+ routeBridgeMint: Address;
1744
+ };
1745
+ declare function getSetRouteInstructionDataEncoder(): FixedSizeEncoder<SetRouteInstructionDataArgs>;
1746
+ declare function getSetRouteInstructionDataDecoder(): FixedSizeDecoder<SetRouteInstructionData>;
1747
+ declare function getSetRouteInstructionDataCodec(): FixedSizeCodec<SetRouteInstructionDataArgs, SetRouteInstructionData>;
1748
+ type SetRouteInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountNextPool extends string = string, TAccountAdmin extends string = string> = {
1749
+ config: Address<TAccountConfig>;
1750
+ pool: Address<TAccountPool>;
1751
+ nextPool?: Address<TAccountNextPool>;
1752
+ admin: TransactionSigner<TAccountAdmin>;
1753
+ routeNextPool: SetRouteInstructionDataArgs['routeNextPool'];
1754
+ routeBridgeMint: SetRouteInstructionDataArgs['routeBridgeMint'];
1755
+ };
1756
+ declare function getSetRouteInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountNextPool extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SetRouteInput<TAccountConfig, TAccountPool, TAccountNextPool, TAccountAdmin>, config?: {
1757
+ programAddress?: TProgramAddress;
1758
+ }): SetRouteInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountNextPool, TAccountAdmin>;
1759
+ type ParsedSetRouteInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1760
+ programAddress: Address<TProgram>;
1761
+ accounts: {
1762
+ config: TAccountMetas[0];
1763
+ pool: TAccountMetas[1];
1764
+ nextPool?: TAccountMetas[2] | undefined;
1765
+ admin: TAccountMetas[3];
1766
+ };
1767
+ data: SetRouteInstructionData;
1768
+ };
1769
+ declare function parseSetRouteInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRouteInstruction<TProgram, TAccountMetas>;
1770
+
1771
+ /**
1772
+ * This code was AUTOGENERATED using the Codama library.
1773
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1774
+ * to add features, then rerun Codama to update it.
1179
1775
  *
1180
- * @param accounts - Required accounts for creating the position
1181
- * @param args - Instruction arguments (positionId)
1182
- * @param programId - Program ID (defaults to CPMM program)
1183
- * @returns Instruction to create a new position
1776
+ * @see https://github.com/codama-idl/codama
1777
+ */
1778
+
1779
+ declare const SET_SENTINEL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1780
+ declare function getSetSentinelDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1781
+ type SetSentinelInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1782
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1783
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1784
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1785
+ ...TRemainingAccounts
1786
+ ]>;
1787
+ type SetSentinelInstructionData = {
1788
+ discriminator: ReadonlyUint8Array;
1789
+ sentinelProgram: Address;
1790
+ sentinelFlags: number;
1791
+ };
1792
+ type SetSentinelInstructionDataArgs = {
1793
+ sentinelProgram: Address;
1794
+ sentinelFlags: number;
1795
+ };
1796
+ declare function getSetSentinelInstructionDataEncoder(): FixedSizeEncoder<SetSentinelInstructionDataArgs>;
1797
+ declare function getSetSentinelInstructionDataDecoder(): FixedSizeDecoder<SetSentinelInstructionData>;
1798
+ declare function getSetSentinelInstructionDataCodec(): FixedSizeCodec<SetSentinelInstructionDataArgs, SetSentinelInstructionData>;
1799
+ type SetSentinelInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = {
1800
+ config: Address<TAccountConfig>;
1801
+ pool: Address<TAccountPool>;
1802
+ admin: TransactionSigner<TAccountAdmin>;
1803
+ sentinelProgram: SetSentinelInstructionDataArgs['sentinelProgram'];
1804
+ sentinelFlags: SetSentinelInstructionDataArgs['sentinelFlags'];
1805
+ };
1806
+ declare function getSetSentinelInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SetSentinelInput<TAccountConfig, TAccountPool, TAccountAdmin>, config?: {
1807
+ programAddress?: TProgramAddress;
1808
+ }): SetSentinelInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin>;
1809
+ type ParsedSetSentinelInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1810
+ programAddress: Address<TProgram>;
1811
+ accounts: {
1812
+ config: TAccountMetas[0];
1813
+ pool: TAccountMetas[1];
1814
+ admin: TAccountMetas[2];
1815
+ };
1816
+ data: SetSentinelInstructionData;
1817
+ };
1818
+ declare function parseSetSentinelInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetSentinelInstruction<TProgram, TAccountMetas>;
1819
+
1820
+ /**
1821
+ * This code was AUTOGENERATED using the Codama library.
1822
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1823
+ * to add features, then rerun Codama to update it.
1184
1824
  *
1185
- * @example
1186
- * ```ts
1187
- * const ix = createCreatePositionInstruction(
1188
- * {
1189
- * pool: poolAddress,
1190
- * position: positionPda,
1191
- * owner: userPublicKey,
1192
- * payer: userPublicKey,
1193
- * },
1194
- * {
1195
- * positionId: 0n,
1196
- * }
1197
- * );
1198
- * ```
1825
+ * @see https://github.com/codama-idl/codama
1199
1826
  */
1200
- declare function createCreatePositionInstruction(accounts: CreatePositionAccounts, args: CreatePositionArgs, programId?: Address): Instruction;
1827
+
1828
+ declare const SKIM_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1829
+ declare function getSkimDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1830
+ type SkimInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountAdminAta0 extends string | AccountMeta<string> = string, TAccountAdminAta1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1831
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1832
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
1833
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1834
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1835
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1836
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1837
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1838
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1839
+ TAccountAdminAta0 extends string ? WritableAccount<TAccountAdminAta0> : TAccountAdminAta0,
1840
+ TAccountAdminAta1 extends string ? WritableAccount<TAccountAdminAta1> : TAccountAdminAta1,
1841
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1842
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1843
+ ...TRemainingAccounts
1844
+ ]>;
1845
+ type SkimInstructionData = {
1846
+ discriminator: ReadonlyUint8Array;
1847
+ };
1848
+ type SkimInstructionDataArgs = {};
1849
+ declare function getSkimInstructionDataEncoder(): FixedSizeEncoder<SkimInstructionDataArgs>;
1850
+ declare function getSkimInstructionDataDecoder(): FixedSizeDecoder<SkimInstructionData>;
1851
+ declare function getSkimInstructionDataCodec(): FixedSizeCodec<SkimInstructionDataArgs, SkimInstructionData>;
1852
+ type SkimAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
1853
+ config: Address<TAccountConfig>;
1854
+ pool: Address<TAccountPool>;
1855
+ admin: TransactionSigner<TAccountAdmin>;
1856
+ authority?: Address<TAccountAuthority>;
1857
+ vault0: Address<TAccountVault0>;
1858
+ vault1: Address<TAccountVault1>;
1859
+ token0Mint: Address<TAccountToken0Mint>;
1860
+ token1Mint: Address<TAccountToken1Mint>;
1861
+ adminAta0?: Address<TAccountAdminAta0>;
1862
+ adminAta1?: Address<TAccountAdminAta1>;
1863
+ token0Program: Address<TAccountToken0Program>;
1864
+ token1Program: Address<TAccountToken1Program>;
1865
+ };
1866
+ declare function getSkimInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountAdmin extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountAdminAta0 extends string, TAccountAdminAta1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SkimAsyncInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>, config?: {
1867
+ programAddress?: TProgramAddress;
1868
+ }): Promise<SkimInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>>;
1869
+ type SkimInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = {
1870
+ config: Address<TAccountConfig>;
1871
+ pool: Address<TAccountPool>;
1872
+ admin: TransactionSigner<TAccountAdmin>;
1873
+ authority: Address<TAccountAuthority>;
1874
+ vault0: Address<TAccountVault0>;
1875
+ vault1: Address<TAccountVault1>;
1876
+ token0Mint: Address<TAccountToken0Mint>;
1877
+ token1Mint: Address<TAccountToken1Mint>;
1878
+ adminAta0: Address<TAccountAdminAta0>;
1879
+ adminAta1: Address<TAccountAdminAta1>;
1880
+ token0Program: Address<TAccountToken0Program>;
1881
+ token1Program: Address<TAccountToken1Program>;
1882
+ };
1883
+ declare function getSkimInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAdmin extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountAdminAta0 extends string, TAccountAdminAta1 extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SkimInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>, config?: {
1884
+ programAddress?: TProgramAddress;
1885
+ }): SkimInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
1886
+ type ParsedSkimInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1887
+ programAddress: Address<TProgram>;
1888
+ accounts: {
1889
+ config: TAccountMetas[0];
1890
+ pool: TAccountMetas[1];
1891
+ admin: TAccountMetas[2];
1892
+ authority: TAccountMetas[3];
1893
+ vault0: TAccountMetas[4];
1894
+ vault1: TAccountMetas[5];
1895
+ token0Mint: TAccountMetas[6];
1896
+ token1Mint: TAccountMetas[7];
1897
+ adminAta0: TAccountMetas[8];
1898
+ adminAta1: TAccountMetas[9];
1899
+ token0Program: TAccountMetas[10];
1900
+ token1Program: TAccountMetas[11];
1901
+ };
1902
+ data: SkimInstructionData;
1903
+ };
1904
+ declare function parseSkimInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSkimInstruction<TProgram, TAccountMetas>;
1201
1905
 
1202
1906
  /**
1203
- * Accounts required for close_position instruction
1204
- */
1205
- interface ClosePositionAccounts {
1206
- /** Pool account (read-only) */
1207
- pool: Address;
1208
- /** Position account to close (writable) */
1209
- position: Address;
1210
- /** Position owner (signer) */
1211
- owner: Address;
1212
- /** Recipient for rent lamports (writable) */
1213
- rentRecipient: Address;
1214
- }
1215
- /**
1216
- * Create a close_position instruction
1217
- *
1218
- * Closes an empty position account, returning the rent lamports to the recipient.
1219
- * The position must have zero shares and zero accrued fees to be closed.
1220
- *
1221
- * @param accounts - Required accounts for closing the position
1222
- * @param programId - Program ID (defaults to CPMM program)
1223
- * @returns Instruction to close a position
1907
+ * This code was AUTOGENERATED using the Codama library.
1908
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1909
+ * to add features, then rerun Codama to update it.
1224
1910
  *
1225
- * @example
1226
- * ```ts
1227
- * const ix = createClosePositionInstruction({
1228
- * pool: poolAddress,
1229
- * position: positionAddress,
1230
- * owner: userPublicKey,
1231
- * rentRecipient: userPublicKey,
1232
- * });
1233
- * ```
1911
+ * @see https://github.com/codama-idl/codama
1234
1912
  */
1235
- declare function createClosePositionInstruction(accounts: ClosePositionAccounts, programId?: Address): Instruction;
1236
1913
 
1237
- /**
1238
- * Extended AddLiquidity args that include updateOracle flag
1239
- * (matches the on-chain program's actual args)
1240
- */
1241
- interface AddLiquidityArgsWithOracle extends AddLiquidityArgs {
1242
- /** Whether to update the oracle (requires oracle account) */
1914
+ declare const SWAP_EXACT_IN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1915
+ declare function getSwapExactInDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1916
+ type SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1917
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1918
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1919
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1920
+ TAccountVaultIn extends string ? WritableAccount<TAccountVaultIn> : TAccountVaultIn,
1921
+ TAccountVaultOut extends string ? WritableAccount<TAccountVaultOut> : TAccountVaultOut,
1922
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1923
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1924
+ TAccountUserIn extends string ? WritableAccount<TAccountUserIn> : TAccountUserIn,
1925
+ TAccountUserOut extends string ? WritableAccount<TAccountUserOut> : TAccountUserOut,
1926
+ TAccountTrader extends string ? ReadonlySignerAccount<TAccountTrader> & AccountSignerMeta<TAccountTrader> : TAccountTrader,
1927
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1928
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1929
+ TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle,
1930
+ ...TRemainingAccounts
1931
+ ]>;
1932
+ type SwapExactInInstructionData = {
1933
+ discriminator: ReadonlyUint8Array;
1934
+ amountIn: bigint;
1935
+ minAmountOut: bigint;
1936
+ direction: number;
1243
1937
  updateOracle: boolean;
1244
- }
1245
- /**
1246
- * Accounts required for add_liquidity instruction
1247
- */
1248
- interface AddLiquidityAccounts {
1249
- /** AmmConfig account (read-only) */
1250
- config: Address;
1251
- /** Pool account (writable) */
1252
- pool: Address;
1253
- /** User's position account (writable) */
1254
- position: Address;
1255
- /** Protocol position for protocol fees (writable) */
1256
- protocolPosition: Address;
1257
- /** Position owner (signer) */
1258
- owner: Address;
1259
- /** Pool authority PDA (read-only) */
1260
- authority: Address;
1261
- /** Pool vault for token0 (writable) */
1262
- vault0: Address;
1263
- /** Pool vault for token1 (writable) */
1264
- vault1: Address;
1265
- /** Token0 mint (read-only) */
1266
- token0Mint: Address;
1267
- /** Token1 mint (read-only) */
1268
- token1Mint: Address;
1269
- /** User's token0 account (writable) */
1270
- user0: Address;
1271
- /** User's token1 account (writable) */
1272
- user1: Address;
1273
- /** SPL Token program */
1274
- tokenProgram?: Address;
1275
- /** Oracle account (optional, required if updateOracle is true) */
1276
- oracle?: Address;
1277
- /** Optional remaining accounts (sentinel program/state, route/oracle data) */
1278
- remainingAccounts?: Address[];
1279
- }
1938
+ };
1939
+ type SwapExactInInstructionDataArgs = {
1940
+ amountIn: number | bigint;
1941
+ minAmountOut: number | bigint;
1942
+ direction: number;
1943
+ updateOracle: boolean;
1944
+ };
1945
+ declare function getSwapExactInInstructionDataEncoder(): FixedSizeEncoder<SwapExactInInstructionDataArgs>;
1946
+ declare function getSwapExactInInstructionDataDecoder(): FixedSizeDecoder<SwapExactInInstructionData>;
1947
+ declare function getSwapExactInInstructionDataCodec(): FixedSizeCodec<SwapExactInInstructionDataArgs, SwapExactInInstructionData>;
1948
+ type SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1949
+ config: Address<TAccountConfig>;
1950
+ pool: Address<TAccountPool>;
1951
+ authority?: Address<TAccountAuthority>;
1952
+ vaultIn: Address<TAccountVaultIn>;
1953
+ vaultOut: Address<TAccountVaultOut>;
1954
+ token0Mint: Address<TAccountToken0Mint>;
1955
+ token1Mint: Address<TAccountToken1Mint>;
1956
+ userIn: Address<TAccountUserIn>;
1957
+ userOut: Address<TAccountUserOut>;
1958
+ trader: TransactionSigner<TAccountTrader>;
1959
+ token0Program: Address<TAccountToken0Program>;
1960
+ token1Program: Address<TAccountToken1Program>;
1961
+ oracle?: Address<TAccountOracle>;
1962
+ amountIn: SwapExactInInstructionDataArgs['amountIn'];
1963
+ minAmountOut: SwapExactInInstructionDataArgs['minAmountOut'];
1964
+ direction: SwapExactInInstructionDataArgs['direction'];
1965
+ updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
1966
+ };
1967
+ declare function getSwapExactInInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1968
+ programAddress?: TProgramAddress;
1969
+ }): Promise<SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
1970
+ type SwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1971
+ config: Address<TAccountConfig>;
1972
+ pool: Address<TAccountPool>;
1973
+ authority: Address<TAccountAuthority>;
1974
+ vaultIn: Address<TAccountVaultIn>;
1975
+ vaultOut: Address<TAccountVaultOut>;
1976
+ token0Mint: Address<TAccountToken0Mint>;
1977
+ token1Mint: Address<TAccountToken1Mint>;
1978
+ userIn: Address<TAccountUserIn>;
1979
+ userOut: Address<TAccountUserOut>;
1980
+ trader: TransactionSigner<TAccountTrader>;
1981
+ token0Program: Address<TAccountToken0Program>;
1982
+ token1Program: Address<TAccountToken1Program>;
1983
+ oracle?: Address<TAccountOracle>;
1984
+ amountIn: SwapExactInInstructionDataArgs['amountIn'];
1985
+ minAmountOut: SwapExactInInstructionDataArgs['minAmountOut'];
1986
+ direction: SwapExactInInstructionDataArgs['direction'];
1987
+ updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
1988
+ };
1989
+ declare function getSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAuthority extends string, TAccountVaultIn extends string, TAccountVaultOut extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountUserIn extends string, TAccountUserOut extends string, TAccountTrader extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountOracle extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SwapExactInInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1990
+ programAddress?: TProgramAddress;
1991
+ }): SwapExactInInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1992
+ type ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1993
+ programAddress: Address<TProgram>;
1994
+ accounts: {
1995
+ config: TAccountMetas[0];
1996
+ pool: TAccountMetas[1];
1997
+ authority: TAccountMetas[2];
1998
+ vaultIn: TAccountMetas[3];
1999
+ vaultOut: TAccountMetas[4];
2000
+ token0Mint: TAccountMetas[5];
2001
+ token1Mint: TAccountMetas[6];
2002
+ userIn: TAccountMetas[7];
2003
+ userOut: TAccountMetas[8];
2004
+ trader: TAccountMetas[9];
2005
+ token0Program: TAccountMetas[10];
2006
+ token1Program: TAccountMetas[11];
2007
+ oracle?: TAccountMetas[12] | undefined;
2008
+ };
2009
+ data: SwapExactInInstructionData;
2010
+ };
2011
+ declare function parseSwapExactInInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
2012
+
1280
2013
  /**
1281
- * Create an add_liquidity instruction
1282
- *
1283
- * Adds liquidity to a pool by depositing tokens and receiving LP shares.
1284
- * For an empty pool (first deposit), the amount of shares is sqrt(amount0 * amount1).
1285
- * For subsequent deposits, shares are proportional to the smaller ratio of deposit to reserves.
1286
- *
1287
- * @param accounts - Required accounts for adding liquidity
1288
- * @param args - Instruction arguments (amount0Max, amount1Max, minSharesOut, updateOracle)
1289
- * @param programId - Program ID (defaults to CPMM program)
1290
- * @returns Instruction to add liquidity
2014
+ * This code was AUTOGENERATED using the Codama library.
2015
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2016
+ * to add features, then rerun Codama to update it.
1291
2017
  *
1292
- * @example
1293
- * ```ts
1294
- * const ix = createAddLiquidityInstruction(
1295
- * {
1296
- * config: configAddress,
1297
- * pool: poolAddress,
1298
- * position: positionAddress,
1299
- * protocolPosition: protocolPositionAddress,
1300
- * owner: userPublicKey,
1301
- * authority: authorityPda,
1302
- * vault0: vault0Address,
1303
- * vault1: vault1Address,
1304
- * token0Mint: mint0,
1305
- * token1Mint: mint1,
1306
- * user0: userToken0Account,
1307
- * user1: userToken1Account,
1308
- * },
1309
- * {
1310
- * amount0Max: 1000000n,
1311
- * amount1Max: 1000000n,
1312
- * minSharesOut: 0n,
1313
- * updateOracle: false,
1314
- * }
1315
- * );
1316
- * ```
2018
+ * @see https://github.com/codama-idl/codama
1317
2019
  */
1318
- declare function createAddLiquidityInstruction(accounts: AddLiquidityAccounts, args: AddLiquidityArgsWithOracle, programId?: Address): Instruction;
2020
+
2021
+ declare const TRANSFER_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2022
+ declare function getTransferAdminDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2023
+ type TransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2024
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
2025
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
2026
+ ...TRemainingAccounts
2027
+ ]>;
2028
+ type TransferAdminInstructionData = {
2029
+ discriminator: ReadonlyUint8Array;
2030
+ newAdmin: Address;
2031
+ };
2032
+ type TransferAdminInstructionDataArgs = {
2033
+ newAdmin: Address;
2034
+ };
2035
+ declare function getTransferAdminInstructionDataEncoder(): FixedSizeEncoder<TransferAdminInstructionDataArgs>;
2036
+ declare function getTransferAdminInstructionDataDecoder(): FixedSizeDecoder<TransferAdminInstructionData>;
2037
+ declare function getTransferAdminInstructionDataCodec(): FixedSizeCodec<TransferAdminInstructionDataArgs, TransferAdminInstructionData>;
2038
+ type TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = {
2039
+ config: Address<TAccountConfig>;
2040
+ admin: TransactionSigner<TAccountAdmin>;
2041
+ newAdmin: TransferAdminInstructionDataArgs['newAdmin'];
2042
+ };
2043
+ declare function getTransferAdminInstruction<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: TransferAdminInput<TAccountConfig, TAccountAdmin>, config?: {
2044
+ programAddress?: TProgramAddress;
2045
+ }): TransferAdminInstruction<TProgramAddress, TAccountConfig, TAccountAdmin>;
2046
+ type ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2047
+ programAddress: Address<TProgram>;
2048
+ accounts: {
2049
+ config: TAccountMetas[0];
2050
+ admin: TAccountMetas[1];
2051
+ };
2052
+ data: TransferAdminInstructionData;
2053
+ };
2054
+ declare function parseTransferAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
1319
2055
 
1320
2056
  /**
1321
- * Accounts required for remove_liquidity instruction
1322
- */
1323
- interface RemoveLiquidityAccounts {
1324
- /** AmmConfig account (read-only) */
1325
- config: Address;
1326
- /** Pool account (writable) */
1327
- pool: Address;
1328
- /** User's position account (writable) */
1329
- position: Address;
1330
- /** Protocol position for protocol fees (writable) */
1331
- protocolPosition: Address;
1332
- /** Position owner (signer) */
1333
- owner: Address;
1334
- /** Pool authority PDA (read-only) */
1335
- authority: Address;
1336
- /** Pool vault for token0 (writable) */
1337
- vault0: Address;
1338
- /** Pool vault for token1 (writable) */
1339
- vault1: Address;
1340
- /** Token0 mint (read-only) */
1341
- token0Mint: Address;
1342
- /** Token1 mint (read-only) */
1343
- token1Mint: Address;
1344
- /** User's token0 account (writable) */
1345
- user0: Address;
1346
- /** User's token1 account (writable) */
1347
- user1: Address;
1348
- /** SPL Token program */
1349
- tokenProgram?: Address;
1350
- /** Oracle account (optional, required if updateOracle is true) */
1351
- oracle?: Address;
1352
- /** Optional remaining accounts (sentinel program/state, route/oracle data) */
1353
- remainingAccounts?: Address[];
1354
- }
1355
- /**
1356
- * Create a remove_liquidity instruction
1357
- *
1358
- * Removes liquidity from a pool by burning LP shares and receiving tokens back.
1359
- * The amount of tokens received is proportional to the share of the pool being withdrawn.
1360
- * Also accrues any pending fees to the position before withdrawal.
1361
- *
1362
- * @param accounts - Required accounts for removing liquidity
1363
- * @param args - Instruction arguments (sharesIn, minAmount0Out, minAmount1Out, updateOracle)
1364
- * @param programId - Program ID (defaults to CPMM program)
1365
- * @returns Instruction to remove liquidity
2057
+ * This code was AUTOGENERATED using the Codama library.
2058
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2059
+ * to add features, then rerun Codama to update it.
1366
2060
  *
1367
- * @example
1368
- * ```ts
1369
- * const ix = createRemoveLiquidityInstruction(
1370
- * {
1371
- * config: configAddress,
1372
- * pool: poolAddress,
1373
- * position: positionAddress,
1374
- * protocolPosition: protocolPositionAddress,
1375
- * owner: userPublicKey,
1376
- * authority: authorityPda,
1377
- * vault0: vault0Address,
1378
- * vault1: vault1Address,
1379
- * token0Mint: mint0,
1380
- * token1Mint: mint1,
1381
- * user0: userToken0Account,
1382
- * user1: userToken1Account,
1383
- * },
1384
- * {
1385
- * sharesIn: 500000n,
1386
- * minAmount0Out: 450000n,
1387
- * minAmount1Out: 450000n,
1388
- * updateOracle: false,
1389
- * }
1390
- * );
1391
- * ```
2061
+ * @see https://github.com/codama-idl/codama
1392
2062
  */
1393
- declare function createRemoveLiquidityInstruction(accounts: RemoveLiquidityAccounts, args: RemoveLiquidityArgs, programId?: Address): Instruction;
2063
+
2064
+ declare const UNPAUSE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2065
+ declare function getUnpauseDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2066
+ type UnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2067
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
2068
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
2069
+ ...TRemainingAccounts
2070
+ ]>;
2071
+ type UnpauseInstructionData = {
2072
+ discriminator: ReadonlyUint8Array;
2073
+ };
2074
+ type UnpauseInstructionDataArgs = {};
2075
+ declare function getUnpauseInstructionDataEncoder(): FixedSizeEncoder<UnpauseInstructionDataArgs>;
2076
+ declare function getUnpauseInstructionDataDecoder(): FixedSizeDecoder<UnpauseInstructionData>;
2077
+ declare function getUnpauseInstructionDataCodec(): FixedSizeCodec<UnpauseInstructionDataArgs, UnpauseInstructionData>;
2078
+ type UnpauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = {
2079
+ config: Address<TAccountConfig>;
2080
+ admin: TransactionSigner<TAccountAdmin>;
2081
+ };
2082
+ declare function getUnpauseInstruction<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: UnpauseInput<TAccountConfig, TAccountAdmin>, config?: {
2083
+ programAddress?: TProgramAddress;
2084
+ }): UnpauseInstruction<TProgramAddress, TAccountConfig, TAccountAdmin>;
2085
+ type ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2086
+ programAddress: Address<TProgram>;
2087
+ accounts: {
2088
+ config: TAccountMetas[0];
2089
+ admin: TAccountMetas[1];
2090
+ };
2091
+ data: UnpauseInstructionData;
2092
+ };
2093
+ declare function parseUnpauseInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUnpauseInstruction<TProgram, TAccountMetas>;
1394
2094
 
1395
2095
  /**
1396
- * Accounts required for collect_fees instruction
1397
- */
1398
- interface CollectFeesAccounts {
1399
- /** Pool account (writable) */
1400
- pool: Address;
1401
- /** User's position account (writable) */
1402
- position: Address;
1403
- /** Position owner (signer) */
1404
- owner: Address;
1405
- /** Pool authority PDA (read-only) */
1406
- authority: Address;
1407
- /** Pool vault for token0 (writable) */
1408
- vault0: Address;
1409
- /** Pool vault for token1 (writable) */
1410
- vault1: Address;
1411
- /** Token0 mint (read-only) */
1412
- token0Mint: Address;
1413
- /** Token1 mint (read-only) */
1414
- token1Mint: Address;
1415
- /** User's token0 account (writable) */
1416
- user0: Address;
1417
- /** User's token1 account (writable) */
1418
- user1: Address;
1419
- /** SPL Token program */
1420
- tokenProgram?: Address;
1421
- }
1422
- /**
1423
- * Create a collect_fees instruction
1424
- *
1425
- * Collects accrued LP fees from a position. Fees are first accrued from the global
1426
- * fee growth, then transferred from the pool vaults to the user's token accounts.
1427
- * You can specify max amounts to partially collect fees.
1428
- *
1429
- * @param accounts - Required accounts for collecting fees
1430
- * @param args - Instruction arguments (max0, max1)
1431
- * @param programId - Program ID (defaults to CPMM program)
1432
- * @returns Instruction to collect fees
2096
+ * This code was AUTOGENERATED using the Codama library.
2097
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2098
+ * to add features, then rerun Codama to update it.
1433
2099
  *
1434
- * @example
1435
- * ```ts
1436
- * // Collect all accrued fees
1437
- * const ix = createCollectFeesInstruction(
1438
- * {
1439
- * pool: poolAddress,
1440
- * position: positionAddress,
1441
- * owner: userPublicKey,
1442
- * authority: authorityPda,
1443
- * vault0: vault0Address,
1444
- * vault1: vault1Address,
1445
- * token0Mint: mint0,
1446
- * token1Mint: mint1,
1447
- * user0: userToken0Account,
1448
- * user1: userToken1Account,
1449
- * },
1450
- * {
1451
- * max0: BigInt('18446744073709551615'), // u64::MAX to collect all
1452
- * max1: BigInt('18446744073709551615'),
1453
- * }
1454
- * );
1455
- * ```
1456
- */
1457
- declare function createCollectFeesInstruction(accounts: CollectFeesAccounts, args: CollectFeesArgs, programId?: Address): Instruction;
1458
- /**
1459
- * Convenience constant for collecting all fees (u64::MAX)
2100
+ * @see https://github.com/codama-idl/codama
1460
2101
  */
1461
- declare const MAX_FEE_AMOUNT: bigint;
1462
2102
 
2103
+ declare const UPDATE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2104
+ declare function getUpdateConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2105
+ type UpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2106
+ TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
2107
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
2108
+ ...TRemainingAccounts
2109
+ ]>;
2110
+ type UpdateConfigInstructionData = {
2111
+ discriminator: ReadonlyUint8Array;
2112
+ numeraireMint: Address;
2113
+ maxSwapFeeBps: number;
2114
+ maxFeeSplitBps: number;
2115
+ maxRouteHops: number;
2116
+ protocolFeeEnabled: boolean;
2117
+ protocolFeeBps: number;
2118
+ sentinelAllowlist: Array<Address>;
2119
+ };
2120
+ type UpdateConfigInstructionDataArgs = {
2121
+ numeraireMint: Address;
2122
+ maxSwapFeeBps: number;
2123
+ maxFeeSplitBps: number;
2124
+ maxRouteHops: number;
2125
+ protocolFeeEnabled: boolean;
2126
+ protocolFeeBps: number;
2127
+ sentinelAllowlist: Array<Address>;
2128
+ };
2129
+ declare function getUpdateConfigInstructionDataEncoder(): Encoder<UpdateConfigInstructionDataArgs>;
2130
+ declare function getUpdateConfigInstructionDataDecoder(): Decoder<UpdateConfigInstructionData>;
2131
+ declare function getUpdateConfigInstructionDataCodec(): Codec<UpdateConfigInstructionDataArgs, UpdateConfigInstructionData>;
2132
+ type UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = {
2133
+ config: Address<TAccountConfig>;
2134
+ admin: TransactionSigner<TAccountAdmin>;
2135
+ numeraireMint: UpdateConfigInstructionDataArgs['numeraireMint'];
2136
+ maxSwapFeeBps: UpdateConfigInstructionDataArgs['maxSwapFeeBps'];
2137
+ maxFeeSplitBps: UpdateConfigInstructionDataArgs['maxFeeSplitBps'];
2138
+ maxRouteHops: UpdateConfigInstructionDataArgs['maxRouteHops'];
2139
+ protocolFeeEnabled: UpdateConfigInstructionDataArgs['protocolFeeEnabled'];
2140
+ protocolFeeBps: UpdateConfigInstructionDataArgs['protocolFeeBps'];
2141
+ sentinelAllowlist: UpdateConfigInstructionDataArgs['sentinelAllowlist'];
2142
+ };
2143
+ declare function getUpdateConfigInstruction<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: UpdateConfigInput<TAccountConfig, TAccountAdmin>, config?: {
2144
+ programAddress?: TProgramAddress;
2145
+ }): UpdateConfigInstruction<TProgramAddress, TAccountConfig, TAccountAdmin>;
2146
+ type ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2147
+ programAddress: Address<TProgram>;
2148
+ accounts: {
2149
+ config: TAccountMetas[0];
2150
+ admin: TAccountMetas[1];
2151
+ };
2152
+ data: UpdateConfigInstructionData;
2153
+ };
2154
+ declare function parseUpdateConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2155
+
2156
+ type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
1463
2157
  /**
1464
- * Accounts required for collect_protocol_fees instruction
2158
+ * Helper to create swap instruction with simplified parameters
1465
2159
  */
1466
- interface CollectProtocolFeesAccounts {
1467
- /** AmmConfig account (read-only) */
2160
+ declare function createSwapInstruction(params: {
1468
2161
  config: Address;
1469
- /** Pool account (writable) */
1470
2162
  pool: Address;
1471
- /** Protocol position account (writable) */
1472
- protocolPosition: Address;
1473
- /** Admin authority (signer) */
1474
- admin: Address;
1475
- /** Pool authority PDA (read-only) */
1476
2163
  authority: Address;
1477
- /** Pool vault for token0 (writable) */
1478
2164
  vault0: Address;
1479
- /** Pool vault for token1 (writable) */
1480
2165
  vault1: Address;
1481
- /** Token0 mint (read-only) */
1482
2166
  token0Mint: Address;
1483
- /** Token1 mint (read-only) */
1484
2167
  token1Mint: Address;
1485
- /** Recipient token0 account (writable) */
1486
- recipient0: Address;
1487
- /** Recipient token1 account (writable) */
1488
- recipient1: Address;
1489
- /** SPL Token program */
2168
+ userToken0: Address;
2169
+ userToken1: Address;
2170
+ user: Address | TransactionSigner;
2171
+ amountIn: bigint;
2172
+ minAmountOut: bigint;
2173
+ direction: SwapDirection;
2174
+ oracle?: Address;
2175
+ remainingAccounts?: RemainingAccount[];
2176
+ updateOracle?: boolean;
2177
+ token0Program?: Address;
2178
+ token1Program?: Address;
1490
2179
  tokenProgram?: Address;
1491
- }
1492
- /**
1493
- * Create a collect_protocol_fees instruction
1494
- *
1495
- * Collects accrued protocol fees from the protocol position and transfers them
1496
- * to the configured recipients.
1497
- *
1498
- * @param accounts - Required accounts for collecting protocol fees
1499
- * @param args - Instruction arguments (max0, max1)
1500
- * @param programId - Program ID (defaults to CPMM program)
1501
- * @returns Instruction to collect protocol fees
1502
- *
1503
- * @example
1504
- * ```ts
1505
- * const ix = createCollectProtocolFeesInstruction(
1506
- * {
1507
- * config: configAddress,
1508
- * pool: poolAddress,
1509
- * protocolPosition: protocolPositionAddress,
1510
- * admin: adminPublicKey,
1511
- * authority: authorityPda,
1512
- * vault0: vault0Address,
1513
- * vault1: vault1Address,
1514
- * token0Mint: mint0,
1515
- * token1Mint: mint1,
1516
- * recipient0: adminToken0Account,
1517
- * recipient1: adminToken1Account,
1518
- * },
1519
- * {
1520
- * max0: BigInt('18446744073709551615'),
1521
- * max1: BigInt('18446744073709551615'),
1522
- * }
1523
- * );
1524
- * ```
1525
- */
1526
- declare function createCollectProtocolFeesInstruction(accounts: CollectProtocolFeesAccounts, args: CollectProtocolFeesArgs, programId?: Address): Instruction;
1527
-
1528
- /**
1529
- * Accounts required for oracle_update instruction
1530
- */
1531
- interface OracleUpdateAccounts {
1532
- /** Pool account (read-only) */
1533
- pool: Address;
1534
- /** Oracle PDA to update (writable) */
1535
- oracle: Address;
1536
- }
1537
- /**
1538
- * Create an oracle_update instruction
1539
- *
1540
- * Updates the oracle with the current pool prices. This samples the current
1541
- * spot price, clamps it according to maxPriceChangeRatioQ64, and records
1542
- * a new observation if the observation interval has elapsed.
1543
- *
1544
- * This instruction is permissionless - anyone can call it to update the oracle.
1545
- *
1546
- * @param accounts - Required accounts for the instruction
1547
- * @param programId - Program ID (defaults to CPMM program)
1548
- * @returns Instruction to update the oracle
1549
- *
1550
- * @example
1551
- * ```ts
1552
- * const ix = createOracleUpdateInstruction({
1553
- * pool: poolAddress,
1554
- * oracle: oracleAddress,
1555
- * });
1556
- * ```
1557
- */
1558
- declare function createOracleUpdateInstruction(accounts: OracleUpdateAccounts, programId?: Address): Instruction;
1559
-
1560
- /**
1561
- * Accounts required for oracle_consult instruction
1562
- */
1563
- interface OracleConsultAccounts {
1564
- /** Pool account (read-only) */
1565
- pool: Address;
1566
- /** Oracle PDA to query (read-only) */
1567
- oracle: Address;
1568
- }
1569
- /**
1570
- * Result returned from oracle_consult via return data
1571
- */
1572
- interface OracleConsultResult {
1573
- /** TWAP price of token0 in token1 (Q64.64 fixed-point) */
1574
- price0Q64: bigint;
1575
- /** TWAP price of token1 in token0 (Q64.64 fixed-point) */
1576
- price1Q64: bigint;
1577
- }
1578
- /**
1579
- * Decode oracle_consult return data
1580
- */
1581
- declare function decodeOracleConsultResult(data: ReadonlyUint8Array): OracleConsultResult;
1582
- /**
1583
- * Create an oracle_consult instruction
1584
- *
1585
- * Queries the TWAP price from the oracle over the specified time window.
1586
- * The result is returned via Solana's return data mechanism.
1587
- *
1588
- * Note: To read the result, you must invoke this instruction via CPI or
1589
- * simulate the transaction and parse the return data.
1590
- *
1591
- * @param accounts - Required accounts for the instruction
1592
- * @param args - Instruction arguments (windowSeconds)
1593
- * @param programId - Program ID (defaults to CPMM program)
1594
- * @returns Instruction to consult the oracle
1595
- *
1596
- * @example
1597
- * ```ts
1598
- * const ix = createOracleConsultInstruction(
1599
- * {
1600
- * pool: poolAddress,
1601
- * oracle: oracleAddress,
1602
- * },
1603
- * {
1604
- * windowSeconds: 300, // 5-minute TWAP
1605
- * }
1606
- * );
1607
- * ```
1608
- */
1609
- declare function createOracleConsultInstruction(accounts: OracleConsultAccounts, args: OracleConsultArgs, programId?: Address): Instruction;
1610
-
1611
- /**
1612
- * Accounts required for quote_to_numeraire instruction
1613
- */
1614
- interface QuoteToNumeraireAccounts {
1615
- /** AmmConfig account (read-only) */
1616
- config: Address;
1617
- /** Starting pool for the route (read-only) */
1618
- startPool: Address;
1619
- /**
1620
- * Remaining accounts for routing:
1621
- * - [pool1?, pool2?, ...]
1622
- *
1623
- * Each hop requires the next pool in the route chain.
1624
- */
1625
- remainingAccounts?: Address[];
1626
- }
1627
- /**
1628
- * Result returned from quote_to_numeraire via return data
1629
- */
1630
- interface QuoteToNumeraireResult {
1631
- /** Amount converted to numeraire (u128) */
1632
- amountInNumeraire: bigint;
1633
- /** Final mint reached (should be numeraire) */
1634
- endMint: Address;
1635
- /** Number of hops used in the route */
1636
- hopsUsed: number;
1637
- }
1638
- /**
1639
- * Decode quote_to_numeraire return data
1640
- */
1641
- declare function decodeQuoteToNumeraireResult(data: ReadonlyUint8Array): QuoteToNumeraireResult;
1642
- /**
1643
- * Create a quote_to_numeraire instruction
1644
- *
1645
- * Converts an amount of one token to its value in the pool's numeraire
1646
- * via the routing chain using spot pricing. (TWAP is not supported in v0.1.)
1647
- *
1648
- * The result is returned via Solana's return data mechanism.
1649
- *
1650
- * @param accounts - Required accounts for the instruction
1651
- * @param args - Instruction arguments (amount, side, maxHops, useTwap, windowSeconds)
1652
- * @param programId - Program ID (defaults to CPMM program)
1653
- * @returns Instruction to quote amount in numeraire
1654
- *
1655
- * @example
1656
- * ```ts
1657
- * // Quote using spot prices (no TWAP)
1658
- * const ix = createQuoteToNumeraireInstruction(
1659
- * {
1660
- * config: configAddress,
1661
- * startPool: poolAddress,
1662
- * },
1663
- * {
1664
- * amount: 1000000n,
1665
- * side: 0, // token0
1666
- * maxHops: 3,
1667
- * useTwap: false,
1668
- * windowSeconds: 0,
1669
- * }
1670
- * );
1671
- * ```
1672
- */
1673
- declare function createQuoteToNumeraireInstruction(accounts: QuoteToNumeraireAccounts, args: QuoteToNumeraireArgs, programId?: Address): Instruction;
2180
+ programId?: Address;
2181
+ }): Instruction;
2182
+ declare const MAX_FEE_AMOUNT: bigint;
1674
2183
 
1675
2184
  /**
1676
2185
  * Pool fetching and utility functions for the CPMM SDK
@@ -1829,52 +2338,121 @@ declare function fetchConfigWithAddress(rpc: Rpc<GetAccountInfoApi>, programId?:
1829
2338
 
1830
2339
  declare const index$4_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
1831
2340
  declare const index$4_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
1832
- type index$4_AddLiquidityAccounts = AddLiquidityAccounts;
2341
+ declare const index$4_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
1833
2342
  declare const index$4_AddLiquidityArgs: typeof AddLiquidityArgs;
1834
- type index$4_AddLiquidityArgsWithOracle = AddLiquidityArgsWithOracle;
2343
+ type index$4_AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1835
2344
  declare const index$4_AddLiquidityEvent: typeof AddLiquidityEvent;
2345
+ type index$4_AddLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2346
+ type index$4_AddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddLiquidityInstruction<TProgram, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2347
+ type index$4_AddLiquidityInstructionData = AddLiquidityInstructionData;
2348
+ type index$4_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
1836
2349
  declare const index$4_AddLiquidityQuote: typeof AddLiquidityQuote;
1837
2350
  declare const index$4_AdminTransferredEvent: typeof AdminTransferredEvent;
1838
2351
  declare const index$4_AmmConfig: typeof AmmConfig;
1839
2352
  declare const index$4_BPS_DENOM: typeof BPS_DENOM;
2353
+ declare const index$4_CLOSE_POSITION_DISCRIMINATOR: typeof CLOSE_POSITION_DISCRIMINATOR;
2354
+ declare const index$4_COLLECT_FEES_DISCRIMINATOR: typeof COLLECT_FEES_DISCRIMINATOR;
2355
+ declare const index$4_COLLECT_PROTOCOL_FEES_DISCRIMINATOR: typeof COLLECT_PROTOCOL_FEES_DISCRIMINATOR;
1840
2356
  declare const index$4_CPMM_ERROR_MESSAGES: typeof CPMM_ERROR_MESSAGES;
1841
2357
  declare const index$4_CPMM_PROGRAM_ID: typeof CPMM_PROGRAM_ID;
1842
- type index$4_ClosePositionAccounts = ClosePositionAccounts;
1843
- type index$4_CollectFeesAccounts = CollectFeesAccounts;
2358
+ declare const index$4_CREATE_POSITION_DISCRIMINATOR: typeof CREATE_POSITION_DISCRIMINATOR;
2359
+ type index$4_ClosePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountRentRecipient extends string = string> = ClosePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>;
2360
+ type index$4_ClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentRecipient extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClosePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient, TRemainingAccounts>;
2361
+ type index$4_ClosePositionInstructionData = ClosePositionInstructionData;
2362
+ type index$4_ClosePositionInstructionDataArgs = ClosePositionInstructionDataArgs;
1844
2363
  declare const index$4_CollectFeesArgs: typeof CollectFeesArgs;
2364
+ type index$4_CollectFeesAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
1845
2365
  declare const index$4_CollectFeesEvent: typeof CollectFeesEvent;
1846
- type index$4_CollectProtocolFeesAccounts = CollectProtocolFeesAccounts;
2366
+ type index$4_CollectFeesInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
2367
+ type index$4_CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectFeesInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2368
+ type index$4_CollectFeesInstructionData = CollectFeesInstructionData;
2369
+ type index$4_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs;
1847
2370
  declare const index$4_CollectProtocolFeesArgs: typeof CollectProtocolFeesArgs;
2371
+ type index$4_CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectProtocolFeesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
1848
2372
  declare const index$4_CollectProtocolFeesEvent: typeof CollectProtocolFeesEvent;
2373
+ type index$4_CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountRecipient0 extends string = string, TAccountRecipient1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectProtocolFeesInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2374
+ type index$4_CollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectProtocolFeesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2375
+ type index$4_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData;
2376
+ type index$4_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs;
1849
2377
  type index$4_CpmmError = CpmmError;
1850
2378
  declare const index$4_CpmmError: typeof CpmmError;
1851
2379
  type index$4_CpmmErrorCode = CpmmErrorCode;
1852
2380
  declare const index$4_CpmmErrorCode: typeof CpmmErrorCode;
1853
- type index$4_CreatePositionAccounts = CreatePositionAccounts;
1854
2381
  declare const index$4_CreatePositionArgs: typeof CreatePositionArgs;
2382
+ type index$4_CreatePositionAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2383
+ type index$4_CreatePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2384
+ type index$4_CreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CreatePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram, TRemainingAccounts>;
2385
+ type index$4_CreatePositionInstructionData = CreatePositionInstructionData;
2386
+ type index$4_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs;
1855
2387
  declare const index$4_CurveParams: typeof CurveParams;
1856
2388
  declare const index$4_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput;
1857
2389
  declare const index$4_FeesUpdatedEvent: typeof FeesUpdatedEvent;
1858
2390
  declare const index$4_FetchOracleConfig: typeof FetchOracleConfig;
1859
2391
  type index$4_FetchPoolsConfig = FetchPoolsConfig;
1860
2392
  declare const index$4_FetchPositionsConfig: typeof FetchPositionsConfig;
2393
+ declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
2394
+ declare const index$4_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
1861
2395
  declare const index$4_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
1862
- type index$4_InitializeOracleAccounts = InitializeOracleAccounts;
1863
- type index$4_InitializePoolAccounts = InitializePoolAccounts;
2396
+ type index$4_InitializeConfigAsyncInput<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
2397
+ type index$4_InitializeConfigInput<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
2398
+ type index$4_InitializeConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram, TRemainingAccounts>;
2399
+ type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
2400
+ type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
2401
+ type index$4_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>;
1864
2402
  declare const index$4_InitializePoolArgs: typeof InitializePoolArgs;
2403
+ type index$4_InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition 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> = InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2404
+ type index$4_InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolPosition 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> = InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2405
+ type index$4_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2406
+ type index$4_InitializePoolInstructionData = InitializePoolInstructionData;
2407
+ type index$4_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
1865
2408
  declare const index$4_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
1866
2409
  declare const index$4_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
1867
2410
  declare const index$4_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
1868
2411
  declare const index$4_MarketCapValidationResult: typeof MarketCapValidationResult;
2412
+ declare const index$4_ORACLE_CONSULT_DISCRIMINATOR: typeof ORACLE_CONSULT_DISCRIMINATOR;
2413
+ declare const index$4_ORACLE_UPDATE_DISCRIMINATOR: typeof ORACLE_UPDATE_DISCRIMINATOR;
1869
2414
  declare const index$4_Observation: typeof Observation;
1870
- type index$4_OracleConsultAccounts = OracleConsultAccounts;
1871
2415
  declare const index$4_OracleConsultArgs: typeof OracleConsultArgs;
1872
- type index$4_OracleConsultResult = OracleConsultResult;
2416
+ type index$4_OracleConsultAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultAsyncInput<TAccountPool, TAccountOracle>;
2417
+ type index$4_OracleConsultInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultInput<TAccountPool, TAccountOracle>;
2418
+ type index$4_OracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleConsultInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2419
+ type index$4_OracleConsultInstructionData = OracleConsultInstructionData;
2420
+ type index$4_OracleConsultInstructionDataArgs = OracleConsultInstructionDataArgs;
1873
2421
  declare const index$4_OracleInitializedEvent: typeof OracleInitializedEvent;
1874
- type index$4_OracleUpdateAccounts = OracleUpdateAccounts;
2422
+ type index$4_OracleUpdateAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateAsyncInput<TAccountPool, TAccountOracle>;
2423
+ type index$4_OracleUpdateInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateInput<TAccountPool, TAccountOracle>;
2424
+ type index$4_OracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleUpdateInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2425
+ type index$4_OracleUpdateInstructionData = OracleUpdateInstructionData;
2426
+ type index$4_OracleUpdateInstructionDataArgs = OracleUpdateInstructionDataArgs;
1875
2427
  declare const index$4_OracleUpdatedEvent: typeof OracleUpdatedEvent;
1876
2428
  declare const index$4_OracleWithAddress: typeof OracleWithAddress;
1877
- type index$4_PauseAccounts = PauseAccounts;
2429
+ declare const index$4_PAUSE_DISCRIMINATOR: typeof PAUSE_DISCRIMINATOR;
2430
+ declare const index$4_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: typeof PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR;
2431
+ type index$4_ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddLiquidityInstruction<TProgram, TAccountMetas>;
2432
+ type index$4_ParsedClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedClosePositionInstruction<TProgram, TAccountMetas>;
2433
+ type index$4_ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectFeesInstruction<TProgram, TAccountMetas>;
2434
+ type index$4_ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
2435
+ type index$4_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
2436
+ type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
2437
+ type index$4_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
2438
+ type index$4_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
2439
+ type index$4_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
2440
+ type index$4_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
2441
+ type index$4_ParsedPreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPreviewSwapExactInInstruction<TProgram, TAccountMetas>;
2442
+ type index$4_ParsedQuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedQuoteToNumeraireInstruction<TProgram, TAccountMetas>;
2443
+ type index$4_ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
2444
+ type index$4_ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetFeesInstruction<TProgram, TAccountMetas>;
2445
+ type index$4_ParsedSetRouteInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetRouteInstruction<TProgram, TAccountMetas>;
2446
+ type index$4_ParsedSetSentinelInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetSentinelInstruction<TProgram, TAccountMetas>;
2447
+ type index$4_ParsedSkimInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSkimInstruction<TProgram, TAccountMetas>;
2448
+ type index$4_ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
2449
+ type index$4_ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
2450
+ type index$4_ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUnpauseInstruction<TProgram, TAccountMetas>;
2451
+ type index$4_ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2452
+ type index$4_PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = PauseInput<TAccountConfig, TAccountAdmin>;
2453
+ type index$4_PauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2454
+ type index$4_PauseInstructionData = PauseInstructionData;
2455
+ type index$4_PauseInstructionDataArgs = PauseInstructionDataArgs;
1878
2456
  declare const index$4_PausedEvent: typeof PausedEvent;
1879
2457
  declare const index$4_Pool: typeof Pool;
1880
2458
  declare const index$4_PoolInitializedEvent: typeof PoolInitializedEvent;
@@ -1884,13 +2462,25 @@ declare const index$4_PositionClosedEvent: typeof PositionClosedEvent;
1884
2462
  declare const index$4_PositionCreatedEvent: typeof PositionCreatedEvent;
1885
2463
  declare const index$4_PositionValue: typeof PositionValue;
1886
2464
  declare const index$4_PositionWithAddress: typeof PositionWithAddress;
2465
+ type index$4_PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string> = PreviewSwapExactInInput<TAccountConfig, TAccountPool>;
2466
+ type index$4_PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PreviewSwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TRemainingAccounts>;
2467
+ type index$4_PreviewSwapExactInInstructionData = PreviewSwapExactInInstructionData;
2468
+ type index$4_PreviewSwapExactInInstructionDataArgs = PreviewSwapExactInInstructionDataArgs;
1887
2469
  declare const index$4_Q64_ONE: typeof Q64_ONE;
1888
- type index$4_QuoteToNumeraireAccounts = QuoteToNumeraireAccounts;
2470
+ declare const index$4_QUOTE_TO_NUMERAIRE_DISCRIMINATOR: typeof QUOTE_TO_NUMERAIRE_DISCRIMINATOR;
1889
2471
  declare const index$4_QuoteToNumeraireArgs: typeof QuoteToNumeraireArgs;
1890
- type index$4_QuoteToNumeraireResult = QuoteToNumeraireResult;
1891
- type index$4_RemoveLiquidityAccounts = RemoveLiquidityAccounts;
2472
+ type index$4_QuoteToNumeraireInput<TAccountConfig extends string = string, TAccountStartPool extends string = string> = QuoteToNumeraireInput<TAccountConfig, TAccountStartPool>;
2473
+ type index$4_QuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountStartPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = QuoteToNumeraireInstruction<TProgram, TAccountConfig, TAccountStartPool, TRemainingAccounts>;
2474
+ type index$4_QuoteToNumeraireInstructionData = QuoteToNumeraireInstructionData;
2475
+ type index$4_QuoteToNumeraireInstructionDataArgs = QuoteToNumeraireInstructionDataArgs;
2476
+ declare const index$4_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR;
1892
2477
  declare const index$4_RemoveLiquidityArgs: typeof RemoveLiquidityArgs;
2478
+ type index$4_RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1893
2479
  declare const index$4_RemoveLiquidityEvent: typeof RemoveLiquidityEvent;
2480
+ type index$4_RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2481
+ type index$4_RemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountProtocolPosition extends string | AccountMeta<string> = string, TAccountOwner 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, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveLiquidityInstruction<TProgram, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2482
+ type index$4_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData;
2483
+ type index$4_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs;
1894
2484
  declare const index$4_RemoveLiquidityQuote: typeof RemoveLiquidityQuote;
1895
2485
  declare const index$4_RouteUpdatedEvent: typeof RouteUpdatedEvent;
1896
2486
  declare const index$4_SEED_AUTHORITY: typeof SEED_AUTHORITY;
@@ -1898,33 +2488,70 @@ declare const index$4_SEED_ORACLE: typeof SEED_ORACLE;
1898
2488
  declare const index$4_SEED_POOL: typeof SEED_POOL;
1899
2489
  declare const index$4_SEED_POSITION: typeof SEED_POSITION;
1900
2490
  declare const index$4_SEED_PROTOCOL_POSITION: typeof SEED_PROTOCOL_POSITION;
2491
+ declare const index$4_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2492
+ declare const index$4_SET_ROUTE_DISCRIMINATOR: typeof SET_ROUTE_DISCRIMINATOR;
2493
+ declare const index$4_SET_SENTINEL_DISCRIMINATOR: typeof SET_SENTINEL_DISCRIMINATOR;
1901
2494
  declare const index$4_SF_AFTER_ADD_LIQ: typeof SF_AFTER_ADD_LIQ;
1902
2495
  declare const index$4_SF_AFTER_REMOVE_LIQ: typeof SF_AFTER_REMOVE_LIQ;
1903
2496
  declare const index$4_SF_BEFORE_ADD_LIQ: typeof SF_BEFORE_ADD_LIQ;
1904
2497
  declare const index$4_SF_BEFORE_REMOVE_LIQ: typeof SF_BEFORE_REMOVE_LIQ;
2498
+ declare const index$4_SF_FORWARD_READONLY_SIGNERS: typeof SF_FORWARD_READONLY_SIGNERS;
2499
+ declare const index$4_SF_REQUIRE_ORACLE: typeof SF_REQUIRE_ORACLE;
2500
+ declare const index$4_SKIM_DISCRIMINATOR: typeof SKIM_DISCRIMINATOR;
2501
+ declare const index$4_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
1905
2502
  declare const index$4_SentinelErrorEvent: typeof SentinelErrorEvent;
1906
2503
  declare const index$4_SentinelInvokedEvent: typeof SentinelInvokedEvent;
1907
2504
  declare const index$4_SentinelUpdatedEvent: typeof SentinelUpdatedEvent;
1908
- type index$4_SetFeesAccounts = SetFeesAccounts;
1909
2505
  declare const index$4_SetFeesArgs: typeof SetFeesArgs;
1910
- type index$4_SetRouteAccounts = SetRouteAccounts;
2506
+ type index$4_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2507
+ type index$4_SetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetFeesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TRemainingAccounts>;
2508
+ type index$4_SetFeesInstructionData = SetFeesInstructionData;
2509
+ type index$4_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs;
1911
2510
  declare const index$4_SetRouteArgs: typeof SetRouteArgs;
1912
- type index$4_SetSentinelAccounts = SetSentinelAccounts;
2511
+ type index$4_SetRouteInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountNextPool extends string = string, TAccountAdmin extends string = string> = SetRouteInput<TAccountConfig, TAccountPool, TAccountNextPool, TAccountAdmin>;
2512
+ type index$4_SetRouteInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountNextPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetRouteInstruction<TProgram, TAccountConfig, TAccountPool, TAccountNextPool, TAccountAdmin, TRemainingAccounts>;
2513
+ type index$4_SetRouteInstructionData = SetRouteInstructionData;
2514
+ type index$4_SetRouteInstructionDataArgs = SetRouteInstructionDataArgs;
1913
2515
  declare const index$4_SetSentinelArgs: typeof SetSentinelArgs;
1914
- type index$4_SkimAccounts = SkimAccounts;
2516
+ type index$4_SetSentinelInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetSentinelInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2517
+ type index$4_SetSentinelInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetSentinelInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TRemainingAccounts>;
2518
+ type index$4_SetSentinelInstructionData = SetSentinelInstructionData;
2519
+ type index$4_SetSentinelInstructionDataArgs = SetSentinelInstructionDataArgs;
2520
+ type index$4_SkimAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = SkimAsyncInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
2521
+ type index$4_SkimInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountAdminAta0 extends string = string, TAccountAdminAta1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = SkimInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
2522
+ type index$4_SkimInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountAdminAta0 extends string | AccountMeta<string> = string, TAccountAdminAta1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SkimInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2523
+ type index$4_SkimInstructionData = SkimInstructionData;
2524
+ type index$4_SkimInstructionDataArgs = SkimInstructionDataArgs;
1915
2525
  declare const index$4_SkimmedEvent: typeof SkimmedEvent;
1916
2526
  declare const index$4_SwapDirection: typeof SwapDirection;
1917
2527
  declare const index$4_SwapEvent: typeof SwapEvent;
1918
- type index$4_SwapExactInAccounts = SwapExactInAccounts;
1919
2528
  declare const index$4_SwapExactInArgs: typeof SwapExactInArgs;
2529
+ type index$4_SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2530
+ type index$4_SwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2531
+ type index$4_SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2532
+ type index$4_SwapExactInInstructionData = SwapExactInInstructionData;
2533
+ type index$4_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs;
1920
2534
  declare const index$4_SwapQuote: typeof SwapQuote;
1921
2535
  declare const index$4_SwapQuoteExactOut: typeof SwapQuoteExactOut;
1922
2536
  declare const index$4_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID;
1923
- type index$4_TransferAdminAccounts = TransferAdminAccounts;
2537
+ declare const index$4_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR;
1924
2538
  declare const index$4_TransferAdminArgs: typeof TransferAdminArgs;
2539
+ type index$4_TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = TransferAdminInput<TAccountConfig, TAccountAdmin>;
2540
+ type index$4_TransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = TransferAdminInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2541
+ type index$4_TransferAdminInstructionData = TransferAdminInstructionData;
2542
+ type index$4_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs;
1925
2543
  declare const index$4_TwapResult: typeof TwapResult;
1926
- type index$4_UnpauseAccounts = UnpauseAccounts;
2544
+ declare const index$4_UNPAUSE_DISCRIMINATOR: typeof UNPAUSE_DISCRIMINATOR;
2545
+ declare const index$4_UPDATE_CONFIG_DISCRIMINATOR: typeof UPDATE_CONFIG_DISCRIMINATOR;
2546
+ type index$4_UnpauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UnpauseInput<TAccountConfig, TAccountAdmin>;
2547
+ type index$4_UnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UnpauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2548
+ type index$4_UnpauseInstructionData = UnpauseInstructionData;
2549
+ type index$4_UnpauseInstructionDataArgs = UnpauseInstructionDataArgs;
1927
2550
  declare const index$4_UnpausedEvent: typeof UnpausedEvent;
2551
+ type index$4_UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UpdateConfigInput<TAccountConfig, TAccountAdmin>;
2552
+ type index$4_UpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UpdateConfigInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2553
+ type index$4_UpdateConfigInstructionData = UpdateConfigInstructionData;
2554
+ type index$4_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs;
1928
2555
  declare const index$4_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
1929
2556
  declare const index$4_ammConfigDataCodec: typeof ammConfigDataCodec;
1930
2557
  declare const index$4_areMintsOrdered: typeof areMintsOrdered;
@@ -1938,33 +2565,12 @@ declare const index$4_comparePoolAndOraclePrices: typeof comparePoolAndOraclePri
1938
2565
  declare const index$4_computePrice0Q64: typeof computePrice0Q64;
1939
2566
  declare const index$4_computePrice1Q64: typeof computePrice1Q64;
1940
2567
  declare const index$4_consultTwap: typeof consultTwap;
1941
- declare const index$4_createAddLiquidityInstruction: typeof createAddLiquidityInstruction;
1942
- declare const index$4_createClosePositionInstruction: typeof createClosePositionInstruction;
1943
- declare const index$4_createCollectFeesInstruction: typeof createCollectFeesInstruction;
1944
- declare const index$4_createCollectProtocolFeesInstruction: typeof createCollectProtocolFeesInstruction;
1945
- declare const index$4_createCreatePositionInstruction: typeof createCreatePositionInstruction;
1946
- declare const index$4_createInitializeOracleInstruction: typeof createInitializeOracleInstruction;
1947
- declare const index$4_createInitializePoolInstruction: typeof createInitializePoolInstruction;
1948
- declare const index$4_createOracleConsultInstruction: typeof createOracleConsultInstruction;
1949
- declare const index$4_createOracleUpdateInstruction: typeof createOracleUpdateInstruction;
1950
- declare const index$4_createPauseInstruction: typeof createPauseInstruction;
1951
2568
  declare const index$4_createPositionArgsCodec: typeof createPositionArgsCodec;
1952
- declare const index$4_createQuoteToNumeraireInstruction: typeof createQuoteToNumeraireInstruction;
1953
- declare const index$4_createRemoveLiquidityInstruction: typeof createRemoveLiquidityInstruction;
1954
- declare const index$4_createSetFeesInstruction: typeof createSetFeesInstruction;
1955
- declare const index$4_createSetRouteInstruction: typeof createSetRouteInstruction;
1956
- declare const index$4_createSetSentinelInstruction: typeof createSetSentinelInstruction;
1957
- declare const index$4_createSkimInstruction: typeof createSkimInstruction;
1958
- declare const index$4_createSwapExactInInstruction: typeof createSwapExactInInstruction;
1959
2569
  declare const index$4_createSwapInstruction: typeof createSwapInstruction;
1960
- declare const index$4_createTransferAdminInstruction: typeof createTransferAdminInstruction;
1961
- declare const index$4_createUnpauseInstruction: typeof createUnpauseInstruction;
1962
2570
  declare const index$4_curveParamsToMarketCap: typeof curveParamsToMarketCap;
1963
2571
  declare const index$4_decodeAmmConfig: typeof decodeAmmConfig;
1964
- declare const index$4_decodeOracleConsultResult: typeof decodeOracleConsultResult;
1965
2572
  declare const index$4_decodePool: typeof decodePool;
1966
2573
  declare const index$4_decodePosition: typeof decodePosition;
1967
- declare const index$4_decodeQuoteToNumeraireResult: typeof decodeQuoteToNumeraireResult;
1968
2574
  declare const index$4_encodeAddLiquidityArgs: typeof encodeAddLiquidityArgs;
1969
2575
  declare const index$4_encodeCollectFeesArgs: typeof encodeCollectFeesArgs;
1970
2576
  declare const index$4_encodeCollectProtocolFeesArgs: typeof encodeCollectProtocolFeesArgs;
@@ -1995,8 +2601,50 @@ declare const index$4_fetchPositionsBatch: typeof fetchPositionsBatch;
1995
2601
  declare const index$4_fetchUserPositions: typeof fetchUserPositions;
1996
2602
  declare const index$4_filterActivePositions: typeof filterActivePositions;
1997
2603
  declare const index$4_filterPoolsByMint: typeof filterPoolsByMint;
2604
+ declare const index$4_getAddLiquidityDiscriminatorBytes: typeof getAddLiquidityDiscriminatorBytes;
2605
+ declare const index$4_getAddLiquidityInstruction: typeof getAddLiquidityInstruction;
2606
+ declare const index$4_getAddLiquidityInstructionAsync: typeof getAddLiquidityInstructionAsync;
2607
+ declare const index$4_getAddLiquidityInstructionDataCodec: typeof getAddLiquidityInstructionDataCodec;
2608
+ declare const index$4_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder;
2609
+ declare const index$4_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder;
1998
2610
  declare const index$4_getAddLiquidityQuote: typeof getAddLiquidityQuote;
2611
+ declare const index$4_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes;
2612
+ declare const index$4_getClosePositionInstruction: typeof getClosePositionInstruction;
2613
+ declare const index$4_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec;
2614
+ declare const index$4_getClosePositionInstructionDataDecoder: typeof getClosePositionInstructionDataDecoder;
2615
+ declare const index$4_getClosePositionInstructionDataEncoder: typeof getClosePositionInstructionDataEncoder;
2616
+ declare const index$4_getCollectFeesDiscriminatorBytes: typeof getCollectFeesDiscriminatorBytes;
2617
+ declare const index$4_getCollectFeesInstruction: typeof getCollectFeesInstruction;
2618
+ declare const index$4_getCollectFeesInstructionAsync: typeof getCollectFeesInstructionAsync;
2619
+ declare const index$4_getCollectFeesInstructionDataCodec: typeof getCollectFeesInstructionDataCodec;
2620
+ declare const index$4_getCollectFeesInstructionDataDecoder: typeof getCollectFeesInstructionDataDecoder;
2621
+ declare const index$4_getCollectFeesInstructionDataEncoder: typeof getCollectFeesInstructionDataEncoder;
2622
+ declare const index$4_getCollectProtocolFeesDiscriminatorBytes: typeof getCollectProtocolFeesDiscriminatorBytes;
2623
+ declare const index$4_getCollectProtocolFeesInstruction: typeof getCollectProtocolFeesInstruction;
2624
+ declare const index$4_getCollectProtocolFeesInstructionAsync: typeof getCollectProtocolFeesInstructionAsync;
2625
+ declare const index$4_getCollectProtocolFeesInstructionDataCodec: typeof getCollectProtocolFeesInstructionDataCodec;
2626
+ declare const index$4_getCollectProtocolFeesInstructionDataDecoder: typeof getCollectProtocolFeesInstructionDataDecoder;
2627
+ declare const index$4_getCollectProtocolFeesInstructionDataEncoder: typeof getCollectProtocolFeesInstructionDataEncoder;
2628
+ declare const index$4_getCreatePositionDiscriminatorBytes: typeof getCreatePositionDiscriminatorBytes;
2629
+ declare const index$4_getCreatePositionInstruction: typeof getCreatePositionInstruction;
2630
+ declare const index$4_getCreatePositionInstructionAsync: typeof getCreatePositionInstructionAsync;
2631
+ declare const index$4_getCreatePositionInstructionDataCodec: typeof getCreatePositionInstructionDataCodec;
2632
+ declare const index$4_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder;
2633
+ declare const index$4_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder;
1999
2634
  declare const index$4_getErrorMessage: typeof getErrorMessage;
2635
+ declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
2636
+ declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
2637
+ declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
2638
+ declare const index$4_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec;
2639
+ declare const index$4_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder;
2640
+ declare const index$4_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder;
2641
+ declare const index$4_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync;
2642
+ declare const index$4_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes;
2643
+ declare const index$4_getInitializePoolInstruction: typeof getInitializePoolInstruction;
2644
+ declare const index$4_getInitializePoolInstructionAsync: typeof getInitializePoolInstructionAsync;
2645
+ declare const index$4_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec;
2646
+ declare const index$4_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder;
2647
+ declare const index$4_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder;
2000
2648
  declare const index$4_getK: typeof getK;
2001
2649
  declare const index$4_getLiquidityAddresses: typeof getLiquidityAddresses;
2002
2650
  declare const index$4_getMetadataAddress: typeof getMetadataAddress;
@@ -2004,9 +2652,26 @@ declare const index$4_getOracleAddress: typeof getOracleAddress;
2004
2652
  declare const index$4_getOracleAddressFromPool: typeof getOracleAddressFromPool;
2005
2653
  declare const index$4_getOracleAge: typeof getOracleAge;
2006
2654
  declare const index$4_getOracleBufferStats: typeof getOracleBufferStats;
2655
+ declare const index$4_getOracleConsultDiscriminatorBytes: typeof getOracleConsultDiscriminatorBytes;
2656
+ declare const index$4_getOracleConsultInstruction: typeof getOracleConsultInstruction;
2657
+ declare const index$4_getOracleConsultInstructionAsync: typeof getOracleConsultInstructionAsync;
2658
+ declare const index$4_getOracleConsultInstructionDataCodec: typeof getOracleConsultInstructionDataCodec;
2659
+ declare const index$4_getOracleConsultInstructionDataDecoder: typeof getOracleConsultInstructionDataDecoder;
2660
+ declare const index$4_getOracleConsultInstructionDataEncoder: typeof getOracleConsultInstructionDataEncoder;
2007
2661
  declare const index$4_getOracleDeviation: typeof getOracleDeviation;
2008
2662
  declare const index$4_getOracleForPool: typeof getOracleForPool;
2009
2663
  declare const index$4_getOracleSpotPrices: typeof getOracleSpotPrices;
2664
+ declare const index$4_getOracleUpdateDiscriminatorBytes: typeof getOracleUpdateDiscriminatorBytes;
2665
+ declare const index$4_getOracleUpdateInstruction: typeof getOracleUpdateInstruction;
2666
+ declare const index$4_getOracleUpdateInstructionAsync: typeof getOracleUpdateInstructionAsync;
2667
+ declare const index$4_getOracleUpdateInstructionDataCodec: typeof getOracleUpdateInstructionDataCodec;
2668
+ declare const index$4_getOracleUpdateInstructionDataDecoder: typeof getOracleUpdateInstructionDataDecoder;
2669
+ declare const index$4_getOracleUpdateInstructionDataEncoder: typeof getOracleUpdateInstructionDataEncoder;
2670
+ declare const index$4_getPauseDiscriminatorBytes: typeof getPauseDiscriminatorBytes;
2671
+ declare const index$4_getPauseInstruction: typeof getPauseInstruction;
2672
+ declare const index$4_getPauseInstructionDataCodec: typeof getPauseInstructionDataCodec;
2673
+ declare const index$4_getPauseInstructionDataDecoder: typeof getPauseInstructionDataDecoder;
2674
+ declare const index$4_getPauseInstructionDataEncoder: typeof getPauseInstructionDataEncoder;
2010
2675
  declare const index$4_getPendingFees: typeof getPendingFees;
2011
2676
  declare const index$4_getPoolAddress: typeof getPoolAddress;
2012
2677
  declare const index$4_getPoolAddressFromMints: typeof getPoolAddressFromMints;
@@ -2018,14 +2683,72 @@ declare const index$4_getPoolVault1Address: typeof getPoolVault1Address;
2018
2683
  declare const index$4_getPositionAddress: typeof getPositionAddress;
2019
2684
  declare const index$4_getPositionAddressFromParams: typeof getPositionAddressFromParams;
2020
2685
  declare const index$4_getPositionValue: typeof getPositionValue;
2686
+ declare const index$4_getPreviewSwapExactInDiscriminatorBytes: typeof getPreviewSwapExactInDiscriminatorBytes;
2687
+ declare const index$4_getPreviewSwapExactInInstruction: typeof getPreviewSwapExactInInstruction;
2688
+ declare const index$4_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec;
2689
+ declare const index$4_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder;
2690
+ declare const index$4_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder;
2021
2691
  declare const index$4_getProtocolPositionAddress: typeof getProtocolPositionAddress;
2692
+ declare const index$4_getQuoteToNumeraireDiscriminatorBytes: typeof getQuoteToNumeraireDiscriminatorBytes;
2693
+ declare const index$4_getQuoteToNumeraireInstruction: typeof getQuoteToNumeraireInstruction;
2694
+ declare const index$4_getQuoteToNumeraireInstructionDataCodec: typeof getQuoteToNumeraireInstructionDataCodec;
2695
+ declare const index$4_getQuoteToNumeraireInstructionDataDecoder: typeof getQuoteToNumeraireInstructionDataDecoder;
2696
+ declare const index$4_getQuoteToNumeraireInstructionDataEncoder: typeof getQuoteToNumeraireInstructionDataEncoder;
2697
+ declare const index$4_getRemoveLiquidityDiscriminatorBytes: typeof getRemoveLiquidityDiscriminatorBytes;
2698
+ declare const index$4_getRemoveLiquidityInstruction: typeof getRemoveLiquidityInstruction;
2699
+ declare const index$4_getRemoveLiquidityInstructionAsync: typeof getRemoveLiquidityInstructionAsync;
2700
+ declare const index$4_getRemoveLiquidityInstructionDataCodec: typeof getRemoveLiquidityInstructionDataCodec;
2701
+ declare const index$4_getRemoveLiquidityInstructionDataDecoder: typeof getRemoveLiquidityInstructionDataDecoder;
2702
+ declare const index$4_getRemoveLiquidityInstructionDataEncoder: typeof getRemoveLiquidityInstructionDataEncoder;
2022
2703
  declare const index$4_getRemoveLiquidityQuote: typeof getRemoveLiquidityQuote;
2704
+ declare const index$4_getSetFeesDiscriminatorBytes: typeof getSetFeesDiscriminatorBytes;
2705
+ declare const index$4_getSetFeesInstruction: typeof getSetFeesInstruction;
2706
+ declare const index$4_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec;
2707
+ declare const index$4_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder;
2708
+ declare const index$4_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder;
2709
+ declare const index$4_getSetRouteDiscriminatorBytes: typeof getSetRouteDiscriminatorBytes;
2710
+ declare const index$4_getSetRouteInstruction: typeof getSetRouteInstruction;
2711
+ declare const index$4_getSetRouteInstructionDataCodec: typeof getSetRouteInstructionDataCodec;
2712
+ declare const index$4_getSetRouteInstructionDataDecoder: typeof getSetRouteInstructionDataDecoder;
2713
+ declare const index$4_getSetRouteInstructionDataEncoder: typeof getSetRouteInstructionDataEncoder;
2714
+ declare const index$4_getSetSentinelDiscriminatorBytes: typeof getSetSentinelDiscriminatorBytes;
2715
+ declare const index$4_getSetSentinelInstruction: typeof getSetSentinelInstruction;
2716
+ declare const index$4_getSetSentinelInstructionDataCodec: typeof getSetSentinelInstructionDataCodec;
2717
+ declare const index$4_getSetSentinelInstructionDataDecoder: typeof getSetSentinelInstructionDataDecoder;
2718
+ declare const index$4_getSetSentinelInstructionDataEncoder: typeof getSetSentinelInstructionDataEncoder;
2719
+ declare const index$4_getSkimDiscriminatorBytes: typeof getSkimDiscriminatorBytes;
2720
+ declare const index$4_getSkimInstruction: typeof getSkimInstruction;
2721
+ declare const index$4_getSkimInstructionAsync: typeof getSkimInstructionAsync;
2722
+ declare const index$4_getSkimInstructionDataCodec: typeof getSkimInstructionDataCodec;
2723
+ declare const index$4_getSkimInstructionDataDecoder: typeof getSkimInstructionDataDecoder;
2724
+ declare const index$4_getSkimInstructionDataEncoder: typeof getSkimInstructionDataEncoder;
2023
2725
  declare const index$4_getSpotPrice0: typeof getSpotPrice0;
2024
2726
  declare const index$4_getSpotPrice1: typeof getSpotPrice1;
2025
2727
  declare const index$4_getSwapAddresses: typeof getSwapAddresses;
2728
+ declare const index$4_getSwapExactInDiscriminatorBytes: typeof getSwapExactInDiscriminatorBytes;
2729
+ declare const index$4_getSwapExactInInstruction: typeof getSwapExactInInstruction;
2730
+ declare const index$4_getSwapExactInInstructionAsync: typeof getSwapExactInInstructionAsync;
2731
+ declare const index$4_getSwapExactInInstructionDataCodec: typeof getSwapExactInInstructionDataCodec;
2732
+ declare const index$4_getSwapExactInInstructionDataDecoder: typeof getSwapExactInInstructionDataDecoder;
2733
+ declare const index$4_getSwapExactInInstructionDataEncoder: typeof getSwapExactInInstructionDataEncoder;
2026
2734
  declare const index$4_getSwapQuote: typeof getSwapQuote;
2027
2735
  declare const index$4_getSwapQuoteExactOut: typeof getSwapQuoteExactOut;
2736
+ declare const index$4_getTransferAdminDiscriminatorBytes: typeof getTransferAdminDiscriminatorBytes;
2737
+ declare const index$4_getTransferAdminInstruction: typeof getTransferAdminInstruction;
2738
+ declare const index$4_getTransferAdminInstructionDataCodec: typeof getTransferAdminInstructionDataCodec;
2739
+ declare const index$4_getTransferAdminInstructionDataDecoder: typeof getTransferAdminInstructionDataDecoder;
2740
+ declare const index$4_getTransferAdminInstructionDataEncoder: typeof getTransferAdminInstructionDataEncoder;
2028
2741
  declare const index$4_getTvl: typeof getTvl;
2742
+ declare const index$4_getUnpauseDiscriminatorBytes: typeof getUnpauseDiscriminatorBytes;
2743
+ declare const index$4_getUnpauseInstruction: typeof getUnpauseInstruction;
2744
+ declare const index$4_getUnpauseInstructionDataCodec: typeof getUnpauseInstructionDataCodec;
2745
+ declare const index$4_getUnpauseInstructionDataDecoder: typeof getUnpauseInstructionDataDecoder;
2746
+ declare const index$4_getUnpauseInstructionDataEncoder: typeof getUnpauseInstructionDataEncoder;
2747
+ declare const index$4_getUpdateConfigDiscriminatorBytes: typeof getUpdateConfigDiscriminatorBytes;
2748
+ declare const index$4_getUpdateConfigInstruction: typeof getUpdateConfigInstruction;
2749
+ declare const index$4_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec;
2750
+ declare const index$4_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder;
2751
+ declare const index$4_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder;
2029
2752
  declare const index$4_initializeConfigArgsCodec: typeof initializeConfigArgsCodec;
2030
2753
  declare const index$4_initializeOracleArgsCodec: typeof initializeOracleArgsCodec;
2031
2754
  declare const index$4_initializePoolArgsCodec: typeof initializePoolArgsCodec;
@@ -2041,7 +2764,28 @@ declare const index$4_numberToQ64: typeof numberToQ64;
2041
2764
  declare const index$4_observationCodec: typeof observationCodec;
2042
2765
  declare const index$4_oracleConsultArgsCodec: typeof oracleConsultArgsCodec;
2043
2766
  declare const index$4_oracleStateDataCodec: typeof oracleStateDataCodec;
2767
+ declare const index$4_parseAddLiquidityInstruction: typeof parseAddLiquidityInstruction;
2768
+ declare const index$4_parseClosePositionInstruction: typeof parseClosePositionInstruction;
2769
+ declare const index$4_parseCollectFeesInstruction: typeof parseCollectFeesInstruction;
2770
+ declare const index$4_parseCollectProtocolFeesInstruction: typeof parseCollectProtocolFeesInstruction;
2771
+ declare const index$4_parseCreatePositionInstruction: typeof parseCreatePositionInstruction;
2044
2772
  declare const index$4_parseErrorFromLogs: typeof parseErrorFromLogs;
2773
+ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
2774
+ declare const index$4_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
2775
+ declare const index$4_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
2776
+ declare const index$4_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
2777
+ declare const index$4_parsePauseInstruction: typeof parsePauseInstruction;
2778
+ declare const index$4_parsePreviewSwapExactInInstruction: typeof parsePreviewSwapExactInInstruction;
2779
+ declare const index$4_parseQuoteToNumeraireInstruction: typeof parseQuoteToNumeraireInstruction;
2780
+ declare const index$4_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction;
2781
+ declare const index$4_parseSetFeesInstruction: typeof parseSetFeesInstruction;
2782
+ declare const index$4_parseSetRouteInstruction: typeof parseSetRouteInstruction;
2783
+ declare const index$4_parseSetSentinelInstruction: typeof parseSetSentinelInstruction;
2784
+ declare const index$4_parseSkimInstruction: typeof parseSkimInstruction;
2785
+ declare const index$4_parseSwapExactInInstruction: typeof parseSwapExactInInstruction;
2786
+ declare const index$4_parseTransferAdminInstruction: typeof parseTransferAdminInstruction;
2787
+ declare const index$4_parseUnpauseInstruction: typeof parseUnpauseInstruction;
2788
+ declare const index$4_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction;
2045
2789
  declare const index$4_poolDataCodec: typeof poolDataCodec;
2046
2790
  declare const index$4_poolExists: typeof poolExists;
2047
2791
  declare const index$4_positionDataCodec: typeof positionDataCodec;
@@ -2061,7 +2805,7 @@ declare const index$4_swapExactInArgsCodec: typeof swapExactInArgsCodec;
2061
2805
  declare const index$4_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2062
2806
  declare const index$4_validateMarketCapParameters: typeof validateMarketCapParameters;
2063
2807
  declare namespace index$4 {
2064
- export { index$4_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$4_ACCOUNT_VERSION as ACCOUNT_VERSION, type index$4_AddLiquidityAccounts as AddLiquidityAccounts, index$4_AddLiquidityArgs as AddLiquidityArgs, type index$4_AddLiquidityArgsWithOracle as AddLiquidityArgsWithOracle, index$4_AddLiquidityEvent as AddLiquidityEvent, index$4_AddLiquidityQuote as AddLiquidityQuote, index$4_AdminTransferredEvent as AdminTransferredEvent, index$4_AmmConfig as AmmConfig, index$4_BPS_DENOM as BPS_DENOM, index$4_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$4_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, type index$4_ClosePositionAccounts as ClosePositionAccounts, type index$4_CollectFeesAccounts as CollectFeesAccounts, index$4_CollectFeesArgs as CollectFeesArgs, index$4_CollectFeesEvent as CollectFeesEvent, type index$4_CollectProtocolFeesAccounts as CollectProtocolFeesAccounts, index$4_CollectProtocolFeesArgs as CollectProtocolFeesArgs, index$4_CollectProtocolFeesEvent as CollectProtocolFeesEvent, index$4_CpmmError as CpmmError, index$4_CpmmErrorCode as CpmmErrorCode, type index$4_CreatePositionAccounts as CreatePositionAccounts, index$4_CreatePositionArgs as CreatePositionArgs, index$4_CurveParams as CurveParams, index$4_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$4_FeesUpdatedEvent as FeesUpdatedEvent, index$4_FetchOracleConfig as FetchOracleConfig, type index$4_FetchPoolsConfig as FetchPoolsConfig, index$4_FetchPositionsConfig as FetchPositionsConfig, index$4_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, type InitializeConfigAccounts$1 as InitializeConfigAccounts, InitializeConfigArgs$1 as InitializeConfigArgs, type index$4_InitializeOracleAccounts as InitializeOracleAccounts, InitializeOracleArgs$1 as InitializeOracleArgs, type index$4_InitializePoolAccounts as InitializePoolAccounts, index$4_InitializePoolArgs as InitializePoolArgs, index$4_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, index$4_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, MAX_SENTINEL_ALLOWLIST$1 as MAX_SENTINEL_ALLOWLIST, index$4_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$4_MarketCapValidationResult as MarketCapValidationResult, index$4_Observation as Observation, type index$4_OracleConsultAccounts as OracleConsultAccounts, index$4_OracleConsultArgs as OracleConsultArgs, type index$4_OracleConsultResult as OracleConsultResult, index$4_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$4_OracleUpdateAccounts as OracleUpdateAccounts, index$4_OracleUpdatedEvent as OracleUpdatedEvent, index$4_OracleWithAddress as OracleWithAddress, type index$4_PauseAccounts as PauseAccounts, index$4_PausedEvent as PausedEvent, index$4_Pool as Pool, index$4_PoolInitializedEvent as PoolInitializedEvent, type index$4_PoolWithAddress as PoolWithAddress, index$4_Position as Position, index$4_PositionClosedEvent as PositionClosedEvent, index$4_PositionCreatedEvent as PositionCreatedEvent, index$4_PositionValue as PositionValue, index$4_PositionWithAddress as PositionWithAddress, index$4_Q64_ONE as Q64_ONE, type index$4_QuoteToNumeraireAccounts as QuoteToNumeraireAccounts, index$4_QuoteToNumeraireArgs as QuoteToNumeraireArgs, type index$4_QuoteToNumeraireResult as QuoteToNumeraireResult, type index$4_RemoveLiquidityAccounts as RemoveLiquidityAccounts, index$4_RemoveLiquidityArgs as RemoveLiquidityArgs, index$4_RemoveLiquidityEvent as RemoveLiquidityEvent, index$4_RemoveLiquidityQuote as RemoveLiquidityQuote, index$4_RouteUpdatedEvent as RouteUpdatedEvent, index$4_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$4_SEED_ORACLE as SEED_ORACLE, index$4_SEED_POOL as SEED_POOL, index$4_SEED_POSITION as SEED_POSITION, index$4_SEED_PROTOCOL_POSITION as SEED_PROTOCOL_POSITION, SENTINEL_NO_CHANGE$1 as SENTINEL_NO_CHANGE, index$4_SF_AFTER_ADD_LIQ as SF_AFTER_ADD_LIQ, index$4_SF_AFTER_REMOVE_LIQ as SF_AFTER_REMOVE_LIQ, SF_AFTER_SWAP$1 as SF_AFTER_SWAP, index$4_SF_BEFORE_ADD_LIQ as SF_BEFORE_ADD_LIQ, index$4_SF_BEFORE_REMOVE_LIQ as SF_BEFORE_REMOVE_LIQ, SF_BEFORE_SWAP$1 as SF_BEFORE_SWAP, index$4_SentinelErrorEvent as SentinelErrorEvent, index$4_SentinelInvokedEvent as SentinelInvokedEvent, index$4_SentinelUpdatedEvent as SentinelUpdatedEvent, type index$4_SetFeesAccounts as SetFeesAccounts, index$4_SetFeesArgs as SetFeesArgs, type index$4_SetRouteAccounts as SetRouteAccounts, index$4_SetRouteArgs as SetRouteArgs, type index$4_SetSentinelAccounts as SetSentinelAccounts, index$4_SetSentinelArgs as SetSentinelArgs, type index$4_SkimAccounts as SkimAccounts, index$4_SkimmedEvent as SkimmedEvent, index$4_SwapDirection as SwapDirection, index$4_SwapEvent as SwapEvent, type index$4_SwapExactInAccounts as SwapExactInAccounts, index$4_SwapExactInArgs as SwapExactInArgs, index$4_SwapQuote as SwapQuote, index$4_SwapQuoteExactOut as SwapQuoteExactOut, index$4_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, type index$4_TransferAdminAccounts as TransferAdminAccounts, index$4_TransferAdminArgs as TransferAdminArgs, index$4_TwapResult as TwapResult, type index$4_UnpauseAccounts as UnpauseAccounts, index$4_UnpausedEvent as UnpausedEvent, index$4_addLiquidityArgsCodec as addLiquidityArgsCodec, index$4_ammConfigDataCodec as ammConfigDataCodec, index$4_areMintsOrdered as areMintsOrdered, index$4_calculateAccruedFees as calculateAccruedFees, index$4_calculateTwap as calculateTwap, index$4_calculateTwapNumber as calculateTwapNumber, index$4_ceilDiv as ceilDiv, index$4_collectFeesArgsCodec as collectFeesArgsCodec, index$4_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$4_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$4_computePrice0Q64 as computePrice0Q64, index$4_computePrice1Q64 as computePrice1Q64, index$4_consultTwap as consultTwap, index$4_createAddLiquidityInstruction as createAddLiquidityInstruction, index$4_createClosePositionInstruction as createClosePositionInstruction, index$4_createCollectFeesInstruction as createCollectFeesInstruction, index$4_createCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, index$4_createCreatePositionInstruction as createCreatePositionInstruction, createInitializeConfigInstruction$1 as createInitializeConfigInstruction, index$4_createInitializeOracleInstruction as createInitializeOracleInstruction, index$4_createInitializePoolInstruction as createInitializePoolInstruction, index$4_createOracleConsultInstruction as createOracleConsultInstruction, index$4_createOracleUpdateInstruction as createOracleUpdateInstruction, index$4_createPauseInstruction as createPauseInstruction, index$4_createPositionArgsCodec as createPositionArgsCodec, index$4_createQuoteToNumeraireInstruction as createQuoteToNumeraireInstruction, index$4_createRemoveLiquidityInstruction as createRemoveLiquidityInstruction, index$4_createSetFeesInstruction as createSetFeesInstruction, index$4_createSetRouteInstruction as createSetRouteInstruction, index$4_createSetSentinelInstruction as createSetSentinelInstruction, index$4_createSkimInstruction as createSkimInstruction, index$4_createSwapExactInInstruction as createSwapExactInInstruction, index$4_createSwapInstruction as createSwapInstruction, index$4_createTransferAdminInstruction as createTransferAdminInstruction, index$4_createUnpauseInstruction as createUnpauseInstruction, index$4_curveParamsToMarketCap as curveParamsToMarketCap, index$4_decodeAmmConfig as decodeAmmConfig, index$4_decodeOracleConsultResult as decodeOracleConsultResult, decodeOracleState$2 as decodeOracleState, index$4_decodePool as decodePool, index$4_decodePosition as decodePosition, index$4_decodeQuoteToNumeraireResult as decodeQuoteToNumeraireResult, index$4_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$4_encodeCollectFeesArgs as encodeCollectFeesArgs, index$4_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$4_encodeCreatePositionArgs as encodeCreatePositionArgs, index$4_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$4_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$4_encodeInitializePoolArgs as encodeInitializePoolArgs, index$4_encodeInstructionData as encodeInstructionData, index$4_encodeOracleConsultArgs as encodeOracleConsultArgs, index$4_encodeQuoteToNumeraireArgs as encodeQuoteToNumeraireArgs, index$4_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$4_encodeSetFeesArgs as encodeSetFeesArgs, index$4_encodeSetRouteArgs as encodeSetRouteArgs, index$4_encodeSetSentinelArgs as encodeSetSentinelArgs, index$4_encodeSwapExactInArgs as encodeSwapExactInArgs, index$4_encodeTransferAdminArgs as encodeTransferAdminArgs, index$4_fetchAllPools as fetchAllPools, index$4_fetchConfig as fetchConfig, index$4_fetchConfigWithAddress as fetchConfigWithAddress, index$4_fetchOracle as fetchOracle, index$4_fetchOraclesBatch as fetchOraclesBatch, index$4_fetchPool as fetchPool, index$4_fetchPoolPositions as fetchPoolPositions, index$4_fetchPoolsBatch as fetchPoolsBatch, index$4_fetchPosition as fetchPosition, index$4_fetchPositionByParams as fetchPositionByParams, index$4_fetchPositionsBatch as fetchPositionsBatch, index$4_fetchUserPositions as fetchUserPositions, index$4_filterActivePositions as filterActivePositions, index$4_filterPoolsByMint as filterPoolsByMint, index$4_getAddLiquidityQuote as getAddLiquidityQuote, getConfigAddress$1 as getConfigAddress, index$4_getErrorMessage as getErrorMessage, index$4_getK as getK, index$4_getLiquidityAddresses as getLiquidityAddresses, index$4_getMetadataAddress as getMetadataAddress, index$4_getOracleAddress as getOracleAddress, index$4_getOracleAddressFromPool as getOracleAddressFromPool, index$4_getOracleAge as getOracleAge, index$4_getOracleBufferStats as getOracleBufferStats, index$4_getOracleDeviation as getOracleDeviation, index$4_getOracleForPool as getOracleForPool, index$4_getOracleSpotPrices as getOracleSpotPrices, index$4_getPendingFees as getPendingFees, index$4_getPoolAddress as getPoolAddress, index$4_getPoolAddressFromMints as getPoolAddressFromMints, index$4_getPoolAuthorityAddress as getPoolAuthorityAddress, index$4_getPoolByMints as getPoolByMints, index$4_getPoolInitAddresses as getPoolInitAddresses, index$4_getPoolVault0Address as getPoolVault0Address, index$4_getPoolVault1Address as getPoolVault1Address, index$4_getPositionAddress as getPositionAddress, index$4_getPositionAddressFromParams as getPositionAddressFromParams, index$4_getPositionValue as getPositionValue, index$4_getProtocolPositionAddress as getProtocolPositionAddress, index$4_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$4_getSpotPrice0 as getSpotPrice0, index$4_getSpotPrice1 as getSpotPrice1, index$4_getSwapAddresses as getSwapAddresses, index$4_getSwapQuote as getSwapQuote, index$4_getSwapQuoteExactOut as getSwapQuoteExactOut, index$4_getTvl as getTvl, index$4_initializeConfigArgsCodec as initializeConfigArgsCodec, index$4_initializeOracleArgsCodec as initializeOracleArgsCodec, index$4_initializePoolArgsCodec as initializePoolArgsCodec, index$4_isCpmmError as isCpmmError, index$4_isOracleStale as isOracleStale, index$4_isqrt as isqrt, index$4_marketCapToCurveParams as marketCapToCurveParams, index$4_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$4_marketCapToTokenPrice as marketCapToTokenPrice, index$4_maxBigInt as maxBigInt, index$4_minBigInt as minBigInt, index$4_numberToQ64 as numberToQ64, index$4_observationCodec as observationCodec, index$4_oracleConsultArgsCodec as oracleConsultArgsCodec, index$4_oracleStateDataCodec as oracleStateDataCodec, index$4_parseErrorFromLogs as parseErrorFromLogs, index$4_poolDataCodec as poolDataCodec, index$4_poolExists as poolExists, index$4_positionDataCodec as positionDataCodec, index$4_q64Div as q64Div, index$4_q64Mul as q64Mul, index$4_q64ToNumber as q64ToNumber, index$4_quoteToNumeraireArgsCodec as quoteToNumeraireArgsCodec, index$4_ratioToNumber as ratioToNumber, index$4_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$4_setFeesArgsCodec as setFeesArgsCodec, index$4_setRouteArgsCodec as setRouteArgsCodec, index$4_setSentinelArgsCodec as setSentinelArgsCodec, index$4_sortMints as sortMints, index$4_sortPoolsByReserves as sortPoolsByReserves, index$4_sortPositionsByShares as sortPositionsByShares, index$4_swapExactInArgsCodec as swapExactInArgsCodec, index$4_transferAdminArgsCodec as transferAdminArgsCodec, index$4_validateMarketCapParameters as validateMarketCapParameters };
2808
+ export { index$4_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$4_ACCOUNT_VERSION as ACCOUNT_VERSION, index$4_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, index$4_AddLiquidityArgs as AddLiquidityArgs, type index$4_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$4_AddLiquidityEvent as AddLiquidityEvent, type index$4_AddLiquidityInput as AddLiquidityInput, type index$4_AddLiquidityInstruction as AddLiquidityInstruction, type index$4_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$4_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$4_AddLiquidityQuote as AddLiquidityQuote, index$4_AdminTransferredEvent as AdminTransferredEvent, index$4_AmmConfig as AmmConfig, index$4_BPS_DENOM as BPS_DENOM, index$4_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$4_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$4_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$4_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$4_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$4_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$4_ClosePositionInput as ClosePositionInput, type index$4_ClosePositionInstruction as ClosePositionInstruction, type index$4_ClosePositionInstructionData as ClosePositionInstructionData, type index$4_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$4_CollectFeesArgs as CollectFeesArgs, type index$4_CollectFeesAsyncInput as CollectFeesAsyncInput, index$4_CollectFeesEvent as CollectFeesEvent, type index$4_CollectFeesInput as CollectFeesInput, type index$4_CollectFeesInstruction as CollectFeesInstruction, type index$4_CollectFeesInstructionData as CollectFeesInstructionData, type index$4_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$4_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$4_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$4_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$4_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$4_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$4_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$4_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$4_CpmmError as CpmmError, index$4_CpmmErrorCode as CpmmErrorCode, index$4_CreatePositionArgs as CreatePositionArgs, type index$4_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$4_CreatePositionInput as CreatePositionInput, type index$4_CreatePositionInstruction as CreatePositionInstruction, type index$4_CreatePositionInstructionData as CreatePositionInstructionData, type index$4_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$4_CurveParams as CurveParams, index$4_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, index$4_FeesUpdatedEvent as FeesUpdatedEvent, index$4_FetchOracleConfig as FetchOracleConfig, type index$4_FetchPoolsConfig as FetchPoolsConfig, index$4_FetchPositionsConfig as FetchPositionsConfig, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$4_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$4_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$1 as InitializeConfigArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$4_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$4_InitializePoolArgs as InitializePoolArgs, type index$4_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$4_InitializePoolInput as InitializePoolInput, type index$4_InitializePoolInstruction as InitializePoolInstruction, type index$4_InitializePoolInstructionData as InitializePoolInstructionData, type index$4_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, index$4_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, index$4_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, MAX_SENTINEL_ALLOWLIST$1 as MAX_SENTINEL_ALLOWLIST, index$4_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$4_MarketCapValidationResult as MarketCapValidationResult, index$4_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$4_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$4_Observation as Observation, index$4_OracleConsultArgs as OracleConsultArgs, type index$4_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$4_OracleConsultInput as OracleConsultInput, type index$4_OracleConsultInstruction as OracleConsultInstruction, type index$4_OracleConsultInstructionData as OracleConsultInstructionData, type index$4_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$4_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$4_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$4_OracleUpdateInput as OracleUpdateInput, type index$4_OracleUpdateInstruction as OracleUpdateInstruction, type index$4_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$4_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$4_OracleUpdatedEvent as OracleUpdatedEvent, index$4_OracleWithAddress as OracleWithAddress, index$4_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$4_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$4_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$4_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$4_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$4_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$4_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$4_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$4_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$4_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$4_ParsedPauseInstruction as ParsedPauseInstruction, type index$4_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$4_ParsedQuoteToNumeraireInstruction as ParsedQuoteToNumeraireInstruction, type index$4_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$4_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$4_ParsedSetRouteInstruction as ParsedSetRouteInstruction, type index$4_ParsedSetSentinelInstruction as ParsedSetSentinelInstruction, type index$4_ParsedSkimInstruction as ParsedSkimInstruction, type index$4_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$4_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$4_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$4_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$4_PauseInput as PauseInput, type index$4_PauseInstruction as PauseInstruction, type index$4_PauseInstructionData as PauseInstructionData, type index$4_PauseInstructionDataArgs as PauseInstructionDataArgs, index$4_PausedEvent as PausedEvent, index$4_Pool as Pool, index$4_PoolInitializedEvent as PoolInitializedEvent, type index$4_PoolWithAddress as PoolWithAddress, index$4_Position as Position, index$4_PositionClosedEvent as PositionClosedEvent, index$4_PositionCreatedEvent as PositionCreatedEvent, index$4_PositionValue as PositionValue, index$4_PositionWithAddress as PositionWithAddress, type index$4_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$4_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$4_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$4_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$4_Q64_ONE as Q64_ONE, index$4_QUOTE_TO_NUMERAIRE_DISCRIMINATOR as QUOTE_TO_NUMERAIRE_DISCRIMINATOR, index$4_QuoteToNumeraireArgs as QuoteToNumeraireArgs, type index$4_QuoteToNumeraireInput as QuoteToNumeraireInput, type index$4_QuoteToNumeraireInstruction as QuoteToNumeraireInstruction, type index$4_QuoteToNumeraireInstructionData as QuoteToNumeraireInstructionData, type index$4_QuoteToNumeraireInstructionDataArgs as QuoteToNumeraireInstructionDataArgs, index$4_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, index$4_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$4_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$4_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$4_RemoveLiquidityInput as RemoveLiquidityInput, type index$4_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$4_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$4_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$4_RemoveLiquidityQuote as RemoveLiquidityQuote, index$4_RouteUpdatedEvent as RouteUpdatedEvent, index$4_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$4_SEED_ORACLE as SEED_ORACLE, index$4_SEED_POOL as SEED_POOL, index$4_SEED_POSITION as SEED_POSITION, index$4_SEED_PROTOCOL_POSITION as SEED_PROTOCOL_POSITION, SENTINEL_NO_CHANGE$1 as SENTINEL_NO_CHANGE, index$4_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$4_SET_ROUTE_DISCRIMINATOR as SET_ROUTE_DISCRIMINATOR, index$4_SET_SENTINEL_DISCRIMINATOR as SET_SENTINEL_DISCRIMINATOR, index$4_SF_AFTER_ADD_LIQ as SF_AFTER_ADD_LIQ, index$4_SF_AFTER_REMOVE_LIQ as SF_AFTER_REMOVE_LIQ, SF_AFTER_SWAP$1 as SF_AFTER_SWAP, index$4_SF_BEFORE_ADD_LIQ as SF_BEFORE_ADD_LIQ, index$4_SF_BEFORE_REMOVE_LIQ as SF_BEFORE_REMOVE_LIQ, SF_BEFORE_SWAP$1 as SF_BEFORE_SWAP, index$4_SF_FORWARD_READONLY_SIGNERS as SF_FORWARD_READONLY_SIGNERS, index$4_SF_REQUIRE_ORACLE as SF_REQUIRE_ORACLE, index$4_SKIM_DISCRIMINATOR as SKIM_DISCRIMINATOR, index$4_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$4_SentinelErrorEvent as SentinelErrorEvent, index$4_SentinelInvokedEvent as SentinelInvokedEvent, index$4_SentinelUpdatedEvent as SentinelUpdatedEvent, index$4_SetFeesArgs as SetFeesArgs, type index$4_SetFeesInput as SetFeesInput, type index$4_SetFeesInstruction as SetFeesInstruction, type index$4_SetFeesInstructionData as SetFeesInstructionData, type index$4_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$4_SetRouteArgs as SetRouteArgs, type index$4_SetRouteInput as SetRouteInput, type index$4_SetRouteInstruction as SetRouteInstruction, type index$4_SetRouteInstructionData as SetRouteInstructionData, type index$4_SetRouteInstructionDataArgs as SetRouteInstructionDataArgs, index$4_SetSentinelArgs as SetSentinelArgs, type index$4_SetSentinelInput as SetSentinelInput, type index$4_SetSentinelInstruction as SetSentinelInstruction, type index$4_SetSentinelInstructionData as SetSentinelInstructionData, type index$4_SetSentinelInstructionDataArgs as SetSentinelInstructionDataArgs, type index$4_SkimAsyncInput as SkimAsyncInput, type index$4_SkimInput as SkimInput, type index$4_SkimInstruction as SkimInstruction, type index$4_SkimInstructionData as SkimInstructionData, type index$4_SkimInstructionDataArgs as SkimInstructionDataArgs, index$4_SkimmedEvent as SkimmedEvent, index$4_SwapDirection as SwapDirection, index$4_SwapEvent as SwapEvent, index$4_SwapExactInArgs as SwapExactInArgs, type index$4_SwapExactInAsyncInput as SwapExactInAsyncInput, type index$4_SwapExactInInput as SwapExactInInput, type index$4_SwapExactInInstruction as SwapExactInInstruction, type index$4_SwapExactInInstructionData as SwapExactInInstructionData, type index$4_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$4_SwapQuote as SwapQuote, index$4_SwapQuoteExactOut as SwapQuoteExactOut, index$4_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$4_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$4_TransferAdminArgs as TransferAdminArgs, type index$4_TransferAdminInput as TransferAdminInput, type index$4_TransferAdminInstruction as TransferAdminInstruction, type index$4_TransferAdminInstructionData as TransferAdminInstructionData, type index$4_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$4_TwapResult as TwapResult, index$4_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$4_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$4_UnpauseInput as UnpauseInput, type index$4_UnpauseInstruction as UnpauseInstruction, type index$4_UnpauseInstructionData as UnpauseInstructionData, type index$4_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$4_UnpausedEvent as UnpausedEvent, type index$4_UpdateConfigInput as UpdateConfigInput, type index$4_UpdateConfigInstruction as UpdateConfigInstruction, type index$4_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$4_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$4_addLiquidityArgsCodec as addLiquidityArgsCodec, index$4_ammConfigDataCodec as ammConfigDataCodec, index$4_areMintsOrdered as areMintsOrdered, index$4_calculateAccruedFees as calculateAccruedFees, index$4_calculateTwap as calculateTwap, index$4_calculateTwapNumber as calculateTwapNumber, index$4_ceilDiv as ceilDiv, index$4_collectFeesArgsCodec as collectFeesArgsCodec, index$4_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$4_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$4_computePrice0Q64 as computePrice0Q64, index$4_computePrice1Q64 as computePrice1Q64, index$4_consultTwap as consultTwap, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$4_createPositionArgsCodec as createPositionArgsCodec, getQuoteToNumeraireInstruction as createQuoteToNumeraireInstruction, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetRouteInstruction as createSetRouteInstruction, getSetSentinelInstruction as createSetSentinelInstruction, getSkimInstruction as createSkimInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$4_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, index$4_curveParamsToMarketCap as curveParamsToMarketCap, index$4_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$4_decodePool as decodePool, index$4_decodePosition as decodePosition, index$4_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$4_encodeCollectFeesArgs as encodeCollectFeesArgs, index$4_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$4_encodeCreatePositionArgs as encodeCreatePositionArgs, index$4_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$4_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$4_encodeInitializePoolArgs as encodeInitializePoolArgs, index$4_encodeInstructionData as encodeInstructionData, index$4_encodeOracleConsultArgs as encodeOracleConsultArgs, index$4_encodeQuoteToNumeraireArgs as encodeQuoteToNumeraireArgs, index$4_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$4_encodeSetFeesArgs as encodeSetFeesArgs, index$4_encodeSetRouteArgs as encodeSetRouteArgs, index$4_encodeSetSentinelArgs as encodeSetSentinelArgs, index$4_encodeSwapExactInArgs as encodeSwapExactInArgs, index$4_encodeTransferAdminArgs as encodeTransferAdminArgs, index$4_fetchAllPools as fetchAllPools, index$4_fetchConfig as fetchConfig, index$4_fetchConfigWithAddress as fetchConfigWithAddress, index$4_fetchOracle as fetchOracle, index$4_fetchOraclesBatch as fetchOraclesBatch, index$4_fetchPool as fetchPool, index$4_fetchPoolPositions as fetchPoolPositions, index$4_fetchPoolsBatch as fetchPoolsBatch, index$4_fetchPosition as fetchPosition, index$4_fetchPositionByParams as fetchPositionByParams, index$4_fetchPositionsBatch as fetchPositionsBatch, index$4_fetchUserPositions as fetchUserPositions, index$4_filterActivePositions as filterActivePositions, index$4_filterPoolsByMint as filterPoolsByMint, index$4_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$4_getAddLiquidityInstruction as getAddLiquidityInstruction, index$4_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$4_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$4_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$4_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$4_getAddLiquidityQuote as getAddLiquidityQuote, index$4_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$4_getClosePositionInstruction as getClosePositionInstruction, index$4_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$4_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$4_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$4_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$4_getCollectFeesInstruction as getCollectFeesInstruction, index$4_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$4_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$4_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$4_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$4_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$4_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$4_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$4_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$4_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$4_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$4_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$4_getCreatePositionInstruction as getCreatePositionInstruction, index$4_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$4_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$4_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$4_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$4_getErrorMessage as getErrorMessage, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$4_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$4_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$4_getInitializePoolInstruction as getInitializePoolInstruction, index$4_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$4_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$4_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$4_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$4_getK as getK, index$4_getLiquidityAddresses as getLiquidityAddresses, index$4_getMetadataAddress as getMetadataAddress, index$4_getOracleAddress as getOracleAddress, index$4_getOracleAddressFromPool as getOracleAddressFromPool, index$4_getOracleAge as getOracleAge, index$4_getOracleBufferStats as getOracleBufferStats, index$4_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$4_getOracleConsultInstruction as getOracleConsultInstruction, index$4_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$4_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$4_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$4_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$4_getOracleDeviation as getOracleDeviation, index$4_getOracleForPool as getOracleForPool, index$4_getOracleSpotPrices as getOracleSpotPrices, index$4_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$4_getOracleUpdateInstruction as getOracleUpdateInstruction, index$4_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$4_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$4_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$4_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$4_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$4_getPauseInstruction as getPauseInstruction, index$4_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$4_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$4_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$4_getPendingFees as getPendingFees, index$4_getPoolAddress as getPoolAddress, index$4_getPoolAddressFromMints as getPoolAddressFromMints, index$4_getPoolAuthorityAddress as getPoolAuthorityAddress, index$4_getPoolByMints as getPoolByMints, index$4_getPoolInitAddresses as getPoolInitAddresses, index$4_getPoolVault0Address as getPoolVault0Address, index$4_getPoolVault1Address as getPoolVault1Address, index$4_getPositionAddress as getPositionAddress, index$4_getPositionAddressFromParams as getPositionAddressFromParams, index$4_getPositionValue as getPositionValue, index$4_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$4_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$4_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$4_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$4_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$4_getProtocolPositionAddress as getProtocolPositionAddress, index$4_getQuoteToNumeraireDiscriminatorBytes as getQuoteToNumeraireDiscriminatorBytes, index$4_getQuoteToNumeraireInstruction as getQuoteToNumeraireInstruction, index$4_getQuoteToNumeraireInstructionDataCodec as getQuoteToNumeraireInstructionDataCodec, index$4_getQuoteToNumeraireInstructionDataDecoder as getQuoteToNumeraireInstructionDataDecoder, index$4_getQuoteToNumeraireInstructionDataEncoder as getQuoteToNumeraireInstructionDataEncoder, index$4_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$4_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$4_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$4_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$4_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$4_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$4_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$4_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$4_getSetFeesInstruction as getSetFeesInstruction, index$4_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$4_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$4_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$4_getSetRouteDiscriminatorBytes as getSetRouteDiscriminatorBytes, index$4_getSetRouteInstruction as getSetRouteInstruction, index$4_getSetRouteInstructionDataCodec as getSetRouteInstructionDataCodec, index$4_getSetRouteInstructionDataDecoder as getSetRouteInstructionDataDecoder, index$4_getSetRouteInstructionDataEncoder as getSetRouteInstructionDataEncoder, index$4_getSetSentinelDiscriminatorBytes as getSetSentinelDiscriminatorBytes, index$4_getSetSentinelInstruction as getSetSentinelInstruction, index$4_getSetSentinelInstructionDataCodec as getSetSentinelInstructionDataCodec, index$4_getSetSentinelInstructionDataDecoder as getSetSentinelInstructionDataDecoder, index$4_getSetSentinelInstructionDataEncoder as getSetSentinelInstructionDataEncoder, index$4_getSkimDiscriminatorBytes as getSkimDiscriminatorBytes, index$4_getSkimInstruction as getSkimInstruction, index$4_getSkimInstructionAsync as getSkimInstructionAsync, index$4_getSkimInstructionDataCodec as getSkimInstructionDataCodec, index$4_getSkimInstructionDataDecoder as getSkimInstructionDataDecoder, index$4_getSkimInstructionDataEncoder as getSkimInstructionDataEncoder, index$4_getSpotPrice0 as getSpotPrice0, index$4_getSpotPrice1 as getSpotPrice1, index$4_getSwapAddresses as getSwapAddresses, index$4_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$4_getSwapExactInInstruction as getSwapExactInInstruction, index$4_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$4_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$4_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$4_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$4_getSwapQuote as getSwapQuote, index$4_getSwapQuoteExactOut as getSwapQuoteExactOut, index$4_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$4_getTransferAdminInstruction as getTransferAdminInstruction, index$4_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$4_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$4_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$4_getTvl as getTvl, index$4_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$4_getUnpauseInstruction as getUnpauseInstruction, index$4_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$4_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$4_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$4_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$4_getUpdateConfigInstruction as getUpdateConfigInstruction, index$4_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$4_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$4_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$4_initializeConfigArgsCodec as initializeConfigArgsCodec, index$4_initializeOracleArgsCodec as initializeOracleArgsCodec, index$4_initializePoolArgsCodec as initializePoolArgsCodec, index$4_isCpmmError as isCpmmError, index$4_isOracleStale as isOracleStale, index$4_isqrt as isqrt, index$4_marketCapToCurveParams as marketCapToCurveParams, index$4_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$4_marketCapToTokenPrice as marketCapToTokenPrice, index$4_maxBigInt as maxBigInt, index$4_minBigInt as minBigInt, index$4_numberToQ64 as numberToQ64, index$4_observationCodec as observationCodec, index$4_oracleConsultArgsCodec as oracleConsultArgsCodec, index$4_oracleStateDataCodec as oracleStateDataCodec, index$4_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$4_parseClosePositionInstruction as parseClosePositionInstruction, index$4_parseCollectFeesInstruction as parseCollectFeesInstruction, index$4_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$4_parseCreatePositionInstruction as parseCreatePositionInstruction, index$4_parseErrorFromLogs as parseErrorFromLogs, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$4_parseInitializePoolInstruction as parseInitializePoolInstruction, index$4_parseOracleConsultInstruction as parseOracleConsultInstruction, index$4_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$4_parsePauseInstruction as parsePauseInstruction, index$4_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$4_parseQuoteToNumeraireInstruction as parseQuoteToNumeraireInstruction, index$4_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$4_parseSetFeesInstruction as parseSetFeesInstruction, index$4_parseSetRouteInstruction as parseSetRouteInstruction, index$4_parseSetSentinelInstruction as parseSetSentinelInstruction, index$4_parseSkimInstruction as parseSkimInstruction, index$4_parseSwapExactInInstruction as parseSwapExactInInstruction, index$4_parseTransferAdminInstruction as parseTransferAdminInstruction, index$4_parseUnpauseInstruction as parseUnpauseInstruction, index$4_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$4_poolDataCodec as poolDataCodec, index$4_poolExists as poolExists, index$4_positionDataCodec as positionDataCodec, index$4_q64Div as q64Div, index$4_q64Mul as q64Mul, index$4_q64ToNumber as q64ToNumber, index$4_quoteToNumeraireArgsCodec as quoteToNumeraireArgsCodec, index$4_ratioToNumber as ratioToNumber, index$4_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$4_setFeesArgsCodec as setFeesArgsCodec, index$4_setRouteArgsCodec as setRouteArgsCodec, index$4_setSentinelArgsCodec as setSentinelArgsCodec, index$4_sortMints as sortMints, index$4_sortPoolsByReserves as sortPoolsByReserves, index$4_sortPositionsByShares as sortPositionsByShares, index$4_swapExactInArgsCodec as swapExactInArgsCodec, index$4_transferAdminArgsCodec as transferAdminArgsCodec, index$4_validateMarketCapParameters as validateMarketCapParameters };
2065
2809
  }
2066
2810
 
2067
2811
  /**
@@ -2098,7 +2842,8 @@ declare const EMPTY_REMAINING_ACCOUNTS_HASH: Uint8Array<ArrayBuffer>;
2098
2842
  * Devnet ALT containing static accounts shared by every initializeLaunch tx.
2099
2843
  * Indices: 0=TOKEN_PROGRAM, 1=SYSTEM_PROGRAM, 2=SYSVAR_RENT,
2100
2844
  * 3=INITIALIZER_PROGRAM, 4=TOKEN_METADATA_PROGRAM,
2101
- * 5=CPMM_MIGRATOR_PROGRAM, 6=WSOL_MINT, 7=config PDA
2845
+ * 5=CPMM_MIGRATOR_PROGRAM, 6=WSOL_MINT,
2846
+ * 8/9=PREDICTION_MIGRATOR_PROGRAM, 10=initializer config PDA
2102
2847
  */
2103
2848
  declare const DOPPLER_DEVNET_ALT: Address;
2104
2849
  declare const MAX_MIGRATOR_ALLOWLIST = 32;
@@ -2113,6 +2858,10 @@ declare const CURVE_KIND_XYK = 0;
2113
2858
  declare const CURVE_PARAMS_FORMAT_XYK_V0 = 0;
2114
2859
  declare const SF_BEFORE_SWAP: number;
2115
2860
  declare const SF_AFTER_SWAP: number;
2861
+ declare const SF_BEFORE_CREATE: number;
2862
+ declare const SF_AFTER_CREATE: number;
2863
+ declare const SF_BEFORE_MIGRATE: number;
2864
+ declare const SF_AFTER_MIGRATE: number;
2116
2865
  declare const SENTINEL_NO_CHANGE = 65535;
2117
2866
  declare const INITIALIZER_INSTRUCTION_DISCRIMINATORS: {
2118
2867
  readonly initializeConfig: Uint8Array<ArrayBuffer>;
@@ -2221,16 +2970,27 @@ type InitializeLaunchArgs = {
2221
2970
  sentinelProgram: Address;
2222
2971
  sentinelFlags: number;
2223
2972
  sentinelCalldata: ReadonlyUint8Array;
2973
+ sentinelCreateRemainingAccountsLen: number;
2224
2974
  migratorProgram: Address;
2225
2975
  migratorInitCalldata: ReadonlyUint8Array;
2226
2976
  migratorMigrateCalldata: ReadonlyUint8Array;
2977
+ /**
2978
+ * Commitment hash for initialize_launch sentinel remaining accounts.
2979
+ * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2980
+ */
2981
+ sentinelCreateRemainingAccountsHash: ReadonlyUint8Array;
2227
2982
  /**
2228
2983
  * Commitment hash for swap/preview sentinel remaining accounts.
2229
2984
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2230
2985
  */
2231
2986
  sentinelRemainingAccountsHash: ReadonlyUint8Array;
2232
2987
  /**
2233
- * Commitment hash for migrate remaining accounts.
2988
+ * Commitment hash for migrator-init remaining accounts.
2989
+ * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2990
+ */
2991
+ migratorInitRemainingAccountsHash: ReadonlyUint8Array;
2992
+ /**
2993
+ * Commitment hash for migrator-migrate remaining accounts.
2234
2994
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2235
2995
  */
2236
2996
  migratorRemainingAccountsHash: ReadonlyUint8Array;
@@ -2258,16 +3018,27 @@ type InitializeLaunchArgsArgs = {
2258
3018
  sentinelProgram: Address;
2259
3019
  sentinelFlags: number;
2260
3020
  sentinelCalldata: ReadonlyUint8Array;
3021
+ sentinelCreateRemainingAccountsLen: number;
2261
3022
  migratorProgram: Address;
2262
3023
  migratorInitCalldata: ReadonlyUint8Array;
2263
3024
  migratorMigrateCalldata: ReadonlyUint8Array;
3025
+ /**
3026
+ * Commitment hash for initialize_launch sentinel remaining accounts.
3027
+ * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
3028
+ */
3029
+ sentinelCreateRemainingAccountsHash: ReadonlyUint8Array;
2264
3030
  /**
2265
3031
  * Commitment hash for swap/preview sentinel remaining accounts.
2266
3032
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2267
3033
  */
2268
3034
  sentinelRemainingAccountsHash: ReadonlyUint8Array;
2269
3035
  /**
2270
- * Commitment hash for migrate remaining accounts.
3036
+ * Commitment hash for migrator-init remaining accounts.
3037
+ * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
3038
+ */
3039
+ migratorInitRemainingAccountsHash: ReadonlyUint8Array;
3040
+ /**
3041
+ * Commitment hash for migrator-migrate remaining accounts.
2271
3042
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2272
3043
  */
2273
3044
  migratorRemainingAccountsHash: ReadonlyUint8Array;
@@ -2404,7 +3175,6 @@ interface InitializeConfigAccounts {
2404
3175
  config: Address;
2405
3176
  programData: Address;
2406
3177
  systemProgram?: Address;
2407
- instructionsSysvar?: Address;
2408
3178
  }
2409
3179
  declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
2410
3180
 
@@ -2428,11 +3198,15 @@ declare function createSetSentinelAllowlistInstruction(accounts: SetSentinelAllo
2428
3198
  * - migratorProgram is omitted — it is derived from accounts.migratorProgram
2429
3199
  * so callers do not need to repeat it in both the accounts object and args.
2430
3200
  */
2431
- type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'migratorProgram'> & {
3201
+ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'sentinelProgram' | 'migratorProgram' | 'sentinelCreateRemainingAccountsLen' | 'sentinelCreateRemainingAccountsHash'> & {
2432
3202
  allowBuy: boolean;
2433
3203
  allowSell: boolean;
3204
+ sentinelProgram?: Address;
3205
+ sentinelCreateRemainingAccountsLen?: number;
3206
+ sentinelCreateRemainingAccountsHash?: ReadonlyUint8Array;
2434
3207
  };
2435
3208
  type AddressOrSigner$2 = Address | TransactionSigner;
3209
+ type ReadonlyRemainingAccount = AddressOrSigner$2;
2436
3210
  /**
2437
3211
  * Derive the Metaplex token metadata PDA for a given mint.
2438
3212
  * Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
@@ -2451,6 +3225,7 @@ interface InitializeLaunchAccounts {
2451
3225
  quoteVault: AddressOrSigner$2;
2452
3226
  payer: AddressOrSigner$2;
2453
3227
  authority?: AddressOrSigner$2;
3228
+ sentinelProgram?: Address;
2454
3229
  migratorProgram?: Address;
2455
3230
  baseTokenProgram?: Address;
2456
3231
  quoteTokenProgram?: Address;
@@ -2459,9 +3234,14 @@ interface InitializeLaunchAccounts {
2459
3234
  /** Required when args.metadataName is non-empty. Derive with getTokenMetadataAddress(baseMint). */
2460
3235
  metadataAccount?: Address;
2461
3236
  metadataProgram?: Address;
2462
- instructionsSysvar?: Address;
2463
3237
  /** Required when migratorProgram is the CPMM migrator. */
2464
3238
  cpmmConfig?: Address;
3239
+ /**
3240
+ * Remaining accounts committed to initialize_launch create hooks.
3241
+ * These are forwarded as readonly metas; TransactionSigner values are
3242
+ * forwarded as readonly signers.
3243
+ */
3244
+ sentinelCreateRemainingAccounts?: ReadonlyArray<ReadonlyRemainingAccount>;
2465
3245
  /**
2466
3246
  * Optional Address Lookup Table to reference for static accounts.
2467
3247
  * When provided, constant non-signer accounts (base/quote token program,
@@ -2491,7 +3271,6 @@ interface CurveSwapExactInAccounts {
2491
3271
  sentinelProgram?: Address;
2492
3272
  baseTokenProgram?: Address;
2493
3273
  quoteTokenProgram?: Address;
2494
- instructionsSysvar?: Address;
2495
3274
  }
2496
3275
  declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
2497
3276
  amountIn: bigint;
@@ -2514,7 +3293,6 @@ interface MigrateLaunchAccounts {
2514
3293
  quoteTokenProgram?: Address;
2515
3294
  systemProgram?: Address;
2516
3295
  rent: Address;
2517
- instructionsSysvar?: Address;
2518
3296
  }
2519
3297
  declare function createMigrateLaunchInstruction(accounts: MigrateLaunchAccounts, programId?: Address): Instruction;
2520
3298
 
@@ -2628,7 +3406,11 @@ declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
2628
3406
  declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
2629
3407
  declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
2630
3408
  declare const index$3_SENTINEL_NO_CHANGE: typeof SENTINEL_NO_CHANGE;
3409
+ declare const index$3_SF_AFTER_CREATE: typeof SF_AFTER_CREATE;
3410
+ declare const index$3_SF_AFTER_MIGRATE: typeof SF_AFTER_MIGRATE;
2631
3411
  declare const index$3_SF_AFTER_SWAP: typeof SF_AFTER_SWAP;
3412
+ declare const index$3_SF_BEFORE_CREATE: typeof SF_BEFORE_CREATE;
3413
+ declare const index$3_SF_BEFORE_MIGRATE: typeof SF_BEFORE_MIGRATE;
2632
3414
  declare const index$3_SF_BEFORE_SWAP: typeof SF_BEFORE_SWAP;
2633
3415
  type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
2634
3416
  type index$3_SetSentinelAllowlistAccounts = SetSentinelAllowlistAccounts;
@@ -2664,7 +3446,7 @@ declare const index$3_launchExists: typeof launchExists;
2664
3446
  declare const index$3_launchIdFromU64: typeof launchIdFromU64;
2665
3447
  declare const index$3_phaseLabel: typeof phaseLabel;
2666
3448
  declare namespace index$3 {
2667
- export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, index$3_CPMM_SENTINEL_PROGRAM_ID as CPMM_SENTINEL_PROGRAM_ID, index$3_CURVE_KIND_XYK as CURVE_KIND_XYK, index$3_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type CalldataBuf$1 as CalldataBuf, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DIRECTION_BUY as DIRECTION_BUY, index$3_DIRECTION_SELL as DIRECTION_SELL, index$3_DOPPLER_DEVNET_ALT as DOPPLER_DEVNET_ALT, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$3_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type index$3_InitConfig as InitConfig, type index$3_InitConfigArgs as InitConfigArgs, type index$3_InitializeConfigAccounts as InitializeConfigAccounts, type index$3_InitializeConfigArgs as InitializeConfigArgs, type index$3_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$3_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$3_InitializeLaunchArgs as InitializeLaunchArgs, type index$3_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$3_LaunchWithAddress as LaunchWithAddress, index$3_MAX_CALLDATA as MAX_CALLDATA, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_SENTINEL_ALLOWLIST as MAX_SENTINEL_ALLOWLIST, type index$3_MigrateLaunchAccounts as MigrateLaunchAccounts, index$3_PHASE_ABORTED as PHASE_ABORTED, index$3_PHASE_MIGRATED as PHASE_MIGRATED, index$3_PHASE_TRADING as PHASE_TRADING, index$3_PREDICTION_SENTINEL_PROGRAM_ID as PREDICTION_SENTINEL_PROGRAM_ID, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$3_SENTINEL_NO_CHANGE as SENTINEL_NO_CHANGE, index$3_SF_AFTER_SWAP as SF_AFTER_SWAP, index$3_SF_BEFORE_SWAP as SF_BEFORE_SWAP, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, type index$3_SetSentinelAllowlistAccounts as SetSentinelAllowlistAccounts, index$3_computeRemainingAccountsHash as computeRemainingAccountsHash, index$3_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$3_createInitializeConfigInstruction as createInitializeConfigInstruction, index$3_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$3_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$3_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$3_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$3_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_createSetSentinelAllowlistInstruction as createSetSentinelAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getConfigAddress as getConfigAddress, index$3_getInitConfigCodec as getInitConfigCodec, index$3_getInitConfigDecoder as getInitConfigDecoder, index$3_getInitConfigEncoder as getInitConfigEncoder, index$3_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$3_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$3_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$3_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$3_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$3_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_phaseLabel as phaseLabel };
3449
+ export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, index$3_CPMM_SENTINEL_PROGRAM_ID as CPMM_SENTINEL_PROGRAM_ID, index$3_CURVE_KIND_XYK as CURVE_KIND_XYK, index$3_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type CalldataBuf$1 as CalldataBuf, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DIRECTION_BUY as DIRECTION_BUY, index$3_DIRECTION_SELL as DIRECTION_SELL, index$3_DOPPLER_DEVNET_ALT as DOPPLER_DEVNET_ALT, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$3_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type index$3_InitConfig as InitConfig, type index$3_InitConfigArgs as InitConfigArgs, type index$3_InitializeConfigAccounts as InitializeConfigAccounts, type index$3_InitializeConfigArgs as InitializeConfigArgs, type index$3_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$3_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$3_InitializeLaunchArgs as InitializeLaunchArgs, type index$3_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$3_LaunchWithAddress as LaunchWithAddress, index$3_MAX_CALLDATA as MAX_CALLDATA, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_SENTINEL_ALLOWLIST as MAX_SENTINEL_ALLOWLIST, type index$3_MigrateLaunchAccounts as MigrateLaunchAccounts, index$3_PHASE_ABORTED as PHASE_ABORTED, index$3_PHASE_MIGRATED as PHASE_MIGRATED, index$3_PHASE_TRADING as PHASE_TRADING, index$3_PREDICTION_SENTINEL_PROGRAM_ID as PREDICTION_SENTINEL_PROGRAM_ID, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$3_SENTINEL_NO_CHANGE as SENTINEL_NO_CHANGE, index$3_SF_AFTER_CREATE as SF_AFTER_CREATE, index$3_SF_AFTER_MIGRATE as SF_AFTER_MIGRATE, index$3_SF_AFTER_SWAP as SF_AFTER_SWAP, index$3_SF_BEFORE_CREATE as SF_BEFORE_CREATE, index$3_SF_BEFORE_MIGRATE as SF_BEFORE_MIGRATE, index$3_SF_BEFORE_SWAP as SF_BEFORE_SWAP, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, type index$3_SetSentinelAllowlistAccounts as SetSentinelAllowlistAccounts, index$3_computeRemainingAccountsHash as computeRemainingAccountsHash, index$3_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$3_createInitializeConfigInstruction as createInitializeConfigInstruction, index$3_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$3_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$3_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$3_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$3_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_createSetSentinelAllowlistInstruction as createSetSentinelAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_getConfigAddress as getConfigAddress, index$3_getInitConfigCodec as getInitConfigCodec, index$3_getInitConfigDecoder as getInitConfigDecoder, index$3_getInitConfigEncoder as getInitConfigEncoder, index$3_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$3_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$3_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$3_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$3_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$3_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_phaseLabel as phaseLabel };
2668
3450
  }
2669
3451
 
2670
3452
  /**
@@ -3618,18 +4400,20 @@ type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
3618
4400
 
3619
4401
  declare const CLAIM_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3620
4402
  declare function getClaimDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3621
- type ClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountWinnerMint extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TAccountClaimerWinnerAta extends string | AccountMeta<string> = string, TAccountClaimerQuoteAta extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountReceipt extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4403
+ type ClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountWinnerMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TAccountClaimerWinnerAta extends string | AccountMeta<string> = string, TAccountClaimerQuoteAta extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountReceipt extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3622
4404
  TAccountMarket extends string ? WritableAccount<TAccountMarket> : TAccountMarket,
3623
4405
  TAccountMarketAuthority extends string ? ReadonlyAccount<TAccountMarketAuthority> : TAccountMarketAuthority,
3624
4406
  TAccountPotVault extends string ? WritableAccount<TAccountPotVault> : TAccountPotVault,
3625
4407
  TAccountWinnerMint extends string ? WritableAccount<TAccountWinnerMint> : TAccountWinnerMint,
4408
+ TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint,
3626
4409
  TAccountEntryByMint extends string ? ReadonlyAccount<TAccountEntryByMint> : TAccountEntryByMint,
3627
4410
  TAccountClaimerWinnerAta extends string ? WritableAccount<TAccountClaimerWinnerAta> : TAccountClaimerWinnerAta,
3628
4411
  TAccountClaimerQuoteAta extends string ? WritableAccount<TAccountClaimerQuoteAta> : TAccountClaimerQuoteAta,
3629
4412
  TAccountClaimer extends string ? ReadonlySignerAccount<TAccountClaimer> & AccountSignerMeta<TAccountClaimer> : TAccountClaimer,
3630
4413
  TAccountReceipt extends string ? WritableAccount<TAccountReceipt> : TAccountReceipt,
3631
4414
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
3632
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
4415
+ TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram,
4416
+ TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram,
3633
4417
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3634
4418
  ...TRemainingAccounts
3635
4419
  ]>;
@@ -3643,7 +4427,7 @@ type ClaimInstructionDataArgs = {
3643
4427
  declare function getClaimInstructionDataEncoder(): FixedSizeEncoder<ClaimInstructionDataArgs>;
3644
4428
  declare function getClaimInstructionDataDecoder(): FixedSizeDecoder<ClaimInstructionData>;
3645
4429
  declare function getClaimInstructionDataCodec(): FixedSizeCodec<ClaimInstructionDataArgs, ClaimInstructionData>;
3646
- type ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
4430
+ type ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountQuoteMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
3647
4431
  /** Market PDA */
3648
4432
  market: Address<TAccountMarket>;
3649
4433
  marketAuthority?: Address<TAccountMarketAuthority>;
@@ -3651,6 +4435,8 @@ type ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAutho
3651
4435
  potVault: Address<TAccountPotVault>;
3652
4436
  /** Winner mint (must match market.winner_mint) */
3653
4437
  winnerMint: Address<TAccountWinnerMint>;
4438
+ /** Quote mint used for reward payouts */
4439
+ quoteMint: Address<TAccountQuoteMint>;
3654
4440
  /** EntryByMint for validation that this mint belongs to this market */
3655
4441
  entryByMint?: Address<TAccountEntryByMint>;
3656
4442
  /** Claimer's winner token account (source for burn) */
@@ -3663,14 +4449,15 @@ type ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAutho
3663
4449
  receipt?: Address<TAccountReceipt>;
3664
4450
  /** Payer for receipt creation (can be same as claimer) */
3665
4451
  payer: TransactionSigner<TAccountPayer>;
3666
- tokenProgram?: Address<TAccountTokenProgram>;
4452
+ baseTokenProgram: Address<TAccountBaseTokenProgram>;
4453
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
3667
4454
  systemProgram?: Address<TAccountSystemProgram>;
3668
4455
  burnAmount: ClaimInstructionDataArgs['burnAmount'];
3669
4456
  };
3670
- declare function getClaimInstructionAsync<TAccountMarket extends string, TAccountMarketAuthority extends string, TAccountPotVault extends string, TAccountWinnerMint extends string, TAccountEntryByMint extends string, TAccountClaimerWinnerAta extends string, TAccountClaimerQuoteAta extends string, TAccountClaimer extends string, TAccountReceipt extends string, TAccountPayer extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: ClaimAsyncInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>, config?: {
4457
+ declare function getClaimInstructionAsync<TAccountMarket extends string, TAccountMarketAuthority extends string, TAccountPotVault extends string, TAccountWinnerMint extends string, TAccountQuoteMint extends string, TAccountEntryByMint extends string, TAccountClaimerWinnerAta extends string, TAccountClaimerQuoteAta extends string, TAccountClaimer extends string, TAccountReceipt extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: ClaimAsyncInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>, config?: {
3671
4458
  programAddress?: TProgramAddress;
3672
- }): Promise<ClaimInstruction<TProgramAddress, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>>;
3673
- type ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
4459
+ }): Promise<ClaimInstruction<TProgramAddress, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>>;
4460
+ type ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountQuoteMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
3674
4461
  /** Market PDA */
3675
4462
  market: Address<TAccountMarket>;
3676
4463
  marketAuthority: Address<TAccountMarketAuthority>;
@@ -3678,6 +4465,8 @@ type ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority
3678
4465
  potVault: Address<TAccountPotVault>;
3679
4466
  /** Winner mint (must match market.winner_mint) */
3680
4467
  winnerMint: Address<TAccountWinnerMint>;
4468
+ /** Quote mint used for reward payouts */
4469
+ quoteMint: Address<TAccountQuoteMint>;
3681
4470
  /** EntryByMint for validation that this mint belongs to this market */
3682
4471
  entryByMint: Address<TAccountEntryByMint>;
3683
4472
  /** Claimer's winner token account (source for burn) */
@@ -3690,13 +4479,14 @@ type ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority
3690
4479
  receipt: Address<TAccountReceipt>;
3691
4480
  /** Payer for receipt creation (can be same as claimer) */
3692
4481
  payer: TransactionSigner<TAccountPayer>;
3693
- tokenProgram?: Address<TAccountTokenProgram>;
4482
+ baseTokenProgram: Address<TAccountBaseTokenProgram>;
4483
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
3694
4484
  systemProgram?: Address<TAccountSystemProgram>;
3695
4485
  burnAmount: ClaimInstructionDataArgs['burnAmount'];
3696
4486
  };
3697
- declare function getClaimInstruction<TAccountMarket extends string, TAccountMarketAuthority extends string, TAccountPotVault extends string, TAccountWinnerMint extends string, TAccountEntryByMint extends string, TAccountClaimerWinnerAta extends string, TAccountClaimerQuoteAta extends string, TAccountClaimer extends string, TAccountReceipt extends string, TAccountPayer extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: ClaimInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>, config?: {
4487
+ declare function getClaimInstruction<TAccountMarket extends string, TAccountMarketAuthority extends string, TAccountPotVault extends string, TAccountWinnerMint extends string, TAccountQuoteMint extends string, TAccountEntryByMint extends string, TAccountClaimerWinnerAta extends string, TAccountClaimerQuoteAta extends string, TAccountClaimer extends string, TAccountReceipt extends string, TAccountPayer extends string, TAccountBaseTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS>(input: ClaimInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>, config?: {
3698
4488
  programAddress?: TProgramAddress;
3699
- }): ClaimInstruction<TProgramAddress, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>;
4489
+ }): ClaimInstruction<TProgramAddress, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>;
3700
4490
  type ParsedClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3701
4491
  programAddress: Address<TProgram>;
3702
4492
  accounts: {
@@ -3707,20 +4497,23 @@ type ParsedClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR
3707
4497
  potVault: TAccountMetas[2];
3708
4498
  /** Winner mint (must match market.winner_mint) */
3709
4499
  winnerMint: TAccountMetas[3];
4500
+ /** Quote mint used for reward payouts */
4501
+ quoteMint: TAccountMetas[4];
3710
4502
  /** EntryByMint for validation that this mint belongs to this market */
3711
- entryByMint: TAccountMetas[4];
4503
+ entryByMint: TAccountMetas[5];
3712
4504
  /** Claimer's winner token account (source for burn) */
3713
- claimerWinnerAta: TAccountMetas[5];
4505
+ claimerWinnerAta: TAccountMetas[6];
3714
4506
  /** Claimer's quote token account (destination for rewards) */
3715
- claimerQuoteAta: TAccountMetas[6];
4507
+ claimerQuoteAta: TAccountMetas[7];
3716
4508
  /** Claimer wallet (signer) */
3717
- claimer: TAccountMetas[7];
4509
+ claimer: TAccountMetas[8];
3718
4510
  /** Claim receipt PDA (created if first claim) */
3719
- receipt: TAccountMetas[8];
4511
+ receipt: TAccountMetas[9];
3720
4512
  /** Payer for receipt creation (can be same as claimer) */
3721
- payer: TAccountMetas[9];
3722
- tokenProgram: TAccountMetas[10];
3723
- systemProgram: TAccountMetas[11];
4513
+ payer: TAccountMetas[10];
4514
+ baseTokenProgram: TAccountMetas[11];
4515
+ quoteTokenProgram: TAccountMetas[12];
4516
+ systemProgram: TAccountMetas[13];
3724
4517
  };
3725
4518
  data: ClaimInstructionData;
3726
4519
  };
@@ -4084,9 +4877,9 @@ declare const index$1_CLAIM_DISCRIMINATOR: typeof CLAIM_DISCRIMINATOR;
4084
4877
  declare const index$1_CLAIM_RECEIPT_DISCRIMINATOR: typeof CLAIM_RECEIPT_DISCRIMINATOR;
4085
4878
  type index$1_CalldataBuf = CalldataBuf;
4086
4879
  type index$1_CalldataBufArgs = CalldataBufArgs;
4087
- type index$1_ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = ClaimAsyncInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>;
4088
- type index$1_ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = ClaimInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram>;
4089
- type index$1_ClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountWinnerMint extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TAccountClaimerWinnerAta extends string | AccountMeta<string> = string, TAccountClaimerQuoteAta extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountReceipt extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClaimInstruction<TProgram, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountTokenProgram, TAccountSystemProgram, TRemainingAccounts>;
4880
+ type index$1_ClaimAsyncInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountQuoteMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string> = ClaimAsyncInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>;
4881
+ type index$1_ClaimInput<TAccountMarket extends string = string, TAccountMarketAuthority extends string = string, TAccountPotVault extends string = string, TAccountWinnerMint extends string = string, TAccountQuoteMint extends string = string, TAccountEntryByMint extends string = string, TAccountClaimerWinnerAta extends string = string, TAccountClaimerQuoteAta extends string = string, TAccountClaimer extends string = string, TAccountReceipt extends string = string, TAccountPayer extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountSystemProgram extends string = string> = ClaimInput<TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram>;
4882
+ type index$1_ClaimInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMarket extends string | AccountMeta<string> = string, TAccountMarketAuthority extends string | AccountMeta<string> = string, TAccountPotVault extends string | AccountMeta<string> = string, TAccountWinnerMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountEntryByMint extends string | AccountMeta<string> = string, TAccountClaimerWinnerAta extends string | AccountMeta<string> = string, TAccountClaimerQuoteAta extends string | AccountMeta<string> = string, TAccountClaimer extends string | AccountMeta<string> = string, TAccountReceipt extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClaimInstruction<TProgram, TAccountMarket, TAccountMarketAuthority, TAccountPotVault, TAccountWinnerMint, TAccountQuoteMint, TAccountEntryByMint, TAccountClaimerWinnerAta, TAccountClaimerQuoteAta, TAccountClaimer, TAccountReceipt, TAccountPayer, TAccountBaseTokenProgram, TAccountQuoteTokenProgram, TAccountSystemProgram, TRemainingAccounts>;
4090
4883
  type index$1_ClaimInstructionData = ClaimInstructionData;
4091
4884
  type index$1_ClaimInstructionDataArgs = ClaimInstructionDataArgs;
4092
4885
  type index$1_ClaimReceipt = ClaimReceipt;