-
Notifications
You must be signed in to change notification settings - Fork 125
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
Rename runtime configs to something more generic #604
Conversation
@@ -17,9 +17,9 @@ use core::fmt::Debug; | |||
|
|||
/// Default set of commonly used types by Substrate kitchensink runtime. | |||
#[derive(Decode, Encode, Clone, Eq, PartialEq, Debug)] | |||
pub struct SubstrateKitchensinkConfig {} |
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.
Cool, thanks a lot! To avoid a lot of confusion: What would you think about defining a "new" type that has the same name as the old one, but marked with a deprecated?
E.g.
#[deprecated(since="0.14.0", note="Please use `AssetRuntimeConfig` instead, this will be removed in the next release.")]
pub type SubstrateKitchensinkConfig = AssetRuntimeConfig;
Same for the PolkadotConfig
.
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.
Not sure if the "since" works for future releases, but it would certainly help us to note how old the deprecated text is and when to remove it.
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.
Done
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.
😄
b38528d
to
3abbcc2
Compare
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.
🥳
Rename SubstratKitchensinkConfig into AssetRuntimeConfig
Rename PolkadotConfig into DefaultRuntimeConfig
Close ##586