Skip to content

Commit 25f6019

Browse files
f: add to collect() NatSpec
1 parent ff81cfd commit 25f6019

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/subgraph-service/contracts/SubgraphService.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ contract SubgraphService is
247247

248248
/**
249249
* @notice Collects payment for the service provided by the indexer
250-
* Allows collecting different types of payments such as query fees and indexing rewards.
250+
* Allows collecting different types of payments such as query fees, indexing rewards and indexining fees.
251251
* It uses Graph Horizon payments protocol to process payments.
252252
* Reverts if the payment type is not supported.
253253
* @dev This function is the equivalent of the `collect` function for query fees and the `closeAllocation` function
@@ -261,6 +261,7 @@ contract SubgraphService is
261261
*
262262
* For query fees, see {SubgraphService-_collectQueryFees} for more details.
263263
* For indexing rewards, see {AllocationManager-_collectIndexingRewards} for more details.
264+
* For indexing fees, see {SubgraphService-_collectIndexingFees} for more details.
264265
*
265266
* @param indexer The address of the indexer
266267
* @param paymentType The type of payment to collect as defined in {IGraphPayments}
@@ -271,6 +272,9 @@ contract SubgraphService is
271272
* - address `allocationId`: The id of the allocation
272273
* - bytes32 `poi`: The POI being presented
273274
* - bytes `poiMetadata`: The metadata associated with the POI. See {AllocationManager-_collectIndexingRewards} for more details.
275+
* - For indexing fees:
276+
* - bytes16 `agreementId`: The id of the indexing agreement
277+
* - bytes `agreementCollectionMetadata`: The metadata required by the indexing agreement version.
274278
*/
275279
/// @inheritdoc IDataService
276280
function collect(

0 commit comments

Comments
 (0)