Skip to content
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

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

0xyaco
Copy link
Collaborator

@0xyaco 0xyaco commented Oct 31, 2024

🤖 Linear

Closes GRT-241

Description

Prophet can emit a DisputeEscalated event prior the ResponseDisputed event, causing issues in actors' event processing.

Fix this special case by handling events being emitted in this particular order.

Copy link

linear bot commented Oct 31, 2024

jahabeebs
jahabeebs previously approved these changes Oct 31, 2024
Copy link
Collaborator

@jahabeebs jahabeebs left a 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 {
Copy link
Collaborator

@jahabeebs jahabeebs Oct 31, 2024

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?

Copy link
Collaborator Author

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!

0xnigir1
0xnigir1 previously approved these changes Oct 31, 2024
Copy link
Collaborator

@0xnigir1 0xnigir1 left a 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"
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

@0xyaco 0xyaco changed the base branch from test/multi-dispute to main November 1, 2024 09:45
@0xyaco 0xyaco dismissed stale reviews from 0xnigir1 and jahabeebs November 1, 2024 09:45

The base branch was changed.

@0xyaco 0xyaco changed the base branch from main to dev November 1, 2024 09:46
@0xyaco 0xyaco requested review from jahabeebs and 0xnigir1 November 1, 2024 10:32
@0xyaco 0xyaco merged commit 0e65a1c into dev Nov 1, 2024
5 checks passed
@0xyaco 0xyaco deleted the fix/handle-dispute-escalated branch November 1, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants