Problem statement
Currently, 2 x eth transactions required to “renew” existing allocation.
Indexer has to close existing allocation and open new allocation (potentially with new parameters, e.g. allocationAmount) then. Having high gas cost, such 2 x operations could financialy impact indexer.
Proposed solution
Consider to update Indexer-Agent with new operation closeAndAllocate(), wich would allow to close and open allocation in one transaction, which could potentially reduce Indexer’s operational costs.
Operation closeAndAllocate() would intake optional argument:
- newAllocationAmount
Use:
graph indexer rules set “deployments” newAllocationAmount 1000
It would close existing allocation and reopen with new amount 1000