Skip to content

Commit 2b7d269

Browse files
committed
NODE-161, feat: Collective: dynamic deposit based on number of proposals (paritytech/polkadot-sdk#3151)
1 parent f220edc commit 2b7d269

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

runtime/dev/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ impl pallet_collective::Config<CouncilInstance> for Runtime {
487487
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
488488
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
489489
type MaxProposalWeight = MaxProposalWeight;
490+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
491+
type KillOrigin = EnsureRoot<Self::AccountId>;
492+
type Consideration = ();
490493
}
491494

492495
/// A type that represents a technical committee member for governance
@@ -504,6 +507,9 @@ impl pallet_collective::Config<TechCommitteeInstance> for Runtime {
504507
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
505508
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
506509
type MaxProposalWeight = MaxProposalWeight;
510+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
511+
type KillOrigin = EnsureRoot<Self::AccountId>;
512+
type Consideration = ();
507513
}
508514

509515
/// A type that represents a relay executive member for governance
@@ -521,6 +527,9 @@ impl pallet_collective::Config<RelayExecutiveInstance> for Runtime {
521527
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
522528
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
523529
type MaxProposalWeight = MaxProposalWeight;
530+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
531+
type KillOrigin = EnsureRoot<Self::AccountId>;
532+
type Consideration = ();
524533
}
525534

526535
type MoreThanHalfCouncil = EitherOfDiverse<

runtime/mainnet/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ impl pallet_collective::Config<RelayExecutiveInstance> for Runtime {
519519
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
520520
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
521521
type MaxProposalWeight = MaxProposalWeight;
522+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
523+
type KillOrigin = EnsureRoot<Self::AccountId>;
524+
type Consideration = ();
522525
}
523526

524527
/// A type that represents a council member for governance
@@ -536,6 +539,9 @@ impl pallet_collective::Config<CouncilInstance> for Runtime {
536539
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
537540
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
538541
type MaxProposalWeight = MaxProposalWeight;
542+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
543+
type KillOrigin = EnsureRoot<Self::AccountId>;
544+
type Consideration = ();
539545
}
540546

541547
/// A type that represents a technical committee member for governance
@@ -553,6 +559,9 @@ impl pallet_collective::Config<TechCommitteeInstance> for Runtime {
553559
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
554560
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
555561
type MaxProposalWeight = MaxProposalWeight;
562+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
563+
type KillOrigin = EnsureRoot<Self::AccountId>;
564+
type Consideration = ();
556565
}
557566

558567
type MoreThanHalfCouncil = EitherOfDiverse<

runtime/testnet/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ impl pallet_collective::Config<RelayExecutiveInstance> for Runtime {
525525
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
526526
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
527527
type MaxProposalWeight = MaxProposalWeight;
528+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
529+
type KillOrigin = EnsureRoot<Self::AccountId>;
530+
type Consideration = ();
528531
}
529532

530533
/// A type that represents a council member for governance
@@ -542,6 +545,9 @@ impl pallet_collective::Config<CouncilInstance> for Runtime {
542545
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
543546
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
544547
type MaxProposalWeight = MaxProposalWeight;
548+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
549+
type KillOrigin = EnsureRoot<Self::AccountId>;
550+
type Consideration = ();
545551
}
546552

547553
/// A type that represents a technical committee member for governance
@@ -559,6 +565,9 @@ impl pallet_collective::Config<TechCommitteeInstance> for Runtime {
559565
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
560566
type SetMembersOrigin = EnsureRoot<Self::AccountId>;
561567
type MaxProposalWeight = MaxProposalWeight;
568+
type DisapproveOrigin = EnsureRoot<Self::AccountId>;
569+
type KillOrigin = EnsureRoot<Self::AccountId>;
570+
type Consideration = ();
562571
}
563572

564573
type MoreThanHalfCouncil = EitherOfDiverse<

0 commit comments

Comments
 (0)