/** * 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 Address, type Codec, type Decoder, type Encoder, type AccountMeta, type AccountSignerMeta, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlySignerAccount, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { TOKEN_METADATA_PROGRAM_ADDRESS } from "../programs"; import { type DataV2, type DataV2Args } from "../types"; export declare const UPDATE_METADATA_ACCOUNT_V2_DISCRIMINATOR = 15; export declare function getUpdateMetadataAccountV2DiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type UpdateMetadataAccountV2Instruction = string, TAccountUpdateAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMetadata extends string ? WritableAccount : TAccountMetadata, TAccountUpdateAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountUpdateAuthority, ...TRemainingAccounts ]>; export type UpdateMetadataAccountV2InstructionData = { discriminator: number; data: Option; updateAuthority: Option
; primarySaleHappened: Option; isMutable: Option; }; export type UpdateMetadataAccountV2InstructionDataArgs = { data: OptionOrNullable; updateAuthority: OptionOrNullable
; primarySaleHappened: OptionOrNullable; isMutable: OptionOrNullable; }; export declare function getUpdateMetadataAccountV2InstructionDataEncoder(): Encoder; export declare function getUpdateMetadataAccountV2InstructionDataDecoder(): Decoder; export declare function getUpdateMetadataAccountV2InstructionDataCodec(): Codec; export type UpdateMetadataAccountV2Input = { /** Metadata account */ metadata: Address; /** Update authority key */ updateAuthority: TransactionSigner; data: UpdateMetadataAccountV2InstructionDataArgs["data"]; updateAuthorityArg: UpdateMetadataAccountV2InstructionDataArgs["updateAuthority"]; primarySaleHappened: UpdateMetadataAccountV2InstructionDataArgs["primarySaleHappened"]; isMutable: UpdateMetadataAccountV2InstructionDataArgs["isMutable"]; }; export declare function getUpdateMetadataAccountV2Instruction(input: UpdateMetadataAccountV2Input, config?: { programAddress?: TProgramAddress; }): UpdateMetadataAccountV2Instruction; export type ParsedUpdateMetadataAccountV2Instruction = { programAddress: Address; accounts: { /** Metadata account */ metadata: TAccountMetas[0]; /** Update authority key */ updateAuthority: TAccountMetas[1]; }; data: UpdateMetadataAccountV2InstructionData; }; export declare function parseUpdateMetadataAccountV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMetadataAccountV2Instruction; //# sourceMappingURL=updateMetadataAccountV2.d.ts.map