/** * 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_METADATA_POINTER_DISCRIMINATOR = 39; export declare function getUpdateMetadataPointerDiscriminatorBytes(): ReadonlyUint8Array; export declare const UPDATE_METADATA_POINTER_METADATA_POINTER_DISCRIMINATOR = 1; export declare function getUpdateMetadataPointerMetadataPointerDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateMetadataPointerInstruction = string, TAccountMetadataPointerAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountMetadataPointerAuthority extends string ? ReadonlyAccount : TAccountMetadataPointerAuthority, ...TRemainingAccounts ]>; export type UpdateMetadataPointerInstructionData = { discriminator: number; metadataPointerDiscriminator: number; /** The new account address that holds the metadata. */ metadataAddress: Option
; }; export type UpdateMetadataPointerInstructionDataArgs = { /** The new account address that holds the metadata. */ metadataAddress: OptionOrNullable
; }; export declare function getUpdateMetadataPointerInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateMetadataPointerInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateMetadataPointerInstructionDataCodec(): FixedSizeCodec; export type UpdateMetadataPointerInput = { /** The mint to initialize. */ mint: Address; /** The metadata pointer authority or its multisignature account. */ metadataPointerAuthority: Address | TransactionSigner; metadataAddress: UpdateMetadataPointerInstructionDataArgs['metadataAddress']; multiSigners?: Array; }; export declare function getUpdateMetadataPointerInstruction(input: UpdateMetadataPointerInput, config?: { programAddress?: TProgramAddress; }): UpdateMetadataPointerInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountMetadataPointerAuthority>; export type ParsedUpdateMetadataPointerInstruction = { programAddress: Address; accounts: { /** The mint to initialize. */ mint: TAccountMetas[0]; /** The metadata pointer authority or its multisignature account. */ metadataPointerAuthority: TAccountMetas[1]; }; data: UpdateMetadataPointerInstructionData; }; export declare function parseUpdateMetadataPointerInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMetadataPointerInstruction; //# sourceMappingURL=updateMetadataPointer.d.ts.map