graphprotocol / graphprotocol/graph-network-subgraph

Open question about calculating total values for the Subgraph Entity

Open
#83 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
82
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Values such as:

  • totalIndexingRewards
  • totalQueryFeesCollected
  • totalStake
  • totalSignal

Are ignored in the subgraph for now. Since 2 subgraphs can point to the same existing subgraph deployment.

It is doable, it just involves a lot of work, so it should be done specifically as a task in the near future

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Subgraph Entity and the handling of totalIndexingRewards, totalQueryFeesCollected, totalStake, and totalSignal. Determine how totals should behave when two subgraphs point to the same deployment; done means these values are calculated consistently rather than ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.