Expand description
Gear message processor.
Modules§
- common
- Common structures for processing.
- configs
- Configurations.
- informational
- Informational functions for core-processor and executor.
Structs§
- Context
Charged ForCode - The instance returned by
precharge_for_code
. Existence of the instance means that corresponding counters were successfully charged for fetching the binary code from storage. - Context
Charged ForInstrumentation - The instance returned by
precharge_for_instrumentation
. Existence of the instance means that corresponding counters were successfully charged for reinstrumentation of the code. - Ext
- Structure providing externalities for running host functions.
- Process
Execution Context - Checked parameters for message execution across processing runs.
- Processor
Context - Processor context.
Enums§
- Actor
Prepare Memory Error - Prepare memory error
- Alloc
ExtError Ext
’s memory management (calls to allocate and free) error.- Fallible
ExtError - Fallible API error.
- Unrecoverable
ExtError - Infallible API error.
Traits§
- Processor
Externalities - Trait to which ext must have to work in processor wasm executor. Currently used only for lazy-pages support.
Functions§
- calculate_
gas_ for_ code - Calculates gas amount required to charge for code loading.
- calculate_
gas_ for_ program - Calculates gas amount required to charge for program loading.
- execute_
wasm - Execute wasm with dispatch and return dispatch result.
- handle_
journal - Handle some journal records passing them to the journal handler.
- precharge_
for_ code - Charge a message for the program binary code beforehand.
- precharge_
for_ code_ length - Charge a message for fetching the actual length of the binary code from a storage. The updated value of binary code length should be kept in standalone storage. The caller has to call this function to charge gas-counters accordingly before fetching the value.
- precharge_
for_ instrumentation - Charge a message for instrumentation of the binary code beforehand.
- precharge_
for_ memory - Charge a message for program memory and module instantiation beforehand.
- precharge_
for_ program - Charge a message for program data beforehand.
- process
- Process program & dispatch for it and return journal for updates.