pub struct L1BlockInfoBedrock {
    pub number: u64,
    pub time: u64,
    pub base_fee: u64,
    pub block_hash: B256,
    pub sequence_number: u64,
    pub batcher_address: Address,
    pub l1_fee_overhead: U256,
    pub l1_fee_scalar: U256,
}Expand description
Represents the fields within a Bedrock L1 block info transaction.
Bedrock Binary Format
Fields§
§number: u64The current L1 origin block number
time: u64The current L1 origin block’s timestamp
base_fee: u64The current L1 origin block’s basefee
block_hash: B256The current L1 origin block’s hash
sequence_number: u64The current sequence number
batcher_address: AddressThe address of the batch submitter
l1_fee_overhead: U256The fee overhead for L1 data
l1_fee_scalar: U256The fee scalar for L1 data
Implementations§
source§impl L1BlockInfoBedrock
 
impl L1BlockInfoBedrock
sourcepub fn encode_calldata(&self) -> Bytes
 
pub fn encode_calldata(&self) -> Bytes
Encodes the L1BlockInfoBedrock object into Ethereum transaction calldata.
sourcepub fn decode_calldata(r: &[u8]) -> Result<Self, DecodeError>
 
pub fn decode_calldata(r: &[u8]) -> Result<Self, DecodeError>
Decodes the L1BlockInfoBedrock object from ethereum transaction calldata.
Trait Implementations§
source§impl Clone for L1BlockInfoBedrock
 
impl Clone for L1BlockInfoBedrock
source§fn clone(&self) -> L1BlockInfoBedrock
 
fn clone(&self) -> L1BlockInfoBedrock
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for L1BlockInfoBedrock
 
impl Debug for L1BlockInfoBedrock
source§impl Default for L1BlockInfoBedrock
 
impl Default for L1BlockInfoBedrock
source§fn default() -> L1BlockInfoBedrock
 
fn default() -> L1BlockInfoBedrock
source§impl<'de> Deserialize<'de> for L1BlockInfoBedrock
 
impl<'de> Deserialize<'de> for L1BlockInfoBedrock
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 Hash for L1BlockInfoBedrock
 
impl Hash for L1BlockInfoBedrock
source§impl PartialEq for L1BlockInfoBedrock
 
impl PartialEq for L1BlockInfoBedrock
source§impl Serialize for L1BlockInfoBedrock
 
impl Serialize for L1BlockInfoBedrock
impl Copy for L1BlockInfoBedrock
impl Eq for L1BlockInfoBedrock
impl StructuralPartialEq for L1BlockInfoBedrock
Auto Trait Implementations§
impl Freeze for L1BlockInfoBedrock
impl RefUnwindSafe for L1BlockInfoBedrock
impl Send for L1BlockInfoBedrock
impl Sync for L1BlockInfoBedrock
impl Unpin for L1BlockInfoBedrock
impl UnwindSafe for L1BlockInfoBedrock
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
impl<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: 152 bytes