TokenFactory
TokenFactory copied to clipboard
A simple factory for deploying ERC20 and ERC721 tokens.
TokenFactory
What does this repository contain?
- An
ERC20and anERC721contract using the @openzeppelin/contracts standards. - A
Factorycontract to deploy these contracts. - A Javascript test file for testing the
Factorycontract with Truffle.
What can I use it for?
You can deploy the Factory contract on an Ethereum blockchain network, and then use it to trustlessly deploy secure new ERC20 and ERC721 tokens on that same network.
How can I use it?
- Install
trufflewithnpm install -g truffle. - Install dependencies with
npm install. - Run
truffle developto spawn a development blockchain with interactive console. - Compile code into a
builddirectory withtruffle compile. - Run migrations to deploy the
Factorycontract withtruffle migrate. - Start the test suite with
truffle test.