Skip to content

snapshot-labs/snapshot-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapshot Subgraph

This subgraph indexes the data from the Snapshot delegation contracts.

To add new network

  • Create a new file similar to subgraph.sepolia.yaml
  • Find startBlock of contract on new network
  • Update startBlock and network with new values
  • Create a new script in package.json similar to deploy-studio-sepolia

How to deploy to studio

Refer to documentation here

  • Run yarn codegen to generate the types for the subgraph
  • Run yarn build to build the subgraph
  • Run yarn deploy-studio-sepolia --deploy-key=<DEPLOY_CODE_HERE>