Skip to content

Subgraph implementation for Lending Markets run by RBL

Notifications You must be signed in to change notification settings

Rome-Blockchain-Labs/subgraph-lending

 
 

Repository files navigation

Benqi-subgraph

Prerequisites:

To run a graph-node on your local computer

To run a graph-node on docker

Sometimes the graph-node process starts up faster than the ipfs, so it's safer to run 2 separate commands: docker-compose up -d graph-db ipfs docker-compose up graph-node

Commands:

generate types:

  • npx graph codegen --output-dir src/types/ build code:
  • npx graph build deploy:
  • npx graph deploy --debug --access-token <TOKEN> yhayun/Benqi --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/

Guides

WIP

There are some commented out sections from the original compund-v2 graph, they're all marked with TODO @yhayun comment. Missing items (not exahsutive):

  • market.underlyingPriceUSD
  • market.accrualBlockNumber
  • market.supplyRate

About

Subgraph implementation for Lending Markets run by RBL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%