/** * 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'; export declare type DelegateV2InstructionAccounts = { treeConfig?: PublicKey | Pda; payer?: Signer; /** Optional leaf owner, defaults to `payer` */ leafOwner?: Signer; /** Defaults to `leaf_owner` */ previousLeafDelegate?: PublicKey | Pda; newLeafDelegate: PublicKey | Pda; merkleTree: PublicKey | Pda; logWrapper?: PublicKey | Pda; compressionProgram?: PublicKey | Pda; systemProgram?: PublicKey | Pda; }; export declare type DelegateV2InstructionData = { discriminator: Array; root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: Option; assetDataHash: Option; flags: Option; nonce: bigint; index: number; }; export declare type DelegateV2InstructionDataArgs = { root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: OptionOrNullable; assetDataHash: OptionOrNullable; flags: OptionOrNullable; nonce: number | bigint; index: number; }; export declare function getDelegateV2InstructionDataSerializer(): Serializer; export declare type DelegateV2InstructionExtraArgs = { proof: Array; }; export declare type DelegateV2InstructionArgs = PickPartial; export declare function delegateV2(context: Pick, input: DelegateV2InstructionAccounts & DelegateV2InstructionArgs): TransactionBuilder;