/** * 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 INITIALIZE_MERCHANT_DISCRIMINATOR = 0; export declare function getInitializeMerchantDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeMerchantInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountMerchant extends string | AccountMeta = string, TAccountSettlementWallet extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountMerchant extends string ? WritableAccount : TAccountMerchant, TAccountSettlementWallet extends string ? ReadonlyAccount : TAccountSettlementWallet, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type InitializeMerchantInstructionData = { discriminator: number; bump: number; }; export type InitializeMerchantInstructionDataArgs = { bump: number; }; export declare function getInitializeMerchantInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializeMerchantInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializeMerchantInstructionDataCodec(): FixedSizeCodec; export type InitializeMerchantAsyncInput = { payer: TransactionSigner; authority: TransactionSigner; merchant?: Address; settlementWallet: Address; systemProgram?: Address; bump: InitializeMerchantInstructionDataArgs['bump']; }; export declare function getInitializeMerchantInstructionAsync(input: InitializeMerchantAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type InitializeMerchantInput = { payer: TransactionSigner; authority: TransactionSigner; merchant: Address; settlementWallet: Address; systemProgram?: Address; bump: InitializeMerchantInstructionDataArgs['bump']; }; export declare function getInitializeMerchantInstruction(input: InitializeMerchantInput, config?: { programAddress?: TProgramAddress; }): InitializeMerchantInstruction; export type ParsedInitializeMerchantInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; authority: TAccountMetas[1]; merchant: TAccountMetas[2]; settlementWallet: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: InitializeMerchantInstructionData; }; export declare function parseInitializeMerchantInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeMerchantInstruction; //# sourceMappingURL=initializeMerchant.d.ts.map