This subgraph indexes data from the Bodhi protocol and official apps.
-
Install dependencies:
yarn install
-
Copy config files:
cp networks.json.example networks.json cp subgraph.yaml.example subgraph.yaml
-
Generate code:
yarn codegen
-
Build the subgraph:
yarn build:op
-
Deploy to The Graph Studio:
Visit The Graph Studio to get your API key and studio name, then:
graph deploy --studio YOUR_STUDIO_NAME
For local network development (e.g., Anvil or Hardhat node):
yarn build:local
yarn create:local
yarn deploy:local