0.1.0 • Published 7 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)compiledJSONmust 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
StandardERC20or the name of a contract added usingaddContract
- contractName must be
- consult
src/deployer.jsfor additional methods you may want
0.1.0
7 years ago