@metaplex-foundation/mpl-toolbox
Version:
Auto-generated essential Solana and Metaplex programs
23 lines (22 loc) • 1.06 kB
TypeScript
/**
* 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, TransactionBuilder } from '@metaplex-foundation/umi';
import { Serializer } from '@metaplex-foundation/umi/serializers';
export type AmountToUiAmountInstructionAccounts = {
mint: PublicKey | Pda;
};
export type AmountToUiAmountInstructionData = {
discriminator: number;
amount: bigint;
};
export type AmountToUiAmountInstructionDataArgs = {
amount: number | bigint;
};
export declare function getAmountToUiAmountInstructionDataSerializer(): Serializer<AmountToUiAmountInstructionDataArgs, AmountToUiAmountInstructionData>;
export type AmountToUiAmountInstructionArgs = AmountToUiAmountInstructionDataArgs;
export declare function amountToUiAmount(context: Pick<Context, 'programs'>, input: AmountToUiAmountInstructionAccounts & AmountToUiAmountInstructionArgs): TransactionBuilder;