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/mainnet.json.
Deploy workflow
goldsky login
goldsky subgraph deploy everything-strategy-mainnet/v0.X.Y --path .The live prod tag serves the current endpoint; see
Subgraph deployments for the current public endpoint URL.
Change rule
When redeploying contracts:
- Update
frontend-app/web3-app/subgraph/config/deployments/mainnet.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