1.0.16 • Published 6 years ago

eth-token-creator v1.0.16

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

eth-token-creator BIOTS2018()

Installation

Run: npm install --save eth-token-creator

Usage

This module comes with a few functions to create a configurable and standardized ERC20 Token.

const etc = require('eth-token-creator');

// basic example with async await for deploying token on blockchain
async function deployContract(provider) {

	// 1. update Token.sol and compile abi and bytecode
	await etc.compile();

	// 2. set provider for web3 module
	etc.setProvider(provider);

	// 3. deploy contract and return address
	return await etc.deploy({ name: 'VoteCoint', symbol: 'VTC', initialSupply: 1000, gas: '1000000' });
}

const { address, token } = deployContract();
  • returned value address is a BigNumber Object
  • returned value token is a web3 wrapper for the contract
1.0.16

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago