Aims to deliver analytics & historical data for StakeWise. Still a work in progress. Feel free to contribute!
The Graph exposes a GraphQL endpoint to query the events and entities within the StakeWise ecosystem.
-
Install dependencies:
npm install
-
Build the subgraph to check compile errors before deploying:
npm run build:mainnet
-
Deploy subgraph to your stage environment:
IPFS_URL=<your IPFS node> GRAPH_URL=<your graph node> npm run deploy-stage:mainnet
-
Deploy subgraph to your prod environment:
IPFS_URL=<your IPFS node> GRAPH_URL=<your graph node> npm run deploy-prod:mainnet
The documentation for all the GraphQL object fields can be
found by going to src/schema.graphql
.