Skip to content

voltfinance/fStable-subgraphs-monorepo

 
 

Repository files navigation

mStable Subgraphs

All mStable subgraphs in one handy repo.

Installation

This project uses Yarn workspaces and Lerna.

# First enable yarn workspaces if needed
yarn config set workspaces-experimental true

yarn
yarn bootstrap --force-local && yarn lerna link --force-local

Packages

  • @mstable/subgraph-utils
    • Schemas/entities for shared items (e.g. Metrics, Tokens)
    • Utilities for interacting with data types and performing conversions
    • Scripts for e.g. merging GraphQL schemas
  • @mstable/protocol-subgraph
    • Subgraph for the mStable protocol
    • Encompasses mAssets, bAssets, saving contracts, and metrics
  • @mstable/governance-subgraph
    • Subgraph for mStable governance contracts
    • Encompasses MTA staking, staking rewards, voting power, and metrics
  • @mstable/ecosystem-subgraph
    • Subgraph for mStable's wider ecosystem
    • Encompasses EARN pools, Merkle drops, pool fund management, and metrics

Development

  • GraphQL types in packages/utils are stitched together with yarn codegen (in that directory).
  • These types can be consumed in other packages with import comments (e.g. # import Token); the schema for each subgraph is created via codegen.
  • Each subgraph shares the same config (for different networks) and can be prepared and deployed for the chosen network.

About

🌐 All fStable subgraphs in one handy monorepo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%