Module package_versions

Module package_versions 

Source
Expand description

(original_package_id, version)PackageVersionInfo.

Lists every published version of a Move package: the storage id under which each version lives, and the checkpoint at which the version was published. The publish checkpoint lets a checkpoint-bounded read resolve the latest version of a package as of a given checkpoint — see get_package_at_checkpoint.

Rows written by the live-set restore at the anchor checkpoint leave the publish checkpoint unset (a restore floor): those versions predate the available window, so a checkpoint-bounded read treats them as having always existed.

Structs§

Key
OriginalIdPrefix
Prefix encoder for “all versions of the package originally published at original_id”. Encodes as the 32 raw id bytes — exactly the leading bytes of every Key whose original_id matches.

Constants§

NAME

Functions§

options
store
Build the (Key, Value) pair recording that version version of the package originally published at original_id lives at the on-chain storage id storage_id, published in checkpoint. Written by tip indexing and the post-restore backfill.
store_restored
Like store, but for rows written by the live-set restore at the anchor checkpoint: the publish checkpoint is left unset (a restore floor), marking a version that was published before the available window. A checkpoint-bounded read treats such a version as having always existed.

Type Aliases§

Value