Struct evm_adapters::sputnik::rpc::ForkMemoryBackend[][src]

pub struct ForkMemoryBackend<B, M> {
    pub provider: BlockingProvider<M>,
    pub backend: B,
    pub cache: RefCell<BTreeMap<H160, MemoryAccount>>,
    // some fields omitted
}
Expand description

Memory backend with ability to fork another chain from an HTTP provider, storing all cache values in a BTreeMap in memory.

Fields

provider: BlockingProvider<M>

ethers middleware for querying on-chain data

backend: B

The internal backend

cache: RefCell<BTreeMap<H160, MemoryAccount>>

cache state

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.

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