Removed Sudo pallet

This commit is contained in:
Branislav Kontur
2022-12-05 16:10:14 +01:00
parent 96b567a3d9
commit a2d2a5cc9b
4 changed files with 0 additions and 24 deletions
Generated
-1
View File
@@ -995,7 +995,6 @@ dependencies = [
"pallet-collator-selection",
"pallet-session",
"pallet-shift-session-manager",
"pallet-sudo",
"pallet-timestamp",
"pallet-transaction-payment",
"pallet-transaction-payment-rpc-runtime-api",
@@ -28,7 +28,6 @@ pallet-aura = { git = "https://github.com/paritytech/substrate", default-feature
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
@@ -125,7 +124,6 @@ std = [
"pallet-shift-session-manager/std",
"pallet-collator-selection/std",
"pallet-session/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
@@ -452,11 +452,6 @@ impl pallet_collator_selection::Config for Runtime {
type WeightInfo = ();
}
impl pallet_sudo::Config for Runtime {
type RuntimeCall = RuntimeCall;
type RuntimeEvent = RuntimeEvent;
}
// Add bridge pallets (GPA)
/// Add granda bridge pallet to track Wococo relay chain on Rococo BridgeHub
@@ -626,9 +621,6 @@ construct_runtime!(
BridgeRococoGrandpa: pallet_bridge_grandpa::<Instance2>::{Pallet, Call, Storage, Config<T>} = 43,
BridgeRococoParachain: pallet_bridge_parachains::<Instance2>::{Pallet, Call, Storage, Event<T>} = 44,
BridgeRococoMessages: pallet_bridge_messages::<Instance2>::{Pallet, Call, Storage, Event<T>, Config<T>} = 45,
// Sudo
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Event<T>, Storage} = 100,
}
);
@@ -73,7 +73,6 @@ impl BridgeHubRuntimeType {
"rococo",
ParaId::new(1013),
None,
None,
)))
} else {
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
@@ -86,7 +85,6 @@ impl BridgeHubRuntimeType {
ChainType::Local,
"rococo-local",
ParaId::new(1013),
Some("Alice".to_string()),
Some("Bob".to_string()),
))),
BridgeHubRuntimeType::Wococo { default_config } =>
@@ -98,7 +96,6 @@ impl BridgeHubRuntimeType {
"wococo",
ParaId::new(1014),
None,
None,
)))
} else {
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
@@ -111,7 +108,6 @@ impl BridgeHubRuntimeType {
ChainType::Local,
"wococo-local",
ParaId::new(1014),
Some("Alice".to_string()),
Some("Bob".to_string()),
))),
}
@@ -166,7 +162,6 @@ pub mod rococo {
chain_type: ChainType,
relay_chain: &str,
para_id: ParaId,
root_key_seed: Option<String>,
bridges_pallet_owner_seed: Option<String>,
) -> BridgeHubChainSpec {
let properties = sc_chain_spec::Properties::new();
@@ -209,9 +204,6 @@ pub mod rococo {
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
],
para_id,
root_key_seed
.as_ref()
.map(|seed| get_account_id_from_seed::<sr25519::Public>(&seed)),
bridges_pallet_owner_seed
.as_ref()
.map(|seed| get_account_id_from_seed::<sr25519::Public>(&seed)),
@@ -230,7 +222,6 @@ pub mod rococo {
invulnerables: Vec<(AccountId, AuraId)>,
endowed_accounts: Vec<AccountId>,
id: ParaId,
root_key: Option<AccountId>,
bridges_pallet_owner: Option<AccountId>,
) -> bridge_hub_rococo_runtime::GenesisConfig {
bridge_hub_rococo_runtime::GenesisConfig {
@@ -267,8 +258,6 @@ pub mod rococo {
polkadot_xcm: bridge_hub_rococo_runtime::PolkadotXcmConfig {
safe_xcm_version: Some(SAFE_XCM_VERSION),
},
// TODO: when go live, check it: https://github.com/paritytech/parity-bridges-common/issues/1551
sudo: bridge_hub_rococo_runtime::SudoConfig { key: root_key },
bridge_wococo_grandpa: bridge_hub_rococo_runtime::BridgeWococoGrandpaConfig {
owner: bridges_pallet_owner.clone(),
..Default::default()
@@ -308,7 +297,6 @@ pub mod wococo {
chain_type: ChainType,
relay_chain: &str,
para_id: ParaId,
root_key_seed: Option<String>,
bridges_pallet_owner_seed: Option<String>,
) -> BridgeHubChainSpec {
rococo::default_config(
@@ -317,7 +305,6 @@ pub mod wococo {
chain_type,
relay_chain,
para_id,
root_key_seed,
bridges_pallet_owner_seed,
)
}