Skip to content

Commit 348c162

Browse files
f: add blockNumber for disputes
1 parent 25f6019 commit 348c162

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages/subgraph-service/contracts/DisputeManager.sol

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ contract DisputeManager is
134134
function createIndexingFeeDisputeV1(
135135
bytes16 agreementId,
136136
bytes32 poi,
137-
uint256 entities
137+
uint256 entities,
138+
uint256 blockNumber
138139
) external override returns (bytes32) {
139140
// Get funds from fisherman
140141
_graphToken().pullTokens(msg.sender, disputeDeposit);
141142

142143
// Create a dispute
143-
return _createIndexingFeeDisputeV1(msg.sender, disputeDeposit, agreementId, poi, entities);
144+
return _createIndexingFeeDisputeV1(msg.sender, disputeDeposit, agreementId, poi, entities, blockNumber);
144145
}
145146

146147
/// @inheritdoc IDisputeManager
@@ -532,7 +533,8 @@ contract DisputeManager is
532533
uint256 _deposit,
533534
bytes16 _agreementId,
534535
bytes32 _poi,
535-
uint256 _entities
536+
uint256 _entities,
537+
uint256 _blockNumber
536538
) private returns (bytes32) {
537539
IndexingAgreement.AgreementWrapper memory wrapper = _getSubgraphServiceExtension().getIndexingAgreement(
538540
_agreementId
@@ -556,7 +558,8 @@ contract DisputeManager is
556558
wrapper.collectorAgreement.serviceProvider,
557559
wrapper.collectorAgreement.payer,
558560
_poi,
559-
_entities
561+
_entities,
562+
_blockNumber
560563
)
561564
);
562565

packages/subgraph-service/contracts/interfaces/IDisputeManager.sol

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,15 @@ interface IDisputeManager {
547547
* @param agreementId The indexing agreement to dispute
548548
* @param poi The Proof of Indexing (POI) being disputed
549549
* @param entities The number of entities disputed
550+
* @param blockNumber The block number at which the indexing fee was collected
550551
* @return The dispute id
551552
*/
552-
function createIndexingFeeDisputeV1(bytes16 agreementId, bytes32 poi, uint256 entities) external returns (bytes32);
553+
function createIndexingFeeDisputeV1(
554+
bytes16 agreementId,
555+
bytes32 poi,
556+
uint256 entities,
557+
uint256 blockNumber
558+
) external returns (bytes32);
553559

554560
// -- Arbitrator --
555561

0 commit comments

Comments
 (0)