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 frombynk.schema.lock, classifiedcompatibleorbreaking. The classification isbynk_check::schema_registry::diff_against_lock, which reports the verdicts of the reconciliationbynk checkruns; this module never decides what “breaking” means.services: each context’son callcontract hash that differs from whatbynk.deploy.lockrecords as live, per environment, aschanged/added/removed. A hash says whether a contract moved, not whether the move is breaking (ADR 0491 compares hashes too), so achangedrow also carriescompat(#2485) when the ledger recorded the live contract’s structure:bynk_check::contract_compat::check_callof 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
- Contract
Diff Params - The
bynk/contractDiffrequest payload.
Enums§
- Ledger
State - What the ledger read gave: the diff against it is only as good as this.
- Lock
Wire LockStateon the wire.
Functions§
- to_wire
- Lower the round’s
ContractDiff(and the ledger text, if any) to the wire model.