Moonwell is an open lending and borrowing DeFi protocol on Base, Moonbeam and Moonriver. This Subgraph ingests the governance contracts of the protocol.
This subgraph can be found on The Graph Hosted Service at https://thegraph.com/hosted-service/subgraph/moonwell-fi/governance-$network (replace $network with one of moonbase|moonriver|moonbeam).
You can also run this subgraph locally, if you wish. Instructions for that can be found in The Graph Documentation.
The ABI used is governor.json
.
Below are a few ways to show how to query the Moonwell 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.
Set the following environment variables:
GITHUB_DEV_PROFILE
= Your Github dev profile name where you have created hosted subgraphs for each networkGRAPH_DEV_ACCESS_TOKEN
= Your deployment key for the development instances of hosted subgraphsSATSUMA_ACCESS_TOKEN
= Your deployment key for Satsuma's hosted service