Trait RethL1BlockInfo
pub trait RethL1BlockInfo {
// Required methods
fn l1_tx_data_fee(
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &[u8],
is_deposit: bool,
) -> Result<Uint<256, 4>, BlockExecutionError>;
fn l1_data_gas(
&self,
chain_spec: &ChainSpec,
timestamp: u64,
input: &[u8],
) -> Result<Uint<256, 4>, BlockExecutionError>;
}
Available on crate feature
optimism
only.Expand description
An extension trait for [L1BlockInfo
] that allows us to calculate the L1 cost of a transaction
based off of the ChainSpec
’s activated hardfork.