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.
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 notNormal
then termination reason sets asgas limit exceeded
orgas 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.