Skip to content

Commit 15ba132

Browse files
committed
feat(DisputeKit): change RNG for governor only
1 parent 7c781a3 commit 15ba132

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import "../../rng/RNG.sol";
2121
* - a vote aggreation system: plurality,
2222
* - an incentive system: equal split between coherent votes,
2323
* - an appeal system: fund 2 choices only, vote on any choice.
24+
* TODO:
25+
* - phase management: Generating->Drawing->Resolving->Generating in coordination with KlerosCore to freeze staking.
2426
*/
2527
contract DisputeKitClassic is DisputeKit {
2628
// ************************************* //
@@ -151,6 +153,14 @@ contract DisputeKitClassic is DisputeKit {
151153
core = KlerosCore(_core);
152154
}
153155

156+
/** @dev Changes the `_rng` storage variable.
157+
* @param _rng The new value for the `RNGenerator` storage variable.
158+
*/
159+
function changeRandomNumberGenerator(RNG _rng) external onlyByGovernor {
160+
rng = _rng;
161+
// TODO: if current phase is generating, call rng.requestRN() for the next block
162+
}
163+
154164
// ************************************* //
155165
// * State Modifiers * //
156166
// ************************************* //

0 commit comments

Comments
 (0)