Skip to main content

Module contract_diff_request

Module contract_diff_request 

Source
Expand description

#2467: bynk/contractDiff — the contract-diff custom LSP request.

Project-scoped, like bynk/architectureModel: the params carry a textDocument only to resolve which project’s committed round to read. Two lists come back:

  • changes: every event and agent class whose shape differs from bynk.schema.lock, classified compatible or breaking. The classification is bynk_check::schema_registry::diff_against_lock, which reports the verdicts of the reconciliation bynk check runs; this module never decides what “breaking” means.
  • services: each context’s on call contract hash that differs from what bynk.deploy.lock records as live, per environment, as changed/added/removed. A hash says whether a contract moved, not whether the move is breaking (ADR 0491 compares hashes too), so a changed row also carries compat (#2485) when the ledger recorded the live contract’s structure: bynk_check::contract_compat::check_call of the live contract (what its callers speak) against the one this source provides. No structure on record, no verdict.

The ledger is read here, above the driver boundary, like the schema lock (schema_lock.rs); read-only, on request, nothing cached.

Re-exports§

pub use crate::architecture_request::WireLoc as CdLoc;

Structs§

CdChange
CdCompat
A service change’s compatibility verdict and the reasons behind it.
CdModel
CdService
ContractDiffParams
The bynk/contractDiff request payload.

Enums§

LedgerState
What the ledger read gave: the diff against it is only as good as this.
LockWire
LockState on the wire.

Functions§

to_wire
Lower the round’s ContractDiff (and the ledger text, if any) to the wire model.