-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add identity pallet to the runtime #172
Conversation
I believe that the community will like this feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Thanks for the PR
@@ -553,6 +559,30 @@ impl pallet_preimage::Config for Runtime { | |||
type ByteDeposit = PreimageByteDeposit; | |||
} | |||
|
|||
parameter_types! { | |||
pub const BasicDeposit: Balance = (1) as Balance * 2_000 * 10_000_000 + (258 as Balance) * 100 * 1_000_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the calculation like this? Is there some documentation that can be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from the polkadot runtime.
https://github.com/paritytech/polkadot/blob/d74c60b6489f31f437edb1a19de0d0f6b8ad432e/runtime/polkadot/src/lib.rs#L620
pub const FieldDeposit: Balance = (0) as Balance * 2_000 * 10_000_000 + (66 as Balance) * 100 * 1_000_000; | ||
pub const SubAccountDeposit: Balance = (1) as Balance * 2_000 * 10_000_000 + (53 as Balance) * 100 * 1_000_000; | ||
pub const MaxSubAccounts: u32 = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type ForceOrigin = MoreThanHalfCouncil; | ||
type RegistrarOrigin = MoreThanHalfCouncil; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So then (currently) adding a registrar is a 2 of 3 from the triumvirate?
Wonder if using the Validator set makes more sense? Or perhaps an additional council group can be formed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a team decision, i believe.
No description provided.