Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snapshot-labs/snapshot-subgraph


https://github.com/snapshot-labs/snapshot-subgraph

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-studio/)

- Run `yarn codegen` to generate the types for the subgraph
- Run `yarn build` to build the subgraph
- Run `yarn deploy-studio-sepolia --deploy-key=`