Skip to content

parseen254/erc20-f23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪙 ERC20 Token Implementation with OpenZeppelin

CI codecov

This project demonstrates a basic ERC20 token implementation using OpenZeppelin contracts and Foundry for testing and deployment.

🎯 Overview

The project includes:

  • 💎 A standard ERC20 token implementation using OpenZeppelin
  • ✅ Comprehensive test suite
  • 🚀 Deployment scripts

🛠 Foundry Development Tools

This project uses Foundry's suite of tools:

  • 🔨 Forge: For testing and deployment
  • 🎮 Cast: For contract interaction
  • ⚒️ Anvil: For local development

🏃‍♂️ Getting Started

📦 Install Dependencies

forge install

🏗️ Build

forge build

🧪 Test

forge test

🚀 Deploy

forge script script/DeployTOZ.s.sol:DeployTOZ --rpc-url <your_rpc_url> --private-key <your_private_key>

✨ Token Features

  • 💫 Standard ERC20 functionality
  • 🎁 Initial supply minted to deployer
  • 💸 Transfer and approval mechanisms
  • 🔢 Decimals: 18

🧪 Testing

The test suite includes:

  • 💰 Balance checking
  • 📤 Transfer functionality
  • ✅ Allowance and transferFrom operations

Run tests with verbosity:

forge test -vv

📜 License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks