Skip to content

levi0214/bodhi-subgraph

 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%