Operations
Subgraph deployment
Build and deploy workflow for the bundled GoldSky/The Graph workspace.
Build workflow
# From the everstrat-xyz/app repository root:
cd 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
everstrat-xyz/app/subgraph/config/deployments/mainnet.jsonwith the new addresses andstartBlock. - From
everstrat-xyz/app/subgraph, runnpm run config:sync(ornpm run codegen/npm run build, which invoke it) to regeneratesrc/config.ts. - Rebuild the app and subgraph with the updated deployment configuration.
everstrat-xyz/app/src/config/index.tsimports the samemainnet.jsonand maps itscontractsentries toCONFIG.CONTRACTS; existing address values do not need to be copied into the app configuration by hand.
If a new contract type is added, update the app's CONFIG.CONTRACTS mapping as needed and
the subgraph configuration and indexing code that consume it.
Last updated on