pub struct L1BlockInfo {
pub l1_gas_price: Option<u128>,
pub l1_gas_used: Option<u128>,
pub l1_fee: Option<u128>,
pub l1_fee_scalar: Option<f64>,
pub l1_base_fee_scalar: Option<u128>,
pub l1_blob_base_fee: Option<u128>,
pub l1_blob_base_fee_scalar: Option<u128>,
}
Expand description
L1 block info extracted from inout of first transaction in every block.
The subset of OptimismTransactionReceiptFields
, that encompasses L1 block
info:
https://github.com/ethereum-optimism/op-geth/blob/f2e69450c6eec9c35d56af91389a1c47737206ca/core/types/receipt.go#L87-L87
Fields§
§l1_gas_price: Option<u128>
L1 base fee is the minimum price per unit of gas.
Present from pre-bedrock as de facto L1 price per unit of gas. L1 base fee after Bedrock.
l1_gas_used: Option<u128>
L1 gas used.
Present from pre-bedrock, deprecated as of Fjord.
l1_fee: Option<u128>
L1 fee for the transaction.
Present from pre-bedrock.
l1_fee_scalar: Option<f64>
L1 fee scalar for the transaction
Present from pre-bedrock to Ecotone. Null after Ecotone.
l1_base_fee_scalar: Option<u128>
L1 base fee scalar. Applied to base fee to compute weighted gas price multiplier.
Always null prior to the Ecotone hardfork.
l1_blob_base_fee: Option<u128>
L1 blob base fee.
Always null prior to the Ecotone hardfork.
l1_blob_base_fee_scalar: Option<u128>
L1 blob base fee scalar. Applied to blob base fee to compute weighted gas price multiplier.
Always null prior to the Ecotone hardfork.
Trait Implementations§
source§impl Clone for L1BlockInfo
impl Clone for L1BlockInfo
source§fn clone(&self) -> L1BlockInfo
fn clone(&self) -> L1BlockInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for L1BlockInfo
impl Debug for L1BlockInfo
source§impl Default for L1BlockInfo
impl Default for L1BlockInfo
source§fn default() -> L1BlockInfo
fn default() -> L1BlockInfo
source§impl<'de> Deserialize<'de> for L1BlockInfo
impl<'de> Deserialize<'de> for L1BlockInfo
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>,
source§impl PartialEq for L1BlockInfo
impl PartialEq for L1BlockInfo
source§impl Serialize for L1BlockInfo
impl Serialize for L1BlockInfo
impl Copy for L1BlockInfo
impl Eq for L1BlockInfo
impl StructuralPartialEq for L1BlockInfo
Auto Trait Implementations§
impl Freeze for L1BlockInfo
impl RefUnwindSafe for L1BlockInfo
impl Send for L1BlockInfo
impl Sync for L1BlockInfo
impl Unpin for L1BlockInfo
impl UnwindSafe for L1BlockInfo
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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 moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 208 bytes