UNPKG

@taquito/taquito

Version:

High level functionality that builds upon the other packages in the Tezos Typescript Library Suite.

29 lines (28 loc) 990 B
import { TransactionOperation } from '../../operations/transaction-operation'; import { TransferParams } from '../../operations/types'; import { TransactionWalletOperation } from '../../wallet'; export interface SendParams { fee?: number; storageLimit?: number; gasLimit?: number; amount: number; source?: string; mutez?: boolean; } export type ExplicitTransferParams = Required<Omit<TransferParams, keyof SendParams>> & SendParams; export interface ContractMethodInterface { /** * * @description Send the smart contract operation * * @param Options generic operation parameter */ send(params: Partial<SendParams>): Promise<TransactionWalletOperation | TransactionOperation>; /** * * @description Create transfer params to be used with TezosToolkit.contract.transfer methods * * @param Options generic transfer operation parameters */ toTransferParams(params: Partial<SendParams>): TransferParams; }