Skip to main content

Module runtime

Module runtime 

Source
Expand description

Execution mode dispatcher for rWasm-based runtimes.

This module defines a thin abstraction over different execution backends (contract vs system runtimes). The goal is to provide a uniform interface for driving execution, memory access, fuel accounting and context handling, while allowing the underlying runtime to differ.

From the executor’s point of view, ExecutionMode behaves like a tagged union with identical operational semantics.

Structs§

ContractRuntime
Runtime responsible for executing a single contract invocation.
SystemRuntime
A system runtime instance.

Enums§

ExecutionMode
Represents the active execution mode.