- An
ERC20
contract using the @openzeppelin/contracts standards. - Simple
SimpleFactory
contract andFactoryUsingERC1167
to deploy ERC20 contracts. - A Javascript test file for testing the
Factory
andFactoryUsingERC1167
contract 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
Hardhat
withnpm 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 |