Skip to content

📀 Lite application to interface with the mStable protocol

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

The-Peso-G/mStable-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mStable App

A web frontend for interacting with the mStable contracts.


Setup

Prerequisites

First, ensure that these are installed:

And that the the Docker daemon is running.

Installation

  1. git clone git@github.com:mstable/mStable-app.git && cd mStable-app
  2. cp .env.example .env
  3. yarn
  4. yarn provision
  5. yarn codegen
  6. Optional: replace env vars in .env with e.g. a real Infura provider key

Deploying the contracts locally

Simply run yarn truffle:migrate and the contracts will be deployed to a local Ganache instance on http://127.0.0.1:7545.

Deploying the subgraph

Firstly run graph-node locally:

  1. Navigate to lib/graph-node/docker.
  2. Edit docker-compose.yml if needed (e.g. to set the host URL for Ganache).
  3. Run docker-compose up to start the node.

Next, create and deploy the subgraph.

  1. Navigate to lib/mStable-subgraph.
  2. Edit subgraph.yaml if needed to set the contract addresses to those deployed locally.
  3. Run yarn codegen.
  4. Run yarn create-local; the graph node should output a log.
  5. Run yarn deploy-local; the graph node should start running the subgraph and begin processing blocks.

More detailed instructions are available here.

Running the application locally

Simply run yarn start.

About

📀 Lite application to interface with the mStable protocol

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.8%
  • Other 0.2%