Skip to content

SwarmMarkets/chain-wiki-subgraph

Repository files navigation

trade-subgraph

This repo was forked from balancer (here)[https://github.com/balancer-labs/balancer-subgraph] where you can find further information.

Getting started

  1. Install dependencies:
$ yarn install
  1. Create an .env file in the root of the project and add the following:
NETWORK=mainnet
  1. Generate the subgraph declaration:
$ yarn _:generate:config
  1. Start your local subgraph node (required installing Docker on your machine):
$ yarn dev

This assumes you have a local RPC node running on port 8545. If you want to use a different port, you can set it in the docker-compose.yml file via the ethereum parameter following the <NETWORK_NAME>:<ETHEREUM_RPC_URL> schema.

  1. Create your local subgraph:
$ yarn create-local
  1. Deploy your local subgraph:
$ yarn deploy-local

Deployments

We deploy the subgraph to the following networks:

On top of them, each deployment has a unique beta subgraph than can be used to test features before deploying them to the previously listed stable subgraphs:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors