Struct evm_adapters::sputnik::Executor[][src]

pub struct Executor<S, E> {
    pub executor: E,
    pub gas_limit: u64,
    // some fields omitted
}
Expand description

Wrapper around Sputnik Executors which implements the Evm trait.

Fields

executor: Egas_limit: u64

Implementations

Instantiates the executor given a Sputnik instance.

Given a gas limit, vm version, initial chain configuration and initial state

Instantiates a cheatcode-enabled Executor

Trait Implementations

Grabs debug steps

given an iterator of contract address to contract bytecode, initializes the state with the contract deployed at the specified address

Deploys the provided contract bytecode

Runs the selected function

The returned reason type from an EVM (Success / Revert/ Stopped etc.)

Gets the revert reason type

Whether a return reason should be considered successful

Whether a return reason should be considered failing

Resets the EVM’s state to the provided value

Turns on/off tracing, returning the previously set value

Returns whether tracing is enabled

Sets the balance at the specified address

Gets a reference to the current state of the EVM

Gets all logs from the execution, regardless of reverts

Performs a call_unchecked, checks if execution reverted, and proceeds to return the decoded response to the user. Read more

Executes the specified EVM call against the state

Runs the setUp() function call to instantiate the contract’s state

Runs the failed() function call to inspect the test contract’s state and see whether the failed state var is set. This is to allow compatibility with dapptools-style DSTest smart contracts to preserve emiting of logs Read more

Given a smart contract address, the result type and whether it’s expected to fail, it returns the test’s success status Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more