pub struct ZenithEthBundle {
pub bundle: EthSendBundle,
pub host_fills: Option<SignedOrder>,
}Expand description
Wraps a flashbots style EthSendBundle with host fills to make a Zenith compatible bundle
Fields§
§bundle: EthSendBundleThe bundle of transactions to simulate. Same structure as a Flashbots EthSendBundle bundle. see https://github.com/alloy-rs/alloy/blob/main/crates/rpc-types-mev/src/eth_calls.rs#L121-L139
host_fills: Option<SignedOrder>Host fills to be applied with the bundle, represented as a signed permit2 order.
Implementations§
Source§impl ZenithEthBundle
impl ZenithEthBundle
Sourcepub const fn block_number(&self) -> u64
pub const fn block_number(&self) -> u64
Returns the block number for this bundle.
Sourcepub const fn min_timestamp(&self) -> Option<u64>
pub const fn min_timestamp(&self) -> Option<u64>
Returns the minimum timestamp for this bundle.
Sourcepub const fn max_timestamp(&self) -> Option<u64>
pub const fn max_timestamp(&self) -> Option<u64>
Returns the maximum timestamp for this bundle.
Sourcepub fn reverting_tx_hashes(&self) -> &[B256]
pub fn reverting_tx_hashes(&self) -> &[B256]
Returns the reverting tx hashes for this bundle.
Sourcepub fn replacement_uuid(&self) -> Option<&str>
pub fn replacement_uuid(&self) -> Option<&str>
Returns the replacement uuid for this bundle.
Trait Implementations§
Source§impl Clone for ZenithEthBundle
impl Clone for ZenithEthBundle
Source§fn clone(&self) -> ZenithEthBundle
fn clone(&self) -> ZenithEthBundle
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 ZenithEthBundle
impl Debug for ZenithEthBundle
Source§impl<'de> Deserialize<'de> for ZenithEthBundle
impl<'de> Deserialize<'de> for ZenithEthBundle
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
Source§impl PartialEq for ZenithEthBundle
impl PartialEq for ZenithEthBundle
Source§impl Serialize for ZenithEthBundle
impl Serialize for ZenithEthBundle
impl Eq for ZenithEthBundle
impl StructuralPartialEq for ZenithEthBundle
Auto Trait Implementations§
impl !Freeze for ZenithEthBundle
impl RefUnwindSafe for ZenithEthBundle
impl Send for ZenithEthBundle
impl Sync for ZenithEthBundle
impl Unpin for ZenithEthBundle
impl UnwindSafe for ZenithEthBundle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreCreates a shared type from an unshared type.