contract

demo-contract, a package for contract management and reproducible linking and deploying. More details are available in the [demo-contract README] (https://github.com/invisible-college/democracy/blob/master/packages/contract/README.md)

Source:

Classes

BuildsManager
Deployer

Methods

(static) createContract(contractName, deployID)

Return a Democracy contract instance from a previous deploy, including a built-in signer account. Otherwise throws an error.

Parameters:
Name Type Description
contractName String

the base name of the contract deployed.

deployID String

optional string for a custom deploy ID other than the default deploy

Source:

(static) getInstance(deploy)

Return an ethjs-contract instance from a previously deployed contract

Parameters:
Name Type Description
deploy

of previous

Source:

(static) init()

Initialize build manager for later calls to getInstance and createContract

Source: