pub struct Executive<'a, B: 'a> { /* private fields */ }
Expand description

Transaction executor.

Implementations

Basic constructor.

Populates executive from parent properties. Increments executive depth.

This function should be used to execute transaction.

Execute a transaction in a “virtual” context. This will ensure the caller has enough balance to execute the desired transaction. Used for extra-block executions for things like consensus contracts and RPCs

Calls contract function with given contract params and stack depth. NOTE. It does not finalize the transaction (doesn’t do refunds, nor suicides). Modifies the substate and the output. Returns either gas_left or vm::Error.

Calls contract function with given contract params.

Creates contract with given contract params and stack depth. NOTE. It does not finalize the transaction (doesn’t do refunds, nor suicides). Modifies the substate.

Creates contract with given contract params.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.