Skip to content

Commit

Permalink
Param updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Jul 31, 2020
1 parent f2b3970 commit caf5e13
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AccountId,
pallet_collective::EnsureProportionAtLeast<_3, _5, AccountId, CouncilCollective>,
frame_system::EnsureRoot<AccountId>,
>;
/// 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<AccountId,
collective::EnsureProportionAtLeast<_3, _4, AccountId, CouncilCollective>,
frame_system::EnsureRoot<AccountId>,
>;
type InstantOrigin = frame_system::EnsureNever<AccountId>;
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<AccountId,
pallet_collective::EnsureProportionAtLeast<_1, _1, AccountId, CouncilCollective>,
frame_system::EnsureRoot<AccountId>,
>;
// 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<AccountId,
pallet_collective::EnsureProportionAtLeast<_2, _3, AccountId, CouncilCollective>,
frame_system::EnsureRoot<AccountId>,
>;
// No vetoing
type VetoOrigin = frame_system::EnsureNever<AccountId>;
type CooloffPeriod = CooloffPeriod;
type PreimageByteDeposit = PreimageByteDeposit;
Expand All @@ -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;
}

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit caf5e13

Please sign in to comment.