A library to validate the ERC-4337 rules within Foundry

This library allows you to validate:

  • Banned opcodes
  • Banned storage locations
  • Disallowed *CALLs
  • Disallowed use of EXT* opcodes
  • Disallowed use CREATE opcode

It also supports both v0.6 and v0.7 of ERC-4337.

Useful starting resources