apibara / dna

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.
https://www.apibara.com/
Apache License 2.0
168 stars 32 forks source link

sink: refactor persistence to store state #301

Closed fracek closed 6 months ago

fracek commented 6 months ago

Summary Adding support for factories requires tracking the dynamic filter built by listening to factory events. We are going to use the same persistence mechanism used to track the indexer's cursor to track the filter.

This commit changes the data stored in the persistence layer to be a struct that can be extended later.

fracek commented 6 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.