Erasure Testenv
Instantiate a ganache instance with NMR and erasure protocol.
Deploy contracts to local ganache server
yarn
yarn deploy
Deploy graphQL subgraph to local graph-node
In a new terminal
git clone https://github.com/graphprotocol/graph-node/
cd graph-node/docker
docker-compose up
In a new terminal
yarn deploy_subgraph
See this graph protocol article for more info. A common troubleshooting step is to clear and resart the graph-node db by deleting the content of graph-node/docker/data
.
To reset subgraph
yarn graph-remove-local