Context.PVMStateState of the PVM that this rollup node deals with
type 'access value = 'access pvmstateThe value of a PVM state
Immutable representation of value. In practice these are copies of values.
find context returns the PVM state stored in the context, if any.
val get :
< state : 'a ; index : _ > t ->
'a value Tezos_base.TzPervasives.tzresult Lwt.tget context is the same as find but fails if there is no PVM state stored in the context.
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 and returns the updated context. Note: set does not perform any write on disk, this information must be committed using commit.
Copy a PVM state. WARNING: Can incur a significant memory allocation.
val imm_copy : _ value -> immutable_valueCreate an immutable copy. WARNING: Can incur a significant memory allocation.
val mut_copy : immutable_value -> [ `Read | `Write ] valueCreate a mutable copy. WARNING: Can incur a significant memory allocation.
Returns a read-only version of the state. Does not make any copy.
val access_mode : 'a value -> 'a Access_mode.tval maybe_readonly : 'a Access_mode.t -> [ `Read | `Write ] value -> 'a valuemaybe_readone mode state returns a read-only version of state if mode is Read_only.