Skip to content

Migrate core data fetching from RPCs to The Graph subgraph #327

Description

@ECWireless

Things to Try to Include in Current Subgraph

api/l1delegator/[address].tsx

  • bondingManagerAddress
  • roundsManagerAddress
  • currentRound
  • pendingStake
  • pendingFees
  • delegator
  • lock
  • transcoderStatus

EDIT: DON'T WORRY ABOUT THIS AS IT PERTAINS TO MAINNET

pages/migrate/broadcaster.tsx

  • submissionPrice
  • getMigrateSenderParams

EDIT: DON'T WORRY ABOUT THIS AS IT THESE PAGES ARE PLANNED TO BE REMOVED

pages/migrate/orchestrator.tsx

  • getMigrateDelegatorParams

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 protocol AddressBook schema to the subgraph

api/current-round.tsx

api/pending-stake.tsx

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#175
  • state -> What does this number refer to?
  • quorum -> Unsure where to get this
  • quota -> Unsure where to get this

api/treasury/proposal/[proposalId]/votes.tsx

api/treasury/votes/[address].tsx

api/treasury/votes/[address]/registered.tsx


Also resolve this security issue: https://github.com/livepeer/explorer/security/advisories/GHSA-34gq-95m4-v244

Activity

  1. self-assigned this
    on Oct 22, 2025
  2. moved this from Todo to Backlog in Explorer Revampon Nov 3, 2025
  3. moved this from Backlog to Todo in Explorer Revampon Nov 11, 2025
  4. moved this from Todo to In Progress in Explorer Revampon Dec 11, 2025
  5. ECWireless commented on Dec 13, 2025

    @ECWireless
    CollaboratorAuthor

    Best Candidates for RPC -> The Graph

    @rickstaa

    New AddressBook Entity Type

    • For core contract addresses
    • These contracts:
    LivepeerTokenFaucet
    BondingManager
    RoundsManager
    Minter
    MerkleSnapshot
    ServiceRegistry
    TicketBroker
    LivepeerGovernor
    Treasury
    BondingVotes
    
    • Honestly, not a priority. But would mean slightly less RPC calls

    Pending Stake and Fees

    • pendingStake
    • pendingFees
    • Could probably be added to the Delegator entity type

    More Treasury Data

    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#175
    • state -> What does this number refer to?
    • quorum -> Unsure where to get this
    • quota -> Unsure where to get this

    api/treasury/proposal/[proposalId]/votes.tsx

    api/treasury/votes/[address].tsx

    api/treasury/votes/[address]/registered.tsx

  6. moved this from In Progress to In Review in Explorer Revampon Dec 15, 2025
  7. moved this from In Review to Done in Explorer Revampon Dec 17, 2025
  8. rickstaa commented on Dec 24, 2025

    @rickstaa
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions