Skip to content

sgns::runtime

Namespaces

Name
sgns::runtime::binaryen
sgns::runtime::dummy

Classes

Name
class sgns::runtime::BlockBuilder
class sgns::runtime::ConstWasmProvider
class sgns::runtime::StorageWasmProvider
class sgns::runtime::TrieStorageProviderImpl
class sgns::runtime::Core
class sgns::runtime::CoreFactory
class sgns::runtime::FinalityApi
interface for Finality runtime functions
class sgns::runtime::Metadata
class sgns::runtime::OffchainWorker
class sgns::runtime::ParachainHost
class sgns::runtime::ProductionApi
class sgns::runtime::TaggedTransactionQueue
class sgns::runtime::TrieStorageProvider
class sgns::runtime::WasmMemory
class sgns::runtime::WasmProvider
Interface for accessing WASM state/runtime code.
struct sgns::runtime::WasmResult

Types

Name
enum WasmLogLevel { WasmLL_Error = 0, WasmLL_Warn = 1, WasmLL_Info = 2, WasmLL_Debug = 3, WasmLL_Trace = 4}
type of wasm log levels
using uint32_t WasmPointer
type of wasm memory is 32 bit integer
using uint64_t WasmSpan
combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size
using uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
using uint32_t WasmEnum
Enum value is uint32_t.
using uint32_t WasmOffset
Offset type is uint32_t because we are working in 32 bit address space.

Functions

Name
std::pair< WasmPointer, WasmSize > splitSpan(WasmSpan span)

Attributes

Name
const base::Buffer kRuntimeKey

Types Documentation

enum WasmLogLevel

Enumerator Value Description
WasmLL_Error 0
WasmLL_Warn 1
WasmLL_Info 2
WasmLL_Debug 3
WasmLL_Trace 4

type of wasm log levels

using WasmPointer

using sgns::runtime::WasmPointer = uint32_t;

type of wasm memory is 32 bit integer

using WasmSpan

using sgns::runtime::WasmSpan = uint64_t;

combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size

using WasmSize

using sgns::runtime::WasmSize = uint32_t;

Size type is uint32_t because we are working in 32 bit address space.

using WasmEnum

using sgns::runtime::WasmEnum = uint32_t;

Enum value is uint32_t.

using WasmOffset

using sgns::runtime::WasmOffset = uint32_t;

Offset type is uint32_t because we are working in 32 bit address space.

Functions Documentation

function splitSpan

static std::pair< WasmPointer, WasmSize > splitSpan(
    WasmSpan span
)

Splits 64 bit wasm span on 32 bit pointer and 32 bit address

Attributes Documentation

variable kRuntimeKey

const base::Buffer kRuntimeKey                                   =
base::Buffer::fromHex("3a636f6465").value();

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