import { CP_AMM_PROGRAM_ADDRESS } from "../programs/cpAmm.js"; import "../programs/index.js"; import { AccountMeta, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount } from "@solana/kit"; //#region src/generated/instructions/claimPartnerFee.d.ts declare const CLAIM_PARTNER_FEE_DISCRIMINATOR: ReadonlyUint8Array; declare function getClaimPartnerFeeDiscriminatorBytes(): ReadonlyUint8Array; type ClaimPartnerFeeInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountTokenAAccount extends string | AccountMeta = string, TAccountTokenBAccount extends string | AccountMeta = string, TAccountTokenAVault extends string | AccountMeta = string, TAccountTokenBVault extends string | AccountMeta = string, TAccountTokenAMint extends string | AccountMeta = string, TAccountTokenBMint extends string | AccountMeta = string, TAccountPartner extends string | AccountMeta = string, TAccountTokenAProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountTokenBProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountPoolAuthority extends string ? ReadonlyAccount : TAccountPoolAuthority, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountTokenAAccount extends string ? WritableAccount : TAccountTokenAAccount, TAccountTokenBAccount extends string ? WritableAccount : TAccountTokenBAccount, TAccountTokenAVault extends string ? WritableAccount : TAccountTokenAVault, TAccountTokenBVault extends string ? WritableAccount : TAccountTokenBVault, TAccountTokenAMint extends string ? ReadonlyAccount : TAccountTokenAMint, TAccountTokenBMint extends string ? ReadonlyAccount : TAccountTokenBMint, TAccountPartner extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPartner, TAccountTokenAProgram extends string ? ReadonlyAccount : TAccountTokenAProgram, TAccountTokenBProgram extends string ? ReadonlyAccount : TAccountTokenBProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts]>; type ClaimPartnerFeeInstructionData = { discriminator: ReadonlyUint8Array; maxAmountA: bigint; maxAmountB: bigint; }; type ClaimPartnerFeeInstructionDataArgs = { maxAmountA: number | bigint; maxAmountB: number | bigint; }; declare function getClaimPartnerFeeInstructionDataEncoder(): FixedSizeEncoder; declare function getClaimPartnerFeeInstructionDataDecoder(): FixedSizeDecoder; declare function getClaimPartnerFeeInstructionDataCodec(): FixedSizeCodec; type ClaimPartnerFeeAsyncInput = { poolAuthority?: Address; pool: Address; /** The treasury token a account */ tokenAAccount: Address; /** The treasury token b account */ tokenBAccount: Address; /** The vault token account for input token */ tokenAVault?: Address; /** The vault token account for output token */ tokenBVault?: Address; /** The mint of token a */ tokenAMint: Address; /** The mint of token b */ tokenBMint: Address; partner: TransactionSigner; /** Token a program */ tokenAProgram?: Address; /** Token b program */ tokenBProgram?: Address; eventAuthority?: Address; program?: Address; maxAmountA: ClaimPartnerFeeInstructionDataArgs["maxAmountA"]; maxAmountB: ClaimPartnerFeeInstructionDataArgs["maxAmountB"]; }; declare function getClaimPartnerFeeInstructionAsync(input: ClaimPartnerFeeAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; type ClaimPartnerFeeInput = { poolAuthority: Address; pool: Address; /** The treasury token a account */ tokenAAccount: Address; /** The treasury token b account */ tokenBAccount: Address; /** The vault token account for input token */ tokenAVault: Address; /** The vault token account for output token */ tokenBVault: Address; /** The mint of token a */ tokenAMint: Address; /** The mint of token b */ tokenBMint: Address; partner: TransactionSigner; /** Token a program */ tokenAProgram?: Address; /** Token b program */ tokenBProgram?: Address; eventAuthority: Address; program?: Address; maxAmountA: ClaimPartnerFeeInstructionDataArgs["maxAmountA"]; maxAmountB: ClaimPartnerFeeInstructionDataArgs["maxAmountB"]; }; declare function getClaimPartnerFeeInstruction(input: ClaimPartnerFeeInput, config?: { programAddress?: TProgramAddress; }): ClaimPartnerFeeInstruction; type ParsedClaimPartnerFeeInstruction = { programAddress: Address; accounts: { poolAuthority: TAccountMetas[0]; pool: TAccountMetas[1]; /** The treasury token a account */ tokenAAccount: TAccountMetas[2]; /** The treasury token b account */ tokenBAccount: TAccountMetas[3]; /** The vault token account for input token */ tokenAVault: TAccountMetas[4]; /** The vault token account for output token */ tokenBVault: TAccountMetas[5]; /** The mint of token a */ tokenAMint: TAccountMetas[6]; /** The mint of token b */ tokenBMint: TAccountMetas[7]; partner: TAccountMetas[8]; /** Token a program */ tokenAProgram: TAccountMetas[9]; /** Token b program */ tokenBProgram: TAccountMetas[10]; eventAuthority: TAccountMetas[11]; program: TAccountMetas[12]; }; data: ClaimPartnerFeeInstructionData; }; declare function parseClaimPartnerFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClaimPartnerFeeInstruction; //#endregion export { CLAIM_PARTNER_FEE_DISCRIMINATOR, ClaimPartnerFeeAsyncInput, ClaimPartnerFeeInput, ClaimPartnerFeeInstruction, ClaimPartnerFeeInstructionData, ClaimPartnerFeeInstructionDataArgs, ParsedClaimPartnerFeeInstruction, getClaimPartnerFeeDiscriminatorBytes, getClaimPartnerFeeInstruction, getClaimPartnerFeeInstructionAsync, getClaimPartnerFeeInstructionDataCodec, getClaimPartnerFeeInstructionDataDecoder, getClaimPartnerFeeInstructionDataEncoder, parseClaimPartnerFeeInstruction }; //# sourceMappingURL=claimPartnerFee.d.ts.map