File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
contracts/src/arbitration Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ interface IArbitrator {
21
21
*/
22
22
event DisputeCreation (uint256 indexed _disputeID , IArbitrable indexed _arbitrable );
23
23
24
+ /**
25
+ * @dev To be raised when a ruling is given.
26
+ * @param _arbitrable The arbitrable receiving the ruling.
27
+ * @param _disputeID ID of the dispute in the Arbitrator contract.
28
+ * @param _ruling The ruling which was given.
29
+ */
30
+ event Ruling (IArbitrable indexed _arbitrable , uint256 indexed _disputeID , uint256 _ruling );
31
+
24
32
/**
25
33
* @dev Create a dispute. Must be called by the arbitrable contract.
26
34
* Must pay at least arbitrationCost(_extraData).
Original file line number Diff line number Diff line change @@ -866,6 +866,7 @@ contract KlerosCore is IArbitrator {
866
866
867
867
(uint256 winningChoice , , ) = currentRuling (_disputeID);
868
868
dispute.ruled = true ;
869
+ emit Ruling (dispute.arbitrated, _disputeID, winningChoice);
869
870
dispute.arbitrated.rule (_disputeID, winningChoice);
870
871
}
871
872
You can’t perform that action at this time.
0 commit comments