@melonproject/protocol
Version:
Technology Regulated and Operated Investment Funds
22 lines (21 loc) • 705 B
TypeScript
import { Contracts } from '../../Contracts';
export interface Options {
amguPayable?: boolean;
incentive?: boolean;
skipGuards?: boolean;
skipGasEstimation?: boolean;
from?: string;
gas?: string;
gasPrice?: string;
value?: string;
}
export declare type OptionsCallback = (environment: any) => Options;
export declare type OptionsOrCallback = Options | OptionsCallback;
export interface PreparedTransaction {
encoded: string;
gasEstimation: number;
name: string;
transaction: any;
contract?: Contracts;
}
export declare const prepareTransaction: (environment: any, transaction: any, optionsOrCallback: OptionsOrCallback) => Promise<PreparedTransaction>;