Skip to content

Commit 54e46bb

Browse files
alcercujaybuidl
authored andcommitted
feat(contracts): add disputecreation and commitcast events to disputeKitClassic
1 parent 74cc162 commit 54e46bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
8585
// * Events * //
8686
// ************************************* //
8787

88+
event DisputeCreation(uint256 indexed _coreDisputeID, uint256 _numberOfChoices, bytes _extraData);
89+
90+
event CommitCast(uint256 indexed _coreDisputeID, uint256[] _voteIDs, bytes32 _commit);
91+
8892
event Contribution(
8993
uint256 indexed _coreDisputeID,
9094
uint256 indexed _coreRoundID,
@@ -186,6 +190,7 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
186190

187191
coreDisputeIDToLocal[_coreDisputeID] = localDisputeID;
188192
disputesWithoutJurors++;
193+
emit DisputeCreation(_coreDisputeID, _numberOfChoices, _extraData);
189194
}
190195

191196
/** @dev Passes the phase.
@@ -293,6 +298,7 @@ contract DisputeKitClassic is BaseDisputeKit, IEvidence {
293298
round.votes[_voteIDs[i]].commit = _commit;
294299
}
295300
round.totalCommitted += _voteIDs.length;
301+
emit CommitCast(_coreDisputeID, _voteIDs, _commit);
296302
}
297303

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

0 commit comments

Comments
 (0)