UNPKG

@metaplex-foundation/mpl-toolbox

Version:

Auto-generated essential Solana and Metaplex programs

28 lines (27 loc) 1.31 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 ApproveTokenDelegateCheckedInstructionAccounts = { source: PublicKey | Pda; mint: PublicKey | Pda; delegate: PublicKey | Pda; owner: Signer; }; export type ApproveTokenDelegateCheckedInstructionData = { discriminator: number; amount: bigint; decimals: number; }; export type ApproveTokenDelegateCheckedInstructionDataArgs = { amount: number | bigint; decimals: number; }; export declare function getApproveTokenDelegateCheckedInstructionDataSerializer(): Serializer<ApproveTokenDelegateCheckedInstructionDataArgs, ApproveTokenDelegateCheckedInstructionData>; export type ApproveTokenDelegateCheckedInstructionArgs = ApproveTokenDelegateCheckedInstructionDataArgs; export declare function approveTokenDelegateChecked(context: Pick<Context, 'programs'>, input: ApproveTokenDelegateCheckedInstructionAccounts & ApproveTokenDelegateCheckedInstructionArgs): TransactionBuilder;