@leverj/lever.chain-deployment
v4.9.0
Published
- configure the deployed project/package with the minimal configuration looking like [here](config.js). - config is [convict](https://github.com/mozilla/node-convict)-based configuration, so you can override values accordingly. - create a `deploy` script
Readme
fixme: revise Chain Deployment section
config = {deployer: {privateKey}, deploymentDir,env, networks, contracts}
Chain Deployment
- configure the deployed project/package with the minimal configuration looking like here.
- config is convict-based configuration, so you can override values accordingly.
- create a
deployscript similar to this, to be executed via:$> NODE_ENV=<env> yarn deploy - the resulting deployment artifacts will saved in
<deploymentDir>/chain/<env>/.evms.json
Generating javascript source for contracts interaction
to support interaction with deployed contract, you can generate a corresponding source files like so:
- create a
generate-contract-exportsscript such as this, to be executed via:$> node scripts/generate-contract-exports - the resulting javascript files will reside within
<process.env.PWD>/src/contracts/
