Skip to content

BernardChooo/erc20-generator

 
 

Repository files navigation

ERC20 Token Generator

Build Status Coverage Status MIT licensed

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

Open the Truffle console

npm run console

Compile

npm run compile

Test

npm run 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.10

License

Code released under the MIT License.

About

A simple Smart Contract for a Standard, Mintable, Burnable ERC20 Token.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 46.6%
  • Shell 22.0%
  • Solidity 19.0%
  • HTML 12.4%