pub struct SimulatePayload {
pub block_state_calls: Vec<SimBlock>,
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>
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 SimulatePayload
impl SimulatePayload
sourcepub fn extend_blocks(self, blocks: impl IntoIterator<Item = SimBlock>) -> Self
pub fn extend_blocks(self, blocks: impl IntoIterator<Item = SimBlock>) -> 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 Clone for SimulatePayload
impl Clone for SimulatePayload
source§fn clone(&self) -> SimulatePayload
fn clone(&self) -> SimulatePayload
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 Debug for SimulatePayload
impl Debug for SimulatePayload
source§impl Default for SimulatePayload
impl Default for SimulatePayload
source§fn default() -> SimulatePayload
fn default() -> SimulatePayload
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SimulatePayload
impl<'de> Deserialize<'de> for SimulatePayload
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 Freeze for SimulatePayload
impl RefUnwindSafe for SimulatePayload
impl Send for SimulatePayload
impl Sync for SimulatePayload
impl Unpin for SimulatePayload
impl UnwindSafe for SimulatePayload
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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