This repo was forked from balancer (here)[https://github.com/balancer-labs/balancer-subgraph] where you can find further information.
- Install dependencies:
$ yarn install- Create an
.envfile in the root of the project and add the following:
NETWORK=mainnet
- Generate the subgraph declaration:
$ yarn _:generate:config- Start your local subgraph node (required installing Docker on your machine):
$ yarn devThis 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.ymlfile via theethereumparameter following the<NETWORK_NAME>:<ETHEREUM_RPC_URL>schema.
- Create your local subgraph:
$ yarn create-local- Deploy your local subgraph:
$ yarn deploy-localWe deploy the subgraph to the following networks:
- Ethereum mainnet: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-mainnet
- Polygon mainnet: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-polygon
- Goerli testnet: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-goerli
- Mumbai testnet: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-mumbai
- Rinkeby testnet
Deprecated:https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-rinkeby
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:
- Ethereum mainnet beta: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-mainnet-beta
- Polygon mainnet beta: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-polygon-beta
- Goerli testnet beta: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-goerli-beta
- Mumbai testnet beta: https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-mumbai-beta
- Rinkeby testnet beta
Deprecated:https://thegraph.com/hosted-service/subgraph/swarmmarkets/trade-rinkeby-beta