- A
Token
contract using the openzeppelin-solidity library to implement a standard ERC20 token. - A
Factory
contract to deploy this token. - A Javascript test file for the
Factory
contract.
You can deploy the Factory
contract on an Ethereum blockchain network, and then use it to trustlessly deploy secure new ERC20 tokens with params for name
(e.g. "Google Token"), symbol
(e.g. "GOOG"), and totalSupply
(e.g. 1000000) on that same network.
- Install
truffle
withnpm install -g truffle
. - Install dependencies with
npm install
. - Run
truffle develop
to spawn a development blockchain with interactive console. - Compile code into a
build
directory withtruffle compile
. - Run migrations to deploy the
Factory
contract withtruffle migrate
. - Start the test suite with
truffle test
.