https://github.com/graphprotocol/maker-subgraph
Subgraph for maker
https://github.com/graphprotocol/maker-subgraph
Last synced: 10 months ago
JSON representation
Subgraph for maker
- Host: GitHub
- URL: https://github.com/graphprotocol/maker-subgraph
- Owner: graphprotocol
- Created: 2018-12-11T16:01:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-22T23:52:22.000Z (almost 4 years ago)
- Last Synced: 2025-03-23T18:51:46.883Z (10 months ago)
- Language: TypeScript
- Size: 68.4 KB
- Stars: 2
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Maker Subgraph
[Maker](https://makerdao.com) is comprised of a stablecoin, collateral loans, and decentralized governance.
## Events and Contracts
The Maker subgraph currently only tracks DAI, as the Graph Node needs to support anonymous functions before events in the CDP contracts can be tracked. This support will be added soon.
The SaiVox contract is not that important, so it is left out. It focuses on keeping the value of DAI near $1.00, by calling to third party price providers. This subgraph focuses more on DAI and CDPs so this isn't needed.
The SaiTop contract is not used either. This contract emits events when global settlement happens. Global settlement has never happened.
## Setting up the Subgraph
Please refer to the documentation https://thegraph.com/docs/quick-start for details on deploying a subgraph, and using the hosted service.
These docs https://github.com/graphprotocol/graph-node/blob/master/docs/getting-started.md will also help, especially with deploying your subgraph locally.
## Getting started with querying
Below are a few ways to show how to query the uniswap-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](https://github.com/graphprotocol/graph-node/blob/master/docs/graphql-api.md). These queries can be used locally or in The Graph Explorer playground.
### Querying The Maker Subgraph
> TODO