Module Tezos_webassembly_interpreter.Eval_storage

type t =
  1. | Durable_only of Durable_storage.t
  2. | Dual of {
    1. durable : Durable_storage.t;
    2. nds : Octez_riscv_nds_common.Nds.t;
    }

Storage context for the WASM interpreter's eval chain.

Durable_only provides only the Irmin-backed durable storage. Dual additionally carries a New Durable Storage handle.

val durable_of : t -> Durable_storage.t

Extract the durable storage from either variant.

val durable_only : Durable_storage.t -> t

Construct a Durable_only eval storage.

Construct a Dual eval storage.

val update_durable : t -> Durable_storage.t -> t

Replace the durable storage, preserving the variant.

val update_nds : t -> Octez_riscv_nds_common.Nds.t -> t

Replace the NDS handle. No-op for Durable_only.