A simple Smart Contract for a Standard, Capped, Mintable, Burnable, Payable ERC20 Token.
Token has a Role Based Access Control so you can add the "minter" permission to users or Smart Contracts.
Token also has ERC1363 Behaviours to work like a Payable Token.
DApp here https://vittominacori.github.io/erc20-generator
DApp source here https://github.com/vittominacori/erc20-generator/tree/dapp
Install truffle.
npm install -g truffle // Version 4.1.14+ required.
npm install
Use Solium
npm run lint:sol
Use ESLint
npm run lint:js
IMPORTANT: Before commit run the lint and fix command:
npm run lint:fix
Open the Truffle console
truffle develop
Compile
compile
Test
test
Install the truffle-flattener
npm install -g truffle-flattener
Usage
truffle-flattener contracts/BaseToken.sol > dist/BaseToken.dist.sol
Use the dist smart contracts dist/BaseToken.dist.sol
Solc version is 0.4.24
Code released under the MIT License.