graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

Support for endBlock in subgraph defs

Open jamesmorgan opened this issue 5 years ago • 7 comments

We often replace/retire contracts but still want to index the events/transactions from these older unused contracts.

Would be great if there was a endBlock we could define which would allow us to set a definitive data to stop indexing contracts from.

Would save time/resources maintaining checks for things which are no longer used.

Thanks for an awesome product 🙏

jamesmorgan avatar Dec 20 '19 10:12 jamesmorgan

This would be great! We're triggering way many more event handlers than we would if we had an endBlock setting.

PaulRBerg avatar Jul 05 '21 07:07 PaulRBerg

Same applies to us. The feature would also be good for testing specific handlers in specific intervals without indexing the entire chain.

froid1911 avatar Aug 03 '21 11:08 froid1911

Bump, this would be a very useful feature to add

friskyfoxdk avatar Oct 11 '21 18:10 friskyfoxdk

Any updates on this? This would be very useful for us.

danaugrs avatar Feb 03 '22 18:02 danaugrs

This would be a life-saver for us as well!

TobyKreiselmaier avatar Mar 14 '22 15:03 TobyKreiselmaier

Thanks for the ping folks and sorry for the silence. This seems like a low hanging fruit to me but I might be wrong. I'll forward this to the graph-node team to make sure it gets added to the backlog.

I would also like to add the feature request to be able to stop indexing of certain contracts created with data source templates.

schmidsi avatar Apr 13 '22 16:04 schmidsi

Hey. Also interested. As mentioned before, wan't to stop for former contracts. And also some other activity, that continues to be indexed in new contracts, but muuuuch more efficiently now.

vibern0 avatar Sep 12 '22 19:09 vibern0

+1 would love this

zfogg avatar Oct 31 '22 16:10 zfogg

+1 this would be fantastic.

jurrchen avatar Jan 31 '23 02:01 jurrchen