Struct evm_adapters::sputnik::cheatcodes::backend::CheatcodeBackend [−][src]
pub struct CheatcodeBackend<B> {
pub backend: B,
pub cheats: Cheatcodes,
}
Expand description
A cheatcode backend is a wrapper around the inner backend which returns the cheatcode value if it’s already been set, else it falls back to the default value inside the backend.
The cheatcode backend can be composed with other enhanced backends, e.g. the forking backend. You should always put the cheatcode backend on the highest layer of your stack of backend middlewares, so that it is always hit first.
Fields
backend: B
The inner backend type.
cheats: Cheatcodes
The enabled cheatcodes
Trait Implementations
Environmental block hash.
Environmental block number.
Environmental coinbase.
Environmental block timestamp.
Environmental block base fee.
Environmental block difficulty.
Environmental block gas limit.
Auto Trait Implementations
impl<B> RefUnwindSafe for CheatcodeBackend<B> where
B: RefUnwindSafe,
impl<B> Send for CheatcodeBackend<B> where
B: Send,
impl<B> Sync for CheatcodeBackend<B> where
B: Sync,
impl<B> Unpin for CheatcodeBackend<B> where
B: Unpin,
impl<B> UnwindSafe for CheatcodeBackend<B> where
B: UnwindSafe,
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