A subgraph for indexing the yieldDistributed event from our YieldDistributor smart contract. This is used by the crowdstaking app.
This subgraph is published on The Graph at
This repository uses subgraphform for CI/CD. On pull requests to main, the workflow builds, lints, and tests the subgraph. On merge to main, it automatically deploys to The Graph Studio.
The GRAPH_DEPLOY_KEY repository secret must be set for deployments to work.
Install dependencies:
yarn install
Generate types:
yarn codegen
Build:
yarn build
Run tests:
yarn test
Deploy manually (if needed):
yarn deploy