/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { COMMERCE_PROGRAM_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_MERCHANT_AUTHORITY_DISCRIMINATOR = 7; export declare function getUpdateMerchantAuthorityDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateMerchantAuthorityInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountMerchant extends string | AccountMeta = string, TAccountNewAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAuthority, TAccountMerchant extends string ? WritableAccount : TAccountMerchant, TAccountNewAuthority extends string ? ReadonlyAccount : TAccountNewAuthority, ...TRemainingAccounts ]>; export type UpdateMerchantAuthorityInstructionData = { discriminator: number; }; export type UpdateMerchantAuthorityInstructionDataArgs = {}; export declare function getUpdateMerchantAuthorityInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateMerchantAuthorityInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateMerchantAuthorityInstructionDataCodec(): FixedSizeCodec; export type UpdateMerchantAuthorityAsyncInput = { payer: TransactionSigner; authority: TransactionSigner; /** Merchant PDA */ merchant?: Address; newAuthority: Address; }; export declare function getUpdateMerchantAuthorityInstructionAsync(input: UpdateMerchantAuthorityAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateMerchantAuthorityInput = { payer: TransactionSigner; authority: TransactionSigner; /** Merchant PDA */ merchant: Address; newAuthority: Address; }; export declare function getUpdateMerchantAuthorityInstruction(input: UpdateMerchantAuthorityInput, config?: { programAddress?: TProgramAddress; }): UpdateMerchantAuthorityInstruction; export type ParsedUpdateMerchantAuthorityInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; authority: TAccountMetas[1]; /** Merchant PDA */ merchant: TAccountMetas[2]; newAuthority: TAccountMetas[3]; }; data: UpdateMerchantAuthorityInstructionData; }; export declare function parseUpdateMerchantAuthorityInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMerchantAuthorityInstruction; //# sourceMappingURL=updateMerchantAuthority.d.ts.map