@mavrykdynamics/taquito
Version:
High level functionality that builds upon the other packages in the Mavryk Typescript Library Suite.
29 lines (28 loc) • 991 B
TypeScript
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;
mumav?: 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 MavrykToolkit.contract.transfer methods
*
* @param Options generic transfer operation parameters
*/
toTransferParams(params: Partial<SendParams>): TransferParams;
}