Struct evm_adapters::evmodin::EvmOdin[][src]

pub struct EvmOdin<S, T> {
    pub host: S,
    pub gas_limit: u64,
    pub call_kind: Option<CallKind>,
    pub revision: Revision,
    pub tracer: T,
}
Expand description

Wrapper around EVModin which implements the Evm trait

Fields

host: Sgas_limit: u64call_kind: Option<CallKind>revision: Revisiontracer: T

Implementations

Given a gas limit, vm revision, and initialized host state

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Grabs debug steps

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

Sets the balance at the specified address

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 provided contract bytecode at the corresponding addresses

Gets a reference to the current state of the EVM

Gets all logs from the execution, regardless of reverts

Deploys the provided contract bytecode and returns the address

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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