/** * 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 DelegateAndFreezeV2InstructionAccounts = { 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 DelegateAndFreezeV2InstructionData = { discriminator: Array; root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: Option; assetDataHash: Option; flags: Option; nonce: bigint; index: number; }; export declare type DelegateAndFreezeV2InstructionDataArgs = { root: Uint8Array; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: OptionOrNullable; assetDataHash: OptionOrNullable; flags: OptionOrNullable; nonce: number | bigint; index: number; }; export declare function getDelegateAndFreezeV2InstructionDataSerializer(): Serializer; export declare type DelegateAndFreezeV2InstructionExtraArgs = { proof: Array; }; export declare type DelegateAndFreezeV2InstructionArgs = PickPartial; export declare function delegateAndFreezeV2(context: Pick, input: DelegateAndFreezeV2InstructionAccounts & DelegateAndFreezeV2InstructionArgs): TransactionBuilder;