Skip to content

Subgraph: support for Classic-like Dispute Kits at id > 1 #1947

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

Open
jaybuidl opened this issue Apr 9, 2025 · 0 comments
Open

Subgraph: support for Classic-like Dispute Kits at id > 1 #1947

jaybuidl opened this issue Apr 9, 2025 · 0 comments
Labels

Comments

@jaybuidl
Copy link
Member

jaybuidl commented Apr 9, 2025

Currently we are assuming that the dispute kit is at ID 1 in the subgraph code:

We already have use-cases to support other dispute kit instance which behave like a Classic DK ("Classic-like").

Things needed

  • implement the entities needed (basically check which ones have "Classic" as prefix, check which entities they are inheriting from, and make the equivalent )
  • where we are calling this functions, check the extradata to get the dispute kit id, and depending on it, choose the correct entity (this could be done with a function that goes from disputeKitId to disputeKitName, then use that name to dynamically choose the entity)

Then a few changes at the frontend level.

Assumption

All the deployments should have the same DisputeKits structure.
Otherwise if DisputeKit ID 2 is Classic-like on Devnet but not on Testnet, it would require some extra logic.

@jaybuidl jaybuidl changed the title Subgraph: support for other Dispute Kits at id > 1 Subgraph: support for Classic-like Dispute Kits at id > 1 Apr 9, 2025
@jaybuidl jaybuidl assigned alcercu and unassigned alcercu Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants