@@ -482,6 +482,9 @@ contract DisputeManager is DisputeManagerV1Storage, GraphUpgradeable, IDisputeMa
482
482
DisputeType.QueryDispute
483
483
);
484
484
485
+ // store the dispute status
486
+ disputeStatus[disputeID] = IDisputeManager.DisputeStatus.Pending;
487
+
485
488
emit QueryDisputeCreated (
486
489
disputeID,
487
490
indexer,
@@ -549,6 +552,9 @@ contract DisputeManager is DisputeManagerV1Storage, GraphUpgradeable, IDisputeMa
549
552
DisputeType.IndexingDispute
550
553
);
551
554
555
+ // store dispute status
556
+ disputeStatus[disputeID] = IDisputeManager.DisputeStatus.Pending;
557
+
552
558
emit IndexingDisputeCreated (disputeID, alloc.indexer, _fisherman, _deposit, _allocationID);
553
559
554
560
return disputeID;
@@ -563,7 +569,10 @@ contract DisputeManager is DisputeManagerV1Storage, GraphUpgradeable, IDisputeMa
563
569
* @param _disputeID ID of the dispute to be accepted
564
570
*/
565
571
function acceptDispute (bytes32 _disputeID ) external override onlyArbitrator {
566
- Dispute memory dispute = disputes[_disputeID];
572
+ Dispute memory dispute = _resolveDispute (_disputeID);
573
+
574
+ // store dispute status
575
+ disputeStatus[_disputeID] = IDisputeManager.DisputeStatus.Accepted;
567
576
568
577
// Slash
569
578
(, uint256 tokensToReward ) = _slashIndexer (
@@ -594,6 +603,9 @@ contract DisputeManager is DisputeManagerV1Storage, GraphUpgradeable, IDisputeMa
594
603
function rejectDispute (bytes32 _disputeID ) external override onlyArbitrator {
595
604
Dispute memory dispute = _resolveDispute (_disputeID);
596
605
606
+ // store dispute status
607
+ disputeStatus[_disputeID] = IDisputeManager.DisputeStatus.Rejected;
608
+
597
609
// Handle conflicting dispute if any
598
610
require (
599
611
! _isDisputeInConflict (dispute),
@@ -614,6 +626,9 @@ contract DisputeManager is DisputeManagerV1Storage, GraphUpgradeable, IDisputeMa
614
626
function drawDispute (bytes32 _disputeID ) external override onlyArbitrator {
615
627
Dispute memory dispute = _resolveDispute (_disputeID);
616
628
629
+ // store dispute status
630
+ disputeStatus[_disputeID] = IDisputeManager.DisputeStatus.Drawn;
631
+
617
632
// Return deposit to the fisherman
618
633
TokenUtils.pushTokens (graphToken (), dispute.fisherman, dispute.deposit);
619
634
0 commit comments