UNPKG

@authereum/zos

Version:

Command-line interface for the ZeppelinOS smart contract platform

37 lines (36 loc) 1.28 kB
import { CompilerOptimizerOptions, CompilerInfo } from 'solc-wrapper'; import { SolcBuild } from './CompilerProvider'; export interface CompiledContract { fileName: string; contractName: string; source: string; sourcePath: string; sourceMap: string; abi: any[]; ast: any; legacyAST?: any; bytecode: string; deployedBytecode: string; deployedSourceMap: string; compiler: CompilerInfo; } export interface RawContract { fileName: string; filePath: string; source: string; lastModified?: number; } export interface CompilerVersionOptions { optimizer?: CompilerOptimizerOptions; evmVersion?: string; } export interface CompilerOptions extends CompilerVersionOptions { version?: string; } export declare const DEFAULT_EVM_VERSION = "constantinople"; export declare const DEFAULT_OPTIMIZER: { enabled: boolean; }; export declare function compile(contracts: RawContract[], options?: CompilerOptions): Promise<CompiledContract[]>; export declare function resolveCompilerVersion(contracts: RawContract[], options?: CompilerOptions): Promise<SolcBuild>; export declare function compileWith(compilerVersion: SolcBuild, contracts: RawContract[], options?: CompilerVersionOptions): Promise<CompiledContract[]>;