Struct evm_adapters::sputnik::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: BThe internal backend
cache: RefCell<BTreeMap<H160, MemoryAccount>>cache state
Implementations
Trait Implementations
Environmental block hash.
Environmental block number.
Environmental coinbase.
Environmental block timestamp.
Environmental block difficulty.
Environmental block gas limit.
Environmental block base fee.
Auto Trait Implementations
impl<B, M> !RefUnwindSafe for ForkMemoryBackend<B, M>
impl<B, M> Send for ForkMemoryBackend<B, M> where
B: Send,
M: Send,
impl<B, M> !Sync for ForkMemoryBackend<B, M>
impl<B, M> Unpin for ForkMemoryBackend<B, M> where
B: Unpin,
M: Unpin,
impl<B, M> !UnwindSafe for ForkMemoryBackend<B, M>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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