Parachains inclusion.rs to Frame V2 (#3440)

* frame v2

* migrate runtimes

* migrate more

* comments

* docs

* cleanup

* Adjust visibility on storage items

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
ferrell-code
2021-07-22 00:36:29 -04:00
committed by GitHub
parent 1858ff57fc
commit cf904c209f
9 changed files with 151 additions and 137 deletions
+2 -2
View File
@@ -1482,7 +1482,7 @@ construct_runtime! {
ParachainsOrigin: parachains_origin::{Pallet, Origin} = 50,
ParachainsConfiguration: parachains_configuration::{Pallet, Call, Storage, Config<T>} = 51,
ParasShared: parachains_shared::{Pallet, Call, Storage} = 52,
ParasInclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>} = 53,
ParaInclusion: parachains_inclusion::{Pallet, Call, Storage, Event<T>} = 53,
ParasInherent: parachains_paras_inherent::{Pallet, Call, Storage, Inherent} = 54,
ParasScheduler: parachains_scheduler::{Pallet, Call, Storage} = 55,
Paras: parachains_paras::{Pallet, Call, Storage, Event, Config} = 56,
@@ -1647,7 +1647,7 @@ sp_api::impl_runtime_apis! {
fn candidate_events() -> Vec<CandidateEvent<Hash>> {
parachains_runtime_api_impl::candidate_events::<Runtime, _>(|ev| {
match ev {
Event::ParasInclusion(ev) => {
Event::ParaInclusion(ev) => {
Some(ev)
}
_ => None,