Skip to content

Commit c06d707

Browse files
committed
feat: add getTimesPerPeriod to KlerosCore
1 parent 203c88f commit c06d707

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,15 @@ contract KlerosCore is IArbitrator {
715715
locked = juror.lockedTokens[_subcourtID];
716716
}
717717

718+
/** @dev Gets the timesPerPeriod array for a given court.
719+
* @param _subcourtID The ID of the court to get the times from.
720+
* @return timesPerPeriod The timesPerPeriod array for the given court.
721+
*/
722+
function getTimesPerPeriod(uint96 _subcourtID) external view returns (uint256[4] memory timesPerPeriod) {
723+
Court storage court = courts[_subcourtID];
724+
timesPerPeriod = court.timesPerPeriod;
725+
}
726+
718727
// ************************************* //
719728
// * Public Views for Dispute Kits * //
720729
// ************************************* //

0 commit comments

Comments
 (0)