Context.PVMState
State of the PVM that this rollup node deals with
type value = pvmstate
The value of a PVM state
val empty : 'a t -> value
empty () is the empty PVM state.
empty ()
val find : 'a t -> value option Lwt.t
find context returns the PVM state stored in the context, if any.
find context
context
val lookup : value -> string list -> bytes option Lwt.t
lookup state path returns the data stored for the path path in the PVM state state.
lookup state path
path
state
val set : 'a t -> value -> 'a t Lwt.t
set context state saves the PVM state state in the context and returns the updated context. Note: set does not perform any write on disk, this information must be committed using commit.
set context state
set
commit