Module wasmer

Source
Expand description

Defines structs and functions to utilize wasmer as smart contract execution environment.

The state transition funcion executes contract in Wasmer Environment after creation of a Wasmer Store. The environment defines read-write access to Wasmer Memory. The store is created with a Wasmer OpCode Filter so that invalid contract will not be executed. The state transition function might specify a cache for storing compiled smart contract to execute.

Modulesยง

cache
Defines a struct that caches wasmer module of smart contract.
custom_tunables
Defines structs that are used as configuration of wasmer store for limiting the memory used for wasm module instantiation.
non_determinism_filter
Defines a middleware filter to disallow non-deterministic operations.
wasmer_env
Defines environment for constructing instance of wasmer execution.
wasmer_memory
Defines a struct that implements operations of reading and writing byte arrays into WASM linear memory.
wasmer_store
Implementation of Store instantiation from special configuration, including middleware filter.