/** * 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 MAKE_PAYMENT_DISCRIMINATOR = 3; export declare function getMakePaymentDiscriminatorBytes(): ReadonlyUint8Array; export type MakePaymentInstruction = string, TAccountPayment extends string | AccountMeta = string, TAccountOperatorAuthority extends string | AccountMeta = string, TAccountBuyer extends string | AccountMeta = string, TAccountOperator extends string | AccountMeta = string, TAccountMerchant extends string | AccountMeta = string, TAccountMerchantOperatorConfig extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountBuyerAta extends string | AccountMeta = string, TAccountMerchantEscrowAta extends string | AccountMeta = string, TAccountMerchantSettlementAta 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 ? ReadonlySignerAccount & AccountSignerMeta : TAccountBuyer, TAccountOperator extends string ? ReadonlyAccount : TAccountOperator, TAccountMerchant extends string ? ReadonlyAccount : TAccountMerchant, TAccountMerchantOperatorConfig extends string ? WritableAccount : TAccountMerchantOperatorConfig, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountBuyerAta extends string ? WritableAccount : TAccountBuyerAta, TAccountMerchantEscrowAta extends string ? WritableAccount : TAccountMerchantEscrowAta, TAccountMerchantSettlementAta extends string ? WritableAccount : TAccountMerchantSettlementAta, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountCommerceProgram extends string ? ReadonlyAccount : TAccountCommerceProgram, ...TRemainingAccounts ]>; export type MakePaymentInstructionData = { discriminator: number; orderId: number; amount: bigint; bump: number; }; export type MakePaymentInstructionDataArgs = { orderId: number; amount: number | bigint; bump: number; }; export declare function getMakePaymentInstructionDataEncoder(): FixedSizeEncoder; export declare function getMakePaymentInstructionDataDecoder(): FixedSizeDecoder; export declare function getMakePaymentInstructionDataCodec(): FixedSizeCodec; export type MakePaymentAsyncInput = { payer: TransactionSigner; payment?: Address; operatorAuthority: TransactionSigner; buyer: TransactionSigner; operator?: Address; /** Merchant PDA */ merchant: Address; merchantOperatorConfig: Address; mint: Address; buyerAta?: Address; merchantEscrowAta?: Address; merchantSettlementAta: Address; tokenProgram?: Address; systemProgram?: Address; /** Event authority PDA */ eventAuthority?: Address; /** Commerce Program ID */ commerceProgram?: Address; orderId: MakePaymentInstructionDataArgs['orderId']; amount: MakePaymentInstructionDataArgs['amount']; bump: MakePaymentInstructionDataArgs['bump']; }; export declare function getMakePaymentInstructionAsync(input: MakePaymentAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type MakePaymentInput = { payer: TransactionSigner; payment: Address; operatorAuthority: TransactionSigner; buyer: TransactionSigner; operator: Address; /** Merchant PDA */ merchant: Address; merchantOperatorConfig: Address; mint: Address; buyerAta: Address; merchantEscrowAta: Address; merchantSettlementAta: Address; tokenProgram?: Address; systemProgram?: Address; /** Event authority PDA */ eventAuthority?: Address; /** Commerce Program ID */ commerceProgram?: Address; orderId: MakePaymentInstructionDataArgs['orderId']; amount: MakePaymentInstructionDataArgs['amount']; bump: MakePaymentInstructionDataArgs['bump']; }; export declare function getMakePaymentInstruction(input: MakePaymentInput, config?: { programAddress?: TProgramAddress; }): MakePaymentInstruction; export type ParsedMakePaymentInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; payment: TAccountMetas[1]; operatorAuthority: TAccountMetas[2]; buyer: TAccountMetas[3]; operator: TAccountMetas[4]; /** Merchant PDA */ merchant: TAccountMetas[5]; merchantOperatorConfig: TAccountMetas[6]; mint: TAccountMetas[7]; buyerAta: TAccountMetas[8]; merchantEscrowAta: TAccountMetas[9]; merchantSettlementAta: TAccountMetas[10]; tokenProgram: TAccountMetas[11]; systemProgram: TAccountMetas[12]; /** Event authority PDA */ eventAuthority: TAccountMetas[13]; /** Commerce Program ID */ commerceProgram: TAccountMetas[14]; }; data: MakePaymentInstructionData; }; export declare function parseMakePaymentInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedMakePaymentInstruction; //# sourceMappingURL=makePayment.d.ts.map