renamed OptimismNode to OpNode (#12338)

This commit is contained in:
Steven
2024-11-06 02:30:15 -06:00
committed by GitHub
parent 0c7700f2c7
commit e34a88d2cc
7 changed files with 25 additions and 27 deletions

View File

@@ -51,12 +51,12 @@ impl NodePrimitives for OpPrimitives {
/// Type configuration for a regular Optimism node.
#[derive(Debug, Default, Clone)]
#[non_exhaustive]
pub struct OptimismNode {
pub struct OpNode {
/// Additional Optimism args
pub args: RollupArgs,
}
impl OptimismNode {
impl OpNode {
/// Creates a new instance of the Optimism node type.
pub const fn new(args: RollupArgs) -> Self {
Self { args }
@@ -92,7 +92,7 @@ impl OptimismNode {
}
}
impl<N> Node<N> for OptimismNode
impl<N> Node<N> for OpNode
where
N: FullNodeTypes<Types: NodeTypesWithEngine<Engine = OpEngineTypes, ChainSpec = OpChainSpec>>,
{
@@ -119,13 +119,13 @@ where
}
}
impl NodeTypes for OptimismNode {
impl NodeTypes for OpNode {
type Primitives = OpPrimitives;
type ChainSpec = OpChainSpec;
type StateCommitment = MerklePatriciaTrie;
}
impl NodeTypesWithEngine for OptimismNode {
impl NodeTypesWithEngine for OpNode {
type Engine = OpEngineTypes;
}