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