Knowledge Base updated: 2026-11-22
IBC Knowledge Base
Orientation
This repository implements IBC CLI, an operational relayer for connecting IBC-enabled networks, alongside protocol specifications, protobuf contracts, and end-to-end validation infrastructure.
The main implementation is the IBC CLI runtime and its chain connectivity, relay, attestation, transaction submission, persistence, and telemetry subsystems. Normative protocol material lives under spec/; public and internal service contracts are defined under proto/.
Critical operational state is held in configured chain and relayer settings, packet-clearing and persistence stores, and the deployed test-chain environments used by the end-to-end harness.
flowchart TD
CLI[IBC CLI command] --> Runtime[Runtime and services]
Runtime --> Config[Chain and network configuration]
Runtime --> Relay[Relay execution pipeline]
Runtime --> Attest[Attestation and transaction submission]
Runtime --> Store[Deployment and persistence]
Runtime --> Telemetry[Operational telemetry]
Config --> Chains[EVM and IBC chains]
Relay --> Chains
Attest --> Chains
Store --> Relay
Telemetry --> Runtime
Proto[Protobuf and v2 API contracts] --> Runtime
Specs[IBC protocol specifications] --> Relay
E2E[End-to-end validation] --> Runtime
E2E --> Harness[E2E harness and matrix]
E2E --> Scenarios[Relayer scenarios and load tests]
Glossary
- IBC CLI: The repository's relayer service and command-line operational interface.
- Packet clearing: Stateful relay work that tracks and processes pending IBC packet delivery.
- Attestor: The component and contract interface used to produce or submit EVM-facing attestations.
- E2E matrix: Configuration and orchestration for provisioning combinations of test-chain environments.
- Catalyst: Test infrastructure used by load scenarios to await traffic completion.
Invariants
- Protobuf service contracts and generated bindings must remain aligned; proto/…/*.proto is the source contract for generated API use.
- Relay execution depends on configured, reachable chain clients; changes under
internal/chain/**andinternal/relay/**must preserve that boundary. - Packet-clearing state must be persisted consistently across relayer lifecycle operations; see
internal/store/**and relay packet-clearing packages. - End-to-end scenarios provision their environments through the shared harness rather than embedding incompatible setup flows; see
e2e/internal/harness/**. - E2E load scenarios must retain bounded completion and timeout behavior; see e2e/…/catalyst_await.go.
Routing table
cmd/ibc/**,internal/bootstrap/**,internal/server/**,internal/service/**-> docs/link-runtime-and-services.mdinternal/chain/**,internal/network/**,config/**-> docs/link-chain-connectivity.mdinternal/relay/**,internal/watcher/**,internal/prover/**,internal/pipeline/**-> docs/link-relay-execution.mdinternal/attestor/**,internal/txsubmitter/**-> docs/link-attestation-and-transactions.mdinternal/deploy/**,internal/store/**-> docs/link-deployment-and-persistence.mdinternal/telemetry/**, docker-compose*.yml,otel/**-> docs/link-operational-observability.mdinternal/**,cmd/**-> docs/link-relayer-system.mdspec/core/**-> docs/ibc-core-protocol-semantics.mdspec/app/**-> docs/ibc-application-standards.mdspec/clients/**,spec/relayer/**-> docs/ibc-client-and-relayer-standards.mdspec/ibc-v2/**-> docs/ibc-v2-specifications.mdspec/**-> docs/ibc-protocol-specifications.md- e2e/…/*.go, e2e/README.md, e2e/test-matrix.md -> docs/end-to-end-validation.md
e2e/cmd/e2e-matrix/**,e2e/internal/harness/**, e2e/test-matrix.md -> docs/e2e-harness-and-matrix.md- e2e/*_test.go,
e2e/internal/e2etest/**-> docs/e2e-relayer-scenarios.md e2e/internal/loadtest/**, e2e/load_*_test.go -> docs/e2e-load-testing.md- proto/…/*.proto, proto/…/*.pb.go -> docs/link-api-and-protocol-contracts.md