How maxikaros/foundry-ethernaut works
This repository is a Foundry-based Ethernaut learning game: users work through vulnerable Solidity level contracts by writing and running exploit tests. The documented workflow registers a level, creates an instance, runs setup and exploit callbacks, then checks success. The tree shows separate level and factory contracts, while the README describes the test harness workflow. Source excerpts were not provided, so edges rely on those documented relationships; the level catalog is represented as a subsystem rather than enumerated challenge by challenge.
Main entry points: BaseTest.sol Test Harness · test Solution Callbacks · levels Vulnerable Levels · Ethernaut.sol Ethernaut
Components 7
Game Framework
- Ethernaut
src/Ethernaut.sol - Level Base
src/levels/base
Challenge Catalog
- Level Factories
src/levels - Vulnerable Levels
src/levels
Exploit Tests
- Test Harness
test/utils/BaseTest.sol - Solution Callbacks
test
Other components
- Learner
Connections 8
- Learner → Test Harness: runs tests
README.md - Test Harness → Ethernaut: sets up
README.md - Test Harness → Level Factories: registers level
README.md - Test Harness → Solution Callbacks: runs callbacks
README.md - Solution Callbacks → Level Factories: creates instance
README.md - Solution Callbacks → Vulnerable Levels: sets up and exploits
README.md - Test Harness → Solution Callbacks: checks success
README.md - Vulnerable Levels → Level Base: inherits level behavior