Skip to content

nodeify-eth/envio-test

Repository files navigation

Graph Network Arbitrum HyperIndex

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.

What is migrated

  • upstream/subgraph.yaml is the rendered Graph manifest for Arbitrum One.
  • config.yaml follows the Envio V3 migration guide and current configuration docs: Graph data sources become Envio contracts/chains, with Arbitrum One chain ID 42161, start block 42440000, 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.graphql is 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.graphql is the original Graph schema retained as a source reference.
  • src/handlers/GraphNetwork.ts registers every upstream event with indexer.onEvent(...) and writes each event to its generated event-specific entity table. Overloaded upstream events use explicit Envio event names such as SubgraphPublished_1 and SubgraphPublished_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.

Run locally

pnpm install
pnpm codegen
pnpm typecheck

For local indexing, provide the runtime data-source credentials expected by your deployment environment, then run:

pnpm dev

Operator deployment

Point 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: main

The operator owns Postgres/CNPG and data-source token injection. This repo only contains the HyperIndex project code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors