Struct evm::executor::stack::StackExecutor[][src]

pub struct StackExecutor<'config, 'precompiles, S, P> { /* fields omitted */ }
Expand description

Stack-based executor.

Implementations

Return a reference of the Config.

Return a reference to the precompile set.

Create a new stack-based executor with given precompiles.

Create a substate executor from the current executor.

Exit a substate. Panic if it results an empty substate stack.

Execute the runtime until it returns.

Get remaining gas.

Execute a CREATE transaction.

Execute a CREATE2 transaction.

Execute a CALL transaction with a given caller, address, value and gas limit and data.

Takes in an additional access_list parameter for EIP-2930 which was introduced in the Ethereum Berlin hard fork. If you do not wish to use this functionality, just pass in an empty vector.

Get used gas for the current executor, given the price.

Get fee needed for the current executor, given the price.

Get account nonce.

Get the create address from given scheme.

Trait Implementations

Type of CREATE interrupt.

Feedback value for CREATE interrupt.

Type of CALL interrupt.

Feedback value of CALL interrupt.

Get balance of address.

Get code size of address.

Get code hash of address.

Get code of address.

Get storage value of address at index.

Get original storage value of address at index.

Check whether an address exists.

Checks if the address or (address, index) pair has been previously accessed (or set in accessed_addresses / accessed_storage_keys via an access list transaction). References: Read more

Get the gas left value.

Get the gas price value.

Get execution origin.

Get environmental block hash.

Get environmental block number.

Get environmental coinbase.

Get environmental block timestamp.

Get environmental block difficulty.

Get environmental gas limit.

Environmental block base fee.

Get environmental chain ID.

Check whether an address has already been deleted.

Set storage value of address at index.

Create a log owned by address with given topics and data.

Mark an address to be deleted, with funds transferred to target.

Invoke a create operation.

Invoke a call operation.

Pre-validation step for the runtime.

Feed in create feedback.

Feed in call feedback.

Handle other unknown external opcodes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.