From caf5e13d6fc05bd1ce72a37e8327a99bbee3917b Mon Sep 17 00:00:00 2001 From: Drew Stone Date: Fri, 31 Jul 2020 12:01:39 -0600 Subject: [PATCH] Param updates --- node/runtime/src/lib.rs | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/node/runtime/src/lib.rs b/node/runtime/src/lib.rs index 0131d32d..9557765c 100644 --- a/node/runtime/src/lib.rs +++ b/node/runtime/src/lib.rs @@ -434,17 +434,32 @@ impl pallet_democracy::Trait for Runtime { type MinimumDeposit = MinimumDeposit; /// A straight majority of the council can decide what their next motion is. type ExternalOrigin = pallet_collective::EnsureProportionAtLeast<_1, _2, AccountId, CouncilCollective>; - /// A super-majority can have the next scheduled referendum be a straight majority-carries vote. - type ExternalMajorityOrigin = pallet_collective::EnsureProportionAtLeast<_3, _5, AccountId, CouncilCollective>; - type FastTrackOrigin = pallet_collective::EnsureProportionAtLeast<_3, _4, AccountId, CouncilCollective>; + /// A 60% super-majority can have the next scheduled referendum be a straight majority-carries vote. + type ExternalMajorityOrigin = frame_system::EnsureOneOf, + frame_system::EnsureRoot, + >; + /// Three fourths of the committee can have an ExternalMajority/ExternalDefault vote + /// be tabled immediately and with a shorter voting/enactment period. + type FastTrackOrigin = frame_system::EnsureOneOf, + frame_system::EnsureRoot, + >; type InstantOrigin = frame_system::EnsureNever; type InstantAllowed = InstantAllowed; type FastTrackVotingPeriod = FastTrackVotingPeriod; /// A unanimous council can have the next scheduled referendum be a straight default-carries /// (NTB) vote. - type ExternalDefaultOrigin = pallet_collective::EnsureProportionAtLeast<_1, _1, AccountId, CouncilCollective>; + type ExternalDefaultOrigin = frame_system::EnsureOneOf, + frame_system::EnsureRoot, + >; // To cancel a proposal which has been passed, 2/3 of the council must agree to it. - type CancellationOrigin = pallet_collective::EnsureProportionAtLeast<_2, _3, AccountId, CouncilCollective>; + type CancellationOrigin = frame_system::EnsureOneOf, + frame_system::EnsureRoot, + >; + // No vetoing type VetoOrigin = frame_system::EnsureNever; type CooloffPeriod = CooloffPeriod; type PreimageByteDeposit = PreimageByteDeposit; @@ -455,7 +470,7 @@ impl pallet_democracy::Trait for Runtime { } parameter_types! { - pub const CouncilMotionDuration: BlockNumber = 5 * DAYS; + pub const CouncilMotionDuration: BlockNumber = 14 * DAYS; pub const CouncilMaxProposals: u32 = 100; } @@ -722,7 +737,6 @@ impl pallet_recovery::Trait for Runtime { type RecoveryDeposit = RecoveryDeposit; } - parameter_types! { pub const MinVestedTransfer: Balance = 100 * DOLLARS; // pub const EVMModuleId: ModuleId = ModuleId(*b"py/evmpa");