compile

demo-compile, a package for compiling and EVM language management. More detailed docs are available in the [demo-compiler README] (https://github.com/invisible-college/democracy/blob/master/packages/compile/README.md)

Source:

Classes

Compiler

Methods

(static) compile(source, contracts) → {Map}

Main compile method. Takes a Solidity source file name and produces compile artifacts in the associated contracts manager (either remote or in a local store)

Parameters:
Name Type Description
source string

name of source file to compile, including Solidity extension

contracts Map

from a ContractsManager

Source:

(static) updateFlatten(flattener, sourceFile)

Flatten sources and update it in the contracts manager outputter if the hash is different (content has changed.)

Parameters:
Name Type Description
flattener

a Flattener object that has been collecting sources during compilation.

sourceFile

the top-level source filename with extension

Source: