Skip to content

fobabs/oz-ethernaut-foundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OZ Ethernaut Foundry

Solve OpenZeppelin's Ethernaut challenges using Foundry.
This project provides structured smart contract solutions with automated tests for every level.

Features

  • Smart contract solutions for each Ethernaut level
  • Automated tests for every solution
  • Organized and easy-to-follow project structure
  • Built entirely with Foundry tools

Getting Started

Follow these steps to set up the project on your local machine.

Prerequisites

Install the following:

Installation

Clone the repository:

git clone https://github.com/fobabs/oz-ethernaut-foundry.git
cd oz-ethernaut-foundry
forge install

Running Tests

Run all tests with:

forge test

You can also run tests for a specific level by targeting the test file:

forge test --match-path test/LEVEL_NAME.t.sol

Replace LEVEL_NAME with the actual level test filename.

Project Structure

oz-ethernaut-foundry/
│
├── src/            # Solution contracts
│
├── test/           # Test files for each level
│
├── foundry.toml    # Foundry configuration
│
└── README.md       # Project documentation

Each level has a solution in src/ and a matching test in test/.

Contributing

Contributions are welcome.
You can create issues for bugs or missing levels and open pull requests with improvements.

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request

Please follow clean coding practices and write tests for any new levels or improvements.

License

This project is licensed under the MIT License.

About

OpenZeppelin's Ethernaut Challenges solved with foundry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published