/** * 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 { AssetDataSchema, AssetDataSchemaArgs } from '../types'; export declare type UpdateAssetDataV2InstructionAccounts = { 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; leafDelegate?: PublicKey | Pda; merkleTree: PublicKey | Pda; coreCollection?: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type UpdateAssetDataV2InstructionData = { discriminator: Array; root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; previousAssetDataHash: Option; flags: Option; nonce: bigint; index: number; newAssetData: Option; newAssetDataSchema: Option; }; export declare type UpdateAssetDataV2InstructionDataArgs = { root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; previousAssetDataHash: OptionOrNullable; flags: OptionOrNullable; nonce: number | bigint; index: number; newAssetData: OptionOrNullable; newAssetDataSchema: OptionOrNullable; }; export declare function getUpdateAssetDataV2InstructionDataSerializer(): Serializer; export declare type UpdateAssetDataV2InstructionExtraArgs = { proof: Array; }; export declare type UpdateAssetDataV2InstructionArgs = PickPartial; export declare function updateAssetDataV2(context: Pick, input: UpdateAssetDataV2InstructionAccounts & UpdateAssetDataV2InstructionArgs): TransactionBuilder;