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

This branch is 42 commits ahead of, 4 commits behind ChaosLabsInc/subgraph-benqi:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

912e878 · Aug 3, 2023

History

48 Commits
Mar 21, 2023
May 3, 2023
Jun 8, 2023
Feb 28, 2022
Mar 13, 2023
Mar 13, 2023
Mar 13, 2023
May 3, 2023
Jun 8, 2023
Aug 3, 2023
May 3, 2023
May 3, 2023
May 3, 2023

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%