-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add council docs & align tools / runtime (#784)
* chore: add council docs & align tools / runtime * chore: revert runtime spec bump
- Loading branch information
1 parent
023de44
commit 5001ae1
Showing
8 changed files
with
84 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 13. Remove sudo functionality | ||
|
||
Date: 2023-07-10 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
We want to remove the sudo functionality from the chain. The main reason being security and not having a "root" key that can do anything on the chain. | ||
|
||
Anything meaning: transfers, creating new accounts, changing the chain configuration, etc. | ||
|
||
## Decision | ||
|
||
Remove Sudo functionality from the chain and allow the `Council` (a group of ppl) to have elevated privileges to do a set of actions. | ||
|
||
These actions are: | ||
|
||
- Upgrading the runtime | ||
- Changing the chain configuration | ||
- Adding / Removing new council members | ||
- .. | ||
|
||
An important note here is that the council origin is not "root", so the council can only make actions that are allowed by specific pallets. | ||
|
||
For example see `type SetCodeOrigin: EnsureOrigin<Self::RuntimeOrigin>;` in RuntimeUpgrade pallet. This origin is defined in the runtime (runtime/lib.rs) and can only be called by the council. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Council | ||
|
||
The Council is a group of people that have collective interests in the Threefold Chain. The council is responsible for the following: | ||
|
||
- Proposing & Approving runtime upgrades | ||
- Approving chain configuration changes | ||
- Approving new council members | ||
- Approving new validators | ||
- .. | ||
|
||
## Council members | ||
|
||
Council members are configurable at runtime, members can be added and removed by the council itself. | ||
|
||
## Proposals | ||
|
||
Proposals are created by council members and can be voted on by other council members. Proposals can be created as following: | ||
|
||
Browse to the Polkadot UI and connect to the Node, select the `Governance` -> `Council` page | ||
|
||
Select `Motions` on top and click `Propose Motion` on the right. | ||
|
||
Now select any motion (any extrinsic from any pallet can be proposed) and click `Propose` | ||
|
||
## Voting | ||
|
||
Voting can be done by council members, the voting process is as following: | ||
|
||
Browse to the Polkadot UI and connect to the Node, select the `Governance` -> `Council` page | ||
|
||
View any open motion and click `Vote` (Select Aye or Nay) | ||
|
||
## Closing motions | ||
|
||
When a motion is closed, the motion is executed on the chain. This means that the extrinsic is executed and the state of the chain is changed. | ||
|
||
To close a motion, browse to the Polkadot UI and connect to the Node, select the `Governance` -> `Council` page | ||
|
||
View any open motion and click `Close` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters