Operations
Subgraph deployment
Build and deploy workflow for the bundled GoldSky/The Graph workspace.
Build workflow
cd frontend-app/web3-app/subgraph
npm install
npm run codegen
npm run buildBoth codegen and build run npm run config:sync first, which regenerates src/config.ts from
config/deployments/sepolia.json.
Deploy workflow
goldsky login
goldsky subgraph deploy everything-strategy-sepolia/v0.1.0 --path .Change rule
When redeploying contracts:
- Update
frontend-app/web3-app/subgraph/config/deployments/sepolia.jsonwith the new addresses andstartBlock. - Run
npm run config:sync(or any ofcodegen/buildwhich invoke it) to regeneratesrc/config.ts. - Update
frontend-app/web3-app/src/config/index.tsCONFIG.CONTRACTSto match — the two files are expected to agree exactly.
Last updated on