pub struct SimulatePayload {
pub block_state_calls: Vec<SimBlock>,
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>
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(self, block: SimBlock) -> SimulatePayload
pub fn extend(self, block: SimBlock) -> SimulatePayload
Adds a block to the simulation payload.
Sourcepub fn extend_blocks(
self,
blocks: impl IntoIterator<Item = SimBlock>,
) -> SimulatePayload
pub fn extend_blocks( self, blocks: impl IntoIterator<Item = SimBlock>, ) -> SimulatePayload
Adds multiple blocks to the simulation payload.
Sourcepub const fn with_trace_transfers(self) -> SimulatePayload
pub const fn with_trace_transfers(self) -> SimulatePayload
Enables tracing of token transfers.
Sourcepub const fn with_validation(self) -> SimulatePayload
pub const fn with_validation(self) -> SimulatePayload
Enables validation of the transaction sequence.
Sourcepub const fn with_full_transactions(self) -> SimulatePayload
pub const fn with_full_transactions(self) -> SimulatePayload
Enables returning full transactions.
Trait Implementations§
Source§impl Clone for SimulatePayload
impl Clone for SimulatePayload
Source§fn clone(&self) -> SimulatePayload
fn clone(&self) -> SimulatePayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<'de> Deserialize<'de> for SimulatePayload
impl<'de> Deserialize<'de> for SimulatePayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulatePayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimulatePayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SimulatePayload
impl Serialize for SimulatePayload
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 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
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)
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>
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 more