/** * 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 { AuthorizationData, AuthorizationDataArgs, TokenStandardArgs } from '../types'; export type DelegateTransferV1InstructionAccounts = { /** Delegate record account */ delegateRecord?: PublicKey | Pda; /** Owner of the delegated account */ delegate: PublicKey | Pda; /** Metadata account */ metadata?: PublicKey | Pda; /** Master Edition account */ masterEdition?: PublicKey | Pda; /** Token record account */ tokenRecord?: PublicKey | Pda; /** Mint of metadata */ mint: PublicKey | Pda; /** Token account of mint */ token?: PublicKey | Pda; /** Update authority or token owner */ authority?: Signer; /** Payer */ payer?: Signer; /** System Program */ systemProgram?: PublicKey | Pda; /** Instructions sysvar account */ sysvarInstructions?: PublicKey | Pda; /** SPL Token Program */ splTokenProgram?: PublicKey | Pda; /** Token Authorization Rules Program */ authorizationRulesProgram?: PublicKey | Pda; /** Token Authorization Rules account */ authorizationRules?: PublicKey | Pda; }; export type DelegateTransferV1InstructionData = { discriminator: number; delegateTransferV1Discriminator: number; amount: bigint; authorizationData: Option; }; export type DelegateTransferV1InstructionDataArgs = { amount?: number | bigint; authorizationData?: OptionOrNullable; }; export declare function getDelegateTransferV1InstructionDataSerializer(): Serializer; export type DelegateTransferV1InstructionExtraArgs = { tokenStandard: TokenStandardArgs; tokenOwner: PublicKey; }; export type DelegateTransferV1InstructionArgs = PickPartial; export declare function delegateTransferV1(context: Pick, input: DelegateTransferV1InstructionAccounts & DelegateTransferV1InstructionArgs): TransactionBuilder;