ethers.js/packages/cli/solc.d.ts
2019-05-14 18:48:48 -04:00

15 lines
407 B
TypeScript

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>;