Skip to content

Commit 0aa2a8d

Browse files
f: reverse SubgraphServiceIndexingAgreementAlreadyAllocated
1 parent f0f5785 commit 0aa2a8d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

IndexingPaymentsTodo.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Update Arbitration Charter to support disputing Indexing Fees. DONE: ~~Support `DisputeManager`~~
55
* Make `agreementId` unique globally so that we don't need the full tuple (`payer`+`indexer`+`agreementId`) as key?
66
* Rename `Decoder.sol` - Maybe turn it into a library instead?
7-
* Reverse name of `SubgraphServiceIndexingAgreementAlreadyAllocated`?
87
* Support indexing agreement upgadeability, so that there is a mechanism to adjust the rates without having to cancel and start over.
98
* Support for agreements that end up in `RecurringCollectorCollectionTooLate` or ways to avoid getting to that state.
109
* Should we deal with zero entities declared as a special case?

packages/subgraph-service/contracts/SubgraphService.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ contract SubgraphService is
761761

762762
require(
763763
_isZeroIndexingAgreementKey(allocationToActiveAgreementKey[_allocationId]),
764-
SubgraphServiceIndexingAgreementAlreadyAllocated(_allocationId)
764+
SubgraphServiceAllocationAlreadyHasIndexingAgreement(_allocationId)
765765
);
766766
allocationToActiveAgreementKey[_allocationId] = key;
767767

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ interface ISubgraphService is IDataServiceFees {
402402
* @notice Thrown when an allocation already has an active agreement
403403
* @param allocationId The allocation ID
404404
*/
405-
error SubgraphServiceIndexingAgreementAlreadyAllocated(address allocationId);
405+
error SubgraphServiceAllocationAlreadyHasIndexingAgreement(address allocationId);
406406

407407
/**
408408
* @notice Thrown when caller can not cancel an agreement

0 commit comments

Comments
 (0)