Skip to content

Advanced indexer metrics and cleanup

Compare
Choose a tag to compare
@davekaj davekaj released this 27 Jan 23:22
· 263 commits to master since this release

This release adds in the following fields on the Indexer entity:

indexerRewardsOwnGenerationRatio
ownStakeRatio
delegatedStakeRatio
indexingRewardEffectiveCut
indexingRewardOverdelegationDilution

Which are explained in more detail in this PR:
#84

It does some cleaning up of the subgraph too, from this PR : #80
Main things to highlight from the cleanup PR:

Schema fields removed:

  • Removed graphNetwork.indexingRewardsPerEpoch - This field was old and should have not been in the schema
  • Removed subgraph.totalIndexingRewards and subgraph.totalQueryFeesCollected - Both are a bit too complex to implement at the moment and are misleading to consumers of the subgraph, so we removed for now
  • Removed allocation.price - was not in use

Schema comments updated:

  • Fields not in use have had their comments updated to NOT IMPLEMENTED
  • Some fields were a bit confusing, in that people could not tell if it was a cumulative value (always adding, like a counter), or a current value that is in line with what is stored on the blockchain. The comments for these fields now have either CURRENT or CUMULATIVE on them.