This package has been deprecated

Author message:

Package no longer maintained

smart-contract-deployment-manager

0.1.0 • Public • Published

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 of truffle 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 using addContract
  • consult src/deployer.js for additional methods you may want

Package Sidebar

Install

npm i smart-contract-deployment-manager

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

160 kB

Total Files

10

Last publish

Collaborators

  • rekmarks