Skip to main content

Module drift

Module drift 

Source
Expand description

Drift detection — detect stale contracts via git timestamps.

A contract is “stale” if it was modified after the binding file was last updated, meaning the binding may reference an outdated version.

drift = 1.0 - (stale_contracts / total_bound_contracts)

Functions§

compute_drift
Compute drift score from stale contract count.
detect_stale_contracts
Detect which bound contracts are stale relative to a binding file.