reth_optimism_node

Function parse_l1_info_tx_ecotone

Source
pub fn parse_l1_info_tx_ecotone(
    data: &[u8],
) -> Result<L1BlockInfo, OptimismBlockExecutionError>
Available on crate feature optimism only.
Expand description

Updates the L1 block values for an Ecotone upgraded chain. Params are packed and passed in as raw msg.data instead of ABI to reduce calldata size. Params are expected to be in the following order:

  1. _baseFeeScalar L1 base fee scalar
  2. _blobBaseFeeScalar L1 blob base fee scalar
  3. _sequenceNumber Number of L2 blocks since epoch start.
  4. _timestamp L1 timestamp.
  5. _number L1 blocknumber.
  6. _basefee L1 base fee.
  7. _blobBaseFee L1 blob base fee.
  8. _hash L1 blockhash.
  9. _batcherHash Versioned hash to authenticate batcher by.

https://github.com/ethereum-optimism/optimism/blob/957e13dd504fb336a4be40fb5dd0d8ba0276be34/packages/contracts-bedrock/src/L2/L1Block.sol#L136