Skip to main content

Crate solana_ratchet_lock

Crate solana_ratchet_lock 

Source
Expand description

ratchet.lock — a committed snapshot of a program’s public surface.

Teams commit a lockfile to their repository so CI can diff a newly built IDL against a known-good baseline without hitting an RPC. A lockfile is just a serialized ProgramSurface wrapped in a small envelope (format version, canonical JSON encoding) so it diffs well in pull requests.

Structs§

Lockfile
On-disk representation of a ratchet lockfile.

Constants§

CURRENT_VERSION
Current lockfile schema version. Bump when the shape is incompatibly changed.
DEFAULT_FILENAME
Conventional filename written and read by the CLI.