A node package in order to deploy ERC20 compliant contracts or introduce new ERC20 tokens in the Ethereum Blockchain. Simplify interaction with tokens , connectivity with web3.js all in a single package. Launch your very own token or transact with other pre-deployed tokens and raise huge funds in maybe your next ICO.
Installation
npm install ercmanager --save
Usage example
Create a new ERC20 token.
const ERCManager = ; let erc20 = myAddress: "0x9CC14A288BB5cb9Ec0e85b606Cb6585BB7ca6a8E" privateKey: '88BAEA1C45C1434E494604F48A39EEDB780BA71086D109B78CC3B7D41AA49773'; erc20;
- The constructor creates the ERC20 token.
- The essential parameters are address of the creator and their private key.
- The optional parameters are gas required, maximum limit of gas and the web3 provider(default = rinkeby.infura.io).
Connect to a deployed token.
let deployed_token = myAddress: "0x9CC14A288BB5cb9Ec0e85b606Cb6585BB7ca6a8E" privateKey: '88BAEA1C45C1434E494604F48A39EEDB780BA71086D109B78CC3B7D41AA49773' contractAddress: "0x8298cb3a2dc8fe592504dea860ad7be1882cdcfa";
Check balance of an account.
deployed_token
Transfer tokens: transfer(destination_account,amount)
deployed_token
Approve spender to spend your tokens: approve(spender_address, amount)
deployed_token
Transfer token from approved account to another: transferFrom(from_address, to_address, amount)
deployed_token
Check Allowance: checkAllowance(spender_address, amount)
deployed_token
Watch transfer of tokens.
deployed_token
Watch Approval of tokens.
deployed_token
Development setup
git clone https://github.com/SauravKanchan/ERCManagercd ERCManagernpm installnpm test
Release History
- 1.0.5
- Fix Bytecode
- 1.0.4
- Add transferFrom, Approve, CheckAllowance
- 1.0.3
- Create new tokens
- 1.0.2
- Fix Minor bugs
- 1.0.1
- Add transfer
- 1.0.0
- Work in progress
Meta
Distributed under the MIT license. See LICENSE
for more information.
Contributing
- We are open to addressing
bug-fixes
. - Feel free to add issues and submit patches
Contributors
- Saurav Kanchan - SauravKanchan
- Owais Khan - owaiswiz
- Rohit Vadali - enigmavadali
- Sandip Kumar - yadavsandip32