pub struct SimulatedBundle {
pub hash: BundleHash,
pub coinbase_diff: U256,
pub coinbase_tip: U256,
pub gas_price: U256,
pub gas_used: U256,
pub gas_fees: U256,
pub simulation_block: U64,
pub transactions: Vec<SimulatedTransaction>,
}
Expand description
Details of a simulated bundle.
The details of a bundle that has been simulated.
Fields§
§hash: BundleHash
The bundle’s hash.
coinbase_diff: U256
The difference in coinbase’s balance due to this bundle.
This includes total gas fees and coinbase tips.
coinbase_tip: U256
The amount of Eth sent to coinbase in this bundle.
gas_price: U256
The gas price of the bundle.
gas_used: U256
The total amount of gas used in this bundle.
gas_fees: U256
The total amount of gas fees in this bundle.
simulation_block: U64
The block at which this bundle was simulated.
transactions: Vec<SimulatedTransaction>
The simulated transactions in this bundle.
Implementations§
Source§impl SimulatedBundle
impl SimulatedBundle
Sourcepub fn effective_gas_price(&self) -> U256
pub fn effective_gas_price(&self) -> U256
The effective gas price of the transaction,
i.e. coinbase_diff / gas_used
.
Note that this is also an approximation of the bundle’s score.
pub fn find_tx(&self, tx_hash: TxHash) -> Option<&SimulatedTransaction>
Trait Implementations§
Source§impl Clone for SimulatedBundle
impl Clone for SimulatedBundle
Source§fn clone(&self) -> SimulatedBundle
fn clone(&self) -> SimulatedBundle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SimulatedBundle
impl Debug for SimulatedBundle
Source§impl<'de> Deserialize<'de> for SimulatedBundle
impl<'de> Deserialize<'de> for SimulatedBundle
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>,
Auto Trait Implementations§
impl Freeze for SimulatedBundle
impl RefUnwindSafe for SimulatedBundle
impl Send for SimulatedBundle
impl Sync for SimulatedBundle
impl Unpin for SimulatedBundle
impl UnwindSafe for SimulatedBundle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
impl<T> RpcObject for Twhere
T: RpcParam + RpcReturn,
impl<T> RpcParam for T
impl<T> RpcReturn for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 224 bytes