/** * 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 } from '../types'; export declare type SetCollectionV2InstructionAccounts = { treeConfig?: PublicKey | Pda; payer?: Signer; /** * If item is not in a collection, then authority must be tree owner/delegate. If item is * getting removed from a collection, then this must be an authority for the existing * collection. Defaults to `payer` */ authority?: Signer; /** * If item is getting added to a new collection, then this must be the authority * for the new collection. Defaults to `authority` */ newCollectionAuthority?: Signer; leafOwner: PublicKey | Pda; /** Defaults to `leaf_owner` */ leafDelegate?: PublicKey | Pda; merkleTree: PublicKey | Pda; coreCollection?: PublicKey | Pda; newCoreCollection?: PublicKey | Pda; mplCoreCpiSigner?: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; mplCoreProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type SetCollectionV2InstructionData = { discriminator: Array; root: Uint8Array; assetDataHash: Option; flags: Option; nonce: bigint; index: number; metadata: MetadataArgsV2; }; export declare type SetCollectionV2InstructionDataArgs = { root: Uint8Array; assetDataHash: OptionOrNullable; flags: OptionOrNullable; nonce: number | bigint; index: number; metadata: MetadataArgsV2Args; }; export declare function getSetCollectionV2InstructionDataSerializer(): Serializer; export declare type SetCollectionV2InstructionExtraArgs = { proof: Array; }; export declare type SetCollectionV2InstructionArgs = PickPartial; export declare function setCollectionV2(context: Pick, input: SetCollectionV2InstructionAccounts & SetCollectionV2InstructionArgs): TransactionBuilder;