forge-std icon indicating copy to clipboard operation
forge-std copied to clipboard

feat: `Handler` contract

Open mds1 opened this issue 3 years ago • 0 comments

Let's flesh out a standard handler contract that people can build off of. References:

  • https://book.getfoundry.sh/forge/invariant-testing
  • https://mirror.xyz/horsefacts.eth/Jex2YVaO65dda6zEyfM_-DXlXhOWCAoSpOx5PLocYgw
  • https://github.com/lucas-manuel/invariant-examples
  • https://github.com/maple-labs/maple-core-v2/tree/main/tests/invariants
// src/Handler.sol
contract Handler is CommonBase, StdCheats, StdUtils {
  // TODO Helpers for managing actors/addresses
  // TODO Helpers for call summary data
  // TODO What else?
}

cc @lucas-manuel @horsefacts @gakonst

mds1 avatar Feb 14 '23 17:02 mds1