/** * 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 Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_TRANSFER_HOOK_DISCRIMINATOR = 36; export declare function getUpdateTransferHookDiscriminatorBytes(): ReadonlyUint8Array; export declare const UPDATE_TRANSFER_HOOK_TRANSFER_HOOK_DISCRIMINATOR = 1; export declare function getUpdateTransferHookTransferHookDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateTransferHookInstruction = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type UpdateTransferHookInstructionData = { discriminator: number; transferHookDiscriminator: number; /** The program id that performs logic during transfers */ programId: Option
; }; export type UpdateTransferHookInstructionDataArgs = { /** The program id that performs logic during transfers */ programId: OptionOrNullable
; }; export declare function getUpdateTransferHookInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateTransferHookInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateTransferHookInstructionDataCodec(): FixedSizeCodec; export type UpdateTransferHookInput = { /** The mint. */ mint: Address; /** The transfer hook authority. */ authority: Address | TransactionSigner; programId: UpdateTransferHookInstructionDataArgs['programId']; multiSigners?: Array; }; export declare function getUpdateTransferHookInstruction(input: UpdateTransferHookInput, config?: { programAddress?: TProgramAddress; }): UpdateTransferHookInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedUpdateTransferHookInstruction = { programAddress: Address; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The transfer hook authority. */ authority: TAccountMetas[1]; }; data: UpdateTransferHookInstructionData; }; export declare function parseUpdateTransferHookInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateTransferHookInstruction; //# sourceMappingURL=updateTransferHook.d.ts.map