Skip to content

sgns::runtime::binaryen::RuntimeEnvironment

More...

#include <runtime_environment.hpp>

Public Functions

Name
outcome::result< RuntimeEnvironment > create(const std::shared_ptr< RuntimeExternalInterface > & rei, const std::shared_ptr< WasmModule > & module, const base::Buffer & state_code)
RuntimeEnvironment(RuntimeEnvironment && ) =default
RuntimeEnvironment & operator=(RuntimeEnvironment && ) =default
RuntimeEnvironment(const RuntimeEnvironment & ) =delete
RuntimeEnvironment & operator=(const RuntimeEnvironment & ) =delete
~RuntimeEnvironment() =default

Public Attributes

Name
std::shared_ptr< WasmModuleInstance > module_instance
std::shared_ptr< WasmMemory > memory
boost::optional< std::shared_ptr< storage::trie::TopperTrieBatch > > batch

Detailed Description

class sgns::runtime::binaryen::RuntimeEnvironment;

Runtime environment is a structure that contains data necessary to operate with Runtime: memory, WASM module, storage batch

Public Functions Documentation

function create

static outcome::result< RuntimeEnvironment > create(
    const std::shared_ptr< RuntimeExternalInterface > & rei,
    const std::shared_ptr< WasmModule > & module,
    const base::Buffer & state_code
)

function RuntimeEnvironment

RuntimeEnvironment(
    RuntimeEnvironment && 
) =default

function operator=

RuntimeEnvironment & operator=(
    RuntimeEnvironment && 
) =default

function RuntimeEnvironment

RuntimeEnvironment(
    const RuntimeEnvironment & 
) =delete

function operator=

RuntimeEnvironment & operator=(
    const RuntimeEnvironment & 
) =delete

function ~RuntimeEnvironment

~RuntimeEnvironment() =default

Public Attributes Documentation

variable module_instance

std::shared_ptr< WasmModuleInstance > module_instance;

variable memory

std::shared_ptr< WasmMemory > memory;

variable batch

boost::optional< std::shared_ptr< storage::trie::TopperTrieBatch > > batch;

Updated on 2026-03-04 at 13:10:43 -0800