The great refactor (#325)

* Move pallets to pallets folder and rename them

* Move genesis file to service

* Rename primitives to primitives-core

* Delete cumulus-runtime

* Move stuff to client folder and rename
This commit is contained in:
Bastian Köcher
2021-02-10 13:07:21 +01:00
committed by GitHub
parent e065c5776b
commit fbacfe7937
48 changed files with 436 additions and 547 deletions
+4 -6
View File
@@ -30,9 +30,8 @@ sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default
sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
# Cumulus dependencies
cumulus-parachain-system = { path = "../../parachain-system", default-features = false }
cumulus-primitives = { path = "../../primitives", default-features = false }
cumulus-runtime = { path = "../../runtime", default-features = false }
cumulus-pallet-parachain-system = { path = "../../pallets/parachain-system", default-features = false }
cumulus-primitives-core = { path = "../../primitives/core", default-features = false }
# Polkadot dependencies
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "master" }
@@ -44,9 +43,8 @@ substrate-wasm-builder = "3.0.0"
default = [ "std" ]
std = [
"codec/std",
"cumulus-parachain-system/std",
"cumulus-primitives/std",
"cumulus-runtime/std",
"cumulus-pallet-parachain-system/std",
"cumulus-primitives-core/std",
"frame-executive/std",
"frame-support/std",
"frame-system/std",
+4 -4
View File
@@ -207,7 +207,7 @@ impl pallet_sudo::Config for Runtime {
type Event = Event;
}
impl cumulus_parachain_system::Config for Runtime {
impl cumulus_pallet_parachain_system::Config for Runtime {
type SelfParaId = ParachainId;
type Event = Event;
type OnValidationData = ();
@@ -216,7 +216,7 @@ impl cumulus_parachain_system::Config for Runtime {
}
parameter_types! {
pub storage ParachainId: cumulus_primitives::ParaId = 100.into();
pub storage ParachainId: cumulus_primitives_core::ParaId = 100.into();
}
construct_runtime! {
@@ -230,7 +230,7 @@ construct_runtime! {
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
Sudo: pallet_sudo::{Module, Call, Storage, Config<T>, Event<T>},
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
ParachainSystem: cumulus_parachain_system::{Module, Call, Storage, Inherent, Event},
ParachainSystem: cumulus_pallet_parachain_system::{Module, Call, Storage, Inherent, Event},
TransactionPayment: pallet_transaction_payment::{Module, Storage},
}
}
@@ -371,4 +371,4 @@ impl_runtime_apis! {
}
}
cumulus_runtime::register_validate_block!(Block, Executive);
cumulus_pallet_parachain_system::register_validate_block!(Block, Executive);