Skip to content

mangrovedao/subgraph

Repository files navigation

Mangrove Indexer

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

Documentation

If you are looking for the Mangrove developer documentation, the main site to go to is docs.mangrove.exchange.

Usage

The following sections describe the most common use cases in this repo.

Initial setup

After first cloning the repo, you should run yarn install in the root folder.

$ yarn install

Codegen

The codegen script will generate the event types and the entities from the schema.graphql file.

$ yarn codegen

Build

The build script will compile the subgraph to the build folder.

$ yarn build

Deploy

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.

Test

The test script will run the tests in the test folder. We use the framework matchstick to run our tests.

$ yarn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published