/** * 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 REFUND_PAYMENT_DISCRIMINATOR = 5; export declare function getRefundPaymentDiscriminatorBytes(): ReadonlyUint8Array; export type RefundPaymentInstruction = string, TAccountPayment extends string | AccountMeta = string, TAccountOperatorAuthority extends string | AccountMeta = string, TAccountBuyer extends string | AccountMeta = string, TAccountMerchant extends string | AccountMeta = string, TAccountOperator extends string | AccountMeta = string, TAccountMerchantOperatorConfig extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountMerchantEscrowAta extends string | AccountMeta = string, TAccountBuyerAta extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta = '3VSJP7faqLk6MbCaNtMYc2Y8S8hMXRsZ5cBcwh1fjMH1', TAccountCommerceProgram extends string | AccountMeta = 'commkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountPayment extends string ? WritableAccount : TAccountPayment, TAccountOperatorAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountOperatorAuthority, TAccountBuyer extends string ? ReadonlyAccount : TAccountBuyer, TAccountMerchant extends string ? ReadonlyAccount : TAccountMerchant, TAccountOperator extends string ? ReadonlyAccount : TAccountOperator, TAccountMerchantOperatorConfig extends string ? ReadonlyAccount : TAccountMerchantOperatorConfig, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountMerchantEscrowAta extends string ? WritableAccount : TAccountMerchantEscrowAta, TAccountBuyerAta extends string ? WritableAccount : TAccountBuyerAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountCommerceProgram extends string ? ReadonlyAccount : TAccountCommerceProgram, ...TRemainingAccounts ]>; export type RefundPaymentInstructionData = { discriminator: number; }; export type RefundPaymentInstructionDataArgs = {}; export declare function getRefundPaymentInstructionDataEncoder(): FixedSizeEncoder; export declare function getRefundPaymentInstructionDataDecoder(): FixedSizeDecoder; export declare function getRefundPaymentInstructionDataCodec(): FixedSizeCodec; export type RefundPaymentAsyncInput = { payer: TransactionSigner; /** Payment PDA being updated */ payment: Address; operatorAuthority: TransactionSigner; /** Refund destination owner */ buyer: Address; /** Merchant PDA */ merchant: Address; /** Operator PDA */ operator?: Address; /** Merchant Operator Config PDA */ merchantOperatorConfig: Address; mint: Address; /** Merchant Escrow ATA (Merchant PDA is owner) */ merchantEscrowAta?: Address; buyerAta?: Address; tokenProgram?: Address; systemProgram?: Address; /** Event authority PDA */ eventAuthority?: Address; /** Commerce Program ID */ commerceProgram?: Address; }; export declare function getRefundPaymentInstructionAsync(input: RefundPaymentAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type RefundPaymentInput = { payer: TransactionSigner; /** Payment PDA being updated */ payment: Address; operatorAuthority: TransactionSigner; /** Refund destination owner */ buyer: Address; /** Merchant PDA */ merchant: Address; /** Operator PDA */ operator: Address; /** Merchant Operator Config PDA */ merchantOperatorConfig: Address; mint: Address; /** Merchant Escrow ATA (Merchant PDA is owner) */ merchantEscrowAta: Address; buyerAta: Address; tokenProgram?: Address; systemProgram?: Address; /** Event authority PDA */ eventAuthority?: Address; /** Commerce Program ID */ commerceProgram?: Address; }; export declare function getRefundPaymentInstruction(input: RefundPaymentInput, config?: { programAddress?: TProgramAddress; }): RefundPaymentInstruction; export type ParsedRefundPaymentInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; /** Payment PDA being updated */ payment: TAccountMetas[1]; operatorAuthority: TAccountMetas[2]; /** Refund destination owner */ buyer: TAccountMetas[3]; /** Merchant PDA */ merchant: TAccountMetas[4]; /** Operator PDA */ operator: TAccountMetas[5]; /** Merchant Operator Config PDA */ merchantOperatorConfig: TAccountMetas[6]; mint: TAccountMetas[7]; /** Merchant Escrow ATA (Merchant PDA is owner) */ merchantEscrowAta: TAccountMetas[8]; buyerAta: TAccountMetas[9]; tokenProgram: TAccountMetas[10]; systemProgram: TAccountMetas[11]; /** Event authority PDA */ eventAuthority: TAccountMetas[12]; /** Commerce Program ID */ commerceProgram: TAccountMetas[13]; }; data: RefundPaymentInstructionData; }; export declare function parseRefundPaymentInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRefundPaymentInstruction; //# sourceMappingURL=refundPayment.d.ts.map