/** * 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 { BaseUpdateAuthority, BaseUpdateAuthorityArgs } from '../types'; export type UpdateV2InstructionAccounts = { /** The address of the asset */ asset: PublicKey | Pda; /** The collection to which the asset belongs */ collection?: PublicKey | Pda; /** The account paying for the storage fees */ payer?: Signer; /** The update authority or update authority delegate of the asset */ authority?: Signer; /** A new collection to which to move the asset */ newCollection?: PublicKey | Pda; /** The system program */ systemProgram?: PublicKey | Pda; /** The SPL Noop Program */ logWrapper?: PublicKey | Pda; }; export type UpdateV2InstructionData = { discriminator: number; newName: Option; newUri: Option; newUpdateAuthority: Option; }; export type UpdateV2InstructionDataArgs = { newName?: OptionOrNullable; newUri?: OptionOrNullable; newUpdateAuthority?: OptionOrNullable; }; export declare function getUpdateV2InstructionDataSerializer(): Serializer; export type UpdateV2InstructionArgs = UpdateV2InstructionDataArgs; export declare function updateV2(context: Pick, input: UpdateV2InstructionAccounts & UpdateV2InstructionArgs): TransactionBuilder;