-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Events Orderbook] Refactor
applyEvent
Logic (#725)
The refactor that was promised! This PR refactors `applyEvents` switch statement to be more "dumb" by forwarding each event to their individual functions. This has the added benefit of using the `Event` types so that we have type safety on the event `returnValues` property. ### Test Plan This PR is just a refactor so unit tests should verify that nothing broke.
- Loading branch information
Showing
4 changed files
with
264 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.