pub struct SimulatePayload<TxReq = TransactionRequest> {
pub block_state_calls: Vec<SimBlock<TxReq>>,
pub trace_transfers: bool,
pub validation: bool,
pub return_full_transactions: bool,
}
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: bool
Flag to determine whether to trace ERC20/ERC721 token transfers within transactions.
validation: bool
Flag to enable or disable validation of the transaction sequence in the blocks.
return_full_transactions: bool
Flag 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_blocks(
self,
blocks: impl IntoIterator<Item = SimBlock<TxReq>>,
) -> Self
pub fn extend_blocks( self, blocks: impl IntoIterator<Item = SimBlock<TxReq>>, ) -> Self
Adds multiple blocks to the simulation payload.
Sourcepub const fn with_trace_transfers(self) -> Self
pub const fn with_trace_transfers(self) -> Self
Enables tracing of token transfers.
Sourcepub const fn with_validation(self) -> Self
pub const fn with_validation(self) -> Self
Enables validation of the transaction sequence.
Sourcepub const fn with_full_transactions(self) -> Self
pub const fn with_full_transactions(self) -> Self
Enables returning full transactions.
Trait Implementations§
Source§impl<TxReq: Clone> Clone for SimulatePayload<TxReq>
impl<TxReq: Clone> Clone for SimulatePayload<TxReq>
Source§fn clone(&self) -> SimulatePayload<TxReq>
fn clone(&self) -> SimulatePayload<TxReq>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<TxReq: Debug> Debug for SimulatePayload<TxReq>
impl<TxReq: Debug> Debug for SimulatePayload<TxReq>
Source§impl<TxReq> Default for SimulatePayload<TxReq>
impl<TxReq> Default for 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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> 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more