ERC20 Token Generator
A simple Smart Contract for a Standard, Capped, Mintable, Burnable ERC20 Token.
Token has a Role Based Access Control so you can add the minter
permission to users or Smart Contracts.
Token has a trasferEnabled
property. Nobody can transfer tokens until the property will be enabled or you can define users as operator
allowed to transfer also if not enabled.
DApp here https://vittominacori.github.io/erc20-generator
DApp source here https://github.com/vittominacori/erc20-generator/tree/dapp
Development
Install dependencies
npm install
Usage (using Truffle)
Open the Truffle console
npm run console
Compile
npm run compile
Test
npm run test
Usage (using Buidler)
Open the Buidler console
npm run buidler:console
Compile
npm run buidler:compile
Test
npm run buidler:test
Code Coverage
npm run coverage
Linter
Use Solhint
npm run lint:sol
Use ESLint
npm run lint:js
Use ESLint and fix
npm run lint:fix
Flattener
This allow to flatten the code into a single file
Edit scripts/flat.sh
to add your contracts
npm run flat
Token verification on Etherscan
Use the dist smart contracts dist/ERC20Token.dist.sol
Solc version is 0.5.12
License
Code released under the MIT License.