Envio HyperIndex migration seed for the Graph Network Arbitrum subgraph. The source subgraph is graphprotocol/graph-network-subgraph, rendered for Arbitrum One from the upstream subgraph.template.yaml.
upstream/subgraph.yamlis the rendered Graph manifest for Arbitrum One.config.yamlfollows the Envio V3 migration guide and current configuration docs: Graph data sources become Envio contracts/chains, with Arbitrum One chain ID42161, start block42440000, and the upstream contract addresses.- Graph data sources that share one proxy address are collapsed into one Envio contract with a merged ABI, because Envio does not allow the same address to be configured as multiple contracts.
schema.graphqlis the active Envio schema migrated from the upstream Graph schema. It removes Graph-only directives such as@entity/full-text search, normalizes Envio relationship requirements, and adds generated event tables.upstream/schema.graphqlis the original Graph schema retained as a source reference.src/handlers/GraphNetwork.tsregisters every upstream event withindexer.onEvent(...)and writes each event to its generated event-specific entity table. Overloaded upstream events use explicit Envio event names such asSubgraphPublished_1andSubgraphPublished_2.
This repo is ready to use as a HyperIndex deployment target. The generated event-table handlers provide queryable coverage for all upstream events. The full semantic port of the upstream AssemblyScript business logic can be done incrementally on top of this by replacing generated event-table writes with updates to the migrated upstream entities.
pnpm install
pnpm codegen
pnpm typecheckFor local indexing, provide the runtime data-source credentials expected by your deployment environment, then run:
pnpm devPoint an EnvioIndexer at this repo and set secrets for the data sources enabled in the operator CR. A minimal source reference looks like:
spec:
source:
git:
url: https://github.com/nodeify-eth/envio-test.git
revision: mainThe operator owns Postgres/CNPG and data-source token injection. This repo only contains the HyperIndex project code.