-
Notifications
You must be signed in to change notification settings - Fork 680
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
Improvements in solochain template #5111
base: master
Are you sure you want to change the base?
Conversation
substrate/frame/src/lib.rs
Outdated
@@ -233,6 +233,7 @@ pub mod runtime { | |||
pub use sp_block_builder::*; | |||
pub use sp_consensus_aura::*; | |||
pub use sp_consensus_grandpa::*; | |||
pub use sp_genesis_builder::*; |
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.
IMO we should directly pull in the Result
here as GenesisBuilderResult
. Maybe directly rename it in the crate to make it even more obvious.
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.
IMO we should directly pull in the
Result
here asGenesisBuilderResult
. Maybe directly rename it in the crate to make it even more obvious.
Exported it from the frame
crate but didn't rename in sp-genesis-builder
to avoid a breaking change.
The CI pipeline was cancelled due to failure one of the required jobs. |
The CI pipeline was cancelled due to failure one of the required jobs. |
ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, KeyOwnerProofSystem, Randomness, | ||
StorageInfo, | ||
use frame::{ | ||
deps::{ |
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 mean, if we use deps
, there is little benefit in using this crate overall, other than a cleaner Cargo.toml
file.
I am tempted to even add a warning to deps
to prevent deps
being used recklessly..
vec![] | ||
} | ||
} | ||
} | ||
|
||
pub mod interface { |
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 a good idea, isolating what needs to be exported to node or other crates.
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.
The T17 label was already allocated here: paritytech/labels#42 |
Will this be completed? we can find someone else to finish it perhaps. |
This PR adds the following changes:
frame
crate in the solochain templatesp-genesis-builder
via theframe
crateserde
feature in theframe
crate