Expand description
Module for checked code.
Structs§
- Binary
Reader Error - A binary reader for WebAssembly modules.
- Code
- Contains original and instrumented binary code of a program.
- Code
AndId - The newtype contains the Code instance and the corresponding id (hash).
- Code
Metadata - Metadata for the code.
- Instantiated
Section Sizes - 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.
- Instrumented
Code - The newtype contains the instrumented code and the corresponding id (hash).
- Instrumented
Code AndMetadata - The newtype contains the InstrumentedCode instance and the corresponding metadata.
- TryNew
Code Config - Configuration for
Code::try_new_mock_. By default all checks enabled.
Enums§
- Code
Error - Describes why the code is not valid Gear program.
- Data
Section Error - Data section error in WASM module.
- Export
Error - Export error in WASM module.
- Import
Error - Import error in WASM module.
- Instrumentation
Error - WASM module instrumentation error.
- Instrumentation
Status - Status of the instrumentation.
- Memory
Error - Memory error in WASM module.
- Module
Error - Section
Error - Section error in WASM module.
- Section
Name - Section name in WASM module.
- Stack
EndError - Stack end error in WASM module.
Constants§
- ALLOWED_
EXPORTS - Name of exports allowed on chain.
- MAX_
WASM_ PAGES_ AMOUNT - Defines maximal permitted count of memory pages.
- REQUIRED_
EXPORTS - Name of exports required on chain (only 1 of these is required).