Crate gear_lazy_pages_common

source
Expand description

Core logic for usage both in runtime and in lazy-pages native part.

Structs§

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 be Normal. If gas limit exceed, then status is set as GasLimitExceeded, 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 as GasAllowanceExceed. In the end of execution this status is checked and if it’s not Normal then termination reason sets as gas limit exceeded or gas allowance exceeded, depending on status. NOTE: repr(i64) is important to be able add additional fields, without old runtimes separate support logic.

Traits§