Add Ellaism to SpecType
This commit is contained in:
parent
dcf6e1d83d
commit
fcd1f72806
@ -36,6 +36,7 @@ pub enum SpecType {
|
|||||||
Classic,
|
Classic,
|
||||||
Expanse,
|
Expanse,
|
||||||
Musicoin,
|
Musicoin,
|
||||||
|
Ellaism,
|
||||||
Dev,
|
Dev,
|
||||||
Custom(String),
|
Custom(String),
|
||||||
}
|
}
|
||||||
@ -59,6 +60,7 @@ impl str::FromStr for SpecType {
|
|||||||
"olympic" => SpecType::Olympic,
|
"olympic" => SpecType::Olympic,
|
||||||
"expanse" => SpecType::Expanse,
|
"expanse" => SpecType::Expanse,
|
||||||
"musicoin" => SpecType::Musicoin,
|
"musicoin" => SpecType::Musicoin,
|
||||||
|
"ellaism" => SpecType::Ellaism,
|
||||||
"dev" => SpecType::Dev,
|
"dev" => SpecType::Dev,
|
||||||
other => SpecType::Custom(other.into()),
|
other => SpecType::Custom(other.into()),
|
||||||
};
|
};
|
||||||
@ -76,6 +78,7 @@ impl fmt::Display for SpecType {
|
|||||||
SpecType::Classic => "classic",
|
SpecType::Classic => "classic",
|
||||||
SpecType::Expanse => "expanse",
|
SpecType::Expanse => "expanse",
|
||||||
SpecType::Musicoin => "musicoin",
|
SpecType::Musicoin => "musicoin",
|
||||||
|
SpecType::Ellaism => "ellaism",
|
||||||
SpecType::Kovan => "kovan",
|
SpecType::Kovan => "kovan",
|
||||||
SpecType::Dev => "dev",
|
SpecType::Dev => "dev",
|
||||||
SpecType::Custom(ref custom) => custom,
|
SpecType::Custom(ref custom) => custom,
|
||||||
@ -94,6 +97,7 @@ impl SpecType {
|
|||||||
SpecType::Classic => Ok(ethereum::new_classic(params)),
|
SpecType::Classic => Ok(ethereum::new_classic(params)),
|
||||||
SpecType::Expanse => Ok(ethereum::new_expanse(params)),
|
SpecType::Expanse => Ok(ethereum::new_expanse(params)),
|
||||||
SpecType::Musicoin => Ok(ethereum::new_musicoin(params)),
|
SpecType::Musicoin => Ok(ethereum::new_musicoin(params)),
|
||||||
|
SpecType::Ellaism => Ok(ethereum::new_ellaism(params)),
|
||||||
SpecType::Kovan => Ok(ethereum::new_kovan(params)),
|
SpecType::Kovan => Ok(ethereum::new_kovan(params)),
|
||||||
SpecType::Dev => Ok(Spec::new_instant()),
|
SpecType::Dev => Ok(Spec::new_instant()),
|
||||||
SpecType::Custom(ref filename) => {
|
SpecType::Custom(ref filename) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user