/** * 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 { PickPartial } from '../shared'; import { MetadataArgsV2, MetadataArgsV2Args, UpdateArgs, UpdateArgsArgs } from '../types'; export declare type UpdateMetadataV2InstructionAccounts = { treeConfig?: PublicKey | Pda; payer?: Signer; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection. Defaults to `payer` */ authority?: Signer; leafOwner: PublicKey | Pda; /** Defaults to `leaf_owner` */ leafDelegate?: PublicKey | Pda; merkleTree: PublicKey | Pda; coreCollection?: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type UpdateMetadataV2InstructionData = { discriminator: Array; root: Uint8Array; assetDataHash: Option; flags: Option; nonce: bigint; index: number; currentMetadata: MetadataArgsV2; updateArgs: UpdateArgs; }; export declare type UpdateMetadataV2InstructionDataArgs = { root: Uint8Array; assetDataHash: OptionOrNullable; flags: OptionOrNullable; nonce: number | bigint; index: number; currentMetadata: MetadataArgsV2Args; updateArgs: UpdateArgsArgs; }; export declare function getUpdateMetadataV2InstructionDataSerializer(): Serializer; export declare type UpdateMetadataV2InstructionExtraArgs = { proof: Array; }; export declare type UpdateMetadataV2InstructionArgs = PickPartial; export declare function updateMetadataV2(context: Pick, input: UpdateMetadataV2InstructionAccounts & UpdateMetadataV2InstructionArgs): TransactionBuilder;