package tezos-scoru-wasm-fast

  1. Overview
  2. Docs
type host_state = {
  1. retrieve_mem : unit -> Tezos_wasmer.Memory.t;
  2. buffers : Tezos_webassembly_interpreter.Eval.buffers;
  3. mutable durable : Tezos_scoru_wasm.Durable.t;
}

Host state environment for Fast Execution

val make : reveal_builtins:Tezos_scoru_wasm.Builtins.reveals -> write_debug:Tezos_scoru_wasm.Builtins.write_debug -> host_state -> (string * string * Tezos_wasmer.extern) list

make ~debug builtins host_state generates a list of host functions that can be imported by WebAssembly modules. If debug is true, an implementation for write_debug will be picked that prints to the standard output.

OCaml

Innovation. Community. Security.