@@ -25,7 +25,10 @@ use std::str::FromStr;
2525#[ derive( Debug , PartialEq ) ]
2626pub enum BridgeHubRuntimeType {
2727 Kusama ,
28+ KusamaLocal ,
29+
2830 Polkadot ,
31+ PolkadotLocal ,
2932
3033 Rococo ,
3134 RococoLocal ,
@@ -44,7 +47,9 @@ impl FromStr for BridgeHubRuntimeType {
4447 fn from_str ( value : & str ) -> Result < Self , Self :: Err > {
4548 match value {
4649 polkadot:: BRIDGE_HUB_POLKADOT => Ok ( BridgeHubRuntimeType :: Polkadot ) ,
50+ polkadot:: BRIDGE_HUB_POLKADOT_LOCAL => Ok ( BridgeHubRuntimeType :: PolkadotLocal ) ,
4751 kusama:: BRIDGE_HUB_KUSAMA => Ok ( BridgeHubRuntimeType :: Kusama ) ,
52+ kusama:: BRIDGE_HUB_KUSAMA_LOCAL => Ok ( BridgeHubRuntimeType :: KusamaLocal ) ,
4853 westend:: BRIDGE_HUB_WESTEND => Ok ( BridgeHubRuntimeType :: Westend ) ,
4954 westend:: BRIDGE_HUB_WESTEND_LOCAL => Ok ( BridgeHubRuntimeType :: WestendLocal ) ,
5055 westend:: BRIDGE_HUB_WESTEND_DEVELOPMENT => Ok ( BridgeHubRuntimeType :: WestendDevelopment ) ,
@@ -103,6 +108,7 @@ impl BridgeHubRuntimeType {
103108 Some ( "Bob" . to_string ( ) ) ,
104109 |_| ( ) ,
105110 ) ) ) ,
111+ other => Err ( std:: format!( "No default config present for {:?}" , other) ) ,
106112 }
107113 }
108114}
@@ -242,6 +248,7 @@ pub mod rococo {
242248/// Sub-module for Kusama setup
243249pub mod kusama {
244250 pub ( crate ) const BRIDGE_HUB_KUSAMA : & str = "bridge-hub-kusama" ;
251+ pub ( crate ) const BRIDGE_HUB_KUSAMA_LOCAL : & str = "bridge-hub-kusama-local" ;
245252}
246253
247254/// Sub-module for Westend setup.
@@ -358,4 +365,5 @@ pub mod westend {
358365/// Sub-module for Polkadot setup
359366pub mod polkadot {
360367 pub ( crate ) const BRIDGE_HUB_POLKADOT : & str = "bridge-hub-polkadot" ;
368+ pub ( crate ) const BRIDGE_HUB_POLKADOT_LOCAL : & str = "bridge-hub-polkadot-local" ;
361369}
0 commit comments