GithubHelp home page GithubHelp logo

isabella232 / mstable-subgraphs-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mstable/mstable-subgraphs-monorepo

0.0 0.0 0.0 1.76 MB

๐ŸŒ All mStable subgraphs in one handy monorepo.

Home Page: https://mstable.org

License: MIT License

TypeScript 99.83% JavaScript 0.17%

mstable-subgraphs-monorepo's Introduction

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.

mstable-subgraphs-monorepo's People

Contributors

dimsome avatar jameslefrere avatar lovrobiljeskovic avatar nftops199 avatar rafaelugolini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.