Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 775 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 775 Bytes

Bodhi Subgraph

This subgraph indexes data from the Bodhi protocol and official apps.

Setup

  1. Install dependencies:

    yarn install
  2. Copy config files:

    cp networks.json.example networks.json
    cp subgraph.yaml.example subgraph.yaml
  3. Generate code:

    yarn codegen

Deployment

Optimism Network

  1. Build the subgraph:

    yarn build:op
  2. Deploy to The Graph Studio:

    Visit The Graph Studio to get your API key and studio name, then:

    graph deploy --studio YOUR_STUDIO_NAME

Local Network

For local network development (e.g., Anvil or Hardhat node):

yarn build:local
yarn create:local
yarn deploy:local