feat(cli): add ChainSpecParser type to rethCli (#11772)

This commit is contained in:
Kunal Arora
2024-10-17 22:02:29 +05:30
committed by GitHub
parent 9db28d91a4
commit 1aa3ce1a5a

View File

@ -15,6 +15,7 @@ use std::{borrow::Cow, ffi::OsString};
/// The chainspec module defines the different chainspecs that can be used by the node.
pub mod chainspec;
use crate::chainspec::ChainSpecParser;
/// Reth based node cli.
///
@ -23,6 +24,9 @@ pub mod chainspec;
/// It provides commonly used functionality for running commands and information about the CL, such
/// as the name and version.
pub trait RethCli: Sized {
/// The associated `ChainSpecParser` type
type ChainSpecParser: ChainSpecParser;
/// The name of the implementation, eg. `reth`, `op-reth`, etc.
fn name(&self) -> Cow<'static, str>;