← Back to Pull requests

chore: move to ibc-contracts main for the Besu QBFT light client #1535

Closed
unknown closed this pull request without merging on Oct 08, 2026 08:37 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 15:10 UTC
Author

Moves the CLI and e2e to ibc-contracts main (go-abigen b9ceb3c5) and adapts to its breaking Besu QBFT light client changes. This is the bottom of a stack; the IFT rate limit handling in ibc deploy ift is in the PR above it.

Besu QBFT light client

  • Commit seals sorted by signer. The contract now requires seals in strictly ascending signer order. ParseSealedHeader recovers each signer from the QBFT seal digest and sorts the seals. Sorting the old fixture's headers reproduces the new upstream fixture byte for byte. A new unit test checks that the fixture's seals recover to the header's validators, which a wrong digest would fail.

  • New constructor. The client and consensus state are passed as structs, with a trust level. ibc deploy client besu-qbft always uses 2/3, the same threshold the contract hard-coded before it became configurable. The constructor rejects an expired initial state, so the tests now deploy at the current head time.

  • Headers must be above the trusted height. When the target height isn't above the client's latest height, the relayer sends no update. If the client doesn't store that height, the prover fails the attempt with a clear error and the relayer retries at a newer height; #1541 proves at the client's latest height instead. The old fallback that updated from below the latest height would now always revert.

  • Docs cover the trust level, seal order, misbehaviour freezing and FrozenClientState.
  • IFT, bare minimum

    IFT tokens at this commit reject every transfer until a rate limit is set. The e2e harness sets a generous limit when it deploys a token, so the IFT e2e tests keep passing.

    Until the PR above merges, ibc deploy ift creates tokens that reject transfers, so the tutorial's transfer step fails. Merge the stack together.

    Cleanups

  • The attestation client binding and the e2e EVM IFT send-call constructor now come from go-abigen instead of local copies. This removes the copied ABI, the shim contract, their generated bindings and the broken codegen-abi Make target.

  • The IBC store slot is read from ics26router.IbcStoreStorageSlot instead of a hex literal.

  • The e2e test-app contracts are pinned to the same ibc-contracts commit, with OpenZeppelin 5.7.0 as upstream locks it. Upstream moved the Solidity sources into ibc-solidity/, so the remapping points there. The regenerated Escrow binding drops only the unused initializeV2.

  • make -C e2e check-stale now checks the whole generated bindings directory instead of a second hand-maintained list of outputs.
  • Testing

  • CLI unit tests, lint for both modules and refgen.py all --check pass.

  • e2e in production mode passes the 7 Besu and IFT tests. Fast mode passes TestDeployIFTBridge, TestTransfer_AutoRelay, TestIFTTransfer_AutoRelay and TestIFTTransfer_MultiAttestorQuorum.

  • check-stale passes with abigen 1.17.4, the version CI installs.
  • closes FOU-1804

    Diff: 366 lines (+274 / -92) across 4 files Reviewer: gjermundgaraba Review duration: 2486m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 366 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.353
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1535"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.7% (MEDIUM) · Higher = larger blast radius
    42.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.9% · Safe to merge
    16.9%
    Repository