Subgraph for Joe-v2 (Liquidity Book) on AVAX C-chain.
# prepare constants and subgraph.yaml
$ yarn prepare:{network}
# generate Assembly Script typings
$ yarn codegen:{network}
# compile and build files
$ yarn build:{network}
# authenticate api key
$ graph auth
# deploy subgraph
$ yarn deploy:{network}
- Install docker on local machine https://docs.docker.com/get-docker/)
- Run
yarn start:node
- Build subgraph:
yarn codegen && yarn build
- Create local subgraph:
yarn create-local
- Deploy to local node:
yarn deploy-local
- Subgraph endpoint available at http://localhost:8000/subgraphs/name/traderjoe-xyz/joe-v2-fuji
- To open indexer logs:
docker logs joe_indexer -f 2>&1 | grep --line-buffered -i -E --color "WORD_TO_FILTER"
- To stop the running containers:
docker rm -f postgres ipfs joe_indexer