0.1.0 • Published 6 years ago
smart-contract-deployment-manager v0.1.0
smart-contract-deployment-manager
For programmatically deploying an arbitrary number of pre-compiled smart contracts
usage
Import the package to access the Deployer
class, which by default supports an OpenZeppelin-based ERC20 token contract, StandardERC20
.
- instantiate a deployer using
Deployer(web3Provider, accountAddress, gasLimit)
- add a contract type to deploy instances of it using
deployer.addContract(compiledJSON)
compiledJSON
must be an undeployed, compiled Truffle artifact, i.e. the output oftruffle compile
- deploy and access a deployed contract instance using
const instance = deployer.deploy(contractName, constructorParameters)
- contractName must be
StandardERC20
or the name of a contract added usingaddContract
- contractName must be
- consult
src/deployer.js
for additional methods you may want
0.1.0
6 years ago