A web frontend for interacting with the mStable contracts.
First, ensure that these are installed:
And that the the Docker daemon is running.
git clone git@github.com:mstable/mStable-app.git && cd mStable-appyarnyarn provisionyarn codegen
Simply run yarn truffle:migrate and the contracts will be deployed to a
local Ganache instance on http://127.0.0.1:7545.
Firstly run graph-node locally:
- Navigate to
lib/graph-node/docker. - Edit
docker-compose.ymlif needed (e.g. to set the host URL for Ganache). - Run
docker-compose upto start the node.
Next, create and deploy the subgraph.
- Navigate to
lib/mStable-subgraph. - Edit
subgraph.yamlif needed to set the contract addresses to those deployed locally. - Run
yarn codegen. - Run
yarn create-local; the graph node should output a log. - Run
yarn deploy-local; the graph node should start running the subgraph and begin processing blocks.
More detailed instructions are available here.
Simply run yarn start.