maili_rpc/output.rs
//! Output Types
use crate::{L2BlockRef, SyncStatus};
use alloy_primitives::B256;
/// An [output response][or] for Optimism Rollup.
///
/// [or]: https://github.com/ethereum-optimism/optimism/blob/f20b92d3eb379355c876502c4f28e72a91ab902f/op-service/eth/output.go#L10-L17
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
pub struct OutputResponse {
/// The output version.
pub version: B256,
/// The output root hash.
pub output_root: B256,
/// A reference to the L2 block.
pub block_ref: L2BlockRef,
/// The withdrawal storage root.
pub withdrawal_storage_root: B256,
/// The state root.
pub state_root: B256,
/// The status of the node sync.
pub sync_status: SyncStatus,
}