/** * 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, Pda, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; export declare type ReplaceLeafInstructionAccounts = { merkleTree: PublicKey | Pda; /** * Authority that controls write-access to the tree * Typically a program, e.g., the Bubblegum contract validates that leaves are valid NFTs. */ authority?: Signer; /** Program used to emit changelogs as cpi instruction data. */ noop: PublicKey | Pda; }; export declare type ReplaceLeafInstructionData = { discriminator: Array; root: Uint8Array; previousLeaf: Uint8Array; newLeaf: Uint8Array; index: number; }; export declare type ReplaceLeafInstructionDataArgs = { root: Uint8Array; previousLeaf: Uint8Array; newLeaf: Uint8Array; index: number; }; export declare function getReplaceLeafInstructionDataSerializer(): Serializer; export declare type ReplaceLeafInstructionArgs = ReplaceLeafInstructionDataArgs; export declare function replaceLeaf(context: Pick, input: ReplaceLeafInstructionAccounts & ReplaceLeafInstructionArgs): TransactionBuilder;