pub struct Executor<'v> { /* private fields */ }
Expand description

Stateful EVM executor backed by an in-memory storage.

Implementations

Return a reference to the in-memory storage backend.

Return the balance of the account at the specified address if one exists.

Add balance to the specified account. Intended to used for testing.

Note: this will create a new account at the given address if one does not exist.

Create a new Executor with an empty in-memory storage backend.

Create a contract and return the contract address if successful.

Transfer some ETH from one account to another.

Call a contract method with the given signature. The signature is represented by a string consisting of the name of the method and a list of parameter types (e.g. foo(uint256,uint256)).

Execute custom EVM opecodes. You are still required to specify a caller address and a contract address, even though a contract may not exist at the specified address.

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.