Struct evm_adapters::sputnik::cheatcodes::memory_stackstate_owned::MemoryStackStateOwned[][src]

pub struct MemoryStackStateOwned<'config, B> {
Show 14 fields pub backend: B, pub substate: MemoryStackSubstate<'config>, pub trace_enabled: bool, pub call_index: usize, pub trace_index: usize, pub traces: Vec<CallTraceArena>, pub expected_revert: Option<Vec<u8>>, pub next_msg_sender: Option<H160>, pub msg_sender: Option<(H160, H160, usize)>, pub accesses: Option<RecordAccess>, pub all_logs: Vec<String>, pub expected_emits: Vec<ExpectedEmit>, pub debug_enabled: bool, pub debug_steps: Vec<DebugArena>,
}
Expand description

This struct implementation is copied from upstream and modified to own the Backend type.

We had to copy it so that we can modify the Stack’s internal backend, because the upstream MemoryStackState only has an immutable reference to Backend which does not allow us to do so.

Fields

backend: Bsubstate: MemoryStackSubstate<'config>trace_enabled: boolcall_index: usizetrace_index: usizetraces: Vec<CallTraceArena>expected_revert: Option<Vec<u8>>next_msg_sender: Option<H160>msg_sender: Option<(H160, H160, usize)>accesses: Option<RecordAccess>all_logs: Vec<String>expected_emits: Vec<ExpectedEmit>debug_enabled: booldebug_steps: Vec<DebugArena>

Implementations

Trait Implementations

Gas price. Unused for London.

Origin.

Environmental block hash.

Environmental block number.

Environmental coinbase.

Environmental block timestamp.

Environmental block difficulty.

Environmental block gas limit.

Environmental block base fee.

Environmental chain ID.

Whether account at address exists.

Get basic account information.

Get account code.

Get storage value of address at index.

Get original storage value of address at index, if available.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Clears all logs in the current EVM instance, so that subsequent calls to logs do not print duplicate logs on shared EVM instances. Read more

Returns a vector of raw logs that occurred during the previous VM execution Read more

Gets a trace

Returns a vector of string parsed logs that occurred during the previous VM execution 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