This project demonstrates a basic ERC20 token implementation using OpenZeppelin contracts and Foundry for testing and deployment.
The project includes:
- 💎 A standard ERC20 token implementation using OpenZeppelin
- ✅ Comprehensive test suite
- 🚀 Deployment scripts
This project uses Foundry's suite of tools:
- 🔨 Forge: For testing and deployment
- 🎮 Cast: For contract interaction
- ⚒️ Anvil: For local development
forge install
forge build
forge test
forge script script/DeployTOZ.s.sol:DeployTOZ --rpc-url <your_rpc_url> --private-key <your_private_key>
- 💫 Standard ERC20 functionality
- 🎁 Initial supply minted to deployer
- 💸 Transfer and approval mechanisms
- 🔢 Decimals: 18
The test suite includes:
- 💰 Balance checking
- 📤 Transfer functionality
- ✅ Allowance and transferFrom operations
Run tests with verbosity:
forge test -vv
MIT