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