The Livepeer Protocol codebase has recently started implementing foundry/dapptools unit tests and fuzzing tests as part of its pipeline.
However, as it stands now, the test contracts include repeating logic and interfaces which hurt their readability and easiness of refactoring should future changes in the business logic also require changes in the pertinent tests.
For the above purpose, the focus of the current issue is:
create a base test contract for all the upgradeability and governance logic that will be inherited by other tests whenever necessary
remove all the repeating interfaces and move them to a single file
The Livepeer Protocol codebase has recently started implementing foundry/dapptools unit tests and fuzzing tests as part of its pipeline. However, as it stands now, the test contracts include repeating logic and interfaces which hurt their readability and easiness of refactoring should future changes in the business logic also require changes in the pertinent tests.
For the above purpose, the focus of the current issue is: