Skip to content

Commit 1c99555

Browse files
feat(KlerosCore): dispute kit forest implementation
1 parent c81e00d commit 1c99555

File tree

4 files changed

+261
-114
lines changed

4 files changed

+261
-114
lines changed

contracts/src/arbitration/IDisputeKit.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ interface IDisputeKit {
5151
*/
5252
function currentRuling(uint256 _disputeID) external view returns (uint256 ruling);
5353

54+
/** @dev Returns the voting data from the most relevant round.
55+
* @param _disputeID The ID of the dispute in Kleros Core.
56+
* @return winningChoiece The winning choice of this round.
57+
* @return tied Whether it's a tie or not.
58+
*/
59+
function getLastRoundResult(uint256 _disputeID) external view returns (uint256 winningChoiece, bool tied);
60+
5461
/** @dev Gets the degree of coherence of a particular voter. This function is called by Kleros Core in order to determine the amount of the reward.
5562
* @param _disputeID The ID of the dispute in Kleros Core.
5663
* @param _round The ID of the round.

0 commit comments

Comments
 (0)