Trait reth_node_core::rpc::types::optimism::OptimismPayloadUtils
pub trait OptimismPayloadUtils {
// Required methods
fn to_l2_block_ref(
&self,
rollup_config: &RollupConfig,
) -> Result<L2BlockInfo, ToL2BlockRefError>;
fn to_system_config(
&self,
rollup_config: &RollupConfig,
) -> Result<SystemConfig, ToSystemConfigError>;
}
Expand description
Defines conversion utility methods for Optimism-specific payloads.
Required Methods§
fn to_l2_block_ref(
&self,
rollup_config: &RollupConfig,
) -> Result<L2BlockInfo, ToL2BlockRefError>
fn to_l2_block_ref( &self, rollup_config: &RollupConfig, ) -> Result<L2BlockInfo, ToL2BlockRefError>
Converts the payload into an L2BlockInfo.
fn to_system_config(
&self,
rollup_config: &RollupConfig,
) -> Result<SystemConfig, ToSystemConfigError>
fn to_system_config( &self, rollup_config: &RollupConfig, ) -> Result<SystemConfig, ToSystemConfigError>
Converts the payload into a SystemConfig.