Skip to content

Commit 5b5e365

Browse files
alcercujaybuidl
authored andcommitted
feat(contracts): add events to DisputeKitSybilResistant
1 parent 96ba615 commit 5b5e365

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
9595
// * Events * //
9696
// ************************************* //
9797

98+
event DisputeCreation(uint256 indexed _coreDisputeID, uint256 _numberOfChoices, bytes _extraData);
99+
100+
event CommitCast(uint256 indexed _coreDisputeID, uint256[] _voteIDs, bytes32 _commit);
101+
98102
event Contribution(
99103
uint256 indexed _coreDisputeID,
100104
uint256 indexed _coreRoundID,
@@ -211,6 +215,7 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
211215

212216
coreDisputeIDToLocal[_coreDisputeID] = localDisputeID;
213217
disputesWithoutJurors++;
218+
emit DisputeCreation(_coreDisputeID, _numberOfChoices, _extraData);
214219
}
215220

216221
/** @dev Passes the phase.
@@ -319,6 +324,7 @@ contract DisputeKitSybilResistant is BaseDisputeKit, IEvidence {
319324
round.votes[_voteIDs[i]].commit = _commit;
320325
}
321326
round.totalCommitted += _voteIDs.length;
327+
emit CommitCast(_coreDisputeID, _voteIDs, _commit);
322328
}
323329

324330
/** @dev Sets the caller's choices for the specified votes.

0 commit comments

Comments
 (0)