A subgraph that indexes block data for EVM networks.
yarn installyarn generate <network>Supported networks:
mainnetarbitrum-oneoptimismpolygonbase- etc.
yarn buildyarn deploy --studio <subgraph-name> # or yarn deploy --product hosted-service <github-user>/<subgraph-name>yarn generate arbitrum-one yarn build yarn deploy --studio arbitrum-one-blockssubgraph.template.yaml- Template with{{network}}placeholderscripts/generate-subgraph.ts- Generatessubgraph.yamlfor a specific networksrc/mappings/blocks.ts- Block handler that indexes all block data
The ConverterRegistryContract in ABIs and subgraph.yaml is a dummy contract used to pass formatting checks. Each block is handled automatically via the blockHandlers configuration.