@whetstone-research/doppler-sdk 1.0.12 → 1.0.14

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.
Files changed (39) hide show
  1. package/README.md +49 -13
  2. package/dist/{chunk-AT33RY6T.cjs → chunk-3BW6IVP3.cjs} +46 -37
  3. package/dist/chunk-3BW6IVP3.cjs.map +1 -0
  4. package/dist/{chunk-ZQEEGBXT.js → chunk-NMTYI3TB.js} +23 -26
  5. package/dist/chunk-NMTYI3TB.js.map +1 -0
  6. package/dist/{chunk-2NFQKIOB.js → chunk-TVBSIQIX.js} +35 -26
  7. package/dist/chunk-TVBSIQIX.js.map +1 -0
  8. package/dist/{chunk-LL7TW3GU.cjs → chunk-W5TMS4RD.cjs} +56 -59
  9. package/dist/chunk-W5TMS4RD.cjs.map +1 -0
  10. package/dist/evm/index.cjs +226 -115
  11. package/dist/evm/index.cjs.map +1 -1
  12. package/dist/evm/index.d.cts +6 -0
  13. package/dist/evm/index.d.ts +6 -0
  14. package/dist/evm/index.js +227 -116
  15. package/dist/evm/index.js.map +1 -1
  16. package/dist/{oracle-CU-nZnja.d.cts → oracle-DN8BrGPh.d.cts} +28 -28
  17. package/dist/{oracle-CU-nZnja.d.ts → oracle-DN8BrGPh.d.ts} +28 -28
  18. package/dist/{pda-FLNTBIC5.js → pda-5D3GD5S6.js} +3 -3
  19. package/dist/pda-5D3GD5S6.js.map +1 -0
  20. package/dist/{pda-G25AJSXG.cjs → pda-GNZYNRUH.cjs} +17 -17
  21. package/dist/{pda-G25AJSXG.cjs.map → pda-GNZYNRUH.cjs.map} +1 -1
  22. package/dist/solana/index.cjs +875 -740
  23. package/dist/solana/index.cjs.map +1 -1
  24. package/dist/solana/index.d.cts +545 -471
  25. package/dist/solana/index.d.ts +545 -471
  26. package/dist/solana/index.js +738 -603
  27. package/dist/solana/index.js.map +1 -1
  28. package/dist/solana/react/index.cjs +57 -57
  29. package/dist/solana/react/index.cjs.map +1 -1
  30. package/dist/solana/react/index.d.cts +5 -5
  31. package/dist/solana/react/index.d.ts +5 -5
  32. package/dist/solana/react/index.js +15 -15
  33. package/dist/solana/react/index.js.map +1 -1
  34. package/package.json +4 -2
  35. package/dist/chunk-2NFQKIOB.js.map +0 -1
  36. package/dist/chunk-AT33RY6T.cjs.map +0 -1
  37. package/dist/chunk-LL7TW3GU.cjs.map +0 -1
  38. package/dist/chunk-ZQEEGBXT.js.map +0 -1
  39. package/dist/pda-FLNTBIC5.js.map +0 -1
@@ -1,9 +1,10 @@
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
- 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.js';
1
+ import * as _solana_kit from '@solana/kit';
2
+ import { Address, ReadonlyUint8Array, Codec, ProgramDerivedAddress, TransactionSigner, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, AccountSignerMeta, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, OptionOrNullable, Option, Rpc, GetAccountInfoApi, TransactionMessage, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending } from '@solana/kit';
3
+ import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$1, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, i as SetRouteArgs, T as TransferAdminArgs, j as OracleConsultArgs, Q as QuoteToNumeraireArgs, k as Observation, l as TradeDirection, 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, H as HookErrorEvent, z as HookInvokedEvent, B as HookUpdatedEvent, D as OracleInitializedEvent, E as OracleUpdatedEvent, J as OracleWithAddress, K as PausedEvent, L as PoolInitializedEvent, N as PositionClosedEvent, U as PositionCreatedEvent, V as PositionValue, W as PositionWithAddress, X as RemoveLiquidityEvent, Y as RouteUpdatedEvent, Z as SwapEvent, _ as TwapResult, $ as UnpausedEvent, a0 as VaultExcessWithdrawnEvent, 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-DN8BrGPh.js';
3
4
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
4
5
 
5
6
  /**
6
- * CPMM AMM program ID (devnet)
7
+ * CPMM AMM program ID for the currently published Solana deployment.
7
8
  */
8
9
  declare const CPMM_PROGRAM_ID: Address;
9
10
  /**
@@ -16,8 +17,8 @@ declare const BPS_DENOM = 10000n;
16
17
  declare const Q64_ONE: bigint;
17
18
  /** Current account version */
18
19
  declare const ACCOUNT_VERSION = 1;
19
- /** Maximum number of programs in sentinel allowlist */
20
- declare const MAX_SENTINEL_ALLOWLIST$1 = 32;
20
+ /** Maximum number of programs in hook allowlist */
21
+ declare const MAX_HOOK_ALLOWLIST$1 = 32;
21
22
  /** Maximum number of oracle observations (TWAP buffer size) */
22
23
  declare const MAX_ORACLE_OBSERVATIONS = 64;
23
24
  /** Seed for AmmConfig PDA: ['config'] */
@@ -30,26 +31,26 @@ declare const SEED_AUTHORITY = "authority";
30
31
  declare const SEED_POSITION = "position";
31
32
  /** Seed prefix for OracleState PDA: ['oracle', pool] */
32
33
  declare const SEED_ORACLE = "oracle";
33
- /** Seed prefix for protocol position PDA: ['protocol_position', pool] */
34
- declare const SEED_PROTOCOL_POSITION = "protocol_position";
35
- /** Sentinel hook: called before swap */
36
- declare const SF_BEFORE_SWAP$1: number;
37
- /** Sentinel hook: called after swap */
38
- declare const SF_AFTER_SWAP$1: number;
39
- /** Sentinel hook: called before add liquidity */
40
- declare const SF_BEFORE_ADD_LIQ: number;
41
- /** Sentinel hook: called after add liquidity */
42
- declare const SF_AFTER_ADD_LIQ: number;
43
- /** Sentinel hook: called before remove liquidity */
44
- declare const SF_BEFORE_REMOVE_LIQ: number;
45
- /** Sentinel hook: called after remove liquidity */
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;
51
- /** Sentinel return value indicating "no change" to fee parameter */
52
- declare const SENTINEL_NO_CHANGE$1 = 65535;
34
+ /** Seed prefix for protocol fee position PDA: ['protocol_position', pool] */
35
+ declare const SEED_PROTOCOL_FEE_POSITION = "protocol_position";
36
+ /** Hook: called before swap */
37
+ declare const HF_BEFORE_SWAP$1: number;
38
+ /** Hook: called after swap */
39
+ declare const HF_AFTER_SWAP$1: number;
40
+ /** Hook: called before add liquidity */
41
+ declare const HF_BEFORE_ADD_LIQ: number;
42
+ /** Hook: called after add liquidity */
43
+ declare const HF_AFTER_ADD_LIQ: number;
44
+ /** Hook: called before remove liquidity */
45
+ declare const HF_BEFORE_REMOVE_LIQ: number;
46
+ /** Hook: called after remove liquidity */
47
+ declare const HF_AFTER_REMOVE_LIQ: number;
48
+ /** Require an oracle account when invoking hooks */
49
+ declare const HF_REQUIRE_ORACLE: number;
50
+ /** Preserve readonly signer metas when forwarding remaining accounts to hooks */
51
+ declare const HF_FORWARD_READONLY_SIGNERS: number;
52
+ /** Hook return value indicating "no change" to fee parameter */
53
+ declare const HOOK_NO_CHANGE$1 = 65535;
53
54
  /**
54
55
  * Anchor instruction discriminator (first 8 bytes of SHA256("global:<instruction_name>"))
55
56
  * These are computed at build time from the instruction names.
@@ -68,13 +69,13 @@ declare const INSTRUCTION_DISCRIMINATORS: {
68
69
  readonly oracleUpdate: Uint8Array<ArrayBuffer>;
69
70
  readonly oracleConsult: Uint8Array<ArrayBuffer>;
70
71
  readonly quoteToNumeraire: Uint8Array<ArrayBuffer>;
71
- readonly setSentinel: Uint8Array<ArrayBuffer>;
72
+ readonly setHook: Uint8Array<ArrayBuffer>;
72
73
  readonly setFees: Uint8Array<ArrayBuffer>;
73
74
  readonly setRoute: Uint8Array<ArrayBuffer>;
74
75
  readonly transferAdmin: Uint8Array<ArrayBuffer>;
75
76
  readonly pause: Uint8Array<ArrayBuffer>;
76
77
  readonly unpause: Uint8Array<ArrayBuffer>;
77
- readonly skim: Uint8Array<ArrayBuffer>;
78
+ readonly withdrawVaultExcess: Uint8Array<ArrayBuffer>;
78
79
  };
79
80
  /**
80
81
  * Anchor account discriminator (first 8 bytes of SHA256("account:<AccountName>"))
@@ -132,7 +133,7 @@ declare const createPositionArgsCodec: Codec<CreatePositionArgs>;
132
133
  declare const initializeConfigArgsCodec: Codec<InitializeConfigArgs$1>;
133
134
  declare const initializePoolArgsCodec: Codec<InitializePoolArgs>;
134
135
  declare const initializeOracleArgsCodec: Codec<InitializeOracleArgs$1>;
135
- declare const setSentinelArgsCodec: Codec<SetSentinelArgs>;
136
+ declare const setHookArgsCodec: Codec<SetHookArgs>;
136
137
  declare const setFeesArgsCodec: Codec<SetFeesArgs>;
137
138
  declare const setRouteArgsCodec: Codec<SetRouteArgs>;
138
139
  declare const transferAdminArgsCodec: Codec<TransferAdminArgs>;
@@ -156,8 +157,8 @@ declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$1): Uint8
156
157
  declare function encodeInitializePoolArgs(args: InitializePoolArgs): Uint8Array;
157
158
  /** Encode InitializeOracle args */
158
159
  declare function encodeInitializeOracleArgs(args: InitializeOracleArgs$1): Uint8Array;
159
- /** Encode SetSentinel args */
160
- declare function encodeSetSentinelArgs(args: SetSentinelArgs): Uint8Array;
160
+ /** Encode SetHook args */
161
+ declare function encodeSetHookArgs(args: SetHookArgs): Uint8Array;
161
162
  /** Encode SetFees args */
162
163
  declare function encodeSetFeesArgs(args: SetFeesArgs): Uint8Array;
163
164
  /** Encode SetRoute args */
@@ -221,10 +222,10 @@ declare function getPositionAddress(pool: Address, owner: Address, positionId: b
221
222
  */
222
223
  declare function getOracleAddress(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
223
224
  /**
224
- * Derive the Protocol Position PDA address
225
+ * Derive the protocol fee position PDA address
225
226
  * Seeds: ['protocol_position', pool]
226
227
  */
227
- declare function getProtocolPositionAddress(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
228
+ declare function getProtocolFeePositionAddress(pool: Address, programId?: Address): Promise<ProgramDerivedAddress>;
228
229
  /**
229
230
  * Derive all PDAs needed for pool initialization
230
231
  */
@@ -236,7 +237,7 @@ declare function getPoolInitAddresses(mint0: Address, mint1: Address, programId?
236
237
  vault0: ProgramDerivedAddress;
237
238
  vault1: ProgramDerivedAddress;
238
239
  config: ProgramDerivedAddress;
239
- protocolPosition: ProgramDerivedAddress;
240
+ protocolFeePosition: ProgramDerivedAddress;
240
241
  }>;
241
242
  /**
242
243
  * Derive all PDAs needed for swap operation
@@ -253,7 +254,7 @@ declare function getLiquidityAddresses(pool: Address, owner: Address, positionId
253
254
  config: ProgramDerivedAddress;
254
255
  authority: ProgramDerivedAddress;
255
256
  position: ProgramDerivedAddress;
256
- protocolPosition: ProgramDerivedAddress;
257
+ protocolFeePosition: ProgramDerivedAddress;
257
258
  oracle: ProgramDerivedAddress;
258
259
  }>;
259
260
 
@@ -322,11 +323,11 @@ declare function ratioToNumber(numerator: bigint, denominator: bigint): number;
322
323
  * CPMM output:
323
324
  * - amount_out = floor(amount_in_eff * reserve_out / (reserve_in + amount_in_eff))
324
325
  */
325
- declare function getSwapQuote(pool: Pool, amountIn: bigint, direction: SwapDirection): SwapQuote;
326
+ declare function getSwapQuote(pool: Pool, amountIn: bigint, tradeDirection: TradeDirection): SwapQuote;
326
327
  /**
327
328
  * Calculate input amount needed for exact output (reverse quote)
328
329
  */
329
- declare function getSwapQuoteExactOut(pool: Pool, amountOut: bigint, direction: SwapDirection): SwapQuoteExactOut;
330
+ declare function getSwapQuoteExactOut(pool: Pool, amountOut: bigint, tradeDirection: TradeDirection): SwapQuoteExactOut;
330
331
  /**
331
332
  * Calculate shares and actual amounts for adding liquidity
332
333
  *
@@ -381,7 +382,7 @@ declare function getK(pool: Pool): bigint;
381
382
  * @param pool Pool data
382
383
  * @param side 0 = denominate in token0, 1 = denominate in token1
383
384
  */
384
- declare function getTvl(pool: Pool, side?: SwapDirection): bigint;
385
+ declare function getTvl(pool: Pool, side?: TradeDirection): bigint;
385
386
  /**
386
387
  * Calculate TWAP price from oracle observations
387
388
  *
@@ -512,8 +513,8 @@ declare enum CpmmErrorCode {
512
513
  InvalidFee = 6002,
513
514
  /** Invalid fee split value (exceeds max or invalid range) */
514
515
  InvalidFeeSplit = 6003,
515
- /** Invalid swap direction (must be 0 or 1) */
516
- InvalidDirection = 6004,
516
+ /** Invalid trade direction (must be 0 or 1) */
517
+ InvalidTradeDirection = 6004,
517
518
  /** Insufficient liquidity for operation */
518
519
  InsufficientLiquidity = 6005,
519
520
  /** Output amount less than minimum (slippage exceeded) */
@@ -538,20 +539,20 @@ declare enum CpmmErrorCode {
538
539
  OracleNotInitialized = 6015,
539
540
  /** Zero shares out */
540
541
  ZeroSharesOut = 6016,
541
- /** Sentinel program rejected the operation */
542
- SentinelRejected = 6017,
543
- /** Sentinel CPI call failed */
544
- SentinelCpiFailed = 6018,
545
- /** Sentinel program account not provided */
546
- SentinelProgramNotProvided = 6019,
547
- /** Sentinel program account is not executable */
548
- SentinelProgramNotExecutable = 6020,
549
- /** Sentinel return data missing or wrong program id */
550
- SentinelReturnDataMissing = 6021,
551
- /** Sentinel return data invalid length or could not deserialize */
552
- SentinelReturnDataInvalid = 6022,
553
- /** Sentinel program not in allowlist */
554
- SentinelNotAllowlisted = 6023,
542
+ /** Hook rejected the operation */
543
+ HookRejected = 6017,
544
+ /** Hook CPI call failed */
545
+ HookCpiFailed = 6018,
546
+ /** Hook program account not provided */
547
+ HookProgramNotProvided = 6019,
548
+ /** Hook program account is not executable */
549
+ HookProgramNotExecutable = 6020,
550
+ /** Hook return data missing or wrong program id */
551
+ HookReturnDataMissing = 6021,
552
+ /** Hook return data invalid length or could not deserialize */
553
+ HookReturnDataInvalid = 6022,
554
+ /** Hook program not in allowlist */
555
+ HookNotAllowlisted = 6023,
555
556
  /** Pool has zero shares (no liquidity) */
556
557
  TotalSharesZero = 6024,
557
558
  /** Amount cannot be zero */
@@ -565,7 +566,11 @@ declare enum CpmmErrorCode {
565
566
  /** Invalid input parameter */
566
567
  InvalidInput = 6029,
567
568
  /** Reentrancy detected */
568
- Reentrancy = 6030
569
+ Reentrancy = 6030,
570
+ /** CPI calls into this program are forbidden */
571
+ CpiForbidden = 6031,
572
+ /** Protocol fee position must be claimed via collect_protocol_fees */
573
+ UseCollectProtocolFees = 6032
569
574
  }
570
575
  /**
571
576
  * Human-readable error messages
@@ -616,11 +621,11 @@ declare const CPMM_PROGRAM_ADDRESS: Address<"9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNs
616
621
 
617
622
  declare const ADD_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
618
623
  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<[
624
+ 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, TAccountProtocolFeePosition 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
625
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
621
626
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
622
627
  TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
623
- TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
628
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
624
629
  TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
625
630
  TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
626
631
  TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
@@ -650,11 +655,11 @@ type AddLiquidityInstructionDataArgs = {
650
655
  declare function getAddLiquidityInstructionDataEncoder(): FixedSizeEncoder<AddLiquidityInstructionDataArgs>;
651
656
  declare function getAddLiquidityInstructionDataDecoder(): FixedSizeDecoder<AddLiquidityInstructionData>;
652
657
  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> = {
658
+ type AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
654
659
  config: Address<TAccountConfig>;
655
660
  pool: Address<TAccountPool>;
656
661
  position: Address<TAccountPosition>;
657
- protocolPosition: Address<TAccountProtocolPosition>;
662
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
658
663
  owner: TransactionSigner<TAccountOwner>;
659
664
  authority?: Address<TAccountAuthority>;
660
665
  vault0: Address<TAccountVault0>;
@@ -671,14 +676,14 @@ type AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool
671
676
  minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut'];
672
677
  updateOracle: AddLiquidityInstructionDataArgs['updateOracle'];
673
678
  };
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?: {
679
+ declare function getAddLiquidityInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
675
680
  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> = {
681
+ }): Promise<AddLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
682
+ type AddLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
678
683
  config: Address<TAccountConfig>;
679
684
  pool: Address<TAccountPool>;
680
685
  position: Address<TAccountPosition>;
681
- protocolPosition: Address<TAccountProtocolPosition>;
686
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
682
687
  owner: TransactionSigner<TAccountOwner>;
683
688
  authority: Address<TAccountAuthority>;
684
689
  vault0: Address<TAccountVault0>;
@@ -695,16 +700,16 @@ type AddLiquidityInput<TAccountConfig extends string = string, TAccountPool exte
695
700
  minSharesOut: AddLiquidityInstructionDataArgs['minSharesOut'];
696
701
  updateOracle: AddLiquidityInstructionDataArgs['updateOracle'];
697
702
  };
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?: {
703
+ declare function getAddLiquidityInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
699
704
  programAddress?: TProgramAddress;
700
- }): AddLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
705
+ }): AddLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
701
706
  type ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
702
707
  programAddress: Address<TProgram>;
703
708
  accounts: {
704
709
  config: TAccountMetas[0];
705
710
  pool: TAccountMetas[1];
706
711
  position: TAccountMetas[2];
707
- protocolPosition: TAccountMetas[3];
712
+ protocolFeePosition: TAccountMetas[3];
708
713
  owner: TAccountMetas[4];
709
714
  authority: TAccountMetas[5];
710
715
  vault0: TAccountMetas[6];
@@ -871,10 +876,10 @@ declare function parseCollectFeesInstruction<TProgram extends string, TAccountMe
871
876
 
872
877
  declare const COLLECT_PROTOCOL_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
873
878
  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<[
879
+ type CollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
875
880
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
876
881
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
877
- TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
882
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
878
883
  TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
879
884
  TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
880
885
  TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
@@ -899,10 +904,10 @@ type CollectProtocolFeesInstructionDataArgs = {
899
904
  declare function getCollectProtocolFeesInstructionDataEncoder(): FixedSizeEncoder<CollectProtocolFeesInstructionDataArgs>;
900
905
  declare function getCollectProtocolFeesInstructionDataDecoder(): FixedSizeDecoder<CollectProtocolFeesInstructionData>;
901
906
  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> = {
907
+ type CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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
908
  config: Address<TAccountConfig>;
904
909
  pool: Address<TAccountPool>;
905
- protocolPosition: Address<TAccountProtocolPosition>;
910
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
906
911
  admin: TransactionSigner<TAccountAdmin>;
907
912
  authority?: Address<TAccountAuthority>;
908
913
  vault0: Address<TAccountVault0>;
@@ -916,13 +921,13 @@ type CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAcco
916
921
  max0: CollectProtocolFeesInstructionDataArgs['max0'];
917
922
  max1: CollectProtocolFeesInstructionDataArgs['max1'];
918
923
  };
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?: {
924
+ declare function getCollectProtocolFeesInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>, config?: {
920
925
  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> = {
926
+ }): Promise<CollectProtocolFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>>;
927
+ type CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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
928
  config: Address<TAccountConfig>;
924
929
  pool: Address<TAccountPool>;
925
- protocolPosition: Address<TAccountProtocolPosition>;
930
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
926
931
  admin: TransactionSigner<TAccountAdmin>;
927
932
  authority: Address<TAccountAuthority>;
928
933
  vault0: Address<TAccountVault0>;
@@ -936,15 +941,15 @@ type CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPo
936
941
  max0: CollectProtocolFeesInstructionDataArgs['max0'];
937
942
  max1: CollectProtocolFeesInstructionDataArgs['max1'];
938
943
  };
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?: {
944
+ declare function getCollectProtocolFeesInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>, config?: {
940
945
  programAddress?: TProgramAddress;
941
- }): CollectProtocolFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
946
+ }): CollectProtocolFeesInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
942
947
  type ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
943
948
  programAddress: Address<TProgram>;
944
949
  accounts: {
945
950
  config: TAccountMetas[0];
946
951
  pool: TAccountMetas[1];
947
- protocolPosition: TAccountMetas[2];
952
+ protocolFeePosition: TAccountMetas[2];
948
953
  admin: TAccountMetas[3];
949
954
  authority: TAccountMetas[4];
950
955
  vault0: TAccountMetas[5];
@@ -1049,7 +1054,7 @@ type InitializeConfigInstructionData = {
1049
1054
  maxRouteHops: number;
1050
1055
  protocolFeeEnabled: boolean;
1051
1056
  protocolFeeBps: number;
1052
- sentinelAllowlist: Array<Address>;
1057
+ hookAllowlist: Array<Address>;
1053
1058
  };
1054
1059
  type InitializeConfigInstructionDataArgs = {
1055
1060
  admin: Address;
@@ -1059,7 +1064,7 @@ type InitializeConfigInstructionDataArgs = {
1059
1064
  maxRouteHops: number;
1060
1065
  protocolFeeEnabled: boolean;
1061
1066
  protocolFeeBps: number;
1062
- sentinelAllowlist: Array<Address>;
1067
+ hookAllowlist: Array<Address>;
1063
1068
  };
1064
1069
  declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
1065
1070
  declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
@@ -1076,7 +1081,7 @@ type InitializeConfigAsyncInput<TAccountConfig extends string = string, TAccount
1076
1081
  maxRouteHops: InitializeConfigInstructionDataArgs['maxRouteHops'];
1077
1082
  protocolFeeEnabled: InitializeConfigInstructionDataArgs['protocolFeeEnabled'];
1078
1083
  protocolFeeBps: InitializeConfigInstructionDataArgs['protocolFeeBps'];
1079
- sentinelAllowlist: InitializeConfigInstructionDataArgs['sentinelAllowlist'];
1084
+ hookAllowlist: InitializeConfigInstructionDataArgs['hookAllowlist'];
1080
1085
  };
1081
1086
  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
1087
  programAddress?: TProgramAddress;
@@ -1093,7 +1098,7 @@ type InitializeConfigInput<TAccountConfig extends string = string, TAccountProgr
1093
1098
  maxRouteHops: InitializeConfigInstructionDataArgs['maxRouteHops'];
1094
1099
  protocolFeeEnabled: InitializeConfigInstructionDataArgs['protocolFeeEnabled'];
1095
1100
  protocolFeeBps: InitializeConfigInstructionDataArgs['protocolFeeBps'];
1096
- sentinelAllowlist: InitializeConfigInstructionDataArgs['sentinelAllowlist'];
1101
+ hookAllowlist: InitializeConfigInstructionDataArgs['hookAllowlist'];
1097
1102
  };
1098
1103
  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
1104
  programAddress?: TProgramAddress;
@@ -1191,10 +1196,10 @@ declare function parseInitializeOracleInstruction$1<TProgram extends string, TAc
1191
1196
 
1192
1197
  declare const INITIALIZE_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1193
1198
  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<[
1199
+ type InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, 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
1200
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1196
1201
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1197
- TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
1202
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
1198
1203
  TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1199
1204
  TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1200
1205
  TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
@@ -1214,7 +1219,7 @@ type InitializePoolInstructionData = {
1214
1219
  mintB: Address;
1215
1220
  initialSwapFeeBps: number;
1216
1221
  initialFeeSplitBps: number;
1217
- liquidityMeasureSide: number;
1222
+ liquidityMeasureTokenIndex: number;
1218
1223
  numeraireMintOverride: Option<Address>;
1219
1224
  };
1220
1225
  type InitializePoolInstructionDataArgs = {
@@ -1222,16 +1227,16 @@ type InitializePoolInstructionDataArgs = {
1222
1227
  mintB: Address;
1223
1228
  initialSwapFeeBps: number;
1224
1229
  initialFeeSplitBps: number;
1225
- liquidityMeasureSide: number;
1230
+ liquidityMeasureTokenIndex: number;
1226
1231
  numeraireMintOverride: OptionOrNullable<Address>;
1227
1232
  };
1228
1233
  declare function getInitializePoolInstructionDataEncoder(): Encoder<InitializePoolInstructionDataArgs>;
1229
1234
  declare function getInitializePoolInstructionDataDecoder(): Decoder<InitializePoolInstructionData>;
1230
1235
  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> = {
1236
+ type InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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
1237
  config: Address<TAccountConfig>;
1233
1238
  pool?: Address<TAccountPool>;
1234
- protocolPosition?: Address<TAccountProtocolPosition>;
1239
+ protocolFeePosition?: Address<TAccountProtocolFeePosition>;
1235
1240
  authority?: Address<TAccountAuthority>;
1236
1241
  vault0?: Address<TAccountVault0>;
1237
1242
  vault1?: Address<TAccountVault1>;
@@ -1252,16 +1257,16 @@ type InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPo
1252
1257
  mintB: InitializePoolInstructionDataArgs['mintB'];
1253
1258
  initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps'];
1254
1259
  initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1255
- liquidityMeasureSide: InitializePoolInstructionDataArgs['liquidityMeasureSide'];
1260
+ liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex'];
1256
1261
  numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1257
1262
  };
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?: {
1263
+ declare function getInitializePoolInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1259
1264
  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> = {
1265
+ }): Promise<InitializePoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>>;
1266
+ type InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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
1267
  config: Address<TAccountConfig>;
1263
1268
  pool: Address<TAccountPool>;
1264
- protocolPosition: Address<TAccountProtocolPosition>;
1269
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1265
1270
  authority: Address<TAccountAuthority>;
1266
1271
  vault0: Address<TAccountVault0>;
1267
1272
  vault1: Address<TAccountVault1>;
@@ -1282,18 +1287,18 @@ type InitializePoolInput<TAccountConfig extends string = string, TAccountPool ex
1282
1287
  mintB: InitializePoolInstructionDataArgs['mintB'];
1283
1288
  initialSwapFeeBps: InitializePoolInstructionDataArgs['initialSwapFeeBps'];
1284
1289
  initialFeeSplitBps: InitializePoolInstructionDataArgs['initialFeeSplitBps'];
1285
- liquidityMeasureSide: InitializePoolInstructionDataArgs['liquidityMeasureSide'];
1290
+ liquidityMeasureTokenIndex: InitializePoolInstructionDataArgs['liquidityMeasureTokenIndex'];
1286
1291
  numeraireMintOverride: InitializePoolInstructionDataArgs['numeraireMintOverride'];
1287
1292
  };
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?: {
1293
+ declare function getInitializePoolInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1289
1294
  programAddress?: TProgramAddress;
1290
- }): InitializePoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolPosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
1295
+ }): InitializePoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
1291
1296
  type ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1292
1297
  programAddress: Address<TProgram>;
1293
1298
  accounts: {
1294
1299
  config: TAccountMetas[0];
1295
1300
  pool: TAccountMetas[1];
1296
- protocolPosition: TAccountMetas[2];
1301
+ protocolFeePosition: TAccountMetas[2];
1297
1302
  authority: TAccountMetas[3];
1298
1303
  vault0: TAccountMetas[4];
1299
1304
  vault1: TAccountMetas[5];
@@ -1469,11 +1474,11 @@ type PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM
1469
1474
  type PreviewSwapExactInInstructionData = {
1470
1475
  discriminator: ReadonlyUint8Array;
1471
1476
  amountIn: bigint;
1472
- direction: number;
1477
+ tradeDirection: number;
1473
1478
  };
1474
1479
  type PreviewSwapExactInInstructionDataArgs = {
1475
1480
  amountIn: number | bigint;
1476
- direction: number;
1481
+ tradeDirection: number;
1477
1482
  };
1478
1483
  declare function getPreviewSwapExactInInstructionDataEncoder(): FixedSizeEncoder<PreviewSwapExactInInstructionDataArgs>;
1479
1484
  declare function getPreviewSwapExactInInstructionDataDecoder(): FixedSizeDecoder<PreviewSwapExactInInstructionData>;
@@ -1482,7 +1487,7 @@ type PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPoo
1482
1487
  config: Address<TAccountConfig>;
1483
1488
  pool: Address<TAccountPool>;
1484
1489
  amountIn: PreviewSwapExactInInstructionDataArgs['amountIn'];
1485
- direction: PreviewSwapExactInInstructionDataArgs['direction'];
1490
+ tradeDirection: PreviewSwapExactInInstructionDataArgs['tradeDirection'];
1486
1491
  };
1487
1492
  declare function getPreviewSwapExactInInstruction<TAccountConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: PreviewSwapExactInInput<TAccountConfig, TAccountPool>, config?: {
1488
1493
  programAddress?: TProgramAddress;
@@ -1515,14 +1520,14 @@ type QuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_A
1515
1520
  type QuoteToNumeraireInstructionData = {
1516
1521
  discriminator: ReadonlyUint8Array;
1517
1522
  amount: bigint;
1518
- side: number;
1523
+ inputTokenIndex: number;
1519
1524
  maxHops: number;
1520
1525
  useTwap: boolean;
1521
1526
  windowSeconds: number;
1522
1527
  };
1523
1528
  type QuoteToNumeraireInstructionDataArgs = {
1524
1529
  amount: number | bigint;
1525
- side: number;
1530
+ inputTokenIndex: number;
1526
1531
  maxHops: number;
1527
1532
  useTwap: boolean;
1528
1533
  windowSeconds: number;
@@ -1534,7 +1539,7 @@ type QuoteToNumeraireInput<TAccountConfig extends string = string, TAccountStart
1534
1539
  config: Address<TAccountConfig>;
1535
1540
  startPool: Address<TAccountStartPool>;
1536
1541
  amount: QuoteToNumeraireInstructionDataArgs['amount'];
1537
- side: QuoteToNumeraireInstructionDataArgs['side'];
1542
+ inputTokenIndex: QuoteToNumeraireInstructionDataArgs['inputTokenIndex'];
1538
1543
  maxHops: QuoteToNumeraireInstructionDataArgs['maxHops'];
1539
1544
  useTwap: QuoteToNumeraireInstructionDataArgs['useTwap'];
1540
1545
  windowSeconds: QuoteToNumeraireInstructionDataArgs['windowSeconds'];
@@ -1562,11 +1567,11 @@ declare function parseQuoteToNumeraireInstruction<TProgram extends string, TAcco
1562
1567
 
1563
1568
  declare const REMOVE_LIQUIDITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1564
1569
  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<[
1570
+ 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, TAccountProtocolFeePosition 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
1571
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1567
1572
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1568
1573
  TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
1569
- TAccountProtocolPosition extends string ? WritableAccount<TAccountProtocolPosition> : TAccountProtocolPosition,
1574
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
1570
1575
  TAccountOwner extends string ? ReadonlySignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
1571
1576
  TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1572
1577
  TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
@@ -1596,11 +1601,11 @@ type RemoveLiquidityInstructionDataArgs = {
1596
1601
  declare function getRemoveLiquidityInstructionDataEncoder(): FixedSizeEncoder<RemoveLiquidityInstructionDataArgs>;
1597
1602
  declare function getRemoveLiquidityInstructionDataDecoder(): FixedSizeDecoder<RemoveLiquidityInstructionData>;
1598
1603
  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> = {
1604
+ type RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1600
1605
  config: Address<TAccountConfig>;
1601
1606
  pool: Address<TAccountPool>;
1602
1607
  position: Address<TAccountPosition>;
1603
- protocolPosition: Address<TAccountProtocolPosition>;
1608
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1604
1609
  owner: TransactionSigner<TAccountOwner>;
1605
1610
  authority?: Address<TAccountAuthority>;
1606
1611
  vault0: Address<TAccountVault0>;
@@ -1617,14 +1622,14 @@ type RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountP
1617
1622
  minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out'];
1618
1623
  updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle'];
1619
1624
  };
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?: {
1625
+ declare function getRemoveLiquidityInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1621
1626
  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> = {
1627
+ }): Promise<RemoveLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>>;
1628
+ type RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = {
1624
1629
  config: Address<TAccountConfig>;
1625
1630
  pool: Address<TAccountPool>;
1626
1631
  position: Address<TAccountPosition>;
1627
- protocolPosition: Address<TAccountProtocolPosition>;
1632
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1628
1633
  owner: TransactionSigner<TAccountOwner>;
1629
1634
  authority: Address<TAccountAuthority>;
1630
1635
  vault0: Address<TAccountVault0>;
@@ -1641,16 +1646,16 @@ type RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool e
1641
1646
  minAmount1Out: RemoveLiquidityInstructionDataArgs['minAmount1Out'];
1642
1647
  updateOracle: RemoveLiquidityInstructionDataArgs['updateOracle'];
1643
1648
  };
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?: {
1649
+ declare function getRemoveLiquidityInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountPosition extends string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>, config?: {
1645
1650
  programAddress?: TProgramAddress;
1646
- }): RemoveLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1651
+ }): RemoveLiquidityInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
1647
1652
  type ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1648
1653
  programAddress: Address<TProgram>;
1649
1654
  accounts: {
1650
1655
  config: TAccountMetas[0];
1651
1656
  pool: TAccountMetas[1];
1652
1657
  position: TAccountMetas[2];
1653
- protocolPosition: TAccountMetas[3];
1658
+ protocolFeePosition: TAccountMetas[3];
1654
1659
  owner: TAccountMetas[4];
1655
1660
  authority: TAccountMetas[5];
1656
1661
  vault0: TAccountMetas[6];
@@ -1724,49 +1729,46 @@ declare function parseSetFeesInstruction<TProgram extends string, TAccountMetas
1724
1729
  * @see https://github.com/codama-idl/codama
1725
1730
  */
1726
1731
 
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<[
1732
+ declare const SET_HOOK_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1733
+ declare function getSetHookDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1734
+ type SetHookInstruction<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<[
1730
1735
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1731
1736
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1732
- TAccountNextPool extends string ? ReadonlyAccount<TAccountNextPool> : TAccountNextPool,
1733
1737
  TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1734
1738
  ...TRemainingAccounts
1735
1739
  ]>;
1736
- type SetRouteInstructionData = {
1740
+ type SetHookInstructionData = {
1737
1741
  discriminator: ReadonlyUint8Array;
1738
- routeNextPool: Address;
1739
- routeBridgeMint: Address;
1742
+ hookProgram: Address;
1743
+ hookFlags: number;
1740
1744
  };
1741
- type SetRouteInstructionDataArgs = {
1742
- routeNextPool: Address;
1743
- routeBridgeMint: Address;
1745
+ type SetHookInstructionDataArgs = {
1746
+ hookProgram: Address;
1747
+ hookFlags: number;
1744
1748
  };
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
+ declare function getSetHookInstructionDataEncoder(): FixedSizeEncoder<SetHookInstructionDataArgs>;
1750
+ declare function getSetHookInstructionDataDecoder(): FixedSizeDecoder<SetHookInstructionData>;
1751
+ declare function getSetHookInstructionDataCodec(): FixedSizeCodec<SetHookInstructionDataArgs, SetHookInstructionData>;
1752
+ type SetHookInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = {
1749
1753
  config: Address<TAccountConfig>;
1750
1754
  pool: Address<TAccountPool>;
1751
- nextPool?: Address<TAccountNextPool>;
1752
1755
  admin: TransactionSigner<TAccountAdmin>;
1753
- routeNextPool: SetRouteInstructionDataArgs['routeNextPool'];
1754
- routeBridgeMint: SetRouteInstructionDataArgs['routeBridgeMint'];
1756
+ hookProgram: SetHookInstructionDataArgs['hookProgram'];
1757
+ hookFlags: SetHookInstructionDataArgs['hookFlags'];
1755
1758
  };
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?: {
1759
+ declare function getSetHookInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: SetHookInput<TAccountConfig, TAccountPool, TAccountAdmin>, config?: {
1757
1760
  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[]> = {
1761
+ }): SetHookInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin>;
1762
+ type ParsedSetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1760
1763
  programAddress: Address<TProgram>;
1761
1764
  accounts: {
1762
1765
  config: TAccountMetas[0];
1763
1766
  pool: TAccountMetas[1];
1764
- nextPool?: TAccountMetas[2] | undefined;
1765
- admin: TAccountMetas[3];
1767
+ admin: TAccountMetas[2];
1766
1768
  };
1767
- data: SetRouteInstructionData;
1769
+ data: SetHookInstructionData;
1768
1770
  };
1769
- declare function parseSetRouteInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRouteInstruction<TProgram, TAccountMetas>;
1771
+ declare function parseSetHookInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetHookInstruction<TProgram, TAccountMetas>;
1770
1772
 
1771
1773
  /**
1772
1774
  * This code was AUTOGENERATED using the Codama library.
@@ -1776,132 +1778,49 @@ declare function parseSetRouteInstruction<TProgram extends string, TAccountMetas
1776
1778
  * @see https://github.com/codama-idl/codama
1777
1779
  */
1778
1780
 
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<[
1781
+ declare const SET_ROUTE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1782
+ declare function getSetRouteDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1783
+ 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<[
1782
1784
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1783
1785
  TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1786
+ TAccountNextPool extends string ? ReadonlyAccount<TAccountNextPool> : TAccountNextPool,
1784
1787
  TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
1785
1788
  ...TRemainingAccounts
1786
1789
  ]>;
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.
1824
- *
1825
- * @see https://github.com/codama-idl/codama
1826
- */
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 = {
1790
+ type SetRouteInstructionData = {
1846
1791
  discriminator: ReadonlyUint8Array;
1792
+ routeNextPool: Address;
1793
+ routeBridgeMint: Address;
1847
1794
  };
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>;
1795
+ type SetRouteInstructionDataArgs = {
1796
+ routeNextPool: Address;
1797
+ routeBridgeMint: Address;
1865
1798
  };
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> = {
1799
+ declare function getSetRouteInstructionDataEncoder(): FixedSizeEncoder<SetRouteInstructionDataArgs>;
1800
+ declare function getSetRouteInstructionDataDecoder(): FixedSizeDecoder<SetRouteInstructionData>;
1801
+ declare function getSetRouteInstructionDataCodec(): FixedSizeCodec<SetRouteInstructionDataArgs, SetRouteInstructionData>;
1802
+ type SetRouteInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountNextPool extends string = string, TAccountAdmin extends string = string> = {
1870
1803
  config: Address<TAccountConfig>;
1871
1804
  pool: Address<TAccountPool>;
1805
+ nextPool?: Address<TAccountNextPool>;
1872
1806
  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>;
1807
+ routeNextPool: SetRouteInstructionDataArgs['routeNextPool'];
1808
+ routeBridgeMint: SetRouteInstructionDataArgs['routeBridgeMint'];
1882
1809
  };
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?: {
1810
+ 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?: {
1884
1811
  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[]> = {
1812
+ }): SetRouteInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountNextPool, TAccountAdmin>;
1813
+ type ParsedSetRouteInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1887
1814
  programAddress: Address<TProgram>;
1888
1815
  accounts: {
1889
1816
  config: TAccountMetas[0];
1890
1817
  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];
1818
+ nextPool?: TAccountMetas[2] | undefined;
1819
+ admin: TAccountMetas[3];
1901
1820
  };
1902
- data: SkimInstructionData;
1821
+ data: SetRouteInstructionData;
1903
1822
  };
1904
- declare function parseSkimInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSkimInstruction<TProgram, TAccountMetas>;
1823
+ declare function parseSetRouteInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRouteInstruction<TProgram, TAccountMetas>;
1905
1824
 
1906
1825
  /**
1907
1826
  * This code was AUTOGENERATED using the Codama library.
@@ -1933,13 +1852,13 @@ type SwapExactInInstructionData = {
1933
1852
  discriminator: ReadonlyUint8Array;
1934
1853
  amountIn: bigint;
1935
1854
  minAmountOut: bigint;
1936
- direction: number;
1855
+ tradeDirection: number;
1937
1856
  updateOracle: boolean;
1938
1857
  };
1939
1858
  type SwapExactInInstructionDataArgs = {
1940
1859
  amountIn: number | bigint;
1941
1860
  minAmountOut: number | bigint;
1942
- direction: number;
1861
+ tradeDirection: number;
1943
1862
  updateOracle: boolean;
1944
1863
  };
1945
1864
  declare function getSwapExactInInstructionDataEncoder(): FixedSizeEncoder<SwapExactInInstructionDataArgs>;
@@ -1961,7 +1880,7 @@ type SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool
1961
1880
  oracle?: Address<TAccountOracle>;
1962
1881
  amountIn: SwapExactInInstructionDataArgs['amountIn'];
1963
1882
  minAmountOut: SwapExactInInstructionDataArgs['minAmountOut'];
1964
- direction: SwapExactInInstructionDataArgs['direction'];
1883
+ tradeDirection: SwapExactInInstructionDataArgs['tradeDirection'];
1965
1884
  updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
1966
1885
  };
1967
1886
  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?: {
@@ -1983,7 +1902,7 @@ type SwapExactInInput<TAccountConfig extends string = string, TAccountPool exten
1983
1902
  oracle?: Address<TAccountOracle>;
1984
1903
  amountIn: SwapExactInInstructionDataArgs['amountIn'];
1985
1904
  minAmountOut: SwapExactInInstructionDataArgs['minAmountOut'];
1986
- direction: SwapExactInInstructionDataArgs['direction'];
1905
+ tradeDirection: SwapExactInInstructionDataArgs['tradeDirection'];
1987
1906
  updateOracle: SwapExactInInstructionDataArgs['updateOracle'];
1988
1907
  };
1989
1908
  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?: {
@@ -2115,7 +2034,7 @@ type UpdateConfigInstructionData = {
2115
2034
  maxRouteHops: number;
2116
2035
  protocolFeeEnabled: boolean;
2117
2036
  protocolFeeBps: number;
2118
- sentinelAllowlist: Array<Address>;
2037
+ hookAllowlist: Array<Address>;
2119
2038
  };
2120
2039
  type UpdateConfigInstructionDataArgs = {
2121
2040
  numeraireMint: Address;
@@ -2124,7 +2043,7 @@ type UpdateConfigInstructionDataArgs = {
2124
2043
  maxRouteHops: number;
2125
2044
  protocolFeeEnabled: boolean;
2126
2045
  protocolFeeBps: number;
2127
- sentinelAllowlist: Array<Address>;
2046
+ hookAllowlist: Array<Address>;
2128
2047
  };
2129
2048
  declare function getUpdateConfigInstructionDataEncoder(): Encoder<UpdateConfigInstructionDataArgs>;
2130
2049
  declare function getUpdateConfigInstructionDataDecoder(): Decoder<UpdateConfigInstructionData>;
@@ -2138,7 +2057,7 @@ type UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin ext
2138
2057
  maxRouteHops: UpdateConfigInstructionDataArgs['maxRouteHops'];
2139
2058
  protocolFeeEnabled: UpdateConfigInstructionDataArgs['protocolFeeEnabled'];
2140
2059
  protocolFeeBps: UpdateConfigInstructionDataArgs['protocolFeeBps'];
2141
- sentinelAllowlist: UpdateConfigInstructionDataArgs['sentinelAllowlist'];
2060
+ hookAllowlist: UpdateConfigInstructionDataArgs['hookAllowlist'];
2142
2061
  };
2143
2062
  declare function getUpdateConfigInstruction<TAccountConfig extends string, TAccountAdmin extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: UpdateConfigInput<TAccountConfig, TAccountAdmin>, config?: {
2144
2063
  programAddress?: TProgramAddress;
@@ -2153,6 +2072,92 @@ type ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM
2153
2072
  };
2154
2073
  declare function parseUpdateConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2155
2074
 
2075
+ /**
2076
+ * This code was AUTOGENERATED using the Codama library.
2077
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2078
+ * to add features, then rerun Codama to update it.
2079
+ *
2080
+ * @see https://github.com/codama-idl/codama
2081
+ */
2082
+
2083
+ declare const WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2084
+ declare function getWithdrawVaultExcessDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2085
+ type WithdrawVaultExcessInstruction<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<[
2086
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
2087
+ TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool,
2088
+ TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
2089
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
2090
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
2091
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
2092
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
2093
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
2094
+ TAccountAdminAta0 extends string ? WritableAccount<TAccountAdminAta0> : TAccountAdminAta0,
2095
+ TAccountAdminAta1 extends string ? WritableAccount<TAccountAdminAta1> : TAccountAdminAta1,
2096
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
2097
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
2098
+ ...TRemainingAccounts
2099
+ ]>;
2100
+ type WithdrawVaultExcessInstructionData = {
2101
+ discriminator: ReadonlyUint8Array;
2102
+ };
2103
+ type WithdrawVaultExcessInstructionDataArgs = {};
2104
+ declare function getWithdrawVaultExcessInstructionDataEncoder(): FixedSizeEncoder<WithdrawVaultExcessInstructionDataArgs>;
2105
+ declare function getWithdrawVaultExcessInstructionDataDecoder(): FixedSizeDecoder<WithdrawVaultExcessInstructionData>;
2106
+ declare function getWithdrawVaultExcessInstructionDataCodec(): FixedSizeCodec<WithdrawVaultExcessInstructionDataArgs, WithdrawVaultExcessInstructionData>;
2107
+ type WithdrawVaultExcessAsyncInput<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> = {
2108
+ config: Address<TAccountConfig>;
2109
+ pool: Address<TAccountPool>;
2110
+ admin: TransactionSigner<TAccountAdmin>;
2111
+ authority?: Address<TAccountAuthority>;
2112
+ vault0: Address<TAccountVault0>;
2113
+ vault1: Address<TAccountVault1>;
2114
+ token0Mint: Address<TAccountToken0Mint>;
2115
+ token1Mint: Address<TAccountToken1Mint>;
2116
+ adminAta0?: Address<TAccountAdminAta0>;
2117
+ adminAta1?: Address<TAccountAdminAta1>;
2118
+ token0Program: Address<TAccountToken0Program>;
2119
+ token1Program: Address<TAccountToken1Program>;
2120
+ };
2121
+ declare function getWithdrawVaultExcessInstructionAsync<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: WithdrawVaultExcessAsyncInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>, config?: {
2122
+ programAddress?: TProgramAddress;
2123
+ }): Promise<WithdrawVaultExcessInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>>;
2124
+ type WithdrawVaultExcessInput<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> = {
2125
+ config: Address<TAccountConfig>;
2126
+ pool: Address<TAccountPool>;
2127
+ admin: TransactionSigner<TAccountAdmin>;
2128
+ authority: Address<TAccountAuthority>;
2129
+ vault0: Address<TAccountVault0>;
2130
+ vault1: Address<TAccountVault1>;
2131
+ token0Mint: Address<TAccountToken0Mint>;
2132
+ token1Mint: Address<TAccountToken1Mint>;
2133
+ adminAta0: Address<TAccountAdminAta0>;
2134
+ adminAta1: Address<TAccountAdminAta1>;
2135
+ token0Program: Address<TAccountToken0Program>;
2136
+ token1Program: Address<TAccountToken1Program>;
2137
+ };
2138
+ declare function getWithdrawVaultExcessInstruction<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: WithdrawVaultExcessInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>, config?: {
2139
+ programAddress?: TProgramAddress;
2140
+ }): WithdrawVaultExcessInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
2141
+ type ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2142
+ programAddress: Address<TProgram>;
2143
+ accounts: {
2144
+ config: TAccountMetas[0];
2145
+ pool: TAccountMetas[1];
2146
+ admin: TAccountMetas[2];
2147
+ authority: TAccountMetas[3];
2148
+ vault0: TAccountMetas[4];
2149
+ vault1: TAccountMetas[5];
2150
+ token0Mint: TAccountMetas[6];
2151
+ token1Mint: TAccountMetas[7];
2152
+ adminAta0: TAccountMetas[8];
2153
+ adminAta1: TAccountMetas[9];
2154
+ token0Program: TAccountMetas[10];
2155
+ token1Program: TAccountMetas[11];
2156
+ };
2157
+ data: WithdrawVaultExcessInstructionData;
2158
+ };
2159
+ declare function parseWithdrawVaultExcessInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2160
+
2156
2161
  type RemainingAccount = Address | AccountMeta | AccountSignerMeta | TransactionSigner;
2157
2162
  /**
2158
2163
  * Helper to create swap instruction with simplified parameters
@@ -2170,7 +2175,7 @@ declare function createSwapInstruction(params: {
2170
2175
  user: Address | TransactionSigner;
2171
2176
  amountIn: bigint;
2172
2177
  minAmountOut: bigint;
2173
- direction: SwapDirection;
2178
+ tradeDirection: TradeDirection;
2174
2179
  oracle?: Address;
2175
2180
  remainingAccounts?: RemainingAccount[];
2176
2181
  updateOracle?: boolean;
@@ -2340,10 +2345,10 @@ declare const index$4_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
2340
2345
  declare const index$4_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
2341
2346
  declare const index$4_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
2342
2347
  declare const index$4_AddLiquidityArgs: typeof AddLiquidityArgs;
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>;
2348
+ type index$4_AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2344
2349
  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>;
2350
+ type index$4_AddLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2351
+ 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, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2347
2352
  type index$4_AddLiquidityInstructionData = AddLiquidityInstructionData;
2348
2353
  type index$4_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
2349
2354
  declare const index$4_AddLiquidityQuote: typeof AddLiquidityQuote;
@@ -2368,10 +2373,10 @@ type index$4_CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRA
2368
2373
  type index$4_CollectFeesInstructionData = CollectFeesInstructionData;
2369
2374
  type index$4_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs;
2370
2375
  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>;
2376
+ type index$4_CollectProtocolFeesAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2372
2377
  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>;
2378
+ type index$4_CollectProtocolFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2379
+ type index$4_CollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectProtocolFeesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2375
2380
  type index$4_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData;
2376
2381
  type index$4_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs;
2377
2382
  type index$4_CpmmError = CpmmError;
@@ -2390,6 +2395,15 @@ declare const index$4_FeesUpdatedEvent: typeof FeesUpdatedEvent;
2390
2395
  declare const index$4_FetchOracleConfig: typeof FetchOracleConfig;
2391
2396
  type index$4_FetchPoolsConfig = FetchPoolsConfig;
2392
2397
  declare const index$4_FetchPositionsConfig: typeof FetchPositionsConfig;
2398
+ declare const index$4_HF_AFTER_ADD_LIQ: typeof HF_AFTER_ADD_LIQ;
2399
+ declare const index$4_HF_AFTER_REMOVE_LIQ: typeof HF_AFTER_REMOVE_LIQ;
2400
+ declare const index$4_HF_BEFORE_ADD_LIQ: typeof HF_BEFORE_ADD_LIQ;
2401
+ declare const index$4_HF_BEFORE_REMOVE_LIQ: typeof HF_BEFORE_REMOVE_LIQ;
2402
+ declare const index$4_HF_FORWARD_READONLY_SIGNERS: typeof HF_FORWARD_READONLY_SIGNERS;
2403
+ declare const index$4_HF_REQUIRE_ORACLE: typeof HF_REQUIRE_ORACLE;
2404
+ declare const index$4_HookErrorEvent: typeof HookErrorEvent;
2405
+ declare const index$4_HookInvokedEvent: typeof HookInvokedEvent;
2406
+ declare const index$4_HookUpdatedEvent: typeof HookUpdatedEvent;
2393
2407
  declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
2394
2408
  declare const index$4_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
2395
2409
  declare const index$4_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
@@ -2400,9 +2414,9 @@ type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
2400
2414
  type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
2401
2415
  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>;
2402
2416
  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>;
2417
+ type index$4_InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2418
+ type index$4_InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2419
+ type index$4_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2406
2420
  type index$4_InitializePoolInstructionData = InitializePoolInstructionData;
2407
2421
  type index$4_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
2408
2422
  declare const index$4_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
@@ -2442,13 +2456,13 @@ type index$4_ParsedPreviewSwapExactInInstruction<TProgram extends string = typeo
2442
2456
  type index$4_ParsedQuoteToNumeraireInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedQuoteToNumeraireInstruction<TProgram, TAccountMetas>;
2443
2457
  type index$4_ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
2444
2458
  type index$4_ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetFeesInstruction<TProgram, TAccountMetas>;
2459
+ type index$4_ParsedSetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetHookInstruction<TProgram, TAccountMetas>;
2445
2460
  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
2461
  type index$4_ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
2449
2462
  type index$4_ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
2450
2463
  type index$4_ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUnpauseInstruction<TProgram, TAccountMetas>;
2451
2464
  type index$4_ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2465
+ type index$4_ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2452
2466
  type index$4_PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = PauseInput<TAccountConfig, TAccountAdmin>;
2453
2467
  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
2468
  type index$4_PauseInstructionData = PauseInstructionData;
@@ -2475,10 +2489,10 @@ type index$4_QuoteToNumeraireInstructionData = QuoteToNumeraireInstructionData;
2475
2489
  type index$4_QuoteToNumeraireInstructionDataArgs = QuoteToNumeraireInstructionDataArgs;
2476
2490
  declare const index$4_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR;
2477
2491
  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>;
2492
+ type index$4_RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2479
2493
  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>;
2494
+ type index$4_RemoveLiquidityInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2495
+ 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, TAccountProtocolFeePosition 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, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2482
2496
  type index$4_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData;
2483
2497
  type index$4_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs;
2484
2498
  declare const index$4_RemoveLiquidityQuote: typeof RemoveLiquidityQuote;
@@ -2487,43 +2501,26 @@ declare const index$4_SEED_AUTHORITY: typeof SEED_AUTHORITY;
2487
2501
  declare const index$4_SEED_ORACLE: typeof SEED_ORACLE;
2488
2502
  declare const index$4_SEED_POOL: typeof SEED_POOL;
2489
2503
  declare const index$4_SEED_POSITION: typeof SEED_POSITION;
2490
- declare const index$4_SEED_PROTOCOL_POSITION: typeof SEED_PROTOCOL_POSITION;
2504
+ declare const index$4_SEED_PROTOCOL_FEE_POSITION: typeof SEED_PROTOCOL_FEE_POSITION;
2491
2505
  declare const index$4_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2506
+ declare const index$4_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
2492
2507
  declare const index$4_SET_ROUTE_DISCRIMINATOR: typeof SET_ROUTE_DISCRIMINATOR;
2493
- declare const index$4_SET_SENTINEL_DISCRIMINATOR: typeof SET_SENTINEL_DISCRIMINATOR;
2494
- declare const index$4_SF_AFTER_ADD_LIQ: typeof SF_AFTER_ADD_LIQ;
2495
- declare const index$4_SF_AFTER_REMOVE_LIQ: typeof SF_AFTER_REMOVE_LIQ;
2496
- declare const index$4_SF_BEFORE_ADD_LIQ: typeof SF_BEFORE_ADD_LIQ;
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
2508
  declare const index$4_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
2502
- declare const index$4_SentinelErrorEvent: typeof SentinelErrorEvent;
2503
- declare const index$4_SentinelInvokedEvent: typeof SentinelInvokedEvent;
2504
- declare const index$4_SentinelUpdatedEvent: typeof SentinelUpdatedEvent;
2505
2509
  declare const index$4_SetFeesArgs: typeof SetFeesArgs;
2506
2510
  type index$4_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2507
2511
  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
2512
  type index$4_SetFeesInstructionData = SetFeesInstructionData;
2509
2513
  type index$4_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs;
2514
+ declare const index$4_SetHookArgs: typeof SetHookArgs;
2515
+ type index$4_SetHookInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetHookInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2516
+ type index$4_SetHookInstruction<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>[] = []> = SetHookInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TRemainingAccounts>;
2517
+ type index$4_SetHookInstructionData = SetHookInstructionData;
2518
+ type index$4_SetHookInstructionDataArgs = SetHookInstructionDataArgs;
2510
2519
  declare const index$4_SetRouteArgs: typeof SetRouteArgs;
2511
2520
  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
2521
  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
2522
  type index$4_SetRouteInstructionData = SetRouteInstructionData;
2514
2523
  type index$4_SetRouteInstructionDataArgs = SetRouteInstructionDataArgs;
2515
- declare const index$4_SetSentinelArgs: typeof SetSentinelArgs;
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;
2525
- declare const index$4_SkimmedEvent: typeof SkimmedEvent;
2526
- declare const index$4_SwapDirection: typeof SwapDirection;
2527
2524
  declare const index$4_SwapEvent: typeof SwapEvent;
2528
2525
  declare const index$4_SwapExactInArgs: typeof SwapExactInArgs;
2529
2526
  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>;
@@ -2535,6 +2532,7 @@ declare const index$4_SwapQuote: typeof SwapQuote;
2535
2532
  declare const index$4_SwapQuoteExactOut: typeof SwapQuoteExactOut;
2536
2533
  declare const index$4_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID;
2537
2534
  declare const index$4_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR;
2535
+ declare const index$4_TradeDirection: typeof TradeDirection;
2538
2536
  declare const index$4_TransferAdminArgs: typeof TransferAdminArgs;
2539
2537
  type index$4_TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = TransferAdminInput<TAccountConfig, TAccountAdmin>;
2540
2538
  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>;
@@ -2552,6 +2550,13 @@ type index$4_UpdateConfigInput<TAccountConfig extends string = string, TAccountA
2552
2550
  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
2551
  type index$4_UpdateConfigInstructionData = UpdateConfigInstructionData;
2554
2552
  type index$4_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs;
2553
+ declare const index$4_VaultExcessWithdrawnEvent: typeof VaultExcessWithdrawnEvent;
2554
+ declare const index$4_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: typeof WITHDRAW_VAULT_EXCESS_DISCRIMINATOR;
2555
+ type index$4_WithdrawVaultExcessAsyncInput<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> = WithdrawVaultExcessAsyncInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
2556
+ type index$4_WithdrawVaultExcessInput<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> = WithdrawVaultExcessInput<TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program>;
2557
+ type index$4_WithdrawVaultExcessInstruction<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>[] = []> = WithdrawVaultExcessInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountAdminAta0, TAccountAdminAta1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2558
+ type index$4_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData;
2559
+ type index$4_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs;
2555
2560
  declare const index$4_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
2556
2561
  declare const index$4_ammConfigDataCodec: typeof ammConfigDataCodec;
2557
2562
  declare const index$4_areMintsOrdered: typeof areMintsOrdered;
@@ -2583,8 +2588,8 @@ declare const index$4_encodeOracleConsultArgs: typeof encodeOracleConsultArgs;
2583
2588
  declare const index$4_encodeQuoteToNumeraireArgs: typeof encodeQuoteToNumeraireArgs;
2584
2589
  declare const index$4_encodeRemoveLiquidityArgs: typeof encodeRemoveLiquidityArgs;
2585
2590
  declare const index$4_encodeSetFeesArgs: typeof encodeSetFeesArgs;
2591
+ declare const index$4_encodeSetHookArgs: typeof encodeSetHookArgs;
2586
2592
  declare const index$4_encodeSetRouteArgs: typeof encodeSetRouteArgs;
2587
- declare const index$4_encodeSetSentinelArgs: typeof encodeSetSentinelArgs;
2588
2593
  declare const index$4_encodeSwapExactInArgs: typeof encodeSwapExactInArgs;
2589
2594
  declare const index$4_encodeTransferAdminArgs: typeof encodeTransferAdminArgs;
2590
2595
  declare const index$4_fetchAllPools: typeof fetchAllPools;
@@ -2688,7 +2693,7 @@ declare const index$4_getPreviewSwapExactInInstruction: typeof getPreviewSwapExa
2688
2693
  declare const index$4_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec;
2689
2694
  declare const index$4_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder;
2690
2695
  declare const index$4_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder;
2691
- declare const index$4_getProtocolPositionAddress: typeof getProtocolPositionAddress;
2696
+ declare const index$4_getProtocolFeePositionAddress: typeof getProtocolFeePositionAddress;
2692
2697
  declare const index$4_getQuoteToNumeraireDiscriminatorBytes: typeof getQuoteToNumeraireDiscriminatorBytes;
2693
2698
  declare const index$4_getQuoteToNumeraireInstruction: typeof getQuoteToNumeraireInstruction;
2694
2699
  declare const index$4_getQuoteToNumeraireInstructionDataCodec: typeof getQuoteToNumeraireInstructionDataCodec;
@@ -2706,22 +2711,16 @@ declare const index$4_getSetFeesInstruction: typeof getSetFeesInstruction;
2706
2711
  declare const index$4_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec;
2707
2712
  declare const index$4_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder;
2708
2713
  declare const index$4_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder;
2714
+ declare const index$4_getSetHookDiscriminatorBytes: typeof getSetHookDiscriminatorBytes;
2715
+ declare const index$4_getSetHookInstruction: typeof getSetHookInstruction;
2716
+ declare const index$4_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec;
2717
+ declare const index$4_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder;
2718
+ declare const index$4_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder;
2709
2719
  declare const index$4_getSetRouteDiscriminatorBytes: typeof getSetRouteDiscriminatorBytes;
2710
2720
  declare const index$4_getSetRouteInstruction: typeof getSetRouteInstruction;
2711
2721
  declare const index$4_getSetRouteInstructionDataCodec: typeof getSetRouteInstructionDataCodec;
2712
2722
  declare const index$4_getSetRouteInstructionDataDecoder: typeof getSetRouteInstructionDataDecoder;
2713
2723
  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;
2725
2724
  declare const index$4_getSpotPrice0: typeof getSpotPrice0;
2726
2725
  declare const index$4_getSpotPrice1: typeof getSpotPrice1;
2727
2726
  declare const index$4_getSwapAddresses: typeof getSwapAddresses;
@@ -2749,6 +2748,12 @@ declare const index$4_getUpdateConfigInstruction: typeof getUpdateConfigInstruct
2749
2748
  declare const index$4_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec;
2750
2749
  declare const index$4_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder;
2751
2750
  declare const index$4_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder;
2751
+ declare const index$4_getWithdrawVaultExcessDiscriminatorBytes: typeof getWithdrawVaultExcessDiscriminatorBytes;
2752
+ declare const index$4_getWithdrawVaultExcessInstruction: typeof getWithdrawVaultExcessInstruction;
2753
+ declare const index$4_getWithdrawVaultExcessInstructionAsync: typeof getWithdrawVaultExcessInstructionAsync;
2754
+ declare const index$4_getWithdrawVaultExcessInstructionDataCodec: typeof getWithdrawVaultExcessInstructionDataCodec;
2755
+ declare const index$4_getWithdrawVaultExcessInstructionDataDecoder: typeof getWithdrawVaultExcessInstructionDataDecoder;
2756
+ declare const index$4_getWithdrawVaultExcessInstructionDataEncoder: typeof getWithdrawVaultExcessInstructionDataEncoder;
2752
2757
  declare const index$4_initializeConfigArgsCodec: typeof initializeConfigArgsCodec;
2753
2758
  declare const index$4_initializeOracleArgsCodec: typeof initializeOracleArgsCodec;
2754
2759
  declare const index$4_initializePoolArgsCodec: typeof initializePoolArgsCodec;
@@ -2779,13 +2784,13 @@ declare const index$4_parsePreviewSwapExactInInstruction: typeof parsePreviewSwa
2779
2784
  declare const index$4_parseQuoteToNumeraireInstruction: typeof parseQuoteToNumeraireInstruction;
2780
2785
  declare const index$4_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction;
2781
2786
  declare const index$4_parseSetFeesInstruction: typeof parseSetFeesInstruction;
2787
+ declare const index$4_parseSetHookInstruction: typeof parseSetHookInstruction;
2782
2788
  declare const index$4_parseSetRouteInstruction: typeof parseSetRouteInstruction;
2783
- declare const index$4_parseSetSentinelInstruction: typeof parseSetSentinelInstruction;
2784
- declare const index$4_parseSkimInstruction: typeof parseSkimInstruction;
2785
2789
  declare const index$4_parseSwapExactInInstruction: typeof parseSwapExactInInstruction;
2786
2790
  declare const index$4_parseTransferAdminInstruction: typeof parseTransferAdminInstruction;
2787
2791
  declare const index$4_parseUnpauseInstruction: typeof parseUnpauseInstruction;
2788
2792
  declare const index$4_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction;
2793
+ declare const index$4_parseWithdrawVaultExcessInstruction: typeof parseWithdrawVaultExcessInstruction;
2789
2794
  declare const index$4_poolDataCodec: typeof poolDataCodec;
2790
2795
  declare const index$4_poolExists: typeof poolExists;
2791
2796
  declare const index$4_positionDataCodec: typeof positionDataCodec;
@@ -2796,8 +2801,8 @@ declare const index$4_quoteToNumeraireArgsCodec: typeof quoteToNumeraireArgsCode
2796
2801
  declare const index$4_ratioToNumber: typeof ratioToNumber;
2797
2802
  declare const index$4_removeLiquidityArgsCodec: typeof removeLiquidityArgsCodec;
2798
2803
  declare const index$4_setFeesArgsCodec: typeof setFeesArgsCodec;
2804
+ declare const index$4_setHookArgsCodec: typeof setHookArgsCodec;
2799
2805
  declare const index$4_setRouteArgsCodec: typeof setRouteArgsCodec;
2800
- declare const index$4_setSentinelArgsCodec: typeof setSentinelArgsCodec;
2801
2806
  declare const index$4_sortMints: typeof sortMints;
2802
2807
  declare const index$4_sortPoolsByReserves: typeof sortPoolsByReserves;
2803
2808
  declare const index$4_sortPositionsByShares: typeof sortPositionsByShares;
@@ -2805,7 +2810,7 @@ declare const index$4_swapExactInArgsCodec: typeof swapExactInArgsCodec;
2805
2810
  declare const index$4_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2806
2811
  declare const index$4_validateMarketCapParameters: typeof validateMarketCapParameters;
2807
2812
  declare namespace index$4 {
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 };
2813
+ 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_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$4_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$4_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$4_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, index$4_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$4_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$4_HookErrorEvent as HookErrorEvent, index$4_HookInvokedEvent as HookInvokedEvent, index$4_HookUpdatedEvent as HookUpdatedEvent, 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, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$4_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, 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_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$4_ParsedSetRouteInstruction as ParsedSetRouteInstruction, 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_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, 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_FEE_POSITION as SEED_PROTOCOL_FEE_POSITION, index$4_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$4_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$4_SET_ROUTE_DISCRIMINATOR as SET_ROUTE_DISCRIMINATOR, index$4_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, 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_SetHookArgs as SetHookArgs, type index$4_SetHookInput as SetHookInput, type index$4_SetHookInstruction as SetHookInstruction, type index$4_SetHookInstructionData as SetHookInstructionData, type index$4_SetHookInstructionDataArgs as SetHookInstructionDataArgs, 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_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_TradeDirection as TradeDirection, 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_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$4_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$4_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$4_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$4_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$4_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$4_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, 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, getSetHookInstruction as createSetHookInstruction, getSetRouteInstruction as createSetRouteInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$4_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, 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_encodeSetHookArgs as encodeSetHookArgs, index$4_encodeSetRouteArgs as encodeSetRouteArgs, 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_getProtocolFeePositionAddress as getProtocolFeePositionAddress, 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_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$4_getSetHookInstruction as getSetHookInstruction, index$4_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$4_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$4_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, 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_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_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$4_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$4_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$4_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$4_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$4_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, 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_parseSetHookInstruction as parseSetHookInstruction, index$4_parseSetRouteInstruction as parseSetRouteInstruction, index$4_parseSwapExactInInstruction as parseSwapExactInInstruction, index$4_parseTransferAdminInstruction as parseTransferAdminInstruction, index$4_parseUnpauseInstruction as parseUnpauseInstruction, index$4_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$4_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, 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_setHookArgsCodec as setHookArgsCodec, index$4_setRouteArgsCodec as setRouteArgsCodec, 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 };
2809
2814
  }
2810
2815
 
2811
2816
  /**
@@ -2816,57 +2821,49 @@ declare namespace index$4 {
2816
2821
  declare const INITIALIZER_PROGRAM_ID: Address;
2817
2822
  declare const BPF_LOADER_UPGRADEABLE_PROGRAM_ID: Address;
2818
2823
  /**
2819
- * Sentinel program for CPMM-migrated launches.
2824
+ * Hook program for CPMM-migrated launches.
2820
2825
  * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
2821
2826
  *
2822
- * Source of truth: programs/cpmm_sentinel/src/lib.rs
2827
+ * Source of truth: programs/cpmm_hook/src/lib.rs
2823
2828
  */
2824
- declare const CPMM_SENTINEL_PROGRAM_ID: Address;
2829
+ declare const CPMM_HOOK_PROGRAM_ID: Address;
2825
2830
  /**
2826
- * Sentinel program for prediction market launches.
2831
+ * Hook program for prediction market launches.
2827
2832
  * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
2828
2833
  *
2829
- * Source of truth: programs/prediction_sentinel/src/lib.rs
2834
+ * Source of truth: programs/prediction_hook/src/lib.rs
2830
2835
  */
2831
- declare const PREDICTION_SENTINEL_PROGRAM_ID: Address;
2836
+ declare const PREDICTION_HOOK_PROGRAM_ID: Address;
2832
2837
  declare const SEED_CONFIG = "config";
2833
2838
  declare const SEED_LAUNCH = "launch";
2834
2839
  declare const SEED_LAUNCH_AUTHORITY = "launch_authority";
2835
2840
  /**
2836
2841
  * Commitment hash for an empty remaining-accounts list — keccak256 of [0,0,0,0].
2837
- * Pass this for sentinelRemainingAccountsHash and migratorRemainingAccountsHash
2842
+ * Pass this for hookRemainingAccountsHash and migratorRemainingAccountsHash
2838
2843
  * when no extra accounts are needed at that hook's invocation time.
2839
2844
  */
2840
2845
  declare const EMPTY_REMAINING_ACCOUNTS_HASH: Uint8Array<ArrayBuffer>;
2841
- /**
2842
- * Devnet ALT containing static accounts shared by every initializeLaunch tx.
2843
- * Indices: 0=TOKEN_PROGRAM, 1=SYSTEM_PROGRAM, 2=SYSVAR_RENT,
2844
- * 3=INITIALIZER_PROGRAM, 4=TOKEN_METADATA_PROGRAM,
2845
- * 5=CPMM_MIGRATOR_PROGRAM, 6=WSOL_MINT,
2846
- * 8/9=PREDICTION_MIGRATOR_PROGRAM, 10=initializer config PDA
2847
- */
2848
- declare const DOPPLER_DEVNET_ALT: Address;
2849
2846
  declare const MAX_MIGRATOR_ALLOWLIST = 32;
2850
- declare const MAX_SENTINEL_ALLOWLIST = 32;
2851
- declare const MAX_CALLDATA = 256;
2847
+ declare const MAX_HOOK_ALLOWLIST = 32;
2848
+ declare const MAX_PAYLOAD = 256;
2852
2849
  declare const PHASE_TRADING = 0;
2853
2850
  declare const PHASE_MIGRATED = 1;
2854
2851
  declare const PHASE_ABORTED = 2;
2855
- declare const DIRECTION_BUY = 0;
2856
- declare const DIRECTION_SELL = 1;
2852
+ declare const TRADE_DIRECTION_BUY = 0;
2853
+ declare const TRADE_DIRECTION_SELL = 1;
2857
2854
  declare const CURVE_KIND_XYK = 0;
2858
2855
  declare const CURVE_PARAMS_FORMAT_XYK_V0 = 0;
2859
- declare const SF_BEFORE_SWAP: number;
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;
2865
- declare const SENTINEL_NO_CHANGE = 65535;
2856
+ declare const HF_BEFORE_SWAP: number;
2857
+ declare const HF_AFTER_SWAP: number;
2858
+ declare const HF_BEFORE_CREATE: number;
2859
+ declare const HF_AFTER_CREATE: number;
2860
+ declare const HF_BEFORE_MIGRATE: number;
2861
+ declare const HF_AFTER_MIGRATE: number;
2862
+ declare const HOOK_NO_CHANGE = 65535;
2866
2863
  declare const INITIALIZER_INSTRUCTION_DISCRIMINATORS: {
2867
2864
  readonly initializeConfig: Uint8Array<ArrayBuffer>;
2868
2865
  readonly setMigratorAllowlist: Uint8Array<ArrayBuffer>;
2869
- readonly setSentinelAllowlist: Uint8Array<ArrayBuffer>;
2866
+ readonly setHookAllowlist: Uint8Array<ArrayBuffer>;
2870
2867
  readonly initializeLaunch: Uint8Array<ArrayBuffer>;
2871
2868
  readonly curveSwapExactIn: Uint8Array<ArrayBuffer>;
2872
2869
  readonly migrateLaunch: Uint8Array<ArrayBuffer>;
@@ -2891,8 +2888,8 @@ type InitConfig = {
2891
2888
  admin: Address;
2892
2889
  migratorAllowlistLen: number;
2893
2890
  migratorAllowlist: Array<Address>;
2894
- sentinelAllowlistLen: number;
2895
- sentinelAllowlist: Array<Address>;
2891
+ hookAllowlistLen: number;
2892
+ hookAllowlist: Array<Address>;
2896
2893
  bump: number;
2897
2894
  version: number;
2898
2895
  reserved: ReadonlyUint8Array;
@@ -2901,8 +2898,8 @@ type InitConfigArgs = {
2901
2898
  admin: Address;
2902
2899
  migratorAllowlistLen: number;
2903
2900
  migratorAllowlist: Array<Address>;
2904
- sentinelAllowlistLen: number;
2905
- sentinelAllowlist: Array<Address>;
2901
+ hookAllowlistLen: number;
2902
+ hookAllowlist: Array<Address>;
2906
2903
  bump: number;
2907
2904
  version: number;
2908
2905
  reserved: ReadonlyUint8Array;
@@ -2914,20 +2911,6 @@ declare function getInitConfigDecoder(): FixedSizeDecoder<InitConfig>;
2914
2911
  /** Gets the codec for {@link InitConfig} account data. */
2915
2912
  declare function getInitConfigCodec(): FixedSizeCodec<InitConfigArgs, InitConfig>;
2916
2913
 
2917
- /**
2918
- * This code was AUTOGENERATED using the Codama library.
2919
- * Please DO NOT EDIT THIS FILE, instead use visitors
2920
- * to add features, then rerun Codama to update it.
2921
- *
2922
- * @see https://github.com/codama-idl/codama
2923
- */
2924
-
2925
- type CalldataBuf$1 = {
2926
- len: number;
2927
- bytes: ReadonlyUint8Array;
2928
- };
2929
- type CalldataBufArgs$1 = CalldataBuf$1;
2930
-
2931
2914
  /**
2932
2915
  * This code was AUTOGENERATED using the Codama library.
2933
2916
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2938,7 +2921,7 @@ type CalldataBufArgs$1 = CalldataBuf$1;
2938
2921
 
2939
2922
  type InitializeConfigArgs = {
2940
2923
  migratorAllowlist: Array<Address>;
2941
- sentinelAllowlist: Array<Address>;
2924
+ hookAllowlist: Array<Address>;
2942
2925
  };
2943
2926
  type InitializeConfigArgsArgs = InitializeConfigArgs;
2944
2927
  declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
@@ -2967,23 +2950,23 @@ type InitializeLaunchArgs = {
2967
2950
  curveParams: ReadonlyUint8Array;
2968
2951
  allowBuy: number;
2969
2952
  allowSell: number;
2970
- sentinelProgram: Address;
2971
- sentinelFlags: number;
2972
- sentinelCalldata: ReadonlyUint8Array;
2973
- sentinelCreateRemainingAccountsLen: number;
2953
+ hookProgram: Address;
2954
+ hookFlags: number;
2955
+ hookPayload: ReadonlyUint8Array;
2956
+ hookCreateRemainingAccountsLen: number;
2974
2957
  migratorProgram: Address;
2975
- migratorInitCalldata: ReadonlyUint8Array;
2976
- migratorMigrateCalldata: ReadonlyUint8Array;
2958
+ migratorInitPayload: ReadonlyUint8Array;
2959
+ migratorMigratePayload: ReadonlyUint8Array;
2977
2960
  /**
2978
- * Commitment hash for initialize_launch sentinel remaining accounts.
2961
+ * Commitment hash for initialize_launch hook remaining accounts.
2979
2962
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2980
2963
  */
2981
- sentinelCreateRemainingAccountsHash: ReadonlyUint8Array;
2964
+ hookCreateRemainingAccountsHash: ReadonlyUint8Array;
2982
2965
  /**
2983
- * Commitment hash for swap/preview sentinel remaining accounts.
2966
+ * Commitment hash for swap/preview hook remaining accounts.
2984
2967
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
2985
2968
  */
2986
- sentinelRemainingAccountsHash: ReadonlyUint8Array;
2969
+ hookRemainingAccountsHash: ReadonlyUint8Array;
2987
2970
  /**
2988
2971
  * Commitment hash for migrator-init remaining accounts.
2989
2972
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
@@ -3015,23 +2998,23 @@ type InitializeLaunchArgsArgs = {
3015
2998
  curveParams: ReadonlyUint8Array;
3016
2999
  allowBuy: number;
3017
3000
  allowSell: number;
3018
- sentinelProgram: Address;
3019
- sentinelFlags: number;
3020
- sentinelCalldata: ReadonlyUint8Array;
3021
- sentinelCreateRemainingAccountsLen: number;
3001
+ hookProgram: Address;
3002
+ hookFlags: number;
3003
+ hookPayload: ReadonlyUint8Array;
3004
+ hookCreateRemainingAccountsLen: number;
3022
3005
  migratorProgram: Address;
3023
- migratorInitCalldata: ReadonlyUint8Array;
3024
- migratorMigrateCalldata: ReadonlyUint8Array;
3006
+ migratorInitPayload: ReadonlyUint8Array;
3007
+ migratorMigratePayload: ReadonlyUint8Array;
3025
3008
  /**
3026
- * Commitment hash for initialize_launch sentinel remaining accounts.
3009
+ * Commitment hash for initialize_launch hook remaining accounts.
3027
3010
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
3028
3011
  */
3029
- sentinelCreateRemainingAccountsHash: ReadonlyUint8Array;
3012
+ hookCreateRemainingAccountsHash: ReadonlyUint8Array;
3030
3013
  /**
3031
- * Commitment hash for swap/preview sentinel remaining accounts.
3014
+ * Commitment hash for swap/preview hook remaining accounts.
3032
3015
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
3033
3016
  */
3034
- sentinelRemainingAccountsHash: ReadonlyUint8Array;
3017
+ hookRemainingAccountsHash: ReadonlyUint8Array;
3035
3018
  /**
3036
3019
  * Commitment hash for migrator-init remaining accounts.
3037
3020
  * Computed as hash(u32_len || pubkey_0 || ... || pubkey_n).
@@ -3053,6 +3036,20 @@ declare function getInitializeLaunchArgsEncoder(): Encoder<InitializeLaunchArgsA
3053
3036
  declare function getInitializeLaunchArgsDecoder(): Decoder<InitializeLaunchArgs>;
3054
3037
  declare function getInitializeLaunchArgsCodec(): Codec<InitializeLaunchArgsArgs, InitializeLaunchArgs>;
3055
3038
 
3039
+ /**
3040
+ * This code was AUTOGENERATED using the Codama library.
3041
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3042
+ * to add features, then rerun Codama to update it.
3043
+ *
3044
+ * @see https://github.com/codama-idl/codama
3045
+ */
3046
+
3047
+ type PayloadBuf$1 = {
3048
+ len: number;
3049
+ bytes: ReadonlyUint8Array;
3050
+ };
3051
+ type PayloadBufArgs$1 = PayloadBuf$1;
3052
+
3056
3053
  /**
3057
3054
  * This code was AUTOGENERATED using the Codama library.
3058
3055
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3085,17 +3082,17 @@ type Launch$1 = {
3085
3082
  allowBuy: number;
3086
3083
  allowSell: number;
3087
3084
  pad2: ReadonlyUint8Array;
3088
- sentinelProgram: Address;
3089
- sentinelFlags: number;
3085
+ hookProgram: Address;
3086
+ hookFlags: number;
3090
3087
  pad3: ReadonlyUint8Array;
3091
- sentinelCalldata: CalldataBuf$1;
3088
+ hookPayload: PayloadBuf$1;
3092
3089
  migratorProgram: Address;
3093
- migratorInitCalldata: CalldataBuf$1;
3094
- migratorMigrateCalldata: CalldataBuf$1;
3090
+ migratorInitPayload: PayloadBuf$1;
3091
+ migratorMigratePayload: PayloadBuf$1;
3095
3092
  curveKind: number;
3096
3093
  swapLock: number;
3097
3094
  pad4: ReadonlyUint8Array;
3098
- curveParams: CalldataBuf$1;
3095
+ curveParams: PayloadBuf$1;
3099
3096
  quoteDeposited: bigint;
3100
3097
  reserved: ReadonlyUint8Array;
3101
3098
  };
@@ -3122,17 +3119,17 @@ type LaunchArgs$1 = {
3122
3119
  allowBuy: number;
3123
3120
  allowSell: number;
3124
3121
  pad2: ReadonlyUint8Array;
3125
- sentinelProgram: Address;
3126
- sentinelFlags: number;
3122
+ hookProgram: Address;
3123
+ hookFlags: number;
3127
3124
  pad3: ReadonlyUint8Array;
3128
- sentinelCalldata: CalldataBufArgs$1;
3125
+ hookPayload: PayloadBufArgs$1;
3129
3126
  migratorProgram: Address;
3130
- migratorInitCalldata: CalldataBufArgs$1;
3131
- migratorMigrateCalldata: CalldataBufArgs$1;
3127
+ migratorInitPayload: PayloadBufArgs$1;
3128
+ migratorMigratePayload: PayloadBufArgs$1;
3132
3129
  curveKind: number;
3133
3130
  swapLock: number;
3134
3131
  pad4: ReadonlyUint8Array;
3135
- curveParams: CalldataBufArgs$1;
3132
+ curveParams: PayloadBufArgs$1;
3136
3133
  quoteDeposited: number | bigint;
3137
3134
  reserved: ReadonlyUint8Array;
3138
3135
  };
@@ -3186,11 +3183,11 @@ interface SetMigratorAllowlistAccounts {
3186
3183
  declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3187
3184
 
3188
3185
  type AddressOrSigner$3 = Address | TransactionSigner;
3189
- interface SetSentinelAllowlistAccounts {
3186
+ interface SetHookAllowlistAccounts {
3190
3187
  admin: AddressOrSigner$3;
3191
3188
  config: Address;
3192
3189
  }
3193
- declare function createSetSentinelAllowlistInstruction(accounts: SetSentinelAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3190
+ declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3194
3191
 
3195
3192
  /**
3196
3193
  * Public params for createInitializeLaunchInstruction.
@@ -3198,12 +3195,12 @@ declare function createSetSentinelAllowlistInstruction(accounts: SetSentinelAllo
3198
3195
  * - migratorProgram is omitted — it is derived from accounts.migratorProgram
3199
3196
  * so callers do not need to repeat it in both the accounts object and args.
3200
3197
  */
3201
- type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'sentinelProgram' | 'migratorProgram' | 'sentinelCreateRemainingAccountsLen' | 'sentinelCreateRemainingAccountsHash'> & {
3198
+ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allowSell' | 'hookProgram' | 'migratorProgram' | 'hookCreateRemainingAccountsLen' | 'hookCreateRemainingAccountsHash'> & {
3202
3199
  allowBuy: boolean;
3203
3200
  allowSell: boolean;
3204
- sentinelProgram?: Address;
3205
- sentinelCreateRemainingAccountsLen?: number;
3206
- sentinelCreateRemainingAccountsHash?: ReadonlyUint8Array;
3201
+ hookProgram?: Address;
3202
+ hookCreateRemainingAccountsLen?: number;
3203
+ hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
3207
3204
  };
3208
3205
  type AddressOrSigner$2 = Address | TransactionSigner;
3209
3206
  type ReadonlyRemainingAccount = AddressOrSigner$2;
@@ -3225,7 +3222,7 @@ interface InitializeLaunchAccounts {
3225
3222
  quoteVault: AddressOrSigner$2;
3226
3223
  payer: AddressOrSigner$2;
3227
3224
  authority?: AddressOrSigner$2;
3228
- sentinelProgram?: Address;
3225
+ hookProgram?: Address;
3229
3226
  migratorProgram?: Address;
3230
3227
  baseTokenProgram?: Address;
3231
3228
  quoteTokenProgram?: Address;
@@ -3241,17 +3238,7 @@ interface InitializeLaunchAccounts {
3241
3238
  * These are forwarded as readonly metas; TransactionSigner values are
3242
3239
  * forwarded as readonly signers.
3243
3240
  */
3244
- sentinelCreateRemainingAccounts?: ReadonlyArray<ReadonlyRemainingAccount>;
3245
- /**
3246
- * Optional Address Lookup Table to reference for static accounts.
3247
- * When provided, constant non-signer accounts (base/quote token program,
3248
- * systemProgram, rent, migratorProgram, quoteMint when WSOL, metadataProgram)
3249
- * are encoded as ALT lookup metas instead of 32-byte static keys, reducing
3250
- * transaction size while keeping versioned config PDAs explicit.
3251
- *
3252
- * Use DOPPLER_DEVNET_ALT for devnet.
3253
- */
3254
- addressLookupTable?: Address;
3241
+ hookCreateRemainingAccounts?: ReadonlyArray<ReadonlyRemainingAccount>;
3255
3242
  }
3256
3243
  declare function createInitializeLaunchInstruction(accounts: InitializeLaunchAccounts, args: InitializeLaunchParams, programId?: Address): Promise<Instruction>;
3257
3244
 
@@ -3267,15 +3254,15 @@ interface CurveSwapExactInAccounts {
3267
3254
  baseMint: Address;
3268
3255
  quoteMint: Address;
3269
3256
  user: AddressOrSigner$1;
3270
- /** Pass the actual sentinel program address, or omit to use System Program as a no-op placeholder. */
3271
- sentinelProgram?: Address;
3257
+ /** Pass the actual hook program address, or omit to use System Program as a no-op placeholder. */
3258
+ hookProgram?: Address;
3272
3259
  baseTokenProgram?: Address;
3273
3260
  quoteTokenProgram?: Address;
3274
3261
  }
3275
3262
  declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAccounts, args: {
3276
3263
  amountIn: bigint;
3277
3264
  minAmountOut: bigint;
3278
- direction: number;
3265
+ tradeDirection: number;
3279
3266
  }, programId?: Address): Instruction;
3280
3267
 
3281
3268
  type AddressOrSigner = Address | TransactionSigner;
@@ -3304,11 +3291,11 @@ interface PreviewSwapExactInAccounts {
3304
3291
  launch: Address;
3305
3292
  baseVault: Address;
3306
3293
  quoteVault: Address;
3307
- sentinelProgram?: Address;
3294
+ hookProgram?: Address;
3308
3295
  }
3309
3296
  declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
3310
3297
  amountIn: bigint;
3311
- direction: number;
3298
+ tradeDirection: number;
3312
3299
  }, programId?: Address): Instruction;
3313
3300
  declare function decodePreviewSwapExactInResult(data: Uint8Array): PreviewSwapExactInResult;
3314
3301
 
@@ -3334,8 +3321,8 @@ declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigratio
3334
3321
  * This matches compute_remaining_accounts_hash in
3335
3322
  * programs/initializer/src/instructions/launch_common.rs.
3336
3323
  *
3337
- * Commit the result as sentinelRemainingAccountsHash or migratorRemainingAccountsHash
3338
- * when calling initializeLaunch. At migrate_launch (or sentinel invoke) time, pass the
3324
+ * Commit the result as hookRemainingAccountsHash or migratorRemainingAccountsHash
3325
+ * when calling initializeLaunch. At migrate_launch (or hook invoke) time, pass the
3339
3326
  * same accounts in the same order as remaining accounts — the program verifies they match.
3340
3327
  *
3341
3328
  * For an empty account list use EMPTY_REMAINING_ACCOUNTS_HASH instead.
@@ -3347,6 +3334,33 @@ declare function computeRemainingAccountsHash(addresses: Address[]): Uint8Array;
3347
3334
  */
3348
3335
  declare function phaseLabel(phase: number): string;
3349
3336
 
3337
+ declare const DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND = 20;
3338
+ declare function getInstructionLookupTableAddresses(instructions: Instruction | readonly Instruction[]): Address[];
3339
+ interface BuildAddressLookupTableSetupInstructionsInput {
3340
+ authority: TransactionSigner;
3341
+ payer: TransactionSigner;
3342
+ recentSlot: number | bigint;
3343
+ addresses: readonly Address[];
3344
+ addressesPerExtendInstruction?: number;
3345
+ }
3346
+ interface BuildAddressLookupTableSetupInstructionsResult {
3347
+ lookupTableAddress: Address;
3348
+ createInstruction: Instruction;
3349
+ extendInstructions: Instruction[];
3350
+ addresses: Address[];
3351
+ }
3352
+ declare function buildAddressLookupTableSetupInstructions({ authority, payer, recentSlot, addresses, addressesPerExtendInstruction, }: BuildAddressLookupTableSetupInstructionsInput): Promise<BuildAddressLookupTableSetupInstructionsResult>;
3353
+ declare function compressTransactionMessageWithLookupTable<TTransactionMessage extends Exclude<TransactionMessage, {
3354
+ version: 'legacy';
3355
+ }>>(transactionMessage: TTransactionMessage, { lookupTableAddress, addresses, }: {
3356
+ lookupTableAddress: Address;
3357
+ addresses: readonly Address[];
3358
+ }): TTransactionMessage | (TTransactionMessage extends {
3359
+ readonly instructions: readonly (infer TInstruction extends Instruction)[];
3360
+ } ? Omit<TTransactionMessage, "instructions"> & {
3361
+ readonly instructions: readonly (TInstruction extends Instruction<infer TProgramAddress extends string, infer TAccounts extends readonly (_solana_kit.AccountMeta<string> | _solana_kit.AccountLookupMeta<string, string>)[]> ? Instruction<TProgramAddress, { [K in keyof TAccounts]: TAccounts[K] extends _solana_kit.AccountMeta<infer TAddress extends string> ? _solana_kit.AccountMeta<TAddress> | _solana_kit.AccountLookupMeta<TAddress, string> : TAccounts[K]; }> : TInstruction)[];
3362
+ } : TTransactionMessage);
3363
+
3350
3364
  /**
3351
3365
  * Launch fetching functions for the Initializer SDK
3352
3366
  */
@@ -3369,15 +3383,22 @@ declare function fetchLaunchesByAuthority(rpc: GetProgramAccountsRpc, authority:
3369
3383
  declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, launchId: Uint8Array, config?: FetchLaunchesConfig): Promise<boolean>;
3370
3384
 
3371
3385
  declare const index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
3372
- declare const index$3_CPMM_SENTINEL_PROGRAM_ID: typeof CPMM_SENTINEL_PROGRAM_ID;
3386
+ type index$3_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
3387
+ type index$3_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
3388
+ declare const index$3_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
3373
3389
  declare const index$3_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
3374
3390
  declare const index$3_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
3375
3391
  type index$3_CurveSwapExactInAccounts = CurveSwapExactInAccounts;
3376
- declare const index$3_DIRECTION_BUY: typeof DIRECTION_BUY;
3377
- declare const index$3_DIRECTION_SELL: typeof DIRECTION_SELL;
3378
- declare const index$3_DOPPLER_DEVNET_ALT: typeof DOPPLER_DEVNET_ALT;
3392
+ declare const index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND: typeof DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND;
3379
3393
  declare const index$3_EMPTY_REMAINING_ACCOUNTS_HASH: typeof EMPTY_REMAINING_ACCOUNTS_HASH;
3380
3394
  type index$3_FetchLaunchesConfig = FetchLaunchesConfig;
3395
+ declare const index$3_HF_AFTER_CREATE: typeof HF_AFTER_CREATE;
3396
+ declare const index$3_HF_AFTER_MIGRATE: typeof HF_AFTER_MIGRATE;
3397
+ declare const index$3_HF_AFTER_SWAP: typeof HF_AFTER_SWAP;
3398
+ declare const index$3_HF_BEFORE_CREATE: typeof HF_BEFORE_CREATE;
3399
+ declare const index$3_HF_BEFORE_MIGRATE: typeof HF_BEFORE_MIGRATE;
3400
+ declare const index$3_HF_BEFORE_SWAP: typeof HF_BEFORE_SWAP;
3401
+ declare const index$3_HOOK_NO_CHANGE: typeof HOOK_NO_CHANGE;
3381
3402
  declare const index$3_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACCOUNT_DISCRIMINATORS;
3382
3403
  declare const index$3_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
3383
3404
  declare const index$3_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
@@ -3390,14 +3411,14 @@ type index$3_InitializeLaunchAccounts = InitializeLaunchAccounts;
3390
3411
  type index$3_InitializeLaunchArgs = InitializeLaunchArgs;
3391
3412
  type index$3_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
3392
3413
  type index$3_LaunchWithAddress = LaunchWithAddress;
3393
- declare const index$3_MAX_CALLDATA: typeof MAX_CALLDATA;
3414
+ declare const index$3_MAX_HOOK_ALLOWLIST: typeof MAX_HOOK_ALLOWLIST;
3394
3415
  declare const index$3_MAX_MIGRATOR_ALLOWLIST: typeof MAX_MIGRATOR_ALLOWLIST;
3395
- declare const index$3_MAX_SENTINEL_ALLOWLIST: typeof MAX_SENTINEL_ALLOWLIST;
3416
+ declare const index$3_MAX_PAYLOAD: typeof MAX_PAYLOAD;
3396
3417
  type index$3_MigrateLaunchAccounts = MigrateLaunchAccounts;
3397
3418
  declare const index$3_PHASE_ABORTED: typeof PHASE_ABORTED;
3398
3419
  declare const index$3_PHASE_MIGRATED: typeof PHASE_MIGRATED;
3399
3420
  declare const index$3_PHASE_TRADING: typeof PHASE_TRADING;
3400
- declare const index$3_PREDICTION_SENTINEL_PROGRAM_ID: typeof PREDICTION_SENTINEL_PROGRAM_ID;
3421
+ declare const index$3_PREDICTION_HOOK_PROGRAM_ID: typeof PREDICTION_HOOK_PROGRAM_ID;
3401
3422
  type index$3_PreviewMigrationAccounts = PreviewMigrationAccounts;
3402
3423
  type index$3_PreviewMigrationResult = PreviewMigrationResult;
3403
3424
  type index$3_PreviewSwapExactInAccounts = PreviewSwapExactInAccounts;
@@ -3405,15 +3426,12 @@ type index$3_PreviewSwapExactInResult = PreviewSwapExactInResult;
3405
3426
  declare const index$3_SEED_CONFIG: typeof SEED_CONFIG;
3406
3427
  declare const index$3_SEED_LAUNCH: typeof SEED_LAUNCH;
3407
3428
  declare const index$3_SEED_LAUNCH_AUTHORITY: typeof SEED_LAUNCH_AUTHORITY;
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;
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;
3414
- declare const index$3_SF_BEFORE_SWAP: typeof SF_BEFORE_SWAP;
3429
+ type index$3_SetHookAllowlistAccounts = SetHookAllowlistAccounts;
3415
3430
  type index$3_SetMigratorAllowlistAccounts = SetMigratorAllowlistAccounts;
3416
- type index$3_SetSentinelAllowlistAccounts = SetSentinelAllowlistAccounts;
3431
+ declare const index$3_TRADE_DIRECTION_BUY: typeof TRADE_DIRECTION_BUY;
3432
+ declare const index$3_TRADE_DIRECTION_SELL: typeof TRADE_DIRECTION_SELL;
3433
+ declare const index$3_buildAddressLookupTableSetupInstructions: typeof buildAddressLookupTableSetupInstructions;
3434
+ declare const index$3_compressTransactionMessageWithLookupTable: typeof compressTransactionMessageWithLookupTable;
3417
3435
  declare const index$3_computeRemainingAccountsHash: typeof computeRemainingAccountsHash;
3418
3436
  declare const index$3_createCurveSwapExactInInstruction: typeof createCurveSwapExactInInstruction;
3419
3437
  declare const index$3_createInitializeConfigInstruction: typeof createInitializeConfigInstruction;
@@ -3421,8 +3439,8 @@ declare const index$3_createInitializeLaunchInstruction: typeof createInitialize
3421
3439
  declare const index$3_createMigrateLaunchInstruction: typeof createMigrateLaunchInstruction;
3422
3440
  declare const index$3_createPreviewMigrationInstruction: typeof createPreviewMigrationInstruction;
3423
3441
  declare const index$3_createPreviewSwapExactInInstruction: typeof createPreviewSwapExactInInstruction;
3442
+ declare const index$3_createSetHookAllowlistInstruction: typeof createSetHookAllowlistInstruction;
3424
3443
  declare const index$3_createSetMigratorAllowlistInstruction: typeof createSetMigratorAllowlistInstruction;
3425
- declare const index$3_createSetSentinelAllowlistInstruction: typeof createSetSentinelAllowlistInstruction;
3426
3444
  declare const index$3_decodePreviewMigrationResult: typeof decodePreviewMigrationResult;
3427
3445
  declare const index$3_decodePreviewSwapExactInResult: typeof decodePreviewSwapExactInResult;
3428
3446
  declare const index$3_encodeU64LE: typeof encodeU64LE;
@@ -3438,6 +3456,7 @@ declare const index$3_getInitializeConfigArgsEncoder: typeof getInitializeConfig
3438
3456
  declare const index$3_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
3439
3457
  declare const index$3_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
3440
3458
  declare const index$3_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
3459
+ declare const index$3_getInstructionLookupTableAddresses: typeof getInstructionLookupTableAddresses;
3441
3460
  declare const index$3_getLaunchAddress: typeof getLaunchAddress;
3442
3461
  declare const index$3_getLaunchAuthorityAddress: typeof getLaunchAuthorityAddress;
3443
3462
  declare const index$3_getProgramDataAddress: typeof getProgramDataAddress;
@@ -3446,7 +3465,7 @@ declare const index$3_launchExists: typeof launchExists;
3446
3465
  declare const index$3_launchIdFromU64: typeof launchIdFromU64;
3447
3466
  declare const index$3_phaseLabel: typeof phaseLabel;
3448
3467
  declare namespace index$3 {
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 };
3468
+ export { index$3_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$3_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$3_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$3_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$3_CURVE_KIND_XYK as CURVE_KIND_XYK, index$3_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$3_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$3_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, index$3_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$3_FetchLaunchesConfig as FetchLaunchesConfig, index$3_HF_AFTER_CREATE as HF_AFTER_CREATE, index$3_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$3_HF_AFTER_SWAP as HF_AFTER_SWAP, index$3_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$3_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$3_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$3_HOOK_NO_CHANGE as HOOK_NO_CHANGE, 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_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$3_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$3_MAX_PAYLOAD as MAX_PAYLOAD, type index$3_MigrateLaunchAccounts as MigrateLaunchAccounts, index$3_PHASE_ABORTED as PHASE_ABORTED, index$3_PHASE_MIGRATED as PHASE_MIGRATED, index$3_PHASE_TRADING as PHASE_TRADING, index$3_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$3_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$3_PreviewMigrationResult as PreviewMigrationResult, type index$3_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$3_PreviewSwapExactInResult as PreviewSwapExactInResult, index$3_SEED_CONFIG as SEED_CONFIG, index$3_SEED_LAUNCH as SEED_LAUNCH, index$3_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, type index$3_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$3_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$3_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$3_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, index$3_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$3_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$3_computeRemainingAccountsHash as computeRemainingAccountsHash, index$3_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$3_createInitializeConfigInstruction as createInitializeConfigInstruction, index$3_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$3_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$3_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$3_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$3_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$3_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$3_decodePreviewMigrationResult as decodePreviewMigrationResult, index$3_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$3_encodeU64LE as encodeU64LE, index$3_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$3_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$3_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_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$3_getLaunchAddress as getLaunchAddress, index$3_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$3_getProgramDataAddress as getProgramDataAddress, index$3_getTokenMetadataAddress as getTokenMetadataAddress, index$3_launchExists as launchExists, index$3_launchIdFromU64 as launchIdFromU64, index$3_phaseLabel as phaseLabel };
3450
3469
  }
3451
3470
 
3452
3471
  /**
@@ -3459,7 +3478,7 @@ declare namespace index$3 {
3459
3478
 
3460
3479
  /**
3461
3480
  * Arguments for migrate instruction.
3462
- * These are deserialized from the migrator_migrate_calldata passed by initializer.
3481
+ * These are deserialized from the migrator_migrate_payload passed by initializer.
3463
3482
  */
3464
3483
  type MigrateArgs = {
3465
3484
  /** Base tokens reserved for distribution to recipients */
@@ -3477,6 +3496,20 @@ declare function getMigrateArgsEncoder(): FixedSizeEncoder<MigrateArgsArgs>;
3477
3496
  declare function getMigrateArgsDecoder(): FixedSizeDecoder<MigrateArgs>;
3478
3497
  declare function getMigrateArgsCodec(): FixedSizeCodec<MigrateArgsArgs, MigrateArgs>;
3479
3498
 
3499
+ /**
3500
+ * This code was AUTOGENERATED using the Codama library.
3501
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3502
+ * to add features, then rerun Codama to update it.
3503
+ *
3504
+ * @see https://github.com/codama-idl/codama
3505
+ */
3506
+
3507
+ type MigratedPoolHookConfig = {
3508
+ hookProgram: Address;
3509
+ hookFlags: number;
3510
+ };
3511
+ type MigratedPoolHookConfigArgs = MigratedPoolHookConfig;
3512
+
3480
3513
  /**
3481
3514
  * This code was AUTOGENERATED using the Codama library.
3482
3515
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3507,7 +3540,7 @@ declare function getRecipientCodec(): FixedSizeCodec<RecipientArgs, Recipient>;
3507
3540
 
3508
3541
  /**
3509
3542
  * Arguments for register_launch instruction.
3510
- * These are deserialized from the migrator_init_calldata passed by initializer.
3543
+ * These are deserialized from the migrator_init_payload passed by initializer.
3511
3544
  */
3512
3545
  type RegisterLaunchArgs = {
3513
3546
  cpmmConfig: Address;
@@ -3516,6 +3549,7 @@ type RegisterLaunchArgs = {
3516
3549
  recipients: Array<Recipient>;
3517
3550
  minRaiseQuote: bigint;
3518
3551
  minMigrationPriceQ64Opt: Option<bigint>;
3552
+ migratedPoolHookConfig: Option<MigratedPoolHookConfig>;
3519
3553
  };
3520
3554
  type RegisterLaunchArgsArgs = {
3521
3555
  cpmmConfig: Address;
@@ -3524,6 +3558,7 @@ type RegisterLaunchArgsArgs = {
3524
3558
  recipients: Array<RecipientArgs>;
3525
3559
  minRaiseQuote: number | bigint;
3526
3560
  minMigrationPriceQ64Opt: OptionOrNullable<number | bigint>;
3561
+ migratedPoolHookConfig: OptionOrNullable<MigratedPoolHookConfigArgs>;
3527
3562
  };
3528
3563
  declare function getRegisterLaunchArgsEncoder(): Encoder<RegisterLaunchArgsArgs>;
3529
3564
  declare function getRegisterLaunchArgsDecoder(): Decoder<RegisterLaunchArgs>;
@@ -3551,6 +3586,10 @@ type CpmmMigratorState = {
3551
3586
  initialFeeSplitBps: number;
3552
3587
  /** Padding for alignment */
3553
3588
  pad0: ReadonlyUint8Array;
3589
+ /** Hook program to set on the migrated CPMM pool */
3590
+ migratedPoolHookProgram: Address;
3591
+ /** Hook flags to set on the migrated CPMM pool */
3592
+ migratedPoolHookFlags: number;
3554
3593
  /** Recipients for base token distribution at migration */
3555
3594
  recipients: Array<Recipient>;
3556
3595
  /** Minimum quote tokens required to migrate */
@@ -3577,6 +3616,10 @@ type CpmmMigratorStateArgs = {
3577
3616
  initialFeeSplitBps: number;
3578
3617
  /** Padding for alignment */
3579
3618
  pad0: ReadonlyUint8Array;
3619
+ /** Hook program to set on the migrated CPMM pool */
3620
+ migratedPoolHookProgram: Address;
3621
+ /** Hook flags to set on the migrated CPMM pool */
3622
+ migratedPoolHookFlags: number;
3580
3623
  /** Recipients for base token distribution at migration */
3581
3624
  recipients: Array<RecipientArgs>;
3582
3625
  /** Minimum quote tokens required to migrate */
@@ -3614,12 +3657,41 @@ declare function getCpmmMigrationAuthorityAddress(programId?: Address): Promise<
3614
3657
 
3615
3658
  declare function fetchCpmmMigratorState(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<CpmmMigratorState | null>;
3616
3659
 
3617
- declare function encodeRegisterLaunchCalldata(args: RegisterLaunchArgsArgs): Uint8Array;
3618
- declare function encodeMigrateCalldata(args: MigrateArgsArgs): Uint8Array;
3660
+ interface CpmmMigrationRemainingAccountsInput {
3661
+ launch: Address;
3662
+ baseMint: Address;
3663
+ quoteMint: Address;
3664
+ launchAuthority: Address;
3665
+ adminBaseAta: Address;
3666
+ adminQuoteAta: Address;
3667
+ recipientAtas: Address[];
3668
+ cpmmProgram?: Address;
3669
+ }
3670
+ interface CpmmMigrationRemainingAccounts {
3671
+ addresses: Address[];
3672
+ metas: AccountMeta[];
3673
+ hash: Uint8Array;
3674
+ cpmmMigrationState: Address;
3675
+ cpmmConfig: Address;
3676
+ pool: Address;
3677
+ poolAuthority: Address;
3678
+ poolVault0: Address;
3679
+ poolVault1: Address;
3680
+ protocolFeePosition: Address;
3681
+ launchLpPosition: Address;
3682
+ migrationAuthority: Address;
3683
+ }
3684
+ declare function buildCpmmMigrationRemainingAccounts({ launch, baseMint, quoteMint, launchAuthority, adminBaseAta, adminQuoteAta, recipientAtas, cpmmProgram, }: CpmmMigrationRemainingAccountsInput): Promise<CpmmMigrationRemainingAccounts>;
3685
+ declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRemainingAccountsInput): Promise<Uint8Array>;
3686
+
3687
+ declare function encodeRegisterLaunchPayload(args: RegisterLaunchArgsArgs): Uint8Array;
3688
+ declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
3619
3689
 
3620
3690
  declare const index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
3621
3691
  declare const index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: typeof CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS;
3622
3692
  declare const index$2_CPMM_MIGRATOR_PROGRAM_ID: typeof CPMM_MIGRATOR_PROGRAM_ID;
3693
+ type index$2_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
3694
+ type index$2_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
3623
3695
  type index$2_CpmmMigratorState = CpmmMigratorState;
3624
3696
  type index$2_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
3625
3697
  declare const index$2_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
@@ -3631,8 +3703,10 @@ type index$2_RegisterLaunchArgs = RegisterLaunchArgs;
3631
3703
  type index$2_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
3632
3704
  declare const index$2_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
3633
3705
  declare const index$2_SEED_STATE: typeof SEED_STATE;
3634
- declare const index$2_encodeMigrateCalldata: typeof encodeMigrateCalldata;
3635
- declare const index$2_encodeRegisterLaunchCalldata: typeof encodeRegisterLaunchCalldata;
3706
+ declare const index$2_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
3707
+ declare const index$2_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
3708
+ declare const index$2_encodeMigratePayload: typeof encodeMigratePayload;
3709
+ declare const index$2_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
3636
3710
  declare const index$2_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
3637
3711
  declare const index$2_getCpmmMigrationAuthorityAddress: typeof getCpmmMigrationAuthorityAddress;
3638
3712
  declare const index$2_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAddress;
@@ -3649,7 +3723,7 @@ declare const index$2_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCo
3649
3723
  declare const index$2_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
3650
3724
  declare const index$2_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
3651
3725
  declare namespace index$2 {
3652
- export { index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$2_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$2_CpmmMigratorState as CpmmMigratorState, type index$2_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$2_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$2_MigrateArgs as MigrateArgs, type index$2_MigrateArgsArgs as MigrateArgsArgs, type index$2_Recipient as Recipient, type index$2_RecipientArgs as RecipientArgs, type index$2_RegisterLaunchArgs as RegisterLaunchArgs, type index$2_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$2_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$2_SEED_STATE as SEED_STATE, index$2_encodeMigrateCalldata as encodeMigrateCalldata, index$2_encodeRegisterLaunchCalldata as encodeRegisterLaunchCalldata, index$2_fetchCpmmMigratorState as fetchCpmmMigratorState, index$2_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$2_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$2_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$2_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$2_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$2_getMigrateArgsCodec as getMigrateArgsCodec, index$2_getMigrateArgsDecoder as getMigrateArgsDecoder, index$2_getMigrateArgsEncoder as getMigrateArgsEncoder, index$2_getRecipientCodec as getRecipientCodec, index$2_getRecipientDecoder as getRecipientDecoder, index$2_getRecipientEncoder as getRecipientEncoder, index$2_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$2_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$2_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
3726
+ export { index$2_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$2_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$2_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$2_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$2_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$2_CpmmMigratorState as CpmmMigratorState, type index$2_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$2_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$2_MigrateArgs as MigrateArgs, type index$2_MigrateArgsArgs as MigrateArgsArgs, type index$2_Recipient as Recipient, type index$2_RecipientArgs as RecipientArgs, type index$2_RegisterLaunchArgs as RegisterLaunchArgs, type index$2_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$2_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$2_SEED_STATE as SEED_STATE, index$2_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$2_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$2_encodeMigratePayload as encodeMigratePayload, index$2_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$2_fetchCpmmMigratorState as fetchCpmmMigratorState, index$2_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$2_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$2_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$2_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$2_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$2_getMigrateArgsCodec as getMigrateArgsCodec, index$2_getMigrateArgsDecoder as getMigrateArgsDecoder, index$2_getMigrateArgsEncoder as getMigrateArgsEncoder, index$2_getRecipientCodec as getRecipientCodec, index$2_getRecipientDecoder as getRecipientDecoder, index$2_getRecipientEncoder as getRecipientEncoder, index$2_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$2_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$2_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
3653
3727
  }
3654
3728
 
3655
3729
  /**
@@ -3833,24 +3907,6 @@ declare function getAccumulatorUpdatedEncoder(): FixedSizeEncoder<AccumulatorUpd
3833
3907
  declare function getAccumulatorUpdatedDecoder(): FixedSizeDecoder<AccumulatorUpdated>;
3834
3908
  declare function getAccumulatorUpdatedCodec(): FixedSizeCodec<AccumulatorUpdatedArgs, AccumulatorUpdated>;
3835
3909
 
3836
- /**
3837
- * This code was AUTOGENERATED using the Codama library.
3838
- * Please DO NOT EDIT THIS FILE, instead use visitors
3839
- * to add features, then rerun Codama to update it.
3840
- *
3841
- * @see https://github.com/codama-idl/codama
3842
- */
3843
-
3844
- /** Variable-length calldata buffer. */
3845
- type CalldataBuf = {
3846
- len: number;
3847
- bytes: ReadonlyUint8Array;
3848
- };
3849
- type CalldataBufArgs = CalldataBuf;
3850
- declare function getCalldataBufEncoder(): FixedSizeEncoder<CalldataBufArgs>;
3851
- declare function getCalldataBufDecoder(): FixedSizeDecoder<CalldataBuf>;
3852
- declare function getCalldataBufCodec(): FixedSizeCodec<CalldataBufArgs, CalldataBuf>;
3853
-
3854
3910
  /**
3855
3911
  * This code was AUTOGENERATED using the Codama library.
3856
3912
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3952,7 +4008,7 @@ declare function getMarketResolvedCodec(): FixedSizeCodec<MarketResolvedArgs, Ma
3952
4008
 
3953
4009
  /**
3954
4010
  * Arguments for migrate_entry instruction.
3955
- * This is decoded from migrator_migrate_calldata passed by initializer.
4011
+ * This is decoded from migrator_migrate_payload passed by initializer.
3956
4012
  */
3957
4013
  type MigrateEntryArgs = {
3958
4014
  entryId: ReadonlyUint8Array;
@@ -3962,6 +4018,24 @@ declare function getMigrateEntryArgsEncoder(): FixedSizeEncoder<MigrateEntryArgs
3962
4018
  declare function getMigrateEntryArgsDecoder(): FixedSizeDecoder<MigrateEntryArgs>;
3963
4019
  declare function getMigrateEntryArgsCodec(): FixedSizeCodec<MigrateEntryArgsArgs, MigrateEntryArgs>;
3964
4020
 
4021
+ /**
4022
+ * This code was AUTOGENERATED using the Codama library.
4023
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4024
+ * to add features, then rerun Codama to update it.
4025
+ *
4026
+ * @see https://github.com/codama-idl/codama
4027
+ */
4028
+
4029
+ /** Variable-length payload buffer. */
4030
+ type PayloadBuf = {
4031
+ len: number;
4032
+ bytes: ReadonlyUint8Array;
4033
+ };
4034
+ type PayloadBufArgs = PayloadBuf;
4035
+ declare function getPayloadBufEncoder(): FixedSizeEncoder<PayloadBufArgs>;
4036
+ declare function getPayloadBufDecoder(): FixedSizeDecoder<PayloadBuf>;
4037
+ declare function getPayloadBufCodec(): FixedSizeCodec<PayloadBufArgs, PayloadBuf>;
4038
+
3965
4039
  /**
3966
4040
  * This code was AUTOGENERATED using the Codama library.
3967
4041
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -3992,7 +4066,7 @@ declare function getPreviewPayoutIfWinnerArgsCodec(): FixedSizeCodec<PreviewPayo
3992
4066
 
3993
4067
  /**
3994
4068
  * Arguments for register_entry instruction.
3995
- * This is decoded from migrator_init_calldata passed by initializer.
4069
+ * This is decoded from migrator_init_payload passed by initializer.
3996
4070
  */
3997
4071
  type RegisterEntryArgs = {
3998
4072
  entryId: ReadonlyUint8Array;
@@ -4062,17 +4136,17 @@ type Launch = {
4062
4136
  allowBuy: number;
4063
4137
  allowSell: number;
4064
4138
  pad2: ReadonlyUint8Array;
4065
- sentinelProgram: Address;
4066
- sentinelFlags: number;
4139
+ hookProgram: Address;
4140
+ hookFlags: number;
4067
4141
  pad3: ReadonlyUint8Array;
4068
- sentinelCalldata: CalldataBuf;
4142
+ hookPayload: PayloadBuf;
4069
4143
  migratorProgram: Address;
4070
- migratorInitCalldata: CalldataBuf;
4071
- migratorMigrateCalldata: CalldataBuf;
4144
+ migratorInitPayload: PayloadBuf;
4145
+ migratorMigratePayload: PayloadBuf;
4072
4146
  curveKind: number;
4073
4147
  swapLock: number;
4074
4148
  pad4: ReadonlyUint8Array;
4075
- curveParams: CalldataBuf;
4149
+ curveParams: PayloadBuf;
4076
4150
  quoteDeposited: bigint;
4077
4151
  reserved: ReadonlyUint8Array;
4078
4152
  };
@@ -4099,17 +4173,17 @@ type LaunchArgs = {
4099
4173
  allowBuy: number;
4100
4174
  allowSell: number;
4101
4175
  pad2: ReadonlyUint8Array;
4102
- sentinelProgram: Address;
4103
- sentinelFlags: number;
4176
+ hookProgram: Address;
4177
+ hookFlags: number;
4104
4178
  pad3: ReadonlyUint8Array;
4105
- sentinelCalldata: CalldataBufArgs;
4179
+ hookPayload: PayloadBufArgs;
4106
4180
  migratorProgram: Address;
4107
- migratorInitCalldata: CalldataBufArgs;
4108
- migratorMigrateCalldata: CalldataBufArgs;
4181
+ migratorInitPayload: PayloadBufArgs;
4182
+ migratorMigratePayload: PayloadBufArgs;
4109
4183
  curveKind: number;
4110
4184
  swapLock: number;
4111
4185
  pad4: ReadonlyUint8Array;
4112
- curveParams: CalldataBufArgs;
4186
+ curveParams: PayloadBufArgs;
4113
4187
  quoteDeposited: number | bigint;
4114
4188
  reserved: ReadonlyUint8Array;
4115
4189
  };
@@ -4875,8 +4949,6 @@ type index$1_AccumulatorUpdated = AccumulatorUpdated;
4875
4949
  type index$1_AccumulatorUpdatedArgs = AccumulatorUpdatedArgs;
4876
4950
  declare const index$1_CLAIM_DISCRIMINATOR: typeof CLAIM_DISCRIMINATOR;
4877
4951
  declare const index$1_CLAIM_RECEIPT_DISCRIMINATOR: typeof CLAIM_RECEIPT_DISCRIMINATOR;
4878
- type index$1_CalldataBuf = CalldataBuf;
4879
- type index$1_CalldataBufArgs = CalldataBufArgs;
4880
4952
  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
4953
  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
4954
  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>;
@@ -4939,6 +5011,8 @@ type index$1_ParsedMigrateEntryInstruction<TProgram extends string = typeof PRED
4939
5011
  type index$1_ParsedPredictionMigratorInstruction<TProgram extends string = 'HYHdyy7QZg8Ucky9Z97xNtSCvrZxVNkeoney8xEPXjiZ'> = ParsedPredictionMigratorInstruction<TProgram>;
4940
5012
  type index$1_ParsedPreviewPayoutIfWinnerInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPreviewPayoutIfWinnerInstruction<TProgram, TAccountMetas>;
4941
5013
  type index$1_ParsedRegisterEntryInstruction<TProgram extends string = typeof PREDICTION_MIGRATOR_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRegisterEntryInstruction<TProgram, TAccountMetas>;
5014
+ type index$1_PayloadBuf = PayloadBuf;
5015
+ type index$1_PayloadBufArgs = PayloadBufArgs;
4942
5016
  type index$1_PredictionMigratorAccount = PredictionMigratorAccount;
4943
5017
  declare const index$1_PredictionMigratorAccount: typeof PredictionMigratorAccount;
4944
5018
  type index$1_PredictionMigratorError = PredictionMigratorError;
@@ -4992,9 +5066,6 @@ declare const index$1_fetchMaybeMarket: typeof fetchMaybeMarket;
4992
5066
  declare const index$1_getAccumulatorUpdatedCodec: typeof getAccumulatorUpdatedCodec;
4993
5067
  declare const index$1_getAccumulatorUpdatedDecoder: typeof getAccumulatorUpdatedDecoder;
4994
5068
  declare const index$1_getAccumulatorUpdatedEncoder: typeof getAccumulatorUpdatedEncoder;
4995
- declare const index$1_getCalldataBufCodec: typeof getCalldataBufCodec;
4996
- declare const index$1_getCalldataBufDecoder: typeof getCalldataBufDecoder;
4997
- declare const index$1_getCalldataBufEncoder: typeof getCalldataBufEncoder;
4998
5069
  declare const index$1_getClaimDiscriminatorBytes: typeof getClaimDiscriminatorBytes;
4999
5070
  declare const index$1_getClaimInstruction: typeof getClaimInstruction;
5000
5071
  declare const index$1_getClaimInstructionAsync: typeof getClaimInstructionAsync;
@@ -5047,6 +5118,9 @@ declare const index$1_getMigrateEntryInstructionAsync: typeof getMigrateEntryIns
5047
5118
  declare const index$1_getMigrateEntryInstructionDataCodec: typeof getMigrateEntryInstructionDataCodec;
5048
5119
  declare const index$1_getMigrateEntryInstructionDataDecoder: typeof getMigrateEntryInstructionDataDecoder;
5049
5120
  declare const index$1_getMigrateEntryInstructionDataEncoder: typeof getMigrateEntryInstructionDataEncoder;
5121
+ declare const index$1_getPayloadBufCodec: typeof getPayloadBufCodec;
5122
+ declare const index$1_getPayloadBufDecoder: typeof getPayloadBufDecoder;
5123
+ declare const index$1_getPayloadBufEncoder: typeof getPayloadBufEncoder;
5050
5124
  declare const index$1_getPredictionEntryAddress: typeof getPredictionEntryAddress;
5051
5125
  declare const index$1_getPredictionEntryByMintAddress: typeof getPredictionEntryByMintAddress;
5052
5126
  declare const index$1_getPredictionMarketAddress: typeof getPredictionMarketAddress;
@@ -5083,7 +5157,7 @@ declare const index$1_parsePreviewPayoutIfWinnerInstruction: typeof parsePreview
5083
5157
  declare const index$1_parseRegisterEntryInstruction: typeof parseRegisterEntryInstruction;
5084
5158
  declare const index$1_predictionMigratorProgram: typeof predictionMigratorProgram;
5085
5159
  declare namespace index$1 {
5086
- export { type index$1_AccumulatorUpdated as AccumulatorUpdated, type index$1_AccumulatorUpdatedArgs as AccumulatorUpdatedArgs, index$1_CLAIM_DISCRIMINATOR as CLAIM_DISCRIMINATOR, index$1_CLAIM_RECEIPT_DISCRIMINATOR as CLAIM_RECEIPT_DISCRIMINATOR, type index$1_CalldataBuf as CalldataBuf, type index$1_CalldataBufArgs as CalldataBufArgs, type index$1_ClaimAsyncInput as ClaimAsyncInput, type index$1_ClaimInput as ClaimInput, type index$1_ClaimInstruction as ClaimInstruction, type index$1_ClaimInstructionData as ClaimInstructionData, type index$1_ClaimInstructionDataArgs as ClaimInstructionDataArgs, type index$1_ClaimReceipt as ClaimReceipt, type index$1_ClaimReceiptArgs as ClaimReceiptArgs, index$1_ENTRY_BY_MINT_DISCRIMINATOR as ENTRY_BY_MINT_DISCRIMINATOR, index$1_ENTRY_DISCRIMINATOR as ENTRY_DISCRIMINATOR, type index$1_Entry as Entry, type index$1_EntryArgs as EntryArgs, type index$1_EntryByMint as EntryByMint, type index$1_EntryByMintArgs as EntryByMintArgs, type index$1_EntryMigrated as EntryMigrated, type index$1_EntryMigratedArgs as EntryMigratedArgs, type index$1_EntryRegistered as EntryRegistered, type index$1_EntryRegisteredArgs as EntryRegisteredArgs, index$1_LAUNCH_DISCRIMINATOR as LAUNCH_DISCRIMINATOR, type index$1_Launch as Launch, type index$1_LaunchArgs as LaunchArgs, index$1_MARKET_DISCRIMINATOR as MARKET_DISCRIMINATOR, index$1_MIGRATE_ENTRY_DISCRIMINATOR as MIGRATE_ENTRY_DISCRIMINATOR, type index$1_Market as Market, type index$1_MarketArgs as MarketArgs, type index$1_MarketCreated as MarketCreated, type index$1_MarketCreatedArgs as MarketCreatedArgs, type index$1_MarketResolved as MarketResolved, type index$1_MarketResolvedArgs as MarketResolvedArgs, type index$1_MigrateEntryArgs as MigrateEntryArgs, type index$1_MigrateEntryArgsArgs as MigrateEntryArgsArgs, type index$1_MigrateEntryAsyncInput as MigrateEntryAsyncInput, type index$1_MigrateEntryInput as MigrateEntryInput, type index$1_MigrateEntryInstruction as MigrateEntryInstruction, type index$1_MigrateEntryInstructionData as MigrateEntryInstructionData, type index$1_MigrateEntryInstructionDataArgs as MigrateEntryInstructionDataArgs, ORACLE_STATE_DISCRIMINATOR$1 as ORACLE_STATE_DISCRIMINATOR, type OracleState$1 as OracleState, type OracleStateArgs$1 as OracleStateArgs, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED as PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_REGISTERED as PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_REGISTERED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_MIGRATED as PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_REGISTERED as PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_REGISTERED, index$1_PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE as PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID as PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_INPUT as PREDICTION_MIGRATOR_ERROR__INVALID_INPUT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MARKET as PREDICTION_MIGRATOR_ERROR__INVALID_MARKET, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_MINT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE as PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_VAULT as PREDICTION_MIGRATOR_ERROR__INVALID_VAULT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT, index$1_PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED as PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED, index$1_PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW as PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW, index$1_PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS as PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS, index$1_PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED as PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED, index$1_PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH as PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH, index$1_PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED as PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED, index$1_PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED as PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY as PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY, index$1_PREDICTION_MIGRATOR_PROGRAM_ADDRESS as PREDICTION_MIGRATOR_PROGRAM_ADDRESS, index$1_PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR as PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR, type index$1_ParsedClaimInstruction as ParsedClaimInstruction, type index$1_ParsedMigrateEntryInstruction as ParsedMigrateEntryInstruction, type index$1_ParsedPredictionMigratorInstruction as ParsedPredictionMigratorInstruction, type index$1_ParsedPreviewPayoutIfWinnerInstruction as ParsedPreviewPayoutIfWinnerInstruction, type index$1_ParsedRegisterEntryInstruction as ParsedRegisterEntryInstruction, index$1_PredictionMigratorAccount as PredictionMigratorAccount, type index$1_PredictionMigratorError as PredictionMigratorError, index$1_PredictionMigratorInstruction as PredictionMigratorInstruction, type index$1_PredictionMigratorPlugin as PredictionMigratorPlugin, type index$1_PredictionMigratorPluginAccounts as PredictionMigratorPluginAccounts, type index$1_PredictionMigratorPluginInstructions as PredictionMigratorPluginInstructions, type index$1_PredictionMigratorPluginRequirements as PredictionMigratorPluginRequirements, type index$1_PreviewPayoutIfWinnerArgs as PreviewPayoutIfWinnerArgs, type index$1_PreviewPayoutIfWinnerArgsArgs as PreviewPayoutIfWinnerArgsArgs, type index$1_PreviewPayoutIfWinnerInput as PreviewPayoutIfWinnerInput, type index$1_PreviewPayoutIfWinnerInstruction as PreviewPayoutIfWinnerInstruction, type index$1_PreviewPayoutIfWinnerInstructionData as PreviewPayoutIfWinnerInstructionData, type index$1_PreviewPayoutIfWinnerInstructionDataArgs as PreviewPayoutIfWinnerInstructionDataArgs, index$1_REGISTER_ENTRY_DISCRIMINATOR as REGISTER_ENTRY_DISCRIMINATOR, type index$1_RegisterEntryArgs as RegisterEntryArgs, type index$1_RegisterEntryArgsArgs as RegisterEntryArgsArgs, type index$1_RegisterEntryAsyncInput as RegisterEntryAsyncInput, type index$1_RegisterEntryInput as RegisterEntryInput, type index$1_RegisterEntryInstruction as RegisterEntryInstruction, type index$1_RegisterEntryInstructionData as RegisterEntryInstructionData, type index$1_RegisterEntryInstructionDataArgs as RegisterEntryInstructionDataArgs, type index$1_RewardsClaimed as RewardsClaimed, type index$1_RewardsClaimedArgs as RewardsClaimedArgs, index$1_decodeClaimReceipt as decodeClaimReceipt, index$1_decodeEntry as decodeEntry, index$1_decodeEntryByMint as decodeEntryByMint, index$1_decodeLaunch as decodeLaunch, index$1_decodeMarket as decodeMarket, decodeOracleState$1 as decodeOracleState, index$1_fetchAllClaimReceipt as fetchAllClaimReceipt, index$1_fetchAllEntry as fetchAllEntry, index$1_fetchAllEntryByMint as fetchAllEntryByMint, index$1_fetchAllLaunch as fetchAllLaunch, index$1_fetchAllMarket as fetchAllMarket, index$1_fetchAllMaybeClaimReceipt as fetchAllMaybeClaimReceipt, index$1_fetchAllMaybeEntry as fetchAllMaybeEntry, index$1_fetchAllMaybeEntryByMint as fetchAllMaybeEntryByMint, index$1_fetchAllMaybeLaunch as fetchAllMaybeLaunch, index$1_fetchAllMaybeMarket as fetchAllMaybeMarket, fetchAllMaybeOracleState$1 as fetchAllMaybeOracleState, fetchAllOracleState$1 as fetchAllOracleState, index$1_fetchClaimReceipt as fetchClaimReceipt, index$1_fetchEntry as fetchEntry, index$1_fetchEntryByMint as fetchEntryByMint, index$1_fetchLaunch as fetchLaunch, index$1_fetchMarket as fetchMarket, index$1_fetchMaybeClaimReceipt as fetchMaybeClaimReceipt, index$1_fetchMaybeEntry as fetchMaybeEntry, index$1_fetchMaybeEntryByMint as fetchMaybeEntryByMint, index$1_fetchMaybeLaunch as fetchMaybeLaunch, index$1_fetchMaybeMarket as fetchMaybeMarket, fetchMaybeOracleState$1 as fetchMaybeOracleState, fetchOracleState$1 as fetchOracleState, index$1_getAccumulatorUpdatedCodec as getAccumulatorUpdatedCodec, index$1_getAccumulatorUpdatedDecoder as getAccumulatorUpdatedDecoder, index$1_getAccumulatorUpdatedEncoder as getAccumulatorUpdatedEncoder, index$1_getCalldataBufCodec as getCalldataBufCodec, index$1_getCalldataBufDecoder as getCalldataBufDecoder, index$1_getCalldataBufEncoder as getCalldataBufEncoder, index$1_getClaimDiscriminatorBytes as getClaimDiscriminatorBytes, index$1_getClaimInstruction as getClaimInstruction, index$1_getClaimInstructionAsync as getClaimInstructionAsync, index$1_getClaimInstructionDataCodec as getClaimInstructionDataCodec, index$1_getClaimInstructionDataDecoder as getClaimInstructionDataDecoder, index$1_getClaimInstructionDataEncoder as getClaimInstructionDataEncoder, index$1_getClaimReceiptCodec as getClaimReceiptCodec, index$1_getClaimReceiptDecoder as getClaimReceiptDecoder, index$1_getClaimReceiptDiscriminatorBytes as getClaimReceiptDiscriminatorBytes, index$1_getClaimReceiptEncoder as getClaimReceiptEncoder, index$1_getClaimReceiptSize as getClaimReceiptSize, index$1_getEntryByMintCodec as getEntryByMintCodec, index$1_getEntryByMintDecoder as getEntryByMintDecoder, index$1_getEntryByMintDiscriminatorBytes as getEntryByMintDiscriminatorBytes, index$1_getEntryByMintEncoder as getEntryByMintEncoder, index$1_getEntryByMintSize as getEntryByMintSize, index$1_getEntryCodec as getEntryCodec, index$1_getEntryDecoder as getEntryDecoder, index$1_getEntryDiscriminatorBytes as getEntryDiscriminatorBytes, index$1_getEntryEncoder as getEntryEncoder, index$1_getEntryMigratedCodec as getEntryMigratedCodec, index$1_getEntryMigratedDecoder as getEntryMigratedDecoder, index$1_getEntryMigratedEncoder as getEntryMigratedEncoder, index$1_getEntryRegisteredCodec as getEntryRegisteredCodec, index$1_getEntryRegisteredDecoder as getEntryRegisteredDecoder, index$1_getEntryRegisteredEncoder as getEntryRegisteredEncoder, index$1_getEntrySize as getEntrySize, index$1_getLaunchCodec as getLaunchCodec, index$1_getLaunchDecoder as getLaunchDecoder, index$1_getLaunchDiscriminatorBytes as getLaunchDiscriminatorBytes, index$1_getLaunchEncoder as getLaunchEncoder, index$1_getLaunchSize as getLaunchSize, index$1_getMarketCodec as getMarketCodec, index$1_getMarketCreatedCodec as getMarketCreatedCodec, index$1_getMarketCreatedDecoder as getMarketCreatedDecoder, index$1_getMarketCreatedEncoder as getMarketCreatedEncoder, index$1_getMarketDecoder as getMarketDecoder, index$1_getMarketDiscriminatorBytes as getMarketDiscriminatorBytes, index$1_getMarketEncoder as getMarketEncoder, index$1_getMarketResolvedCodec as getMarketResolvedCodec, index$1_getMarketResolvedDecoder as getMarketResolvedDecoder, index$1_getMarketResolvedEncoder as getMarketResolvedEncoder, index$1_getMarketSize as getMarketSize, index$1_getMigrateEntryArgsCodec as getMigrateEntryArgsCodec, index$1_getMigrateEntryArgsDecoder as getMigrateEntryArgsDecoder, index$1_getMigrateEntryArgsEncoder as getMigrateEntryArgsEncoder, index$1_getMigrateEntryDiscriminatorBytes as getMigrateEntryDiscriminatorBytes, index$1_getMigrateEntryInstruction as getMigrateEntryInstruction, index$1_getMigrateEntryInstructionAsync as getMigrateEntryInstructionAsync, index$1_getMigrateEntryInstructionDataCodec as getMigrateEntryInstructionDataCodec, index$1_getMigrateEntryInstructionDataDecoder as getMigrateEntryInstructionDataDecoder, index$1_getMigrateEntryInstructionDataEncoder as getMigrateEntryInstructionDataEncoder, getOracleStateCodec$1 as getOracleStateCodec, getOracleStateDecoder$1 as getOracleStateDecoder, getOracleStateDiscriminatorBytes$1 as getOracleStateDiscriminatorBytes, getOracleStateEncoder$1 as getOracleStateEncoder, getOracleStateSize$1 as getOracleStateSize, index$1_getPredictionEntryAddress as getPredictionEntryAddress, index$1_getPredictionEntryByMintAddress as getPredictionEntryByMintAddress, index$1_getPredictionMarketAddress as getPredictionMarketAddress, index$1_getPredictionMarketAuthorityAddress as getPredictionMarketAuthorityAddress, index$1_getPredictionMigratorErrorMessage as getPredictionMigratorErrorMessage, index$1_getPredictionPotVaultAddress as getPredictionPotVaultAddress, index$1_getPreviewPayoutIfWinnerArgsCodec as getPreviewPayoutIfWinnerArgsCodec, index$1_getPreviewPayoutIfWinnerArgsDecoder as getPreviewPayoutIfWinnerArgsDecoder, index$1_getPreviewPayoutIfWinnerArgsEncoder as getPreviewPayoutIfWinnerArgsEncoder, index$1_getPreviewPayoutIfWinnerDiscriminatorBytes as getPreviewPayoutIfWinnerDiscriminatorBytes, index$1_getPreviewPayoutIfWinnerInstruction as getPreviewPayoutIfWinnerInstruction, index$1_getPreviewPayoutIfWinnerInstructionDataCodec as getPreviewPayoutIfWinnerInstructionDataCodec, index$1_getPreviewPayoutIfWinnerInstructionDataDecoder as getPreviewPayoutIfWinnerInstructionDataDecoder, index$1_getPreviewPayoutIfWinnerInstructionDataEncoder as getPreviewPayoutIfWinnerInstructionDataEncoder, index$1_getRegisterEntryArgsCodec as getRegisterEntryArgsCodec, index$1_getRegisterEntryArgsDecoder as getRegisterEntryArgsDecoder, index$1_getRegisterEntryArgsEncoder as getRegisterEntryArgsEncoder, index$1_getRegisterEntryDiscriminatorBytes as getRegisterEntryDiscriminatorBytes, index$1_getRegisterEntryInstruction as getRegisterEntryInstruction, index$1_getRegisterEntryInstructionAsync as getRegisterEntryInstructionAsync, index$1_getRegisterEntryInstructionDataCodec as getRegisterEntryInstructionDataCodec, index$1_getRegisterEntryInstructionDataDecoder as getRegisterEntryInstructionDataDecoder, index$1_getRegisterEntryInstructionDataEncoder as getRegisterEntryInstructionDataEncoder, index$1_getRewardsClaimedCodec as getRewardsClaimedCodec, index$1_getRewardsClaimedDecoder as getRewardsClaimedDecoder, index$1_getRewardsClaimedEncoder as getRewardsClaimedEncoder, index$1_identifyPredictionMigratorAccount as identifyPredictionMigratorAccount, index$1_identifyPredictionMigratorInstruction as identifyPredictionMigratorInstruction, index$1_isPredictionMigratorError as isPredictionMigratorError, index$1_parseClaimInstruction as parseClaimInstruction, index$1_parseMigrateEntryInstruction as parseMigrateEntryInstruction, index$1_parsePredictionMigratorInstruction as parsePredictionMigratorInstruction, index$1_parsePreviewPayoutIfWinnerInstruction as parsePreviewPayoutIfWinnerInstruction, index$1_parseRegisterEntryInstruction as parseRegisterEntryInstruction, index$1_predictionMigratorProgram as predictionMigratorProgram };
5160
+ export { type index$1_AccumulatorUpdated as AccumulatorUpdated, type index$1_AccumulatorUpdatedArgs as AccumulatorUpdatedArgs, index$1_CLAIM_DISCRIMINATOR as CLAIM_DISCRIMINATOR, index$1_CLAIM_RECEIPT_DISCRIMINATOR as CLAIM_RECEIPT_DISCRIMINATOR, type index$1_ClaimAsyncInput as ClaimAsyncInput, type index$1_ClaimInput as ClaimInput, type index$1_ClaimInstruction as ClaimInstruction, type index$1_ClaimInstructionData as ClaimInstructionData, type index$1_ClaimInstructionDataArgs as ClaimInstructionDataArgs, type index$1_ClaimReceipt as ClaimReceipt, type index$1_ClaimReceiptArgs as ClaimReceiptArgs, index$1_ENTRY_BY_MINT_DISCRIMINATOR as ENTRY_BY_MINT_DISCRIMINATOR, index$1_ENTRY_DISCRIMINATOR as ENTRY_DISCRIMINATOR, type index$1_Entry as Entry, type index$1_EntryArgs as EntryArgs, type index$1_EntryByMint as EntryByMint, type index$1_EntryByMintArgs as EntryByMintArgs, type index$1_EntryMigrated as EntryMigrated, type index$1_EntryMigratedArgs as EntryMigratedArgs, type index$1_EntryRegistered as EntryRegistered, type index$1_EntryRegisteredArgs as EntryRegisteredArgs, index$1_LAUNCH_DISCRIMINATOR as LAUNCH_DISCRIMINATOR, type index$1_Launch as Launch, type index$1_LaunchArgs as LaunchArgs, index$1_MARKET_DISCRIMINATOR as MARKET_DISCRIMINATOR, index$1_MIGRATE_ENTRY_DISCRIMINATOR as MIGRATE_ENTRY_DISCRIMINATOR, type index$1_Market as Market, type index$1_MarketArgs as MarketArgs, type index$1_MarketCreated as MarketCreated, type index$1_MarketCreatedArgs as MarketCreatedArgs, type index$1_MarketResolved as MarketResolved, type index$1_MarketResolvedArgs as MarketResolvedArgs, type index$1_MigrateEntryArgs as MigrateEntryArgs, type index$1_MigrateEntryArgsArgs as MigrateEntryArgsArgs, type index$1_MigrateEntryAsyncInput as MigrateEntryAsyncInput, type index$1_MigrateEntryInput as MigrateEntryInput, type index$1_MigrateEntryInstruction as MigrateEntryInstruction, type index$1_MigrateEntryInstructionData as MigrateEntryInstructionData, type index$1_MigrateEntryInstructionDataArgs as MigrateEntryInstructionDataArgs, ORACLE_STATE_DISCRIMINATOR$1 as ORACLE_STATE_DISCRIMINATOR, type OracleState$1 as OracleState, type OracleStateArgs$1 as OracleStateArgs, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED as PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_REGISTERED as PREDICTION_MIGRATOR_ERROR__ENTRY_ALREADY_REGISTERED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_MIGRATED as PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_REGISTERED as PREDICTION_MIGRATOR_ERROR__ENTRY_NOT_REGISTERED, index$1_PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE as PREDICTION_MIGRATOR_ERROR__INSUFFICIENT_BALANCE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID as PREDICTION_MIGRATOR_ERROR__INVALID_ENTRY_ID, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_INPUT as PREDICTION_MIGRATOR_ERROR__INVALID_INPUT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MARKET as PREDICTION_MIGRATOR_ERROR__INVALID_MARKET, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_MINT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE as PREDICTION_MIGRATOR_ERROR__INVALID_ORACLE, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_VAULT as PREDICTION_MIGRATOR_ERROR__INVALID_VAULT, index$1_PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT as PREDICTION_MIGRATOR_ERROR__INVALID_WINNER_MINT, index$1_PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED as PREDICTION_MIGRATOR_ERROR__MARKET_NOT_RESOLVED, index$1_PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW as PREDICTION_MIGRATOR_ERROR__MATH_OVERFLOW, index$1_PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS as PREDICTION_MIGRATOR_ERROR__NO_PENDING_REWARDS, index$1_PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED as PREDICTION_MIGRATOR_ERROR__ORACLE_NOT_FINALIZED, index$1_PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH as PREDICTION_MIGRATOR_ERROR__QUOTE_MINT_MISMATCH, index$1_PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED as PREDICTION_MIGRATOR_ERROR__UNAUTHORIZED, index$1_PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED as PREDICTION_MIGRATOR_ERROR__WINNING_ENTRY_NOT_MIGRATED, index$1_PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY as PREDICTION_MIGRATOR_ERROR__ZERO_CLAIMABLE_SUPPLY, index$1_PREDICTION_MIGRATOR_PROGRAM_ADDRESS as PREDICTION_MIGRATOR_PROGRAM_ADDRESS, index$1_PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR as PREVIEW_PAYOUT_IF_WINNER_DISCRIMINATOR, type index$1_ParsedClaimInstruction as ParsedClaimInstruction, type index$1_ParsedMigrateEntryInstruction as ParsedMigrateEntryInstruction, type index$1_ParsedPredictionMigratorInstruction as ParsedPredictionMigratorInstruction, type index$1_ParsedPreviewPayoutIfWinnerInstruction as ParsedPreviewPayoutIfWinnerInstruction, type index$1_ParsedRegisterEntryInstruction as ParsedRegisterEntryInstruction, type index$1_PayloadBuf as PayloadBuf, type index$1_PayloadBufArgs as PayloadBufArgs, index$1_PredictionMigratorAccount as PredictionMigratorAccount, type index$1_PredictionMigratorError as PredictionMigratorError, index$1_PredictionMigratorInstruction as PredictionMigratorInstruction, type index$1_PredictionMigratorPlugin as PredictionMigratorPlugin, type index$1_PredictionMigratorPluginAccounts as PredictionMigratorPluginAccounts, type index$1_PredictionMigratorPluginInstructions as PredictionMigratorPluginInstructions, type index$1_PredictionMigratorPluginRequirements as PredictionMigratorPluginRequirements, type index$1_PreviewPayoutIfWinnerArgs as PreviewPayoutIfWinnerArgs, type index$1_PreviewPayoutIfWinnerArgsArgs as PreviewPayoutIfWinnerArgsArgs, type index$1_PreviewPayoutIfWinnerInput as PreviewPayoutIfWinnerInput, type index$1_PreviewPayoutIfWinnerInstruction as PreviewPayoutIfWinnerInstruction, type index$1_PreviewPayoutIfWinnerInstructionData as PreviewPayoutIfWinnerInstructionData, type index$1_PreviewPayoutIfWinnerInstructionDataArgs as PreviewPayoutIfWinnerInstructionDataArgs, index$1_REGISTER_ENTRY_DISCRIMINATOR as REGISTER_ENTRY_DISCRIMINATOR, type index$1_RegisterEntryArgs as RegisterEntryArgs, type index$1_RegisterEntryArgsArgs as RegisterEntryArgsArgs, type index$1_RegisterEntryAsyncInput as RegisterEntryAsyncInput, type index$1_RegisterEntryInput as RegisterEntryInput, type index$1_RegisterEntryInstruction as RegisterEntryInstruction, type index$1_RegisterEntryInstructionData as RegisterEntryInstructionData, type index$1_RegisterEntryInstructionDataArgs as RegisterEntryInstructionDataArgs, type index$1_RewardsClaimed as RewardsClaimed, type index$1_RewardsClaimedArgs as RewardsClaimedArgs, index$1_decodeClaimReceipt as decodeClaimReceipt, index$1_decodeEntry as decodeEntry, index$1_decodeEntryByMint as decodeEntryByMint, index$1_decodeLaunch as decodeLaunch, index$1_decodeMarket as decodeMarket, decodeOracleState$1 as decodeOracleState, index$1_fetchAllClaimReceipt as fetchAllClaimReceipt, index$1_fetchAllEntry as fetchAllEntry, index$1_fetchAllEntryByMint as fetchAllEntryByMint, index$1_fetchAllLaunch as fetchAllLaunch, index$1_fetchAllMarket as fetchAllMarket, index$1_fetchAllMaybeClaimReceipt as fetchAllMaybeClaimReceipt, index$1_fetchAllMaybeEntry as fetchAllMaybeEntry, index$1_fetchAllMaybeEntryByMint as fetchAllMaybeEntryByMint, index$1_fetchAllMaybeLaunch as fetchAllMaybeLaunch, index$1_fetchAllMaybeMarket as fetchAllMaybeMarket, fetchAllMaybeOracleState$1 as fetchAllMaybeOracleState, fetchAllOracleState$1 as fetchAllOracleState, index$1_fetchClaimReceipt as fetchClaimReceipt, index$1_fetchEntry as fetchEntry, index$1_fetchEntryByMint as fetchEntryByMint, index$1_fetchLaunch as fetchLaunch, index$1_fetchMarket as fetchMarket, index$1_fetchMaybeClaimReceipt as fetchMaybeClaimReceipt, index$1_fetchMaybeEntry as fetchMaybeEntry, index$1_fetchMaybeEntryByMint as fetchMaybeEntryByMint, index$1_fetchMaybeLaunch as fetchMaybeLaunch, index$1_fetchMaybeMarket as fetchMaybeMarket, fetchMaybeOracleState$1 as fetchMaybeOracleState, fetchOracleState$1 as fetchOracleState, index$1_getAccumulatorUpdatedCodec as getAccumulatorUpdatedCodec, index$1_getAccumulatorUpdatedDecoder as getAccumulatorUpdatedDecoder, index$1_getAccumulatorUpdatedEncoder as getAccumulatorUpdatedEncoder, index$1_getClaimDiscriminatorBytes as getClaimDiscriminatorBytes, index$1_getClaimInstruction as getClaimInstruction, index$1_getClaimInstructionAsync as getClaimInstructionAsync, index$1_getClaimInstructionDataCodec as getClaimInstructionDataCodec, index$1_getClaimInstructionDataDecoder as getClaimInstructionDataDecoder, index$1_getClaimInstructionDataEncoder as getClaimInstructionDataEncoder, index$1_getClaimReceiptCodec as getClaimReceiptCodec, index$1_getClaimReceiptDecoder as getClaimReceiptDecoder, index$1_getClaimReceiptDiscriminatorBytes as getClaimReceiptDiscriminatorBytes, index$1_getClaimReceiptEncoder as getClaimReceiptEncoder, index$1_getClaimReceiptSize as getClaimReceiptSize, index$1_getEntryByMintCodec as getEntryByMintCodec, index$1_getEntryByMintDecoder as getEntryByMintDecoder, index$1_getEntryByMintDiscriminatorBytes as getEntryByMintDiscriminatorBytes, index$1_getEntryByMintEncoder as getEntryByMintEncoder, index$1_getEntryByMintSize as getEntryByMintSize, index$1_getEntryCodec as getEntryCodec, index$1_getEntryDecoder as getEntryDecoder, index$1_getEntryDiscriminatorBytes as getEntryDiscriminatorBytes, index$1_getEntryEncoder as getEntryEncoder, index$1_getEntryMigratedCodec as getEntryMigratedCodec, index$1_getEntryMigratedDecoder as getEntryMigratedDecoder, index$1_getEntryMigratedEncoder as getEntryMigratedEncoder, index$1_getEntryRegisteredCodec as getEntryRegisteredCodec, index$1_getEntryRegisteredDecoder as getEntryRegisteredDecoder, index$1_getEntryRegisteredEncoder as getEntryRegisteredEncoder, index$1_getEntrySize as getEntrySize, index$1_getLaunchCodec as getLaunchCodec, index$1_getLaunchDecoder as getLaunchDecoder, index$1_getLaunchDiscriminatorBytes as getLaunchDiscriminatorBytes, index$1_getLaunchEncoder as getLaunchEncoder, index$1_getLaunchSize as getLaunchSize, index$1_getMarketCodec as getMarketCodec, index$1_getMarketCreatedCodec as getMarketCreatedCodec, index$1_getMarketCreatedDecoder as getMarketCreatedDecoder, index$1_getMarketCreatedEncoder as getMarketCreatedEncoder, index$1_getMarketDecoder as getMarketDecoder, index$1_getMarketDiscriminatorBytes as getMarketDiscriminatorBytes, index$1_getMarketEncoder as getMarketEncoder, index$1_getMarketResolvedCodec as getMarketResolvedCodec, index$1_getMarketResolvedDecoder as getMarketResolvedDecoder, index$1_getMarketResolvedEncoder as getMarketResolvedEncoder, index$1_getMarketSize as getMarketSize, index$1_getMigrateEntryArgsCodec as getMigrateEntryArgsCodec, index$1_getMigrateEntryArgsDecoder as getMigrateEntryArgsDecoder, index$1_getMigrateEntryArgsEncoder as getMigrateEntryArgsEncoder, index$1_getMigrateEntryDiscriminatorBytes as getMigrateEntryDiscriminatorBytes, index$1_getMigrateEntryInstruction as getMigrateEntryInstruction, index$1_getMigrateEntryInstructionAsync as getMigrateEntryInstructionAsync, index$1_getMigrateEntryInstructionDataCodec as getMigrateEntryInstructionDataCodec, index$1_getMigrateEntryInstructionDataDecoder as getMigrateEntryInstructionDataDecoder, index$1_getMigrateEntryInstructionDataEncoder as getMigrateEntryInstructionDataEncoder, getOracleStateCodec$1 as getOracleStateCodec, getOracleStateDecoder$1 as getOracleStateDecoder, getOracleStateDiscriminatorBytes$1 as getOracleStateDiscriminatorBytes, getOracleStateEncoder$1 as getOracleStateEncoder, getOracleStateSize$1 as getOracleStateSize, index$1_getPayloadBufCodec as getPayloadBufCodec, index$1_getPayloadBufDecoder as getPayloadBufDecoder, index$1_getPayloadBufEncoder as getPayloadBufEncoder, index$1_getPredictionEntryAddress as getPredictionEntryAddress, index$1_getPredictionEntryByMintAddress as getPredictionEntryByMintAddress, index$1_getPredictionMarketAddress as getPredictionMarketAddress, index$1_getPredictionMarketAuthorityAddress as getPredictionMarketAuthorityAddress, index$1_getPredictionMigratorErrorMessage as getPredictionMigratorErrorMessage, index$1_getPredictionPotVaultAddress as getPredictionPotVaultAddress, index$1_getPreviewPayoutIfWinnerArgsCodec as getPreviewPayoutIfWinnerArgsCodec, index$1_getPreviewPayoutIfWinnerArgsDecoder as getPreviewPayoutIfWinnerArgsDecoder, index$1_getPreviewPayoutIfWinnerArgsEncoder as getPreviewPayoutIfWinnerArgsEncoder, index$1_getPreviewPayoutIfWinnerDiscriminatorBytes as getPreviewPayoutIfWinnerDiscriminatorBytes, index$1_getPreviewPayoutIfWinnerInstruction as getPreviewPayoutIfWinnerInstruction, index$1_getPreviewPayoutIfWinnerInstructionDataCodec as getPreviewPayoutIfWinnerInstructionDataCodec, index$1_getPreviewPayoutIfWinnerInstructionDataDecoder as getPreviewPayoutIfWinnerInstructionDataDecoder, index$1_getPreviewPayoutIfWinnerInstructionDataEncoder as getPreviewPayoutIfWinnerInstructionDataEncoder, index$1_getRegisterEntryArgsCodec as getRegisterEntryArgsCodec, index$1_getRegisterEntryArgsDecoder as getRegisterEntryArgsDecoder, index$1_getRegisterEntryArgsEncoder as getRegisterEntryArgsEncoder, index$1_getRegisterEntryDiscriminatorBytes as getRegisterEntryDiscriminatorBytes, index$1_getRegisterEntryInstruction as getRegisterEntryInstruction, index$1_getRegisterEntryInstructionAsync as getRegisterEntryInstructionAsync, index$1_getRegisterEntryInstructionDataCodec as getRegisterEntryInstructionDataCodec, index$1_getRegisterEntryInstructionDataDecoder as getRegisterEntryInstructionDataDecoder, index$1_getRegisterEntryInstructionDataEncoder as getRegisterEntryInstructionDataEncoder, index$1_getRewardsClaimedCodec as getRewardsClaimedCodec, index$1_getRewardsClaimedDecoder as getRewardsClaimedDecoder, index$1_getRewardsClaimedEncoder as getRewardsClaimedEncoder, index$1_identifyPredictionMigratorAccount as identifyPredictionMigratorAccount, index$1_identifyPredictionMigratorInstruction as identifyPredictionMigratorInstruction, index$1_isPredictionMigratorError as isPredictionMigratorError, index$1_parseClaimInstruction as parseClaimInstruction, index$1_parseMigrateEntryInstruction as parseMigrateEntryInstruction, index$1_parsePredictionMigratorInstruction as parsePredictionMigratorInstruction, index$1_parsePreviewPayoutIfWinnerInstruction as parsePreviewPayoutIfWinnerInstruction, index$1_parseRegisterEntryInstruction as parseRegisterEntryInstruction, index$1_predictionMigratorProgram as predictionMigratorProgram };
5087
5161
  }
5088
5162
 
5089
5163
  /**