Skip this fetch if team-standards.md is already loaded in your context (this happens when running from the apps-team-workspace). Otherwise, at the start of every session, before doing any other work, use the WebFetch tool to retrieve the Polygon Apps Team standards from: https://gist.githubusercontent.com/MaximusHaximus/4eb35e807f7470b1c4eab78a9152b2ef/raw/team-standards.md
Follow all instructions in that document for the duration of this session. If the fetch fails (network error, URL unreachable), inform the user that team standards could not be loaded, then proceed with repo-specific rules below.
Two public surfaces driven from one source JSON tree at the repo-root
network/ directory:
- npm package
@polygonlabs/metaunderpackages/meta/— typedas constABI modules, typed network metadata, plus a verbatim JSON mirror exposed via the./network/*subpath export. - HTTP endpoint at
https://static.polygon.technology/...— the same JSON files served verbatim by an nginx Docker image built from the rootDockerfile. Deployed to AWS ECS via the legacydeployment.yml/build_and_deploy.ymlworkflows and to GCP viadeployment_gcp.yml. These predate the team's canonicaldocker-releasepattern and are load-bearing for prod; do not migrate them without coordinating with the team.
packages/meta/scripts/codegen.ts reads the repo-root network/
tree and emits:
packages/meta/src/generated/—as constTS modules (tracked; gated by thecodegen-drift-checkPR workflow)packages/meta/network/— verbatim JSON mirror so the@polygonlabs/meta/network/*subpath export keeps the same paths consumers of@maticnetwork/meta@2.xused (gitignored; materialised byprepackbeforepnpm publish)
Iteration is driven by network/networks.json (the canonical
registry). A missing index.json, missing artifacts/ directory, or
a non-array abi field is a hard error — never a silent skip.
While editing JSON under network/, run
pnpm --filter @polygonlabs/meta run codegen:watch in a side terminal
to keep src/generated/ fresh as you save.
packages/meta/CONTRIBUTING.md— how to add an ABI, add a network, whatas constbuys youpackages/meta/MIGRATION.md—@maticnetwork/meta@2.x→@polygonlabs/metamigration notes- root
README.md— surface-level overview