Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snapshot-labs/snapshot-subgraph
https://github.com/snapshot-labs/snapshot-subgraph
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/snapshot-labs/snapshot-subgraph
- Owner: snapshot-labs
- License: mit
- Created: 2020-10-27T13:12:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T18:34:36.000Z (about 2 months ago)
- Last Synced: 2024-11-21T19:18:05.856Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://thegraph.com/explorer/subgraph/snapshot-labs/snapshot
- Size: 213 KB
- Stars: 14
- Watchers: 7
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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=`