Skip to main content

Module diff

Module diff 

Source
Expand description

Contract diff — detect drift between contract versions.

Compares two Contract values and produces a ContractDiff listing added, removed, and changed sections. Suggests a semver bump (major, minor, patch) based on the nature of the changes.

Structs§

ContractDiff
The result of diffing two contracts.
SectionDiff
A change summary for one section of the contract.

Enums§

SemverBump
Suggested semantic version bump.

Functions§

diff_contracts
Diff two contracts and produce a structured change report.
is_identical
True if the diff contains no changes at all.