mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 10:41:01 +00:00
Removed Sudo pallet
This commit is contained in:
Generated
-1
@@ -995,7 +995,6 @@ dependencies = [
|
|||||||
"pallet-collator-selection",
|
"pallet-collator-selection",
|
||||||
"pallet-session",
|
"pallet-session",
|
||||||
"pallet-shift-session-manager",
|
"pallet-shift-session-manager",
|
||||||
"pallet-sudo",
|
|
||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"pallet-transaction-payment",
|
"pallet-transaction-payment",
|
||||||
"pallet-transaction-payment-rpc-runtime-api",
|
"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-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-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-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-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 = { 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" }
|
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-shift-session-manager/std",
|
||||||
"pallet-collator-selection/std",
|
"pallet-collator-selection/std",
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-sudo/std",
|
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
|
|||||||
@@ -452,11 +452,6 @@ impl pallet_collator_selection::Config for Runtime {
|
|||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_sudo::Config for Runtime {
|
|
||||||
type RuntimeCall = RuntimeCall;
|
|
||||||
type RuntimeEvent = RuntimeEvent;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add bridge pallets (GPA)
|
// Add bridge pallets (GPA)
|
||||||
|
|
||||||
/// Add granda bridge pallet to track Wococo relay chain on Rococo BridgeHub
|
/// 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,
|
BridgeRococoGrandpa: pallet_bridge_grandpa::<Instance2>::{Pallet, Call, Storage, Config<T>} = 43,
|
||||||
BridgeRococoParachain: pallet_bridge_parachains::<Instance2>::{Pallet, Call, Storage, Event<T>} = 44,
|
BridgeRococoParachain: pallet_bridge_parachains::<Instance2>::{Pallet, Call, Storage, Event<T>} = 44,
|
||||||
BridgeRococoMessages: pallet_bridge_messages::<Instance2>::{Pallet, Call, Storage, Event<T>, Config<T>} = 45,
|
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",
|
"rococo",
|
||||||
ParaId::new(1013),
|
ParaId::new(1013),
|
||||||
None,
|
None,
|
||||||
None,
|
|
||||||
)))
|
)))
|
||||||
} else {
|
} else {
|
||||||
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
|
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
|
||||||
@@ -86,7 +85,6 @@ impl BridgeHubRuntimeType {
|
|||||||
ChainType::Local,
|
ChainType::Local,
|
||||||
"rococo-local",
|
"rococo-local",
|
||||||
ParaId::new(1013),
|
ParaId::new(1013),
|
||||||
Some("Alice".to_string()),
|
|
||||||
Some("Bob".to_string()),
|
Some("Bob".to_string()),
|
||||||
))),
|
))),
|
||||||
BridgeHubRuntimeType::Wococo { default_config } =>
|
BridgeHubRuntimeType::Wococo { default_config } =>
|
||||||
@@ -98,7 +96,6 @@ impl BridgeHubRuntimeType {
|
|||||||
"wococo",
|
"wococo",
|
||||||
ParaId::new(1014),
|
ParaId::new(1014),
|
||||||
None,
|
None,
|
||||||
None,
|
|
||||||
)))
|
)))
|
||||||
} else {
|
} else {
|
||||||
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
|
Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes(
|
||||||
@@ -111,7 +108,6 @@ impl BridgeHubRuntimeType {
|
|||||||
ChainType::Local,
|
ChainType::Local,
|
||||||
"wococo-local",
|
"wococo-local",
|
||||||
ParaId::new(1014),
|
ParaId::new(1014),
|
||||||
Some("Alice".to_string()),
|
|
||||||
Some("Bob".to_string()),
|
Some("Bob".to_string()),
|
||||||
))),
|
))),
|
||||||
}
|
}
|
||||||
@@ -166,7 +162,6 @@ pub mod rococo {
|
|||||||
chain_type: ChainType,
|
chain_type: ChainType,
|
||||||
relay_chain: &str,
|
relay_chain: &str,
|
||||||
para_id: ParaId,
|
para_id: ParaId,
|
||||||
root_key_seed: Option<String>,
|
|
||||||
bridges_pallet_owner_seed: Option<String>,
|
bridges_pallet_owner_seed: Option<String>,
|
||||||
) -> BridgeHubChainSpec {
|
) -> BridgeHubChainSpec {
|
||||||
let properties = sc_chain_spec::Properties::new();
|
let properties = sc_chain_spec::Properties::new();
|
||||||
@@ -209,9 +204,6 @@ pub mod rococo {
|
|||||||
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
|
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
|
||||||
],
|
],
|
||||||
para_id,
|
para_id,
|
||||||
root_key_seed
|
|
||||||
.as_ref()
|
|
||||||
.map(|seed| get_account_id_from_seed::<sr25519::Public>(&seed)),
|
|
||||||
bridges_pallet_owner_seed
|
bridges_pallet_owner_seed
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|seed| get_account_id_from_seed::<sr25519::Public>(&seed)),
|
.map(|seed| get_account_id_from_seed::<sr25519::Public>(&seed)),
|
||||||
@@ -230,7 +222,6 @@ pub mod rococo {
|
|||||||
invulnerables: Vec<(AccountId, AuraId)>,
|
invulnerables: Vec<(AccountId, AuraId)>,
|
||||||
endowed_accounts: Vec<AccountId>,
|
endowed_accounts: Vec<AccountId>,
|
||||||
id: ParaId,
|
id: ParaId,
|
||||||
root_key: Option<AccountId>,
|
|
||||||
bridges_pallet_owner: Option<AccountId>,
|
bridges_pallet_owner: Option<AccountId>,
|
||||||
) -> bridge_hub_rococo_runtime::GenesisConfig {
|
) -> bridge_hub_rococo_runtime::GenesisConfig {
|
||||||
bridge_hub_rococo_runtime::GenesisConfig {
|
bridge_hub_rococo_runtime::GenesisConfig {
|
||||||
@@ -267,8 +258,6 @@ pub mod rococo {
|
|||||||
polkadot_xcm: bridge_hub_rococo_runtime::PolkadotXcmConfig {
|
polkadot_xcm: bridge_hub_rococo_runtime::PolkadotXcmConfig {
|
||||||
safe_xcm_version: Some(SAFE_XCM_VERSION),
|
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 {
|
bridge_wococo_grandpa: bridge_hub_rococo_runtime::BridgeWococoGrandpaConfig {
|
||||||
owner: bridges_pallet_owner.clone(),
|
owner: bridges_pallet_owner.clone(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@@ -308,7 +297,6 @@ pub mod wococo {
|
|||||||
chain_type: ChainType,
|
chain_type: ChainType,
|
||||||
relay_chain: &str,
|
relay_chain: &str,
|
||||||
para_id: ParaId,
|
para_id: ParaId,
|
||||||
root_key_seed: Option<String>,
|
|
||||||
bridges_pallet_owner_seed: Option<String>,
|
bridges_pallet_owner_seed: Option<String>,
|
||||||
) -> BridgeHubChainSpec {
|
) -> BridgeHubChainSpec {
|
||||||
rococo::default_config(
|
rococo::default_config(
|
||||||
@@ -317,7 +305,6 @@ pub mod wococo {
|
|||||||
chain_type,
|
chain_type,
|
||||||
relay_chain,
|
relay_chain,
|
||||||
para_id,
|
para_id,
|
||||||
root_key_seed,
|
|
||||||
bridges_pallet_owner_seed,
|
bridges_pallet_owner_seed,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user