ContractsManager

ContractsManager

A ContractsManager which can read and clean compiled contracts.

Constructor

new ContractsManager(_outputter)

Parameters:
Name Type Description
_outputter function

a (possibly asynchronous) function that takes (key: string, val: {Map} | {List} | null ) and returns a Promise or other value that you want returned from compile or clean* methods. If missing, _outputter defaults to setImmutableKey to a local file-based DB store.

Source:

Methods

(async) getContract(contractName)

Asynchronously return a contract previously outputted at key /compiles/

Parameters:
Name Type Description
contractName

name of the compiled contract

Source: