UNPKG

@metaplex-foundation/mpl-toolbox

Version:

Auto-generated essential Solana and Metaplex programs

25 lines (24 loc) 1.16 kB
/** * 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 type ApproveTokenDelegateInstructionAccounts = { source: PublicKey | Pda; delegate: PublicKey | Pda; owner: Signer; }; export type ApproveTokenDelegateInstructionData = { discriminator: number; amount: bigint; }; export type ApproveTokenDelegateInstructionDataArgs = { amount: number | bigint; }; export declare function getApproveTokenDelegateInstructionDataSerializer(): Serializer<ApproveTokenDelegateInstructionDataArgs, ApproveTokenDelegateInstructionData>; export type ApproveTokenDelegateInstructionArgs = ApproveTokenDelegateInstructionDataArgs; export declare function approveTokenDelegate(context: Pick<Context, 'programs'>, input: ApproveTokenDelegateInstructionAccounts & ApproveTokenDelegateInstructionArgs): TransactionBuilder;