salgozino / KlerosJurorDashboard

This page lets you know your chances to be drawn as a Juror in a Kleros Court. It also shows you the evolution of cases, along with history of the Courts.
kleros-juror-dashboard-pfye.vercel.app
19 stars 5 forks source link

add dispute metaData in the vote options #58

Open salgozino opened 3 years ago

salgozino commented 3 years ago

Currently, the dispute Scanner is using the vote options: 0 = Refuse 1 = Yes 2 = No

But the metadata of each dispute should be used. Since this information it's in the arbitrable smarc contract instead of in the arbitrator (what Klerosboard reads), this could be achiveable using the next strategy: Each Dispute has the information of the disputeID and the Arbitrable With that info, we can look for the Dispute event that the arbitrable should emit for that dispute. Then, in that event we have metaEvidenceID. With that ID, we can search for the MetaEvidence event with the URL of the metaevidence (json file).

salgozino commented 2 years ago

A case where the metadata of the dispute has the voting options in other order than in the hardcoded in the site: Dispute 1125.