Everstrat.xyz | Docs
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 build

Both 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:

  1. Update frontend-app/web3-app/subgraph/config/deployments/sepolia.json with the new addresses and startBlock.
  2. Run npm run config:sync (or any of codegen/build which invoke it) to regenerate src/config.ts.
  3. Update frontend-app/web3-app/src/config/index.ts CONFIG.CONTRACTS to match — the two files are expected to agree exactly.

Last updated on

On this page