Page Map
🛠 A - FOUNDRY 101
Stuff being learnt on how to use foundry specifically for bug testing. There will be subsections for the information learnt from various sources
Foundry Tool - Overview
Foundry is an ethereum development and testing environment that has been written in the rust language. It has two primary advantages over the other more well known tools.
- Tests are written in Solidity, so no context-switching is necessary
- Since the tool itself is written in Rust it is fast as compared to the other tools. You can see a comparison HERE.
Foundry is a collection of the following tools
%%{init: {'theme':'dark', 'themeVariables':{'textColor':'#FBB454', 'nodeBorder':'#00D7FF', 'lineColor':'#00FFAB'}}}%%
graph LR
F[Foundry] --> F1[FORGE<br>Ethereum testing framework like <br> Truffle, Hardhat and DappTools]
F --> F2[CAST<br>Swiss army knife for interacting with EVM <br>smart contracts, <br>sending transactions <br>and getting chain data]
F --> F3[ANVIL<br>local Ethereum node,<br> akin to Ganache,<br>Hardhat Network.]
%% Code for URLS
click F "https://github.com/foundry-rs" "Official Repo Link" _blank
click F1 "https://github.com/foundry-rs/foundry/tree/master/forge" "forge - description" _blank
click F2 "https://github.com/foundry-rs/foundry/tree/master/cast" "cast - description" _blank
click F3 "https://github.com/foundry-rs/foundry/tree/master/anvil" "anvil - description" _blank
Demo
Put demos here
- Forge ClI
- Cast ClI
- Anvil Cli
🛠 Important Resources Table
This is being adapted from HERE. Additions and a rewrite. This page may undergo constant updates(dependent on my time)
Official Resource
Foundry Official Web Manual - This is the single most important resource for learning.
Videos
Blogs
| N | Type | Description & Link |
|---|---|---|
| 1 | 🔖 Blog | How to PoC your bug leads for Immunefi using Foundry |
| 2 | 🔖 Blog | crisgarner.eth - Getting Started with Forge |
| 3 | 🔖 Blog | brocke.eth - Using Foundry to give yourself $1bn |
Others
| N | Type | Description & Link |
|---|---|---|
| 1 | GitHub | Awesome Foundry |