ethers.js/packages/cli/lib/solc.d.ts

15 lines
407 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { ethers } from "ethers";
export interface ContractCode {
interface: ethers.utils.Interface;
name: string;
bytecode?: string;
runtime?: string;
}
export declare type CompilerOptions = {
filename?: string;
basedir?: string;
optimize?: boolean;
throwWarnings?: boolean;
};
export declare function compile(source: string, options?: CompilerOptions): Array<ContractCode>;