Skip to content

RedRise/edu_foundry

Repository files navigation

EDUCATIONAL FOUNDRY REPO

Installation

Steps followed to setup this repo

  • Install Foundry
  • Install Hardhat
  • Init Hardhat
  • Setup Hardhat typescript compatibility
  • Install Hardhat add-ins

Resources / References

6702afd3d2b9646d77f615b7658992ad4784e446

Content

  1. Store.sol in progress
  2. 02_Discounted.t.sol OK
  3. 03_HeadOrTail.t.sol OK
  4. 04_Vault.t.sol OK

General Tests

  • CallerCallee.sol: implements a Caller contract that calls a Callee contract (tests: Foundry & Hardhat).
  • Reentancy.sol : implements a VulnerableVault with various ways to withdraw funds (transfer, send, call) and re-entrancy pattern vulnerability (tests: Foundry).

TODO

  • receive vs fallback
  • revert / out of gas
  • on Coffers, automatic getter of public struct{ uint, mapping} only returns uint
  • What does forge update do? foundry-rs/foundry#3720

About

Foundry learning repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published