Expand description
Core logic for usage both in runtime and in lazy-pages native part.
Structs§
- Globals
Access Config - Globals ctx for lazy-pages initialization for program.
- Globals
Access Error - Globals access error.
- Lazy
Pages Init Context
Enums§
- Globals
Access Mod - Informs lazy-pages whether they work with native or WASM runtime.
- Process
Access Error - Memory access error during syscall that lazy-pages have caught. 0 index is reserved for an ok result.
- Status
- 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
Accessor - Globals access trait.
- Lazy
Pages Interface