Skip to content

Commit 583dfe7

Browse files
unknownunknown1jaybuidl
authored andcommitted
feat(KC): add boolean for subcourt disable
1 parent 67b3a76 commit 583dfe7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ contract KlerosCore is IArbitrator {
3939
uint256 jurorsForCourtJump; // The appeal after the one that reaches this number of jurors will go to the parent court if any.
4040
uint256[4] timesPerPeriod; // The time allotted to each dispute period in the form `timesPerPeriod[period]`.
4141
mapping(uint256 => bool) supportedDisputeKits; // True if DK with this ID is supported by the court.
42+
bool disabled; // True if the court is disabled. Unused for now, will be implemented later.
4243
}
4344

4445
struct Dispute {

contracts/src/arbitration/SortitionModule.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ contract SortitionModule is ISortitionModule {
249249
if (currenCourtID == core.GENERAL_COURT()) {
250250
finished = true;
251251
} else {
252-
(currenCourtID, , , , , ) = core.courts(currenCourtID);
252+
(currenCourtID, , , , , , ) = core.courts(currenCourtID);
253253
}
254254
}
255255
}

contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
227227

228228
Round storage round = dispute.rounds[dispute.rounds.length - 1];
229229
(uint96 courtID, , , , ) = core.disputes(_coreDisputeID);
230-
(, bool hiddenVotes, , , , ) = core.courts(courtID);
230+
(, bool hiddenVotes, , , , , ) = core.courts(courtID);
231231

232232
// Save the votes.
233233
for (uint256 i = 0; i < _voteIDs.length; i++) {
@@ -543,7 +543,7 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
543543
core.getNumberOfRounds(_coreDisputeID) - 1
544544
);
545545
(uint256 stakedTokens, uint256 lockedTokens, ) = core.getJurorBalance(_juror, courtID);
546-
(, , uint256 minStake, , , ) = core.courts(courtID);
546+
(, , uint256 minStake, , , , ) = core.courts(courtID);
547547
return stakedTokens >= lockedTokens + lockedAmountPerJuror && stakedTokens >= minStake;
548548
}
549549
}

contracts/src/arbitration/dispute-kits/DisputeKitSybilResistant.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
247247

248248
Round storage round = dispute.rounds[dispute.rounds.length - 1];
249249
(uint96 courtID, , , , ) = core.disputes(_coreDisputeID);
250-
(, bool hiddenVotes, , , , ) = core.courts(courtID);
250+
(, bool hiddenVotes, , , , , ) = core.courts(courtID);
251251

252252
// Save the votes.
253253
for (uint256 i = 0; i < _voteIDs.length; i++) {
@@ -563,7 +563,7 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
563563
core.getNumberOfRounds(_coreDisputeID) - 1
564564
);
565565
(uint256 stakedTokens, uint256 lockedTokens, ) = core.getJurorBalance(_juror, courtID);
566-
(, , uint256 minStake, , , ) = core.courts(courtID);
566+
(, , uint256 minStake, , , , ) = core.courts(courtID);
567567
if (stakedTokens < lockedTokens + lockedAmountPerJuror || stakedTokens < minStake) {
568568
return false;
569569
} else {

0 commit comments

Comments
 (0)