Module Pvm.Kernel

val config : ?sender:Tezos_protocol_alpha.Protocol.Contract_hash.t -> ?source:Tezos_base.TzPervasives.Signature.Public_key_hash.t -> ?destination:Tezos_protocol_alpha.Protocol.Alpha_context.Sc_rollup.Address.t -> ?preimage_directory:string -> ?preimage_endpoint:Uri.t -> ?dal_pages_directory:string -> ?kernel_debug:bool -> ?flamecharts_directory:string -> ?timings_file:string -> ?trace_host_funs:bool -> unit -> Pvm_types.config

Constructs a configuration for rollup execution.

val read_kernel : Pvm_types.kernel -> (string * bool) Tezos_base.TzPervasives.tzresult Lwt.t

read_kernel kernel returns a tuple consisting of the kernel code content and a boolean is_binary, where is_binary is true if content is a WASM blob, and false if it is a wat file (WebAssembly text format).

val check_kernel : binary:bool -> name:string -> Tezos_scoru_wasm.Wasm_pvm_state.version -> string -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val set_durable_value : ?edit_readonly:bool -> State.t -> string -> string -> State.t Lwt.t
val wrap_as_durable_storage : State.t -> Tezos_webassembly_interpreter.Durable_storage.t Lwt.t
val get_wasm_version : State.t -> Tezos_scoru_wasm.Wasm_pvm_state.version Lwt.t