Expand description
Module for checked code.
Structs§
- A binary reader for WebAssembly modules.
- Contains instrumented binary code of a program and initial memory size from memory import.
- The newtype contains the Code instance and the corresponding id (hash).
- Instantiated section sizes for charging during module instantiation. By “instantiated sections sizes” we mean the size of the section representation in the executor during module instantiation.
- The newtype contains the instrumented code and the corresponding id (hash).
- The newtype contains the instrumented code and the corresponding id (hash).
- Configuration for
Code::try_new_mock_
. By default all checks enabled.
Enums§
- Describes why the code is not valid Gear program.
- Module encode/decode error.
- Data section error in WASM module.
- Export error in WASM module.
- Import error in WASM module.
- WASM module instrumentation error.
- Memory error in WASM module.
- Section error in WASM module.
- Section name in WASM module.
- Deserialization/serialization error
- Stack end error in WASM module.
- Table section error in WASM module.
Constants§
- Name of exports allowed on chain.
- Defines maximal permitted count of memory pages.
- Name of exports required on chain (only 1 of these is required).