Repository navigation
Migrate core data fetching from RPCs to The Graph subgraph #327
Copy link
Copy link
Milestone
Description
Things to Try to Include in Current Subgraph
api/l1delegator/[address].tsx
api/l1delegator/[address].tsxbondingManagerAddressroundsManagerAddresscurrentRoundpendingStakependingFeesdelegatorlocktranscoderStatus
EDIT: DON'T WORRY ABOUT THIS AS IT PERTAINS TO MAINNET
pages/migrate/broadcaster.tsx
pages/migrate/broadcaster.tsxsubmissionPricegetMigrateSenderParams
EDIT: DON'T WORRY ABOUT THIS AS IT THESE PAGES ARE PLANNED TO BE REMOVED
pages/migrate/orchestrator.tsx
pages/migrate/orchestrator.tsxgetMigrateDelegatorParams
EDIT: DON'T WORRY ABOUT THIS AS IT THESE PAGES ARE PLANNED TO BE REMOVED
lib/api/contracts.ts
getContract-> may be worth adding something like a protocolAddressBookschema to the subgraph
api/current-round.tsx
currentRound-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L34currentRoundStartBlock-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L151currentRoundInitialized-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L147
api/pending-stake.tsx
currentRound-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L34pendingStakependingFees
api/treasury/proposal/[proposalId]/state.tsx
clock-> What does this number refer to?proposalSnapshot-> What does this number refer to?getPastTotalSupply-> What does this number refer to?proposalVotes-> part of feat(treasury): index governor votes and tallies subgraph#175state-> What does this number refer to?quorum-> Unsure where to get thisquota-> Unsure where to get this
api/treasury/proposal/[proposalId]/votes.tsx
clock-> What does this number refer to?proposalSnapshot-> What does this number refer to?getVotes-> Likely can't get this from subgraphgetPastVotes-> Part of feat(treasury): index governor votes and tallies subgraph#175hasVoted-> Part of feat(treasury): index governor votes and tallies subgraph#175delegatedAt-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189
api/treasury/votes/[address].tsx
proposalThreshold-> What does this number refer to?getPastVotes-> Part of feat(treasury): index governor votes and tallies subgraph#175delegates-> Likely https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189
api/treasury/votes/[address]/registered.tsx
getDelegator-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189 and https://github.com/livepeer/subgraph/blob/main/schema.graphql#L205hasCheckpoint-> Not positive, but believe it's this: https://github.com/livepeer/subgraph/blob/main/schema.graphql#L104
Also resolve this security issue: https://github.com/livepeer/explorer/security/advisories/GHSA-34gq-95m4-v244
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ECWireless commentedon Dec 13, 2025
Best Candidates for RPC -> The Graph
@rickstaa
New
AddressBookEntity TypePending Stake and Fees
pendingStakependingFeesDelegatorentity typeMore Treasury Data
api/treasury/proposal/[proposalId]/state.tsxclock-> What does this number refer to?proposalSnapshot-> What does this number refer to?getPastTotalSupply-> What does this number refer to?proposalVotes-> part of feat(treasury): index governor votes and tallies subgraph#175state-> What does this number refer to?quorum-> Unsure where to get thisquota-> Unsure where to get thisapi/treasury/proposal/[proposalId]/votes.tsxclock-> What does this number refer to?proposalSnapshot-> What does this number refer to?getVotes-> Likely can't get this from subgraphgetPastVotes-> Part of feat(treasury): index governor votes and tallies subgraph#175hasVoted-> Part of feat(treasury): index governor votes and tallies subgraph#175delegatedAt-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189api/treasury/votes/[address].tsxproposalThreshold-> What does this number refer to?getPastVotes-> Part of feat(treasury): index governor votes and tallies subgraph#175delegates-> Likely https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189api/treasury/votes/[address]/registered.tsxgetDelegator-> https://github.com/livepeer/subgraph/blob/main/schema.graphql#L189 and https://github.com/livepeer/subgraph/blob/main/schema.graphql#L205hasCheckpoint-> Not positive, but believe it's this: https://github.com/livepeer/subgraph/blob/main/schema.graphql#L104rickstaa commentedon Dec 24, 2025
@ECWireless thanks for outlining the additional subgraph improvements in #327 (comment).
As we’re starting a partnership with another group to work on the subgraph in January, these items will be handled outside the current RFP. I’ve created an upstream issue on the subgraph for that team to pick up: livepeer/subgraph#182.
I’ve also opened a related Explorer tracking issue that your team can follow up on once the upstream subgraph changes are completed: #462.
For now you can consider this work completed in the scope of the RFP.