Skip to content

Commit

Permalink
(ranked_collective) adapt paritytech/polkadot-sdk#2587 (ExchangeOrigin)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Feb 19, 2024
1 parent 502808b commit 7272865
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions relay/kusama/src/governance/fellowship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
TryMapSuccess<origins::EnsureFellowship, CheckedReduceBy<ConstU16<2>>>,
>,
>;
// TODO:(PR#187)(PR#2587): check ExchangeOrigin
// Exchange is by any of:
// - Root can exchange arbitrarily.
// - the Fellows origin
type ExchangeOrigin =
EitherOf<frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>, Fellows>;
type Polls = FellowshipReferenda;
type MinRankOfClass = sp_runtime::traits::Identity;
type VoteWeight = pallet_ranked_collective::Geometric;
Expand Down
18 changes: 18 additions & 0 deletions relay/kusama/src/weights/pallet_ranked_collective.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
Replace<ConstU16<{ ranks::DAN_9 }>>,
>,
>;
// TODO:(PR#187)(PR#2587): check ExchangeOrigin
// Exchange is by any of:
// - Root can exchange arbitrarily.
// - the Fellows origin
type ExchangeOrigin =
EitherOf<frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>>;
type Polls = FellowshipReferenda;
type MinRankOfClass = tracks::MinRankOfClass;
type VoteWeight = pallet_ranked_collective::Geometric;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7272865

Please sign in to comment.