-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watcher: refactor #407
watcher: refactor #407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question and opportunity for a little more cleanup :)
43412a6
to
ba3aa4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming all of those EVM chains support finalized
this seems like it would work, but would be best to confirm (unless the code did this before, but it seems like it defaulted to latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that this changes the default to use the finalized
block tag, and I'm not confident that every chain listed in utils.ts
supports that. This should be tested carefully before or when deploying.
This PR refactors the watchers in order to make the class hierarchy clearer and code reuse better.