@whetstone-research/doppler-sdk 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as _solana_kit from '@solana/kit';
2
2
  import { Address, ReadonlyUint8Array, Codec, Base58EncodedBytes, Base64EncodedBytes, TransactionSigner, AccountRole, AccountMeta, AccountSignerMeta, ProgramDerivedAddress, Instruction, InstructionWithData, InstructionWithAccounts, ReadonlyAccount, WritableAccount, ReadonlySignerAccount, FixedSizeEncoder, FixedSizeDecoder, FixedSizeCodec, WritableSignerAccount, Encoder, Decoder, Rpc, GetAccountInfoApi, EncodedAccount, Account, MaybeEncodedAccount, MaybeAccount, fetchEncodedAccount, FetchAccountConfig, fetchEncodedAccounts, FetchAccountsConfig, SolanaError, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, ClientWithRpc, GetMultipleAccountsApi, ClientWithPayer, ClientWithTransactionPlanning, ClientWithTransactionSending, OptionOrNullable, Option, TransactionMessage, TransactionMessageWithFeePayer } from '@solana/kit';
3
- 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$3, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, T as TransferAdminArgs, i as OracleConsultArgs, j as Observation, k as TradeDirection, l as SwapQuote, m as SwapQuoteExactOut, n as AddLiquidityQuote, o as RemoveLiquidityQuote, M as MarketCapValidationResult, p as MarketCapToCurveParamsInput, q as CurveParams, r as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, s as AddLiquidityEvent, t as AdminTransferredEvent, u as CollectFeesEvent, v as CollectProtocolFeesEvent, F as FeesUpdatedEvent, w as FetchOracleConfig, x as FetchPositionsConfig, H as HookErrorEvent, y as HookInvokedEvent, z as HookUpdatedEvent, B as OracleInitializedEvent, D as OracleUpdatedEvent, E as OracleWithAddress, J as PausedEvent, K as PoolInitializedEvent, L as PositionClosedEvent, N as PositionCreatedEvent, Q as PositionValue, U as PositionWithAddress, V as RemoveLiquidityEvent, W as SwapEvent, X as TwapResult, Y as UnpausedEvent, Z as VaultExcessWithdrawnEvent, _ as comparePoolAndOraclePrices, $ as consultTwap, a0 as fetchOracle, a1 as fetchOraclesBatch, a2 as fetchPoolPositions, a3 as fetchPosition, a4 as fetchPositionByParams, a5 as fetchPositionsBatch, a6 as fetchUserPositions, a7 as filterActivePositions, a8 as getOracleAddressFromPool, a9 as getOracleAge, aa as getOracleBufferStats, ab as getOracleDeviation, ac as getOracleForPool, ad as getOracleSpotPrices, ae as getPositionAddressFromParams, af as getPositionValue, ag as isOracleStale, ah as sortPositionsByShares } from '../oracle-D1wPWydZ.js';
3
+ import { A as AmmConfig, P as Pool, a as Position, O as OracleState$2, S as SwapExactInArgs, b as AddLiquidityArgs, R as RemoveLiquidityArgs, C as CollectFeesArgs, c as CollectProtocolFeesArgs, d as CreatePositionArgs, I as InitializeConfigArgs$2, e as InitializePoolArgs, f as InitializeOracleArgs$1, g as SetHookArgs, h as SetFeesArgs, T as TransferAdminArgs, i as OracleConsultArgs, j as Observation, k as TradeDirection, l as SwapQuote, m as SwapQuoteExactOut, n as AddLiquidityQuote, o as RemoveLiquidityQuote, M as MarketCapValidationResult, p as MarketCapToCurveParamsInput, q as CurveParams, r as CurveParamsToMarketCapInput, G as GetProgramAccountsRpc, s as AddLiquidityEvent, t as AdminTransferredEvent, u as CollectFeesEvent, v as CollectProtocolFeesEvent, F as FeesUpdatedEvent, w as FetchOracleConfig, x as FetchPositionsConfig, H as HookErrorEvent, y as HookInvokedEvent, z as HookUpdatedEvent, B as OracleInitializedEvent, D as OracleUpdatedEvent, E as OracleWithAddress, J as PausedEvent, K as PoolInitializedEvent, L as PositionClosedEvent, N as PositionCreatedEvent, Q as PositionValue, U as PositionWithAddress, V as RemoveLiquidityEvent, W as SwapEvent, X as TwapResult, Y as UnpausedEvent, Z as VaultExcessWithdrawnEvent, _ as comparePoolAndOraclePrices, $ as consultTwap, a0 as fetchOracle, a1 as fetchOraclesBatch, a2 as fetchPoolPositions, a3 as fetchPosition, a4 as fetchPositionByParams, a5 as fetchPositionsBatch, a6 as fetchUserPositions, a7 as filterActivePositions, a8 as getOracleAddressFromPool, a9 as getOracleAge, aa as getOracleBufferStats, ab as getOracleDeviation, ac as getOracleForPool, ad as getOracleSpotPrices, ae as getPositionAddressFromParams, af as getPositionValue, ag as isOracleStale, ah as sortPositionsByShares } from '../oracle-D1wPWydZ.js';
4
4
  import { SelfFetchFunctions, SelfPlanAndSendFunctions } from '@solana/program-client-core';
5
5
 
6
6
  /**
@@ -23,8 +23,10 @@ declare const MAX_HOOK_ALLOWLIST$1 = 32;
23
23
  declare const MAX_ORACLE_OBSERVATIONS = 64;
24
24
  /** Seed for AmmConfig PDA: ['config'] */
25
25
  declare const SEED_CONFIG$1 = "config";
26
- /** Seed prefix for Pool PDA: ['pool', token0_mint, token1_mint] */
26
+ /** Seed prefix for launch-migrated Pool PDA: ['pool', token0_mint, token1_mint] */
27
27
  declare const SEED_POOL = "pool";
28
+ /** Seed prefix for spot Pool PDA: ['spot_pool', token0_mint, token1_mint, swap_fee_bps] */
29
+ declare const SEED_SPOT_POOL = "spot_pool";
28
30
  /** Seed prefix for pool authority PDA: ['authority', pool] */
29
31
  declare const SEED_AUTHORITY = "authority";
30
32
  /** Seed prefix for Position PDA: ['position', pool, owner, position_id] */
@@ -128,7 +130,7 @@ declare const removeLiquidityArgsCodec: Codec<RemoveLiquidityArgs>;
128
130
  declare const collectFeesArgsCodec: Codec<CollectFeesArgs>;
129
131
  declare const collectProtocolFeesArgsCodec: Codec<CollectProtocolFeesArgs>;
130
132
  declare const createPositionArgsCodec: Codec<CreatePositionArgs>;
131
- declare const initializeConfigArgsCodec: Codec<InitializeConfigArgs$3>;
133
+ declare const initializeConfigArgsCodec: Codec<InitializeConfigArgs$2>;
132
134
  declare const initializePoolArgsCodec: Codec<InitializePoolArgs>;
133
135
  declare const initializeOracleArgsCodec: Codec<InitializeOracleArgs$1>;
134
136
  declare const setHookArgsCodec: Codec<SetHookArgs>;
@@ -148,7 +150,7 @@ declare function encodeCollectProtocolFeesArgs(args: CollectProtocolFeesArgs): U
148
150
  /** Encode CreatePosition args */
149
151
  declare function encodeCreatePositionArgs(args: CreatePositionArgs): Uint8Array;
150
152
  /** Encode InitializeConfig args */
151
- declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$3): Uint8Array;
153
+ declare function encodeInitializeConfigArgs(args: InitializeConfigArgs$2): Uint8Array;
152
154
  /** Encode InitializePool args */
153
155
  declare function encodeInitializePoolArgs(args: InitializePoolArgs): Uint8Array;
154
156
  /** Encode InitializeOracle args */
@@ -209,6 +211,13 @@ declare function getConfigAddress$1(programId?: Address): Promise<ProgramDerived
209
211
  * Note: Mints will be automatically sorted if not in canonical order.
210
212
  */
211
213
  declare function getPoolAddress(mint0: Address, mint1: Address, programId?: Address): Promise<ProgramDerivedAddress>;
214
+ /**
215
+ * Derive the spot Pool PDA address for a token pair and immutable fee tier.
216
+ * Seeds: ['spot_pool', token0_mint, token1_mint, swap_fee_bps_le]
217
+ *
218
+ * Note: Mints will be automatically sorted if not in canonical order.
219
+ */
220
+ declare function getSpotPoolAddress(mint0: Address, mint1: Address, swapFeeBps: number, programId?: Address): Promise<ProgramDerivedAddress>;
212
221
  /**
213
222
  * Derive the Pool authority PDA (vault owner)
214
223
  * Seeds: ['authority', pool]
@@ -1056,16 +1065,16 @@ declare function parseCreatePositionInstruction<TProgram extends string, TAccoun
1056
1065
  * @see https://github.com/codama-idl/codama
1057
1066
  */
1058
1067
 
1059
- declare const INITIALIZE_CONFIG_DISCRIMINATOR$2: Uint8Array<ArrayBuffer>;
1060
- declare function getInitializeConfigDiscriminatorBytes$2(): ReadonlyUint8Array<ArrayBuffer>;
1061
- type InitializeConfigInstruction$2<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1068
+ declare const INITIALIZE_CONFIG_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
1069
+ declare function getInitializeConfigDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
1070
+ type InitializeConfigInstruction$1<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1062
1071
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
1063
1072
  TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
1064
1073
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1065
1074
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1066
1075
  ...TRemainingAccounts
1067
1076
  ]>;
1068
- type InitializeConfigInstructionData$2 = {
1077
+ type InitializeConfigInstructionData$1 = {
1069
1078
  discriminator: ReadonlyUint8Array;
1070
1079
  admin: Address;
1071
1080
  maxSwapFeeBps: number;
@@ -1074,7 +1083,7 @@ type InitializeConfigInstructionData$2 = {
1074
1083
  protocolFeeBps: number;
1075
1084
  hookAllowlist: Array<Address>;
1076
1085
  };
1077
- type InitializeConfigInstructionDataArgs$2 = {
1086
+ type InitializeConfigInstructionDataArgs$1 = {
1078
1087
  admin: Address;
1079
1088
  maxSwapFeeBps: number;
1080
1089
  maxFeeSplitBps: number;
@@ -1082,40 +1091,40 @@ type InitializeConfigInstructionDataArgs$2 = {
1082
1091
  protocolFeeBps: number;
1083
1092
  hookAllowlist: Array<Address>;
1084
1093
  };
1085
- declare function getInitializeConfigInstructionDataEncoder$2(): Encoder<InitializeConfigInstructionDataArgs$2>;
1086
- declare function getInitializeConfigInstructionDataDecoder$2(): Decoder<InitializeConfigInstructionData$2>;
1087
- declare function getInitializeConfigInstructionDataCodec$2(): Codec<InitializeConfigInstructionDataArgs$2, InitializeConfigInstructionData$2>;
1088
- type InitializeConfigAsyncInput$2<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1094
+ declare function getInitializeConfigInstructionDataEncoder$1(): Encoder<InitializeConfigInstructionDataArgs$1>;
1095
+ declare function getInitializeConfigInstructionDataDecoder$1(): Decoder<InitializeConfigInstructionData$1>;
1096
+ declare function getInitializeConfigInstructionDataCodec$1(): Codec<InitializeConfigInstructionDataArgs$1, InitializeConfigInstructionData$1>;
1097
+ type InitializeConfigAsyncInput$1<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1089
1098
  config?: Address<TAccountConfig>;
1090
1099
  programData: Address<TAccountProgramData>;
1091
1100
  payer: TransactionSigner<TAccountPayer>;
1092
1101
  systemProgram?: Address<TAccountSystemProgram>;
1093
- admin: InitializeConfigInstructionDataArgs$2['admin'];
1094
- maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps'];
1095
- maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps'];
1096
- protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled'];
1097
- protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps'];
1098
- hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist'];
1099
- };
1100
- declare function getInitializeConfigInstructionAsync$2<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput$2<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1102
+ admin: InitializeConfigInstructionDataArgs$1['admin'];
1103
+ maxSwapFeeBps: InitializeConfigInstructionDataArgs$1['maxSwapFeeBps'];
1104
+ maxFeeSplitBps: InitializeConfigInstructionDataArgs$1['maxFeeSplitBps'];
1105
+ protocolFeeEnabled: InitializeConfigInstructionDataArgs$1['protocolFeeEnabled'];
1106
+ protocolFeeBps: InitializeConfigInstructionDataArgs$1['protocolFeeBps'];
1107
+ hookAllowlist: InitializeConfigInstructionDataArgs$1['hookAllowlist'];
1108
+ };
1109
+ declare function getInitializeConfigInstructionAsync$1<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput$1<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1101
1110
  programAddress?: TProgramAddress;
1102
- }): Promise<InitializeConfigInstruction$2<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>>;
1103
- type InitializeConfigInput$2<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1111
+ }): Promise<InitializeConfigInstruction$1<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>>;
1112
+ type InitializeConfigInput$1<TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
1104
1113
  config: Address<TAccountConfig>;
1105
1114
  programData: Address<TAccountProgramData>;
1106
1115
  payer: TransactionSigner<TAccountPayer>;
1107
1116
  systemProgram?: Address<TAccountSystemProgram>;
1108
- admin: InitializeConfigInstructionDataArgs$2['admin'];
1109
- maxSwapFeeBps: InitializeConfigInstructionDataArgs$2['maxSwapFeeBps'];
1110
- maxFeeSplitBps: InitializeConfigInstructionDataArgs$2['maxFeeSplitBps'];
1111
- protocolFeeEnabled: InitializeConfigInstructionDataArgs$2['protocolFeeEnabled'];
1112
- protocolFeeBps: InitializeConfigInstructionDataArgs$2['protocolFeeBps'];
1113
- hookAllowlist: InitializeConfigInstructionDataArgs$2['hookAllowlist'];
1114
- };
1115
- declare function getInitializeConfigInstruction$2<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigInput$2<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1117
+ admin: InitializeConfigInstructionDataArgs$1['admin'];
1118
+ maxSwapFeeBps: InitializeConfigInstructionDataArgs$1['maxSwapFeeBps'];
1119
+ maxFeeSplitBps: InitializeConfigInstructionDataArgs$1['maxFeeSplitBps'];
1120
+ protocolFeeEnabled: InitializeConfigInstructionDataArgs$1['protocolFeeEnabled'];
1121
+ protocolFeeBps: InitializeConfigInstructionDataArgs$1['protocolFeeBps'];
1122
+ hookAllowlist: InitializeConfigInstructionDataArgs$1['hookAllowlist'];
1123
+ };
1124
+ declare function getInitializeConfigInstruction$1<TAccountConfig extends string, TAccountProgramData extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeConfigInput$1<TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>, config?: {
1116
1125
  programAddress?: TProgramAddress;
1117
- }): InitializeConfigInstruction$2<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
1118
- type ParsedInitializeConfigInstruction$2<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1126
+ }): InitializeConfigInstruction$1<TProgramAddress, TAccountConfig, TAccountProgramData, TAccountPayer, TAccountSystemProgram>;
1127
+ type ParsedInitializeConfigInstruction$1<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1119
1128
  programAddress: Address<TProgram>;
1120
1129
  accounts: {
1121
1130
  config: TAccountMetas[0];
@@ -1123,9 +1132,9 @@ type ParsedInitializeConfigInstruction$2<TProgram extends string = typeof CPMM_P
1123
1132
  payer: TAccountMetas[2];
1124
1133
  systemProgram: TAccountMetas[3];
1125
1134
  };
1126
- data: InitializeConfigInstructionData$2;
1135
+ data: InitializeConfigInstructionData$1;
1127
1136
  };
1128
- declare function parseInitializeConfigInstruction$2<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction$2<TProgram, TAccountMetas>;
1137
+ declare function parseInitializeConfigInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction$1<TProgram, TAccountMetas>;
1129
1138
 
1130
1139
  /**
1131
1140
  * This code was AUTOGENERATED using the Codama library.
@@ -1340,6 +1349,117 @@ type ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGR
1340
1349
  };
1341
1350
  declare function parseInitializePoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
1342
1351
 
1352
+ /**
1353
+ * This code was AUTOGENERATED using the Codama library.
1354
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1355
+ * to add features, then rerun Codama to update it.
1356
+ *
1357
+ * @see https://github.com/codama-idl/codama
1358
+ */
1359
+
1360
+ declare const INITIALIZE_SPOT_POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
1361
+ declare function getInitializeSpotPoolDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
1362
+ type InitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
1363
+ TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
1364
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
1365
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
1366
+ TAccountProtocolFeeOwner extends string ? ReadonlyAccount<TAccountProtocolFeeOwner> : TAccountProtocolFeeOwner,
1367
+ TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
1368
+ TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0,
1369
+ TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1,
1370
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
1371
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
1372
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
1373
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
1374
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
1375
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
1376
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
1377
+ TAccountMigrationAuthority extends string ? ReadonlySignerAccount<TAccountMigrationAuthority> & AccountSignerMeta<TAccountMigrationAuthority> : TAccountMigrationAuthority,
1378
+ ...TRemainingAccounts
1379
+ ]>;
1380
+ type InitializeSpotPoolInstructionData = {
1381
+ discriminator: ReadonlyUint8Array;
1382
+ mintA: Address;
1383
+ mintB: Address;
1384
+ swapFeeBps: number;
1385
+ };
1386
+ type InitializeSpotPoolInstructionDataArgs = {
1387
+ mintA: Address;
1388
+ mintB: Address;
1389
+ swapFeeBps: number;
1390
+ };
1391
+ declare function getInitializeSpotPoolInstructionDataEncoder(): FixedSizeEncoder<InitializeSpotPoolInstructionDataArgs>;
1392
+ declare function getInitializeSpotPoolInstructionDataDecoder(): FixedSizeDecoder<InitializeSpotPoolInstructionData>;
1393
+ declare function getInitializeSpotPoolInstructionDataCodec(): FixedSizeCodec<InitializeSpotPoolInstructionDataArgs, InitializeSpotPoolInstructionData>;
1394
+ type InitializeSpotPoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = {
1395
+ config: Address<TAccountConfig>;
1396
+ pool: Address<TAccountPool>;
1397
+ protocolFeePosition?: Address<TAccountProtocolFeePosition>;
1398
+ protocolFeeOwner?: Address<TAccountProtocolFeeOwner>;
1399
+ authority?: Address<TAccountAuthority>;
1400
+ vault0?: Address<TAccountVault0>;
1401
+ vault1?: Address<TAccountVault1>;
1402
+ token0Mint: Address<TAccountToken0Mint>;
1403
+ token1Mint: Address<TAccountToken1Mint>;
1404
+ payer: TransactionSigner<TAccountPayer>;
1405
+ token0Program: Address<TAccountToken0Program>;
1406
+ token1Program: Address<TAccountToken1Program>;
1407
+ systemProgram?: Address<TAccountSystemProgram>;
1408
+ rent?: Address<TAccountRent>;
1409
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1410
+ mintA: InitializeSpotPoolInstructionDataArgs['mintA'];
1411
+ mintB: InitializeSpotPoolInstructionDataArgs['mintB'];
1412
+ swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps'];
1413
+ };
1414
+ declare function getInitializeSpotPoolInstructionAsync<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountProtocolFeeOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1415
+ programAddress?: TProgramAddress;
1416
+ }): Promise<InitializeSpotPoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>>;
1417
+ type InitializeSpotPoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = {
1418
+ config: Address<TAccountConfig>;
1419
+ pool: Address<TAccountPool>;
1420
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
1421
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
1422
+ authority: Address<TAccountAuthority>;
1423
+ vault0: Address<TAccountVault0>;
1424
+ vault1: Address<TAccountVault1>;
1425
+ token0Mint: Address<TAccountToken0Mint>;
1426
+ token1Mint: Address<TAccountToken1Mint>;
1427
+ payer: TransactionSigner<TAccountPayer>;
1428
+ token0Program: Address<TAccountToken0Program>;
1429
+ token1Program: Address<TAccountToken1Program>;
1430
+ systemProgram?: Address<TAccountSystemProgram>;
1431
+ rent?: Address<TAccountRent>;
1432
+ migrationAuthority: TransactionSigner<TAccountMigrationAuthority>;
1433
+ mintA: InitializeSpotPoolInstructionDataArgs['mintA'];
1434
+ mintB: InitializeSpotPoolInstructionDataArgs['mintB'];
1435
+ swapFeeBps: InitializeSpotPoolInstructionDataArgs['swapFeeBps'];
1436
+ };
1437
+ declare function getInitializeSpotPoolInstruction<TAccountConfig extends string, TAccountPool extends string, TAccountProtocolFeePosition extends string, TAccountProtocolFeeOwner extends string, TAccountAuthority extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPayer extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TAccountMigrationAuthority extends string, TProgramAddress extends Address = typeof CPMM_PROGRAM_ADDRESS>(input: InitializeSpotPoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>, config?: {
1438
+ programAddress?: TProgramAddress;
1439
+ }): InitializeSpotPoolInstruction<TProgramAddress, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
1440
+ type ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1441
+ programAddress: Address<TProgram>;
1442
+ accounts: {
1443
+ config: TAccountMetas[0];
1444
+ pool: TAccountMetas[1];
1445
+ protocolFeePosition: TAccountMetas[2];
1446
+ protocolFeeOwner: TAccountMetas[3];
1447
+ authority: TAccountMetas[4];
1448
+ vault0: TAccountMetas[5];
1449
+ vault1: TAccountMetas[6];
1450
+ token0Mint: TAccountMetas[7];
1451
+ token1Mint: TAccountMetas[8];
1452
+ payer: TAccountMetas[9];
1453
+ token0Program: TAccountMetas[10];
1454
+ token1Program: TAccountMetas[11];
1455
+ systemProgram: TAccountMetas[12];
1456
+ rent: TAccountMetas[13];
1457
+ migrationAuthority: TAccountMetas[14];
1458
+ };
1459
+ data: InitializeSpotPoolInstructionData;
1460
+ };
1461
+ declare function parseInitializeSpotPoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
1462
+
1343
1463
  /**
1344
1464
  * This code was AUTOGENERATED using the Codama library.
1345
1465
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -2350,459 +2470,475 @@ declare function fetchConfigWithAddress(rpc: Rpc<GetAccountInfoApi>, programId?:
2350
2470
  account: AmmConfig;
2351
2471
  } | null>;
2352
2472
 
2353
- declare const index$6_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
2354
- declare const index$6_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
2355
- declare const index$6_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
2356
- type index$6_AccountMetaRole = AccountMetaRole;
2357
- declare const index$6_AddLiquidityArgs: typeof AddLiquidityArgs;
2358
- type index$6_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>;
2359
- declare const index$6_AddLiquidityEvent: typeof AddLiquidityEvent;
2360
- type index$6_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>;
2361
- type index$6_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>;
2362
- type index$6_AddLiquidityInstructionData = AddLiquidityInstructionData;
2363
- type index$6_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
2364
- declare const index$6_AddLiquidityQuote: typeof AddLiquidityQuote;
2365
- type index$6_AddressOrTransactionSigner = AddressOrTransactionSigner;
2366
- declare const index$6_AdminTransferredEvent: typeof AdminTransferredEvent;
2367
- declare const index$6_AmmConfig: typeof AmmConfig;
2368
- declare const index$6_BPS_DENOM: typeof BPS_DENOM;
2369
- declare const index$6_CLOSE_POSITION_DISCRIMINATOR: typeof CLOSE_POSITION_DISCRIMINATOR;
2370
- declare const index$6_COLLECT_FEES_DISCRIMINATOR: typeof COLLECT_FEES_DISCRIMINATOR;
2371
- declare const index$6_COLLECT_PROTOCOL_FEES_DISCRIMINATOR: typeof COLLECT_PROTOCOL_FEES_DISCRIMINATOR;
2372
- declare const index$6_CPMM_ERROR_MESSAGES: typeof CPMM_ERROR_MESSAGES;
2373
- declare const index$6_CPMM_PROGRAM_ID: typeof CPMM_PROGRAM_ID;
2374
- declare const index$6_CREATE_POSITION_DISCRIMINATOR: typeof CREATE_POSITION_DISCRIMINATOR;
2375
- type index$6_ClosePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountRentRecipient extends string = string> = ClosePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>;
2376
- type index$6_ClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentRecipient extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClosePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient, TRemainingAccounts>;
2377
- type index$6_ClosePositionInstructionData = ClosePositionInstructionData;
2378
- type index$6_ClosePositionInstructionDataArgs = ClosePositionInstructionDataArgs;
2379
- declare const index$6_CollectFeesArgs: typeof CollectFeesArgs;
2380
- type index$6_CollectFeesAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
2381
- declare const index$6_CollectFeesEvent: typeof CollectFeesEvent;
2382
- type index$6_CollectFeesInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
2383
- type index$6_CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectFeesInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2384
- type index$6_CollectFeesInstructionData = CollectFeesInstructionData;
2385
- type index$6_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs;
2386
- declare const index$6_CollectProtocolFeesArgs: typeof CollectProtocolFeesArgs;
2387
- type index$6_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>;
2388
- declare const index$6_CollectProtocolFeesEvent: typeof CollectProtocolFeesEvent;
2389
- type index$6_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>;
2390
- type index$6_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>;
2391
- type index$6_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData;
2392
- type index$6_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs;
2393
- type index$6_CpmmError = CpmmError;
2394
- declare const index$6_CpmmError: typeof CpmmError;
2395
- type index$6_CpmmErrorCode = CpmmErrorCode;
2396
- declare const index$6_CpmmErrorCode: typeof CpmmErrorCode;
2397
- declare const index$6_CreatePositionArgs: typeof CreatePositionArgs;
2398
- type index$6_CreatePositionAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2399
- type index$6_CreatePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2400
- type index$6_CreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CreatePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram, TRemainingAccounts>;
2401
- type index$6_CreatePositionInstructionData = CreatePositionInstructionData;
2402
- type index$6_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs;
2403
- declare const index$6_CurveParams: typeof CurveParams;
2404
- declare const index$6_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput;
2405
- type index$6_EncodedProgramAccount = EncodedProgramAccount;
2406
- declare const index$6_FeesUpdatedEvent: typeof FeesUpdatedEvent;
2407
- declare const index$6_FetchOracleConfig: typeof FetchOracleConfig;
2408
- type index$6_FetchPoolsConfig = FetchPoolsConfig;
2409
- declare const index$6_FetchPositionsConfig: typeof FetchPositionsConfig;
2410
- declare const index$6_HF_AFTER_ADD_LIQ: typeof HF_AFTER_ADD_LIQ;
2411
- declare const index$6_HF_AFTER_REMOVE_LIQ: typeof HF_AFTER_REMOVE_LIQ;
2412
- declare const index$6_HF_BEFORE_ADD_LIQ: typeof HF_BEFORE_ADD_LIQ;
2413
- declare const index$6_HF_BEFORE_REMOVE_LIQ: typeof HF_BEFORE_REMOVE_LIQ;
2414
- declare const index$6_HF_REQUIRE_ORACLE: typeof HF_REQUIRE_ORACLE;
2415
- declare const index$6_HookErrorEvent: typeof HookErrorEvent;
2416
- declare const index$6_HookInvokedEvent: typeof HookInvokedEvent;
2417
- declare const index$6_HookUpdatedEvent: typeof HookUpdatedEvent;
2418
- declare const index$6_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
2419
- declare const index$6_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
2420
- type index$6_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>;
2421
- declare const index$6_InitializePoolArgs: typeof InitializePoolArgs;
2422
- type index$6_InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2423
- type index$6_InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2424
- type index$6_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2425
- type index$6_InitializePoolInstructionData = InitializePoolInstructionData;
2426
- type index$6_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
2427
- declare const index$6_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
2428
- declare const index$6_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
2429
- declare const index$6_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
2430
- declare const index$6_MarketCapValidationResult: typeof MarketCapValidationResult;
2431
- declare const index$6_ORACLE_CONSULT_DISCRIMINATOR: typeof ORACLE_CONSULT_DISCRIMINATOR;
2432
- declare const index$6_ORACLE_UPDATE_DISCRIMINATOR: typeof ORACLE_UPDATE_DISCRIMINATOR;
2433
- declare const index$6_Observation: typeof Observation;
2434
- declare const index$6_OracleConsultArgs: typeof OracleConsultArgs;
2435
- type index$6_OracleConsultAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultAsyncInput<TAccountPool, TAccountOracle>;
2436
- type index$6_OracleConsultInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultInput<TAccountPool, TAccountOracle>;
2437
- type index$6_OracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleConsultInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2438
- type index$6_OracleConsultInstructionData = OracleConsultInstructionData;
2439
- type index$6_OracleConsultInstructionDataArgs = OracleConsultInstructionDataArgs;
2440
- declare const index$6_OracleInitializedEvent: typeof OracleInitializedEvent;
2441
- type index$6_OracleUpdateAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateAsyncInput<TAccountPool, TAccountOracle>;
2442
- type index$6_OracleUpdateInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateInput<TAccountPool, TAccountOracle>;
2443
- type index$6_OracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleUpdateInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2444
- type index$6_OracleUpdateInstructionData = OracleUpdateInstructionData;
2445
- type index$6_OracleUpdateInstructionDataArgs = OracleUpdateInstructionDataArgs;
2446
- declare const index$6_OracleUpdatedEvent: typeof OracleUpdatedEvent;
2447
- declare const index$6_OracleWithAddress: typeof OracleWithAddress;
2448
- declare const index$6_PAUSE_DISCRIMINATOR: typeof PAUSE_DISCRIMINATOR;
2449
- declare const index$6_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: typeof PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR;
2450
- type index$6_ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddLiquidityInstruction<TProgram, TAccountMetas>;
2451
- type index$6_ParsedClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedClosePositionInstruction<TProgram, TAccountMetas>;
2452
- type index$6_ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectFeesInstruction<TProgram, TAccountMetas>;
2453
- type index$6_ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
2454
- type index$6_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
2455
- type index$6_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
2456
- type index$6_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
2457
- type index$6_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
2458
- type index$6_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
2459
- type index$6_ParsedPreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPreviewSwapExactInInstruction<TProgram, TAccountMetas>;
2460
- type index$6_ParsedRedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRedeemProtocolSharesInstruction<TProgram, TAccountMetas>;
2461
- type index$6_ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
2462
- type index$6_ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetFeesInstruction<TProgram, TAccountMetas>;
2463
- type index$6_ParsedSetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetHookInstruction<TProgram, TAccountMetas>;
2464
- type index$6_ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
2465
- type index$6_ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
2466
- type index$6_ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUnpauseInstruction<TProgram, TAccountMetas>;
2467
- type index$6_ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2468
- type index$6_ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2469
- type index$6_PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = PauseInput<TAccountConfig, TAccountAdmin>;
2470
- type index$6_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>;
2471
- type index$6_PauseInstructionData = PauseInstructionData;
2472
- type index$6_PauseInstructionDataArgs = PauseInstructionDataArgs;
2473
- declare const index$6_PausedEvent: typeof PausedEvent;
2474
- declare const index$6_Pool: typeof Pool;
2475
- declare const index$6_PoolInitializedEvent: typeof PoolInitializedEvent;
2476
- type index$6_PoolWithAddress = PoolWithAddress;
2477
- declare const index$6_Position: typeof Position;
2478
- declare const index$6_PositionClosedEvent: typeof PositionClosedEvent;
2479
- declare const index$6_PositionCreatedEvent: typeof PositionCreatedEvent;
2480
- declare const index$6_PositionValue: typeof PositionValue;
2481
- declare const index$6_PositionWithAddress: typeof PositionWithAddress;
2482
- type index$6_PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string> = PreviewSwapExactInInput<TAccountConfig, TAccountPool>;
2483
- type index$6_PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PreviewSwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TRemainingAccounts>;
2484
- type index$6_PreviewSwapExactInInstructionData = PreviewSwapExactInInstructionData;
2485
- type index$6_PreviewSwapExactInInstructionDataArgs = PreviewSwapExactInInstructionDataArgs;
2486
- declare const index$6_Q64_ONE: typeof Q64_ONE;
2487
- declare const index$6_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR: typeof REDEEM_PROTOCOL_SHARES_DISCRIMINATOR;
2488
- declare const index$6_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR;
2489
- type index$6_RedeemProtocolSharesAsyncInput<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> = RedeemProtocolSharesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2490
- type index$6_RedeemProtocolSharesInput<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> = RedeemProtocolSharesInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2491
- type index$6_RedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RedeemProtocolSharesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2492
- type index$6_RedeemProtocolSharesInstructionData = RedeemProtocolSharesInstructionData;
2493
- type index$6_RedeemProtocolSharesInstructionDataArgs = RedeemProtocolSharesInstructionDataArgs;
2494
- type index$6_RemainingAccount = RemainingAccount;
2495
- declare const index$6_RemoveLiquidityArgs: typeof RemoveLiquidityArgs;
2496
- type index$6_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>;
2497
- declare const index$6_RemoveLiquidityEvent: typeof RemoveLiquidityEvent;
2498
- type index$6_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>;
2499
- type index$6_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>;
2500
- type index$6_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData;
2501
- type index$6_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs;
2502
- declare const index$6_RemoveLiquidityQuote: typeof RemoveLiquidityQuote;
2503
- declare const index$6_SEED_AUTHORITY: typeof SEED_AUTHORITY;
2504
- declare const index$6_SEED_ORACLE: typeof SEED_ORACLE;
2505
- declare const index$6_SEED_POOL: typeof SEED_POOL;
2506
- declare const index$6_SEED_POSITION: typeof SEED_POSITION;
2507
- declare const index$6_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER;
2508
- declare const index$6_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2509
- declare const index$6_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
2510
- declare const index$6_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
2511
- declare const index$6_SetFeesArgs: typeof SetFeesArgs;
2512
- type index$6_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2513
- type index$6_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>;
2514
- type index$6_SetFeesInstructionData = SetFeesInstructionData;
2515
- type index$6_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs;
2516
- declare const index$6_SetHookArgs: typeof SetHookArgs;
2517
- type index$6_SetHookInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetHookInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2518
- type index$6_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>;
2519
- type index$6_SetHookInstructionData = SetHookInstructionData;
2520
- type index$6_SetHookInstructionDataArgs = SetHookInstructionDataArgs;
2521
- declare const index$6_SwapEvent: typeof SwapEvent;
2522
- declare const index$6_SwapExactInArgs: typeof SwapExactInArgs;
2523
- type index$6_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>;
2524
- type index$6_SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2525
- type index$6_SwapExactInInstructionData = SwapExactInInstructionData;
2526
- type index$6_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs;
2527
- declare const index$6_SwapQuote: typeof SwapQuote;
2528
- declare const index$6_SwapQuoteExactOut: typeof SwapQuoteExactOut;
2529
- declare const index$6_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID;
2530
- declare const index$6_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR;
2531
- declare const index$6_TradeDirection: typeof TradeDirection;
2532
- declare const index$6_TransferAdminArgs: typeof TransferAdminArgs;
2533
- type index$6_TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = TransferAdminInput<TAccountConfig, TAccountAdmin>;
2534
- type index$6_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>;
2535
- type index$6_TransferAdminInstructionData = TransferAdminInstructionData;
2536
- type index$6_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs;
2537
- declare const index$6_TwapResult: typeof TwapResult;
2538
- declare const index$6_UNPAUSE_DISCRIMINATOR: typeof UNPAUSE_DISCRIMINATOR;
2539
- declare const index$6_UPDATE_CONFIG_DISCRIMINATOR: typeof UPDATE_CONFIG_DISCRIMINATOR;
2540
- type index$6_UnpauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UnpauseInput<TAccountConfig, TAccountAdmin>;
2541
- type index$6_UnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UnpauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2542
- type index$6_UnpauseInstructionData = UnpauseInstructionData;
2543
- type index$6_UnpauseInstructionDataArgs = UnpauseInstructionDataArgs;
2544
- declare const index$6_UnpausedEvent: typeof UnpausedEvent;
2545
- type index$6_UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UpdateConfigInput<TAccountConfig, TAccountAdmin>;
2546
- type index$6_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>;
2547
- type index$6_UpdateConfigInstructionData = UpdateConfigInstructionData;
2548
- type index$6_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs;
2549
- declare const index$6_VaultExcessWithdrawnEvent: typeof VaultExcessWithdrawnEvent;
2550
- declare const index$6_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: typeof WITHDRAW_VAULT_EXCESS_DISCRIMINATOR;
2551
- type index$6_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>;
2552
- type index$6_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>;
2553
- type index$6_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>;
2554
- type index$6_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData;
2555
- type index$6_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs;
2556
- declare const index$6_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
2557
- declare const index$6_addressToBase58EncodedBytes: typeof addressToBase58EncodedBytes;
2558
- declare const index$6_ammConfigDataCodec: typeof ammConfigDataCodec;
2559
- declare const index$6_areMintsOrdered: typeof areMintsOrdered;
2560
- declare const index$6_base64ToBytes: typeof base64ToBytes;
2561
- declare const index$6_bytesToBase64: typeof bytesToBase64;
2562
- declare const index$6_bytesToBase64EncodedBytes: typeof bytesToBase64EncodedBytes;
2563
- declare const index$6_calculateAccruedFees: typeof calculateAccruedFees;
2564
- declare const index$6_calculateTwap: typeof calculateTwap;
2565
- declare const index$6_calculateTwapNumber: typeof calculateTwapNumber;
2566
- declare const index$6_ceilDiv: typeof ceilDiv;
2567
- declare const index$6_collectFeesArgsCodec: typeof collectFeesArgsCodec;
2568
- declare const index$6_collectProtocolFeesArgsCodec: typeof collectProtocolFeesArgsCodec;
2569
- declare const index$6_comparePoolAndOraclePrices: typeof comparePoolAndOraclePrices;
2570
- declare const index$6_computePrice0Q64: typeof computePrice0Q64;
2571
- declare const index$6_computePrice1Q64: typeof computePrice1Q64;
2572
- declare const index$6_consultTwap: typeof consultTwap;
2573
- declare const index$6_createAccountMeta: typeof createAccountMeta;
2574
- declare const index$6_createPositionArgsCodec: typeof createPositionArgsCodec;
2575
- declare const index$6_createReadonlyRemainingAccountMeta: typeof createReadonlyRemainingAccountMeta;
2576
- declare const index$6_createSwapInstruction: typeof createSwapInstruction;
2577
- declare const index$6_curveParamsToMarketCap: typeof curveParamsToMarketCap;
2578
- declare const index$6_decodeAmmConfig: typeof decodeAmmConfig;
2579
- declare const index$6_decodePool: typeof decodePool;
2580
- declare const index$6_decodePosition: typeof decodePosition;
2581
- declare const index$6_encodeAddLiquidityArgs: typeof encodeAddLiquidityArgs;
2582
- declare const index$6_encodeCollectFeesArgs: typeof encodeCollectFeesArgs;
2583
- declare const index$6_encodeCollectProtocolFeesArgs: typeof encodeCollectProtocolFeesArgs;
2584
- declare const index$6_encodeCreatePositionArgs: typeof encodeCreatePositionArgs;
2585
- declare const index$6_encodeInitializeConfigArgs: typeof encodeInitializeConfigArgs;
2586
- declare const index$6_encodeInitializeOracleArgs: typeof encodeInitializeOracleArgs;
2587
- declare const index$6_encodeInitializePoolArgs: typeof encodeInitializePoolArgs;
2588
- declare const index$6_encodeInstructionData: typeof encodeInstructionData;
2589
- declare const index$6_encodeOracleConsultArgs: typeof encodeOracleConsultArgs;
2590
- declare const index$6_encodeRemoveLiquidityArgs: typeof encodeRemoveLiquidityArgs;
2591
- declare const index$6_encodeSetFeesArgs: typeof encodeSetFeesArgs;
2592
- declare const index$6_encodeSetHookArgs: typeof encodeSetHookArgs;
2593
- declare const index$6_encodeSwapExactInArgs: typeof encodeSwapExactInArgs;
2594
- declare const index$6_encodeTransferAdminArgs: typeof encodeTransferAdminArgs;
2595
- declare const index$6_fetchAllPools: typeof fetchAllPools;
2596
- declare const index$6_fetchConfig: typeof fetchConfig;
2597
- declare const index$6_fetchConfigWithAddress: typeof fetchConfigWithAddress;
2598
- declare const index$6_fetchOracle: typeof fetchOracle;
2599
- declare const index$6_fetchOraclesBatch: typeof fetchOraclesBatch;
2600
- declare const index$6_fetchPool: typeof fetchPool;
2601
- declare const index$6_fetchPoolPositions: typeof fetchPoolPositions;
2602
- declare const index$6_fetchPoolsBatch: typeof fetchPoolsBatch;
2603
- declare const index$6_fetchPosition: typeof fetchPosition;
2604
- declare const index$6_fetchPositionByParams: typeof fetchPositionByParams;
2605
- declare const index$6_fetchPositionsBatch: typeof fetchPositionsBatch;
2606
- declare const index$6_fetchUserPositions: typeof fetchUserPositions;
2607
- declare const index$6_filterActivePositions: typeof filterActivePositions;
2608
- declare const index$6_filterPoolsByMint: typeof filterPoolsByMint;
2609
- declare const index$6_getAddLiquidityDiscriminatorBytes: typeof getAddLiquidityDiscriminatorBytes;
2610
- declare const index$6_getAddLiquidityInstruction: typeof getAddLiquidityInstruction;
2611
- declare const index$6_getAddLiquidityInstructionAsync: typeof getAddLiquidityInstructionAsync;
2612
- declare const index$6_getAddLiquidityInstructionDataCodec: typeof getAddLiquidityInstructionDataCodec;
2613
- declare const index$6_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder;
2614
- declare const index$6_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder;
2615
- declare const index$6_getAddLiquidityQuote: typeof getAddLiquidityQuote;
2616
- declare const index$6_getAddressFromAddressOrSigner: typeof getAddressFromAddressOrSigner;
2617
- declare const index$6_getAddressFromRemainingAccount: typeof getAddressFromRemainingAccount;
2618
- declare const index$6_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes;
2619
- declare const index$6_getClosePositionInstruction: typeof getClosePositionInstruction;
2620
- declare const index$6_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec;
2621
- declare const index$6_getClosePositionInstructionDataDecoder: typeof getClosePositionInstructionDataDecoder;
2622
- declare const index$6_getClosePositionInstructionDataEncoder: typeof getClosePositionInstructionDataEncoder;
2623
- declare const index$6_getCollectFeesDiscriminatorBytes: typeof getCollectFeesDiscriminatorBytes;
2624
- declare const index$6_getCollectFeesInstruction: typeof getCollectFeesInstruction;
2625
- declare const index$6_getCollectFeesInstructionAsync: typeof getCollectFeesInstructionAsync;
2626
- declare const index$6_getCollectFeesInstructionDataCodec: typeof getCollectFeesInstructionDataCodec;
2627
- declare const index$6_getCollectFeesInstructionDataDecoder: typeof getCollectFeesInstructionDataDecoder;
2628
- declare const index$6_getCollectFeesInstructionDataEncoder: typeof getCollectFeesInstructionDataEncoder;
2629
- declare const index$6_getCollectProtocolFeesDiscriminatorBytes: typeof getCollectProtocolFeesDiscriminatorBytes;
2630
- declare const index$6_getCollectProtocolFeesInstruction: typeof getCollectProtocolFeesInstruction;
2631
- declare const index$6_getCollectProtocolFeesInstructionAsync: typeof getCollectProtocolFeesInstructionAsync;
2632
- declare const index$6_getCollectProtocolFeesInstructionDataCodec: typeof getCollectProtocolFeesInstructionDataCodec;
2633
- declare const index$6_getCollectProtocolFeesInstructionDataDecoder: typeof getCollectProtocolFeesInstructionDataDecoder;
2634
- declare const index$6_getCollectProtocolFeesInstructionDataEncoder: typeof getCollectProtocolFeesInstructionDataEncoder;
2635
- declare const index$6_getCreatePositionDiscriminatorBytes: typeof getCreatePositionDiscriminatorBytes;
2636
- declare const index$6_getCreatePositionInstruction: typeof getCreatePositionInstruction;
2637
- declare const index$6_getCreatePositionInstructionAsync: typeof getCreatePositionInstructionAsync;
2638
- declare const index$6_getCreatePositionInstructionDataCodec: typeof getCreatePositionInstructionDataCodec;
2639
- declare const index$6_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder;
2640
- declare const index$6_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder;
2641
- declare const index$6_getErrorMessage: typeof getErrorMessage;
2642
- declare const index$6_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync;
2643
- declare const index$6_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes;
2644
- declare const index$6_getInitializePoolInstruction: typeof getInitializePoolInstruction;
2645
- declare const index$6_getInitializePoolInstructionAsync: typeof getInitializePoolInstructionAsync;
2646
- declare const index$6_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec;
2647
- declare const index$6_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder;
2648
- declare const index$6_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder;
2649
- declare const index$6_getK: typeof getK;
2650
- declare const index$6_getLiquidityAddresses: typeof getLiquidityAddresses;
2651
- declare const index$6_getMetadataAddress: typeof getMetadataAddress;
2652
- declare const index$6_getOracleAddress: typeof getOracleAddress;
2653
- declare const index$6_getOracleAddressFromPool: typeof getOracleAddressFromPool;
2654
- declare const index$6_getOracleAge: typeof getOracleAge;
2655
- declare const index$6_getOracleBufferStats: typeof getOracleBufferStats;
2656
- declare const index$6_getOracleConsultDiscriminatorBytes: typeof getOracleConsultDiscriminatorBytes;
2657
- declare const index$6_getOracleConsultInstruction: typeof getOracleConsultInstruction;
2658
- declare const index$6_getOracleConsultInstructionAsync: typeof getOracleConsultInstructionAsync;
2659
- declare const index$6_getOracleConsultInstructionDataCodec: typeof getOracleConsultInstructionDataCodec;
2660
- declare const index$6_getOracleConsultInstructionDataDecoder: typeof getOracleConsultInstructionDataDecoder;
2661
- declare const index$6_getOracleConsultInstructionDataEncoder: typeof getOracleConsultInstructionDataEncoder;
2662
- declare const index$6_getOracleDeviation: typeof getOracleDeviation;
2663
- declare const index$6_getOracleForPool: typeof getOracleForPool;
2664
- declare const index$6_getOracleSpotPrices: typeof getOracleSpotPrices;
2665
- declare const index$6_getOracleUpdateDiscriminatorBytes: typeof getOracleUpdateDiscriminatorBytes;
2666
- declare const index$6_getOracleUpdateInstruction: typeof getOracleUpdateInstruction;
2667
- declare const index$6_getOracleUpdateInstructionAsync: typeof getOracleUpdateInstructionAsync;
2668
- declare const index$6_getOracleUpdateInstructionDataCodec: typeof getOracleUpdateInstructionDataCodec;
2669
- declare const index$6_getOracleUpdateInstructionDataDecoder: typeof getOracleUpdateInstructionDataDecoder;
2670
- declare const index$6_getOracleUpdateInstructionDataEncoder: typeof getOracleUpdateInstructionDataEncoder;
2671
- declare const index$6_getPauseDiscriminatorBytes: typeof getPauseDiscriminatorBytes;
2672
- declare const index$6_getPauseInstruction: typeof getPauseInstruction;
2673
- declare const index$6_getPauseInstructionDataCodec: typeof getPauseInstructionDataCodec;
2674
- declare const index$6_getPauseInstructionDataDecoder: typeof getPauseInstructionDataDecoder;
2675
- declare const index$6_getPauseInstructionDataEncoder: typeof getPauseInstructionDataEncoder;
2676
- declare const index$6_getPendingFees: typeof getPendingFees;
2677
- declare const index$6_getPoolAddress: typeof getPoolAddress;
2678
- declare const index$6_getPoolAddressFromMints: typeof getPoolAddressFromMints;
2679
- declare const index$6_getPoolAuthorityAddress: typeof getPoolAuthorityAddress;
2680
- declare const index$6_getPoolByMints: typeof getPoolByMints;
2681
- declare const index$6_getPoolInitAddresses: typeof getPoolInitAddresses;
2682
- declare const index$6_getPoolVault0Address: typeof getPoolVault0Address;
2683
- declare const index$6_getPoolVault1Address: typeof getPoolVault1Address;
2684
- declare const index$6_getPositionAddress: typeof getPositionAddress;
2685
- declare const index$6_getPositionAddressFromParams: typeof getPositionAddressFromParams;
2686
- declare const index$6_getPositionValue: typeof getPositionValue;
2687
- declare const index$6_getPreviewSwapExactInDiscriminatorBytes: typeof getPreviewSwapExactInDiscriminatorBytes;
2688
- declare const index$6_getPreviewSwapExactInInstruction: typeof getPreviewSwapExactInInstruction;
2689
- declare const index$6_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec;
2690
- declare const index$6_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder;
2691
- declare const index$6_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder;
2692
- declare const index$6_getProtocolFeeOwnerAddress: typeof getProtocolFeeOwnerAddress;
2693
- declare const index$6_getProtocolFeePositionAddress: typeof getProtocolFeePositionAddress;
2694
- declare const index$6_getRedeemProtocolSharesDiscriminatorBytes: typeof getRedeemProtocolSharesDiscriminatorBytes;
2695
- declare const index$6_getRedeemProtocolSharesInstruction: typeof getRedeemProtocolSharesInstruction;
2696
- declare const index$6_getRedeemProtocolSharesInstructionAsync: typeof getRedeemProtocolSharesInstructionAsync;
2697
- declare const index$6_getRedeemProtocolSharesInstructionDataCodec: typeof getRedeemProtocolSharesInstructionDataCodec;
2698
- declare const index$6_getRedeemProtocolSharesInstructionDataDecoder: typeof getRedeemProtocolSharesInstructionDataDecoder;
2699
- declare const index$6_getRedeemProtocolSharesInstructionDataEncoder: typeof getRedeemProtocolSharesInstructionDataEncoder;
2700
- declare const index$6_getRemoveLiquidityDiscriminatorBytes: typeof getRemoveLiquidityDiscriminatorBytes;
2701
- declare const index$6_getRemoveLiquidityInstruction: typeof getRemoveLiquidityInstruction;
2702
- declare const index$6_getRemoveLiquidityInstructionAsync: typeof getRemoveLiquidityInstructionAsync;
2703
- declare const index$6_getRemoveLiquidityInstructionDataCodec: typeof getRemoveLiquidityInstructionDataCodec;
2704
- declare const index$6_getRemoveLiquidityInstructionDataDecoder: typeof getRemoveLiquidityInstructionDataDecoder;
2705
- declare const index$6_getRemoveLiquidityInstructionDataEncoder: typeof getRemoveLiquidityInstructionDataEncoder;
2706
- declare const index$6_getRemoveLiquidityQuote: typeof getRemoveLiquidityQuote;
2707
- declare const index$6_getSetFeesDiscriminatorBytes: typeof getSetFeesDiscriminatorBytes;
2708
- declare const index$6_getSetFeesInstruction: typeof getSetFeesInstruction;
2709
- declare const index$6_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec;
2710
- declare const index$6_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder;
2711
- declare const index$6_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder;
2712
- declare const index$6_getSetHookDiscriminatorBytes: typeof getSetHookDiscriminatorBytes;
2713
- declare const index$6_getSetHookInstruction: typeof getSetHookInstruction;
2714
- declare const index$6_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec;
2715
- declare const index$6_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder;
2716
- declare const index$6_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder;
2717
- declare const index$6_getSpotPrice0: typeof getSpotPrice0;
2718
- declare const index$6_getSpotPrice1: typeof getSpotPrice1;
2719
- declare const index$6_getSwapAddresses: typeof getSwapAddresses;
2720
- declare const index$6_getSwapExactInDiscriminatorBytes: typeof getSwapExactInDiscriminatorBytes;
2721
- declare const index$6_getSwapExactInInstruction: typeof getSwapExactInInstruction;
2722
- declare const index$6_getSwapExactInInstructionAsync: typeof getSwapExactInInstructionAsync;
2723
- declare const index$6_getSwapExactInInstructionDataCodec: typeof getSwapExactInInstructionDataCodec;
2724
- declare const index$6_getSwapExactInInstructionDataDecoder: typeof getSwapExactInInstructionDataDecoder;
2725
- declare const index$6_getSwapExactInInstructionDataEncoder: typeof getSwapExactInInstructionDataEncoder;
2726
- declare const index$6_getSwapQuote: typeof getSwapQuote;
2727
- declare const index$6_getSwapQuoteExactOut: typeof getSwapQuoteExactOut;
2728
- declare const index$6_getTransferAdminDiscriminatorBytes: typeof getTransferAdminDiscriminatorBytes;
2729
- declare const index$6_getTransferAdminInstruction: typeof getTransferAdminInstruction;
2730
- declare const index$6_getTransferAdminInstructionDataCodec: typeof getTransferAdminInstructionDataCodec;
2731
- declare const index$6_getTransferAdminInstructionDataDecoder: typeof getTransferAdminInstructionDataDecoder;
2732
- declare const index$6_getTransferAdminInstructionDataEncoder: typeof getTransferAdminInstructionDataEncoder;
2733
- declare const index$6_getTvl: typeof getTvl;
2734
- declare const index$6_getUnpauseDiscriminatorBytes: typeof getUnpauseDiscriminatorBytes;
2735
- declare const index$6_getUnpauseInstruction: typeof getUnpauseInstruction;
2736
- declare const index$6_getUnpauseInstructionDataCodec: typeof getUnpauseInstructionDataCodec;
2737
- declare const index$6_getUnpauseInstructionDataDecoder: typeof getUnpauseInstructionDataDecoder;
2738
- declare const index$6_getUnpauseInstructionDataEncoder: typeof getUnpauseInstructionDataEncoder;
2739
- declare const index$6_getUpdateConfigDiscriminatorBytes: typeof getUpdateConfigDiscriminatorBytes;
2740
- declare const index$6_getUpdateConfigInstruction: typeof getUpdateConfigInstruction;
2741
- declare const index$6_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec;
2742
- declare const index$6_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder;
2743
- declare const index$6_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder;
2744
- declare const index$6_getWithdrawVaultExcessDiscriminatorBytes: typeof getWithdrawVaultExcessDiscriminatorBytes;
2745
- declare const index$6_getWithdrawVaultExcessInstruction: typeof getWithdrawVaultExcessInstruction;
2746
- declare const index$6_getWithdrawVaultExcessInstructionAsync: typeof getWithdrawVaultExcessInstructionAsync;
2747
- declare const index$6_getWithdrawVaultExcessInstructionDataCodec: typeof getWithdrawVaultExcessInstructionDataCodec;
2748
- declare const index$6_getWithdrawVaultExcessInstructionDataDecoder: typeof getWithdrawVaultExcessInstructionDataDecoder;
2749
- declare const index$6_getWithdrawVaultExcessInstructionDataEncoder: typeof getWithdrawVaultExcessInstructionDataEncoder;
2750
- declare const index$6_initializeConfigArgsCodec: typeof initializeConfigArgsCodec;
2751
- declare const index$6_initializeOracleArgsCodec: typeof initializeOracleArgsCodec;
2752
- declare const index$6_initializePoolArgsCodec: typeof initializePoolArgsCodec;
2753
- declare const index$6_isCpmmError: typeof isCpmmError;
2754
- declare const index$6_isOracleStale: typeof isOracleStale;
2755
- declare const index$6_isTransactionSigner: typeof isTransactionSigner;
2756
- declare const index$6_isqrt: typeof isqrt;
2757
- declare const index$6_marketCapToCurveParams: typeof marketCapToCurveParams;
2758
- declare const index$6_marketCapToSingleCurveParams: typeof marketCapToSingleCurveParams;
2759
- declare const index$6_marketCapToTokenPrice: typeof marketCapToTokenPrice;
2760
- declare const index$6_maxBigInt: typeof maxBigInt;
2761
- declare const index$6_minBigInt: typeof minBigInt;
2762
- declare const index$6_normalizeProgramAccountsResponse: typeof normalizeProgramAccountsResponse;
2763
- declare const index$6_numberToQ64: typeof numberToQ64;
2764
- declare const index$6_observationCodec: typeof observationCodec;
2765
- declare const index$6_oracleConsultArgsCodec: typeof oracleConsultArgsCodec;
2766
- declare const index$6_oracleStateDataCodec: typeof oracleStateDataCodec;
2767
- declare const index$6_parseAddLiquidityInstruction: typeof parseAddLiquidityInstruction;
2768
- declare const index$6_parseClosePositionInstruction: typeof parseClosePositionInstruction;
2769
- declare const index$6_parseCollectFeesInstruction: typeof parseCollectFeesInstruction;
2770
- declare const index$6_parseCollectProtocolFeesInstruction: typeof parseCollectProtocolFeesInstruction;
2771
- declare const index$6_parseCreatePositionInstruction: typeof parseCreatePositionInstruction;
2772
- declare const index$6_parseErrorFromLogs: typeof parseErrorFromLogs;
2773
- declare const index$6_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
2774
- declare const index$6_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
2775
- declare const index$6_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
2776
- declare const index$6_parsePauseInstruction: typeof parsePauseInstruction;
2777
- declare const index$6_parsePreviewSwapExactInInstruction: typeof parsePreviewSwapExactInInstruction;
2778
- declare const index$6_parseRedeemProtocolSharesInstruction: typeof parseRedeemProtocolSharesInstruction;
2779
- declare const index$6_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction;
2780
- declare const index$6_parseSetFeesInstruction: typeof parseSetFeesInstruction;
2781
- declare const index$6_parseSetHookInstruction: typeof parseSetHookInstruction;
2782
- declare const index$6_parseSwapExactInInstruction: typeof parseSwapExactInInstruction;
2783
- declare const index$6_parseTransferAdminInstruction: typeof parseTransferAdminInstruction;
2784
- declare const index$6_parseUnpauseInstruction: typeof parseUnpauseInstruction;
2785
- declare const index$6_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction;
2786
- declare const index$6_parseWithdrawVaultExcessInstruction: typeof parseWithdrawVaultExcessInstruction;
2787
- declare const index$6_poolDataCodec: typeof poolDataCodec;
2788
- declare const index$6_poolExists: typeof poolExists;
2789
- declare const index$6_positionDataCodec: typeof positionDataCodec;
2790
- declare const index$6_q64Div: typeof q64Div;
2791
- declare const index$6_q64Mul: typeof q64Mul;
2792
- declare const index$6_q64ToNumber: typeof q64ToNumber;
2793
- declare const index$6_ratioToNumber: typeof ratioToNumber;
2794
- declare const index$6_removeLiquidityArgsCodec: typeof removeLiquidityArgsCodec;
2795
- declare const index$6_setFeesArgsCodec: typeof setFeesArgsCodec;
2796
- declare const index$6_setHookArgsCodec: typeof setHookArgsCodec;
2797
- declare const index$6_sortMints: typeof sortMints;
2798
- declare const index$6_sortPoolsByReserves: typeof sortPoolsByReserves;
2799
- declare const index$6_sortPositionsByShares: typeof sortPositionsByShares;
2800
- declare const index$6_swapExactInArgsCodec: typeof swapExactInArgsCodec;
2801
- declare const index$6_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2802
- declare const index$6_validateMarketCapParameters: typeof validateMarketCapParameters;
2803
- declare const index$6_warnAccountDecodeFailure: typeof warnAccountDecodeFailure;
2804
- declare namespace index$6 {
2805
- export { index$6_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$6_ACCOUNT_VERSION as ACCOUNT_VERSION, index$6_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, type index$6_AccountMetaRole as AccountMetaRole, index$6_AddLiquidityArgs as AddLiquidityArgs, type index$6_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$6_AddLiquidityEvent as AddLiquidityEvent, type index$6_AddLiquidityInput as AddLiquidityInput, type index$6_AddLiquidityInstruction as AddLiquidityInstruction, type index$6_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$6_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$6_AddLiquidityQuote as AddLiquidityQuote, type index$6_AddressOrTransactionSigner as AddressOrTransactionSigner, index$6_AdminTransferredEvent as AdminTransferredEvent, index$6_AmmConfig as AmmConfig, index$6_BPS_DENOM as BPS_DENOM, index$6_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$6_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$6_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$6_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$6_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$6_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$6_ClosePositionInput as ClosePositionInput, type index$6_ClosePositionInstruction as ClosePositionInstruction, type index$6_ClosePositionInstructionData as ClosePositionInstructionData, type index$6_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$6_CollectFeesArgs as CollectFeesArgs, type index$6_CollectFeesAsyncInput as CollectFeesAsyncInput, index$6_CollectFeesEvent as CollectFeesEvent, type index$6_CollectFeesInput as CollectFeesInput, type index$6_CollectFeesInstruction as CollectFeesInstruction, type index$6_CollectFeesInstructionData as CollectFeesInstructionData, type index$6_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$6_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$6_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$6_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$6_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$6_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$6_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$6_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$6_CpmmError as CpmmError, index$6_CpmmErrorCode as CpmmErrorCode, index$6_CreatePositionArgs as CreatePositionArgs, type index$6_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$6_CreatePositionInput as CreatePositionInput, type index$6_CreatePositionInstruction as CreatePositionInstruction, type index$6_CreatePositionInstructionData as CreatePositionInstructionData, type index$6_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$6_CurveParams as CurveParams, index$6_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, type index$6_EncodedProgramAccount as EncodedProgramAccount, index$6_FeesUpdatedEvent as FeesUpdatedEvent, index$6_FetchOracleConfig as FetchOracleConfig, type index$6_FetchPoolsConfig as FetchPoolsConfig, index$6_FetchPositionsConfig as FetchPositionsConfig, index$6_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$6_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$6_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$6_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$6_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$6_HookErrorEvent as HookErrorEvent, index$6_HookInvokedEvent as HookInvokedEvent, index$6_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$2 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$6_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$6_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$3 as InitializeConfigArgs, type InitializeConfigAsyncInput$2 as InitializeConfigAsyncInput, type InitializeConfigInput$2 as InitializeConfigInput, type InitializeConfigInstruction$2 as InitializeConfigInstruction, type InitializeConfigInstructionData$2 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$2 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$6_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$6_InitializePoolArgs as InitializePoolArgs, type index$6_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$6_InitializePoolInput as InitializePoolInput, type index$6_InitializePoolInstruction as InitializePoolInstruction, type index$6_InitializePoolInstructionData as InitializePoolInstructionData, type index$6_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, index$6_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$6_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$6_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$6_MarketCapValidationResult as MarketCapValidationResult, index$6_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$6_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$6_Observation as Observation, index$6_OracleConsultArgs as OracleConsultArgs, type index$6_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$6_OracleConsultInput as OracleConsultInput, type index$6_OracleConsultInstruction as OracleConsultInstruction, type index$6_OracleConsultInstructionData as OracleConsultInstructionData, type index$6_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$6_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$6_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$6_OracleUpdateInput as OracleUpdateInput, type index$6_OracleUpdateInstruction as OracleUpdateInstruction, type index$6_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$6_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$6_OracleUpdatedEvent as OracleUpdatedEvent, index$6_OracleWithAddress as OracleWithAddress, index$6_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$6_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$6_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$6_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$6_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$6_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$6_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$2 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$6_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$6_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$6_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$6_ParsedPauseInstruction as ParsedPauseInstruction, type index$6_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$6_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$6_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$6_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$6_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$6_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$6_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$6_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$6_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$6_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$6_PauseInput as PauseInput, type index$6_PauseInstruction as PauseInstruction, type index$6_PauseInstructionData as PauseInstructionData, type index$6_PauseInstructionDataArgs as PauseInstructionDataArgs, index$6_PausedEvent as PausedEvent, index$6_Pool as Pool, index$6_PoolInitializedEvent as PoolInitializedEvent, type index$6_PoolWithAddress as PoolWithAddress, index$6_Position as Position, index$6_PositionClosedEvent as PositionClosedEvent, index$6_PositionCreatedEvent as PositionCreatedEvent, index$6_PositionValue as PositionValue, index$6_PositionWithAddress as PositionWithAddress, type index$6_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$6_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$6_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$6_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$6_Q64_ONE as Q64_ONE, index$6_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$6_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$6_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$6_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$6_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$6_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$6_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, type index$6_RemainingAccount as RemainingAccount, index$6_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$6_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$6_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$6_RemoveLiquidityInput as RemoveLiquidityInput, type index$6_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$6_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$6_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$6_RemoveLiquidityQuote as RemoveLiquidityQuote, index$6_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$6_SEED_ORACLE as SEED_ORACLE, index$6_SEED_POOL as SEED_POOL, index$6_SEED_POSITION as SEED_POSITION, index$6_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$6_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$6_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$6_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$6_SetFeesArgs as SetFeesArgs, type index$6_SetFeesInput as SetFeesInput, type index$6_SetFeesInstruction as SetFeesInstruction, type index$6_SetFeesInstructionData as SetFeesInstructionData, type index$6_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$6_SetHookArgs as SetHookArgs, type index$6_SetHookInput as SetHookInput, type index$6_SetHookInstruction as SetHookInstruction, type index$6_SetHookInstructionData as SetHookInstructionData, type index$6_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$6_SwapEvent as SwapEvent, index$6_SwapExactInArgs as SwapExactInArgs, type index$6_SwapExactInAsyncInput as SwapExactInAsyncInput, type SwapExactInInput$1 as SwapExactInInput, type index$6_SwapExactInInstruction as SwapExactInInstruction, type index$6_SwapExactInInstructionData as SwapExactInInstructionData, type index$6_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$6_SwapQuote as SwapQuote, index$6_SwapQuoteExactOut as SwapQuoteExactOut, index$6_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$6_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$6_TradeDirection as TradeDirection, index$6_TransferAdminArgs as TransferAdminArgs, type index$6_TransferAdminInput as TransferAdminInput, type index$6_TransferAdminInstruction as TransferAdminInstruction, type index$6_TransferAdminInstructionData as TransferAdminInstructionData, type index$6_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$6_TwapResult as TwapResult, index$6_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$6_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$6_UnpauseInput as UnpauseInput, type index$6_UnpauseInstruction as UnpauseInstruction, type index$6_UnpauseInstructionData as UnpauseInstructionData, type index$6_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$6_UnpausedEvent as UnpausedEvent, type index$6_UpdateConfigInput as UpdateConfigInput, type index$6_UpdateConfigInstruction as UpdateConfigInstruction, type index$6_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$6_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$6_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$6_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$6_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$6_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$6_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$6_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$6_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$6_addLiquidityArgsCodec as addLiquidityArgsCodec, index$6_addressToBase58EncodedBytes as addressToBase58EncodedBytes, index$6_ammConfigDataCodec as ammConfigDataCodec, index$6_areMintsOrdered as areMintsOrdered, index$6_base64ToBytes as base64ToBytes, index$6_bytesToBase64 as bytesToBase64, index$6_bytesToBase64EncodedBytes as bytesToBase64EncodedBytes, index$6_calculateAccruedFees as calculateAccruedFees, index$6_calculateTwap as calculateTwap, index$6_calculateTwapNumber as calculateTwapNumber, index$6_ceilDiv as ceilDiv, index$6_collectFeesArgsCodec as collectFeesArgsCodec, index$6_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$6_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$6_computePrice0Q64 as computePrice0Q64, index$6_computePrice1Q64 as computePrice1Q64, index$6_consultTwap as consultTwap, index$6_createAccountMeta as createAccountMeta, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$2 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$6_createPositionArgsCodec as createPositionArgsCodec, index$6_createReadonlyRemainingAccountMeta as createReadonlyRemainingAccountMeta, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$6_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$6_curveParamsToMarketCap as curveParamsToMarketCap, index$6_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$6_decodePool as decodePool, index$6_decodePosition as decodePosition, index$6_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$6_encodeCollectFeesArgs as encodeCollectFeesArgs, index$6_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$6_encodeCreatePositionArgs as encodeCreatePositionArgs, index$6_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$6_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$6_encodeInitializePoolArgs as encodeInitializePoolArgs, index$6_encodeInstructionData as encodeInstructionData, index$6_encodeOracleConsultArgs as encodeOracleConsultArgs, index$6_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$6_encodeSetFeesArgs as encodeSetFeesArgs, index$6_encodeSetHookArgs as encodeSetHookArgs, index$6_encodeSwapExactInArgs as encodeSwapExactInArgs, index$6_encodeTransferAdminArgs as encodeTransferAdminArgs, index$6_fetchAllPools as fetchAllPools, index$6_fetchConfig as fetchConfig, index$6_fetchConfigWithAddress as fetchConfigWithAddress, index$6_fetchOracle as fetchOracle, index$6_fetchOraclesBatch as fetchOraclesBatch, index$6_fetchPool as fetchPool, index$6_fetchPoolPositions as fetchPoolPositions, index$6_fetchPoolsBatch as fetchPoolsBatch, index$6_fetchPosition as fetchPosition, index$6_fetchPositionByParams as fetchPositionByParams, index$6_fetchPositionsBatch as fetchPositionsBatch, index$6_fetchUserPositions as fetchUserPositions, index$6_filterActivePositions as filterActivePositions, index$6_filterPoolsByMint as filterPoolsByMint, index$6_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$6_getAddLiquidityInstruction as getAddLiquidityInstruction, index$6_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$6_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$6_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$6_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$6_getAddLiquidityQuote as getAddLiquidityQuote, index$6_getAddressFromAddressOrSigner as getAddressFromAddressOrSigner, index$6_getAddressFromRemainingAccount as getAddressFromRemainingAccount, index$6_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$6_getClosePositionInstruction as getClosePositionInstruction, index$6_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$6_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$6_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$6_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$6_getCollectFeesInstruction as getCollectFeesInstruction, index$6_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$6_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$6_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$6_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$6_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$6_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$6_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$6_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$6_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$6_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$6_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$6_getCreatePositionInstruction as getCreatePositionInstruction, index$6_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$6_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$6_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$6_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$6_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$2 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$2 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$2 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$2 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$2 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$2 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$6_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$6_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$6_getInitializePoolInstruction as getInitializePoolInstruction, index$6_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$6_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$6_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$6_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$6_getK as getK, index$6_getLiquidityAddresses as getLiquidityAddresses, index$6_getMetadataAddress as getMetadataAddress, index$6_getOracleAddress as getOracleAddress, index$6_getOracleAddressFromPool as getOracleAddressFromPool, index$6_getOracleAge as getOracleAge, index$6_getOracleBufferStats as getOracleBufferStats, index$6_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$6_getOracleConsultInstruction as getOracleConsultInstruction, index$6_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$6_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$6_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$6_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$6_getOracleDeviation as getOracleDeviation, index$6_getOracleForPool as getOracleForPool, index$6_getOracleSpotPrices as getOracleSpotPrices, index$6_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$6_getOracleUpdateInstruction as getOracleUpdateInstruction, index$6_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$6_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$6_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$6_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$6_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$6_getPauseInstruction as getPauseInstruction, index$6_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$6_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$6_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$6_getPendingFees as getPendingFees, index$6_getPoolAddress as getPoolAddress, index$6_getPoolAddressFromMints as getPoolAddressFromMints, index$6_getPoolAuthorityAddress as getPoolAuthorityAddress, index$6_getPoolByMints as getPoolByMints, index$6_getPoolInitAddresses as getPoolInitAddresses, index$6_getPoolVault0Address as getPoolVault0Address, index$6_getPoolVault1Address as getPoolVault1Address, index$6_getPositionAddress as getPositionAddress, index$6_getPositionAddressFromParams as getPositionAddressFromParams, index$6_getPositionValue as getPositionValue, index$6_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$6_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$6_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$6_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$6_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$6_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$6_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$6_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$6_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$6_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$6_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$6_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$6_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$6_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$6_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$6_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$6_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$6_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$6_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$6_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$6_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$6_getSetFeesInstruction as getSetFeesInstruction, index$6_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$6_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$6_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$6_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$6_getSetHookInstruction as getSetHookInstruction, index$6_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$6_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$6_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$6_getSpotPrice0 as getSpotPrice0, index$6_getSpotPrice1 as getSpotPrice1, index$6_getSwapAddresses as getSwapAddresses, index$6_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$6_getSwapExactInInstruction as getSwapExactInInstruction, index$6_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$6_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$6_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$6_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$6_getSwapQuote as getSwapQuote, index$6_getSwapQuoteExactOut as getSwapQuoteExactOut, index$6_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$6_getTransferAdminInstruction as getTransferAdminInstruction, index$6_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$6_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$6_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$6_getTvl as getTvl, index$6_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$6_getUnpauseInstruction as getUnpauseInstruction, index$6_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$6_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$6_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$6_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$6_getUpdateConfigInstruction as getUpdateConfigInstruction, index$6_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$6_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$6_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$6_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$6_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$6_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$6_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$6_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$6_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$6_initializeConfigArgsCodec as initializeConfigArgsCodec, index$6_initializeOracleArgsCodec as initializeOracleArgsCodec, index$6_initializePoolArgsCodec as initializePoolArgsCodec, index$6_isCpmmError as isCpmmError, index$6_isOracleStale as isOracleStale, index$6_isTransactionSigner as isTransactionSigner, index$6_isqrt as isqrt, index$6_marketCapToCurveParams as marketCapToCurveParams, index$6_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$6_marketCapToTokenPrice as marketCapToTokenPrice, index$6_maxBigInt as maxBigInt, index$6_minBigInt as minBigInt, index$6_normalizeProgramAccountsResponse as normalizeProgramAccountsResponse, index$6_numberToQ64 as numberToQ64, index$6_observationCodec as observationCodec, index$6_oracleConsultArgsCodec as oracleConsultArgsCodec, index$6_oracleStateDataCodec as oracleStateDataCodec, index$6_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$6_parseClosePositionInstruction as parseClosePositionInstruction, index$6_parseCollectFeesInstruction as parseCollectFeesInstruction, index$6_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$6_parseCreatePositionInstruction as parseCreatePositionInstruction, index$6_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$2 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$6_parseInitializePoolInstruction as parseInitializePoolInstruction, index$6_parseOracleConsultInstruction as parseOracleConsultInstruction, index$6_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$6_parsePauseInstruction as parsePauseInstruction, index$6_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$6_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$6_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$6_parseSetFeesInstruction as parseSetFeesInstruction, index$6_parseSetHookInstruction as parseSetHookInstruction, index$6_parseSwapExactInInstruction as parseSwapExactInInstruction, index$6_parseTransferAdminInstruction as parseTransferAdminInstruction, index$6_parseUnpauseInstruction as parseUnpauseInstruction, index$6_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$6_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$6_poolDataCodec as poolDataCodec, index$6_poolExists as poolExists, index$6_positionDataCodec as positionDataCodec, index$6_q64Div as q64Div, index$6_q64Mul as q64Mul, index$6_q64ToNumber as q64ToNumber, index$6_ratioToNumber as ratioToNumber, index$6_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$6_setFeesArgsCodec as setFeesArgsCodec, index$6_setHookArgsCodec as setHookArgsCodec, index$6_sortMints as sortMints, index$6_sortPoolsByReserves as sortPoolsByReserves, index$6_sortPositionsByShares as sortPositionsByShares, index$6_swapExactInArgsCodec as swapExactInArgsCodec, index$6_transferAdminArgsCodec as transferAdminArgsCodec, index$6_validateMarketCapParameters as validateMarketCapParameters, index$6_warnAccountDecodeFailure as warnAccountDecodeFailure };
2473
+ declare const index$5_ACCOUNT_DISCRIMINATORS: typeof ACCOUNT_DISCRIMINATORS;
2474
+ declare const index$5_ACCOUNT_VERSION: typeof ACCOUNT_VERSION;
2475
+ declare const index$5_ADD_LIQUIDITY_DISCRIMINATOR: typeof ADD_LIQUIDITY_DISCRIMINATOR;
2476
+ type index$5_AccountMetaRole = AccountMetaRole;
2477
+ declare const index$5_AddLiquidityArgs: typeof AddLiquidityArgs;
2478
+ type index$5_AddLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = AddLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2479
+ declare const index$5_AddLiquidityEvent: typeof AddLiquidityEvent;
2480
+ type index$5_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>;
2481
+ type index$5_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>;
2482
+ type index$5_AddLiquidityInstructionData = AddLiquidityInstructionData;
2483
+ type index$5_AddLiquidityInstructionDataArgs = AddLiquidityInstructionDataArgs;
2484
+ declare const index$5_AddLiquidityQuote: typeof AddLiquidityQuote;
2485
+ type index$5_AddressOrTransactionSigner = AddressOrTransactionSigner;
2486
+ declare const index$5_AdminTransferredEvent: typeof AdminTransferredEvent;
2487
+ declare const index$5_AmmConfig: typeof AmmConfig;
2488
+ declare const index$5_BPS_DENOM: typeof BPS_DENOM;
2489
+ declare const index$5_CLOSE_POSITION_DISCRIMINATOR: typeof CLOSE_POSITION_DISCRIMINATOR;
2490
+ declare const index$5_COLLECT_FEES_DISCRIMINATOR: typeof COLLECT_FEES_DISCRIMINATOR;
2491
+ declare const index$5_COLLECT_PROTOCOL_FEES_DISCRIMINATOR: typeof COLLECT_PROTOCOL_FEES_DISCRIMINATOR;
2492
+ declare const index$5_CPMM_ERROR_MESSAGES: typeof CPMM_ERROR_MESSAGES;
2493
+ declare const index$5_CPMM_PROGRAM_ID: typeof CPMM_PROGRAM_ID;
2494
+ declare const index$5_CREATE_POSITION_DISCRIMINATOR: typeof CREATE_POSITION_DISCRIMINATOR;
2495
+ type index$5_ClosePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountRentRecipient extends string = string> = ClosePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient>;
2496
+ type index$5_ClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentRecipient extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = ClosePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountRentRecipient, TRemainingAccounts>;
2497
+ type index$5_ClosePositionInstructionData = ClosePositionInstructionData;
2498
+ type index$5_ClosePositionInstructionDataArgs = ClosePositionInstructionDataArgs;
2499
+ declare const index$5_CollectFeesArgs: typeof CollectFeesArgs;
2500
+ type index$5_CollectFeesAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
2501
+ declare const index$5_CollectFeesEvent: typeof CollectFeesEvent;
2502
+ type index$5_CollectFeesInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string> = CollectFeesInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program>;
2503
+ type index$5_CollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CollectFeesInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2504
+ type index$5_CollectFeesInstructionData = CollectFeesInstructionData;
2505
+ type index$5_CollectFeesInstructionDataArgs = CollectFeesInstructionDataArgs;
2506
+ declare const index$5_CollectProtocolFeesArgs: typeof CollectProtocolFeesArgs;
2507
+ type index$5_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>;
2508
+ declare const index$5_CollectProtocolFeesEvent: typeof CollectProtocolFeesEvent;
2509
+ type index$5_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>;
2510
+ type index$5_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>;
2511
+ type index$5_CollectProtocolFeesInstructionData = CollectProtocolFeesInstructionData;
2512
+ type index$5_CollectProtocolFeesInstructionDataArgs = CollectProtocolFeesInstructionDataArgs;
2513
+ type index$5_CpmmError = CpmmError;
2514
+ declare const index$5_CpmmError: typeof CpmmError;
2515
+ type index$5_CpmmErrorCode = CpmmErrorCode;
2516
+ declare const index$5_CpmmErrorCode: typeof CpmmErrorCode;
2517
+ declare const index$5_CreatePositionArgs: typeof CreatePositionArgs;
2518
+ type index$5_CreatePositionAsyncInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionAsyncInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2519
+ type index$5_CreatePositionInput<TAccountPool extends string = string, TAccountPosition extends string = string, TAccountOwner extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = CreatePositionInput<TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram>;
2520
+ type index$5_CreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = CreatePositionInstruction<TProgram, TAccountPool, TAccountPosition, TAccountOwner, TAccountPayer, TAccountSystemProgram, TRemainingAccounts>;
2521
+ type index$5_CreatePositionInstructionData = CreatePositionInstructionData;
2522
+ type index$5_CreatePositionInstructionDataArgs = CreatePositionInstructionDataArgs;
2523
+ declare const index$5_CurveParams: typeof CurveParams;
2524
+ declare const index$5_CurveParamsToMarketCapInput: typeof CurveParamsToMarketCapInput;
2525
+ type index$5_EncodedProgramAccount = EncodedProgramAccount;
2526
+ declare const index$5_FeesUpdatedEvent: typeof FeesUpdatedEvent;
2527
+ declare const index$5_FetchOracleConfig: typeof FetchOracleConfig;
2528
+ type index$5_FetchPoolsConfig = FetchPoolsConfig;
2529
+ declare const index$5_FetchPositionsConfig: typeof FetchPositionsConfig;
2530
+ declare const index$5_HF_AFTER_ADD_LIQ: typeof HF_AFTER_ADD_LIQ;
2531
+ declare const index$5_HF_AFTER_REMOVE_LIQ: typeof HF_AFTER_REMOVE_LIQ;
2532
+ declare const index$5_HF_BEFORE_ADD_LIQ: typeof HF_BEFORE_ADD_LIQ;
2533
+ declare const index$5_HF_BEFORE_REMOVE_LIQ: typeof HF_BEFORE_REMOVE_LIQ;
2534
+ declare const index$5_HF_REQUIRE_ORACLE: typeof HF_REQUIRE_ORACLE;
2535
+ declare const index$5_HookErrorEvent: typeof HookErrorEvent;
2536
+ declare const index$5_HookInvokedEvent: typeof HookInvokedEvent;
2537
+ declare const index$5_HookUpdatedEvent: typeof HookUpdatedEvent;
2538
+ declare const index$5_INITIALIZE_POOL_DISCRIMINATOR: typeof INITIALIZE_POOL_DISCRIMINATOR;
2539
+ declare const index$5_INITIALIZE_SPOT_POOL_DISCRIMINATOR: typeof INITIALIZE_SPOT_POOL_DISCRIMINATOR;
2540
+ declare const index$5_INSTRUCTION_DISCRIMINATORS: typeof INSTRUCTION_DISCRIMINATORS;
2541
+ type index$5_InitializeOracleAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountOracle extends string = string, TAccountAdmin extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = InitializeOracleAsyncInput<TAccountConfig, TAccountPool, TAccountOracle, TAccountAdmin, TAccountPayer, TAccountSystemProgram>;
2542
+ declare const index$5_InitializePoolArgs: typeof InitializePoolArgs;
2543
+ type index$5_InitializePoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2544
+ type index$5_InitializePoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializePoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2545
+ type index$5_InitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializePoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2546
+ type index$5_InitializePoolInstructionData = InitializePoolInstructionData;
2547
+ type index$5_InitializePoolInstructionDataArgs = InitializePoolInstructionDataArgs;
2548
+ type index$5_InitializeSpotPoolAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializeSpotPoolAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2549
+ type index$5_InitializeSpotPoolInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountProtocolFeePosition extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPayer extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string, TAccountMigrationAuthority extends string = string> = InitializeSpotPoolInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority>;
2550
+ type index$5_InitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeSpotPoolInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountProtocolFeeOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountPayer, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent, TAccountMigrationAuthority, TRemainingAccounts>;
2551
+ type index$5_InitializeSpotPoolInstructionData = InitializeSpotPoolInstructionData;
2552
+ type index$5_InitializeSpotPoolInstructionDataArgs = InitializeSpotPoolInstructionDataArgs;
2553
+ declare const index$5_MAX_FEE_AMOUNT: typeof MAX_FEE_AMOUNT;
2554
+ declare const index$5_MAX_ORACLE_OBSERVATIONS: typeof MAX_ORACLE_OBSERVATIONS;
2555
+ declare const index$5_MarketCapToCurveParamsInput: typeof MarketCapToCurveParamsInput;
2556
+ declare const index$5_MarketCapValidationResult: typeof MarketCapValidationResult;
2557
+ declare const index$5_ORACLE_CONSULT_DISCRIMINATOR: typeof ORACLE_CONSULT_DISCRIMINATOR;
2558
+ declare const index$5_ORACLE_UPDATE_DISCRIMINATOR: typeof ORACLE_UPDATE_DISCRIMINATOR;
2559
+ declare const index$5_Observation: typeof Observation;
2560
+ declare const index$5_OracleConsultArgs: typeof OracleConsultArgs;
2561
+ type index$5_OracleConsultAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultAsyncInput<TAccountPool, TAccountOracle>;
2562
+ type index$5_OracleConsultInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleConsultInput<TAccountPool, TAccountOracle>;
2563
+ type index$5_OracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleConsultInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2564
+ type index$5_OracleConsultInstructionData = OracleConsultInstructionData;
2565
+ type index$5_OracleConsultInstructionDataArgs = OracleConsultInstructionDataArgs;
2566
+ declare const index$5_OracleInitializedEvent: typeof OracleInitializedEvent;
2567
+ type index$5_OracleUpdateAsyncInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateAsyncInput<TAccountPool, TAccountOracle>;
2568
+ type index$5_OracleUpdateInput<TAccountPool extends string = string, TAccountOracle extends string = string> = OracleUpdateInput<TAccountPool, TAccountOracle>;
2569
+ type index$5_OracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = OracleUpdateInstruction<TProgram, TAccountPool, TAccountOracle, TRemainingAccounts>;
2570
+ type index$5_OracleUpdateInstructionData = OracleUpdateInstructionData;
2571
+ type index$5_OracleUpdateInstructionDataArgs = OracleUpdateInstructionDataArgs;
2572
+ declare const index$5_OracleUpdatedEvent: typeof OracleUpdatedEvent;
2573
+ declare const index$5_OracleWithAddress: typeof OracleWithAddress;
2574
+ declare const index$5_PAUSE_DISCRIMINATOR: typeof PAUSE_DISCRIMINATOR;
2575
+ declare const index$5_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR: typeof PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR;
2576
+ type index$5_ParsedAddLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddLiquidityInstruction<TProgram, TAccountMetas>;
2577
+ type index$5_ParsedClosePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedClosePositionInstruction<TProgram, TAccountMetas>;
2578
+ type index$5_ParsedCollectFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectFeesInstruction<TProgram, TAccountMetas>;
2579
+ type index$5_ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
2580
+ type index$5_ParsedCreatePositionInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedCreatePositionInstruction<TProgram, TAccountMetas>;
2581
+ type index$5_ParsedInitializePoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
2582
+ type index$5_ParsedInitializeSpotPoolInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeSpotPoolInstruction<TProgram, TAccountMetas>;
2583
+ type index$5_ParsedOracleConsultInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleConsultInstruction<TProgram, TAccountMetas>;
2584
+ type index$5_ParsedOracleUpdateInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedOracleUpdateInstruction<TProgram, TAccountMetas>;
2585
+ type index$5_ParsedPauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPauseInstruction<TProgram, TAccountMetas>;
2586
+ type index$5_ParsedPreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedPreviewSwapExactInInstruction<TProgram, TAccountMetas>;
2587
+ type index$5_ParsedRedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRedeemProtocolSharesInstruction<TProgram, TAccountMetas>;
2588
+ type index$5_ParsedRemoveLiquidityInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveLiquidityInstruction<TProgram, TAccountMetas>;
2589
+ type index$5_ParsedSetFeesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetFeesInstruction<TProgram, TAccountMetas>;
2590
+ type index$5_ParsedSetHookInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetHookInstruction<TProgram, TAccountMetas>;
2591
+ type index$5_ParsedSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSwapExactInInstruction<TProgram, TAccountMetas>;
2592
+ type index$5_ParsedTransferAdminInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedTransferAdminInstruction<TProgram, TAccountMetas>;
2593
+ type index$5_ParsedUnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUnpauseInstruction<TProgram, TAccountMetas>;
2594
+ type index$5_ParsedUpdateConfigInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedUpdateConfigInstruction<TProgram, TAccountMetas>;
2595
+ type index$5_ParsedWithdrawVaultExcessInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedWithdrawVaultExcessInstruction<TProgram, TAccountMetas>;
2596
+ type index$5_PauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = PauseInput<TAccountConfig, TAccountAdmin>;
2597
+ type index$5_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>;
2598
+ type index$5_PauseInstructionData = PauseInstructionData;
2599
+ type index$5_PauseInstructionDataArgs = PauseInstructionDataArgs;
2600
+ declare const index$5_PausedEvent: typeof PausedEvent;
2601
+ declare const index$5_Pool: typeof Pool;
2602
+ declare const index$5_PoolInitializedEvent: typeof PoolInitializedEvent;
2603
+ type index$5_PoolWithAddress = PoolWithAddress;
2604
+ declare const index$5_Position: typeof Position;
2605
+ declare const index$5_PositionClosedEvent: typeof PositionClosedEvent;
2606
+ declare const index$5_PositionCreatedEvent: typeof PositionCreatedEvent;
2607
+ declare const index$5_PositionValue: typeof PositionValue;
2608
+ declare const index$5_PositionWithAddress: typeof PositionWithAddress;
2609
+ type index$5_PreviewSwapExactInInput<TAccountConfig extends string = string, TAccountPool extends string = string> = PreviewSwapExactInInput<TAccountConfig, TAccountPool>;
2610
+ type index$5_PreviewSwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = PreviewSwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TRemainingAccounts>;
2611
+ type index$5_PreviewSwapExactInInstructionData = PreviewSwapExactInInstructionData;
2612
+ type index$5_PreviewSwapExactInInstructionDataArgs = PreviewSwapExactInInstructionDataArgs;
2613
+ declare const index$5_Q64_ONE: typeof Q64_ONE;
2614
+ declare const index$5_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR: typeof REDEEM_PROTOCOL_SHARES_DISCRIMINATOR;
2615
+ declare const index$5_REMOVE_LIQUIDITY_DISCRIMINATOR: typeof REMOVE_LIQUIDITY_DISCRIMINATOR;
2616
+ type index$5_RedeemProtocolSharesAsyncInput<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> = RedeemProtocolSharesAsyncInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2617
+ type index$5_RedeemProtocolSharesInput<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> = RedeemProtocolSharesInput<TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program>;
2618
+ type index$5_RedeemProtocolSharesInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountRecipient0 extends string | AccountMeta<string> = string, TAccountRecipient1 extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RedeemProtocolSharesInstruction<TProgram, TAccountConfig, TAccountPool, TAccountProtocolFeePosition, TAccountAdmin, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountRecipient0, TAccountRecipient1, TAccountToken0Program, TAccountToken1Program, TRemainingAccounts>;
2619
+ type index$5_RedeemProtocolSharesInstructionData = RedeemProtocolSharesInstructionData;
2620
+ type index$5_RedeemProtocolSharesInstructionDataArgs = RedeemProtocolSharesInstructionDataArgs;
2621
+ type index$5_RemainingAccount = RemainingAccount;
2622
+ declare const index$5_RemoveLiquidityArgs: typeof RemoveLiquidityArgs;
2623
+ type index$5_RemoveLiquidityAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountPosition extends string = string, TAccountProtocolFeePosition extends string = string, TAccountOwner extends string = string, TAccountAuthority extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = RemoveLiquidityAsyncInput<TAccountConfig, TAccountPool, TAccountPosition, TAccountProtocolFeePosition, TAccountOwner, TAccountAuthority, TAccountVault0, TAccountVault1, TAccountToken0Mint, TAccountToken1Mint, TAccountUser0, TAccountUser1, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2624
+ declare const index$5_RemoveLiquidityEvent: typeof RemoveLiquidityEvent;
2625
+ type index$5_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>;
2626
+ type index$5_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>;
2627
+ type index$5_RemoveLiquidityInstructionData = RemoveLiquidityInstructionData;
2628
+ type index$5_RemoveLiquidityInstructionDataArgs = RemoveLiquidityInstructionDataArgs;
2629
+ declare const index$5_RemoveLiquidityQuote: typeof RemoveLiquidityQuote;
2630
+ declare const index$5_SEED_AUTHORITY: typeof SEED_AUTHORITY;
2631
+ declare const index$5_SEED_ORACLE: typeof SEED_ORACLE;
2632
+ declare const index$5_SEED_POOL: typeof SEED_POOL;
2633
+ declare const index$5_SEED_POSITION: typeof SEED_POSITION;
2634
+ declare const index$5_SEED_PROTOCOL_FEE_OWNER: typeof SEED_PROTOCOL_FEE_OWNER;
2635
+ declare const index$5_SEED_SPOT_POOL: typeof SEED_SPOT_POOL;
2636
+ declare const index$5_SET_FEES_DISCRIMINATOR: typeof SET_FEES_DISCRIMINATOR;
2637
+ declare const index$5_SET_HOOK_DISCRIMINATOR: typeof SET_HOOK_DISCRIMINATOR;
2638
+ declare const index$5_SWAP_EXACT_IN_DISCRIMINATOR: typeof SWAP_EXACT_IN_DISCRIMINATOR;
2639
+ declare const index$5_SetFeesArgs: typeof SetFeesArgs;
2640
+ type index$5_SetFeesInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetFeesInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2641
+ type index$5_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>;
2642
+ type index$5_SetFeesInstructionData = SetFeesInstructionData;
2643
+ type index$5_SetFeesInstructionDataArgs = SetFeesInstructionDataArgs;
2644
+ declare const index$5_SetHookArgs: typeof SetHookArgs;
2645
+ type index$5_SetHookInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAdmin extends string = string> = SetHookInput<TAccountConfig, TAccountPool, TAccountAdmin>;
2646
+ type index$5_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>;
2647
+ type index$5_SetHookInstructionData = SetHookInstructionData;
2648
+ type index$5_SetHookInstructionDataArgs = SetHookInstructionDataArgs;
2649
+ declare const index$5_SwapEvent: typeof SwapEvent;
2650
+ declare const index$5_SwapExactInArgs: typeof SwapExactInArgs;
2651
+ type index$5_SwapExactInAsyncInput<TAccountConfig extends string = string, TAccountPool extends string = string, TAccountAuthority extends string = string, TAccountVaultIn extends string = string, TAccountVaultOut extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountUserIn extends string = string, TAccountUserOut extends string = string, TAccountTrader extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountOracle extends string = string> = SwapExactInAsyncInput<TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle>;
2652
+ type index$5_SwapExactInInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountVaultIn extends string | AccountMeta<string> = string, TAccountVaultOut extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountUserIn extends string | AccountMeta<string> = string, TAccountUserOut extends string | AccountMeta<string> = string, TAccountTrader extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountOracle extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SwapExactInInstruction<TProgram, TAccountConfig, TAccountPool, TAccountAuthority, TAccountVaultIn, TAccountVaultOut, TAccountToken0Mint, TAccountToken1Mint, TAccountUserIn, TAccountUserOut, TAccountTrader, TAccountToken0Program, TAccountToken1Program, TAccountOracle, TRemainingAccounts>;
2653
+ type index$5_SwapExactInInstructionData = SwapExactInInstructionData;
2654
+ type index$5_SwapExactInInstructionDataArgs = SwapExactInInstructionDataArgs;
2655
+ declare const index$5_SwapQuote: typeof SwapQuote;
2656
+ declare const index$5_SwapQuoteExactOut: typeof SwapQuoteExactOut;
2657
+ declare const index$5_TOKEN_METADATA_PROGRAM_ID: typeof TOKEN_METADATA_PROGRAM_ID;
2658
+ declare const index$5_TRANSFER_ADMIN_DISCRIMINATOR: typeof TRANSFER_ADMIN_DISCRIMINATOR;
2659
+ declare const index$5_TradeDirection: typeof TradeDirection;
2660
+ declare const index$5_TransferAdminArgs: typeof TransferAdminArgs;
2661
+ type index$5_TransferAdminInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = TransferAdminInput<TAccountConfig, TAccountAdmin>;
2662
+ type index$5_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>;
2663
+ type index$5_TransferAdminInstructionData = TransferAdminInstructionData;
2664
+ type index$5_TransferAdminInstructionDataArgs = TransferAdminInstructionDataArgs;
2665
+ declare const index$5_TwapResult: typeof TwapResult;
2666
+ declare const index$5_UNPAUSE_DISCRIMINATOR: typeof UNPAUSE_DISCRIMINATOR;
2667
+ declare const index$5_UPDATE_CONFIG_DISCRIMINATOR: typeof UPDATE_CONFIG_DISCRIMINATOR;
2668
+ type index$5_UnpauseInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UnpauseInput<TAccountConfig, TAccountAdmin>;
2669
+ type index$5_UnpauseInstruction<TProgram extends string = typeof CPMM_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = UnpauseInstruction<TProgram, TAccountConfig, TAccountAdmin, TRemainingAccounts>;
2670
+ type index$5_UnpauseInstructionData = UnpauseInstructionData;
2671
+ type index$5_UnpauseInstructionDataArgs = UnpauseInstructionDataArgs;
2672
+ declare const index$5_UnpausedEvent: typeof UnpausedEvent;
2673
+ type index$5_UpdateConfigInput<TAccountConfig extends string = string, TAccountAdmin extends string = string> = UpdateConfigInput<TAccountConfig, TAccountAdmin>;
2674
+ type index$5_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>;
2675
+ type index$5_UpdateConfigInstructionData = UpdateConfigInstructionData;
2676
+ type index$5_UpdateConfigInstructionDataArgs = UpdateConfigInstructionDataArgs;
2677
+ declare const index$5_VaultExcessWithdrawnEvent: typeof VaultExcessWithdrawnEvent;
2678
+ declare const index$5_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR: typeof WITHDRAW_VAULT_EXCESS_DISCRIMINATOR;
2679
+ type index$5_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>;
2680
+ type index$5_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>;
2681
+ type index$5_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>;
2682
+ type index$5_WithdrawVaultExcessInstructionData = WithdrawVaultExcessInstructionData;
2683
+ type index$5_WithdrawVaultExcessInstructionDataArgs = WithdrawVaultExcessInstructionDataArgs;
2684
+ declare const index$5_addLiquidityArgsCodec: typeof addLiquidityArgsCodec;
2685
+ declare const index$5_addressToBase58EncodedBytes: typeof addressToBase58EncodedBytes;
2686
+ declare const index$5_ammConfigDataCodec: typeof ammConfigDataCodec;
2687
+ declare const index$5_areMintsOrdered: typeof areMintsOrdered;
2688
+ declare const index$5_base64ToBytes: typeof base64ToBytes;
2689
+ declare const index$5_bytesToBase64: typeof bytesToBase64;
2690
+ declare const index$5_bytesToBase64EncodedBytes: typeof bytesToBase64EncodedBytes;
2691
+ declare const index$5_calculateAccruedFees: typeof calculateAccruedFees;
2692
+ declare const index$5_calculateTwap: typeof calculateTwap;
2693
+ declare const index$5_calculateTwapNumber: typeof calculateTwapNumber;
2694
+ declare const index$5_ceilDiv: typeof ceilDiv;
2695
+ declare const index$5_collectFeesArgsCodec: typeof collectFeesArgsCodec;
2696
+ declare const index$5_collectProtocolFeesArgsCodec: typeof collectProtocolFeesArgsCodec;
2697
+ declare const index$5_comparePoolAndOraclePrices: typeof comparePoolAndOraclePrices;
2698
+ declare const index$5_computePrice0Q64: typeof computePrice0Q64;
2699
+ declare const index$5_computePrice1Q64: typeof computePrice1Q64;
2700
+ declare const index$5_consultTwap: typeof consultTwap;
2701
+ declare const index$5_createAccountMeta: typeof createAccountMeta;
2702
+ declare const index$5_createPositionArgsCodec: typeof createPositionArgsCodec;
2703
+ declare const index$5_createReadonlyRemainingAccountMeta: typeof createReadonlyRemainingAccountMeta;
2704
+ declare const index$5_createSwapInstruction: typeof createSwapInstruction;
2705
+ declare const index$5_curveParamsToMarketCap: typeof curveParamsToMarketCap;
2706
+ declare const index$5_decodeAmmConfig: typeof decodeAmmConfig;
2707
+ declare const index$5_decodePool: typeof decodePool;
2708
+ declare const index$5_decodePosition: typeof decodePosition;
2709
+ declare const index$5_encodeAddLiquidityArgs: typeof encodeAddLiquidityArgs;
2710
+ declare const index$5_encodeCollectFeesArgs: typeof encodeCollectFeesArgs;
2711
+ declare const index$5_encodeCollectProtocolFeesArgs: typeof encodeCollectProtocolFeesArgs;
2712
+ declare const index$5_encodeCreatePositionArgs: typeof encodeCreatePositionArgs;
2713
+ declare const index$5_encodeInitializeConfigArgs: typeof encodeInitializeConfigArgs;
2714
+ declare const index$5_encodeInitializeOracleArgs: typeof encodeInitializeOracleArgs;
2715
+ declare const index$5_encodeInitializePoolArgs: typeof encodeInitializePoolArgs;
2716
+ declare const index$5_encodeInstructionData: typeof encodeInstructionData;
2717
+ declare const index$5_encodeOracleConsultArgs: typeof encodeOracleConsultArgs;
2718
+ declare const index$5_encodeRemoveLiquidityArgs: typeof encodeRemoveLiquidityArgs;
2719
+ declare const index$5_encodeSetFeesArgs: typeof encodeSetFeesArgs;
2720
+ declare const index$5_encodeSetHookArgs: typeof encodeSetHookArgs;
2721
+ declare const index$5_encodeSwapExactInArgs: typeof encodeSwapExactInArgs;
2722
+ declare const index$5_encodeTransferAdminArgs: typeof encodeTransferAdminArgs;
2723
+ declare const index$5_fetchAllPools: typeof fetchAllPools;
2724
+ declare const index$5_fetchConfig: typeof fetchConfig;
2725
+ declare const index$5_fetchConfigWithAddress: typeof fetchConfigWithAddress;
2726
+ declare const index$5_fetchOracle: typeof fetchOracle;
2727
+ declare const index$5_fetchOraclesBatch: typeof fetchOraclesBatch;
2728
+ declare const index$5_fetchPool: typeof fetchPool;
2729
+ declare const index$5_fetchPoolPositions: typeof fetchPoolPositions;
2730
+ declare const index$5_fetchPoolsBatch: typeof fetchPoolsBatch;
2731
+ declare const index$5_fetchPosition: typeof fetchPosition;
2732
+ declare const index$5_fetchPositionByParams: typeof fetchPositionByParams;
2733
+ declare const index$5_fetchPositionsBatch: typeof fetchPositionsBatch;
2734
+ declare const index$5_fetchUserPositions: typeof fetchUserPositions;
2735
+ declare const index$5_filterActivePositions: typeof filterActivePositions;
2736
+ declare const index$5_filterPoolsByMint: typeof filterPoolsByMint;
2737
+ declare const index$5_getAddLiquidityDiscriminatorBytes: typeof getAddLiquidityDiscriminatorBytes;
2738
+ declare const index$5_getAddLiquidityInstruction: typeof getAddLiquidityInstruction;
2739
+ declare const index$5_getAddLiquidityInstructionAsync: typeof getAddLiquidityInstructionAsync;
2740
+ declare const index$5_getAddLiquidityInstructionDataCodec: typeof getAddLiquidityInstructionDataCodec;
2741
+ declare const index$5_getAddLiquidityInstructionDataDecoder: typeof getAddLiquidityInstructionDataDecoder;
2742
+ declare const index$5_getAddLiquidityInstructionDataEncoder: typeof getAddLiquidityInstructionDataEncoder;
2743
+ declare const index$5_getAddLiquidityQuote: typeof getAddLiquidityQuote;
2744
+ declare const index$5_getAddressFromAddressOrSigner: typeof getAddressFromAddressOrSigner;
2745
+ declare const index$5_getAddressFromRemainingAccount: typeof getAddressFromRemainingAccount;
2746
+ declare const index$5_getClosePositionDiscriminatorBytes: typeof getClosePositionDiscriminatorBytes;
2747
+ declare const index$5_getClosePositionInstruction: typeof getClosePositionInstruction;
2748
+ declare const index$5_getClosePositionInstructionDataCodec: typeof getClosePositionInstructionDataCodec;
2749
+ declare const index$5_getClosePositionInstructionDataDecoder: typeof getClosePositionInstructionDataDecoder;
2750
+ declare const index$5_getClosePositionInstructionDataEncoder: typeof getClosePositionInstructionDataEncoder;
2751
+ declare const index$5_getCollectFeesDiscriminatorBytes: typeof getCollectFeesDiscriminatorBytes;
2752
+ declare const index$5_getCollectFeesInstruction: typeof getCollectFeesInstruction;
2753
+ declare const index$5_getCollectFeesInstructionAsync: typeof getCollectFeesInstructionAsync;
2754
+ declare const index$5_getCollectFeesInstructionDataCodec: typeof getCollectFeesInstructionDataCodec;
2755
+ declare const index$5_getCollectFeesInstructionDataDecoder: typeof getCollectFeesInstructionDataDecoder;
2756
+ declare const index$5_getCollectFeesInstructionDataEncoder: typeof getCollectFeesInstructionDataEncoder;
2757
+ declare const index$5_getCollectProtocolFeesDiscriminatorBytes: typeof getCollectProtocolFeesDiscriminatorBytes;
2758
+ declare const index$5_getCollectProtocolFeesInstruction: typeof getCollectProtocolFeesInstruction;
2759
+ declare const index$5_getCollectProtocolFeesInstructionAsync: typeof getCollectProtocolFeesInstructionAsync;
2760
+ declare const index$5_getCollectProtocolFeesInstructionDataCodec: typeof getCollectProtocolFeesInstructionDataCodec;
2761
+ declare const index$5_getCollectProtocolFeesInstructionDataDecoder: typeof getCollectProtocolFeesInstructionDataDecoder;
2762
+ declare const index$5_getCollectProtocolFeesInstructionDataEncoder: typeof getCollectProtocolFeesInstructionDataEncoder;
2763
+ declare const index$5_getCreatePositionDiscriminatorBytes: typeof getCreatePositionDiscriminatorBytes;
2764
+ declare const index$5_getCreatePositionInstruction: typeof getCreatePositionInstruction;
2765
+ declare const index$5_getCreatePositionInstructionAsync: typeof getCreatePositionInstructionAsync;
2766
+ declare const index$5_getCreatePositionInstructionDataCodec: typeof getCreatePositionInstructionDataCodec;
2767
+ declare const index$5_getCreatePositionInstructionDataDecoder: typeof getCreatePositionInstructionDataDecoder;
2768
+ declare const index$5_getCreatePositionInstructionDataEncoder: typeof getCreatePositionInstructionDataEncoder;
2769
+ declare const index$5_getErrorMessage: typeof getErrorMessage;
2770
+ declare const index$5_getInitializeOracleInstructionAsync: typeof getInitializeOracleInstructionAsync;
2771
+ declare const index$5_getInitializePoolDiscriminatorBytes: typeof getInitializePoolDiscriminatorBytes;
2772
+ declare const index$5_getInitializePoolInstruction: typeof getInitializePoolInstruction;
2773
+ declare const index$5_getInitializePoolInstructionAsync: typeof getInitializePoolInstructionAsync;
2774
+ declare const index$5_getInitializePoolInstructionDataCodec: typeof getInitializePoolInstructionDataCodec;
2775
+ declare const index$5_getInitializePoolInstructionDataDecoder: typeof getInitializePoolInstructionDataDecoder;
2776
+ declare const index$5_getInitializePoolInstructionDataEncoder: typeof getInitializePoolInstructionDataEncoder;
2777
+ declare const index$5_getInitializeSpotPoolDiscriminatorBytes: typeof getInitializeSpotPoolDiscriminatorBytes;
2778
+ declare const index$5_getInitializeSpotPoolInstruction: typeof getInitializeSpotPoolInstruction;
2779
+ declare const index$5_getInitializeSpotPoolInstructionAsync: typeof getInitializeSpotPoolInstructionAsync;
2780
+ declare const index$5_getInitializeSpotPoolInstructionDataCodec: typeof getInitializeSpotPoolInstructionDataCodec;
2781
+ declare const index$5_getInitializeSpotPoolInstructionDataDecoder: typeof getInitializeSpotPoolInstructionDataDecoder;
2782
+ declare const index$5_getInitializeSpotPoolInstructionDataEncoder: typeof getInitializeSpotPoolInstructionDataEncoder;
2783
+ declare const index$5_getK: typeof getK;
2784
+ declare const index$5_getLiquidityAddresses: typeof getLiquidityAddresses;
2785
+ declare const index$5_getMetadataAddress: typeof getMetadataAddress;
2786
+ declare const index$5_getOracleAddress: typeof getOracleAddress;
2787
+ declare const index$5_getOracleAddressFromPool: typeof getOracleAddressFromPool;
2788
+ declare const index$5_getOracleAge: typeof getOracleAge;
2789
+ declare const index$5_getOracleBufferStats: typeof getOracleBufferStats;
2790
+ declare const index$5_getOracleConsultDiscriminatorBytes: typeof getOracleConsultDiscriminatorBytes;
2791
+ declare const index$5_getOracleConsultInstruction: typeof getOracleConsultInstruction;
2792
+ declare const index$5_getOracleConsultInstructionAsync: typeof getOracleConsultInstructionAsync;
2793
+ declare const index$5_getOracleConsultInstructionDataCodec: typeof getOracleConsultInstructionDataCodec;
2794
+ declare const index$5_getOracleConsultInstructionDataDecoder: typeof getOracleConsultInstructionDataDecoder;
2795
+ declare const index$5_getOracleConsultInstructionDataEncoder: typeof getOracleConsultInstructionDataEncoder;
2796
+ declare const index$5_getOracleDeviation: typeof getOracleDeviation;
2797
+ declare const index$5_getOracleForPool: typeof getOracleForPool;
2798
+ declare const index$5_getOracleSpotPrices: typeof getOracleSpotPrices;
2799
+ declare const index$5_getOracleUpdateDiscriminatorBytes: typeof getOracleUpdateDiscriminatorBytes;
2800
+ declare const index$5_getOracleUpdateInstruction: typeof getOracleUpdateInstruction;
2801
+ declare const index$5_getOracleUpdateInstructionAsync: typeof getOracleUpdateInstructionAsync;
2802
+ declare const index$5_getOracleUpdateInstructionDataCodec: typeof getOracleUpdateInstructionDataCodec;
2803
+ declare const index$5_getOracleUpdateInstructionDataDecoder: typeof getOracleUpdateInstructionDataDecoder;
2804
+ declare const index$5_getOracleUpdateInstructionDataEncoder: typeof getOracleUpdateInstructionDataEncoder;
2805
+ declare const index$5_getPauseDiscriminatorBytes: typeof getPauseDiscriminatorBytes;
2806
+ declare const index$5_getPauseInstruction: typeof getPauseInstruction;
2807
+ declare const index$5_getPauseInstructionDataCodec: typeof getPauseInstructionDataCodec;
2808
+ declare const index$5_getPauseInstructionDataDecoder: typeof getPauseInstructionDataDecoder;
2809
+ declare const index$5_getPauseInstructionDataEncoder: typeof getPauseInstructionDataEncoder;
2810
+ declare const index$5_getPendingFees: typeof getPendingFees;
2811
+ declare const index$5_getPoolAddress: typeof getPoolAddress;
2812
+ declare const index$5_getPoolAddressFromMints: typeof getPoolAddressFromMints;
2813
+ declare const index$5_getPoolAuthorityAddress: typeof getPoolAuthorityAddress;
2814
+ declare const index$5_getPoolByMints: typeof getPoolByMints;
2815
+ declare const index$5_getPoolInitAddresses: typeof getPoolInitAddresses;
2816
+ declare const index$5_getPoolVault0Address: typeof getPoolVault0Address;
2817
+ declare const index$5_getPoolVault1Address: typeof getPoolVault1Address;
2818
+ declare const index$5_getPositionAddress: typeof getPositionAddress;
2819
+ declare const index$5_getPositionAddressFromParams: typeof getPositionAddressFromParams;
2820
+ declare const index$5_getPositionValue: typeof getPositionValue;
2821
+ declare const index$5_getPreviewSwapExactInDiscriminatorBytes: typeof getPreviewSwapExactInDiscriminatorBytes;
2822
+ declare const index$5_getPreviewSwapExactInInstruction: typeof getPreviewSwapExactInInstruction;
2823
+ declare const index$5_getPreviewSwapExactInInstructionDataCodec: typeof getPreviewSwapExactInInstructionDataCodec;
2824
+ declare const index$5_getPreviewSwapExactInInstructionDataDecoder: typeof getPreviewSwapExactInInstructionDataDecoder;
2825
+ declare const index$5_getPreviewSwapExactInInstructionDataEncoder: typeof getPreviewSwapExactInInstructionDataEncoder;
2826
+ declare const index$5_getProtocolFeeOwnerAddress: typeof getProtocolFeeOwnerAddress;
2827
+ declare const index$5_getProtocolFeePositionAddress: typeof getProtocolFeePositionAddress;
2828
+ declare const index$5_getRedeemProtocolSharesDiscriminatorBytes: typeof getRedeemProtocolSharesDiscriminatorBytes;
2829
+ declare const index$5_getRedeemProtocolSharesInstruction: typeof getRedeemProtocolSharesInstruction;
2830
+ declare const index$5_getRedeemProtocolSharesInstructionAsync: typeof getRedeemProtocolSharesInstructionAsync;
2831
+ declare const index$5_getRedeemProtocolSharesInstructionDataCodec: typeof getRedeemProtocolSharesInstructionDataCodec;
2832
+ declare const index$5_getRedeemProtocolSharesInstructionDataDecoder: typeof getRedeemProtocolSharesInstructionDataDecoder;
2833
+ declare const index$5_getRedeemProtocolSharesInstructionDataEncoder: typeof getRedeemProtocolSharesInstructionDataEncoder;
2834
+ declare const index$5_getRemoveLiquidityDiscriminatorBytes: typeof getRemoveLiquidityDiscriminatorBytes;
2835
+ declare const index$5_getRemoveLiquidityInstruction: typeof getRemoveLiquidityInstruction;
2836
+ declare const index$5_getRemoveLiquidityInstructionAsync: typeof getRemoveLiquidityInstructionAsync;
2837
+ declare const index$5_getRemoveLiquidityInstructionDataCodec: typeof getRemoveLiquidityInstructionDataCodec;
2838
+ declare const index$5_getRemoveLiquidityInstructionDataDecoder: typeof getRemoveLiquidityInstructionDataDecoder;
2839
+ declare const index$5_getRemoveLiquidityInstructionDataEncoder: typeof getRemoveLiquidityInstructionDataEncoder;
2840
+ declare const index$5_getRemoveLiquidityQuote: typeof getRemoveLiquidityQuote;
2841
+ declare const index$5_getSetFeesDiscriminatorBytes: typeof getSetFeesDiscriminatorBytes;
2842
+ declare const index$5_getSetFeesInstruction: typeof getSetFeesInstruction;
2843
+ declare const index$5_getSetFeesInstructionDataCodec: typeof getSetFeesInstructionDataCodec;
2844
+ declare const index$5_getSetFeesInstructionDataDecoder: typeof getSetFeesInstructionDataDecoder;
2845
+ declare const index$5_getSetFeesInstructionDataEncoder: typeof getSetFeesInstructionDataEncoder;
2846
+ declare const index$5_getSetHookDiscriminatorBytes: typeof getSetHookDiscriminatorBytes;
2847
+ declare const index$5_getSetHookInstruction: typeof getSetHookInstruction;
2848
+ declare const index$5_getSetHookInstructionDataCodec: typeof getSetHookInstructionDataCodec;
2849
+ declare const index$5_getSetHookInstructionDataDecoder: typeof getSetHookInstructionDataDecoder;
2850
+ declare const index$5_getSetHookInstructionDataEncoder: typeof getSetHookInstructionDataEncoder;
2851
+ declare const index$5_getSpotPoolAddress: typeof getSpotPoolAddress;
2852
+ declare const index$5_getSpotPrice0: typeof getSpotPrice0;
2853
+ declare const index$5_getSpotPrice1: typeof getSpotPrice1;
2854
+ declare const index$5_getSwapAddresses: typeof getSwapAddresses;
2855
+ declare const index$5_getSwapExactInDiscriminatorBytes: typeof getSwapExactInDiscriminatorBytes;
2856
+ declare const index$5_getSwapExactInInstruction: typeof getSwapExactInInstruction;
2857
+ declare const index$5_getSwapExactInInstructionAsync: typeof getSwapExactInInstructionAsync;
2858
+ declare const index$5_getSwapExactInInstructionDataCodec: typeof getSwapExactInInstructionDataCodec;
2859
+ declare const index$5_getSwapExactInInstructionDataDecoder: typeof getSwapExactInInstructionDataDecoder;
2860
+ declare const index$5_getSwapExactInInstructionDataEncoder: typeof getSwapExactInInstructionDataEncoder;
2861
+ declare const index$5_getSwapQuote: typeof getSwapQuote;
2862
+ declare const index$5_getSwapQuoteExactOut: typeof getSwapQuoteExactOut;
2863
+ declare const index$5_getTransferAdminDiscriminatorBytes: typeof getTransferAdminDiscriminatorBytes;
2864
+ declare const index$5_getTransferAdminInstruction: typeof getTransferAdminInstruction;
2865
+ declare const index$5_getTransferAdminInstructionDataCodec: typeof getTransferAdminInstructionDataCodec;
2866
+ declare const index$5_getTransferAdminInstructionDataDecoder: typeof getTransferAdminInstructionDataDecoder;
2867
+ declare const index$5_getTransferAdminInstructionDataEncoder: typeof getTransferAdminInstructionDataEncoder;
2868
+ declare const index$5_getTvl: typeof getTvl;
2869
+ declare const index$5_getUnpauseDiscriminatorBytes: typeof getUnpauseDiscriminatorBytes;
2870
+ declare const index$5_getUnpauseInstruction: typeof getUnpauseInstruction;
2871
+ declare const index$5_getUnpauseInstructionDataCodec: typeof getUnpauseInstructionDataCodec;
2872
+ declare const index$5_getUnpauseInstructionDataDecoder: typeof getUnpauseInstructionDataDecoder;
2873
+ declare const index$5_getUnpauseInstructionDataEncoder: typeof getUnpauseInstructionDataEncoder;
2874
+ declare const index$5_getUpdateConfigDiscriminatorBytes: typeof getUpdateConfigDiscriminatorBytes;
2875
+ declare const index$5_getUpdateConfigInstruction: typeof getUpdateConfigInstruction;
2876
+ declare const index$5_getUpdateConfigInstructionDataCodec: typeof getUpdateConfigInstructionDataCodec;
2877
+ declare const index$5_getUpdateConfigInstructionDataDecoder: typeof getUpdateConfigInstructionDataDecoder;
2878
+ declare const index$5_getUpdateConfigInstructionDataEncoder: typeof getUpdateConfigInstructionDataEncoder;
2879
+ declare const index$5_getWithdrawVaultExcessDiscriminatorBytes: typeof getWithdrawVaultExcessDiscriminatorBytes;
2880
+ declare const index$5_getWithdrawVaultExcessInstruction: typeof getWithdrawVaultExcessInstruction;
2881
+ declare const index$5_getWithdrawVaultExcessInstructionAsync: typeof getWithdrawVaultExcessInstructionAsync;
2882
+ declare const index$5_getWithdrawVaultExcessInstructionDataCodec: typeof getWithdrawVaultExcessInstructionDataCodec;
2883
+ declare const index$5_getWithdrawVaultExcessInstructionDataDecoder: typeof getWithdrawVaultExcessInstructionDataDecoder;
2884
+ declare const index$5_getWithdrawVaultExcessInstructionDataEncoder: typeof getWithdrawVaultExcessInstructionDataEncoder;
2885
+ declare const index$5_initializeConfigArgsCodec: typeof initializeConfigArgsCodec;
2886
+ declare const index$5_initializeOracleArgsCodec: typeof initializeOracleArgsCodec;
2887
+ declare const index$5_initializePoolArgsCodec: typeof initializePoolArgsCodec;
2888
+ declare const index$5_isCpmmError: typeof isCpmmError;
2889
+ declare const index$5_isOracleStale: typeof isOracleStale;
2890
+ declare const index$5_isTransactionSigner: typeof isTransactionSigner;
2891
+ declare const index$5_isqrt: typeof isqrt;
2892
+ declare const index$5_marketCapToCurveParams: typeof marketCapToCurveParams;
2893
+ declare const index$5_marketCapToSingleCurveParams: typeof marketCapToSingleCurveParams;
2894
+ declare const index$5_marketCapToTokenPrice: typeof marketCapToTokenPrice;
2895
+ declare const index$5_maxBigInt: typeof maxBigInt;
2896
+ declare const index$5_minBigInt: typeof minBigInt;
2897
+ declare const index$5_normalizeProgramAccountsResponse: typeof normalizeProgramAccountsResponse;
2898
+ declare const index$5_numberToQ64: typeof numberToQ64;
2899
+ declare const index$5_observationCodec: typeof observationCodec;
2900
+ declare const index$5_oracleConsultArgsCodec: typeof oracleConsultArgsCodec;
2901
+ declare const index$5_oracleStateDataCodec: typeof oracleStateDataCodec;
2902
+ declare const index$5_parseAddLiquidityInstruction: typeof parseAddLiquidityInstruction;
2903
+ declare const index$5_parseClosePositionInstruction: typeof parseClosePositionInstruction;
2904
+ declare const index$5_parseCollectFeesInstruction: typeof parseCollectFeesInstruction;
2905
+ declare const index$5_parseCollectProtocolFeesInstruction: typeof parseCollectProtocolFeesInstruction;
2906
+ declare const index$5_parseCreatePositionInstruction: typeof parseCreatePositionInstruction;
2907
+ declare const index$5_parseErrorFromLogs: typeof parseErrorFromLogs;
2908
+ declare const index$5_parseInitializePoolInstruction: typeof parseInitializePoolInstruction;
2909
+ declare const index$5_parseInitializeSpotPoolInstruction: typeof parseInitializeSpotPoolInstruction;
2910
+ declare const index$5_parseOracleConsultInstruction: typeof parseOracleConsultInstruction;
2911
+ declare const index$5_parseOracleUpdateInstruction: typeof parseOracleUpdateInstruction;
2912
+ declare const index$5_parsePauseInstruction: typeof parsePauseInstruction;
2913
+ declare const index$5_parsePreviewSwapExactInInstruction: typeof parsePreviewSwapExactInInstruction;
2914
+ declare const index$5_parseRedeemProtocolSharesInstruction: typeof parseRedeemProtocolSharesInstruction;
2915
+ declare const index$5_parseRemoveLiquidityInstruction: typeof parseRemoveLiquidityInstruction;
2916
+ declare const index$5_parseSetFeesInstruction: typeof parseSetFeesInstruction;
2917
+ declare const index$5_parseSetHookInstruction: typeof parseSetHookInstruction;
2918
+ declare const index$5_parseSwapExactInInstruction: typeof parseSwapExactInInstruction;
2919
+ declare const index$5_parseTransferAdminInstruction: typeof parseTransferAdminInstruction;
2920
+ declare const index$5_parseUnpauseInstruction: typeof parseUnpauseInstruction;
2921
+ declare const index$5_parseUpdateConfigInstruction: typeof parseUpdateConfigInstruction;
2922
+ declare const index$5_parseWithdrawVaultExcessInstruction: typeof parseWithdrawVaultExcessInstruction;
2923
+ declare const index$5_poolDataCodec: typeof poolDataCodec;
2924
+ declare const index$5_poolExists: typeof poolExists;
2925
+ declare const index$5_positionDataCodec: typeof positionDataCodec;
2926
+ declare const index$5_q64Div: typeof q64Div;
2927
+ declare const index$5_q64Mul: typeof q64Mul;
2928
+ declare const index$5_q64ToNumber: typeof q64ToNumber;
2929
+ declare const index$5_ratioToNumber: typeof ratioToNumber;
2930
+ declare const index$5_removeLiquidityArgsCodec: typeof removeLiquidityArgsCodec;
2931
+ declare const index$5_setFeesArgsCodec: typeof setFeesArgsCodec;
2932
+ declare const index$5_setHookArgsCodec: typeof setHookArgsCodec;
2933
+ declare const index$5_sortMints: typeof sortMints;
2934
+ declare const index$5_sortPoolsByReserves: typeof sortPoolsByReserves;
2935
+ declare const index$5_sortPositionsByShares: typeof sortPositionsByShares;
2936
+ declare const index$5_swapExactInArgsCodec: typeof swapExactInArgsCodec;
2937
+ declare const index$5_transferAdminArgsCodec: typeof transferAdminArgsCodec;
2938
+ declare const index$5_validateMarketCapParameters: typeof validateMarketCapParameters;
2939
+ declare const index$5_warnAccountDecodeFailure: typeof warnAccountDecodeFailure;
2940
+ declare namespace index$5 {
2941
+ export { index$5_ACCOUNT_DISCRIMINATORS as ACCOUNT_DISCRIMINATORS, index$5_ACCOUNT_VERSION as ACCOUNT_VERSION, index$5_ADD_LIQUIDITY_DISCRIMINATOR as ADD_LIQUIDITY_DISCRIMINATOR, type index$5_AccountMetaRole as AccountMetaRole, index$5_AddLiquidityArgs as AddLiquidityArgs, type index$5_AddLiquidityAsyncInput as AddLiquidityAsyncInput, index$5_AddLiquidityEvent as AddLiquidityEvent, type index$5_AddLiquidityInput as AddLiquidityInput, type index$5_AddLiquidityInstruction as AddLiquidityInstruction, type index$5_AddLiquidityInstructionData as AddLiquidityInstructionData, type index$5_AddLiquidityInstructionDataArgs as AddLiquidityInstructionDataArgs, index$5_AddLiquidityQuote as AddLiquidityQuote, type index$5_AddressOrTransactionSigner as AddressOrTransactionSigner, index$5_AdminTransferredEvent as AdminTransferredEvent, index$5_AmmConfig as AmmConfig, index$5_BPS_DENOM as BPS_DENOM, index$5_CLOSE_POSITION_DISCRIMINATOR as CLOSE_POSITION_DISCRIMINATOR, index$5_COLLECT_FEES_DISCRIMINATOR as COLLECT_FEES_DISCRIMINATOR, index$5_COLLECT_PROTOCOL_FEES_DISCRIMINATOR as COLLECT_PROTOCOL_FEES_DISCRIMINATOR, index$5_CPMM_ERROR_MESSAGES as CPMM_ERROR_MESSAGES, index$5_CPMM_PROGRAM_ID as CPMM_PROGRAM_ID, index$5_CREATE_POSITION_DISCRIMINATOR as CREATE_POSITION_DISCRIMINATOR, type index$5_ClosePositionInput as ClosePositionInput, type index$5_ClosePositionInstruction as ClosePositionInstruction, type index$5_ClosePositionInstructionData as ClosePositionInstructionData, type index$5_ClosePositionInstructionDataArgs as ClosePositionInstructionDataArgs, index$5_CollectFeesArgs as CollectFeesArgs, type index$5_CollectFeesAsyncInput as CollectFeesAsyncInput, index$5_CollectFeesEvent as CollectFeesEvent, type index$5_CollectFeesInput as CollectFeesInput, type index$5_CollectFeesInstruction as CollectFeesInstruction, type index$5_CollectFeesInstructionData as CollectFeesInstructionData, type index$5_CollectFeesInstructionDataArgs as CollectFeesInstructionDataArgs, index$5_CollectProtocolFeesArgs as CollectProtocolFeesArgs, type index$5_CollectProtocolFeesAsyncInput as CollectProtocolFeesAsyncInput, index$5_CollectProtocolFeesEvent as CollectProtocolFeesEvent, type index$5_CollectProtocolFeesInput as CollectProtocolFeesInput, type index$5_CollectProtocolFeesInstruction as CollectProtocolFeesInstruction, type index$5_CollectProtocolFeesInstructionData as CollectProtocolFeesInstructionData, type index$5_CollectProtocolFeesInstructionDataArgs as CollectProtocolFeesInstructionDataArgs, index$5_CpmmError as CpmmError, index$5_CpmmErrorCode as CpmmErrorCode, index$5_CreatePositionArgs as CreatePositionArgs, type index$5_CreatePositionAsyncInput as CreatePositionAsyncInput, type index$5_CreatePositionInput as CreatePositionInput, type index$5_CreatePositionInstruction as CreatePositionInstruction, type index$5_CreatePositionInstructionData as CreatePositionInstructionData, type index$5_CreatePositionInstructionDataArgs as CreatePositionInstructionDataArgs, index$5_CurveParams as CurveParams, index$5_CurveParamsToMarketCapInput as CurveParamsToMarketCapInput, type index$5_EncodedProgramAccount as EncodedProgramAccount, index$5_FeesUpdatedEvent as FeesUpdatedEvent, index$5_FetchOracleConfig as FetchOracleConfig, type index$5_FetchPoolsConfig as FetchPoolsConfig, index$5_FetchPositionsConfig as FetchPositionsConfig, index$5_HF_AFTER_ADD_LIQ as HF_AFTER_ADD_LIQ, index$5_HF_AFTER_REMOVE_LIQ as HF_AFTER_REMOVE_LIQ, HF_AFTER_SWAP$1 as HF_AFTER_SWAP, index$5_HF_BEFORE_ADD_LIQ as HF_BEFORE_ADD_LIQ, index$5_HF_BEFORE_REMOVE_LIQ as HF_BEFORE_REMOVE_LIQ, HF_BEFORE_SWAP$1 as HF_BEFORE_SWAP, HF_FORWARD_READONLY_SIGNERS$1 as HF_FORWARD_READONLY_SIGNERS, index$5_HF_REQUIRE_ORACLE as HF_REQUIRE_ORACLE, HOOK_NO_CHANGE$1 as HOOK_NO_CHANGE, index$5_HookErrorEvent as HookErrorEvent, index$5_HookInvokedEvent as HookInvokedEvent, index$5_HookUpdatedEvent as HookUpdatedEvent, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, INITIALIZE_ORACLE_DISCRIMINATOR$1 as INITIALIZE_ORACLE_DISCRIMINATOR, index$5_INITIALIZE_POOL_DISCRIMINATOR as INITIALIZE_POOL_DISCRIMINATOR, index$5_INITIALIZE_SPOT_POOL_DISCRIMINATOR as INITIALIZE_SPOT_POOL_DISCRIMINATOR, index$5_INSTRUCTION_DISCRIMINATORS as INSTRUCTION_DISCRIMINATORS, InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, InitializeOracleArgs$1 as InitializeOracleArgs, type index$5_InitializeOracleAsyncInput as InitializeOracleAsyncInput, type InitializeOracleInput$1 as InitializeOracleInput, type InitializeOracleInstruction$1 as InitializeOracleInstruction, type InitializeOracleInstructionData$1 as InitializeOracleInstructionData, type InitializeOracleInstructionDataArgs$1 as InitializeOracleInstructionDataArgs, index$5_InitializePoolArgs as InitializePoolArgs, type index$5_InitializePoolAsyncInput as InitializePoolAsyncInput, type index$5_InitializePoolInput as InitializePoolInput, type index$5_InitializePoolInstruction as InitializePoolInstruction, type index$5_InitializePoolInstructionData as InitializePoolInstructionData, type index$5_InitializePoolInstructionDataArgs as InitializePoolInstructionDataArgs, type index$5_InitializeSpotPoolAsyncInput as InitializeSpotPoolAsyncInput, type index$5_InitializeSpotPoolInput as InitializeSpotPoolInput, type index$5_InitializeSpotPoolInstruction as InitializeSpotPoolInstruction, type index$5_InitializeSpotPoolInstructionData as InitializeSpotPoolInstructionData, type index$5_InitializeSpotPoolInstructionDataArgs as InitializeSpotPoolInstructionDataArgs, index$5_MAX_FEE_AMOUNT as MAX_FEE_AMOUNT, MAX_HOOK_ALLOWLIST$1 as MAX_HOOK_ALLOWLIST, index$5_MAX_ORACLE_OBSERVATIONS as MAX_ORACLE_OBSERVATIONS, index$5_MarketCapToCurveParamsInput as MarketCapToCurveParamsInput, index$5_MarketCapValidationResult as MarketCapValidationResult, index$5_ORACLE_CONSULT_DISCRIMINATOR as ORACLE_CONSULT_DISCRIMINATOR, index$5_ORACLE_UPDATE_DISCRIMINATOR as ORACLE_UPDATE_DISCRIMINATOR, index$5_Observation as Observation, index$5_OracleConsultArgs as OracleConsultArgs, type index$5_OracleConsultAsyncInput as OracleConsultAsyncInput, type index$5_OracleConsultInput as OracleConsultInput, type index$5_OracleConsultInstruction as OracleConsultInstruction, type index$5_OracleConsultInstructionData as OracleConsultInstructionData, type index$5_OracleConsultInstructionDataArgs as OracleConsultInstructionDataArgs, index$5_OracleInitializedEvent as OracleInitializedEvent, OracleState$2 as OracleState, type index$5_OracleUpdateAsyncInput as OracleUpdateAsyncInput, type index$5_OracleUpdateInput as OracleUpdateInput, type index$5_OracleUpdateInstruction as OracleUpdateInstruction, type index$5_OracleUpdateInstructionData as OracleUpdateInstructionData, type index$5_OracleUpdateInstructionDataArgs as OracleUpdateInstructionDataArgs, index$5_OracleUpdatedEvent as OracleUpdatedEvent, index$5_OracleWithAddress as OracleWithAddress, index$5_PAUSE_DISCRIMINATOR as PAUSE_DISCRIMINATOR, index$5_PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR as PREVIEW_SWAP_EXACT_IN_DISCRIMINATOR, type index$5_ParsedAddLiquidityInstruction as ParsedAddLiquidityInstruction, type index$5_ParsedClosePositionInstruction as ParsedClosePositionInstruction, type index$5_ParsedCollectFeesInstruction as ParsedCollectFeesInstruction, type index$5_ParsedCollectProtocolFeesInstruction as ParsedCollectProtocolFeesInstruction, type index$5_ParsedCreatePositionInstruction as ParsedCreatePositionInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedInitializeOracleInstruction$1 as ParsedInitializeOracleInstruction, type index$5_ParsedInitializePoolInstruction as ParsedInitializePoolInstruction, type index$5_ParsedInitializeSpotPoolInstruction as ParsedInitializeSpotPoolInstruction, type index$5_ParsedOracleConsultInstruction as ParsedOracleConsultInstruction, type index$5_ParsedOracleUpdateInstruction as ParsedOracleUpdateInstruction, type index$5_ParsedPauseInstruction as ParsedPauseInstruction, type index$5_ParsedPreviewSwapExactInInstruction as ParsedPreviewSwapExactInInstruction, type index$5_ParsedRedeemProtocolSharesInstruction as ParsedRedeemProtocolSharesInstruction, type index$5_ParsedRemoveLiquidityInstruction as ParsedRemoveLiquidityInstruction, type index$5_ParsedSetFeesInstruction as ParsedSetFeesInstruction, type index$5_ParsedSetHookInstruction as ParsedSetHookInstruction, type index$5_ParsedSwapExactInInstruction as ParsedSwapExactInInstruction, type index$5_ParsedTransferAdminInstruction as ParsedTransferAdminInstruction, type index$5_ParsedUnpauseInstruction as ParsedUnpauseInstruction, type index$5_ParsedUpdateConfigInstruction as ParsedUpdateConfigInstruction, type index$5_ParsedWithdrawVaultExcessInstruction as ParsedWithdrawVaultExcessInstruction, type index$5_PauseInput as PauseInput, type index$5_PauseInstruction as PauseInstruction, type index$5_PauseInstructionData as PauseInstructionData, type index$5_PauseInstructionDataArgs as PauseInstructionDataArgs, index$5_PausedEvent as PausedEvent, index$5_Pool as Pool, index$5_PoolInitializedEvent as PoolInitializedEvent, type index$5_PoolWithAddress as PoolWithAddress, index$5_Position as Position, index$5_PositionClosedEvent as PositionClosedEvent, index$5_PositionCreatedEvent as PositionCreatedEvent, index$5_PositionValue as PositionValue, index$5_PositionWithAddress as PositionWithAddress, type index$5_PreviewSwapExactInInput as PreviewSwapExactInInput, type index$5_PreviewSwapExactInInstruction as PreviewSwapExactInInstruction, type index$5_PreviewSwapExactInInstructionData as PreviewSwapExactInInstructionData, type index$5_PreviewSwapExactInInstructionDataArgs as PreviewSwapExactInInstructionDataArgs, index$5_Q64_ONE as Q64_ONE, index$5_REDEEM_PROTOCOL_SHARES_DISCRIMINATOR as REDEEM_PROTOCOL_SHARES_DISCRIMINATOR, index$5_REMOVE_LIQUIDITY_DISCRIMINATOR as REMOVE_LIQUIDITY_DISCRIMINATOR, type index$5_RedeemProtocolSharesAsyncInput as RedeemProtocolSharesAsyncInput, type index$5_RedeemProtocolSharesInput as RedeemProtocolSharesInput, type index$5_RedeemProtocolSharesInstruction as RedeemProtocolSharesInstruction, type index$5_RedeemProtocolSharesInstructionData as RedeemProtocolSharesInstructionData, type index$5_RedeemProtocolSharesInstructionDataArgs as RedeemProtocolSharesInstructionDataArgs, type index$5_RemainingAccount as RemainingAccount, index$5_RemoveLiquidityArgs as RemoveLiquidityArgs, type index$5_RemoveLiquidityAsyncInput as RemoveLiquidityAsyncInput, index$5_RemoveLiquidityEvent as RemoveLiquidityEvent, type index$5_RemoveLiquidityInput as RemoveLiquidityInput, type index$5_RemoveLiquidityInstruction as RemoveLiquidityInstruction, type index$5_RemoveLiquidityInstructionData as RemoveLiquidityInstructionData, type index$5_RemoveLiquidityInstructionDataArgs as RemoveLiquidityInstructionDataArgs, index$5_RemoveLiquidityQuote as RemoveLiquidityQuote, index$5_SEED_AUTHORITY as SEED_AUTHORITY, SEED_CONFIG$1 as SEED_CONFIG, index$5_SEED_ORACLE as SEED_ORACLE, index$5_SEED_POOL as SEED_POOL, index$5_SEED_POSITION as SEED_POSITION, index$5_SEED_PROTOCOL_FEE_OWNER as SEED_PROTOCOL_FEE_OWNER, index$5_SEED_SPOT_POOL as SEED_SPOT_POOL, index$5_SET_FEES_DISCRIMINATOR as SET_FEES_DISCRIMINATOR, index$5_SET_HOOK_DISCRIMINATOR as SET_HOOK_DISCRIMINATOR, index$5_SWAP_EXACT_IN_DISCRIMINATOR as SWAP_EXACT_IN_DISCRIMINATOR, index$5_SetFeesArgs as SetFeesArgs, type index$5_SetFeesInput as SetFeesInput, type index$5_SetFeesInstruction as SetFeesInstruction, type index$5_SetFeesInstructionData as SetFeesInstructionData, type index$5_SetFeesInstructionDataArgs as SetFeesInstructionDataArgs, index$5_SetHookArgs as SetHookArgs, type index$5_SetHookInput as SetHookInput, type index$5_SetHookInstruction as SetHookInstruction, type index$5_SetHookInstructionData as SetHookInstructionData, type index$5_SetHookInstructionDataArgs as SetHookInstructionDataArgs, index$5_SwapEvent as SwapEvent, index$5_SwapExactInArgs as SwapExactInArgs, type index$5_SwapExactInAsyncInput as SwapExactInAsyncInput, type SwapExactInInput$1 as SwapExactInInput, type index$5_SwapExactInInstruction as SwapExactInInstruction, type index$5_SwapExactInInstructionData as SwapExactInInstructionData, type index$5_SwapExactInInstructionDataArgs as SwapExactInInstructionDataArgs, index$5_SwapQuote as SwapQuote, index$5_SwapQuoteExactOut as SwapQuoteExactOut, index$5_TOKEN_METADATA_PROGRAM_ID as TOKEN_METADATA_PROGRAM_ID, index$5_TRANSFER_ADMIN_DISCRIMINATOR as TRANSFER_ADMIN_DISCRIMINATOR, index$5_TradeDirection as TradeDirection, index$5_TransferAdminArgs as TransferAdminArgs, type index$5_TransferAdminInput as TransferAdminInput, type index$5_TransferAdminInstruction as TransferAdminInstruction, type index$5_TransferAdminInstructionData as TransferAdminInstructionData, type index$5_TransferAdminInstructionDataArgs as TransferAdminInstructionDataArgs, index$5_TwapResult as TwapResult, index$5_UNPAUSE_DISCRIMINATOR as UNPAUSE_DISCRIMINATOR, index$5_UPDATE_CONFIG_DISCRIMINATOR as UPDATE_CONFIG_DISCRIMINATOR, type index$5_UnpauseInput as UnpauseInput, type index$5_UnpauseInstruction as UnpauseInstruction, type index$5_UnpauseInstructionData as UnpauseInstructionData, type index$5_UnpauseInstructionDataArgs as UnpauseInstructionDataArgs, index$5_UnpausedEvent as UnpausedEvent, type index$5_UpdateConfigInput as UpdateConfigInput, type index$5_UpdateConfigInstruction as UpdateConfigInstruction, type index$5_UpdateConfigInstructionData as UpdateConfigInstructionData, type index$5_UpdateConfigInstructionDataArgs as UpdateConfigInstructionDataArgs, index$5_VaultExcessWithdrawnEvent as VaultExcessWithdrawnEvent, index$5_WITHDRAW_VAULT_EXCESS_DISCRIMINATOR as WITHDRAW_VAULT_EXCESS_DISCRIMINATOR, type index$5_WithdrawVaultExcessAsyncInput as WithdrawVaultExcessAsyncInput, type index$5_WithdrawVaultExcessInput as WithdrawVaultExcessInput, type index$5_WithdrawVaultExcessInstruction as WithdrawVaultExcessInstruction, type index$5_WithdrawVaultExcessInstructionData as WithdrawVaultExcessInstructionData, type index$5_WithdrawVaultExcessInstructionDataArgs as WithdrawVaultExcessInstructionDataArgs, index$5_addLiquidityArgsCodec as addLiquidityArgsCodec, index$5_addressToBase58EncodedBytes as addressToBase58EncodedBytes, index$5_ammConfigDataCodec as ammConfigDataCodec, index$5_areMintsOrdered as areMintsOrdered, index$5_base64ToBytes as base64ToBytes, index$5_bytesToBase64 as bytesToBase64, index$5_bytesToBase64EncodedBytes as bytesToBase64EncodedBytes, index$5_calculateAccruedFees as calculateAccruedFees, index$5_calculateTwap as calculateTwap, index$5_calculateTwapNumber as calculateTwapNumber, index$5_ceilDiv as ceilDiv, index$5_collectFeesArgsCodec as collectFeesArgsCodec, index$5_collectProtocolFeesArgsCodec as collectProtocolFeesArgsCodec, index$5_comparePoolAndOraclePrices as comparePoolAndOraclePrices, index$5_computePrice0Q64 as computePrice0Q64, index$5_computePrice1Q64 as computePrice1Q64, index$5_consultTwap as consultTwap, index$5_createAccountMeta as createAccountMeta, getAddLiquidityInstruction as createAddLiquidityInstruction, getClosePositionInstruction as createClosePositionInstruction, getCollectFeesInstruction as createCollectFeesInstruction, getCollectProtocolFeesInstruction as createCollectProtocolFeesInstruction, getCreatePositionInstruction as createCreatePositionInstruction, getInitializeConfigInstruction$1 as createInitializeConfigInstruction, getInitializeOracleInstruction$1 as createInitializeOracleInstruction, getInitializePoolInstruction as createInitializePoolInstruction, getOracleConsultInstruction as createOracleConsultInstruction, getOracleUpdateInstruction as createOracleUpdateInstruction, getPauseInstruction as createPauseInstruction, index$5_createPositionArgsCodec as createPositionArgsCodec, index$5_createReadonlyRemainingAccountMeta as createReadonlyRemainingAccountMeta, getRemoveLiquidityInstruction as createRemoveLiquidityInstruction, getSetFeesInstruction as createSetFeesInstruction, getSetHookInstruction as createSetHookInstruction, getSwapExactInInstruction as createSwapExactInInstruction, index$5_createSwapInstruction as createSwapInstruction, getTransferAdminInstruction as createTransferAdminInstruction, getUnpauseInstruction as createUnpauseInstruction, getWithdrawVaultExcessInstruction as createWithdrawVaultExcessInstruction, index$5_curveParamsToMarketCap as curveParamsToMarketCap, index$5_decodeAmmConfig as decodeAmmConfig, decodeOracleState$2 as decodeOracleState, index$5_decodePool as decodePool, index$5_decodePosition as decodePosition, index$5_encodeAddLiquidityArgs as encodeAddLiquidityArgs, index$5_encodeCollectFeesArgs as encodeCollectFeesArgs, index$5_encodeCollectProtocolFeesArgs as encodeCollectProtocolFeesArgs, index$5_encodeCreatePositionArgs as encodeCreatePositionArgs, index$5_encodeInitializeConfigArgs as encodeInitializeConfigArgs, index$5_encodeInitializeOracleArgs as encodeInitializeOracleArgs, index$5_encodeInitializePoolArgs as encodeInitializePoolArgs, index$5_encodeInstructionData as encodeInstructionData, index$5_encodeOracleConsultArgs as encodeOracleConsultArgs, index$5_encodeRemoveLiquidityArgs as encodeRemoveLiquidityArgs, index$5_encodeSetFeesArgs as encodeSetFeesArgs, index$5_encodeSetHookArgs as encodeSetHookArgs, index$5_encodeSwapExactInArgs as encodeSwapExactInArgs, index$5_encodeTransferAdminArgs as encodeTransferAdminArgs, index$5_fetchAllPools as fetchAllPools, index$5_fetchConfig as fetchConfig, index$5_fetchConfigWithAddress as fetchConfigWithAddress, index$5_fetchOracle as fetchOracle, index$5_fetchOraclesBatch as fetchOraclesBatch, index$5_fetchPool as fetchPool, index$5_fetchPoolPositions as fetchPoolPositions, index$5_fetchPoolsBatch as fetchPoolsBatch, index$5_fetchPosition as fetchPosition, index$5_fetchPositionByParams as fetchPositionByParams, index$5_fetchPositionsBatch as fetchPositionsBatch, index$5_fetchUserPositions as fetchUserPositions, index$5_filterActivePositions as filterActivePositions, index$5_filterPoolsByMint as filterPoolsByMint, index$5_getAddLiquidityDiscriminatorBytes as getAddLiquidityDiscriminatorBytes, index$5_getAddLiquidityInstruction as getAddLiquidityInstruction, index$5_getAddLiquidityInstructionAsync as getAddLiquidityInstructionAsync, index$5_getAddLiquidityInstructionDataCodec as getAddLiquidityInstructionDataCodec, index$5_getAddLiquidityInstructionDataDecoder as getAddLiquidityInstructionDataDecoder, index$5_getAddLiquidityInstructionDataEncoder as getAddLiquidityInstructionDataEncoder, index$5_getAddLiquidityQuote as getAddLiquidityQuote, index$5_getAddressFromAddressOrSigner as getAddressFromAddressOrSigner, index$5_getAddressFromRemainingAccount as getAddressFromRemainingAccount, index$5_getClosePositionDiscriminatorBytes as getClosePositionDiscriminatorBytes, index$5_getClosePositionInstruction as getClosePositionInstruction, index$5_getClosePositionInstructionDataCodec as getClosePositionInstructionDataCodec, index$5_getClosePositionInstructionDataDecoder as getClosePositionInstructionDataDecoder, index$5_getClosePositionInstructionDataEncoder as getClosePositionInstructionDataEncoder, index$5_getCollectFeesDiscriminatorBytes as getCollectFeesDiscriminatorBytes, index$5_getCollectFeesInstruction as getCollectFeesInstruction, index$5_getCollectFeesInstructionAsync as getCollectFeesInstructionAsync, index$5_getCollectFeesInstructionDataCodec as getCollectFeesInstructionDataCodec, index$5_getCollectFeesInstructionDataDecoder as getCollectFeesInstructionDataDecoder, index$5_getCollectFeesInstructionDataEncoder as getCollectFeesInstructionDataEncoder, index$5_getCollectProtocolFeesDiscriminatorBytes as getCollectProtocolFeesDiscriminatorBytes, index$5_getCollectProtocolFeesInstruction as getCollectProtocolFeesInstruction, index$5_getCollectProtocolFeesInstructionAsync as getCollectProtocolFeesInstructionAsync, index$5_getCollectProtocolFeesInstructionDataCodec as getCollectProtocolFeesInstructionDataCodec, index$5_getCollectProtocolFeesInstructionDataDecoder as getCollectProtocolFeesInstructionDataDecoder, index$5_getCollectProtocolFeesInstructionDataEncoder as getCollectProtocolFeesInstructionDataEncoder, getConfigAddress$1 as getConfigAddress, index$5_getCreatePositionDiscriminatorBytes as getCreatePositionDiscriminatorBytes, index$5_getCreatePositionInstruction as getCreatePositionInstruction, index$5_getCreatePositionInstructionAsync as getCreatePositionInstructionAsync, index$5_getCreatePositionInstructionDataCodec as getCreatePositionInstructionDataCodec, index$5_getCreatePositionInstructionDataDecoder as getCreatePositionInstructionDataDecoder, index$5_getCreatePositionInstructionDataEncoder as getCreatePositionInstructionDataEncoder, index$5_getErrorMessage as getErrorMessage, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getInitializeOracleDiscriminatorBytes$1 as getInitializeOracleDiscriminatorBytes, getInitializeOracleInstruction$1 as getInitializeOracleInstruction, index$5_getInitializeOracleInstructionAsync as getInitializeOracleInstructionAsync, getInitializeOracleInstructionDataCodec$1 as getInitializeOracleInstructionDataCodec, getInitializeOracleInstructionDataDecoder$1 as getInitializeOracleInstructionDataDecoder, getInitializeOracleInstructionDataEncoder$1 as getInitializeOracleInstructionDataEncoder, index$5_getInitializePoolDiscriminatorBytes as getInitializePoolDiscriminatorBytes, index$5_getInitializePoolInstruction as getInitializePoolInstruction, index$5_getInitializePoolInstructionAsync as getInitializePoolInstructionAsync, index$5_getInitializePoolInstructionDataCodec as getInitializePoolInstructionDataCodec, index$5_getInitializePoolInstructionDataDecoder as getInitializePoolInstructionDataDecoder, index$5_getInitializePoolInstructionDataEncoder as getInitializePoolInstructionDataEncoder, index$5_getInitializeSpotPoolDiscriminatorBytes as getInitializeSpotPoolDiscriminatorBytes, index$5_getInitializeSpotPoolInstruction as getInitializeSpotPoolInstruction, index$5_getInitializeSpotPoolInstructionAsync as getInitializeSpotPoolInstructionAsync, index$5_getInitializeSpotPoolInstructionDataCodec as getInitializeSpotPoolInstructionDataCodec, index$5_getInitializeSpotPoolInstructionDataDecoder as getInitializeSpotPoolInstructionDataDecoder, index$5_getInitializeSpotPoolInstructionDataEncoder as getInitializeSpotPoolInstructionDataEncoder, index$5_getK as getK, index$5_getLiquidityAddresses as getLiquidityAddresses, index$5_getMetadataAddress as getMetadataAddress, index$5_getOracleAddress as getOracleAddress, index$5_getOracleAddressFromPool as getOracleAddressFromPool, index$5_getOracleAge as getOracleAge, index$5_getOracleBufferStats as getOracleBufferStats, index$5_getOracleConsultDiscriminatorBytes as getOracleConsultDiscriminatorBytes, index$5_getOracleConsultInstruction as getOracleConsultInstruction, index$5_getOracleConsultInstructionAsync as getOracleConsultInstructionAsync, index$5_getOracleConsultInstructionDataCodec as getOracleConsultInstructionDataCodec, index$5_getOracleConsultInstructionDataDecoder as getOracleConsultInstructionDataDecoder, index$5_getOracleConsultInstructionDataEncoder as getOracleConsultInstructionDataEncoder, index$5_getOracleDeviation as getOracleDeviation, index$5_getOracleForPool as getOracleForPool, index$5_getOracleSpotPrices as getOracleSpotPrices, index$5_getOracleUpdateDiscriminatorBytes as getOracleUpdateDiscriminatorBytes, index$5_getOracleUpdateInstruction as getOracleUpdateInstruction, index$5_getOracleUpdateInstructionAsync as getOracleUpdateInstructionAsync, index$5_getOracleUpdateInstructionDataCodec as getOracleUpdateInstructionDataCodec, index$5_getOracleUpdateInstructionDataDecoder as getOracleUpdateInstructionDataDecoder, index$5_getOracleUpdateInstructionDataEncoder as getOracleUpdateInstructionDataEncoder, index$5_getPauseDiscriminatorBytes as getPauseDiscriminatorBytes, index$5_getPauseInstruction as getPauseInstruction, index$5_getPauseInstructionDataCodec as getPauseInstructionDataCodec, index$5_getPauseInstructionDataDecoder as getPauseInstructionDataDecoder, index$5_getPauseInstructionDataEncoder as getPauseInstructionDataEncoder, index$5_getPendingFees as getPendingFees, index$5_getPoolAddress as getPoolAddress, index$5_getPoolAddressFromMints as getPoolAddressFromMints, index$5_getPoolAuthorityAddress as getPoolAuthorityAddress, index$5_getPoolByMints as getPoolByMints, index$5_getPoolInitAddresses as getPoolInitAddresses, index$5_getPoolVault0Address as getPoolVault0Address, index$5_getPoolVault1Address as getPoolVault1Address, index$5_getPositionAddress as getPositionAddress, index$5_getPositionAddressFromParams as getPositionAddressFromParams, index$5_getPositionValue as getPositionValue, index$5_getPreviewSwapExactInDiscriminatorBytes as getPreviewSwapExactInDiscriminatorBytes, index$5_getPreviewSwapExactInInstruction as getPreviewSwapExactInInstruction, index$5_getPreviewSwapExactInInstructionDataCodec as getPreviewSwapExactInInstructionDataCodec, index$5_getPreviewSwapExactInInstructionDataDecoder as getPreviewSwapExactInInstructionDataDecoder, index$5_getPreviewSwapExactInInstructionDataEncoder as getPreviewSwapExactInInstructionDataEncoder, index$5_getProtocolFeeOwnerAddress as getProtocolFeeOwnerAddress, index$5_getProtocolFeePositionAddress as getProtocolFeePositionAddress, index$5_getRedeemProtocolSharesDiscriminatorBytes as getRedeemProtocolSharesDiscriminatorBytes, index$5_getRedeemProtocolSharesInstruction as getRedeemProtocolSharesInstruction, index$5_getRedeemProtocolSharesInstructionAsync as getRedeemProtocolSharesInstructionAsync, index$5_getRedeemProtocolSharesInstructionDataCodec as getRedeemProtocolSharesInstructionDataCodec, index$5_getRedeemProtocolSharesInstructionDataDecoder as getRedeemProtocolSharesInstructionDataDecoder, index$5_getRedeemProtocolSharesInstructionDataEncoder as getRedeemProtocolSharesInstructionDataEncoder, index$5_getRemoveLiquidityDiscriminatorBytes as getRemoveLiquidityDiscriminatorBytes, index$5_getRemoveLiquidityInstruction as getRemoveLiquidityInstruction, index$5_getRemoveLiquidityInstructionAsync as getRemoveLiquidityInstructionAsync, index$5_getRemoveLiquidityInstructionDataCodec as getRemoveLiquidityInstructionDataCodec, index$5_getRemoveLiquidityInstructionDataDecoder as getRemoveLiquidityInstructionDataDecoder, index$5_getRemoveLiquidityInstructionDataEncoder as getRemoveLiquidityInstructionDataEncoder, index$5_getRemoveLiquidityQuote as getRemoveLiquidityQuote, index$5_getSetFeesDiscriminatorBytes as getSetFeesDiscriminatorBytes, index$5_getSetFeesInstruction as getSetFeesInstruction, index$5_getSetFeesInstructionDataCodec as getSetFeesInstructionDataCodec, index$5_getSetFeesInstructionDataDecoder as getSetFeesInstructionDataDecoder, index$5_getSetFeesInstructionDataEncoder as getSetFeesInstructionDataEncoder, index$5_getSetHookDiscriminatorBytes as getSetHookDiscriminatorBytes, index$5_getSetHookInstruction as getSetHookInstruction, index$5_getSetHookInstructionDataCodec as getSetHookInstructionDataCodec, index$5_getSetHookInstructionDataDecoder as getSetHookInstructionDataDecoder, index$5_getSetHookInstructionDataEncoder as getSetHookInstructionDataEncoder, index$5_getSpotPoolAddress as getSpotPoolAddress, index$5_getSpotPrice0 as getSpotPrice0, index$5_getSpotPrice1 as getSpotPrice1, index$5_getSwapAddresses as getSwapAddresses, index$5_getSwapExactInDiscriminatorBytes as getSwapExactInDiscriminatorBytes, index$5_getSwapExactInInstruction as getSwapExactInInstruction, index$5_getSwapExactInInstructionAsync as getSwapExactInInstructionAsync, index$5_getSwapExactInInstructionDataCodec as getSwapExactInInstructionDataCodec, index$5_getSwapExactInInstructionDataDecoder as getSwapExactInInstructionDataDecoder, index$5_getSwapExactInInstructionDataEncoder as getSwapExactInInstructionDataEncoder, index$5_getSwapQuote as getSwapQuote, index$5_getSwapQuoteExactOut as getSwapQuoteExactOut, index$5_getTransferAdminDiscriminatorBytes as getTransferAdminDiscriminatorBytes, index$5_getTransferAdminInstruction as getTransferAdminInstruction, index$5_getTransferAdminInstructionDataCodec as getTransferAdminInstructionDataCodec, index$5_getTransferAdminInstructionDataDecoder as getTransferAdminInstructionDataDecoder, index$5_getTransferAdminInstructionDataEncoder as getTransferAdminInstructionDataEncoder, index$5_getTvl as getTvl, index$5_getUnpauseDiscriminatorBytes as getUnpauseDiscriminatorBytes, index$5_getUnpauseInstruction as getUnpauseInstruction, index$5_getUnpauseInstructionDataCodec as getUnpauseInstructionDataCodec, index$5_getUnpauseInstructionDataDecoder as getUnpauseInstructionDataDecoder, index$5_getUnpauseInstructionDataEncoder as getUnpauseInstructionDataEncoder, index$5_getUpdateConfigDiscriminatorBytes as getUpdateConfigDiscriminatorBytes, index$5_getUpdateConfigInstruction as getUpdateConfigInstruction, index$5_getUpdateConfigInstructionDataCodec as getUpdateConfigInstructionDataCodec, index$5_getUpdateConfigInstructionDataDecoder as getUpdateConfigInstructionDataDecoder, index$5_getUpdateConfigInstructionDataEncoder as getUpdateConfigInstructionDataEncoder, index$5_getWithdrawVaultExcessDiscriminatorBytes as getWithdrawVaultExcessDiscriminatorBytes, index$5_getWithdrawVaultExcessInstruction as getWithdrawVaultExcessInstruction, index$5_getWithdrawVaultExcessInstructionAsync as getWithdrawVaultExcessInstructionAsync, index$5_getWithdrawVaultExcessInstructionDataCodec as getWithdrawVaultExcessInstructionDataCodec, index$5_getWithdrawVaultExcessInstructionDataDecoder as getWithdrawVaultExcessInstructionDataDecoder, index$5_getWithdrawVaultExcessInstructionDataEncoder as getWithdrawVaultExcessInstructionDataEncoder, index$5_initializeConfigArgsCodec as initializeConfigArgsCodec, index$5_initializeOracleArgsCodec as initializeOracleArgsCodec, index$5_initializePoolArgsCodec as initializePoolArgsCodec, index$5_isCpmmError as isCpmmError, index$5_isOracleStale as isOracleStale, index$5_isTransactionSigner as isTransactionSigner, index$5_isqrt as isqrt, index$5_marketCapToCurveParams as marketCapToCurveParams, index$5_marketCapToSingleCurveParams as marketCapToSingleCurveParams, index$5_marketCapToTokenPrice as marketCapToTokenPrice, index$5_maxBigInt as maxBigInt, index$5_minBigInt as minBigInt, index$5_normalizeProgramAccountsResponse as normalizeProgramAccountsResponse, index$5_numberToQ64 as numberToQ64, index$5_observationCodec as observationCodec, index$5_oracleConsultArgsCodec as oracleConsultArgsCodec, index$5_oracleStateDataCodec as oracleStateDataCodec, index$5_parseAddLiquidityInstruction as parseAddLiquidityInstruction, index$5_parseClosePositionInstruction as parseClosePositionInstruction, index$5_parseCollectFeesInstruction as parseCollectFeesInstruction, index$5_parseCollectProtocolFeesInstruction as parseCollectProtocolFeesInstruction, index$5_parseCreatePositionInstruction as parseCreatePositionInstruction, index$5_parseErrorFromLogs as parseErrorFromLogs, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseInitializeOracleInstruction$1 as parseInitializeOracleInstruction, index$5_parseInitializePoolInstruction as parseInitializePoolInstruction, index$5_parseInitializeSpotPoolInstruction as parseInitializeSpotPoolInstruction, index$5_parseOracleConsultInstruction as parseOracleConsultInstruction, index$5_parseOracleUpdateInstruction as parseOracleUpdateInstruction, index$5_parsePauseInstruction as parsePauseInstruction, index$5_parsePreviewSwapExactInInstruction as parsePreviewSwapExactInInstruction, index$5_parseRedeemProtocolSharesInstruction as parseRedeemProtocolSharesInstruction, index$5_parseRemoveLiquidityInstruction as parseRemoveLiquidityInstruction, index$5_parseSetFeesInstruction as parseSetFeesInstruction, index$5_parseSetHookInstruction as parseSetHookInstruction, index$5_parseSwapExactInInstruction as parseSwapExactInInstruction, index$5_parseTransferAdminInstruction as parseTransferAdminInstruction, index$5_parseUnpauseInstruction as parseUnpauseInstruction, index$5_parseUpdateConfigInstruction as parseUpdateConfigInstruction, index$5_parseWithdrawVaultExcessInstruction as parseWithdrawVaultExcessInstruction, index$5_poolDataCodec as poolDataCodec, index$5_poolExists as poolExists, index$5_positionDataCodec as positionDataCodec, index$5_q64Div as q64Div, index$5_q64Mul as q64Mul, index$5_q64ToNumber as q64ToNumber, index$5_ratioToNumber as ratioToNumber, index$5_removeLiquidityArgsCodec as removeLiquidityArgsCodec, index$5_setFeesArgsCodec as setFeesArgsCodec, index$5_setHookArgsCodec as setHookArgsCodec, index$5_sortMints as sortMints, index$5_sortPoolsByReserves as sortPoolsByReserves, index$5_sortPositionsByShares as sortPositionsByShares, index$5_swapExactInArgsCodec as swapExactInArgsCodec, index$5_transferAdminArgsCodec as transferAdminArgsCodec, index$5_validateMarketCapParameters as validateMarketCapParameters, index$5_warnAccountDecodeFailure as warnAccountDecodeFailure };
2806
2942
  }
2807
2943
 
2808
2944
  /**
@@ -2813,9 +2949,9 @@ declare namespace index$6 {
2813
2949
  * @see https://github.com/codama-idl/codama
2814
2950
  */
2815
2951
 
2816
- declare const COSIGNER_CONFIG_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
2817
- declare function getCosignerConfigDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
2818
- type CosignerConfig$1 = {
2952
+ declare const COSIGNER_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
2953
+ declare function getCosignerConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
2954
+ type CosignerConfig = {
2819
2955
  discriminator: ReadonlyUint8Array;
2820
2956
  adminAuthority: Address;
2821
2957
  cosignerCount: number;
@@ -2824,7 +2960,7 @@ type CosignerConfig$1 = {
2824
2960
  reserved: ReadonlyUint8Array;
2825
2961
  cosigners: Array<Address>;
2826
2962
  };
2827
- type CosignerConfigArgs$1 = {
2963
+ type CosignerConfigArgs = {
2828
2964
  adminAuthority: Address;
2829
2965
  cosignerCount: number;
2830
2966
  bump: number;
@@ -2833,18 +2969,18 @@ type CosignerConfigArgs$1 = {
2833
2969
  cosigners: Array<Address>;
2834
2970
  };
2835
2971
  /** Gets the encoder for {@link CosignerConfigArgs} account data. */
2836
- declare function getCosignerConfigEncoder$1(): FixedSizeEncoder<CosignerConfigArgs$1>;
2972
+ declare function getCosignerConfigEncoder(): FixedSizeEncoder<CosignerConfigArgs>;
2837
2973
  /** Gets the decoder for {@link CosignerConfig} account data. */
2838
- declare function getCosignerConfigDecoder$1(): FixedSizeDecoder<CosignerConfig$1>;
2974
+ declare function getCosignerConfigDecoder(): FixedSizeDecoder<CosignerConfig>;
2839
2975
  /** Gets the codec for {@link CosignerConfig} account data. */
2840
- declare function getCosignerConfigCodec$1(): FixedSizeCodec<CosignerConfigArgs$1, CosignerConfig$1>;
2841
- declare function decodeCosignerConfig$1<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig$1, TAddress>;
2842
- declare function decodeCosignerConfig$1<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig$1, TAddress>;
2843
- declare function fetchCosignerConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig$1, TAddress>>;
2844
- declare function fetchMaybeCosignerConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig$1, TAddress>>;
2845
- declare function fetchAllCosignerConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig$1>[]>;
2846
- declare function fetchAllMaybeCosignerConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig$1>[]>;
2847
- declare function getCosignerConfigSize$1(): number;
2976
+ declare function getCosignerConfigCodec(): FixedSizeCodec<CosignerConfigArgs, CosignerConfig>;
2977
+ declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig, TAddress>;
2978
+ declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig, TAddress>;
2979
+ declare function fetchCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig, TAddress>>;
2980
+ declare function fetchMaybeCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig, TAddress>>;
2981
+ declare function fetchAllCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig>[]>;
2982
+ declare function fetchAllMaybeCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig>[]>;
2983
+ declare function getCosignerConfigSize(): number;
2848
2984
 
2849
2985
  /**
2850
2986
  * This code was AUTOGENERATED using the Codama library.
@@ -2854,21 +2990,31 @@ declare function getCosignerConfigSize$1(): number;
2854
2990
  * @see https://github.com/codama-idl/codama
2855
2991
  */
2856
2992
 
2993
+ /** InvalidInstructionData: Invalid instruction data */
2994
+ declare const CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA = 6000;
2995
+ /** InvalidScheduleData: Invalid schedule payload */
2996
+ declare const CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA = 6001;
2997
+ /** InvalidFee: Invalid fee */
2998
+ declare const CPMM_HOOK_ERROR__INVALID_FEE = 6002;
2999
+ /** InvalidDuration: Invalid fee duration */
3000
+ declare const CPMM_HOOK_ERROR__INVALID_DURATION = 6003;
3001
+ /** ArithmeticOverflow: Arithmetic overflow */
3002
+ declare const CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW = 6004;
3003
+ /** InvalidAuthority: Invalid hook authority */
3004
+ declare const CPMM_HOOK_ERROR__INVALID_AUTHORITY = 6005;
2857
3005
  /** InvalidConfig: Invalid cosigner hook config */
2858
- declare const COSIGNER_HOOK_ERROR__INVALID_CONFIG = 6000;
2859
- /** InvalidAuthority: Invalid cosigner hook authority */
2860
- declare const COSIGNER_HOOK_ERROR__INVALID_AUTHORITY = 6001;
3006
+ declare const CPMM_HOOK_ERROR__INVALID_CONFIG = 6006;
2861
3007
  /** InvalidCosigner: Invalid cosigner key */
2862
- declare const COSIGNER_HOOK_ERROR__INVALID_COSIGNER = 6002;
3008
+ declare const CPMM_HOOK_ERROR__INVALID_COSIGNER = 6007;
2863
3009
  /** CosignerAlreadyExists: Cosigner already exists */
2864
- declare const COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6003;
3010
+ declare const CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6008;
2865
3011
  /** CosignerNotFound: Cosigner not found */
2866
- declare const COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND = 6004;
3012
+ declare const CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND = 6009;
2867
3013
  /** CosignerListFull: Cosigner list is full */
2868
- declare const COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL = 6005;
2869
- type CosignerHookError = typeof COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL | typeof COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof COSIGNER_HOOK_ERROR__INVALID_AUTHORITY | typeof COSIGNER_HOOK_ERROR__INVALID_CONFIG | typeof COSIGNER_HOOK_ERROR__INVALID_COSIGNER;
2870
- declare function getCosignerHookErrorMessage(code: CosignerHookError): string;
2871
- declare function isCosignerHookError<TProgramErrorCode extends CosignerHookError>(error: unknown, transactionMessage: {
3014
+ declare const CPMM_HOOK_ERROR__COSIGNER_LIST_FULL = 6010;
3015
+ type CpmmHookError = typeof CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW | typeof CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof CPMM_HOOK_ERROR__COSIGNER_LIST_FULL | typeof CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof CPMM_HOOK_ERROR__INVALID_AUTHORITY | typeof CPMM_HOOK_ERROR__INVALID_CONFIG | typeof CPMM_HOOK_ERROR__INVALID_COSIGNER | typeof CPMM_HOOK_ERROR__INVALID_DURATION | typeof CPMM_HOOK_ERROR__INVALID_FEE | typeof CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA | typeof CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA;
3016
+ declare function getCpmmHookErrorMessage(code: CpmmHookError): string;
3017
+ declare function isCpmmHookError<TProgramErrorCode extends CpmmHookError>(error: unknown, transactionMessage: {
2872
3018
  instructions: Record<number, {
2873
3019
  programAddress: Address;
2874
3020
  }>;
@@ -2886,50 +3032,50 @@ declare function isCosignerHookError<TProgramErrorCode extends CosignerHookError
2886
3032
  * @see https://github.com/codama-idl/codama
2887
3033
  */
2888
3034
 
2889
- declare const COSIGNER_HOOK_PROGRAM_ADDRESS: Address<"JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt">;
2890
- declare enum CosignerHookAccount {
3035
+ declare const CPMM_HOOK_PROGRAM_ADDRESS: Address<"HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i">;
3036
+ declare enum CpmmHookAccount {
2891
3037
  CosignerConfig = 0
2892
3038
  }
2893
- declare function identifyCosignerHookAccount(account: {
3039
+ declare function identifyCpmmHookAccount(account: {
2894
3040
  data: ReadonlyUint8Array;
2895
- } | ReadonlyUint8Array): CosignerHookAccount;
2896
- declare enum CosignerHookInstruction {
3041
+ } | ReadonlyUint8Array): CpmmHookAccount;
3042
+ declare enum CpmmHookInstruction {
2897
3043
  AddCosigner = 0,
2898
3044
  InitializeConfig = 1,
2899
3045
  RemoveCosigner = 2,
2900
3046
  SetAuthority = 3
2901
3047
  }
2902
- declare function identifyCosignerHookInstruction(instruction: {
3048
+ declare function identifyCpmmHookInstruction(instruction: {
2903
3049
  data: ReadonlyUint8Array;
2904
- } | ReadonlyUint8Array): CosignerHookInstruction;
2905
- type ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ({
2906
- instructionType: CosignerHookInstruction.AddCosigner;
2907
- } & ParsedAddCosignerInstruction$1<TProgram>) | ({
2908
- instructionType: CosignerHookInstruction.InitializeConfig;
2909
- } & ParsedInitializeConfigInstruction$1<TProgram>) | ({
2910
- instructionType: CosignerHookInstruction.RemoveCosigner;
2911
- } & ParsedRemoveCosignerInstruction$1<TProgram>) | ({
2912
- instructionType: CosignerHookInstruction.SetAuthority;
2913
- } & ParsedSetAuthorityInstruction$1<TProgram>);
2914
- declare function parseCosignerHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedCosignerHookInstruction<TProgram>;
2915
- type CosignerHookPlugin = {
2916
- accounts: CosignerHookPluginAccounts;
2917
- instructions: CosignerHookPluginInstructions;
2918
- };
2919
- type CosignerHookPluginAccounts = {
2920
- cosignerConfig: ReturnType<typeof getCosignerConfigCodec$1> & SelfFetchFunctions<CosignerConfigArgs$1, CosignerConfig$1>;
2921
- };
2922
- type CosignerHookPluginInstructions = {
2923
- addCosigner: (input: AddCosignerAsyncInput$1) => ReturnType<typeof getAddCosignerInstructionAsync$1> & SelfPlanAndSendFunctions;
2924
- initializeConfig: (input: MakeOptional$2<InitializeConfigAsyncInput$1, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync$1> & SelfPlanAndSendFunctions;
2925
- removeCosigner: (input: RemoveCosignerAsyncInput$1) => ReturnType<typeof getRemoveCosignerInstructionAsync$1> & SelfPlanAndSendFunctions;
2926
- setAuthority: (input: SetAuthorityAsyncInput$1) => ReturnType<typeof getSetAuthorityInstructionAsync$1> & SelfPlanAndSendFunctions;
2927
- };
2928
- type CosignerHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
2929
- declare function cosignerHookProgram(): <T extends CosignerHookPluginRequirements>(client: T) => T & {
2930
- cosignerHook: CosignerHookPlugin;
2931
- };
2932
- type MakeOptional$2<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
3050
+ } | ReadonlyUint8Array): CpmmHookInstruction;
3051
+ type ParsedCpmmHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ({
3052
+ instructionType: CpmmHookInstruction.AddCosigner;
3053
+ } & ParsedAddCosignerInstruction<TProgram>) | ({
3054
+ instructionType: CpmmHookInstruction.InitializeConfig;
3055
+ } & ParsedInitializeConfigInstruction<TProgram>) | ({
3056
+ instructionType: CpmmHookInstruction.RemoveCosigner;
3057
+ } & ParsedRemoveCosignerInstruction<TProgram>) | ({
3058
+ instructionType: CpmmHookInstruction.SetAuthority;
3059
+ } & ParsedSetAuthorityInstruction<TProgram>);
3060
+ declare function parseCpmmHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedCpmmHookInstruction<TProgram>;
3061
+ type CpmmHookPlugin = {
3062
+ accounts: CpmmHookPluginAccounts;
3063
+ instructions: CpmmHookPluginInstructions;
3064
+ };
3065
+ type CpmmHookPluginAccounts = {
3066
+ cosignerConfig: ReturnType<typeof getCosignerConfigCodec> & SelfFetchFunctions<CosignerConfigArgs, CosignerConfig>;
3067
+ };
3068
+ type CpmmHookPluginInstructions = {
3069
+ addCosigner: (input: AddCosignerAsyncInput) => ReturnType<typeof getAddCosignerInstructionAsync> & SelfPlanAndSendFunctions;
3070
+ initializeConfig: (input: MakeOptional$1<InitializeConfigAsyncInput, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync> & SelfPlanAndSendFunctions;
3071
+ removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType<typeof getRemoveCosignerInstructionAsync> & SelfPlanAndSendFunctions;
3072
+ setAuthority: (input: SetAuthorityAsyncInput) => ReturnType<typeof getSetAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
3073
+ };
3074
+ type CpmmHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
3075
+ declare function cpmmHookProgram(): <T extends CpmmHookPluginRequirements>(client: T) => T & {
3076
+ cpmmHook: CpmmHookPlugin;
3077
+ };
3078
+ type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2933
3079
 
2934
3080
  /**
2935
3081
  * This code was AUTOGENERATED using the Codama library.
@@ -2939,48 +3085,48 @@ type MakeOptional$2<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2939
3085
  * @see https://github.com/codama-idl/codama
2940
3086
  */
2941
3087
 
2942
- declare const ADD_COSIGNER_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
2943
- declare function getAddCosignerDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
2944
- type AddCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3088
+ declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3089
+ declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3090
+ type AddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2945
3091
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
2946
3092
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
2947
3093
  ...TRemainingAccounts
2948
3094
  ]>;
2949
- type AddCosignerInstructionData$1 = {
3095
+ type AddCosignerInstructionData = {
2950
3096
  discriminator: ReadonlyUint8Array;
2951
3097
  cosigner: Address;
2952
3098
  };
2953
- type AddCosignerInstructionDataArgs$1 = {
3099
+ type AddCosignerInstructionDataArgs = {
2954
3100
  cosigner: Address;
2955
3101
  };
2956
- declare function getAddCosignerInstructionDataEncoder$1(): FixedSizeEncoder<AddCosignerInstructionDataArgs$1>;
2957
- declare function getAddCosignerInstructionDataDecoder$1(): FixedSizeDecoder<AddCosignerInstructionData$1>;
2958
- declare function getAddCosignerInstructionDataCodec$1(): FixedSizeCodec<AddCosignerInstructionDataArgs$1, AddCosignerInstructionData$1>;
2959
- type AddCosignerAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3102
+ declare function getAddCosignerInstructionDataEncoder(): FixedSizeEncoder<AddCosignerInstructionDataArgs>;
3103
+ declare function getAddCosignerInstructionDataDecoder(): FixedSizeDecoder<AddCosignerInstructionData>;
3104
+ declare function getAddCosignerInstructionDataCodec(): FixedSizeCodec<AddCosignerInstructionDataArgs, AddCosignerInstructionData>;
3105
+ type AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
2960
3106
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
2961
3107
  config?: Address<TAccountConfig>;
2962
- cosigner: AddCosignerInstructionDataArgs$1['cosigner'];
3108
+ cosigner: AddCosignerInstructionDataArgs['cosigner'];
2963
3109
  };
2964
- declare function getAddCosignerInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3110
+ declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
2965
3111
  programAddress?: TProgramAddress;
2966
- }): Promise<AddCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
2967
- type AddCosignerInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3112
+ }): Promise<AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3113
+ type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
2968
3114
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
2969
3115
  config: Address<TAccountConfig>;
2970
- cosigner: AddCosignerInstructionDataArgs$1['cosigner'];
3116
+ cosigner: AddCosignerInstructionDataArgs['cosigner'];
2971
3117
  };
2972
- declare function getAddCosignerInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3118
+ declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
2973
3119
  programAddress?: TProgramAddress;
2974
- }): AddCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
2975
- type ParsedAddCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3120
+ }): AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3121
+ type ParsedAddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2976
3122
  programAddress: Address<TProgram>;
2977
3123
  accounts: {
2978
3124
  adminAuthority: TAccountMetas[0];
2979
3125
  config: TAccountMetas[1];
2980
3126
  };
2981
- data: AddCosignerInstructionData$1;
3127
+ data: AddCosignerInstructionData;
2982
3128
  };
2983
- declare function parseAddCosignerInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction$1<TProgram, TAccountMetas>;
3129
+ declare function parseAddCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
2984
3130
 
2985
3131
  /**
2986
3132
  * This code was AUTOGENERATED using the Codama library.
@@ -2990,9 +3136,9 @@ declare function parseAddCosignerInstruction$1<TProgram extends string, TAccount
2990
3136
  * @see https://github.com/codama-idl/codama
2991
3137
  */
2992
3138
 
2993
- declare const INITIALIZE_CONFIG_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
2994
- declare function getInitializeConfigDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
2995
- type InitializeConfigInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3139
+ declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3140
+ declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3141
+ type InitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
2996
3142
  TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
2997
3143
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
2998
3144
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
@@ -3000,39 +3146,39 @@ type InitializeConfigInstruction$1<TProgram extends string = typeof COSIGNER_HOO
3000
3146
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
3001
3147
  ...TRemainingAccounts
3002
3148
  ]>;
3003
- type InitializeConfigInstructionData$1 = {
3149
+ type InitializeConfigInstructionData = {
3004
3150
  discriminator: ReadonlyUint8Array;
3005
3151
  cosigners: Array<Address>;
3006
3152
  };
3007
- type InitializeConfigInstructionDataArgs$1 = {
3153
+ type InitializeConfigInstructionDataArgs = {
3008
3154
  cosigners: Array<Address>;
3009
3155
  };
3010
- declare function getInitializeConfigInstructionDataEncoder$1(): Encoder<InitializeConfigInstructionDataArgs$1>;
3011
- declare function getInitializeConfigInstructionDataDecoder$1(): Decoder<InitializeConfigInstructionData$1>;
3012
- declare function getInitializeConfigInstructionDataCodec$1(): Codec<InitializeConfigInstructionDataArgs$1, InitializeConfigInstructionData$1>;
3013
- type InitializeConfigAsyncInput$1<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
3156
+ declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
3157
+ declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
3158
+ declare function getInitializeConfigInstructionDataCodec(): Codec<InitializeConfigInstructionDataArgs, InitializeConfigInstructionData>;
3159
+ type InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
3014
3160
  payer: TransactionSigner<TAccountPayer>;
3015
3161
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3016
3162
  config?: Address<TAccountConfig>;
3017
3163
  programData: Address<TAccountProgramData>;
3018
3164
  systemProgram?: Address<TAccountSystemProgram>;
3019
- cosigners: InitializeConfigInstructionDataArgs$1['cosigners'];
3165
+ cosigners: InitializeConfigInstructionDataArgs['cosigners'];
3020
3166
  };
3021
- declare function getInitializeConfigInstructionAsync$1<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput$1<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3167
+ declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3022
3168
  programAddress?: TProgramAddress;
3023
- }): Promise<InitializeConfigInstruction$1<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
3024
- type InitializeConfigInput$1<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
3169
+ }): Promise<InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
3170
+ type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
3025
3171
  payer: TransactionSigner<TAccountPayer>;
3026
3172
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3027
3173
  config: Address<TAccountConfig>;
3028
3174
  programData: Address<TAccountProgramData>;
3029
3175
  systemProgram?: Address<TAccountSystemProgram>;
3030
- cosigners: InitializeConfigInstructionDataArgs$1['cosigners'];
3176
+ cosigners: InitializeConfigInstructionDataArgs['cosigners'];
3031
3177
  };
3032
- declare function getInitializeConfigInstruction$1<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput$1<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3178
+ declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
3033
3179
  programAddress?: TProgramAddress;
3034
- }): InitializeConfigInstruction$1<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3035
- type ParsedInitializeConfigInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3180
+ }): InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3181
+ type ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3036
3182
  programAddress: Address<TProgram>;
3037
3183
  accounts: {
3038
3184
  payer: TAccountMetas[0];
@@ -3041,9 +3187,9 @@ type ParsedInitializeConfigInstruction$1<TProgram extends string = typeof COSIGN
3041
3187
  programData: TAccountMetas[3];
3042
3188
  systemProgram: TAccountMetas[4];
3043
3189
  };
3044
- data: InitializeConfigInstructionData$1;
3190
+ data: InitializeConfigInstructionData;
3045
3191
  };
3046
- declare function parseInitializeConfigInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction$1<TProgram, TAccountMetas>;
3192
+ declare function parseInitializeConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
3047
3193
 
3048
3194
  /**
3049
3195
  * This code was AUTOGENERATED using the Codama library.
@@ -3053,48 +3199,48 @@ declare function parseInitializeConfigInstruction$1<TProgram extends string, TAc
3053
3199
  * @see https://github.com/codama-idl/codama
3054
3200
  */
3055
3201
 
3056
- declare const REMOVE_COSIGNER_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
3057
- declare function getRemoveCosignerDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
3058
- type RemoveCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3202
+ declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3203
+ declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3204
+ type RemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3059
3205
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
3060
3206
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
3061
3207
  ...TRemainingAccounts
3062
3208
  ]>;
3063
- type RemoveCosignerInstructionData$1 = {
3209
+ type RemoveCosignerInstructionData = {
3064
3210
  discriminator: ReadonlyUint8Array;
3065
3211
  cosigner: Address;
3066
3212
  };
3067
- type RemoveCosignerInstructionDataArgs$1 = {
3213
+ type RemoveCosignerInstructionDataArgs = {
3068
3214
  cosigner: Address;
3069
3215
  };
3070
- declare function getRemoveCosignerInstructionDataEncoder$1(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs$1>;
3071
- declare function getRemoveCosignerInstructionDataDecoder$1(): FixedSizeDecoder<RemoveCosignerInstructionData$1>;
3072
- declare function getRemoveCosignerInstructionDataCodec$1(): FixedSizeCodec<RemoveCosignerInstructionDataArgs$1, RemoveCosignerInstructionData$1>;
3073
- type RemoveCosignerAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3216
+ declare function getRemoveCosignerInstructionDataEncoder(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs>;
3217
+ declare function getRemoveCosignerInstructionDataDecoder(): FixedSizeDecoder<RemoveCosignerInstructionData>;
3218
+ declare function getRemoveCosignerInstructionDataCodec(): FixedSizeCodec<RemoveCosignerInstructionDataArgs, RemoveCosignerInstructionData>;
3219
+ type RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3074
3220
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3075
3221
  config?: Address<TAccountConfig>;
3076
- cosigner: RemoveCosignerInstructionDataArgs$1['cosigner'];
3222
+ cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
3077
3223
  };
3078
- declare function getRemoveCosignerInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3224
+ declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3079
3225
  programAddress?: TProgramAddress;
3080
- }): Promise<RemoveCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3081
- type RemoveCosignerInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3226
+ }): Promise<RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3227
+ type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3082
3228
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3083
3229
  config: Address<TAccountConfig>;
3084
- cosigner: RemoveCosignerInstructionDataArgs$1['cosigner'];
3230
+ cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
3085
3231
  };
3086
- declare function getRemoveCosignerInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3232
+ declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3087
3233
  programAddress?: TProgramAddress;
3088
- }): RemoveCosignerInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3089
- type ParsedRemoveCosignerInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3234
+ }): RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3235
+ type ParsedRemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3090
3236
  programAddress: Address<TProgram>;
3091
3237
  accounts: {
3092
3238
  adminAuthority: TAccountMetas[0];
3093
3239
  config: TAccountMetas[1];
3094
3240
  };
3095
- data: RemoveCosignerInstructionData$1;
3241
+ data: RemoveCosignerInstructionData;
3096
3242
  };
3097
- declare function parseRemoveCosignerInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction$1<TProgram, TAccountMetas>;
3243
+ declare function parseRemoveCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
3098
3244
 
3099
3245
  /**
3100
3246
  * This code was AUTOGENERATED using the Codama library.
@@ -3104,48 +3250,48 @@ declare function parseRemoveCosignerInstruction$1<TProgram extends string, TAcco
3104
3250
  * @see https://github.com/codama-idl/codama
3105
3251
  */
3106
3252
 
3107
- declare const SET_AUTHORITY_DISCRIMINATOR$1: Uint8Array<ArrayBuffer>;
3108
- declare function getSetAuthorityDiscriminatorBytes$1(): ReadonlyUint8Array<ArrayBuffer>;
3109
- type SetAuthorityInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3253
+ declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
3254
+ declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
3255
+ type SetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
3110
3256
  TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
3111
3257
  TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
3112
3258
  ...TRemainingAccounts
3113
3259
  ]>;
3114
- type SetAuthorityInstructionData$1 = {
3260
+ type SetAuthorityInstructionData = {
3115
3261
  discriminator: ReadonlyUint8Array;
3116
3262
  adminAuthority: Address;
3117
3263
  };
3118
- type SetAuthorityInstructionDataArgs$1 = {
3264
+ type SetAuthorityInstructionDataArgs = {
3119
3265
  adminAuthority: Address;
3120
3266
  };
3121
- declare function getSetAuthorityInstructionDataEncoder$1(): FixedSizeEncoder<SetAuthorityInstructionDataArgs$1>;
3122
- declare function getSetAuthorityInstructionDataDecoder$1(): FixedSizeDecoder<SetAuthorityInstructionData$1>;
3123
- declare function getSetAuthorityInstructionDataCodec$1(): FixedSizeCodec<SetAuthorityInstructionDataArgs$1, SetAuthorityInstructionData$1>;
3124
- type SetAuthorityAsyncInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3267
+ declare function getSetAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetAuthorityInstructionDataArgs>;
3268
+ declare function getSetAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetAuthorityInstructionData>;
3269
+ declare function getSetAuthorityInstructionDataCodec(): FixedSizeCodec<SetAuthorityInstructionDataArgs, SetAuthorityInstructionData>;
3270
+ type SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3125
3271
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3126
3272
  config?: Address<TAccountConfig>;
3127
- adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority'];
3273
+ adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
3128
3274
  };
3129
- declare function getSetAuthorityInstructionAsync$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3275
+ declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3130
3276
  programAddress?: TProgramAddress;
3131
- }): Promise<SetAuthorityInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3132
- type SetAuthorityInput$1<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3277
+ }): Promise<SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
3278
+ type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
3133
3279
  adminAuthority: TransactionSigner<TAccountAdminAuthority>;
3134
3280
  config: Address<TAccountConfig>;
3135
- adminAuthorityArg: SetAuthorityInstructionDataArgs$1['adminAuthority'];
3281
+ adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
3136
3282
  };
3137
- declare function getSetAuthorityInstruction$1<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof COSIGNER_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput$1<TAccountAdminAuthority, TAccountConfig>, config?: {
3283
+ declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof CPMM_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
3138
3284
  programAddress?: TProgramAddress;
3139
- }): SetAuthorityInstruction$1<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3140
- type ParsedSetAuthorityInstruction$1<TProgram extends string = typeof COSIGNER_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3285
+ }): SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
3286
+ type ParsedSetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3141
3287
  programAddress: Address<TProgram>;
3142
3288
  accounts: {
3143
3289
  adminAuthority: TAccountMetas[0];
3144
3290
  config: TAccountMetas[1];
3145
3291
  };
3146
- data: SetAuthorityInstructionData$1;
3292
+ data: SetAuthorityInstructionData;
3147
3293
  };
3148
- declare function parseSetAuthorityInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction$1<TProgram, TAccountMetas>;
3294
+ declare function parseSetAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
3149
3295
 
3150
3296
  /**
3151
3297
  * This code was AUTOGENERATED using the Codama library.
@@ -3155,13 +3301,13 @@ declare function parseSetAuthorityInstruction$1<TProgram extends string, TAccoun
3155
3301
  * @see https://github.com/codama-idl/codama
3156
3302
  */
3157
3303
 
3158
- type CosignerArg$1 = {
3304
+ type CosignerArg = {
3159
3305
  cosigner: Address;
3160
3306
  };
3161
- type CosignerArgArgs$1 = CosignerArg$1;
3162
- declare function getCosignerArgEncoder$1(): FixedSizeEncoder<CosignerArgArgs$1>;
3163
- declare function getCosignerArgDecoder$1(): FixedSizeDecoder<CosignerArg$1>;
3164
- declare function getCosignerArgCodec$1(): FixedSizeCodec<CosignerArgArgs$1, CosignerArg$1>;
3307
+ type CosignerArgArgs = CosignerArg;
3308
+ declare function getCosignerArgEncoder(): FixedSizeEncoder<CosignerArgArgs>;
3309
+ declare function getCosignerArgDecoder(): FixedSizeDecoder<CosignerArg>;
3310
+ declare function getCosignerArgCodec(): FixedSizeCodec<CosignerArgArgs, CosignerArg>;
3165
3311
 
3166
3312
  /**
3167
3313
  * This code was AUTOGENERATED using the Codama library.
@@ -3171,13 +3317,13 @@ declare function getCosignerArgCodec$1(): FixedSizeCodec<CosignerArgArgs$1, Cosi
3171
3317
  * @see https://github.com/codama-idl/codama
3172
3318
  */
3173
3319
 
3174
- type InitializeConfigArgs$2 = {
3320
+ type InitializeConfigArgs$1 = {
3175
3321
  cosigners: Array<Address>;
3176
3322
  };
3177
- type InitializeConfigArgsArgs$2 = InitializeConfigArgs$2;
3178
- declare function getInitializeConfigArgsEncoder$2(): Encoder<InitializeConfigArgsArgs$2>;
3179
- declare function getInitializeConfigArgsDecoder$2(): Decoder<InitializeConfigArgs$2>;
3180
- declare function getInitializeConfigArgsCodec$2(): Codec<InitializeConfigArgsArgs$2, InitializeConfigArgs$2>;
3323
+ type InitializeConfigArgsArgs$1 = InitializeConfigArgs$1;
3324
+ declare function getInitializeConfigArgsEncoder$1(): Encoder<InitializeConfigArgsArgs$1>;
3325
+ declare function getInitializeConfigArgsDecoder$1(): Decoder<InitializeConfigArgs$1>;
3326
+ declare function getInitializeConfigArgsCodec$1(): Codec<InitializeConfigArgsArgs$1, InitializeConfigArgs$1>;
3181
3327
 
3182
3328
  /**
3183
3329
  * This code was AUTOGENERATED using the Codama library.
@@ -3187,31 +3333,30 @@ declare function getInitializeConfigArgsCodec$2(): Codec<InitializeConfigArgsArg
3187
3333
  * @see https://github.com/codama-idl/codama
3188
3334
  */
3189
3335
 
3190
- type SetAuthorityArgs$1 = {
3336
+ type SetAuthorityArgs = {
3191
3337
  adminAuthority: Address;
3192
3338
  };
3193
- type SetAuthorityArgsArgs$1 = SetAuthorityArgs$1;
3194
- declare function getSetAuthorityArgsEncoder$1(): FixedSizeEncoder<SetAuthorityArgsArgs$1>;
3195
- declare function getSetAuthorityArgsDecoder$1(): FixedSizeDecoder<SetAuthorityArgs$1>;
3196
- declare function getSetAuthorityArgsCodec$1(): FixedSizeCodec<SetAuthorityArgsArgs$1, SetAuthorityArgs$1>;
3339
+ type SetAuthorityArgsArgs = SetAuthorityArgs;
3340
+ declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgsArgs>;
3341
+ declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
3342
+ declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
3197
3343
 
3198
- /**
3199
- * Default Doppler native cosigner hook program for devnet deployments.
3200
- *
3201
- * The generated COSIGNER_HOOK_PROGRAM_ADDRESS reflects the IDL's generic
3202
- * cosigner hook deployment. Pass an explicit programAddress to generated
3203
- * instructions when targeting a custom/integrator hook deployment.
3204
- */
3205
- declare const DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: Address;
3206
- declare const COSIGNER_HOOK_PROGRAM_ID: Address;
3207
- declare const SEED_COSIGNER_HOOK_CONFIG = "cosigner_hook_config";
3208
- declare const MAX_COSIGNERS$1 = 32;
3344
+ /** Default Doppler CPMM hook program for devnet deployments. */
3345
+ declare const DEVNET_CPMM_HOOK_PROGRAM_ID: Address;
3346
+ declare const CPMM_HOOK_PROGRAM_ID: Address;
3347
+ declare const SEED_CPMM_HOOK_CONFIG = "cosigner_hook_config";
3348
+ declare const MAX_COSIGNERS = 32;
3209
3349
  declare const GATE_EXPIRY_DISABLED = 0;
3210
3350
  declare const GATE_EXPIRY_UNIX_TIMESTAMP = 1;
3211
3351
  declare const GATE_EXPIRY_SLOT = 2;
3212
3352
  declare const GATE_EXPIRY_PAYLOAD_VERSION = 1;
3213
3353
  declare const GATE_EXPIRY_HEADER_LEN = 10;
3214
3354
  declare const GATE_EXPIRY_PAYLOAD_LEN = 42;
3355
+ declare const DYNAMIC_FEE_SCHEDULE_MAGIC: Uint8Array<ArrayBuffer>;
3356
+ declare const DYNAMIC_FEE_SCHEDULE_VERSION = 1;
3357
+ declare const DYNAMIC_FEE_SCHEDULE_LEN = 32;
3358
+ declare const DYNAMIC_FEE_SCHEDULE_HEADER_LEN = 16;
3359
+ declare const DYNAMIC_FEE_SCHEDULE_MAX_BPS = 10000;
3215
3360
 
3216
3361
  type CosignerGateClock = {
3217
3362
  unixTimestamp?: bigint | number;
@@ -3237,92 +3382,216 @@ type CosignerGateStatus = {
3237
3382
  expiryValue: bigint;
3238
3383
  reason: 'expiry_disabled' | 'timestamp_pending' | 'timestamp_expired' | 'slot_pending' | 'slot_expired' | 'slot_unavailable' | 'invalid_expiry_payload' | 'invalid_expiry_mode';
3239
3384
  };
3240
- type CosignerHookRemainingAccounts = {
3241
- signedHookRemainingAccounts: [Address, TransactionSigner];
3242
- unsignedHookRemainingAccounts: [Address, Address];
3243
- hookRemainingAccountsHash: Uint8Array;
3244
- };
3245
3385
  declare function encodeCosignerGateExpiryPayload(expiry: CosignerGateExpiryArgs): Uint8Array;
3246
3386
  declare function decodeCosignerGateExpiryPayload(payload: ReadonlyUint8Array | null | undefined): CosignerGateExpiry | null;
3247
3387
  declare function getCosignerGateStatus(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): CosignerGateStatus;
3248
3388
  declare function isCosignerGateEnforced(hookPayload: ReadonlyUint8Array | null | undefined, clock?: CosignerGateClock): boolean;
3249
- declare function getCosignerHookRemainingAccounts({ namespace, cosigner, }: {
3250
- namespace: Address;
3251
- cosigner: TransactionSigner;
3252
- }): CosignerHookRemainingAccounts;
3253
-
3254
- declare function getCosignerHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3255
-
3256
- declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
3257
- declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL: typeof COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL;
3258
- declare const index$5_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND;
3259
- declare const index$5_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY: typeof COSIGNER_HOOK_ERROR__INVALID_AUTHORITY;
3260
- declare const index$5_COSIGNER_HOOK_ERROR__INVALID_CONFIG: typeof COSIGNER_HOOK_ERROR__INVALID_CONFIG;
3261
- declare const index$5_COSIGNER_HOOK_ERROR__INVALID_COSIGNER: typeof COSIGNER_HOOK_ERROR__INVALID_COSIGNER;
3262
- declare const index$5_COSIGNER_HOOK_PROGRAM_ADDRESS: typeof COSIGNER_HOOK_PROGRAM_ADDRESS;
3263
- declare const index$5_COSIGNER_HOOK_PROGRAM_ID: typeof COSIGNER_HOOK_PROGRAM_ID;
3264
- type index$5_CosignerGateClock = CosignerGateClock;
3265
- type index$5_CosignerGateExpiry = CosignerGateExpiry;
3266
- type index$5_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3267
- type index$5_CosignerGateStatus = CosignerGateStatus;
3268
- type index$5_CosignerHookAccount = CosignerHookAccount;
3269
- declare const index$5_CosignerHookAccount: typeof CosignerHookAccount;
3270
- type index$5_CosignerHookError = CosignerHookError;
3271
- type index$5_CosignerHookInstruction = CosignerHookInstruction;
3272
- declare const index$5_CosignerHookInstruction: typeof CosignerHookInstruction;
3273
- type index$5_CosignerHookPlugin = CosignerHookPlugin;
3274
- type index$5_CosignerHookPluginAccounts = CosignerHookPluginAccounts;
3275
- type index$5_CosignerHookPluginInstructions = CosignerHookPluginInstructions;
3276
- type index$5_CosignerHookPluginRequirements = CosignerHookPluginRequirements;
3277
- type index$5_CosignerHookRemainingAccounts = CosignerHookRemainingAccounts;
3278
- declare const index$5_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID: typeof DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID;
3279
- declare const index$5_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3280
- declare const index$5_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3281
- declare const index$5_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
3282
- declare const index$5_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
3283
- declare const index$5_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
3284
- declare const index$5_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
3285
- type index$5_ParsedCosignerHookInstruction<TProgram extends string = 'JDwnBoYE2NsmkQjQLHi1btQxeHirtJ9XjU1dM641QZt'> = ParsedCosignerHookInstruction<TProgram>;
3286
- declare const index$5_SEED_COSIGNER_HOOK_CONFIG: typeof SEED_COSIGNER_HOOK_CONFIG;
3287
- declare const index$5_cosignerHookProgram: typeof cosignerHookProgram;
3288
- declare const index$5_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3289
- declare const index$5_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3290
- declare const index$5_getCosignerGateStatus: typeof getCosignerGateStatus;
3291
- declare const index$5_getCosignerHookConfigAddress: typeof getCosignerHookConfigAddress;
3292
- declare const index$5_getCosignerHookErrorMessage: typeof getCosignerHookErrorMessage;
3293
- declare const index$5_getCosignerHookRemainingAccounts: typeof getCosignerHookRemainingAccounts;
3294
- declare const index$5_identifyCosignerHookAccount: typeof identifyCosignerHookAccount;
3295
- declare const index$5_identifyCosignerHookInstruction: typeof identifyCosignerHookInstruction;
3296
- declare const index$5_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3297
- declare const index$5_isCosignerHookError: typeof isCosignerHookError;
3298
- declare const index$5_parseCosignerHookInstruction: typeof parseCosignerHookInstruction;
3299
- declare namespace index$5 {
3300
- export { ADD_COSIGNER_DISCRIMINATOR$1 as ADD_COSIGNER_DISCRIMINATOR, type AddCosignerAsyncInput$1 as AddCosignerAsyncInput, type AddCosignerInput$1 as AddCosignerInput, type AddCosignerInstruction$1 as AddCosignerInstruction, type AddCosignerInstructionData$1 as AddCosignerInstructionData, type AddCosignerInstructionDataArgs$1 as AddCosignerInstructionDataArgs, COSIGNER_CONFIG_DISCRIMINATOR$1 as COSIGNER_CONFIG_DISCRIMINATOR, index$5_COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as COSIGNER_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$5_COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL as COSIGNER_HOOK_ERROR__COSIGNER_LIST_FULL, index$5_COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND as COSIGNER_HOOK_ERROR__COSIGNER_NOT_FOUND, index$5_COSIGNER_HOOK_ERROR__INVALID_AUTHORITY as COSIGNER_HOOK_ERROR__INVALID_AUTHORITY, index$5_COSIGNER_HOOK_ERROR__INVALID_CONFIG as COSIGNER_HOOK_ERROR__INVALID_CONFIG, index$5_COSIGNER_HOOK_ERROR__INVALID_COSIGNER as COSIGNER_HOOK_ERROR__INVALID_COSIGNER, index$5_COSIGNER_HOOK_PROGRAM_ADDRESS as COSIGNER_HOOK_PROGRAM_ADDRESS, index$5_COSIGNER_HOOK_PROGRAM_ID as COSIGNER_HOOK_PROGRAM_ID, type CosignerArg$1 as CosignerArg, type CosignerArgArgs$1 as CosignerArgArgs, type CosignerConfig$1 as CosignerConfig, type CosignerConfigArgs$1 as CosignerConfigArgs, type index$5_CosignerGateClock as CosignerGateClock, type index$5_CosignerGateExpiry as CosignerGateExpiry, type index$5_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$5_CosignerGateStatus as CosignerGateStatus, index$5_CosignerHookAccount as CosignerHookAccount, type index$5_CosignerHookError as CosignerHookError, index$5_CosignerHookInstruction as CosignerHookInstruction, type index$5_CosignerHookPlugin as CosignerHookPlugin, type index$5_CosignerHookPluginAccounts as CosignerHookPluginAccounts, type index$5_CosignerHookPluginInstructions as CosignerHookPluginInstructions, type index$5_CosignerHookPluginRequirements as CosignerHookPluginRequirements, type index$5_CosignerHookRemainingAccounts as CosignerHookRemainingAccounts, index$5_DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID as DOPPLER_NATIVE_COSIGNER_HOOK_PROGRAM_ID, index$5_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$5_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$5_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$5_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$5_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$5_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, INITIALIZE_CONFIG_DISCRIMINATOR$1 as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$2 as InitializeConfigArgs, type InitializeConfigArgsArgs$2 as InitializeConfigArgsArgs, type InitializeConfigAsyncInput$1 as InitializeConfigAsyncInput, type InitializeConfigInput$1 as InitializeConfigInput, type InitializeConfigInstruction$1 as InitializeConfigInstruction, type InitializeConfigInstructionData$1 as InitializeConfigInstructionData, type InitializeConfigInstructionDataArgs$1 as InitializeConfigInstructionDataArgs, MAX_COSIGNERS$1 as MAX_COSIGNERS, type ParsedAddCosignerInstruction$1 as ParsedAddCosignerInstruction, type index$5_ParsedCosignerHookInstruction as ParsedCosignerHookInstruction, type ParsedInitializeConfigInstruction$1 as ParsedInitializeConfigInstruction, type ParsedRemoveCosignerInstruction$1 as ParsedRemoveCosignerInstruction, type ParsedSetAuthorityInstruction$1 as ParsedSetAuthorityInstruction, REMOVE_COSIGNER_DISCRIMINATOR$1 as REMOVE_COSIGNER_DISCRIMINATOR, type RemoveCosignerAsyncInput$1 as RemoveCosignerAsyncInput, type RemoveCosignerInput$1 as RemoveCosignerInput, type RemoveCosignerInstruction$1 as RemoveCosignerInstruction, type RemoveCosignerInstructionData$1 as RemoveCosignerInstructionData, type RemoveCosignerInstructionDataArgs$1 as RemoveCosignerInstructionDataArgs, index$5_SEED_COSIGNER_HOOK_CONFIG as SEED_COSIGNER_HOOK_CONFIG, SET_AUTHORITY_DISCRIMINATOR$1 as SET_AUTHORITY_DISCRIMINATOR, type SetAuthorityArgs$1 as SetAuthorityArgs, type SetAuthorityArgsArgs$1 as SetAuthorityArgsArgs, type SetAuthorityAsyncInput$1 as SetAuthorityAsyncInput, type SetAuthorityInput$1 as SetAuthorityInput, type SetAuthorityInstruction$1 as SetAuthorityInstruction, type SetAuthorityInstructionData$1 as SetAuthorityInstructionData, type SetAuthorityInstructionDataArgs$1 as SetAuthorityInstructionDataArgs, index$5_cosignerHookProgram as cosignerHookProgram, decodeCosignerConfig$1 as decodeCosignerConfig, index$5_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$5_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, fetchAllCosignerConfig$1 as fetchAllCosignerConfig, fetchAllMaybeCosignerConfig$1 as fetchAllMaybeCosignerConfig, fetchCosignerConfig$1 as fetchCosignerConfig, fetchMaybeCosignerConfig$1 as fetchMaybeCosignerConfig, getAddCosignerDiscriminatorBytes$1 as getAddCosignerDiscriminatorBytes, getAddCosignerInstruction$1 as getAddCosignerInstruction, getAddCosignerInstructionAsync$1 as getAddCosignerInstructionAsync, getAddCosignerInstructionDataCodec$1 as getAddCosignerInstructionDataCodec, getAddCosignerInstructionDataDecoder$1 as getAddCosignerInstructionDataDecoder, getAddCosignerInstructionDataEncoder$1 as getAddCosignerInstructionDataEncoder, getCosignerArgCodec$1 as getCosignerArgCodec, getCosignerArgDecoder$1 as getCosignerArgDecoder, getCosignerArgEncoder$1 as getCosignerArgEncoder, getCosignerConfigCodec$1 as getCosignerConfigCodec, getCosignerConfigDecoder$1 as getCosignerConfigDecoder, getCosignerConfigDiscriminatorBytes$1 as getCosignerConfigDiscriminatorBytes, getCosignerConfigEncoder$1 as getCosignerConfigEncoder, getCosignerConfigSize$1 as getCosignerConfigSize, index$5_getCosignerGateStatus as getCosignerGateStatus, index$5_getCosignerHookConfigAddress as getCosignerHookConfigAddress, index$5_getCosignerHookErrorMessage as getCosignerHookErrorMessage, index$5_getCosignerHookRemainingAccounts as getCosignerHookRemainingAccounts, getInitializeConfigArgsCodec$2 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$2 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$2 as getInitializeConfigArgsEncoder, getInitializeConfigDiscriminatorBytes$1 as getInitializeConfigDiscriminatorBytes, getInitializeConfigInstruction$1 as getInitializeConfigInstruction, getInitializeConfigInstructionAsync$1 as getInitializeConfigInstructionAsync, getInitializeConfigInstructionDataCodec$1 as getInitializeConfigInstructionDataCodec, getInitializeConfigInstructionDataDecoder$1 as getInitializeConfigInstructionDataDecoder, getInitializeConfigInstructionDataEncoder$1 as getInitializeConfigInstructionDataEncoder, getRemoveCosignerDiscriminatorBytes$1 as getRemoveCosignerDiscriminatorBytes, getRemoveCosignerInstruction$1 as getRemoveCosignerInstruction, getRemoveCosignerInstructionAsync$1 as getRemoveCosignerInstructionAsync, getRemoveCosignerInstructionDataCodec$1 as getRemoveCosignerInstructionDataCodec, getRemoveCosignerInstructionDataDecoder$1 as getRemoveCosignerInstructionDataDecoder, getRemoveCosignerInstructionDataEncoder$1 as getRemoveCosignerInstructionDataEncoder, getSetAuthorityArgsCodec$1 as getSetAuthorityArgsCodec, getSetAuthorityArgsDecoder$1 as getSetAuthorityArgsDecoder, getSetAuthorityArgsEncoder$1 as getSetAuthorityArgsEncoder, getSetAuthorityDiscriminatorBytes$1 as getSetAuthorityDiscriminatorBytes, getSetAuthorityInstruction$1 as getSetAuthorityInstruction, getSetAuthorityInstructionAsync$1 as getSetAuthorityInstructionAsync, getSetAuthorityInstructionDataCodec$1 as getSetAuthorityInstructionDataCodec, getSetAuthorityInstructionDataDecoder$1 as getSetAuthorityInstructionDataDecoder, getSetAuthorityInstructionDataEncoder$1 as getSetAuthorityInstructionDataEncoder, index$5_identifyCosignerHookAccount as identifyCosignerHookAccount, index$5_identifyCosignerHookInstruction as identifyCosignerHookInstruction, index$5_isCosignerGateEnforced as isCosignerGateEnforced, index$5_isCosignerHookError as isCosignerHookError, parseAddCosignerInstruction$1 as parseAddCosignerInstruction, index$5_parseCosignerHookInstruction as parseCosignerHookInstruction, parseInitializeConfigInstruction$1 as parseInitializeConfigInstruction, parseRemoveCosignerInstruction$1 as parseRemoveCosignerInstruction, parseSetAuthorityInstruction$1 as parseSetAuthorityInstruction };
3301
- }
3302
3389
 
3303
- /**
3304
- * Program ID for the Initializer program.
3305
- *
3306
- * Source of truth: programs/initializer/src/lib.rs
3307
- */
3308
- declare const INITIALIZER_PROGRAM_ID: Address;
3309
- declare const BPF_LOADER_UPGRADEABLE_PROGRAM_ID: Address;
3310
- /**
3311
- * Hook program for CPMM-migrated launches.
3312
- * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
3313
- *
3314
- * Source of truth: programs/cpmm_hook/src/lib.rs
3315
- */
3316
- declare const CPMM_HOOK_PROGRAM_ID: Address;
3317
- /**
3318
- * Hook program for prediction market launches.
3319
- * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
3320
- *
3321
- * Source of truth: programs/prediction_hook/src/lib.rs
3322
- */
3323
- declare const PREDICTION_HOOK_PROGRAM_ID: Address;
3324
- declare const SEED_CONFIG = "config";
3325
- declare const SEED_LAUNCH = "launch";
3390
+ type DynamicFeeScheduleArgs = {
3391
+ /**
3392
+ * Unix timestamp for the schedule start. Use 0 to let the hook normalize the
3393
+ * start to the launch creation timestamp during BEFORE_CREATE.
3394
+ */
3395
+ startingTime: bigint | number;
3396
+ startFeeBps: number;
3397
+ endFeeBps: number;
3398
+ durationSeconds: bigint | number;
3399
+ };
3400
+ type CpmmHookPayloadArgs = {
3401
+ schedule?: DynamicFeeScheduleArgs | null;
3402
+ gateExpiry?: CosignerGateExpiryArgs | null;
3403
+ };
3404
+ type CpmmHookRemainingAccounts = {
3405
+ signedHookRemainingAccounts: RemainingAccount[];
3406
+ unsignedHookRemainingAccounts: Address[];
3407
+ hookRemainingAccountsHash: Uint8Array;
3408
+ };
3409
+ declare function validateDynamicFeeScheduleArgs(schedule: DynamicFeeScheduleArgs): {
3410
+ startingTime: bigint;
3411
+ durationSeconds: bigint;
3412
+ };
3413
+ declare function encodeDynamicFeeSchedule(schedule: DynamicFeeScheduleArgs): Uint8Array;
3414
+ declare function encodeCpmmHookPayload(args?: CpmmHookPayloadArgs): Uint8Array;
3415
+ declare function encodeDynamicFeeCosignerGatePayload(args: {
3416
+ value: bigint | number;
3417
+ mode: Exclude<CosignerGateExpiryArgs['mode'], typeof GATE_EXPIRY_DISABLED>;
3418
+ cosigner: Address;
3419
+ }): Uint8Array;
3420
+ declare function getCpmmHookRemainingAccounts({ namespace, config, cosigner, }: {
3421
+ namespace: Address;
3422
+ config?: Address;
3423
+ cosigner?: AddressOrTransactionSigner;
3424
+ }): CpmmHookRemainingAccounts;
3425
+ declare function getCpmmHookRemainingAccountAddresses({ namespace, config, cosigner, }: {
3426
+ namespace: Address;
3427
+ config?: Address;
3428
+ cosigner?: AddressOrTransactionSigner;
3429
+ }): Address[];
3430
+ declare function isDynamicFeeSchedulePayload(payload: ReadonlyUint8Array): boolean;
3431
+
3432
+ declare function getCpmmHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
3433
+
3434
+ declare const index$4_ADD_COSIGNER_DISCRIMINATOR: typeof ADD_COSIGNER_DISCRIMINATOR;
3435
+ type index$4_AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3436
+ type index$4_AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerInput<TAccountAdminAuthority, TAccountConfig>;
3437
+ type index$4_AddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3438
+ type index$4_AddCosignerInstructionData = AddCosignerInstructionData;
3439
+ type index$4_AddCosignerInstructionDataArgs = AddCosignerInstructionDataArgs;
3440
+ declare const index$4_COSIGNER_CONFIG_DISCRIMINATOR: typeof COSIGNER_CONFIG_DISCRIMINATOR;
3441
+ declare const index$4_CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW: typeof CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW;
3442
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
3443
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_LIST_FULL: typeof CPMM_HOOK_ERROR__COSIGNER_LIST_FULL;
3444
+ declare const index$4_CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND;
3445
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_AUTHORITY: typeof CPMM_HOOK_ERROR__INVALID_AUTHORITY;
3446
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_CONFIG: typeof CPMM_HOOK_ERROR__INVALID_CONFIG;
3447
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_COSIGNER: typeof CPMM_HOOK_ERROR__INVALID_COSIGNER;
3448
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_DURATION: typeof CPMM_HOOK_ERROR__INVALID_DURATION;
3449
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_FEE: typeof CPMM_HOOK_ERROR__INVALID_FEE;
3450
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA: typeof CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA;
3451
+ declare const index$4_CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA: typeof CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA;
3452
+ declare const index$4_CPMM_HOOK_PROGRAM_ADDRESS: typeof CPMM_HOOK_PROGRAM_ADDRESS;
3453
+ declare const index$4_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
3454
+ type index$4_CosignerArg = CosignerArg;
3455
+ type index$4_CosignerArgArgs = CosignerArgArgs;
3456
+ type index$4_CosignerConfig = CosignerConfig;
3457
+ type index$4_CosignerConfigArgs = CosignerConfigArgs;
3458
+ type index$4_CosignerGateClock = CosignerGateClock;
3459
+ type index$4_CosignerGateExpiry = CosignerGateExpiry;
3460
+ type index$4_CosignerGateExpiryArgs = CosignerGateExpiryArgs;
3461
+ type index$4_CosignerGateStatus = CosignerGateStatus;
3462
+ type index$4_CpmmHookAccount = CpmmHookAccount;
3463
+ declare const index$4_CpmmHookAccount: typeof CpmmHookAccount;
3464
+ type index$4_CpmmHookError = CpmmHookError;
3465
+ type index$4_CpmmHookInstruction = CpmmHookInstruction;
3466
+ declare const index$4_CpmmHookInstruction: typeof CpmmHookInstruction;
3467
+ type index$4_CpmmHookPayloadArgs = CpmmHookPayloadArgs;
3468
+ type index$4_CpmmHookPlugin = CpmmHookPlugin;
3469
+ type index$4_CpmmHookPluginAccounts = CpmmHookPluginAccounts;
3470
+ type index$4_CpmmHookPluginInstructions = CpmmHookPluginInstructions;
3471
+ type index$4_CpmmHookPluginRequirements = CpmmHookPluginRequirements;
3472
+ type index$4_CpmmHookRemainingAccounts = CpmmHookRemainingAccounts;
3473
+ declare const index$4_DEVNET_CPMM_HOOK_PROGRAM_ID: typeof DEVNET_CPMM_HOOK_PROGRAM_ID;
3474
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN: typeof DYNAMIC_FEE_SCHEDULE_HEADER_LEN;
3475
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_LEN: typeof DYNAMIC_FEE_SCHEDULE_LEN;
3476
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_MAGIC: typeof DYNAMIC_FEE_SCHEDULE_MAGIC;
3477
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS: typeof DYNAMIC_FEE_SCHEDULE_MAX_BPS;
3478
+ declare const index$4_DYNAMIC_FEE_SCHEDULE_VERSION: typeof DYNAMIC_FEE_SCHEDULE_VERSION;
3479
+ type index$4_DynamicFeeScheduleArgs = DynamicFeeScheduleArgs;
3480
+ declare const index$4_GATE_EXPIRY_DISABLED: typeof GATE_EXPIRY_DISABLED;
3481
+ declare const index$4_GATE_EXPIRY_HEADER_LEN: typeof GATE_EXPIRY_HEADER_LEN;
3482
+ declare const index$4_GATE_EXPIRY_PAYLOAD_LEN: typeof GATE_EXPIRY_PAYLOAD_LEN;
3483
+ declare const index$4_GATE_EXPIRY_PAYLOAD_VERSION: typeof GATE_EXPIRY_PAYLOAD_VERSION;
3484
+ declare const index$4_GATE_EXPIRY_SLOT: typeof GATE_EXPIRY_SLOT;
3485
+ declare const index$4_GATE_EXPIRY_UNIX_TIMESTAMP: typeof GATE_EXPIRY_UNIX_TIMESTAMP;
3486
+ declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
3487
+ type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3488
+ type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
3489
+ type index$4_InitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram, TRemainingAccounts>;
3490
+ type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
3491
+ type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
3492
+ declare const index$4_MAX_COSIGNERS: typeof MAX_COSIGNERS;
3493
+ type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
3494
+ type index$4_ParsedCpmmHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ParsedCpmmHookInstruction<TProgram>;
3495
+ type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
3496
+ type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
3497
+ type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
3498
+ declare const index$4_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR;
3499
+ type index$4_RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3500
+ type index$4_RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>;
3501
+ type index$4_RemoveCosignerInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3502
+ type index$4_RemoveCosignerInstructionData = RemoveCosignerInstructionData;
3503
+ type index$4_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs;
3504
+ declare const index$4_SEED_CPMM_HOOK_CONFIG: typeof SEED_CPMM_HOOK_CONFIG;
3505
+ declare const index$4_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR;
3506
+ type index$4_SetAuthorityArgs = SetAuthorityArgs;
3507
+ type index$4_SetAuthorityArgsArgs = SetAuthorityArgsArgs;
3508
+ type index$4_SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>;
3509
+ type index$4_SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>;
3510
+ type index$4_SetAuthorityInstruction<TProgram extends string = typeof CPMM_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
3511
+ type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
3512
+ type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
3513
+ declare const index$4_cpmmHookProgram: typeof cpmmHookProgram;
3514
+ declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
3515
+ declare const index$4_decodeCosignerGateExpiryPayload: typeof decodeCosignerGateExpiryPayload;
3516
+ declare const index$4_encodeCosignerGateExpiryPayload: typeof encodeCosignerGateExpiryPayload;
3517
+ declare const index$4_encodeCpmmHookPayload: typeof encodeCpmmHookPayload;
3518
+ declare const index$4_encodeDynamicFeeCosignerGatePayload: typeof encodeDynamicFeeCosignerGatePayload;
3519
+ declare const index$4_encodeDynamicFeeSchedule: typeof encodeDynamicFeeSchedule;
3520
+ declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
3521
+ declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
3522
+ declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
3523
+ declare const index$4_fetchMaybeCosignerConfig: typeof fetchMaybeCosignerConfig;
3524
+ declare const index$4_getAddCosignerDiscriminatorBytes: typeof getAddCosignerDiscriminatorBytes;
3525
+ declare const index$4_getAddCosignerInstruction: typeof getAddCosignerInstruction;
3526
+ declare const index$4_getAddCosignerInstructionAsync: typeof getAddCosignerInstructionAsync;
3527
+ declare const index$4_getAddCosignerInstructionDataCodec: typeof getAddCosignerInstructionDataCodec;
3528
+ declare const index$4_getAddCosignerInstructionDataDecoder: typeof getAddCosignerInstructionDataDecoder;
3529
+ declare const index$4_getAddCosignerInstructionDataEncoder: typeof getAddCosignerInstructionDataEncoder;
3530
+ declare const index$4_getCosignerArgCodec: typeof getCosignerArgCodec;
3531
+ declare const index$4_getCosignerArgDecoder: typeof getCosignerArgDecoder;
3532
+ declare const index$4_getCosignerArgEncoder: typeof getCosignerArgEncoder;
3533
+ declare const index$4_getCosignerConfigCodec: typeof getCosignerConfigCodec;
3534
+ declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
3535
+ declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
3536
+ declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
3537
+ declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
3538
+ declare const index$4_getCosignerGateStatus: typeof getCosignerGateStatus;
3539
+ declare const index$4_getCpmmHookConfigAddress: typeof getCpmmHookConfigAddress;
3540
+ declare const index$4_getCpmmHookErrorMessage: typeof getCpmmHookErrorMessage;
3541
+ declare const index$4_getCpmmHookRemainingAccountAddresses: typeof getCpmmHookRemainingAccountAddresses;
3542
+ declare const index$4_getCpmmHookRemainingAccounts: typeof getCpmmHookRemainingAccounts;
3543
+ declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
3544
+ declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
3545
+ declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
3546
+ declare const index$4_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec;
3547
+ declare const index$4_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder;
3548
+ declare const index$4_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder;
3549
+ declare const index$4_getRemoveCosignerDiscriminatorBytes: typeof getRemoveCosignerDiscriminatorBytes;
3550
+ declare const index$4_getRemoveCosignerInstruction: typeof getRemoveCosignerInstruction;
3551
+ declare const index$4_getRemoveCosignerInstructionAsync: typeof getRemoveCosignerInstructionAsync;
3552
+ declare const index$4_getRemoveCosignerInstructionDataCodec: typeof getRemoveCosignerInstructionDataCodec;
3553
+ declare const index$4_getRemoveCosignerInstructionDataDecoder: typeof getRemoveCosignerInstructionDataDecoder;
3554
+ declare const index$4_getRemoveCosignerInstructionDataEncoder: typeof getRemoveCosignerInstructionDataEncoder;
3555
+ declare const index$4_getSetAuthorityArgsCodec: typeof getSetAuthorityArgsCodec;
3556
+ declare const index$4_getSetAuthorityArgsDecoder: typeof getSetAuthorityArgsDecoder;
3557
+ declare const index$4_getSetAuthorityArgsEncoder: typeof getSetAuthorityArgsEncoder;
3558
+ declare const index$4_getSetAuthorityDiscriminatorBytes: typeof getSetAuthorityDiscriminatorBytes;
3559
+ declare const index$4_getSetAuthorityInstruction: typeof getSetAuthorityInstruction;
3560
+ declare const index$4_getSetAuthorityInstructionAsync: typeof getSetAuthorityInstructionAsync;
3561
+ declare const index$4_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec;
3562
+ declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder;
3563
+ declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
3564
+ declare const index$4_identifyCpmmHookAccount: typeof identifyCpmmHookAccount;
3565
+ declare const index$4_identifyCpmmHookInstruction: typeof identifyCpmmHookInstruction;
3566
+ declare const index$4_isCosignerGateEnforced: typeof isCosignerGateEnforced;
3567
+ declare const index$4_isCpmmHookError: typeof isCpmmHookError;
3568
+ declare const index$4_isDynamicFeeSchedulePayload: typeof isDynamicFeeSchedulePayload;
3569
+ declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
3570
+ declare const index$4_parseCpmmHookInstruction: typeof parseCpmmHookInstruction;
3571
+ declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
3572
+ declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
3573
+ declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
3574
+ declare const index$4_validateDynamicFeeScheduleArgs: typeof validateDynamicFeeScheduleArgs;
3575
+ declare namespace index$4 {
3576
+ export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, index$4_CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW as CPMM_HOOK_ERROR__ARITHMETIC_OVERFLOW, index$4_CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as CPMM_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_CPMM_HOOK_ERROR__COSIGNER_LIST_FULL as CPMM_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND as CPMM_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_CPMM_HOOK_ERROR__INVALID_AUTHORITY as CPMM_HOOK_ERROR__INVALID_AUTHORITY, index$4_CPMM_HOOK_ERROR__INVALID_CONFIG as CPMM_HOOK_ERROR__INVALID_CONFIG, index$4_CPMM_HOOK_ERROR__INVALID_COSIGNER as CPMM_HOOK_ERROR__INVALID_COSIGNER, index$4_CPMM_HOOK_ERROR__INVALID_DURATION as CPMM_HOOK_ERROR__INVALID_DURATION, index$4_CPMM_HOOK_ERROR__INVALID_FEE as CPMM_HOOK_ERROR__INVALID_FEE, index$4_CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA as CPMM_HOOK_ERROR__INVALID_INSTRUCTION_DATA, index$4_CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA as CPMM_HOOK_ERROR__INVALID_SCHEDULE_DATA, index$4_CPMM_HOOK_PROGRAM_ADDRESS as CPMM_HOOK_PROGRAM_ADDRESS, index$4_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, type index$4_CosignerGateClock as CosignerGateClock, type index$4_CosignerGateExpiry as CosignerGateExpiry, type index$4_CosignerGateExpiryArgs as CosignerGateExpiryArgs, type index$4_CosignerGateStatus as CosignerGateStatus, index$4_CpmmHookAccount as CpmmHookAccount, type index$4_CpmmHookError as CpmmHookError, index$4_CpmmHookInstruction as CpmmHookInstruction, type index$4_CpmmHookPayloadArgs as CpmmHookPayloadArgs, type index$4_CpmmHookPlugin as CpmmHookPlugin, type index$4_CpmmHookPluginAccounts as CpmmHookPluginAccounts, type index$4_CpmmHookPluginInstructions as CpmmHookPluginInstructions, type index$4_CpmmHookPluginRequirements as CpmmHookPluginRequirements, type index$4_CpmmHookRemainingAccounts as CpmmHookRemainingAccounts, index$4_DEVNET_CPMM_HOOK_PROGRAM_ID as DEVNET_CPMM_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN as DYNAMIC_FEE_SCHEDULE_HEADER_LEN, index$4_DYNAMIC_FEE_SCHEDULE_LEN as DYNAMIC_FEE_SCHEDULE_LEN, index$4_DYNAMIC_FEE_SCHEDULE_MAGIC as DYNAMIC_FEE_SCHEDULE_MAGIC, index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS as DYNAMIC_FEE_SCHEDULE_MAX_BPS, index$4_DYNAMIC_FEE_SCHEDULE_VERSION as DYNAMIC_FEE_SCHEDULE_VERSION, type index$4_DynamicFeeScheduleArgs as DynamicFeeScheduleArgs, index$4_GATE_EXPIRY_DISABLED as GATE_EXPIRY_DISABLED, index$4_GATE_EXPIRY_HEADER_LEN as GATE_EXPIRY_HEADER_LEN, index$4_GATE_EXPIRY_PAYLOAD_LEN as GATE_EXPIRY_PAYLOAD_LEN, index$4_GATE_EXPIRY_PAYLOAD_VERSION as GATE_EXPIRY_PAYLOAD_VERSION, index$4_GATE_EXPIRY_SLOT as GATE_EXPIRY_SLOT, index$4_GATE_EXPIRY_UNIX_TIMESTAMP as GATE_EXPIRY_UNIX_TIMESTAMP, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedCpmmHookInstruction as ParsedCpmmHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_CPMM_HOOK_CONFIG as SEED_CPMM_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_cpmmHookProgram as cpmmHookProgram, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_decodeCosignerGateExpiryPayload as decodeCosignerGateExpiryPayload, index$4_encodeCosignerGateExpiryPayload as encodeCosignerGateExpiryPayload, index$4_encodeCpmmHookPayload as encodeCpmmHookPayload, index$4_encodeDynamicFeeCosignerGatePayload as encodeDynamicFeeCosignerGatePayload, index$4_encodeDynamicFeeSchedule as encodeDynamicFeeSchedule, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getCosignerGateStatus as getCosignerGateStatus, index$4_getCpmmHookConfigAddress as getCpmmHookConfigAddress, index$4_getCpmmHookErrorMessage as getCpmmHookErrorMessage, index$4_getCpmmHookRemainingAccountAddresses as getCpmmHookRemainingAccountAddresses, index$4_getCpmmHookRemainingAccounts as getCpmmHookRemainingAccounts, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyCpmmHookAccount as identifyCpmmHookAccount, index$4_identifyCpmmHookInstruction as identifyCpmmHookInstruction, index$4_isCosignerGateEnforced as isCosignerGateEnforced, index$4_isCpmmHookError as isCpmmHookError, index$4_isDynamicFeeSchedulePayload as isDynamicFeeSchedulePayload, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseCpmmHookInstruction as parseCpmmHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction, index$4_validateDynamicFeeScheduleArgs as validateDynamicFeeScheduleArgs };
3577
+ }
3578
+
3579
+ /**
3580
+ * Program ID for the Initializer program.
3581
+ *
3582
+ * Source of truth: programs/initializer/src/lib.rs
3583
+ */
3584
+ declare const INITIALIZER_PROGRAM_ID: Address;
3585
+ declare const BPF_LOADER_UPGRADEABLE_PROGRAM_ID: Address;
3586
+ /**
3587
+ * Hook program for prediction market launches.
3588
+ * Invoked during bonding curve swaps and previews as a pre/post-swap hook.
3589
+ *
3590
+ * Source of truth: programs/prediction_hook/src/lib.rs
3591
+ */
3592
+ declare const PREDICTION_HOOK_PROGRAM_ID: Address;
3593
+ declare const SEED_CONFIG = "config";
3594
+ declare const SEED_LAUNCH = "launch";
3326
3595
  declare const SEED_LAUNCH_AUTHORITY = "launch_authority";
3327
3596
  declare const SEED_LAUNCH_FEE_STATE = "launch_fee_state";
3328
3597
  /**
@@ -3406,6 +3675,7 @@ declare function getInitConfigEncoder$1(): FixedSizeEncoder<InitConfigArgs$1>;
3406
3675
  declare function getInitConfigDecoder$1(): FixedSizeDecoder<InitConfig$1>;
3407
3676
  /** Gets the codec for {@link InitConfig} account data. */
3408
3677
  declare function getInitConfigCodec$1(): FixedSizeCodec<InitConfigArgs$1, InitConfig$1>;
3678
+ declare function getInitConfigSize$1(): number;
3409
3679
 
3410
3680
  /**
3411
3681
  * This code was AUTOGENERATED using the Codama library.
@@ -3458,17 +3728,17 @@ type FeeClaimRoleArgs = FeeClaimRole;
3458
3728
  * @see https://github.com/codama-idl/codama
3459
3729
  */
3460
3730
 
3461
- type InitializeConfigArgs$1 = {
3731
+ type InitializeConfigArgs = {
3462
3732
  migratorAllowlist: Array<Address>;
3463
3733
  hookAllowlist: Array<Address>;
3464
3734
  protocolFeeBps: number;
3465
3735
  minSwapFeeBps: number;
3466
3736
  maxSwapFeeBps: number;
3467
3737
  };
3468
- type InitializeConfigArgsArgs$1 = InitializeConfigArgs$1;
3469
- declare function getInitializeConfigArgsEncoder$1(): Encoder<InitializeConfigArgsArgs$1>;
3470
- declare function getInitializeConfigArgsDecoder$1(): Decoder<InitializeConfigArgs$1>;
3471
- declare function getInitializeConfigArgsCodec$1(): Codec<InitializeConfigArgsArgs$1, InitializeConfigArgs$1>;
3738
+ type InitializeConfigArgsArgs = InitializeConfigArgs;
3739
+ declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
3740
+ declare function getInitializeConfigArgsDecoder(): Decoder<InitializeConfigArgs>;
3741
+ declare function getInitializeConfigArgsCodec(): Codec<InitializeConfigArgsArgs, InitializeConfigArgs>;
3472
3742
 
3473
3743
  /**
3474
3744
  * This code was AUTOGENERATED using the Codama library.
@@ -3925,25 +4195,25 @@ declare function getLaunchFeeStateAddress(launch: Address, programId?: Address):
3925
4195
  */
3926
4196
  declare function launchIdFromU64(launchId: bigint): Uint8Array;
3927
4197
 
3928
- type AddressOrSigner$6 = AddressOrTransactionSigner;
4198
+ type AddressOrSigner$7 = AddressOrTransactionSigner;
3929
4199
  interface InitializeConfigAccounts {
3930
- admin: AddressOrSigner$6;
4200
+ admin: AddressOrSigner$7;
3931
4201
  config: Address;
3932
4202
  programData: Address;
3933
4203
  systemProgram?: Address;
3934
4204
  }
3935
- declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs$1, programId?: Address): Instruction;
4205
+ declare function createInitializeConfigInstruction(accounts: InitializeConfigAccounts, args: InitializeConfigArgsArgs, programId?: Address): Instruction;
3936
4206
 
3937
- type AddressOrSigner$5 = AddressOrTransactionSigner;
4207
+ type AddressOrSigner$6 = AddressOrTransactionSigner;
3938
4208
  interface SetMigratorAllowlistAccounts {
3939
- admin: AddressOrSigner$5;
4209
+ admin: AddressOrSigner$6;
3940
4210
  config: Address;
3941
4211
  }
3942
4212
  declare function createSetMigratorAllowlistInstruction(accounts: SetMigratorAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
3943
4213
 
3944
- type AddressOrSigner$4 = AddressOrTransactionSigner;
4214
+ type AddressOrSigner$5 = AddressOrTransactionSigner;
3945
4215
  interface SetHookAllowlistAccounts {
3946
- admin: AddressOrSigner$4;
4216
+ admin: AddressOrSigner$5;
3947
4217
  config: Address;
3948
4218
  }
3949
4219
  declare function createSetHookAllowlistInstruction(accounts: SetHookAllowlistAccounts, allowlist: Address[], programId?: Address): Instruction;
@@ -3964,8 +4234,8 @@ type InitializeLaunchParams = Omit<InitializeLaunchArgsArgs, 'allowBuy' | 'allow
3964
4234
  hookCreateRemainingAccountsLen?: number;
3965
4235
  hookCreateRemainingAccountsHash?: ReadonlyUint8Array;
3966
4236
  };
3967
- type AddressOrSigner$3 = AddressOrTransactionSigner;
3968
- type ReadonlyRemainingAccount = AddressOrSigner$3;
4237
+ type AddressOrSigner$4 = AddressOrTransactionSigner;
4238
+ type ReadonlyRemainingAccount = AddressOrSigner$4;
3969
4239
  /**
3970
4240
  * Derive the Metaplex token metadata PDA for a given mint.
3971
4241
  * Seeds: ["metadata", TOKEN_METADATA_PROGRAM_ID, mint]
@@ -3978,13 +4248,13 @@ interface InitializeLaunchAccounts {
3978
4248
  config: Address;
3979
4249
  launch: Address;
3980
4250
  launchAuthority: Address;
3981
- baseMint: AddressOrSigner$3;
4251
+ baseMint: AddressOrSigner$4;
3982
4252
  quoteMint: Address;
3983
- baseVault: AddressOrSigner$3;
3984
- quoteVault: AddressOrSigner$3;
4253
+ baseVault: AddressOrSigner$4;
4254
+ quoteVault: AddressOrSigner$4;
3985
4255
  launchFeeState?: Address;
3986
- payer: AddressOrSigner$3;
3987
- authority?: AddressOrSigner$3;
4256
+ payer: AddressOrSigner$4;
4257
+ authority?: AddressOrSigner$4;
3988
4258
  hookProgram?: Address;
3989
4259
  migratorProgram?: Address;
3990
4260
  baseTokenProgram?: Address;
@@ -4028,7 +4298,7 @@ declare function createCurveSwapExactInInstruction(accounts: CurveSwapExactInAcc
4028
4298
  tradeDirection: number;
4029
4299
  }, programId?: Address): Instruction;
4030
4300
 
4031
- type AddressOrSigner$2 = AddressOrTransactionSigner;
4301
+ type AddressOrSigner$3 = AddressOrTransactionSigner;
4032
4302
  interface MigrateLaunchAccounts {
4033
4303
  config: Address;
4034
4304
  launch: Address;
@@ -4039,7 +4309,7 @@ interface MigrateLaunchAccounts {
4039
4309
  quoteVault: Address;
4040
4310
  launchFeeState: Address;
4041
4311
  migratorProgram: Address;
4042
- payer: AddressOrSigner$2;
4312
+ payer: AddressOrSigner$3;
4043
4313
  baseTokenProgram?: Address;
4044
4314
  quoteTokenProgram?: Address;
4045
4315
  systemProgram?: Address;
@@ -4056,629 +4326,34 @@ interface PreviewSwapExactInAccounts {
4056
4326
  launchFeeState: Address;
4057
4327
  baseVault: Address;
4058
4328
  quoteVault: Address;
4059
- hookProgram?: Address;
4060
- remainingAccounts?: RemainingAccount[];
4061
- }
4062
- declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
4063
- amountIn: bigint;
4064
- tradeDirection: number;
4065
- }, programId?: Address): Instruction;
4066
- declare function decodePreviewSwapExactInResult(data: Uint8Array): PreviewSwapExactInResult;
4067
-
4068
- interface PreviewMigrationResult {
4069
- baseVaultAmount: bigint;
4070
- quoteVaultAmount: bigint;
4071
- baseMintSupply: bigint;
4072
- }
4073
- interface PreviewMigrationAccounts {
4074
- launch: Address;
4075
- baseMint: Address;
4076
- baseVault: Address;
4077
- quoteVault: Address;
4078
- }
4079
- declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction;
4080
- declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult;
4081
-
4082
- /**
4083
- * This code was AUTOGENERATED using the Codama library.
4084
- * Please DO NOT EDIT THIS FILE, instead use visitors
4085
- * to add features, then rerun Codama to update it.
4086
- *
4087
- * @see https://github.com/codama-idl/codama
4088
- */
4089
-
4090
- declare const COSIGNER_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
4091
- declare function getCosignerConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
4092
- type CosignerConfig = {
4093
- discriminator: ReadonlyUint8Array;
4094
- adminAuthority: Address;
4095
- cosignerCount: number;
4096
- bump: number;
4097
- version: number;
4098
- reserved: ReadonlyUint8Array;
4099
- cosigners: Array<Address>;
4100
- };
4101
- type CosignerConfigArgs = {
4102
- adminAuthority: Address;
4103
- cosignerCount: number;
4104
- bump: number;
4105
- version: number;
4106
- reserved: ReadonlyUint8Array;
4107
- cosigners: Array<Address>;
4108
- };
4109
- /** Gets the encoder for {@link CosignerConfigArgs} account data. */
4110
- declare function getCosignerConfigEncoder(): FixedSizeEncoder<CosignerConfigArgs>;
4111
- /** Gets the decoder for {@link CosignerConfig} account data. */
4112
- declare function getCosignerConfigDecoder(): FixedSizeDecoder<CosignerConfig>;
4113
- /** Gets the codec for {@link CosignerConfig} account data. */
4114
- declare function getCosignerConfigCodec(): FixedSizeCodec<CosignerConfigArgs, CosignerConfig>;
4115
- declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CosignerConfig, TAddress>;
4116
- declare function decodeCosignerConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CosignerConfig, TAddress>;
4117
- declare function fetchCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CosignerConfig, TAddress>>;
4118
- declare function fetchMaybeCosignerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CosignerConfig, TAddress>>;
4119
- declare function fetchAllCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CosignerConfig>[]>;
4120
- declare function fetchAllMaybeCosignerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CosignerConfig>[]>;
4121
- declare function getCosignerConfigSize(): number;
4122
-
4123
- /**
4124
- * This code was AUTOGENERATED using the Codama library.
4125
- * Please DO NOT EDIT THIS FILE, instead use visitors
4126
- * to add features, then rerun Codama to update it.
4127
- *
4128
- * @see https://github.com/codama-idl/codama
4129
- */
4130
-
4131
- /** InvalidInstructionData: Invalid instruction data */
4132
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA = 6000;
4133
- /** InvalidScheduleData: Invalid schedule payload */
4134
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA = 6001;
4135
- /** InvalidFee: Invalid fee */
4136
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE = 6002;
4137
- /** InvalidDuration: Invalid fee duration */
4138
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION = 6003;
4139
- /** ArithmeticOverflow: Arithmetic overflow */
4140
- declare const DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW = 6004;
4141
- /** InvalidAuthority: Invalid hook authority */
4142
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY = 6005;
4143
- /** InvalidConfig: Invalid cosigner hook config */
4144
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG = 6006;
4145
- /** InvalidCosigner: Invalid cosigner key */
4146
- declare const DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER = 6007;
4147
- /** CosignerAlreadyExists: Cosigner already exists */
4148
- declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS = 6008;
4149
- /** CosignerNotFound: Cosigner not found */
4150
- declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND = 6009;
4151
- /** CosignerListFull: Cosigner list is full */
4152
- declare const DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL = 6010;
4153
- type DynamicFeeHookError = typeof DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL | typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA | typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA;
4154
- declare function getDynamicFeeHookErrorMessage(code: DynamicFeeHookError): string;
4155
- declare function isDynamicFeeHookError<TProgramErrorCode extends DynamicFeeHookError>(error: unknown, transactionMessage: {
4156
- instructions: Record<number, {
4157
- programAddress: Address;
4158
- }>;
4159
- }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
4160
- context: Readonly<{
4161
- code: TProgramErrorCode;
4162
- }>;
4163
- }>;
4164
-
4165
- /**
4166
- * This code was AUTOGENERATED using the Codama library.
4167
- * Please DO NOT EDIT THIS FILE, instead use visitors
4168
- * to add features, then rerun Codama to update it.
4169
- *
4170
- * @see https://github.com/codama-idl/codama
4171
- */
4172
-
4173
- declare const DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS: Address<"HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i">;
4174
- declare enum DynamicFeeHookAccount {
4175
- CosignerConfig = 0
4176
- }
4177
- declare function identifyDynamicFeeHookAccount(account: {
4178
- data: ReadonlyUint8Array;
4179
- } | ReadonlyUint8Array): DynamicFeeHookAccount;
4180
- declare enum DynamicFeeHookInstruction {
4181
- AddCosigner = 0,
4182
- InitializeConfig = 1,
4183
- RemoveCosigner = 2,
4184
- SetAuthority = 3
4185
- }
4186
- declare function identifyDynamicFeeHookInstruction(instruction: {
4187
- data: ReadonlyUint8Array;
4188
- } | ReadonlyUint8Array): DynamicFeeHookInstruction;
4189
- type ParsedDynamicFeeHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ({
4190
- instructionType: DynamicFeeHookInstruction.AddCosigner;
4191
- } & ParsedAddCosignerInstruction<TProgram>) | ({
4192
- instructionType: DynamicFeeHookInstruction.InitializeConfig;
4193
- } & ParsedInitializeConfigInstruction<TProgram>) | ({
4194
- instructionType: DynamicFeeHookInstruction.RemoveCosigner;
4195
- } & ParsedRemoveCosignerInstruction<TProgram>) | ({
4196
- instructionType: DynamicFeeHookInstruction.SetAuthority;
4197
- } & ParsedSetAuthorityInstruction<TProgram>);
4198
- declare function parseDynamicFeeHookInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedDynamicFeeHookInstruction<TProgram>;
4199
- type DynamicFeeHookPlugin = {
4200
- accounts: DynamicFeeHookPluginAccounts;
4201
- instructions: DynamicFeeHookPluginInstructions;
4202
- };
4203
- type DynamicFeeHookPluginAccounts = {
4204
- cosignerConfig: ReturnType<typeof getCosignerConfigCodec> & SelfFetchFunctions<CosignerConfigArgs, CosignerConfig>;
4205
- };
4206
- type DynamicFeeHookPluginInstructions = {
4207
- addCosigner: (input: AddCosignerAsyncInput) => ReturnType<typeof getAddCosignerInstructionAsync> & SelfPlanAndSendFunctions;
4208
- initializeConfig: (input: MakeOptional$1<InitializeConfigAsyncInput, 'payer'>) => ReturnType<typeof getInitializeConfigInstructionAsync> & SelfPlanAndSendFunctions;
4209
- removeCosigner: (input: RemoveCosignerAsyncInput) => ReturnType<typeof getRemoveCosignerInstructionAsync> & SelfPlanAndSendFunctions;
4210
- setAuthority: (input: SetAuthorityAsyncInput) => ReturnType<typeof getSetAuthorityInstructionAsync> & SelfPlanAndSendFunctions;
4211
- };
4212
- type DynamicFeeHookPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
4213
- declare function dynamicFeeHookProgram(): <T extends DynamicFeeHookPluginRequirements>(client: T) => T & {
4214
- dynamicFeeHook: DynamicFeeHookPlugin;
4215
- };
4216
- type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
4217
-
4218
- /**
4219
- * This code was AUTOGENERATED using the Codama library.
4220
- * Please DO NOT EDIT THIS FILE, instead use visitors
4221
- * to add features, then rerun Codama to update it.
4222
- *
4223
- * @see https://github.com/codama-idl/codama
4224
- */
4225
-
4226
- declare const ADD_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
4227
- declare function getAddCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
4228
- type AddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4229
- TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
4230
- TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
4231
- ...TRemainingAccounts
4232
- ]>;
4233
- type AddCosignerInstructionData = {
4234
- discriminator: ReadonlyUint8Array;
4235
- cosigner: Address;
4236
- };
4237
- type AddCosignerInstructionDataArgs = {
4238
- cosigner: Address;
4239
- };
4240
- declare function getAddCosignerInstructionDataEncoder(): FixedSizeEncoder<AddCosignerInstructionDataArgs>;
4241
- declare function getAddCosignerInstructionDataDecoder(): FixedSizeDecoder<AddCosignerInstructionData>;
4242
- declare function getAddCosignerInstructionDataCodec(): FixedSizeCodec<AddCosignerInstructionDataArgs, AddCosignerInstructionData>;
4243
- type AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4244
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4245
- config?: Address<TAccountConfig>;
4246
- cosigner: AddCosignerInstructionDataArgs['cosigner'];
4247
- };
4248
- declare function getAddCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4249
- programAddress?: TProgramAddress;
4250
- }): Promise<AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
4251
- type AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4252
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4253
- config: Address<TAccountConfig>;
4254
- cosigner: AddCosignerInstructionDataArgs['cosigner'];
4255
- };
4256
- declare function getAddCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: AddCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4257
- programAddress?: TProgramAddress;
4258
- }): AddCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
4259
- type ParsedAddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
4260
- programAddress: Address<TProgram>;
4261
- accounts: {
4262
- adminAuthority: TAccountMetas[0];
4263
- config: TAccountMetas[1];
4264
- };
4265
- data: AddCosignerInstructionData;
4266
- };
4267
- declare function parseAddCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
4268
-
4269
- /**
4270
- * This code was AUTOGENERATED using the Codama library.
4271
- * Please DO NOT EDIT THIS FILE, instead use visitors
4272
- * to add features, then rerun Codama to update it.
4273
- *
4274
- * @see https://github.com/codama-idl/codama
4275
- */
4276
-
4277
- declare const INITIALIZE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
4278
- declare function getInitializeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
4279
- type InitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4280
- TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
4281
- TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
4282
- TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
4283
- TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
4284
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
4285
- ...TRemainingAccounts
4286
- ]>;
4287
- type InitializeConfigInstructionData = {
4288
- discriminator: ReadonlyUint8Array;
4289
- cosigners: Array<Address>;
4290
- };
4291
- type InitializeConfigInstructionDataArgs = {
4292
- cosigners: Array<Address>;
4293
- };
4294
- declare function getInitializeConfigInstructionDataEncoder(): Encoder<InitializeConfigInstructionDataArgs>;
4295
- declare function getInitializeConfigInstructionDataDecoder(): Decoder<InitializeConfigInstructionData>;
4296
- declare function getInitializeConfigInstructionDataCodec(): Codec<InitializeConfigInstructionDataArgs, InitializeConfigInstructionData>;
4297
- type InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
4298
- payer: TransactionSigner<TAccountPayer>;
4299
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4300
- config?: Address<TAccountConfig>;
4301
- programData: Address<TAccountProgramData>;
4302
- systemProgram?: Address<TAccountSystemProgram>;
4303
- cosigners: InitializeConfigInstructionDataArgs['cosigners'];
4304
- };
4305
- declare function getInitializeConfigInstructionAsync<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
4306
- programAddress?: TProgramAddress;
4307
- }): Promise<InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>>;
4308
- type InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = {
4309
- payer: TransactionSigner<TAccountPayer>;
4310
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4311
- config: Address<TAccountConfig>;
4312
- programData: Address<TAccountProgramData>;
4313
- systemProgram?: Address<TAccountSystemProgram>;
4314
- cosigners: InitializeConfigInstructionDataArgs['cosigners'];
4315
- };
4316
- declare function getInitializeConfigInstruction<TAccountPayer extends string, TAccountAdminAuthority extends string, TAccountConfig extends string, TAccountProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>, config?: {
4317
- programAddress?: TProgramAddress;
4318
- }): InitializeConfigInstruction<TProgramAddress, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
4319
- type ParsedInitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
4320
- programAddress: Address<TProgram>;
4321
- accounts: {
4322
- payer: TAccountMetas[0];
4323
- adminAuthority: TAccountMetas[1];
4324
- config: TAccountMetas[2];
4325
- programData: TAccountMetas[3];
4326
- systemProgram: TAccountMetas[4];
4327
- };
4328
- data: InitializeConfigInstructionData;
4329
- };
4330
- declare function parseInitializeConfigInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
4331
-
4332
- /**
4333
- * This code was AUTOGENERATED using the Codama library.
4334
- * Please DO NOT EDIT THIS FILE, instead use visitors
4335
- * to add features, then rerun Codama to update it.
4336
- *
4337
- * @see https://github.com/codama-idl/codama
4338
- */
4339
-
4340
- declare const REMOVE_COSIGNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
4341
- declare function getRemoveCosignerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
4342
- type RemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4343
- TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
4344
- TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
4345
- ...TRemainingAccounts
4346
- ]>;
4347
- type RemoveCosignerInstructionData = {
4348
- discriminator: ReadonlyUint8Array;
4349
- cosigner: Address;
4350
- };
4351
- type RemoveCosignerInstructionDataArgs = {
4352
- cosigner: Address;
4353
- };
4354
- declare function getRemoveCosignerInstructionDataEncoder(): FixedSizeEncoder<RemoveCosignerInstructionDataArgs>;
4355
- declare function getRemoveCosignerInstructionDataDecoder(): FixedSizeDecoder<RemoveCosignerInstructionData>;
4356
- declare function getRemoveCosignerInstructionDataCodec(): FixedSizeCodec<RemoveCosignerInstructionDataArgs, RemoveCosignerInstructionData>;
4357
- type RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4358
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4359
- config?: Address<TAccountConfig>;
4360
- cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
4361
- };
4362
- declare function getRemoveCosignerInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4363
- programAddress?: TProgramAddress;
4364
- }): Promise<RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
4365
- type RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4366
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4367
- config: Address<TAccountConfig>;
4368
- cosigner: RemoveCosignerInstructionDataArgs['cosigner'];
4369
- };
4370
- declare function getRemoveCosignerInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4371
- programAddress?: TProgramAddress;
4372
- }): RemoveCosignerInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
4373
- type ParsedRemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
4374
- programAddress: Address<TProgram>;
4375
- accounts: {
4376
- adminAuthority: TAccountMetas[0];
4377
- config: TAccountMetas[1];
4378
- };
4379
- data: RemoveCosignerInstructionData;
4380
- };
4381
- declare function parseRemoveCosignerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
4382
-
4383
- /**
4384
- * This code was AUTOGENERATED using the Codama library.
4385
- * Please DO NOT EDIT THIS FILE, instead use visitors
4386
- * to add features, then rerun Codama to update it.
4387
- *
4388
- * @see https://github.com/codama-idl/codama
4389
- */
4390
-
4391
- declare const SET_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
4392
- declare function getSetAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
4393
- type SetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4394
- TAccountAdminAuthority extends string ? ReadonlySignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority,
4395
- TAccountConfig extends string ? WritableAccount<TAccountConfig> : TAccountConfig,
4396
- ...TRemainingAccounts
4397
- ]>;
4398
- type SetAuthorityInstructionData = {
4399
- discriminator: ReadonlyUint8Array;
4400
- adminAuthority: Address;
4401
- };
4402
- type SetAuthorityInstructionDataArgs = {
4403
- adminAuthority: Address;
4404
- };
4405
- declare function getSetAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetAuthorityInstructionDataArgs>;
4406
- declare function getSetAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetAuthorityInstructionData>;
4407
- declare function getSetAuthorityInstructionDataCodec(): FixedSizeCodec<SetAuthorityInstructionDataArgs, SetAuthorityInstructionData>;
4408
- type SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4409
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4410
- config?: Address<TAccountConfig>;
4411
- adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
4412
- };
4413
- declare function getSetAuthorityInstructionAsync<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4414
- programAddress?: TProgramAddress;
4415
- }): Promise<SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>>;
4416
- type SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = {
4417
- adminAuthority: TransactionSigner<TAccountAdminAuthority>;
4418
- config: Address<TAccountConfig>;
4419
- adminAuthorityArg: SetAuthorityInstructionDataArgs['adminAuthority'];
4420
- };
4421
- declare function getSetAuthorityInstruction<TAccountAdminAuthority extends string, TAccountConfig extends string, TProgramAddress extends Address = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS>(input: SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>, config?: {
4422
- programAddress?: TProgramAddress;
4423
- }): SetAuthorityInstruction<TProgramAddress, TAccountAdminAuthority, TAccountConfig>;
4424
- type ParsedSetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
4425
- programAddress: Address<TProgram>;
4426
- accounts: {
4427
- adminAuthority: TAccountMetas[0];
4428
- config: TAccountMetas[1];
4429
- };
4430
- data: SetAuthorityInstructionData;
4431
- };
4432
- declare function parseSetAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
4433
-
4434
- /**
4435
- * This code was AUTOGENERATED using the Codama library.
4436
- * Please DO NOT EDIT THIS FILE, instead use visitors
4437
- * to add features, then rerun Codama to update it.
4438
- *
4439
- * @see https://github.com/codama-idl/codama
4440
- */
4441
-
4442
- type CosignerArg = {
4443
- cosigner: Address;
4444
- };
4445
- type CosignerArgArgs = CosignerArg;
4446
- declare function getCosignerArgEncoder(): FixedSizeEncoder<CosignerArgArgs>;
4447
- declare function getCosignerArgDecoder(): FixedSizeDecoder<CosignerArg>;
4448
- declare function getCosignerArgCodec(): FixedSizeCodec<CosignerArgArgs, CosignerArg>;
4449
-
4450
- /**
4451
- * This code was AUTOGENERATED using the Codama library.
4452
- * Please DO NOT EDIT THIS FILE, instead use visitors
4453
- * to add features, then rerun Codama to update it.
4454
- *
4455
- * @see https://github.com/codama-idl/codama
4456
- */
4457
-
4458
- type InitializeConfigArgs = {
4459
- cosigners: Array<Address>;
4460
- };
4461
- type InitializeConfigArgsArgs = InitializeConfigArgs;
4462
- declare function getInitializeConfigArgsEncoder(): Encoder<InitializeConfigArgsArgs>;
4463
- declare function getInitializeConfigArgsDecoder(): Decoder<InitializeConfigArgs>;
4464
- declare function getInitializeConfigArgsCodec(): Codec<InitializeConfigArgsArgs, InitializeConfigArgs>;
4465
-
4466
- /**
4467
- * This code was AUTOGENERATED using the Codama library.
4468
- * Please DO NOT EDIT THIS FILE, instead use visitors
4469
- * to add features, then rerun Codama to update it.
4470
- *
4471
- * @see https://github.com/codama-idl/codama
4472
- */
4473
-
4474
- type SetAuthorityArgs = {
4475
- adminAuthority: Address;
4476
- };
4477
- type SetAuthorityArgsArgs = SetAuthorityArgs;
4478
- declare function getSetAuthorityArgsEncoder(): FixedSizeEncoder<SetAuthorityArgsArgs>;
4479
- declare function getSetAuthorityArgsDecoder(): FixedSizeDecoder<SetAuthorityArgs>;
4480
- declare function getSetAuthorityArgsCodec(): FixedSizeCodec<SetAuthorityArgsArgs, SetAuthorityArgs>;
4481
-
4482
- /**
4483
- * Default Doppler dynamic fee hook program for devnet deployments.
4484
- */
4485
- declare const DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID: Address;
4486
- declare const DYNAMIC_FEE_HOOK_PROGRAM_ID: Address;
4487
- declare const SEED_DYNAMIC_FEE_HOOK_CONFIG = "cosigner_hook_config";
4488
- declare const MAX_COSIGNERS = 32;
4489
- declare const DYNAMIC_FEE_SCHEDULE_MAGIC: Uint8Array<ArrayBuffer>;
4490
- declare const DYNAMIC_FEE_SCHEDULE_VERSION = 1;
4491
- declare const DYNAMIC_FEE_SCHEDULE_LEN = 32;
4492
- declare const DYNAMIC_FEE_SCHEDULE_HEADER_LEN = 16;
4493
- declare const DYNAMIC_FEE_SCHEDULE_MAX_BPS = 10000;
4494
-
4495
- type DynamicFeeScheduleArgs = {
4496
- /**
4497
- * Unix timestamp for the schedule start. Use 0 to let the hook normalize the
4498
- * start to the launch creation timestamp during BEFORE_CREATE.
4499
- */
4500
- startingTime: bigint | number;
4501
- startFeeBps: number;
4502
- endFeeBps: number;
4503
- durationSeconds: bigint | number;
4504
- };
4505
- type DynamicFeeHookPayloadArgs = {
4506
- schedule?: DynamicFeeScheduleArgs | null;
4507
- gateExpiry?: CosignerGateExpiryArgs | null;
4508
- };
4509
- type DynamicFeeHookRemainingAccounts = {
4510
- signedHookRemainingAccounts: RemainingAccount[];
4511
- unsignedHookRemainingAccounts: Address[];
4512
- hookRemainingAccountsHash: Uint8Array;
4513
- };
4514
- declare function validateDynamicFeeScheduleArgs(schedule: DynamicFeeScheduleArgs): {
4515
- startingTime: bigint;
4516
- durationSeconds: bigint;
4517
- };
4518
- declare function encodeDynamicFeeSchedule(schedule: DynamicFeeScheduleArgs): Uint8Array;
4519
- declare function encodeDynamicFeeHookPayload(args?: DynamicFeeHookPayloadArgs): Uint8Array;
4520
- declare function encodeDynamicFeeCosignerGatePayload(args: {
4521
- value: bigint | number;
4522
- mode: Exclude<CosignerGateExpiryArgs['mode'], typeof GATE_EXPIRY_DISABLED>;
4523
- cosigner: Address;
4524
- }): Uint8Array;
4525
- declare function getDynamicFeeHookRemainingAccounts({ namespace, config, cosigner, }: {
4526
- namespace: Address;
4527
- config?: Address;
4528
- cosigner?: AddressOrTransactionSigner;
4529
- }): DynamicFeeHookRemainingAccounts;
4530
- declare function getDynamicFeeHookRemainingAccountAddresses({ namespace, config, cosigner, }: {
4531
- namespace: Address;
4532
- config?: Address;
4533
- cosigner?: AddressOrTransactionSigner;
4534
- }): Address[];
4535
- declare function isDynamicFeeSchedulePayload(payload: ReadonlyUint8Array): boolean;
4536
-
4537
- declare function getDynamicFeeHookConfigAddress(programId?: Address): Promise<ProgramDerivedAddress>;
4329
+ hookProgram?: Address;
4330
+ remainingAccounts?: RemainingAccount[];
4331
+ }
4332
+ declare function createPreviewSwapExactInInstruction(accounts: PreviewSwapExactInAccounts, args: {
4333
+ amountIn: bigint;
4334
+ tradeDirection: number;
4335
+ }, programId?: Address): Instruction;
4336
+ declare function decodePreviewSwapExactInResult(data: Uint8Array): PreviewSwapExactInResult;
4538
4337
 
4539
- declare const index$4_ADD_COSIGNER_DISCRIMINATOR: typeof ADD_COSIGNER_DISCRIMINATOR;
4540
- type index$4_AddCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
4541
- type index$4_AddCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = AddCosignerInput<TAccountAdminAuthority, TAccountConfig>;
4542
- type index$4_AddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = AddCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
4543
- type index$4_AddCosignerInstructionData = AddCosignerInstructionData;
4544
- type index$4_AddCosignerInstructionDataArgs = AddCosignerInstructionDataArgs;
4545
- declare const index$4_COSIGNER_CONFIG_DISCRIMINATOR: typeof COSIGNER_CONFIG_DISCRIMINATOR;
4546
- type index$4_CosignerArg = CosignerArg;
4547
- type index$4_CosignerArgArgs = CosignerArgArgs;
4548
- type index$4_CosignerConfig = CosignerConfig;
4549
- type index$4_CosignerConfigArgs = CosignerConfigArgs;
4550
- declare const index$4_DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID: typeof DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID;
4551
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW: typeof DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW;
4552
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS;
4553
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL;
4554
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND: typeof DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND;
4555
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY;
4556
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG;
4557
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER;
4558
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION;
4559
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE;
4560
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA;
4561
- declare const index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA: typeof DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA;
4562
- declare const index$4_DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS: typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS;
4563
- declare const index$4_DYNAMIC_FEE_HOOK_PROGRAM_ID: typeof DYNAMIC_FEE_HOOK_PROGRAM_ID;
4564
- declare const index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN: typeof DYNAMIC_FEE_SCHEDULE_HEADER_LEN;
4565
- declare const index$4_DYNAMIC_FEE_SCHEDULE_LEN: typeof DYNAMIC_FEE_SCHEDULE_LEN;
4566
- declare const index$4_DYNAMIC_FEE_SCHEDULE_MAGIC: typeof DYNAMIC_FEE_SCHEDULE_MAGIC;
4567
- declare const index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS: typeof DYNAMIC_FEE_SCHEDULE_MAX_BPS;
4568
- declare const index$4_DYNAMIC_FEE_SCHEDULE_VERSION: typeof DYNAMIC_FEE_SCHEDULE_VERSION;
4569
- type index$4_DynamicFeeHookAccount = DynamicFeeHookAccount;
4570
- declare const index$4_DynamicFeeHookAccount: typeof DynamicFeeHookAccount;
4571
- type index$4_DynamicFeeHookError = DynamicFeeHookError;
4572
- type index$4_DynamicFeeHookInstruction = DynamicFeeHookInstruction;
4573
- declare const index$4_DynamicFeeHookInstruction: typeof DynamicFeeHookInstruction;
4574
- type index$4_DynamicFeeHookPayloadArgs = DynamicFeeHookPayloadArgs;
4575
- type index$4_DynamicFeeHookPlugin = DynamicFeeHookPlugin;
4576
- type index$4_DynamicFeeHookPluginAccounts = DynamicFeeHookPluginAccounts;
4577
- type index$4_DynamicFeeHookPluginInstructions = DynamicFeeHookPluginInstructions;
4578
- type index$4_DynamicFeeHookPluginRequirements = DynamicFeeHookPluginRequirements;
4579
- type index$4_DynamicFeeHookRemainingAccounts = DynamicFeeHookRemainingAccounts;
4580
- type index$4_DynamicFeeScheduleArgs = DynamicFeeScheduleArgs;
4581
- declare const index$4_INITIALIZE_CONFIG_DISCRIMINATOR: typeof INITIALIZE_CONFIG_DISCRIMINATOR;
4582
- type index$4_InitializeConfigArgs = InitializeConfigArgs;
4583
- type index$4_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
4584
- type index$4_InitializeConfigAsyncInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigAsyncInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
4585
- type index$4_InitializeConfigInput<TAccountPayer extends string = string, TAccountAdminAuthority extends string = string, TAccountConfig extends string = string, TAccountProgramData extends string = string, TAccountSystemProgram extends string = string> = InitializeConfigInput<TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram>;
4586
- type index$4_InitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = InitializeConfigInstruction<TProgram, TAccountPayer, TAccountAdminAuthority, TAccountConfig, TAccountProgramData, TAccountSystemProgram, TRemainingAccounts>;
4587
- type index$4_InitializeConfigInstructionData = InitializeConfigInstructionData;
4588
- type index$4_InitializeConfigInstructionDataArgs = InitializeConfigInstructionDataArgs;
4589
- declare const index$4_MAX_COSIGNERS: typeof MAX_COSIGNERS;
4590
- type index$4_ParsedAddCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedAddCosignerInstruction<TProgram, TAccountMetas>;
4591
- type index$4_ParsedDynamicFeeHookInstruction<TProgram extends string = 'HVsPNZh98TgChUXHwKrUG47SUqvGQHxUy5wZwcQLFD4i'> = ParsedDynamicFeeHookInstruction<TProgram>;
4592
- type index$4_ParsedInitializeConfigInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedInitializeConfigInstruction<TProgram, TAccountMetas>;
4593
- type index$4_ParsedRemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedRemoveCosignerInstruction<TProgram, TAccountMetas>;
4594
- type index$4_ParsedSetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = ParsedSetAuthorityInstruction<TProgram, TAccountMetas>;
4595
- declare const index$4_REMOVE_COSIGNER_DISCRIMINATOR: typeof REMOVE_COSIGNER_DISCRIMINATOR;
4596
- type index$4_RemoveCosignerAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerAsyncInput<TAccountAdminAuthority, TAccountConfig>;
4597
- type index$4_RemoveCosignerInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = RemoveCosignerInput<TAccountAdminAuthority, TAccountConfig>;
4598
- type index$4_RemoveCosignerInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = RemoveCosignerInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
4599
- type index$4_RemoveCosignerInstructionData = RemoveCosignerInstructionData;
4600
- type index$4_RemoveCosignerInstructionDataArgs = RemoveCosignerInstructionDataArgs;
4601
- declare const index$4_SEED_DYNAMIC_FEE_HOOK_CONFIG: typeof SEED_DYNAMIC_FEE_HOOK_CONFIG;
4602
- declare const index$4_SET_AUTHORITY_DISCRIMINATOR: typeof SET_AUTHORITY_DISCRIMINATOR;
4603
- type index$4_SetAuthorityArgs = SetAuthorityArgs;
4604
- type index$4_SetAuthorityArgsArgs = SetAuthorityArgsArgs;
4605
- type index$4_SetAuthorityAsyncInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityAsyncInput<TAccountAdminAuthority, TAccountConfig>;
4606
- type index$4_SetAuthorityInput<TAccountAdminAuthority extends string = string, TAccountConfig extends string = string> = SetAuthorityInput<TAccountAdminAuthority, TAccountConfig>;
4607
- type index$4_SetAuthorityInstruction<TProgram extends string = typeof DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = SetAuthorityInstruction<TProgram, TAccountAdminAuthority, TAccountConfig, TRemainingAccounts>;
4608
- type index$4_SetAuthorityInstructionData = SetAuthorityInstructionData;
4609
- type index$4_SetAuthorityInstructionDataArgs = SetAuthorityInstructionDataArgs;
4610
- declare const index$4_decodeCosignerConfig: typeof decodeCosignerConfig;
4611
- declare const index$4_dynamicFeeHookProgram: typeof dynamicFeeHookProgram;
4612
- declare const index$4_encodeDynamicFeeCosignerGatePayload: typeof encodeDynamicFeeCosignerGatePayload;
4613
- declare const index$4_encodeDynamicFeeHookPayload: typeof encodeDynamicFeeHookPayload;
4614
- declare const index$4_encodeDynamicFeeSchedule: typeof encodeDynamicFeeSchedule;
4615
- declare const index$4_fetchAllCosignerConfig: typeof fetchAllCosignerConfig;
4616
- declare const index$4_fetchAllMaybeCosignerConfig: typeof fetchAllMaybeCosignerConfig;
4617
- declare const index$4_fetchCosignerConfig: typeof fetchCosignerConfig;
4618
- declare const index$4_fetchMaybeCosignerConfig: typeof fetchMaybeCosignerConfig;
4619
- declare const index$4_getAddCosignerDiscriminatorBytes: typeof getAddCosignerDiscriminatorBytes;
4620
- declare const index$4_getAddCosignerInstruction: typeof getAddCosignerInstruction;
4621
- declare const index$4_getAddCosignerInstructionAsync: typeof getAddCosignerInstructionAsync;
4622
- declare const index$4_getAddCosignerInstructionDataCodec: typeof getAddCosignerInstructionDataCodec;
4623
- declare const index$4_getAddCosignerInstructionDataDecoder: typeof getAddCosignerInstructionDataDecoder;
4624
- declare const index$4_getAddCosignerInstructionDataEncoder: typeof getAddCosignerInstructionDataEncoder;
4625
- declare const index$4_getCosignerArgCodec: typeof getCosignerArgCodec;
4626
- declare const index$4_getCosignerArgDecoder: typeof getCosignerArgDecoder;
4627
- declare const index$4_getCosignerArgEncoder: typeof getCosignerArgEncoder;
4628
- declare const index$4_getCosignerConfigCodec: typeof getCosignerConfigCodec;
4629
- declare const index$4_getCosignerConfigDecoder: typeof getCosignerConfigDecoder;
4630
- declare const index$4_getCosignerConfigDiscriminatorBytes: typeof getCosignerConfigDiscriminatorBytes;
4631
- declare const index$4_getCosignerConfigEncoder: typeof getCosignerConfigEncoder;
4632
- declare const index$4_getCosignerConfigSize: typeof getCosignerConfigSize;
4633
- declare const index$4_getDynamicFeeHookConfigAddress: typeof getDynamicFeeHookConfigAddress;
4634
- declare const index$4_getDynamicFeeHookErrorMessage: typeof getDynamicFeeHookErrorMessage;
4635
- declare const index$4_getDynamicFeeHookRemainingAccountAddresses: typeof getDynamicFeeHookRemainingAccountAddresses;
4636
- declare const index$4_getDynamicFeeHookRemainingAccounts: typeof getDynamicFeeHookRemainingAccounts;
4637
- declare const index$4_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
4638
- declare const index$4_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
4639
- declare const index$4_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
4640
- declare const index$4_getInitializeConfigDiscriminatorBytes: typeof getInitializeConfigDiscriminatorBytes;
4641
- declare const index$4_getInitializeConfigInstruction: typeof getInitializeConfigInstruction;
4642
- declare const index$4_getInitializeConfigInstructionAsync: typeof getInitializeConfigInstructionAsync;
4643
- declare const index$4_getInitializeConfigInstructionDataCodec: typeof getInitializeConfigInstructionDataCodec;
4644
- declare const index$4_getInitializeConfigInstructionDataDecoder: typeof getInitializeConfigInstructionDataDecoder;
4645
- declare const index$4_getInitializeConfigInstructionDataEncoder: typeof getInitializeConfigInstructionDataEncoder;
4646
- declare const index$4_getRemoveCosignerDiscriminatorBytes: typeof getRemoveCosignerDiscriminatorBytes;
4647
- declare const index$4_getRemoveCosignerInstruction: typeof getRemoveCosignerInstruction;
4648
- declare const index$4_getRemoveCosignerInstructionAsync: typeof getRemoveCosignerInstructionAsync;
4649
- declare const index$4_getRemoveCosignerInstructionDataCodec: typeof getRemoveCosignerInstructionDataCodec;
4650
- declare const index$4_getRemoveCosignerInstructionDataDecoder: typeof getRemoveCosignerInstructionDataDecoder;
4651
- declare const index$4_getRemoveCosignerInstructionDataEncoder: typeof getRemoveCosignerInstructionDataEncoder;
4652
- declare const index$4_getSetAuthorityArgsCodec: typeof getSetAuthorityArgsCodec;
4653
- declare const index$4_getSetAuthorityArgsDecoder: typeof getSetAuthorityArgsDecoder;
4654
- declare const index$4_getSetAuthorityArgsEncoder: typeof getSetAuthorityArgsEncoder;
4655
- declare const index$4_getSetAuthorityDiscriminatorBytes: typeof getSetAuthorityDiscriminatorBytes;
4656
- declare const index$4_getSetAuthorityInstruction: typeof getSetAuthorityInstruction;
4657
- declare const index$4_getSetAuthorityInstructionAsync: typeof getSetAuthorityInstructionAsync;
4658
- declare const index$4_getSetAuthorityInstructionDataCodec: typeof getSetAuthorityInstructionDataCodec;
4659
- declare const index$4_getSetAuthorityInstructionDataDecoder: typeof getSetAuthorityInstructionDataDecoder;
4660
- declare const index$4_getSetAuthorityInstructionDataEncoder: typeof getSetAuthorityInstructionDataEncoder;
4661
- declare const index$4_identifyDynamicFeeHookAccount: typeof identifyDynamicFeeHookAccount;
4662
- declare const index$4_identifyDynamicFeeHookInstruction: typeof identifyDynamicFeeHookInstruction;
4663
- declare const index$4_isDynamicFeeHookError: typeof isDynamicFeeHookError;
4664
- declare const index$4_isDynamicFeeSchedulePayload: typeof isDynamicFeeSchedulePayload;
4665
- declare const index$4_parseAddCosignerInstruction: typeof parseAddCosignerInstruction;
4666
- declare const index$4_parseDynamicFeeHookInstruction: typeof parseDynamicFeeHookInstruction;
4667
- declare const index$4_parseInitializeConfigInstruction: typeof parseInitializeConfigInstruction;
4668
- declare const index$4_parseRemoveCosignerInstruction: typeof parseRemoveCosignerInstruction;
4669
- declare const index$4_parseSetAuthorityInstruction: typeof parseSetAuthorityInstruction;
4670
- declare const index$4_validateDynamicFeeScheduleArgs: typeof validateDynamicFeeScheduleArgs;
4671
- declare namespace index$4 {
4672
- export { index$4_ADD_COSIGNER_DISCRIMINATOR as ADD_COSIGNER_DISCRIMINATOR, type index$4_AddCosignerAsyncInput as AddCosignerAsyncInput, type index$4_AddCosignerInput as AddCosignerInput, type index$4_AddCosignerInstruction as AddCosignerInstruction, type index$4_AddCosignerInstructionData as AddCosignerInstructionData, type index$4_AddCosignerInstructionDataArgs as AddCosignerInstructionDataArgs, index$4_COSIGNER_CONFIG_DISCRIMINATOR as COSIGNER_CONFIG_DISCRIMINATOR, type index$4_CosignerArg as CosignerArg, type index$4_CosignerArgArgs as CosignerArgArgs, type index$4_CosignerConfig as CosignerConfig, type index$4_CosignerConfigArgs as CosignerConfigArgs, index$4_DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID as DEVNET_DYNAMIC_FEE_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW as DYNAMIC_FEE_HOOK_ERROR__ARITHMETIC_OVERFLOW, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_ALREADY_EXISTS, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_LIST_FULL, index$4_DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND as DYNAMIC_FEE_HOOK_ERROR__COSIGNER_NOT_FOUND, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY as DYNAMIC_FEE_HOOK_ERROR__INVALID_AUTHORITY, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG as DYNAMIC_FEE_HOOK_ERROR__INVALID_CONFIG, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER as DYNAMIC_FEE_HOOK_ERROR__INVALID_COSIGNER, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION as DYNAMIC_FEE_HOOK_ERROR__INVALID_DURATION, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE as DYNAMIC_FEE_HOOK_ERROR__INVALID_FEE, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA as DYNAMIC_FEE_HOOK_ERROR__INVALID_INSTRUCTION_DATA, index$4_DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA as DYNAMIC_FEE_HOOK_ERROR__INVALID_SCHEDULE_DATA, index$4_DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS as DYNAMIC_FEE_HOOK_PROGRAM_ADDRESS, index$4_DYNAMIC_FEE_HOOK_PROGRAM_ID as DYNAMIC_FEE_HOOK_PROGRAM_ID, index$4_DYNAMIC_FEE_SCHEDULE_HEADER_LEN as DYNAMIC_FEE_SCHEDULE_HEADER_LEN, index$4_DYNAMIC_FEE_SCHEDULE_LEN as DYNAMIC_FEE_SCHEDULE_LEN, index$4_DYNAMIC_FEE_SCHEDULE_MAGIC as DYNAMIC_FEE_SCHEDULE_MAGIC, index$4_DYNAMIC_FEE_SCHEDULE_MAX_BPS as DYNAMIC_FEE_SCHEDULE_MAX_BPS, index$4_DYNAMIC_FEE_SCHEDULE_VERSION as DYNAMIC_FEE_SCHEDULE_VERSION, index$4_DynamicFeeHookAccount as DynamicFeeHookAccount, type index$4_DynamicFeeHookError as DynamicFeeHookError, index$4_DynamicFeeHookInstruction as DynamicFeeHookInstruction, type index$4_DynamicFeeHookPayloadArgs as DynamicFeeHookPayloadArgs, type index$4_DynamicFeeHookPlugin as DynamicFeeHookPlugin, type index$4_DynamicFeeHookPluginAccounts as DynamicFeeHookPluginAccounts, type index$4_DynamicFeeHookPluginInstructions as DynamicFeeHookPluginInstructions, type index$4_DynamicFeeHookPluginRequirements as DynamicFeeHookPluginRequirements, type index$4_DynamicFeeHookRemainingAccounts as DynamicFeeHookRemainingAccounts, type index$4_DynamicFeeScheduleArgs as DynamicFeeScheduleArgs, index$4_INITIALIZE_CONFIG_DISCRIMINATOR as INITIALIZE_CONFIG_DISCRIMINATOR, type index$4_InitializeConfigArgs as InitializeConfigArgs, type index$4_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$4_InitializeConfigAsyncInput as InitializeConfigAsyncInput, type index$4_InitializeConfigInput as InitializeConfigInput, type index$4_InitializeConfigInstruction as InitializeConfigInstruction, type index$4_InitializeConfigInstructionData as InitializeConfigInstructionData, type index$4_InitializeConfigInstructionDataArgs as InitializeConfigInstructionDataArgs, index$4_MAX_COSIGNERS as MAX_COSIGNERS, type index$4_ParsedAddCosignerInstruction as ParsedAddCosignerInstruction, type index$4_ParsedDynamicFeeHookInstruction as ParsedDynamicFeeHookInstruction, type index$4_ParsedInitializeConfigInstruction as ParsedInitializeConfigInstruction, type index$4_ParsedRemoveCosignerInstruction as ParsedRemoveCosignerInstruction, type index$4_ParsedSetAuthorityInstruction as ParsedSetAuthorityInstruction, index$4_REMOVE_COSIGNER_DISCRIMINATOR as REMOVE_COSIGNER_DISCRIMINATOR, type index$4_RemoveCosignerAsyncInput as RemoveCosignerAsyncInput, type index$4_RemoveCosignerInput as RemoveCosignerInput, type index$4_RemoveCosignerInstruction as RemoveCosignerInstruction, type index$4_RemoveCosignerInstructionData as RemoveCosignerInstructionData, type index$4_RemoveCosignerInstructionDataArgs as RemoveCosignerInstructionDataArgs, index$4_SEED_DYNAMIC_FEE_HOOK_CONFIG as SEED_DYNAMIC_FEE_HOOK_CONFIG, index$4_SET_AUTHORITY_DISCRIMINATOR as SET_AUTHORITY_DISCRIMINATOR, type index$4_SetAuthorityArgs as SetAuthorityArgs, type index$4_SetAuthorityArgsArgs as SetAuthorityArgsArgs, type index$4_SetAuthorityAsyncInput as SetAuthorityAsyncInput, type index$4_SetAuthorityInput as SetAuthorityInput, type index$4_SetAuthorityInstruction as SetAuthorityInstruction, type index$4_SetAuthorityInstructionData as SetAuthorityInstructionData, type index$4_SetAuthorityInstructionDataArgs as SetAuthorityInstructionDataArgs, index$4_decodeCosignerConfig as decodeCosignerConfig, index$4_dynamicFeeHookProgram as dynamicFeeHookProgram, index$4_encodeDynamicFeeCosignerGatePayload as encodeDynamicFeeCosignerGatePayload, index$4_encodeDynamicFeeHookPayload as encodeDynamicFeeHookPayload, index$4_encodeDynamicFeeSchedule as encodeDynamicFeeSchedule, index$4_fetchAllCosignerConfig as fetchAllCosignerConfig, index$4_fetchAllMaybeCosignerConfig as fetchAllMaybeCosignerConfig, index$4_fetchCosignerConfig as fetchCosignerConfig, index$4_fetchMaybeCosignerConfig as fetchMaybeCosignerConfig, index$4_getAddCosignerDiscriminatorBytes as getAddCosignerDiscriminatorBytes, index$4_getAddCosignerInstruction as getAddCosignerInstruction, index$4_getAddCosignerInstructionAsync as getAddCosignerInstructionAsync, index$4_getAddCosignerInstructionDataCodec as getAddCosignerInstructionDataCodec, index$4_getAddCosignerInstructionDataDecoder as getAddCosignerInstructionDataDecoder, index$4_getAddCosignerInstructionDataEncoder as getAddCosignerInstructionDataEncoder, index$4_getCosignerArgCodec as getCosignerArgCodec, index$4_getCosignerArgDecoder as getCosignerArgDecoder, index$4_getCosignerArgEncoder as getCosignerArgEncoder, index$4_getCosignerConfigCodec as getCosignerConfigCodec, index$4_getCosignerConfigDecoder as getCosignerConfigDecoder, index$4_getCosignerConfigDiscriminatorBytes as getCosignerConfigDiscriminatorBytes, index$4_getCosignerConfigEncoder as getCosignerConfigEncoder, index$4_getCosignerConfigSize as getCosignerConfigSize, index$4_getDynamicFeeHookConfigAddress as getDynamicFeeHookConfigAddress, index$4_getDynamicFeeHookErrorMessage as getDynamicFeeHookErrorMessage, index$4_getDynamicFeeHookRemainingAccountAddresses as getDynamicFeeHookRemainingAccountAddresses, index$4_getDynamicFeeHookRemainingAccounts as getDynamicFeeHookRemainingAccounts, index$4_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$4_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$4_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$4_getInitializeConfigDiscriminatorBytes as getInitializeConfigDiscriminatorBytes, index$4_getInitializeConfigInstruction as getInitializeConfigInstruction, index$4_getInitializeConfigInstructionAsync as getInitializeConfigInstructionAsync, index$4_getInitializeConfigInstructionDataCodec as getInitializeConfigInstructionDataCodec, index$4_getInitializeConfigInstructionDataDecoder as getInitializeConfigInstructionDataDecoder, index$4_getInitializeConfigInstructionDataEncoder as getInitializeConfigInstructionDataEncoder, index$4_getRemoveCosignerDiscriminatorBytes as getRemoveCosignerDiscriminatorBytes, index$4_getRemoveCosignerInstruction as getRemoveCosignerInstruction, index$4_getRemoveCosignerInstructionAsync as getRemoveCosignerInstructionAsync, index$4_getRemoveCosignerInstructionDataCodec as getRemoveCosignerInstructionDataCodec, index$4_getRemoveCosignerInstructionDataDecoder as getRemoveCosignerInstructionDataDecoder, index$4_getRemoveCosignerInstructionDataEncoder as getRemoveCosignerInstructionDataEncoder, index$4_getSetAuthorityArgsCodec as getSetAuthorityArgsCodec, index$4_getSetAuthorityArgsDecoder as getSetAuthorityArgsDecoder, index$4_getSetAuthorityArgsEncoder as getSetAuthorityArgsEncoder, index$4_getSetAuthorityDiscriminatorBytes as getSetAuthorityDiscriminatorBytes, index$4_getSetAuthorityInstruction as getSetAuthorityInstruction, index$4_getSetAuthorityInstructionAsync as getSetAuthorityInstructionAsync, index$4_getSetAuthorityInstructionDataCodec as getSetAuthorityInstructionDataCodec, index$4_getSetAuthorityInstructionDataDecoder as getSetAuthorityInstructionDataDecoder, index$4_getSetAuthorityInstructionDataEncoder as getSetAuthorityInstructionDataEncoder, index$4_identifyDynamicFeeHookAccount as identifyDynamicFeeHookAccount, index$4_identifyDynamicFeeHookInstruction as identifyDynamicFeeHookInstruction, index$4_isDynamicFeeHookError as isDynamicFeeHookError, index$4_isDynamicFeeSchedulePayload as isDynamicFeeSchedulePayload, index$4_parseAddCosignerInstruction as parseAddCosignerInstruction, index$4_parseDynamicFeeHookInstruction as parseDynamicFeeHookInstruction, index$4_parseInitializeConfigInstruction as parseInitializeConfigInstruction, index$4_parseRemoveCosignerInstruction as parseRemoveCosignerInstruction, index$4_parseSetAuthorityInstruction as parseSetAuthorityInstruction, index$4_validateDynamicFeeScheduleArgs as validateDynamicFeeScheduleArgs };
4338
+ interface PreviewMigrationResult {
4339
+ baseVaultAmount: bigint;
4340
+ quoteVaultAmount: bigint;
4341
+ baseMintSupply: bigint;
4342
+ }
4343
+ interface PreviewMigrationAccounts {
4344
+ launch: Address;
4345
+ baseMint: Address;
4346
+ baseVault: Address;
4347
+ quoteVault: Address;
4673
4348
  }
4349
+ declare function createPreviewMigrationInstruction(accounts: PreviewMigrationAccounts, programId?: Address): Instruction;
4350
+ declare function decodePreviewMigrationResult(data: Uint8Array): PreviewMigrationResult;
4674
4351
 
4675
4352
  interface SolanaCpmmProgramAddresses {
4676
4353
  cpmmProgram: Address;
4677
4354
  initializerProgram: Address;
4678
4355
  cpmmMigratorProgram: Address;
4679
4356
  cpmmHookProgram: Address;
4680
- cosignerHookProgram: Address;
4681
- dynamicFeeHookProgram: Address;
4682
4357
  }
4683
4358
  interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4684
4359
  cpmmConfig: Address;
@@ -4687,6 +4362,32 @@ interface SolanaCpmmDeployment extends SolanaCpmmProgramAddresses {
4687
4362
  declare const DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES: SolanaCpmmProgramAddresses;
4688
4363
  declare function deriveSolanaCpmmDeployment(programs?: SolanaCpmmProgramAddresses): Promise<SolanaCpmmDeployment>;
4689
4364
 
4365
+ /**
4366
+ * This code was AUTOGENERATED using the Codama library.
4367
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4368
+ * to add features, then rerun Codama to update it.
4369
+ *
4370
+ * @see https://github.com/codama-idl/codama
4371
+ */
4372
+
4373
+ type CreateSpotPoolArgs = {
4374
+ swapFeeBps: number;
4375
+ positionId: bigint;
4376
+ amount0Max: bigint;
4377
+ amount1Max: bigint;
4378
+ minSharesOut: bigint;
4379
+ };
4380
+ type CreateSpotPoolArgsArgs = {
4381
+ swapFeeBps: number;
4382
+ positionId: number | bigint;
4383
+ amount0Max: number | bigint;
4384
+ amount1Max: number | bigint;
4385
+ minSharesOut: number | bigint;
4386
+ };
4387
+ declare function getCreateSpotPoolArgsEncoder(): FixedSizeEncoder<CreateSpotPoolArgsArgs>;
4388
+ declare function getCreateSpotPoolArgsDecoder(): FixedSizeDecoder<CreateSpotPoolArgs>;
4389
+ declare function getCreateSpotPoolArgsCodec(): FixedSizeCodec<CreateSpotPoolArgsArgs, CreateSpotPoolArgs>;
4390
+
4690
4391
  /**
4691
4392
  * This code was AUTOGENERATED using the Codama library.
4692
4393
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -4783,6 +4484,33 @@ declare function getRegisterLaunchArgsEncoder(): Encoder<RegisterLaunchArgsArgs>
4783
4484
  declare function getRegisterLaunchArgsDecoder(): Decoder<RegisterLaunchArgs>;
4784
4485
  declare function getRegisterLaunchArgsCodec(): Codec<RegisterLaunchArgsArgs, RegisterLaunchArgs>;
4785
4486
 
4487
+ /**
4488
+ * This code was AUTOGENERATED using the Codama library.
4489
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4490
+ * to add features, then rerun Codama to update it.
4491
+ *
4492
+ * @see https://github.com/codama-idl/codama
4493
+ */
4494
+
4495
+ type SpotPoolCreated = {
4496
+ pool: Address;
4497
+ owner: Address;
4498
+ token0Mint: Address;
4499
+ token1Mint: Address;
4500
+ amount0Max: bigint;
4501
+ amount1Max: bigint;
4502
+ swapFeeBps: number;
4503
+ };
4504
+ type SpotPoolCreatedArgs = {
4505
+ pool: Address;
4506
+ owner: Address;
4507
+ token0Mint: Address;
4508
+ token1Mint: Address;
4509
+ amount0Max: number | bigint;
4510
+ amount1Max: number | bigint;
4511
+ swapFeeBps: number;
4512
+ };
4513
+
4786
4514
  /**
4787
4515
  * This code was AUTOGENERATED using the Codama library.
4788
4516
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -4859,11 +4587,132 @@ declare function getCpmmMigratorStateDecoder(): Decoder<CpmmMigratorState>;
4859
4587
  /** Gets the codec for {@link CpmmMigratorState} account data. */
4860
4588
  declare function getCpmmMigratorStateCodec(): Codec<CpmmMigratorStateArgs, CpmmMigratorState>;
4861
4589
 
4590
+ /**
4591
+ * This code was AUTOGENERATED using the Codama library.
4592
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4593
+ * to add features, then rerun Codama to update it.
4594
+ *
4595
+ * @see https://github.com/codama-idl/codama
4596
+ */
4597
+
4598
+ declare const CPMM_MIGRATOR_PROGRAM_ADDRESS: Address<"7WMUTNC41eMCo6eGH5Sy2xbgE3AycvLbFPo95AU9CSUd">;
4599
+
4600
+ /**
4601
+ * This code was AUTOGENERATED using the Codama library.
4602
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4603
+ * to add features, then rerun Codama to update it.
4604
+ *
4605
+ * @see https://github.com/codama-idl/codama
4606
+ */
4607
+
4608
+ type CreateSpotPoolInstruction$1<TProgram extends string = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS, TAccountCpmmConfig extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountLiquidityOwner extends string | AccountMeta<string> = string, TAccountToken0Mint extends string | AccountMeta<string> = string, TAccountToken1Mint extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPoolAuthority extends string | AccountMeta<string> = string, TAccountPoolVault0 extends string | AccountMeta<string> = string, TAccountPoolVault1 extends string | AccountMeta<string> = string, TAccountProtocolFeeOwner extends string | AccountMeta<string> = string, TAccountProtocolFeePosition extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountUser0 extends string | AccountMeta<string> = string, TAccountUser1 extends string | AccountMeta<string> = string, TAccountCpmmProgram extends string | AccountMeta<string> = '9PSxVPoPfnbZ8Q1uQhgS6ZxvBjFboZtebNsu34umxkgQ', TAccountMigrationAuthority extends string | AccountMeta<string> = string, TAccountToken0Program extends string | AccountMeta<string> = string, TAccountToken1Program extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
4609
+ TAccountCpmmConfig extends string ? ReadonlyAccount<TAccountCpmmConfig> : TAccountCpmmConfig,
4610
+ TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
4611
+ TAccountLiquidityOwner extends string ? ReadonlySignerAccount<TAccountLiquidityOwner> & AccountSignerMeta<TAccountLiquidityOwner> : TAccountLiquidityOwner,
4612
+ TAccountToken0Mint extends string ? ReadonlyAccount<TAccountToken0Mint> : TAccountToken0Mint,
4613
+ TAccountToken1Mint extends string ? ReadonlyAccount<TAccountToken1Mint> : TAccountToken1Mint,
4614
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
4615
+ TAccountPoolAuthority extends string ? ReadonlyAccount<TAccountPoolAuthority> : TAccountPoolAuthority,
4616
+ TAccountPoolVault0 extends string ? WritableAccount<TAccountPoolVault0> : TAccountPoolVault0,
4617
+ TAccountPoolVault1 extends string ? WritableAccount<TAccountPoolVault1> : TAccountPoolVault1,
4618
+ TAccountProtocolFeeOwner extends string ? ReadonlyAccount<TAccountProtocolFeeOwner> : TAccountProtocolFeeOwner,
4619
+ TAccountProtocolFeePosition extends string ? WritableAccount<TAccountProtocolFeePosition> : TAccountProtocolFeePosition,
4620
+ TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition,
4621
+ TAccountUser0 extends string ? WritableAccount<TAccountUser0> : TAccountUser0,
4622
+ TAccountUser1 extends string ? WritableAccount<TAccountUser1> : TAccountUser1,
4623
+ TAccountCpmmProgram extends string ? ReadonlyAccount<TAccountCpmmProgram> : TAccountCpmmProgram,
4624
+ TAccountMigrationAuthority extends string ? ReadonlyAccount<TAccountMigrationAuthority> : TAccountMigrationAuthority,
4625
+ TAccountToken0Program extends string ? ReadonlyAccount<TAccountToken0Program> : TAccountToken0Program,
4626
+ TAccountToken1Program extends string ? ReadonlyAccount<TAccountToken1Program> : TAccountToken1Program,
4627
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
4628
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
4629
+ ...TRemainingAccounts
4630
+ ]>;
4631
+ type CreateSpotPoolInstructionData = {
4632
+ discriminator: ReadonlyUint8Array;
4633
+ swapFeeBps: number;
4634
+ positionId: bigint;
4635
+ amount0Max: bigint;
4636
+ amount1Max: bigint;
4637
+ minSharesOut: bigint;
4638
+ };
4639
+ type CreateSpotPoolInstructionDataArgs = {
4640
+ swapFeeBps: number;
4641
+ positionId: number | bigint;
4642
+ amount0Max: number | bigint;
4643
+ amount1Max: number | bigint;
4644
+ minSharesOut: number | bigint;
4645
+ };
4646
+ declare function getCreateSpotPoolInstructionDataEncoder(): FixedSizeEncoder<CreateSpotPoolInstructionDataArgs>;
4647
+ declare function getCreateSpotPoolInstructionDataDecoder(): FixedSizeDecoder<CreateSpotPoolInstructionData>;
4648
+ declare function getCreateSpotPoolInstructionDataCodec(): FixedSizeCodec<CreateSpotPoolInstructionDataArgs, CreateSpotPoolInstructionData>;
4649
+ type CreateSpotPoolAsyncInput<TAccountCpmmConfig extends string = string, TAccountPayer extends string = string, TAccountLiquidityOwner extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountProtocolFeePosition extends string = string, TAccountPosition extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountCpmmProgram extends string = string, TAccountMigrationAuthority extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
4650
+ cpmmConfig: Address<TAccountCpmmConfig>;
4651
+ payer: TransactionSigner<TAccountPayer>;
4652
+ liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
4653
+ token0Mint: Address<TAccountToken0Mint>;
4654
+ token1Mint: Address<TAccountToken1Mint>;
4655
+ pool: Address<TAccountPool>;
4656
+ poolAuthority: Address<TAccountPoolAuthority>;
4657
+ poolVault0: Address<TAccountPoolVault0>;
4658
+ poolVault1: Address<TAccountPoolVault1>;
4659
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
4660
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
4661
+ position: Address<TAccountPosition>;
4662
+ user0: Address<TAccountUser0>;
4663
+ user1: Address<TAccountUser1>;
4664
+ cpmmProgram?: Address<TAccountCpmmProgram>;
4665
+ migrationAuthority?: Address<TAccountMigrationAuthority>;
4666
+ token0Program: Address<TAccountToken0Program>;
4667
+ token1Program: Address<TAccountToken1Program>;
4668
+ systemProgram?: Address<TAccountSystemProgram>;
4669
+ rent?: Address<TAccountRent>;
4670
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4671
+ positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4672
+ amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4673
+ amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4674
+ minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4675
+ };
4676
+ declare function getCreateSpotPoolInstructionAsync<TAccountCpmmConfig extends string, TAccountPayer extends string, TAccountLiquidityOwner extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolVault0 extends string, TAccountPoolVault1 extends string, TAccountProtocolFeeOwner extends string, TAccountProtocolFeePosition extends string, TAccountPosition extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountCpmmProgram extends string, TAccountMigrationAuthority extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS>(input: CreateSpotPoolAsyncInput<TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>, config?: {
4677
+ programAddress?: TProgramAddress;
4678
+ }): Promise<CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>>;
4679
+ type CreateSpotPoolInput<TAccountCpmmConfig extends string = string, TAccountPayer extends string = string, TAccountLiquidityOwner extends string = string, TAccountToken0Mint extends string = string, TAccountToken1Mint extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolVault0 extends string = string, TAccountPoolVault1 extends string = string, TAccountProtocolFeeOwner extends string = string, TAccountProtocolFeePosition extends string = string, TAccountPosition extends string = string, TAccountUser0 extends string = string, TAccountUser1 extends string = string, TAccountCpmmProgram extends string = string, TAccountMigrationAuthority extends string = string, TAccountToken0Program extends string = string, TAccountToken1Program extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
4680
+ cpmmConfig: Address<TAccountCpmmConfig>;
4681
+ payer: TransactionSigner<TAccountPayer>;
4682
+ liquidityOwner: TransactionSigner<TAccountLiquidityOwner>;
4683
+ token0Mint: Address<TAccountToken0Mint>;
4684
+ token1Mint: Address<TAccountToken1Mint>;
4685
+ pool: Address<TAccountPool>;
4686
+ poolAuthority: Address<TAccountPoolAuthority>;
4687
+ poolVault0: Address<TAccountPoolVault0>;
4688
+ poolVault1: Address<TAccountPoolVault1>;
4689
+ protocolFeeOwner: Address<TAccountProtocolFeeOwner>;
4690
+ protocolFeePosition: Address<TAccountProtocolFeePosition>;
4691
+ position: Address<TAccountPosition>;
4692
+ user0: Address<TAccountUser0>;
4693
+ user1: Address<TAccountUser1>;
4694
+ cpmmProgram?: Address<TAccountCpmmProgram>;
4695
+ migrationAuthority: Address<TAccountMigrationAuthority>;
4696
+ token0Program: Address<TAccountToken0Program>;
4697
+ token1Program: Address<TAccountToken1Program>;
4698
+ systemProgram?: Address<TAccountSystemProgram>;
4699
+ rent?: Address<TAccountRent>;
4700
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4701
+ positionId: CreateSpotPoolInstructionDataArgs['positionId'];
4702
+ amount0Max: CreateSpotPoolInstructionDataArgs['amount0Max'];
4703
+ amount1Max: CreateSpotPoolInstructionDataArgs['amount1Max'];
4704
+ minSharesOut: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4705
+ };
4706
+ declare function getCreateSpotPoolInstruction<TAccountCpmmConfig extends string, TAccountPayer extends string, TAccountLiquidityOwner extends string, TAccountToken0Mint extends string, TAccountToken1Mint extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolVault0 extends string, TAccountPoolVault1 extends string, TAccountProtocolFeeOwner extends string, TAccountProtocolFeePosition extends string, TAccountPosition extends string, TAccountUser0 extends string, TAccountUser1 extends string, TAccountCpmmProgram extends string, TAccountMigrationAuthority extends string, TAccountToken0Program extends string, TAccountToken1Program extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof CPMM_MIGRATOR_PROGRAM_ADDRESS>(input: CreateSpotPoolInput<TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>, config?: {
4707
+ programAddress?: TProgramAddress;
4708
+ }): CreateSpotPoolInstruction$1<TProgramAddress, TAccountCpmmConfig, TAccountPayer, TAccountLiquidityOwner, TAccountToken0Mint, TAccountToken1Mint, TAccountPool, TAccountPoolAuthority, TAccountPoolVault0, TAccountPoolVault1, TAccountProtocolFeeOwner, TAccountProtocolFeePosition, TAccountPosition, TAccountUser0, TAccountUser1, TAccountCpmmProgram, TAccountMigrationAuthority, TAccountToken0Program, TAccountToken1Program, TAccountSystemProgram, TAccountRent>;
4709
+
4862
4710
  declare const CPMM_MIGRATOR_PROGRAM_ID: Address;
4863
4711
  declare const SEED_STATE = "state";
4864
4712
  declare const SEED_MIGRATION_AUTHORITY = "migration_authority";
4865
4713
  declare const MAX_RECIPIENTS = 2;
4866
4714
  declare const CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS: {
4715
+ readonly createSpotPool: Uint8Array<ArrayBuffer>;
4867
4716
  readonly registerLaunch: Uint8Array<ArrayBuffer>;
4868
4717
  readonly migrate: Uint8Array<ArrayBuffer>;
4869
4718
  };
@@ -4876,6 +4725,53 @@ declare function getCpmmMigrationAuthorityAddress(programId?: Address): Promise<
4876
4725
 
4877
4726
  declare function fetchCpmmMigratorState(rpc: Rpc<GetAccountInfoApi>, address: Address): Promise<CpmmMigratorState | null>;
4878
4727
 
4728
+ type DeriveSpotPoolAccountsInput = {
4729
+ tokenAMint: Address;
4730
+ tokenBMint: Address;
4731
+ swapFeeBps: number;
4732
+ liquidityOwner: Address;
4733
+ tokenAProgram?: Address;
4734
+ tokenBProgram?: Address;
4735
+ tokenAAccount?: Address;
4736
+ tokenBAccount?: Address;
4737
+ token0Account?: Address;
4738
+ token1Account?: Address;
4739
+ positionId?: number | bigint;
4740
+ cpmmProgram?: Address;
4741
+ cpmmMigratorProgram?: Address;
4742
+ };
4743
+ type SpotPoolAccounts = {
4744
+ cpmmConfig: Address;
4745
+ token0Mint: Address;
4746
+ token1Mint: Address;
4747
+ token0Program: Address;
4748
+ token1Program: Address;
4749
+ pool: Address;
4750
+ poolAuthority: Address;
4751
+ poolVault0: Address;
4752
+ poolVault1: Address;
4753
+ protocolFeeOwner: Address;
4754
+ protocolFeePosition: Address;
4755
+ position: Address;
4756
+ user0: Address;
4757
+ user1: Address;
4758
+ migrationAuthority: Address;
4759
+ };
4760
+ type AddressOrSigner$2 = Address | TransactionSigner;
4761
+ type CreateSpotPoolInstructionInput = Omit<DeriveSpotPoolAccountsInput, 'liquidityOwner' | 'swapFeeBps'> & {
4762
+ payer: AddressOrSigner$2;
4763
+ tokenAAmount: CreateSpotPoolInstructionDataArgs['amount0Max'];
4764
+ tokenBAmount: CreateSpotPoolInstructionDataArgs['amount1Max'];
4765
+ swapFeeBps: CreateSpotPoolInstructionDataArgs['swapFeeBps'];
4766
+ minSharesOut?: CreateSpotPoolInstructionDataArgs['minSharesOut'];
4767
+ liquidityOwner?: AddressOrSigner$2;
4768
+ systemProgram?: Address;
4769
+ rent?: Address;
4770
+ };
4771
+ type CreateSpotPoolInstruction = Instruction & InstructionWithAccounts<(AccountMeta | AccountSignerMeta)[]> & InstructionWithData<ReadonlyUint8Array>;
4772
+ declare function deriveSpotPoolAccounts({ tokenAMint, tokenBMint, swapFeeBps, liquidityOwner, tokenAProgram, tokenBProgram, tokenAAccount, tokenBAccount, token0Account, token1Account, positionId, cpmmProgram, cpmmMigratorProgram, }: DeriveSpotPoolAccountsInput): Promise<SpotPoolAccounts>;
4773
+ declare function createSpotPoolInstruction(input: CreateSpotPoolInstructionInput): Promise<CreateSpotPoolInstruction>;
4774
+
4879
4775
  interface CpmmMigrationRemainingAccountsInput {
4880
4776
  launch: Address;
4881
4777
  baseMint: Address;
@@ -4908,7 +4804,9 @@ interface CpmmMigrationRemainingAccounts {
4908
4804
  declare function buildCpmmMigrationRemainingAccounts({ launch, baseMint, quoteMint, launchAuthority, adminBaseAta, adminQuoteAta, recipientAtas, cpmmProgram, cpmmMigratorProgram, }: CpmmMigrationRemainingAccountsInput): Promise<CpmmMigrationRemainingAccounts>;
4909
4805
  declare function buildCpmmMigrationRemainingAccountsHash(input: CpmmMigrationRemainingAccountsInput): Promise<Uint8Array>;
4910
4806
 
4911
- declare function encodeRegisterLaunchPayload(args: RegisterLaunchArgsArgs): Uint8Array;
4807
+ type RegisterLaunchPayloadArgs = Omit<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'> & Partial<Pick<RegisterLaunchArgsArgs, 'migratedPoolHookConfig'>>;
4808
+ declare function encodeCreateSpotPoolPayload(args: CreateSpotPoolArgsArgs): Uint8Array;
4809
+ declare function encodeRegisterLaunchPayload(args: RegisterLaunchPayloadArgs): Uint8Array;
4912
4810
  declare function encodeMigratePayload(args: MigrateArgsArgs): Uint8Array;
4913
4811
 
4914
4812
  declare const index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS: typeof CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS;
@@ -4918,6 +4816,11 @@ type index$3_CpmmMigrationRemainingAccounts = CpmmMigrationRemainingAccounts;
4918
4816
  type index$3_CpmmMigrationRemainingAccountsInput = CpmmMigrationRemainingAccountsInput;
4919
4817
  type index$3_CpmmMigratorState = CpmmMigratorState;
4920
4818
  type index$3_CpmmMigratorStateArgs = CpmmMigratorStateArgs;
4819
+ type index$3_CreateSpotPoolArgs = CreateSpotPoolArgs;
4820
+ type index$3_CreateSpotPoolArgsArgs = CreateSpotPoolArgsArgs;
4821
+ type index$3_CreateSpotPoolInstruction = CreateSpotPoolInstruction;
4822
+ type index$3_CreateSpotPoolInstructionInput = CreateSpotPoolInstructionInput;
4823
+ type index$3_DeriveSpotPoolAccountsInput = DeriveSpotPoolAccountsInput;
4921
4824
  declare const index$3_MAX_RECIPIENTS: typeof MAX_RECIPIENTS;
4922
4825
  type index$3_MigrateArgs = MigrateArgs;
4923
4826
  type index$3_MigrateArgsArgs = MigrateArgsArgs;
@@ -4927,10 +4830,17 @@ type index$3_Recipient = Recipient;
4927
4830
  type index$3_RecipientArgs = RecipientArgs;
4928
4831
  type index$3_RegisterLaunchArgs = RegisterLaunchArgs;
4929
4832
  type index$3_RegisterLaunchArgsArgs = RegisterLaunchArgsArgs;
4833
+ type index$3_RegisterLaunchPayloadArgs = RegisterLaunchPayloadArgs;
4930
4834
  declare const index$3_SEED_MIGRATION_AUTHORITY: typeof SEED_MIGRATION_AUTHORITY;
4931
4835
  declare const index$3_SEED_STATE: typeof SEED_STATE;
4836
+ type index$3_SpotPoolAccounts = SpotPoolAccounts;
4837
+ type index$3_SpotPoolCreated = SpotPoolCreated;
4838
+ type index$3_SpotPoolCreatedArgs = SpotPoolCreatedArgs;
4932
4839
  declare const index$3_buildCpmmMigrationRemainingAccounts: typeof buildCpmmMigrationRemainingAccounts;
4933
4840
  declare const index$3_buildCpmmMigrationRemainingAccountsHash: typeof buildCpmmMigrationRemainingAccountsHash;
4841
+ declare const index$3_createSpotPoolInstruction: typeof createSpotPoolInstruction;
4842
+ declare const index$3_deriveSpotPoolAccounts: typeof deriveSpotPoolAccounts;
4843
+ declare const index$3_encodeCreateSpotPoolPayload: typeof encodeCreateSpotPoolPayload;
4934
4844
  declare const index$3_encodeMigratePayload: typeof encodeMigratePayload;
4935
4845
  declare const index$3_encodeRegisterLaunchPayload: typeof encodeRegisterLaunchPayload;
4936
4846
  declare const index$3_fetchCpmmMigratorState: typeof fetchCpmmMigratorState;
@@ -4939,6 +4849,14 @@ declare const index$3_getCpmmMigratorStateAddress: typeof getCpmmMigratorStateAd
4939
4849
  declare const index$3_getCpmmMigratorStateCodec: typeof getCpmmMigratorStateCodec;
4940
4850
  declare const index$3_getCpmmMigratorStateDecoder: typeof getCpmmMigratorStateDecoder;
4941
4851
  declare const index$3_getCpmmMigratorStateEncoder: typeof getCpmmMigratorStateEncoder;
4852
+ declare const index$3_getCreateSpotPoolArgsCodec: typeof getCreateSpotPoolArgsCodec;
4853
+ declare const index$3_getCreateSpotPoolArgsDecoder: typeof getCreateSpotPoolArgsDecoder;
4854
+ declare const index$3_getCreateSpotPoolArgsEncoder: typeof getCreateSpotPoolArgsEncoder;
4855
+ declare const index$3_getCreateSpotPoolInstruction: typeof getCreateSpotPoolInstruction;
4856
+ declare const index$3_getCreateSpotPoolInstructionAsync: typeof getCreateSpotPoolInstructionAsync;
4857
+ declare const index$3_getCreateSpotPoolInstructionDataCodec: typeof getCreateSpotPoolInstructionDataCodec;
4858
+ declare const index$3_getCreateSpotPoolInstructionDataDecoder: typeof getCreateSpotPoolInstructionDataDecoder;
4859
+ declare const index$3_getCreateSpotPoolInstructionDataEncoder: typeof getCreateSpotPoolInstructionDataEncoder;
4942
4860
  declare const index$3_getMigrateArgsCodec: typeof getMigrateArgsCodec;
4943
4861
  declare const index$3_getMigrateArgsDecoder: typeof getMigrateArgsDecoder;
4944
4862
  declare const index$3_getMigrateArgsEncoder: typeof getMigrateArgsEncoder;
@@ -4949,7 +4867,7 @@ declare const index$3_getRegisterLaunchArgsCodec: typeof getRegisterLaunchArgsCo
4949
4867
  declare const index$3_getRegisterLaunchArgsDecoder: typeof getRegisterLaunchArgsDecoder;
4950
4868
  declare const index$3_getRegisterLaunchArgsEncoder: typeof getRegisterLaunchArgsEncoder;
4951
4869
  declare namespace index$3 {
4952
- export { index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$3_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$3_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$3_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$3_CpmmMigratorState as CpmmMigratorState, type index$3_CpmmMigratorStateArgs as CpmmMigratorStateArgs, index$3_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$3_MigrateArgs as MigrateArgs, type index$3_MigrateArgsArgs as MigrateArgsArgs, type index$3_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$3_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$3_Recipient as Recipient, type index$3_RecipientArgs as RecipientArgs, type index$3_RegisterLaunchArgs as RegisterLaunchArgs, type index$3_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_encodeMigratePayload as encodeMigratePayload, index$3_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$3_fetchCpmmMigratorState as fetchCpmmMigratorState, index$3_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$3_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$3_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$3_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$3_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$3_getMigrateArgsCodec as getMigrateArgsCodec, index$3_getMigrateArgsDecoder as getMigrateArgsDecoder, index$3_getMigrateArgsEncoder as getMigrateArgsEncoder, index$3_getRecipientCodec as getRecipientCodec, index$3_getRecipientDecoder as getRecipientDecoder, index$3_getRecipientEncoder as getRecipientEncoder, index$3_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$3_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$3_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
4870
+ export { type AddressOrSigner$2 as AddressOrSigner, index$3_CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS as CPMM_MIGRATOR_ACCOUNT_DISCRIMINATORS, index$3_CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS as CPMM_MIGRATOR_INSTRUCTION_DISCRIMINATORS, index$3_CPMM_MIGRATOR_PROGRAM_ID as CPMM_MIGRATOR_PROGRAM_ID, type index$3_CpmmMigrationRemainingAccounts as CpmmMigrationRemainingAccounts, type index$3_CpmmMigrationRemainingAccountsInput as CpmmMigrationRemainingAccountsInput, type index$3_CpmmMigratorState as CpmmMigratorState, type index$3_CpmmMigratorStateArgs as CpmmMigratorStateArgs, type index$3_CreateSpotPoolArgs as CreateSpotPoolArgs, type index$3_CreateSpotPoolArgsArgs as CreateSpotPoolArgsArgs, type index$3_CreateSpotPoolInstruction as CreateSpotPoolInstruction, type index$3_CreateSpotPoolInstructionInput as CreateSpotPoolInstructionInput, type index$3_DeriveSpotPoolAccountsInput as DeriveSpotPoolAccountsInput, index$3_MAX_RECIPIENTS as MAX_RECIPIENTS, type index$3_MigrateArgs as MigrateArgs, type index$3_MigrateArgsArgs as MigrateArgsArgs, type index$3_MigratedPoolHookConfig as MigratedPoolHookConfig, type index$3_MigratedPoolHookConfigArgs as MigratedPoolHookConfigArgs, type index$3_Recipient as Recipient, type index$3_RecipientArgs as RecipientArgs, type index$3_RegisterLaunchArgs as RegisterLaunchArgs, type index$3_RegisterLaunchArgsArgs as RegisterLaunchArgsArgs, type index$3_RegisterLaunchPayloadArgs as RegisterLaunchPayloadArgs, index$3_SEED_MIGRATION_AUTHORITY as SEED_MIGRATION_AUTHORITY, index$3_SEED_STATE as SEED_STATE, type index$3_SpotPoolAccounts as SpotPoolAccounts, type index$3_SpotPoolCreated as SpotPoolCreated, type index$3_SpotPoolCreatedArgs as SpotPoolCreatedArgs, index$3_buildCpmmMigrationRemainingAccounts as buildCpmmMigrationRemainingAccounts, index$3_buildCpmmMigrationRemainingAccountsHash as buildCpmmMigrationRemainingAccountsHash, index$3_createSpotPoolInstruction as createSpotPoolInstruction, index$3_deriveSpotPoolAccounts as deriveSpotPoolAccounts, index$3_encodeCreateSpotPoolPayload as encodeCreateSpotPoolPayload, index$3_encodeMigratePayload as encodeMigratePayload, index$3_encodeRegisterLaunchPayload as encodeRegisterLaunchPayload, index$3_fetchCpmmMigratorState as fetchCpmmMigratorState, index$3_getCpmmMigrationAuthorityAddress as getCpmmMigrationAuthorityAddress, index$3_getCpmmMigratorStateAddress as getCpmmMigratorStateAddress, index$3_getCpmmMigratorStateCodec as getCpmmMigratorStateCodec, index$3_getCpmmMigratorStateDecoder as getCpmmMigratorStateDecoder, index$3_getCpmmMigratorStateEncoder as getCpmmMigratorStateEncoder, index$3_getCreateSpotPoolArgsCodec as getCreateSpotPoolArgsCodec, index$3_getCreateSpotPoolArgsDecoder as getCreateSpotPoolArgsDecoder, index$3_getCreateSpotPoolArgsEncoder as getCreateSpotPoolArgsEncoder, index$3_getCreateSpotPoolInstruction as getCreateSpotPoolInstruction, index$3_getCreateSpotPoolInstructionAsync as getCreateSpotPoolInstructionAsync, index$3_getCreateSpotPoolInstructionDataCodec as getCreateSpotPoolInstructionDataCodec, index$3_getCreateSpotPoolInstructionDataDecoder as getCreateSpotPoolInstructionDataDecoder, index$3_getCreateSpotPoolInstructionDataEncoder as getCreateSpotPoolInstructionDataEncoder, index$3_getMigrateArgsCodec as getMigrateArgsCodec, index$3_getMigrateArgsDecoder as getMigrateArgsDecoder, index$3_getMigrateArgsEncoder as getMigrateArgsEncoder, index$3_getRecipientCodec as getRecipientCodec, index$3_getRecipientDecoder as getRecipientDecoder, index$3_getRecipientEncoder as getRecipientEncoder, index$3_getRegisterLaunchArgsCodec as getRegisterLaunchArgsCodec, index$3_getRegisterLaunchArgsDecoder as getRegisterLaunchArgsDecoder, index$3_getRegisterLaunchArgsEncoder as getRegisterLaunchArgsEncoder };
4953
4871
  }
4954
4872
 
4955
4873
  type AddressOrSigner$1 = InitializeLaunchAccounts['baseMint'];
@@ -4979,7 +4897,6 @@ type CreateLaunchAccountSigners = {
4979
4897
  baseVault: AddressOrSigner$1;
4980
4898
  quoteVault: AddressOrSigner$1;
4981
4899
  };
4982
- type CreateLaunchHookMode = 'cpmm' | 'cosigner' | 'dynamicFee' | false;
4983
4900
  type CreateLaunchCpmmMigrationConfig = {
4984
4901
  enabled?: true;
4985
4902
  kind?: 'cpmm';
@@ -5029,7 +4946,7 @@ type DeriveCreateLaunchAddressesInput = {
5029
4946
  metadataAccount?: Address;
5030
4947
  };
5031
4948
  type CreateLaunchInput = {
5032
- deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram' | 'cosignerHookProgram' | 'dynamicFeeHookProgram'>>;
4949
+ deployment?: Pick<SolanaCpmmDeployment, 'initializerConfig' | 'initializerProgram'> & Partial<Pick<SolanaCpmmDeployment, 'cpmmMigratorProgram' | 'cpmmProgram' | 'cpmmHookProgram'>>;
5033
4950
  programId?: Address;
5034
4951
  config?: Address;
5035
4952
  namespace?: Address;
@@ -5041,7 +4958,6 @@ type CreateLaunchInput = {
5041
4958
  supply: LaunchSupply;
5042
4959
  curve: XykCurveConfig;
5043
4960
  tokenPrograms?: Partial<LaunchTokenPrograms>;
5044
- hook?: CreateLaunchHookMode | null;
5045
4961
  cosigner?: AddressOrSigner$1;
5046
4962
  cosignGateExpiresAt?: bigint | number | null;
5047
4963
  dynamicFee?: DynamicFeeScheduleArgs | null;
@@ -5175,7 +5091,6 @@ declare function launchExists(rpc: Rpc<GetAccountInfoApi>, namespace: Address, l
5175
5091
  declare const index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID: typeof BPF_LOADER_UPGRADEABLE_PROGRAM_ID;
5176
5092
  type index$2_BuildAddressLookupTableSetupInstructionsInput = BuildAddressLookupTableSetupInstructionsInput;
5177
5093
  type index$2_BuildAddressLookupTableSetupInstructionsResult = BuildAddressLookupTableSetupInstructionsResult;
5178
- declare const index$2_CPMM_HOOK_PROGRAM_ID: typeof CPMM_HOOK_PROGRAM_ID;
5179
5094
  declare const index$2_CURVE_KIND_XYK: typeof CURVE_KIND_XYK;
5180
5095
  declare const index$2_CURVE_PARAMS_FORMAT_XYK_V0: typeof CURVE_PARAMS_FORMAT_XYK_V0;
5181
5096
  type index$2_ClaimFeesAsyncInput<TAccountConfig extends string = string, TAccountLaunch extends string = string, TAccountLaunchFeeState extends string = string, TAccountLaunchAuthority extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountRecipientBaseAta extends string = string, TAccountRecipientQuoteAta extends string = string, TAccountBaseTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = ClaimFeesAsyncInput<TAccountConfig, TAccountLaunch, TAccountLaunchFeeState, TAccountLaunchAuthority, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountRecipientBaseAta, TAccountRecipientQuoteAta, TAccountBaseTokenProgram, TAccountQuoteTokenProgram>;
@@ -5183,7 +5098,6 @@ type index$2_CreateLaunchAccountSigners = CreateLaunchAccountSigners;
5183
5098
  type index$2_CreateLaunchAddresses = CreateLaunchAddresses;
5184
5099
  type index$2_CreateLaunchCpmmMigrationConfig = CreateLaunchCpmmMigrationConfig;
5185
5100
  type index$2_CreateLaunchCustomMigrationConfig = CreateLaunchCustomMigrationConfig;
5186
- type index$2_CreateLaunchHookMode = CreateLaunchHookMode;
5187
5101
  type index$2_CreateLaunchInput = CreateLaunchInput;
5188
5102
  type index$2_CreateLaunchMigrationConfig = CreateLaunchMigrationConfig;
5189
5103
  type index$2_CreateLaunchResult = CreateLaunchResult;
@@ -5209,6 +5123,8 @@ declare const index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS: typeof INITIALIZER_ACC
5209
5123
  declare const index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS: typeof INITIALIZER_INSTRUCTION_DISCRIMINATORS;
5210
5124
  declare const index$2_INITIALIZER_PROGRAM_ID: typeof INITIALIZER_PROGRAM_ID;
5211
5125
  type index$2_InitializeConfigAccounts = InitializeConfigAccounts;
5126
+ type index$2_InitializeConfigArgs = InitializeConfigArgs;
5127
+ type index$2_InitializeConfigArgsArgs = InitializeConfigArgsArgs;
5212
5128
  type index$2_InitializeLaunchAccounts = InitializeLaunchAccounts;
5213
5129
  type index$2_InitializeLaunchArgs = InitializeLaunchArgs;
5214
5130
  type index$2_InitializeLaunchArgsArgs = InitializeLaunchArgsArgs;
@@ -5268,6 +5184,9 @@ declare const index$2_getClaimFeesInstructionAsync: typeof getClaimFeesInstructi
5268
5184
  declare const index$2_getConfigAddress: typeof getConfigAddress;
5269
5185
  declare const index$2_getCurveSwapFeeAmount: typeof getCurveSwapFeeAmount;
5270
5186
  declare const index$2_getHarvestMigratedFeesInstructionAsync: typeof getHarvestMigratedFeesInstructionAsync;
5187
+ declare const index$2_getInitializeConfigArgsCodec: typeof getInitializeConfigArgsCodec;
5188
+ declare const index$2_getInitializeConfigArgsDecoder: typeof getInitializeConfigArgsDecoder;
5189
+ declare const index$2_getInitializeConfigArgsEncoder: typeof getInitializeConfigArgsEncoder;
5271
5190
  declare const index$2_getInitializeLaunchArgsCodec: typeof getInitializeLaunchArgsCodec;
5272
5191
  declare const index$2_getInitializeLaunchArgsDecoder: typeof getInitializeLaunchArgsDecoder;
5273
5192
  declare const index$2_getInitializeLaunchArgsEncoder: typeof getInitializeLaunchArgsEncoder;
@@ -5289,7 +5208,7 @@ declare const index$2_measureTransactionMessageSize: typeof measureTransactionMe
5289
5208
  declare const index$2_measureTransactionMessageSizeWithLookupTable: typeof measureTransactionMessageSizeWithLookupTable;
5290
5209
  declare const index$2_phaseLabel: typeof phaseLabel;
5291
5210
  declare namespace index$2 {
5292
- export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CPMM_HOOK_PROGRAM_ID as CPMM_HOOK_PROGRAM_ID, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchHookMode as CreateLaunchHookMode, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type InitializeConfigArgs$1 as InitializeConfigArgs, type InitializeConfigArgsArgs$1 as InitializeConfigArgsArgs, type index$2_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$2_InitializeLaunchArgs as InitializeLaunchArgs, type index$2_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$2_LaunchFeeState as LaunchFeeState, type index$2_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$2_LaunchMetadata as LaunchMetadata, type index$2_LaunchSupply as LaunchSupply, type index$2_LaunchTokenPrograms as LaunchTokenPrograms, type index$2_LaunchWithAddress as LaunchWithAddress, index$2_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$2_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$2_MAX_PAYLOAD as MAX_PAYLOAD, type index$2_MigrateLaunchAccounts as MigrateLaunchAccounts, index$2_PHASE_ABORTED as PHASE_ABORTED, index$2_PHASE_MIGRATED as PHASE_MIGRATED, index$2_PHASE_TRADING as PHASE_TRADING, index$2_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$2_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$2_PreviewMigrationResult as PreviewMigrationResult, type index$2_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$2_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$2_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$2_SEED_CONFIG as SEED_CONFIG, index$2_SEED_LAUNCH as SEED_LAUNCH, index$2_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$2_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$2_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$2_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$2_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$2_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$2_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$2_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$2_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$2_TransactionSizeReport as TransactionSizeReport, type index$2_XykCurveConfig as XykCurveConfig, index$2_assertTransactionMessageFits as assertTransactionMessageFits, index$2_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$2_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$2_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$2_computeRemainingAccountsHash as computeRemainingAccountsHash, index$2_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$2_createInitializeConfigInstruction as createInitializeConfigInstruction, index$2_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$2_createLaunchId as createLaunchId, index$2_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$2_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$2_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$2_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$2_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$2_decodePreviewMigrationResult as decodePreviewMigrationResult, index$2_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$2_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$2_encodeU64LE as encodeU64LE, index$2_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$2_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$2_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$2_getConfigAddress as getConfigAddress, index$2_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$2_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, getInitializeConfigArgsCodec$1 as getInitializeConfigArgsCodec, getInitializeConfigArgsDecoder$1 as getInitializeConfigArgsDecoder, getInitializeConfigArgsEncoder$1 as getInitializeConfigArgsEncoder, index$2_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$2_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$2_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$2_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$2_getLaunchAddress as getLaunchAddress, index$2_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$2_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$2_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$2_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$2_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$2_getProgramDataAddress as getProgramDataAddress, index$2_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$2_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$2_getTokenMetadataAddress as getTokenMetadataAddress, index$2_launchExists as launchExists, index$2_launchIdFromU64 as launchIdFromU64, index$2_launchTokenPrograms as launchTokenPrograms, index$2_measureTransactionMessageSize as measureTransactionMessageSize, index$2_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$2_phaseLabel as phaseLabel };
5211
+ export { index$2_BPF_LOADER_UPGRADEABLE_PROGRAM_ID as BPF_LOADER_UPGRADEABLE_PROGRAM_ID, type index$2_BuildAddressLookupTableSetupInstructionsInput as BuildAddressLookupTableSetupInstructionsInput, type index$2_BuildAddressLookupTableSetupInstructionsResult as BuildAddressLookupTableSetupInstructionsResult, index$2_CURVE_KIND_XYK as CURVE_KIND_XYK, index$2_CURVE_PARAMS_FORMAT_XYK_V0 as CURVE_PARAMS_FORMAT_XYK_V0, type index$2_ClaimFeesAsyncInput as ClaimFeesAsyncInput, type index$2_CreateLaunchAccountSigners as CreateLaunchAccountSigners, type index$2_CreateLaunchAddresses as CreateLaunchAddresses, type index$2_CreateLaunchCpmmMigrationConfig as CreateLaunchCpmmMigrationConfig, type index$2_CreateLaunchCustomMigrationConfig as CreateLaunchCustomMigrationConfig, type index$2_CreateLaunchInput as CreateLaunchInput, type index$2_CreateLaunchMigrationConfig as CreateLaunchMigrationConfig, type index$2_CreateLaunchResult as CreateLaunchResult, type index$2_CurveSwapExactInAccounts as CurveSwapExactInAccounts, index$2_DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND as DEFAULT_LOOKUP_TABLE_ADDRESSES_PER_EXTEND, type index$2_DeriveCreateLaunchAddressesInput as DeriveCreateLaunchAddressesInput, index$2_EMPTY_REMAINING_ACCOUNTS_HASH as EMPTY_REMAINING_ACCOUNTS_HASH, type index$2_FeeBeneficiary as FeeBeneficiary, type index$2_FeeBeneficiaryArgs as FeeBeneficiaryArgs, type index$2_FeeBeneficiaryInput as FeeBeneficiaryInput, type index$2_FeeBeneficiaryInputArgs as FeeBeneficiaryInputArgs, type index$2_FetchLaunchesConfig as FetchLaunchesConfig, index$2_HF_AFTER_CREATE as HF_AFTER_CREATE, index$2_HF_AFTER_MIGRATE as HF_AFTER_MIGRATE, index$2_HF_AFTER_SWAP as HF_AFTER_SWAP, index$2_HF_BEFORE_CREATE as HF_BEFORE_CREATE, index$2_HF_BEFORE_MIGRATE as HF_BEFORE_MIGRATE, index$2_HF_BEFORE_SWAP as HF_BEFORE_SWAP, index$2_HF_FORWARD_READONLY_SIGNERS as HF_FORWARD_READONLY_SIGNERS, index$2_HOOK_NO_CHANGE as HOOK_NO_CHANGE, type index$2_HarvestMigratedFeesAsyncInput as HarvestMigratedFeesAsyncInput, index$2_INITIALIZER_ACCOUNT_DISCRIMINATORS as INITIALIZER_ACCOUNT_DISCRIMINATORS, index$2_INITIALIZER_INSTRUCTION_DISCRIMINATORS as INITIALIZER_INSTRUCTION_DISCRIMINATORS, index$2_INITIALIZER_PROGRAM_ID as INITIALIZER_PROGRAM_ID, type InitConfig$1 as InitConfig, type InitConfigArgs$1 as InitConfigArgs, type index$2_InitializeConfigAccounts as InitializeConfigAccounts, type index$2_InitializeConfigArgs as InitializeConfigArgs, type index$2_InitializeConfigArgsArgs as InitializeConfigArgsArgs, type index$2_InitializeLaunchAccounts as InitializeLaunchAccounts, type index$2_InitializeLaunchArgs as InitializeLaunchArgs, type index$2_InitializeLaunchArgsArgs as InitializeLaunchArgsArgs, type Launch$1 as Launch, type LaunchArgs$1 as LaunchArgs, type index$2_LaunchFeeState as LaunchFeeState, type index$2_LaunchFeeStateArgs as LaunchFeeStateArgs, type index$2_LaunchMetadata as LaunchMetadata, type index$2_LaunchSupply as LaunchSupply, type index$2_LaunchTokenPrograms as LaunchTokenPrograms, type index$2_LaunchWithAddress as LaunchWithAddress, index$2_MAX_HOOK_ALLOWLIST as MAX_HOOK_ALLOWLIST, index$2_MAX_MIGRATOR_ALLOWLIST as MAX_MIGRATOR_ALLOWLIST, index$2_MAX_PAYLOAD as MAX_PAYLOAD, type index$2_MigrateLaunchAccounts as MigrateLaunchAccounts, index$2_PHASE_ABORTED as PHASE_ABORTED, index$2_PHASE_MIGRATED as PHASE_MIGRATED, index$2_PHASE_TRADING as PHASE_TRADING, index$2_PREDICTION_HOOK_PROGRAM_ID as PREDICTION_HOOK_PROGRAM_ID, type PayloadBuf$1 as PayloadBuf, type index$2_PreviewMigrationAccounts as PreviewMigrationAccounts, type index$2_PreviewMigrationResult as PreviewMigrationResult, type index$2_PreviewSwapExactInAccounts as PreviewSwapExactInAccounts, type index$2_PreviewSwapExactInResult as PreviewSwapExactInResult, type index$2_ReplaceFeeBeneficiaryAsyncInput as ReplaceFeeBeneficiaryAsyncInput, index$2_SEED_CONFIG as SEED_CONFIG, index$2_SEED_LAUNCH as SEED_LAUNCH, index$2_SEED_LAUNCH_AUTHORITY as SEED_LAUNCH_AUTHORITY, index$2_SEED_LAUNCH_FEE_STATE as SEED_LAUNCH_FEE_STATE, index$2_SOLANA_TRANSACTION_SIZE_LIMIT as SOLANA_TRANSACTION_SIZE_LIMIT, type index$2_SetFeePolicyAsyncInput as SetFeePolicyAsyncInput, type index$2_SetHookAllowlistAccounts as SetHookAllowlistAccounts, type index$2_SetMigratorAllowlistAccounts as SetMigratorAllowlistAccounts, index$2_TRADE_DIRECTION_BUY as TRADE_DIRECTION_BUY, index$2_TRADE_DIRECTION_SELL as TRADE_DIRECTION_SELL, type index$2_TransactionSizeAssertOptions as TransactionSizeAssertOptions, type index$2_TransactionSizeReport as TransactionSizeReport, type index$2_XykCurveConfig as XykCurveConfig, index$2_assertTransactionMessageFits as assertTransactionMessageFits, index$2_assertTransactionMessageFitsWithLookupTable as assertTransactionMessageFitsWithLookupTable, index$2_buildAddressLookupTableSetupInstructions as buildAddressLookupTableSetupInstructions, index$2_compressTransactionMessageWithLookupTable as compressTransactionMessageWithLookupTable, index$2_computeRemainingAccountsHash as computeRemainingAccountsHash, index$2_createCurveSwapExactInInstruction as createCurveSwapExactInInstruction, index$2_createInitializeConfigInstruction as createInitializeConfigInstruction, index$2_createInitializeLaunchInstruction as createInitializeLaunchInstruction, index$2_createLaunchId as createLaunchId, index$2_createMigrateLaunchInstruction as createMigrateLaunchInstruction, index$2_createPreviewMigrationInstruction as createPreviewMigrationInstruction, index$2_createPreviewSwapExactInInstruction as createPreviewSwapExactInInstruction, index$2_createSetHookAllowlistInstruction as createSetHookAllowlistInstruction, index$2_createSetMigratorAllowlistInstruction as createSetMigratorAllowlistInstruction, index$2_decodePreviewMigrationResult as decodePreviewMigrationResult, index$2_decodePreviewSwapExactInResult as decodePreviewSwapExactInResult, index$2_deriveCreateLaunchAddresses as deriveCreateLaunchAddresses, index$2_encodeU64LE as encodeU64LE, index$2_fetchAllLaunches as fetchAllLaunches, fetchLaunch$1 as fetchLaunch, index$2_fetchLaunchesByAuthority as fetchLaunchesByAuthority, index$2_getClaimFeesInstructionAsync as getClaimFeesInstructionAsync, index$2_getConfigAddress as getConfigAddress, index$2_getCurveSwapFeeAmount as getCurveSwapFeeAmount, index$2_getHarvestMigratedFeesInstructionAsync as getHarvestMigratedFeesInstructionAsync, getInitConfigCodec$1 as getInitConfigCodec, getInitConfigDecoder$1 as getInitConfigDecoder, getInitConfigEncoder$1 as getInitConfigEncoder, getInitConfigSize$1 as getInitConfigSize, index$2_getInitializeConfigArgsCodec as getInitializeConfigArgsCodec, index$2_getInitializeConfigArgsDecoder as getInitializeConfigArgsDecoder, index$2_getInitializeConfigArgsEncoder as getInitializeConfigArgsEncoder, index$2_getInitializeLaunchArgsCodec as getInitializeLaunchArgsCodec, index$2_getInitializeLaunchArgsDecoder as getInitializeLaunchArgsDecoder, index$2_getInitializeLaunchArgsEncoder as getInitializeLaunchArgsEncoder, index$2_getInstructionLookupTableAddresses as getInstructionLookupTableAddresses, index$2_getLaunchAddress as getLaunchAddress, index$2_getLaunchAuthorityAddress as getLaunchAuthorityAddress, getLaunchCodec$1 as getLaunchCodec, getLaunchDecoder$1 as getLaunchDecoder, getLaunchEncoder$1 as getLaunchEncoder, index$2_getLaunchFeeStateAddress as getLaunchFeeStateAddress, index$2_getLaunchFeeStateCodec as getLaunchFeeStateCodec, index$2_getLaunchFeeStateDecoder as getLaunchFeeStateDecoder, index$2_getLaunchFeeStateEncoder as getLaunchFeeStateEncoder, index$2_getProgramDataAddress as getProgramDataAddress, index$2_getReplaceFeeBeneficiaryInstructionAsync as getReplaceFeeBeneficiaryInstructionAsync, index$2_getSetFeePolicyInstructionAsync as getSetFeePolicyInstructionAsync, index$2_getTokenMetadataAddress as getTokenMetadataAddress, index$2_launchExists as launchExists, index$2_launchIdFromU64 as launchIdFromU64, index$2_launchTokenPrograms as launchTokenPrograms, index$2_measureTransactionMessageSize as measureTransactionMessageSize, index$2_measureTransactionMessageSizeWithLookupTable as measureTransactionMessageSizeWithLookupTable, index$2_phaseLabel as phaseLabel };
5293
5212
  }
5294
5213
 
5295
5214
  /**
@@ -7130,7 +7049,6 @@ type CurveSwapExactInInput = {
7130
7049
  amountIn: bigint;
7131
7050
  minAmountOut: bigint;
7132
7051
  tradeDirection: 0 | 1;
7133
- hookProgram?: Address;
7134
7052
  remainingAccounts?: ReadonlyArray<SolanaRemainingAccount>;
7135
7053
  baseTokenProgram?: Address;
7136
7054
  quoteTokenProgram?: Address;
@@ -7245,4 +7163,4 @@ declare function assertMigrationQuoteThreshold({ rpc, quoteVault, pendingQuoteFe
7245
7163
  commitment?: 'processed' | 'confirmed' | 'finalized';
7246
7164
  }): Promise<MigrationQuoteProgress>;
7247
7165
 
7248
- export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchHookMode, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cosignerHook, index$6 as cpmm, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, index$4 as dynamicFeeHook, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };
7166
+ export { type CreateLaunchAccountSigners, type CreateLaunchAddresses, type CreateLaunchCpmmMigrationConfig, type CreateLaunchCustomMigrationConfig, type CreateLaunchInput, type CreateLaunchMigrationConfig, type CreateLaunchResult, type CurveSwapExactInInput, type CurveSwapExactInResult, DOPPLER_SOLANA_DEVNET_PROGRAM_ADDRESSES, type DeriveCreateLaunchAddressesInput, type LaunchMetadata, type LaunchSupply, type LaunchTokenPrograms, type MigrateLaunchInput, type MigrateLaunchResult, type MigrationQuoteProgress, type SolanaCpmmDeployment, type SolanaCpmmProgramAddresses, type SolanaRemainingAccount, type SwapExactInInput, type SwapExactInResult, type XykCurveConfig, assertMigrationQuoteThreshold, index$5 as cpmm, index$4 as cpmmHook, index$3 as cpmmMigrator, createLaunch, curveSwapExactIn, deriveSolanaCpmmDeployment, getMigrationQuoteProgress, index$2 as initializer, migrateLaunch, index$1 as predictionMigrator, swapExactIn, index as trustedOracle };