Skip to content

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

License

Notifications You must be signed in to change notification settings

wordpressers/erc20-generator

Repository files navigation

ERC20 Token Generator

Build Status Coverage Status

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

Installation

Install truffle.

npm install -g truffle      // Version 4.1.14+ required.

Install dependencies

npm install

Linter

Use Solium

npm run lint:sol

Use ESLint

npm run lint:js

Note

IMPORTANT: Before commit run the lint and fix command:

npm run lint:fix

Compile and test the contracts.

Open the Truffle console

truffle develop

Compile

compile 

Test

test

Optional

Install the truffle-flattener

npm install -g truffle-flattener

Usage

truffle-flattener contracts/BaseToken.sol > dist/BaseToken.dist.sol

Token verification on Etherscan

Use the dist smart contracts dist/BaseToken.dist.sol

Solc version is 0.4.24

License

Code released under the MIT License.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published