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
npm install
Open the Truffle console
npm run console
npm run compile
npm run test
Open the Buidler console
npm run buidler:console
npm run buidler:compile
npm run buidler:test
npm run coverage
Use Solhint
npm run lint:sol
Use ESLint
npm run lint:js
Use ESLint and fix
npm run lint:fix
This allow to flatten the code into a single file
Edit scripts/flat.sh
to add your contracts
npm run flat
Use the dist smart contracts dist/ERC20Token.dist.sol
Solc version is 0.5.12
Code released under the MIT License.