yarn
- Sign in to https://thegraph.com/hosted-service with your GitHub account
- Go to My Dashboard, select DHEDGE V2 Polygon Dev (if dev) or dHEDGE V2 Polygon (if prod) subgraph
- In the top right corner, copy your
ACCESS TOKEN
- Run
yarn graph auth --product hosted-service https://api.thegraph.com/deploy/ <your_access_token>
- After making necessary code changes, run
yarn codegen
- Run
yarn build-dev
oryarn build-prod
to check there are no compilation errors - Finally, run
yarn deploy-dev
oryarn deploy-prod
to start deploying latest changes