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§

source

fn mev_type(&self) -> MevType

source

fn total_gas_paid(&self) -> u128

The total amount of gas paid by the bundle in wei This includes the coinbase transfer, if any

source

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

source

fn bribe(&self) -> u128

source

fn mev_transaction_hashes(&self) -> Vec<B256>

source

fn protocols(&self) -> HashSet<Protocol>

Implementors§