Skip to content
R4Y4N3Public

About

This repository demonstrates an ERC20 token project

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry ERC20 Example

This repository demonstrates an ERC20 token project using Foundry, a fast, portable, and modular toolkit for Ethereum application development.

Project Structure

  • src/ — Solidity contracts (including OurToken.sol)
  • test/ — Solidity tests using Forge
  • script/ — Deployment scripts
  • lib/ — External dependencies (OpenZeppelin, forge-std, etc.)

Getting Started

Prerequisites

  • Foundry installed (forge, anvil, etc.)
  • Git for cloning the repository

Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/Foundry-ERC20.git
cd Foundry-ERC20
forge install

Build

forge build

Test

forge test

Format

forge fmt

Gas Snapshots

forge snapshot

Local Node

anvil

Deploy

Update the deployment script and run:

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

Cast

cast <subcommand>

Documentation

License

MIT

About

This repository demonstrates an ERC20 token project

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages