Foundry 101, a hands on introduction
summary
Foundry installs in under a minute and uses forge for Solidity-native tests and cast as a CLI; tests are Solidity contracts with setup fixtures composed by inheritance, reducing hundreds of JS lines to a few Solidity functions. Features shown: mainnet forking, gas snapshot reports to track regressions, an opcode-level debugger that finds a memory overwrite, and cheat codes like vm.prank and vm.sign to simulate callers and signatures. Migration from Hardhat drops JS boilerplate; deployment tooling is prototype work in progress.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:12Foundry basics
- 3:44Creating a template
- 5:43Smart contracts
- 7:26Gas consumption
- 9:50Main networking
- 12:08Debugger
- 15:20Cheat Codes
- 17:00User Contract
- 18:53Functions
- 20:08Testing
- 21:39First test
- 24:48Questions
- 27:28eth brownie
- 28:38testing in solidity
- 32:13test organization
- 34:08deployment roadmap
- 35:38call to action








