This repository contains multiple subgraphs:
- auction-maker
- bentobox
- blocks
- candles
- furo-stream
- furo-vesting
- legacy-exchange
- minichef
- miso
- staking
- sushi
- trident
- xsushi
NETWORK=polygon pnpm exec turbo run build --scope=<subgraph> --force
# Run all tests
pnpm exec turbo run test --scope=<SUBGRAPH_NAME>
# Run single test
pnpm exec turbo run test -- <TEST> --scope=<SUBGRAPH_NAME>
Deploy a subgraph by running the command below and replacing <APP_NAME>
and <NETWORK_TYPE>
, e.g. miso
and kovan
APP=<APP_NAME> && NETWORK=<NETWORK_TYPE> && \
node . prepare $APP $NETWORK && \
pnpm exec turbo run codegen --scope=$APP && \
pnpm exec turbo run build --scope=$APP
pnpm exec turbo run deploy:$NETWORK --scope=$APP
Example:
node . prepare miso kovan && pnpm exec turbo run codegen --scope=miso && pnpm exec turbo run build --scope=miso && pnpm exec turbo run deploy:kovan --scope=miso
curl -X POST -d '{ "query": "{indexingStatusForCurrentVersion(subgraphName: \"sushiswap/bentobox-polygon\") { chains { latestBlock { hash number }}}}"}' https://api.thegraph.com/index-node/graphql
node . log sushiswap/<subgraph>