Inverse is an open-source protocol for algorithmic, efficient Money Markets on the Ethereum blockchain and a a fork of Compound.
This Subgraph indexes the data of the protocol.
This subgraph can be found on The Graph Hosted Service at https://thegraph.com/explorer/subgraph/graphprotocol/inverse.
You can also run this subgraph locally, if you wish. Instructions for that can be found in The Graph Documentation.
The ABI used is ctoken.json
. It is a stripped down version of the full abi provided by inverse, that satisfies the calls we need to make for both cETH and cERC20 contracts. This way we can use 1 ABI file, and one mapping for cETH and cERC20.
Below are a few ways to show how to query the inverse Subgraph for data. The queries show most of the information that is queryable, but there are many other filtering options that can be used, just check out the querying api.
You can also see the saved queries on the hosted service for examples or using Hasura API Explorer : https://graphiql-online.com/graphiql using the API link : https://api.studio.thegraph.com/query/11640/inverse-subgraph/v0.2.0