Module soroban_env_host::vm
source · Expand description
This module primarily provides the Vm type and the necessary name-lookup and runtime-dispatch mechanisms needed to allow WASM modules to call into the Env interface implemented by Host.
It also contains helper methods to look up and call into contract functions in terms of [ScVal] and Val arguments.
The implementation of WASM types and the WASM bytecode interpreter come from the wasmi project.
Structs
- A Vm is a thin wrapper around an instance of wasmi::Module. Multiple Vms may be held in a single Host, and each contains a single WASM module instantiation.