- An
ERC20contract using the @openzeppelin/contracts standards. - Simple
SimpleFactorycontract andFactoryUsingERC1167to deploy ERC20 contracts. - A Javascript test file for testing the
FactoryandFactoryUsingERC1167contract with [Hardhat].
You can deploy the Factory contract on an Ethereum blockchain network, and then use it to trustlessly deploy secure new ERC20 tokens on that same network.
- Install
Hardhatwithnpm install -g hardhat. - Install dependencies with
npm install. - Compile code with
npx hardhat compile. - Start the test suite with
npx hardhat test
| Gas uses | Simple Token Factory | ERC1167 Token Factory | Simple ERC20 Token | For ERC1167 ERC20 token |
|---|---|---|---|---|
| Deployment | 2074219 | 802843 | 1464615 | 1565831 |