Skip to content

bleu/subgraph

 
 

Repository files navigation

CoW-subgraph

Implements a subgraph for the CoW Protocol

This is a work in progress

For more information about:

The Cow Protocol: https://docs.cow.fi/

The Graph: https://thegraph.com/docs/en/

There is also a GP v1 subgraph here: https://github.com/gnosis/dex-subgraph

Model

Further information about the model here

Setup of your own test subgraph

Requisites: You must have access to a console and have yarn installed. More info about yarn

  1. Install the dependencies by executing:
yarn
  1. Go to The Graph Studio and log in using your github credentials.

  2. In your browser, create a new subgraph in the dashboard by clicking "Add Subgraph" button. Complete the form.

  3. Create your own environment and edit so it points to your testing subgraph:

cp .env.example .env
  1. Deploy:
yarn deploy

If everything went well you'll have a copy of this subgraph running on your hosted service account indexing your desired network.

Please notice a subgraph can only index a single network, if you want to index another network you should create a new subgraph and do same steps starting from step 3.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.7%
  • Mustache 5.1%
  • JavaScript 4.2%