Dystopia Subgraph

TESTS

Install

Install dependencies npm install

Generate types npm run codegen

Build the project npm run build

Very useful deploy subgraph on the local graph-node.

Testing

More about tests on matchstick

On Linux/MacOS run tests should work with graph test

On Windows you can run test with following command (make sure you have installed docker)

docker run -t --rm --mount type=bind,source=<ABSOLUTE_PATH_TO_REPO>,target=/matchstick belbix/subgraph:matchstick

For run concrete test you can add env variables to the docker run like -e ARGS="controller"

Or build your own Docker image from Dokerfile