[][src]Module solana_libra_vm_runtime::txn_executor

Processor for a single transaction.

Structs

ACCOUNT_MODULE

The ModuleId for where Account module is being stored.

COIN_MODULE

The ModuleId for where LibraCoin module is being stored.

TransactionExecutor

A struct that executes one single transaction. 'alloc is the lifetime for the code cache, which is the argument type P here. Hence the P should live as long as alloc. 'txn is the lifetime of one single transaction. execution_stack contains the call stack and value stack of current execution. txn_data contains the information of this transaction, such as sender, sequence number, etc. event_data is the vector that stores all events emitted during execution. data_view is the scratchpad for the local writes emitted by this transaction.

Functions

execute_function

A helper function for executing a single script. Will be deprecated once we have a better testing framework for executing arbitrary script.