pub struct SimulatePayload<TxReq = TransactionRequest> {
pub block_state_calls: Vec<SimBlock<TxReq>>,
pub trace_transfers: bool,
pub validation: bool,
pub return_full_transactions: bool,
}eth only.Expand description
Simulation options for executing multiple blocks and transactions.
This struct configures how simulations are executed, including whether to trace token transfers, validate transaction sequences, and whether to return full transaction objects.
Fields§
§block_state_calls: Vec<SimBlock<TxReq>>Array of block state calls to be executed at specific, optional block/state.
trace_transfers: boolFlag to determine whether to trace ERC20/ERC721 token transfers within transactions.
validation: boolFlag to enable or disable validation of the transaction sequence in the blocks.
return_full_transactions: boolFlag to decide if full transactions should be returned instead of just their hashes.
Implementations§
Source§impl<TxReq> SimulatePayload<TxReq>
impl<TxReq> SimulatePayload<TxReq>
Sourcepub fn extend(self, block: SimBlock<TxReq>) -> SimulatePayload<TxReq>
pub fn extend(self, block: SimBlock<TxReq>) -> SimulatePayload<TxReq>
Adds a block to the simulation payload.
Sourcepub fn extend_blocks(
self,
blocks: impl IntoIterator<Item = SimBlock<TxReq>>,
) -> SimulatePayload<TxReq>
pub fn extend_blocks( self, blocks: impl IntoIterator<Item = SimBlock<TxReq>>, ) -> SimulatePayload<TxReq>
Adds multiple blocks to the simulation payload.
Sourcepub const fn with_trace_transfers(self) -> SimulatePayload<TxReq>
pub const fn with_trace_transfers(self) -> SimulatePayload<TxReq>
Enables tracing of token transfers.
Sourcepub const fn with_validation(self) -> SimulatePayload<TxReq>
pub const fn with_validation(self) -> SimulatePayload<TxReq>
Enables validation of the transaction sequence.
Sourcepub const fn with_full_transactions(self) -> SimulatePayload<TxReq>
pub const fn with_full_transactions(self) -> SimulatePayload<TxReq>
Enables returning full transactions.
Trait Implementations§
Source§impl<TxReq> Clone for SimulatePayload<TxReq>where
TxReq: Clone,
impl<TxReq> Clone for SimulatePayload<TxReq>where
TxReq: Clone,
Source§fn clone(&self) -> SimulatePayload<TxReq>
fn clone(&self) -> SimulatePayload<TxReq>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<TxReq> Debug for SimulatePayload<TxReq>where
TxReq: Debug,
impl<TxReq> Debug for SimulatePayload<TxReq>where
TxReq: Debug,
Source§impl<TxReq> Default for SimulatePayload<TxReq>
impl<TxReq> Default for SimulatePayload<TxReq>
Source§fn default() -> SimulatePayload<TxReq>
fn default() -> SimulatePayload<TxReq>
Source§impl<'de, TxReq> Deserialize<'de> for SimulatePayload<TxReq>where
TxReq: Deserialize<'de>,
impl<'de, TxReq> Deserialize<'de> for SimulatePayload<TxReq>where
TxReq: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulatePayload<TxReq>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulatePayload<TxReq>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl<TxReq> Serialize for SimulatePayload<TxReq>where
TxReq: Serialize,
impl<TxReq> Serialize for SimulatePayload<TxReq>where
TxReq: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl<TxReq> Freeze for SimulatePayload<TxReq>
impl<TxReq> RefUnwindSafe for SimulatePayload<TxReq>where
TxReq: RefUnwindSafe,
impl<TxReq> Send for SimulatePayload<TxReq>where
TxReq: Send,
impl<TxReq> Sync for SimulatePayload<TxReq>where
TxReq: Sync,
impl<TxReq> Unpin for SimulatePayload<TxReq>where
TxReq: Unpin,
impl<TxReq> UnsafeUnpin for SimulatePayload<TxReq>
impl<TxReq> UnwindSafe for SimulatePayload<TxReq>where
TxReq: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes