diff --git a/Cargo.lock b/Cargo.lock index 7b4a648c5409..e061218c3372 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2304,7 +2304,6 @@ dependencies = [ "pallet-utility", "pallet-vesting", "parity-scale-codec", - "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", "rustc-hex", @@ -4351,7 +4350,6 @@ dependencies = [ "pallet-treasury", "pallet-vesting", "parity-scale-codec", - "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", "rustc-hex", @@ -4401,7 +4399,6 @@ dependencies = [ "pallet-treasury", "pallet-vesting", "parity-scale-codec", - "polkadot-parachain", "polkadot-primitives", "rustc-hex", "serde", diff --git a/parachain/src/primitives.rs b/parachain/src/primitives.rs index ff8b222e0f9c..54c6907f4201 100644 --- a/parachain/src/primitives.rs +++ b/parachain/src/primitives.rs @@ -33,8 +33,8 @@ use sp_core::bytes; pub type RelayChainBlockNumber = u32; /// Parachain head data included in the chain. -#[derive(PartialEq, Eq, Clone, PartialOrd, Ord, Encode, Decode)] -#[cfg_attr(feature = "std", derive(Serialize, Deserialize, Debug, Default))] +#[derive(PartialEq, Eq, Clone, PartialOrd, Ord, Encode, Decode, RuntimeDebug)] +#[cfg_attr(feature = "std", derive(Serialize, Deserialize, Default))] pub struct HeadData(#[cfg_attr(feature = "std", serde(with="bytes"))] pub Vec); impl From> for HeadData { @@ -44,8 +44,8 @@ impl From> for HeadData { } /// Parachain validation code. -#[derive(Default, PartialEq, Eq, Clone, Encode, Decode)] -#[cfg_attr(feature = "std", derive(Serialize, Deserialize, Debug))] +#[derive(Default, PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] +#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] pub struct ValidationCode(#[cfg_attr(feature = "std", serde(with="bytes"))] pub Vec); impl From> for ValidationCode { diff --git a/primitives/src/parachain.rs b/primitives/src/parachain.rs index fbe8170716b6..295e4a73c25a 100644 --- a/primitives/src/parachain.rs +++ b/primitives/src/parachain.rs @@ -672,7 +672,7 @@ sp_api::decl_runtime_apis! { /// Get the local validation data for a particular parachain. fn local_validation_data(id: Id) -> Option; /// Get the given parachain's head code blob. - fn parachain_code(id: Id) -> Option>; + fn parachain_code(id: Id) -> Option; /// Extract the abridged head that was set in the extrinsics. fn get_heads(extrinsics: Vec<::Extrinsic>) -> Option>; diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 8fe805e89b08..26ef1f78c90f 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -32,7 +32,6 @@ offences = { package = "pallet-offences", git = "https://github.com/paritytech/s frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } -polkadot-parachain = { path = "../../parachain", default-features = false } libsecp256k1 = { version = "0.3.2", default-features = false, optional = true } [dev-dependencies] @@ -57,7 +56,6 @@ std = [ "codec/std", "inherents/std", "sp-core/std", - "polkadot-parachain/std", "sp-api/std", "sp-std/std", "sp-io/std", diff --git a/runtime/kusama/Cargo.toml b/runtime/kusama/Cargo.toml index c7d796eec693..566ba0b62f59 100644 --- a/runtime/kusama/Cargo.toml +++ b/runtime/kusama/Cargo.toml @@ -64,7 +64,6 @@ frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } -polkadot-parachain = { path = "../../parachain", default-features = false } [dev-dependencies] hex-literal = "0.2.1" @@ -91,7 +90,6 @@ std = [ "codec/std", "inherents/std", "sp-core/std", - "polkadot-parachain/std", "sp-api/std", "tx-pool-api/std", "block-builder-api/std", diff --git a/runtime/polkadot/Cargo.toml b/runtime/polkadot/Cargo.toml index 305eae524fa0..22fb630c10c1 100644 --- a/runtime/polkadot/Cargo.toml +++ b/runtime/polkadot/Cargo.toml @@ -61,7 +61,6 @@ frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } -polkadot-parachain = { path = "../../parachain", default-features = false } [dev-dependencies] hex-literal = "0.2.1" @@ -88,7 +87,6 @@ std = [ "codec/std", "inherents/std", "sp-core/std", - "polkadot-parachain/std", "sp-api/std", "tx-pool-api/std", "block-builder-api/std",