E2E harness and test matrix
The E2E harness provisions short-lived EVM and IBC environments so acceptance tests can drive the IBC CLI through real chain state and public process interfaces. It turns each test's capability needs into a concrete topology, coordinates protocol and application setup, and records the result in a provider and topology matrix. See end-to-end validation for the wider validation flow, relayer scenarios for packet and relayer behavior, and load testing for high-volume runs.
System boundary
Harness purpose
The harness is a black-box test boundary around the IBC CLI. It uses the public CLI, config, JSON output, and status surface to start deployment and relayer processes. It reads chain state with its own EVM clients to confirm that reported results match on-chain effects.
This boundary keeps process behavior visible to the tests. The harness does not call the CLI's private code in process, so a passing test covers the same external contracts used by a real deployment.
References: e2e/…/runner.go• L1-59 e2e/…/AGENTS.md• L5-13
Process bindings
The IBC CLI driver connects a realized test environment to child processes without putting live chain endpoints in the generated config. Config values refer to per-chain process variables. The driver resolves those values only when it starts a process and holds a lease for the process lifetime, so an environment cannot close while the process still uses its endpoints.
The binding covers RPC and optional websocket endpoints. The relayer also receives a mapping from harness chain names to its configured chain IDs. This keeps test names stable while the child process uses the wire identifiers required by its public status and relay interfaces.
References: e2e/…/bindings.go• L19-67 e2e/…/bindings.go• L70-145 e2e/…/daemon.go• L46-68
Process observability
Observability is a test-scoped option that follows the environment into the IBC CLI processes it starts. When enabled, the harness adds the shared OpenTelemetry file settings to generated process configs and labels the relayer and each attestor with its service role. This gives load and diagnostic runs one consistent view without changing the normal process contract.
References: e2e/…/observability.go• L17-51 e2e/…/daemon.go• L85-91 e2e/…/attestor.go• L124-134 e2e/…/start.go• L105-114
WebSocket fault boundary
The WebSocket proxy gives a test a local ws:// endpoint in front of a chain's WebSocket service. It forwards traffic while active, closes current connections when killed, rejects new connections while blocked, and restores forwarding when revived. This lets fault scenarios change endpoint availability without changing the chain process.
References: e2e/…/wsproxy.go• L15-65 e2e/…/wsproxy.go• L67-149 e2e/…/wsproxy_test.go• L18-155
Prover service
The harness can start the test prover as a separate process when deployment needs proof support. The service receives the temporary config and binds to an available loopback address. The harness waits for the service to announce that address before it gives the endpoint to the rest of the setup, then stops the process with the other managed services.
References: e2e/…/prover.go• L23-65 e2e/…/prover.go• L68-129
Environment graph
Resource declarations
An environment is a resource graph that describes chains, IBC instances, and connections between IBC clients. A separate runtime supplies values that should not live in the graph, such as RPC endpoints and signing authorities.
The graph supports two ownership models:
- Managed chains and newly deployed protocol resources belong to the test environment.
- Attached chains and existing protocol resources are borrowed from the caller.
Connections join two distinct IBC instances. Each end can create a client or attach to an existing client. Attestor declarations provide the signers that the client needs to verify updates.
Client declarations select either attestation or Besu QBFT verification when a new client is needed. They can also name an existing client on an attached protocol instance. This lets one graph describe both fresh protocol state and state that the test must inspect without taking ownership of it. Attached chains also declare their timing, because the harness cannot infer safe wait limits from a launcher that it does not own.
References: e2e/…/spec.go• L31-37 e2e/…/spec.go• L103-116 e2e/…/spec.go• L165-217 e2e/…/spec.go• L220-281
Provider capabilities
Tests declare what they need instead of naming a chain provider. Portable EVM tests accept either provider. Tests that need controlled mining or node stop and start select Anvil because those controls are not available on Besu.
The resolved chain exposes only the capabilities that its ownership model can guarantee. Managed chains can provide funding and, when supported, mining or node controls. Managed Besu can also expose validator-set controls for validator turnover scenarios. An attached chain provides EVM access but remains caller-owned and does not inherit those controls.
References: e2e/…/start.go• L37-56 e2e/…/capabilities.go• L14-40 e2e/…/chain.go• L79-92 e2e/…/chain.go• L220-263
Provisioning lifecycle
Environment realization
Environment is the single handle for a realized test graph. It validates the graph and runtime first. It then brings up chains, installs or attaches IBC instances, resolves reciprocal connections, and starts the attestors that observe counterparty chains.
The lifecycle follows the dependency order below. Chains can start together, while later resources depend on the earlier resources being ready.
Solidity IBC setup verifies each attached router and client before the environment exposes it. New protocol state is deployed in dependency order. New clients are prepared and checked before deployment so registration or authority errors do not leave an unclear graph. Attestor signer use is checked across the resolved clients so one authority cannot be reused in separate client contexts.
This diagram shows how a test declaration becomes a usable integration environment.
flowchart TD
A[Test requirements and topology] --> B[Resolve provider and chain declarations]
B --> C[Start or attach chains]
C --> D[Deploy or attach IBC instances]
D --> E[Create or resolve reciprocal clients]
E --> F[Start attestors]
F --> G[Return Environment]
G --> H[Deploy test applications and configure Link]
H --> I[Start relayer and run assertions]
I --> J[Close environment and release managed resources]
Startup failure stops the realization and attempts cleanup. Closing the environment waits for active operations, releases acquired resources in reverse order, and removes its private workspace. On-chain changes already made before a later failure remain on the host chain.
References: e2e/…/start.go• L26-36 e2e/…/start.go• L60-114 e2e/…/environment.go• L13-28 e2e/…/environment.go• L114-135 e2e/…/realize_protocol.go• L36-142 e2e/…/realize_protocol.go• L225-395 e2e/…/setup.go• L459-617
Application deployment
After protocol realization, the shared traffic setup adds the contracts that make application tests repeatable. It deploys a test ERC20, a counter target, and IFT assets on each chain. It also provides a batch shim for grouped IFT transfers and local ERC20 distribution. The deployment view includes the IBC multicall contract used by the relayer for grouped packet submission. The resulting view gives each route the protocol app addresses and the client identities needed by ICS20, ICS27 GMP, and IFT traffic.
The setup then registers route-specific IFT bridges and maps each route to its two protocol client IDs. It writes a temporary Link configuration with chain RPCs, router and multicall addresses, attestor endpoints, route wait policies, and the relayer database. It runs the database migration but leaves relayer startup to the test so that startup, restart, manual relay, and fault behavior stay explicit.
References: e2e/…/traffic_setup.go• L89-130 e2e/…/traffic_setup.go• L231-319 e2e/…/traffic_setup.go• L381-471 e2e/…/traffic_ift.go• L115-231 e2e/…/IFTBatchTransferShim.sol• L9-35 e2e/…/runner.go• L31-74
Transfer verification
The shared ICS20 transfer fixture turns one directed route into a test action with observable before-and-after state. It prepares a positive token amount, a receiver, destination-relative timeout, and source and destination balance baselines before it submits approval and transfer transactions.
Every send records the source chain, source client, source transaction, packet sequence, and packet event. The shared event reader filters by router and source client, so packet sequences are not treated as globally unique. The resulting handle lets tests verify source commitments, destination receipts, acknowledgement or timeout events, escrow, voucher minting, delivery, and refund. A prepared transfer cannot be submitted twice.
This diagram shows the transfer contract between application setup, packet relay, and chain-state checks.
sequenceDiagram
participant T as Test
participant S as Source chain
participant R as Relayer
participant D as Destination chain
T->>S: Approve and send ICS20 packet
S-->>T: Packet locator and balance baseline
T->>R: Observe or request packet relay
R->>D: Submit receive or timeout
D-->>R: Receipt or acknowledgement event
R->>S: Submit acknowledgement or timeout
T->>S: Check commitments and source balance
T->>D: Check receipt and voucher balance
References: e2e/…/traffic.go• L16-83 e2e/…/traffic_evm.go• L75-120 e2e/…/traffic_transfer.go• L36-174 e2e/…/traffic_transfer.go• L179-373 e2e/…/traffic_evm_test.go• L54-99
IFT traffic fixtures
The IFT fixture turns a directed route into either one transfer or one source transaction that emits many transfers. It captures balance, supply, and pending-transfer baselines before sending, then checks burns, destination mints, refunds, and pending records after relay or timeout. Batch requests require distinct receivers so each packet can be checked on its own.
All IFT sends use the shared route send path. That path requires the expected packet count and keeps each packet's source-client-and-sequence identity with its application result. The same fixture also groups same-chain ERC20 payments through the batch shim. This separates local funding work from cross-chain packet work while keeping both paths in the shared route setup.
References: e2e/…/traffic_ift.go• L29-193 e2e/…/traffic_ift.go• L241-380 e2e/…/traffic_ift.go• L402-577 e2e/…/traffic.go• L60-83 e2e/…/traffic_evm.go• L229-264
GMP traffic fixtures
The GMP fixture turns a directed route into a call to the destination Counter or to a destination ERC20 account. It records the Counter state before the call and verifies one execution or no execution after relay. It also derives the ICS27 account identity and can fund or check the destination token used by a call payload.
GMP requests use destination-relative timeouts and can replace the default Counter call, receiver, or salt. This gives tests one route-bound action for successful calls, error acknowledgements, and timeouts without exposing the wider deployment graph.
References: e2e/…/traffic_gmp.go• L21-97 e2e/…/traffic_gmp.go• L100-171 e2e/…/traffic_gmp.go• L197-261 e2e/…/traffic_apps.go• L104-127
Solidity IBC setup
The Solidity IBC setup turns an EVM client into a usable protocol endpoint for the test graph. It creates or attaches the ICS26 router and its access manager, adds the ICS20 and ICS27 application layer, and registers light clients with reciprocal counterparty identities.
Every transaction is observed until it succeeds. The setup also checks deployed code, router registration, access rights, client kind, counterparty ID, and the EVM Merkle prefix. New client configuration is validated before any deployment transaction, and attached clients are checked against the declared kind and counterparty. Focused setup tests also protect the package pin contract, attachment behavior, preflight validation, transaction error reporting, and mining timeouts. These checks make a partially deployed or incompatible endpoint fail during provisioning rather than during packet traffic.
References: e2e/…/setup.go• L39-70 e2e/…/setup.go• L73-176 e2e/…/setup.go• L183-456 e2e/…/setup.go• L459-617 e2e/…/setup.go• L636-701 e2e/…/types.go• L17-78 e2e/…/types.go• L85-158 e2e/…/setup_test.go• L49-255
Solidity contract artifacts
The Solidity deployment setup uses the Solidity IBC package pinned to commit 35388c8547b39d452bcd0a8d0f482daeed22656d and pinned OpenZeppelin 5.7.0 dependencies to produce the contract artifacts used by the E2E environment. The Bun lock file records the exact upstream revision and dependency checksums, so Go bindings and deployed contracts describe the same protocol surface across runs. A setup test checks that the Bun package pin matches the Go binding pins used by E2E and the CLI.
References: e2e/…/package.json• L1-9 e2e/…/bun.lock• L1-21 e2e/…/foundry.toml• L3-19 e2e/…/setup_test.go• L49-96
Relayer coordination
The test starts the relayer only after deployment and configuration are complete. The child process announces a ready status endpoint, and the harness checks the packet status service before it returns a usable relayer handle. The relayer then exposes packet relay and status operations through its public API.
The startup check accepts a valid readiness event only when it includes an HTTP endpoint. It also probes packet status with an unknown transaction, so a process that announces readiness without the required packet API fails before tests use it. Packet status reads follow every response page before they return, which prevents a large transaction from appearing to have missing packets.
Each route receives a wait policy derived from the source and destination chain timing, so polling and stability checks work for both fast local chains and slower production-like chains. Manual routes stay idle until an explicit relay request, while automatic routes can progress through the running relayer.
Application sends return a route, source transaction, source client, packet sequence, and packet event. The harness uses the client-and-sequence locator to select the exact packet from relayer status. It can then wait for a pending, succeeded, rejected, or timed-out state and verify the related source, receive, acknowledgement, or timeout transactions.
References: e2e/…/traffic_setup.go• L186-228 e2e/…/traffic_setup.go• L381-506 e2e/…/traffic_relayer.go• L15-93 e2e/…/traffic_relayer.go• L187-318 e2e/…/daemon.go• L67-151 e2e/…/daemon.go• L227-341
Relayer configuration
The generated relayer configuration is the handoff from the realized environment to the external relayer process. It maps each EVM chain to its wire chain ID, RPC endpoint, optional WebSocket endpoint, router, and IBC multicall address. It also maps each reciprocal client pair to its chain ends, signer, client type, and auto-relay choices.
The configuration can use attestation clients or a shared prover service. It uses a local transaction signer by default and supports a remote signer when the test supplies a KMS endpoint and key ID. The harness creates one local attestor per chain when no explicit attestor list is supplied. An explicit list replaces those defaults. Local attestors use their own key files, while remote attestors use gRPC endpoints.
The harness sets short dispatch and transaction pacing values for local test traffic. It carries finality offsets, clearing behavior, packet batch size, and batch timeout into the process configuration so route timing and packet submission remain predictable. When enabled, the same configuration carries the shared observability settings used by the relayer process.
References: e2e/…/traffic_setup.go• L381-493 e2e/…/relayer_config.go• L17-45 e2e/…/relayer_config.go• L88-186 e2e/…/relayer_config.go• L204-231 e2e/…/observability.go• L30-48
Attestor process
Each attestor runs as an external IBC CLI process that observes one counterparty chain and serves its latest attestable height. The harness writes a private config, supports either a local key or a remote signer, waits for a loopback readiness address, and probes the public height API before the environment accepts it.
The process owns its subprocess group and log tail. Environment cleanup stops that group after active leases close, so a failed or restarted attestor does not keep using a released chain endpoint.
References: e2e/…/attestor.go• L50-94 e2e/…/attestor.go• L164-237 e2e/…/attestor.go• L305-346 e2e/…/realize_protocol.go• L528-586
CLI deployment path
The deployment acceptance tests use the same managed environment but exercise ibc deploy as an external command. They create a temporary home, import funded deployer, relayer, and attestor keys as needed, and give the command the chain RPC and WebSocket endpoints. The checks cover core and client setup, application setup, route bridge registration, written manifests, rendered relayer configuration, repeat execution, and real IFT relay for Besu and mixed client shapes.
The deployment driver supplies a minimal config with one deployer signer for all target chains. Core deployment writes the routers that later client commands use, while later commands read the router from the chain manifest or from the rendered config as required. Packet checks identify the sent packet by both its client ID and sequence.
This path complements the shared traffic setup. The traffic setup prepares tests for packet flows, while the CLI deployment path checks that a user-facing deployment can create and then recognize the same resources without repeating work.
References: e2e/deploy_test.go• L88-197 e2e/deploy_test.go• L234-356 e2e/deploy_test.go• L420-559 e2e/…/deploy.go• L18-91 e2e/…/deploy.go• L26-83
Test fixtures
Attested mesh
The shared attestedMesh fixture builds a fully connected graph for a supplied set of chains. It creates one new IBC instance per chain and one connection for each unordered chain pair. Each connection has one client-side attestor at each end, with distinct runtime authorities.
The fixture sorts chain identities before it creates connection and attestor names. This makes the graph stable even when a test supplies chains in a different order. A two-chain mesh therefore has one connection, while a three-chain mesh has one connection for each of the three pairs.
References: e2e/fixtures_test.go• L16-55 e2e/fixtures_test.go• L57-105 e2e/fixtures_test.go• L108-175
Route bindings
Route bindings give application tests a small view of the larger environment. A route names a source and destination chain and can request manual relay or an intentionally missing destination IFT bridge. Transfer, GMP, and IFT helpers use the route to find the correct contracts and client pair.
The deployment layer validates route IDs, distinct endpoints, and route client pairs once. Application constructors then resolve one route view that carries the source router and source client, destination endpoint, application contracts, and destination client. This keeps test intent at the application level. Tests state which route and actor they use, while the fixture resolves chain endpoints, protocol addresses, bridge registration, and packet identity.
References: e2e/…/traffic_setup.go• L63-130 e2e/…/traffic_setup.go• L231-359 e2e/…/traffic_apps.go• L16-181 e2e/…/traffic.go• L68-90
Test identities and funding
The harness creates separate identities for application deployment and relaying. Managed Anvil gives those identities the required balance through its development RPC, while managed Besu transfers only each shortfall from a private treasury. Attached chains cannot fund accounts, so the caller must provide enough native balance before deployment and relay begin.
Protocol setup uses a dedicated protocol authority. Attestor authorities remain isolated across clients because a signer reused in another client context could make signed data replayable across those contexts.
References: e2e/…/traffic_signers.go• L21-50 e2e/…/traffic_setup.go• L41-61 e2e/…/traffic_setup.go• L631-673 e2e/…/start.go• L158-261 e2e/…/anvil.go• L220-258 e2e/…/besu.go• L270-309
Matrix command
Matrix discovery
The e2e-matrix command discovers the matrix from the tests instead of maintaining a second hand-written list of requirements. It first enumerates top-level Go tests with go test -list ^Test .. It then runs the test package once for each of fast, complete, and production with JSON test events, one test run, and the -e2e.matrix flag.
Each discovery run sets E2E_MODE for the selected mode. Provider selection records each test's requirements and selected provider. Environment startup records the resolved chain types and resource counts. Tests that need no environment pass normally, while tests that produce a matrix record stop after recording their selection or resolved graph.
References: e2e/…/main.go• L58-89 e2e/…/main.go• L108-151 e2e/…/main.go• L153-188 e2e/…/start.go• L75-95 e2e/…/start.go• L208-229 e2e/…/matrix.go• L19-27
Matrix records
Matrix records are line-delimited JSON messages written into the test output with the E2E_MATRIX_RECORD= prefix. A record identifies its mode and test. It carries provider selections and either an environment summary or a terminal outcome with a reason.
The collector combines selections and the resolved specification for one test and mode before emitting records. The summary groups chains by type and counts IBC instances, connections, attestors, and Besu QBFT clients. This gives the command a compact view of both provider choice and realized topology without copying the full environment graph into the generated document.
References: e2e/…/matrix.go• L29-66 e2e/…/matrix.go• L68-157 e2e/…/matrix.go• L160-208
Matrix rendering
The command joins records by mode and test, groups subtests under their top-level test, and renders the result as e2e/test-matrix.md. Each row shows the test requirements and the environment selected in fast, complete, and production modes.
The generated table reports chain provider counts, IBC instance counts, connection counts, attestor counts, and Besu client counts when present. A terminal outcome includes its reason. A test with no environment is shown as No environment. The command rejects malformed or duplicate records, records from the wrong mode, records for unlisted tests, and top-level tests that produce neither a matrix record nor a passing test event.
The command has two mutually exclusive operations. -write <path> writes the generated table. -check <path> compares the existing file byte-for-byte with fresh output and fails when the file is out of date.
The command tests these contracts without starting a full matrix run. Its focused tests cover exclusive action flags, duplicate-record rejection, stable test ordering, subtest grouping, no-environment rows, terminal outcomes, and discovery errors that retain useful diagnostics.
References: e2e/…/main.go• L91-106 e2e/…/main.go• L191-236 e2e/…/main.go• L239-318 e2e/…/main.go• L320-335 e2e/…/main_test.go• L16-119 e2e/test-matrix.md• L3-68
Matrix maintenance
The matrix is generated data and must not be edited by hand. Run the generation target after a test changes its requirements or topology. CI runs the check target to compare the committed table with a fresh discovery.
Both actions need Docker because discovery realizes the environments needed to resolve provider and resource choices. The matrix job runs separately from the full E2E job, so a stale matrix can fail even when the acceptance tests themselves are not run in that job.
References: e2e/Makefile• L41-49 e2e/README.md• L108-120 .github/…/e2e.yml• L118-129
Provider modes
Provider selection
The mode controls provider preference and the severity of an unresolved requirement. Fast is the default local mode. Complete still chooses one compatible provider for each test. Production prefers the more production-like provider where the test permits it.
| Mode | Provider order | Unresolved requirement |
|---|---|---|
fast | Anvil | Skip the test |
complete | Anvil, then Besu | Fail the run |
production | Besu, then Anvil | Fail the run |
Anvil remains the choice for controlled mining and node lifecycle scenarios in every mode. The complete mode does not run every provider permutation.
References: e2e/…/start.go• L97-153 e2e/README.md• L24-35 e2e/test-matrix.md• L7-68
Chain timing
Each resolved chain carries timing information that describes how long transactions and state changes may take to observe. Route wait policies combine the two endpoint timings, so a route does not assume that every test chain mines at Anvil speed.
Managed Anvil starts with mixed one-second mining and exposes a WebSocket endpoint derived from its local RPC endpoint. It runs with explicit test signers rather than ambient development accounts. After a pause and resume it uses interval mining, so a transaction can wait for the next interval. Managed Besu starts as a QBFT chain with an explicit block period and separate HTTP and WebSocket endpoints. Attached chains must declare their timing because the harness cannot infer safe wait limits from a launcher it does not own.
References: e2e/…/spec.go• L106-150 e2e/…/start.go• L360-436 e2e/…/traffic_setup.go• L495-506 e2e/…/anvil.go• L111-176 e2e/…/anvil.go• L220-258 e2e/…/besu.go• L83-109 e2e/…/besu.go• L201-268 e2e/…/AGENTS.md• L5-6
Change checklist
When these files or sections are changed, remember to consider these:
- Test provider requirements or environment topology: regenerate e2e/test-matrix.md and run its check target.
- Matrix discovery flags, test enumeration, or record validation: check both
-writegeneration and-checkfreshness behavior. - Chain ownership or capability declarations: check attached-chain funding, timing, mining, node-lifecycle, and validator-turnover assumptions.
- Managed EVM container startup, labels, port binding, or retry behavior: check Docker cleanup, local-only endpoint exposure, readiness probes, and diagnostic logs together.
- IBC instance, client, or attestor declarations: update the matching runtime authorities and preserve signer isolation.
- Solidity IBC contract dependencies, compiler settings, generated bindings, or package pins: check artifact reproducibility, Go and Bun revision agreement, and the router, application, and client verification path together.
- Batch application shims or generated contract bindings: check both grouped transfer behavior and the account or contract balances used by the traffic helpers.
- IFT batch request or verification rules: check receiver uniqueness, packet count, source refunds, destination supply, and pending-transfer state together.
- GMP request or verification rules: check default and custom payloads, receiver and salt identity, Counter state, token funding, and timeout behavior together.
- Route or client identity rules: check the generated relayer connections, application route bindings, and source-client-plus-sequence packet locators.
- Packet event readers or application send paths: check router filtering, source-client filtering, expected packet counts, and acknowledgement or timeout matching together.
- Deployment or application contracts: check both the shared traffic setup and the public CLI deployment path.
- Process endpoint bindings or child-process startup: check config references, resolved environment values, readiness checks, packet API probing, and resource leases together.
- Attestor signer mode or readiness handling: check local-key and remote-KMS config, signer address validation, loopback endpoint checks, and subprocess-group cleanup together.
- Relayer configuration: check chain IDs, WebSocket endpoints for auto-relayed routes, router and multicall addresses, signer mode, explicit attestor replacement, reciprocal client settings, and observability settings together.
- WebSocket fault injection: restore the proxy before a later step needs the endpoint and keep cleanup able to close active connections.
- Workspace or container ownership: verify cleanup still removes only managed resources and preserves diagnostics when cleanup fails.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Docker is unavailable during managed setup or matrix discovery | Environment realization or matrix generation cannot resolve providers | Run make -C e2e doctor and confirm the Docker daemon is reachable |
| A managed chain fails to start or bind its local ports | Startup retries with fresh containers and then fails without a usable chain | Keep the shared container retry and termination path, then inspect captured chain logs |
| A test requests controlled mining, node lifecycle, or validator turnover with an incompatible provider | Fast may skip; complete and production fail because no compatible provider exists | Declare capabilities through EVMRequirements and let mode resolution choose the provider |
| An attached chain lacks funded test or protocol authorities | Deployment or protocol setup fails after the harness connects | Fund all required public addresses out of band before Start or deployment |
| Matrix output no longer matches current test requirements or topology | The matrix check job fails and the committed table misstates coverage | Run make -C e2e generate-matrix and review the generated changes |
| Matrix discovery emits a duplicate, malformed, or unrecognized record | Generation fails instead of producing a partial or misleading table | Keep one complete record per test and mode and use the matrix collector contract |
| A runtime endpoint or authority is missing, or an attestor signer is reused | Environment validation fails before resource acquisition | Keep the Spec and Runtime declarations complete and use a distinct signer per client |
| A new or attached Solidity IBC router, application, or client fails verification | Provisioning stops before traffic can use a partially trusted protocol endpoint | Keep deployment, attachment, registration, and client-kind checks in the setup path |
| A new client has an invalid identifier or a duplicate occupied identifier | Client preparation fails before a contract deployment can create ambiguous protocol state | Use valid custom client identifiers and keep the vacancy check before deployment |
| The Solidity package pin differs from the Go binding pin | Contract artifacts and generated bindings can describe different protocol revisions | Keep the package-pin check aligned with the E2E and CLI module requirements |
| A transaction submission fails or its receipt is never mined | Protocol setup stops with the operation context instead of exposing a usable instance | Preserve transaction error reporting and chain-timing-based confirmation deadlines |
| A child process starts without a resolved RPC endpoint or loses its environment lease | Deployment or relaying fails before it can use the configured chain | Bind every configured chain and keep the process lease until the child exits |
| An attestor announces a non-loopback or incomplete readiness address | Environment realization fails before the attestor can observe the chain | Require the readiness event, loopback address, signer probe, and public height probe |
| A remote attestor signer is partial or its address differs from the declared authority | Attestor startup or environment realization fails before client updates begin | Provide both remote signer fields and validate the returned signer address |
| A relayer announces readiness without a valid HTTP or packet status endpoint | Relayer startup fails before tests can submit or inspect packets | Require the readiness event and packet probe to succeed before using the relayer |
| A relayer chain that sources an automatic route has no WebSocket endpoint | Automatic packet observation or relay setup cannot start for that chain | Include the chain's WebSocket endpoint in the generated relayer configuration |
| An explicit attestor list omits a chain that needs local observation | Default local attestors are suppressed and that chain cannot verify updates | Leave the list empty for defaults or declare every required local or remote attestor |
| A source transaction emits packets for a different client or an unexpected count | The application result cannot identify the intended packet reliably | Filter router events by source client and require the expected packet count |
| Packet matching uses sequence alone when one source transaction serves several clients | A relay or acknowledgement check can select the wrong packet | Match packet status and protocol events by source client ID and sequence |
| A WebSocket proxy remains killed after a fault step | Later automatic relay or chain observation cannot connect | Call Revive before dependent steps and let test cleanup close the proxy |
| The test prover does not announce a loopback address | Proof-dependent deployment cannot start | Use the configured test prover and wait for its readiness announcement |
| A hard crash leaves managed containers or networks behind | Later runs can collide with stale E2E resources | Preview with make -C e2e clean-dry-run, then run make -C e2e clean |
| A transfer amount is empty, non-positive, or larger than a uint256 | The transfer is rejected before approval or packet submission | Prepare the transfer through the shared request validation |
| A prepared transfer is submitted more than once | The second submission is rejected because its balance baselines are no longer safe | Treat each prepared transfer as single-use and prepare a new one for a retry |
| A transfer timeout is based on the source clock instead of the destination clock | Timeout behavior can differ from the destination chain's expiry rules | Derive the timeout from the destination chain head and the requested horizon |
| An IFT batch repeats a receiver or emits a different packet count than requested | Per-packet checks cannot map destination balances to the source request | Require unique receivers and verify that the batch emits exactly one packet per request |
Key files
| File | Why to read it |
|---|---|
| e2e/…/start.go | Shows mode resolution, capability-based provider selection, and the test entry point for environment startup. |
| e2e/…/spec.go | Defines the high-level resource graph and its ownership, client-kind, timing, and validation rules. |
| e2e/…/start.go | Shows the environment realization order, observability handoff, and cleanup boundary. |
| e2e/…/realize_protocol.go | Explains how IBC instances, reciprocal clients, isolated authorities, and attestors become usable resources. |
| e2e/…/capabilities.go | Defines the chain controls that provider selection and validator scenarios can request. |
| e2e/…/setup.go | Shows how the Solidity IBC router, application stack, and light clients are deployed, attached, prepared, and verified. |
| e2e/…/setup_test.go | Shows the compatibility, attachment, preflight validation, transaction failure, and mining-timeout guarantees for Solidity IBC setup. |
| e2e/…/types.go | Defines the protocol instance, application, light-client, and client-identifier rules used during setup. |
| e2e/…/traffic_setup.go | Shows shared application deployment, route binding, temporary Link configuration, multicall handoff, and relayer setup. |
| e2e/…/traffic.go | Defines the shared source-route and source-client-plus-sequence packet identity used by application fixtures. |
| e2e/…/traffic_evm.go | Shows shared router event decoding and packet extraction from source transactions. |
| e2e/…/traffic_transfer.go | Defines the shared ICS20 transfer action, packet checks, balance checks, timeout behavior, and refund checks. |
| e2e/…/traffic_ift.go | Shows how route-bound IFT traffic uses the batch application shim and validates each packet. |
| e2e/…/traffic_gmp.go | Defines route-bound GMP calls, Counter and token checks, account identity queries, and timeout checks. |
e2e/internal/harness/environment/solidityibc/contracts/src/IFTBatchTransferShim.sol | Defines the local-only batch operations used by grouped IFT and ERC20 traffic. |
| e2e/…/runner.go | Defines the public-command driver and migration entry point for the IBC CLI process boundary. |
| e2e/…/bindings.go | Explains how chain endpoints reach child processes while environment resources stay leased. |
| e2e/…/process.go | Defines one-shot CLI execution, time bounds, binary selection, and process environment handling. |
| e2e/…/attestor.go | Defines attestor config generation, local or remote signing, readiness probing, observability, and shutdown. |
| e2e/…/daemon.go | Defines relayer readiness, packet relay and status access, route controls, pagination, observability, and process shutdown. |
| e2e/…/deploy.go | Defines the minimal external ibc deploy config and command path. |
| e2e/…/relayer_config.go | Defines the generated chain, client, signer, attestor, prover, observability, and packet timing handoff to the relayer. |
| e2e/…/observability.go | Defines the test-scoped observability settings shared by child IBC CLI processes. |
| e2e/…/anvil.go | Shows managed Anvil startup, readiness, explicit-account funding, mining behavior, WebSocket addressing, logs, and cleanup. |
| e2e/…/besu.go | Shows managed Besu QBFT setup, treasury funding, timing, endpoint exposure, and cleanup. |
| e2e/…/container.go | Defines shared managed-container naming, labels, loopback port binding, retry, and termination behavior. |
| e2e/…/wsproxy.go | Defines the local WebSocket boundary used to simulate endpoint loss and recovery. |
| e2e/…/prover.go | Shows the external test prover lifecycle and readiness contract. |
| e2e/fixtures_test.go | Defines the fully connected attested mesh used by most environment-backed tests. |
| e2e/deploy_test.go | Shows black-box CLI deployment, idempotent reruns, rendered relayer configuration, and real IFT relay checks. |
| e2e/…/main.go | Defines matrix test enumeration, three-mode discovery, record validation, freshness checking, grouping, and rendering. |
| e2e/…/main_test.go | Shows the command-level guarantees for option parsing, discovery validation, stable rendering, subtest grouping, and diagnostic errors. |
| e2e/…/matrix.go | Defines the records emitted by tests during matrix discovery. |
| e2e/…/package.json | Pins the Solidity IBC and OpenZeppelin package inputs for the contract artifact workspace. |
| e2e/…/bun.lock | Records the exact upstream revision and checksums used for reproducible contract dependencies. |
| e2e/…/foundry.toml | Defines the compiler, EVM target, dependency remappings, and reproducible artifact settings for the Solidity test stack. |
| e2e/test-matrix.md | Provides the generated provider and topology view for all current E2E tests. |
e2e/Makefile | Provides the commands to run E2E tests and generate or check the matrix. |
| .github/…/e2e.yml | Shows how CI runs harness checks, full E2E modes, and matrix freshness checks. |