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

https://github.com/standardweb3/standard-subgraph


https://github.com/standardweb3/standard-subgraph

graphql subgraph typescript

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Standard Protocol Subgraph

Aims to deliver analytics & historical data for Standard Tech. Still a work in progress. Feel free to contribute!

The Graph exposes a GraphQL endpoint to query the events and entities within the SushiSwap ecosytem.

Current subgraph locations:

1. **Vault**: Includes all Standard's Vault, Exchange data, etc:

## To setup and deploy

For any of the subgraphs: `Standard`as `[subgraph]`

1. Run the `yarn run codegen:[subgraph]` command to prepare the TypeScript sources for the GraphQL (generated/schema) and the ABIs (generated/[ABI]/\*)
2. [Optional] run the `yarn run build:[subgraph]` command to build the subgraph. Can be used to check compile errors before deploying.
3. Run `graph auth https://api.thegraph.com/deploy/ `
4. Deploy via `yarn run deploy:[subgraph]`.