use super::*;
use crate::governance::referenda::FastGeneralAdminOrRoot;
pub type TreasuryCouncilInstance = pallet_collective::Instance3;
pub type OpenTechCommitteeInstance = pallet_collective::Instance4;
parameter_types! {
pub MaxProposalWeight: Weight = Perbill::from_percent(50) * RuntimeBlockWeights::get().max_block;
}
impl pallet_collective::Config<TreasuryCouncilInstance> for Runtime {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeEvent = RuntimeEvent;
type Proposal = RuntimeCall;
type MotionDuration = ConstU32<{ 3 * DAYS }>;
type MaxProposals = ConstU32<20>;
type MaxMembers = ConstU32<9>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonriver_weights::pallet_collective_treasury_council::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
type DisapproveOrigin = FastGeneralAdminOrRoot;
type KillOrigin = FastGeneralAdminOrRoot;
type Consideration = ();
}
impl pallet_collective::Config<OpenTechCommitteeInstance> for Runtime {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeEvent = RuntimeEvent;
type Proposal = RuntimeCall;
type MotionDuration = ConstU32<{ 14 * DAYS }>;
type MaxProposals = ConstU32<100>;
type MaxMembers = ConstU32<100>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonriver_weights::pallet_collective_open_tech_committee::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
type DisapproveOrigin = FastGeneralAdminOrRoot;
type KillOrigin = FastGeneralAdminOrRoot;
type Consideration = ();
}