6 #ifndef KAGOME_CORE_RUNTIME_BINARYEN_MODULE_WASM_MODULE_INSTANCE_IMPL 7 #define KAGOME_CORE_RUNTIME_BINARYEN_MODULE_WASM_MODULE_INSTANCE_IMPL 14 using namespace ::
wasm;
21 class RuntimeExternalInterface;
32 std::shared_ptr<wasm::Module> parent,
33 std::shared_ptr<RuntimeExternalInterface> rei,
40 outcome::result<PtrSize> callExportFunction(
43 outcome::result<std::optional<WasmValue>> getGlobal(
44 std::string_view name)
const override;
48 outcome::result<void> resetEnvironment()
override;
54 std::shared_ptr<RuntimeExternalInterface>
rei_;
55 std::shared_ptr<wasm::Module>
68 #endif // KAGOME_CORE_RUNTIME_BINARYEN_MODULE_WASM_MODULE_INSTANCE_IMPL std::function< void(SegmentOffset, SegmentData)> DataSegmentProcessor
common::Hash256 code_hash_
std::shared_ptr< wasm::Module > parent_
std::unique_ptr< wasm::ModuleInstance > module_instance_
static const wasm::Name env
std::shared_ptr< soralog::Logger > Logger
std::shared_ptr< RuntimeExternalInterface > rei_
const common::Hash256 & getCodeHash() const override
OUTCOME_HPP_DECLARE_ERROR(kagome::runtime::binaryen, ModuleInstanceImpl::Error)