File tree 1 file changed +10
-0
lines changed
contracts/src/arbitration/dispute-kits 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import "../../rng/RNG.sol";
21
21
* - a vote aggreation system: plurality,
22
22
* - an incentive system: equal split between coherent votes,
23
23
* - 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.
24
26
*/
25
27
contract DisputeKitClassic is DisputeKit {
26
28
// ************************************* //
@@ -151,6 +153,14 @@ contract DisputeKitClassic is DisputeKit {
151
153
core = KlerosCore (_core);
152
154
}
153
155
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
+
154
164
// ************************************* //
155
165
// * State Modifiers * //
156
166
// ************************************* //
You can’t perform that action at this time.
0 commit comments