Skip to content

moonwell-fi/moonwell-subgraph

Repository files navigation

Moonwell Subgraph

Moonwell is an open lending and borrowing DeFi protocol on Moonbeam and Moonriver. This Subgraph ingests the contracts of the protocol.

Networks and Performance

This subgraph can be found on The Graph Hosted Service at https://thegraph.com/hosted-service/subgraph/moonwell-fi/moonwell.

You can also run this subgraph locally, if you wish. Instructions for that can be found in The Graph Documentation.

ABI

The ABI used is ctoken.json. It is a stripped down version of the full abi provided by Moonwell, that satisfies the calls we need to make for both mMOVR and mERC20 contracts. This way we can use 1 ABI file, and one mapping for mMOVR and mERC20.

Getting started with querying

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.

Development

The subgraph is under major refactor in dev branch.

Local Dev Environment Setup

Set the following environment variables:

  • GITHUB_DEV_PROFILE = Your Github dev profile name where you have created hosted subgraphs for each network
  • GRAPH_DEV_ACCESS_TOKEN = Your deployment key for the development instances of hosted subgraphs
  • SATSUMA_ACCESS_TOKEN = Your deployment key for Satsuma's hosted service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •