hip-0418

HIP-418: Indexer CRD. Status Active. Hanzo's own standard — read this before implementing against it.

HIP-0418: Indexer CRD

Abstract

The Indexer CRD is a Service facade for luxfi/indexer, the chain-data indexer that builds queryable SQL tables from raw EVM blocks. Used in combination with Explorer (HIP-419) to power block-explorer UIs.

Specification

Group + version

hanzo.ai/v1, plural indexers, shortname idx.

Spec fields

Same shape as Service (HIP-400). Conventionally:

Example CR

apiVersion: hanzo.ai/v1
kind: Indexer
metadata:
  name: hanzo-indexer
  namespace: hanzo
spec:
  image:
    repository: ghcr.io/luxfi/indexer
    tag: v1.2.2
  replicas: 1
  env:
    - name: RPC_URL
      value: https://api.lux.network/mainnet/ext/bc/hanzo/rpc
    - name: DATABASE_URL
      valueFrom:
        secretKeyRef: { name: indexer-db, key: url }
    - name: CHAIN_ID
      value: "36963"

Generated K8s resources

Deployment, Service. Long-running indexer pod processes new blocks into SQL.

Operator reconciler

~/work/hanzo/operator/src/controllers/service.rs (via Indexer facade).

Related services

Status

Implemented in hanzoai/operator v0.3.0+. Primarily deployed on lux-k8s.