Crate gear_lazy_pages_common
source ·Expand description
Core logic for usage both in runtime and in lazy-pages native part.
Structs
- Globals ctx for lazy-pages initialization for program.
- Globals access error.
- Lazy-pages cases weights.
Enums
- Informs lazy-pages whether they work with native or WASM runtime.
- Memory access error during syscall that lazy-pages have caught. 0 index is reserved for an ok result.
- Lazy-pages status. By default in program initialization status is set as
Normal. If nothing bad happens in lazy-pages, then status remains to beNormal. If gas limit exceed, then status is set asGasLimitExceeded, and lazy-pages starts to skips all signals processing until the end of execution. The same is for gas allowance exceed, except it sets status asGasAllowanceExceed. In the end of execution this status is checked and if it’s notNormalthen termination reason sets asgas limit exceededorgas allowance exceeded, depending on status. NOTE:repr(i64)is important to be able add additional fields, without old runtimes separate support logic.
Traits
- Globals access trait.