Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
b9ac423a
Commit
b9ac423a
authored
1 year ago
by
Gavin Wood
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Runtime: Root can promote on Polkadot Collectives (#2781)
* Runtime: Root can promote on Polkadot Collectives * Fixes
parent
96fa827d
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cumulus/parachains/runtimes/collectives/collectives-polkadot/src/fellowship/mod.rs
+3
-3
3 additions, 3 deletions
...es/collectives/collectives-polkadot/src/fellowship/mod.rs
with
3 additions
and
3 deletions
cumulus/parachains/runtimes/collectives/collectives-polkadot/src/fellowship/mod.rs
+
3
−
3
View file @
b9ac423a
...
...
@@ -29,7 +29,7 @@ use frame_support::{
parameter_types
,
traits
::{
EitherOf
,
EitherOfDiverse
,
MapSuccess
,
OriginTrait
,
TryWithMorphedArg
},
};
use
frame_system
::
Ensure
Never
;
use
frame_system
::
Ensure
RootWithSuccess
;
pub
use
origins
::{
pallet_origins
as
pallet_fellowship_origins
,
Architects
,
EnsureCanPromoteTo
,
EnsureCanRetainAt
,
EnsureFellowship
,
Fellows
,
Masters
,
Members
,
ToVoice
,
...
...
@@ -106,12 +106,12 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
type
WeightInfo
=
weights
::
pallet_ranked_collective
::
WeightInfo
<
Runtime
>
;
type
RuntimeEvent
=
RuntimeEvent
;
// Promotions and the induction of new members are serviced by `FellowshipCore` pallet instance.
type
PromoteOrigin
=
Ensure
Never
<
pallet_ranked_collective
::
Rank
>
;
type
PromoteOrigin
=
Ensure
RootWithSuccess
<
Self
::
AccountId
,
ConstU16
<
{
ranks
::
DAN_9
}
>
>
;
// Demotion is by any of:
// - Root can demote arbitrarily.
// - the FellowshipAdmin origin (i.e. token holder referendum);
type
DemoteOrigin
=
EitherOf
<
frame_system
::
EnsureRootWithSuccess
<
Self
::
AccountId
,
ConstU16
<
{
ranks
::
DAN_9
}
>>
,
EnsureRootWithSuccess
<
Self
::
AccountId
,
ConstU16
<
{
ranks
::
DAN_9
}
>>
,
MapSuccess
<
EnsureXcm
<
IsVoiceOfBody
<
GovernanceLocation
,
FellowshipAdminBodyId
>>
,
Replace
<
ConstU16
<
{
ranks
::
DAN_9
}
>>
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment