Irmin_context.PVMStateState of the PVM that this rollup node deals with
type value = mut_stateThe value of a PVM state
val empty : unit -> valueempty () is the empty PVM state.
find context returns the PVM state stored in the context, if any.
val lookup : value -> string list -> bytes option Lwt.tlookup state path returns the data stored for the path path in the PVM state state.
set context state saves the PVM state state in the context. Note: set does not perform any write on disk, this information must be committed using commit.
val cache_preference : Tezos_layer2_store.Context_sigs.cache_preferencecommit index state commits just the raw PVM state tree to disk and returns the commit hash. This is used for on-disk caching of PVM states during refutation game dissections. Unlike Irmin_context.commit, this commits the raw PVM state tree directly, not a full context tree with the /pvm_state subtree prefix.
Note: for the Irmin backend, in-memory caching via immutable copies is preferred (see cache_preference). These functions are provided for interface completeness but are not used in practice.