# smart-contract-deployment-manager

> For programmatically deploying pre-compiled smart contracts using Truffle

Latest version **0.1.0** (published 2018-07-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install smart-contract-deployment-manager
pnpm add smart-contract-deployment-manager
yarn add smart-contract-deployment-manager
bun add smart-contract-deployment-manager
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-07-09 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 156.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Erik Marks |
| Maintainers | rekmarks |
| Keywords | Ethereum, smart, contracts, Truffle, Solidity |

## Links

- npm: https://www.npmjs.com/package/smart-contract-deployment-manager
- Repository: https://github.com/rekmarks/smart-contract-deployment-manager
- Homepage: https://github.com/rekmarks/smart-contract-deployment-manager#readme
- Issues: https://github.com/rekmarks/smart-contract-deployment-manager/issues
- npm.io page: https://npm.io/package/smart-contract-deployment-manager

## Dependencies (3)

- [web3](https://npm.io/package/web3.md) ^1.0.0-beta.34
- [truffle](https://npm.io/package/truffle.md) ^4.1.13
- [truffle-contract](https://npm.io/package/truffle-contract.md) ^3.0.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-07-09

## README

# 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

---
_Source: https://npm.io/package/smart-contract-deployment-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
