/** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/metaplex-foundation/kinobi */ import { Context, Option, OptionOrNullable, Pda, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; import { DataV2, DataV2Args } from '../types'; export type UpdateMetadataAccountV2InstructionAccounts = { /** Metadata account */ metadata: PublicKey | Pda; /** Update authority key */ updateAuthority?: Signer; }; export type UpdateMetadataAccountV2InstructionData = { discriminator: number; data: Option; newUpdateAuthority: Option; primarySaleHappened: Option; isMutable: Option; }; export type UpdateMetadataAccountV2InstructionDataArgs = { data?: OptionOrNullable; newUpdateAuthority?: OptionOrNullable; primarySaleHappened?: OptionOrNullable; isMutable?: OptionOrNullable; }; export declare function getUpdateMetadataAccountV2InstructionDataSerializer(): Serializer; export type UpdateMetadataAccountV2InstructionArgs = UpdateMetadataAccountV2InstructionDataArgs; export declare function updateMetadataAccountV2(context: Pick, input: UpdateMetadataAccountV2InstructionAccounts & UpdateMetadataAccountV2InstructionArgs): TransactionBuilder;