Trait brontes_types::mev::bundle::Mev
source · pub trait Mev:
Serialize
+ Send
+ Sync
+ Debug
+ 'static
+ DynClone {
// Required methods
fn mev_type(&self) -> MevType;
fn total_gas_paid(&self) -> u128;
fn total_priority_fee_paid(&self, base_fee: u128) -> u128;
fn bribe(&self) -> u128;
fn mev_transaction_hashes(&self) -> Vec<B256>;
fn protocols(&self) -> HashSet<Protocol>;
}
Required Methods§
fn mev_type(&self) -> MevType
sourcefn total_gas_paid(&self) -> u128
fn total_gas_paid(&self) -> u128
The total amount of gas paid by the bundle in wei This includes the coinbase transfer, if any
sourcefn total_priority_fee_paid(&self, base_fee: u128) -> u128
fn total_priority_fee_paid(&self, base_fee: u128) -> u128
The priority fee paid by the bundle in wei Effective gas - base fee * gas used