Module utils

Source

Structs§

JSONError
The JSON version of the executor error. The serialization and deserialization of the JSON error are less sensitive to the order of the variants in the enum. It simplifies the error conversion between different versions of the execution.

Enums§

InputDeserializationType
InputSerializationType
The input type for the WASM executor. Enum allows handling different versions of the input without introducing new host functions.
ReturnType
The return type for the WASM executor. Enum allows handling different versions of the return without introducing new host functions.
WasmDeserializationBlockTypes
WasmSerializationBlockTypes

Functions§

convert_from_v0_execution_result
Converts the ExecutionV0 to latest execution result.
convert_from_v1_execution_result
Converts the ExecutionV1 to latest execution result.
convert_to_v1_execution_result
Converts the latest execution result to the ExecutionV1.
pack_exists_size_result
Pack a exists, size and result into one u64.
pack_ptr_and_len
Pack a pointer and length into an u64.
unpack_exists_size_result
Unpacks an u64 into exists, size and result.
unpack_ptr_and_len
Unpacks an u64 into the pointer and length.