/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { COMMERCE_PROGRAM_PROGRAM_ADDRESS } from '../programs'; export declare const CLOSE_PAYMENT_DISCRIMINATOR = 9; export declare function getClosePaymentDiscriminatorBytes(): ReadonlyUint8Array; export type ClosePaymentInstruction = string, TAccountPayment extends string | AccountMeta = string, TAccountOperatorAuthority extends string | AccountMeta = string, TAccountOperator extends string | AccountMeta = string, TAccountMerchant extends string | AccountMeta = string, TAccountBuyer extends string | AccountMeta = string, TAccountMerchantOperatorConfig extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountPayment extends string ? WritableAccount : TAccountPayment, TAccountOperatorAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOperatorAuthority, TAccountOperator extends string ? ReadonlyAccount : TAccountOperator, TAccountMerchant extends string ? ReadonlyAccount : TAccountMerchant, TAccountBuyer extends string ? ReadonlyAccount : TAccountBuyer, TAccountMerchantOperatorConfig extends string ? ReadonlyAccount : TAccountMerchantOperatorConfig, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type ClosePaymentInstructionData = { discriminator: number; }; export type ClosePaymentInstructionDataArgs = {}; export declare function getClosePaymentInstructionDataEncoder(): FixedSizeEncoder; export declare function getClosePaymentInstructionDataDecoder(): FixedSizeDecoder; export declare function getClosePaymentInstructionDataCodec(): FixedSizeCodec; export type ClosePaymentAsyncInput = { payer: TransactionSigner; /** Payment PDA to close */ payment: Address; operatorAuthority: TransactionSigner; /** Operator PDA */ operator?: Address; /** Merchant PDA */ merchant: Address; /** Buyer account */ buyer: Address; /** Merchant Operator Config PDA */ merchantOperatorConfig: Address; /** Token mint */ mint: Address; systemProgram?: Address; }; export declare function getClosePaymentInstructionAsync(input: ClosePaymentAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type ClosePaymentInput = { payer: TransactionSigner; /** Payment PDA to close */ payment: Address; operatorAuthority: TransactionSigner; /** Operator PDA */ operator: Address; /** Merchant PDA */ merchant: Address; /** Buyer account */ buyer: Address; /** Merchant Operator Config PDA */ merchantOperatorConfig: Address; /** Token mint */ mint: Address; systemProgram?: Address; }; export declare function getClosePaymentInstruction(input: ClosePaymentInput, config?: { programAddress?: TProgramAddress; }): ClosePaymentInstruction; export type ParsedClosePaymentInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; /** Payment PDA to close */ payment: TAccountMetas[1]; operatorAuthority: TAccountMetas[2]; /** Operator PDA */ operator: TAccountMetas[3]; /** Merchant PDA */ merchant: TAccountMetas[4]; /** Buyer account */ buyer: TAccountMetas[5]; /** Merchant Operator Config PDA */ merchantOperatorConfig: TAccountMetas[6]; /** Token mint */ mint: TAccountMetas[7]; systemProgram: TAccountMetas[8]; }; data: ClosePaymentInstructionData; }; export declare function parseClosePaymentInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedClosePaymentInstruction; //# sourceMappingURL=closePayment.d.ts.map