-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support for the arbitrator v2 #256
Comments
So, in the branch, I assume I don't need to support both kleros v1 and v2. What is necessary to support the new arbitrator?
|
Yup, v2 only in this branch.
We don't demo the appeals right now. But appeals can be requested on the DisputeKit. Which one? We can ask KlerosCore: which disputeKit for this disputeID and this round. fundAppeal = async (disputeID, choice) => {
const round = await KlerosCore.getNumberOfRounds(disputeID)
(,,,,, disputeKitID) = await KlerosCore.getRoundInfo(disputeID, round)
const disputeKit = await KlerosCore.disputeKitNodes(disputeKitID)
disputeKit.fundAppeal(disputeID, choice)
} (not tested)
Not sure how it is used in Curate. If needed for display purposes or some logic, you could do const dispute = await KlerosCore.disputes(arbitratorDisputeID)
switch(dispute.period) {
case KlerosCore.Period.appeal: {
// do DisputeStatus.Appealable stuffs here
break;
}
case KlerosCore.Period.execution: {
// do DisputeStatus.Solved stuffs here
break;
}
default: {
// do DisputeStatus.Waiting stuffs here
break;
}
} |
Will test if it works as intended later when an arbitrator frontend works to try it out. |
Dependencies:
It's going to live in a separate v2 branch in the foreseeable future.
The text was updated successfully, but these errors were encountered: