Crate linera_execution
source ·Expand description
This module manages the execution of the system application and the user applications in a Linera chain.
Re-exports§
pub use crate::system::SystemExecutionError;
pub use crate::system::SystemExecutionStateView;
pub use crate::system::SystemMessage;
pub use crate::system::SystemOperation;
pub use crate::system::SystemQuery;
pub use crate::system::SystemResponse;
Modules§
- Code specific to the usage of the Revm runtime.
- This assumes that the current directory is one of the crates.
Structs§
- The result of calling into a user application.
- An implementation of the runtime API used to access the common behaviour and the view storage for both contracts and services.
- The state of a blob of binary data.
- The identifier of a channel, relative to a particular application.
- An implementation of the system API made available to contracts.
- Configuration options for the execution runtime available to applications.
- A view accessing the execution state of a chain.
- Attempts to create an invalid
WasmRuntime
instance from a string. - The outcome of the execution of a query.
- Externally visible results of an execution. These results are meant in the context of the application that created them.
- A message together with routing information.
- A collection of prices and limits associated with block execution.
- The resources used so far by an execution process.
- Common host data used as the
UserData
of the system API implementations. - An implementation of the system API made available to services.
- How to interact with a long-lived service runtime.
- The
TransactionTracker
contents after a transaction has finished. - Tracks oracle responses and execution outcomes of an ongoing transaction execution, as well as replayed oracle responses.
- An implementation of
UserContractModule
. - An implementation of
UserServiceModule
.
Enums§
- A type for errors happening during execution.
- Externally visible results of an execution, tagged by their application.
- Requests to the execution state.
- A message to be sent and possibly executed in the receiver’s block.
- The kind of outgoing message being sent.
- An operation to be executed in a block.
- An query to be sent and possibly executed in the receiver’s block.
- The response to a query.
- A request to the service runtime actor.
- A user contract in a compiled WebAssembly module.
- Errors that can occur when executing a user application in a WebAssembly module.
- The runtime to use for running the application.
- A user service in a compiled WebAssembly module.
Traits§
- Requirements for the
extra
field in our state views (and notably theExecutionStateView
). - The public entry points provided by the contract part of an application.
- A factory trait to obtain a
UserContract
from aUserContractModule
- The public entry points provided by the service part of an application.
- A factory trait to obtain a
UserService
from aUserServiceModule
- Trait used to select a default
WasmRuntime
, if one is available.
Type Aliases§
- An implementation of
UserContract
. - An implementation of
UserService
.