-
Notifications
You must be signed in to change notification settings - Fork 335
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
Add pallet_parameters. #2898
Add pallet_parameters. #2898
Conversation
Co-authored-by: Rodrigo Quelhas <[email protected]>
Please not merge, we need MBF feedback to know the list of constants they want to move to storage |
pub mod runtime_config { | ||
// for fees, 80% are burned, 20% to the treasury | ||
#[codec(index = 0)] | ||
pub static FeesTreasuryPercentage: Perbill = Perbill::from_percent(20); |
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 could probably be Percent
instead of Perbill
. But not an issue.
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.
It's to give ability to add more precision if needed in the future.
@@ -1124,6 +1124,10 @@ macro_rules! impl_runtime_apis_plus_common { | |||
hex_literal::hex!( "0d715f2646c8f85767b5d2764bb27826" | |||
"04a74d81251e398fd8a0a4d55023bb3f") | |||
.to_vec().into(), | |||
// Parameters Parameters |
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.
Parameters Parameters is a map, not a value.
This whitelist do nothing then, as we can whitelist only full keys
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.
Is there no option to whitelist an entire storage?
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.
I don't think so, we have to edit manually this list each time we add a parameter
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.
fixed
Closed in favor of #2923. (Branch should be on moonbeam repo) |
What does it do?
Add pallet_parameters to allow setting constants using a root origin.
What important points reviewers should know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?