@@ -126,6 +126,14 @@ contract LinguoToken is Arbitrable {
126126 */
127127 event TaskResolved (uint indexed _taskID , string _reason , uint _timestamp );
128128
129+ /** @dev To be emitted when someone contributes to the appeal process.
130+ * @param _taskID The ID of the respective task.
131+ * @param _party The party which received the contribution.
132+ * @param _contributor The address of the contributor.
133+ * @param _amount The amount contributed.
134+ */
135+ event AppealContribution (uint indexed _taskID , Party _party , address _contributor , uint _amount );
136+
129137 /** @dev To be emitted when the appeal fees of one of the parties are fully funded.
130138 * @param _taskID The ID of the respective task.
131139 * @param _party The party that is fully funded.
@@ -404,6 +412,9 @@ contract LinguoToken is Arbitrable {
404412 (contribution, remainingETH) = calculateContribution (msg .value , totalCost.subCap (round.paidFees[uint (_side)]));
405413 round.contributions[msg .sender ][uint (_side)] += contribution;
406414 round.paidFees[uint (_side)] += contribution;
415+
416+ emit AppealContribution (_taskID, _side, msg .sender , contribution);
417+
407418 // Add contribution to reward when the fee funding is successful, otherwise it can be withdrawn later.
408419 if (round.paidFees[uint (_side)] >= totalCost) {
409420 round.hasPaid[uint (_side)] = true ;
@@ -723,4 +734,5 @@ contract LinguoToken is Arbitrable {
723734 round.feeRewards
724735 );
725736 }
726- }
737+ }
738+
0 commit comments