Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samc621/tokenfactory

A simple factory for deploying ERC20 and ERC721 tokens.
https://github.com/samc621/tokenfactory

blockchain chai erc20 erc721 ethereum mocha open-zeppelin smart-contracts solidity truffle

Last synced: 6 days ago
JSON representation

A simple factory for deploying ERC20 and ERC721 tokens.

Awesome Lists containing this project

README

        

# TokenFactory

## What does this repository contain?

1. An `ERC20` and an `ERC721` contract using the [@openzeppelin/contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) standards.
2. A `Factory` contract to deploy these contracts.
3. A Javascript test file for testing the `Factory` contract with [Truffle](https://github.com/trufflesuite/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?

1. Install `truffle` with `npm install -g truffle`.
2. Install dependencies with `npm install`.
3. Run `truffle develop` to spawn a development blockchain with interactive console.
4. Compile code into a `build` directory with `truffle compile`.
5. Run migrations to deploy the `Factory` contract with `truffle migrate`.
6. Start the test suite with `truffle test`.