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

18 lines
652 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;
2020-01-30 05:43:56 +03:00
compiler: string;
bytecode: string;
runtime: string;
2019-05-15 01:48:48 +03:00
}
export declare type CompilerOptions = {
filename?: string;
basedir?: string;
optimize?: boolean;
throwWarnings?: boolean;
};
2020-01-30 05:43:56 +03:00
export declare function customRequire(path: string): (name: string) => any;
export declare function wrapSolc(_solc: any): (source: string, options?: CompilerOptions) => Array<ContractCode>;
2021-03-08 02:24:04 +03:00
export declare const compile: (source: string, options?: CompilerOptions) => Array<ContractCode>;
//# sourceMappingURL=solc.d.ts.map