Skip to content

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

Open
@jaybuidl

Description

@jaybuidl

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions