diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index f1a4591a7..0750e898f 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -27,7 +27,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); use frame_support::{ construct_runtime, parameter_types, - traits::{EnsureOneOf, EqualPrivilegeOnly, OnRuntimeUpgrade}, + traits::{EnsureOneOf, EqualPrivilegeOnly, OnRuntimeUpgrade, PrivilegeCmp}, weights::{constants::RocksDbWeight, Weight}, }; use frame_system::EnsureRoot; @@ -212,7 +212,7 @@ parameter_types! { impl cumulus_pallet_parachain_system::Config for Runtime { type Event = Event; - type OnValidationData = (); + type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; type OutboundXcmpMessageSource = (); type DmpMessageHandler = (); @@ -292,7 +292,6 @@ parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; // FIXME: Handle together with other deposits pub const PreimageBaseDeposit: Balance = KILT; - pub const PreimageByteDeposit: Balance = KILT; } impl pallet_preimage::Config for Runtime { @@ -394,14 +393,12 @@ impl pallet_democracy::Config for Runtime { // To cancel a proposal which has been passed, 2/3 of the council must agree to // it. type CancellationOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_2, _3, AccountId, CouncilCollective>, >; // To cancel a proposal before it has been passed, the technical committee must // be unanimous or Root must agree. type CancelProposalOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_1, _1, AccountId, TechnicalCollective>, >; @@ -430,13 +427,11 @@ parameter_types! { } type ApproveOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_3, _5, AccountId, CouncilCollective>, >; type MoreThanHalfCouncil = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionMoreThan<_1, _2, AccountId, CouncilCollective>, >; diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 284d7b87b..d01588919 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -27,7 +27,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); use frame_support::{ construct_runtime, parameter_types, - traits::{Contains, EnsureOneOf, OnRuntimeUpgrade}, + traits::{Contains, EnsureOneOf, OnRuntimeUpgrade, PrivilegeCmp}, weights::{constants::RocksDbWeight, Weight}, }; use frame_system::EnsureRoot; @@ -217,7 +217,7 @@ parameter_types! { impl cumulus_pallet_parachain_system::Config for Runtime { type Event = Event; - type OnValidationData = (); + type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; type OutboundXcmpMessageSource = (); type DmpMessageHandler = (); @@ -297,7 +297,6 @@ parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; // FIXME: Handle together with other deposits pub const PreimageBaseDeposit: Balance = KILT; - pub const PreimageByteDeposit: Balance = KILT; } impl pallet_preimage::Config for Runtime { @@ -399,14 +398,12 @@ impl pallet_democracy::Config for Runtime { // To cancel a proposal which has been passed, 2/3 of the council must agree to // it. type CancellationOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_2, _3, AccountId, CouncilCollective>, >; // To cancel a proposal before it has been passed, the technical committee must // be unanimous or Root must agree. type CancelProposalOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_1, _1, AccountId, TechnicalCollective>, >; @@ -435,13 +432,11 @@ parameter_types! { } type ApproveOrigin = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionAtLeast<_3, _5, AccountId, CouncilCollective>, >; type MoreThanHalfCouncil = EnsureOneOf< - AccountId, EnsureRoot, pallet_collective::EnsureProportionMoreThan<_1, _2, AccountId, CouncilCollective>, >;