-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: handle DisputeEscalated events for not first disputes #81
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.
small suggestions but good 👍🏻
import { CommandAlreadyRun, CommandNotRun } from "../../../exceptions/index.js"; | ||
import { EboRegistryCommand } from "../../../interfaces/index.js"; | ||
|
||
export class NoOp implements EboRegistryCommand { |
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.
Might be good to have some docs in this class as I'm curious what you mean by noop in this context---I know that it means "do nothing" usually but why it's not immediately clear to me why we need the build() command. Also, do you think we need some logging in build() would be useful for when it's invoked in ResponseDisputed so we know when a new noop instance is returned?
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.
We could technically make the constructor public and use new NoOp()
; I wanted to keep the same approach the other commands are using, just for the sake of things consistent.
Seems like a wise decision to log the no-op "execution", I agree!
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.
go go ⏭️ , just a small obs
|
||
blockNumberService: | ||
blockmetaConfig: | ||
baseUrl: "localhost:443" |
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 a double check that it's the correct port since its HTTPS one
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.
It's kinda a placeholder for Tenderly config tbh, we are not indexing any chain that needs the blockmeta service.
The base branch was changed.
🤖 Linear
Closes GRT-241
Description
Prophet can emit a
DisputeEscalated
event prior theResponseDisputed
event, causing issues in actors' event processing.Fix this special case by handling events being emitted in this particular order.