Skip to content

zacel/rari-fuse-subgraph

Repository files navigation

Rari's Fuse Subgraph

Subgraph for Rari's Fuse pools

Quick Start

  • grab dependencies with yarn or npm install
  • run yarn codegen or npm run codegen to generate up to date data formats if you modify subgraph.yaml or schema.graphql
  • deploy a new version: yarn deploy for Subgraph Studio or yarn deploy-legacy for legacy hosted service

Parts Of This Repo

There are 3 Parts to this repo, the schema, the subgraph yaml, and the mappings.

Schema

The schema is found in schema.graphql. this is where we define each type of entity in the subgraph, all of the attributes of that entity (including whether they are required or optional), and finnally the relationships between different types of entities

Subgraph.yaml

The subgraph.yaml file is where we define the base contracts that the subgraph will track. In this case we only initially track FusePoolDirectory. From there we have event hooks setup to trigger specific mapping functions when a specific event is triggered on the the FusePoolDirectory, any monitored Comptroller, or any monitored CToken.

src/mappings/

Within the mappings directory we have a bunch of files each one containing functions which are triggered by a specific event as defined in the subgraph.yaml

About

source code for Rari's Fuse Subgraph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published