graphops / graph-network-substreams

Graph Network Substreams
Apache License 2.0
1 stars 1 forks source link

feat: find the key for storage changes of indexer stakes and extract changes #22

Closed sahra-karakoc closed 1 year ago

sahra-karakoc commented 1 year ago

Description

We use indexer address and the storage slot of the stakes mapping in the Staking contract in order to find the key for the storage_changes regarding the indexer's stake. This allows us to track indexer's current stake without having to make contract calls or track multiple events to calculate indexer stake.