Skip to content

Commit

Permalink
feat: add getTimesPerPeriod to KlerosCore
Browse files Browse the repository at this point in the history
  • Loading branch information
alcercu authored and jaybuidl committed Feb 17, 2022
1 parent 203c88f commit d1b32b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/src/arbitration/KlerosCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,15 @@ contract KlerosCore is IArbitrator {
locked = juror.lockedTokens[_subcourtID];
}

/** @dev Gets the timesPerPeriod array for a given court.
* @param _subcourtID The ID of the court to get the times from.
* @return timesPerPeriod The timesPerPeriod array for the given court.
*/
function getTimesPerPeriod(uint96 _subcourtID) external view returns (uint256[4] memory timesPerPeriod) {
Court storage court = courts[_subcourtID];
timesPerPeriod = court.timesPerPeriod;
}

// ************************************* //
// * Public Views for Dispute Kits * //
// ************************************* //
Expand Down

0 comments on commit d1b32b6

Please sign in to comment.