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. - Context
Charged ForProgram - Struct with dispatch and counters charged for program data.
- Ext
- Structure providing externalities for running host functions.
- Process
Execution Context - Checked parameters for message execution across processing runs.
- Processor
Context - Processor context.
- System
Reservation Context - System reservation context.
Enums§
- Alloc
ExtError Ext
’s memory management (calls to allocate and free) error.- Fallible
ExtError - Fallible API error.
- Successful
Dispatch Result Kind - Possible variants of the
DispatchResult
if the latter contains value. - 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§
- handle_
journal - Handle some journal records passing them to the journal handler.
- precharge_
for_ allocations - Precharge for allocations obtaining from storage.
- 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_ module_ instantiation - 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.
- process_
allowance_ exceed - Helper function for journal creation if the block gas allowance has been exceeded.
- process_
code_ not_ exists - Helper function for journal creation in code not exists case.
- process_
execution_ error - Helper function for journal creation in trap/error case.
- process_
failed_ init - Helper function for journal creation in program failed init case.
- process_
program_ exited - Helper function for journal creation in program exited case.
- process_
reinstrumentation_ error - Helper function for journal creation in case of re-instrumentation error.
- process_
success - Helper function for journal creation in success case
- process_
uninitialized - Helper function for journal creation in program uninitialized case.