Collection of tools for debugging and working with The Graph's Horizon protocol.
CLI tool for inspecting and validating Graph Horizon protocol data. Queries both on-chain (RPC) and indexed (Subgraph) data sources in parallel to detect inconsistencies.
Features:
- View protocol configuration (staking parameters, dispute settings, etc.)
- Inspect indexer data (stake, provisions, allocations)
- Automatic validation between RPC and Subgraph data
- Detailed reporting of data mismatches
This is a pnpm workspace monorepo. To get started:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint all packages
pnpm lintTo add a new tool to this repository:
-
Create a new directory under
packages/:mkdir packages/your-tool
-
Initialize with a
package.json:{ "name": "@graphprotocol/your-tool", "version": "0.0.0", "type": "module", "license": "MIT" } -
The workspace will automatically pick it up
Each package is independent and can be developed separately:
# Work on CLI
cd packages/cli
pnpm build
pnpm test
# Run from root with filters
pnpm --filter @graphprotocol/graph-horizon-cli buildMIT