ArbTransactionEnv

Trait ArbTransactionEnv 

Source
pub trait ArbTransactionEnv: TransactionEnv {
    // Required methods
    fn set_gas_price(&mut self, gas_price: u128);
    fn set_gas_priority_fee(&mut self, fee: Option<u128>);
}
Expand description

Extension trait for transaction environments that support gas price mutation.

Arbitrum needs to cap the gas price to the base fee when dropping tips, which requires mutating fields not exposed by the standard TransactionEnv trait.

Required Methods§

Source

fn set_gas_price(&mut self, gas_price: u128)

Set the effective gas price (max_fee_per_gas for EIP-1559, gas_price for legacy).

Source

fn set_gas_priority_fee(&mut self, fee: Option<u128>)

Set the max priority fee per gas (tip cap).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ArbTransactionEnv for TxEnv

Source§

fn set_gas_price(&mut self, gas_price: u128)

Source§

fn set_gas_priority_fee(&mut self, fee: Option<u128>)

Implementors§