This repo contains the indexer code for Mangrove, MangroveOrder and Kandel. It is written using the graph.
The contracts that is being indexed can be found in these 2 repos. mangrove-core and mangrove-strats
If you are looking for the Mangrove developer documentation, the main site to go to is docs.mangrove.exchange.
The following sections describe the most common use cases in this repo.
After first cloning the repo, you should run yarn install
in the root folder.
$ yarn install
The codegen script will generate the event types and the entities from the schema.graphql file.
$ yarn codegen
The build script will compile the subgraph to the build folder.
$ yarn build
In order to deploy the subgraph, you need a The graph node provider, like chainstack, satsuma, etc. You can find how to deploy at your the graph node provider.
The test script will run the tests in the test folder. We use the framework matchstick to run our tests.
$ yarn test