mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 22:05:42 +00:00
Rename polkadot-parachain to polkadot-parachain-primitives (#1334)
* Rename `polkadot-parachain` to `polkadot-parachain-primitives` While doing this it also fixes some last `rustdoc` issues and fixes another Cargo warning related to `pallet-paged-list`. * Fix compilation * ".git/.scripts/commands/fmt/fmt.sh" * Fix XCM docs --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -28,7 +28,7 @@ sp-trie = { path = "../../../substrate/primitives/trie", default-features = fals
|
||||
sp-version = { path = "../../../substrate/primitives/version", default-features = false}
|
||||
|
||||
# Polkadot
|
||||
polkadot-parachain = { path = "../../../polkadot/parachain", default-features = false, features = [ "wasm-api" ]}
|
||||
polkadot-parachain-primitives = { path = "../../../polkadot/parachain", default-features = false, features = [ "wasm-api" ]}
|
||||
xcm = { package = "staging-xcm", path = "../../../polkadot/xcm", default-features = false}
|
||||
|
||||
# Cumulus
|
||||
@@ -62,7 +62,7 @@ std = [
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"log/std",
|
||||
"polkadot-parachain/std",
|
||||
"polkadot-parachain-primitives/std",
|
||||
"scale-info/std",
|
||||
"sp-core/std",
|
||||
"sp-externalities/std",
|
||||
@@ -79,7 +79,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"frame-support/runtime-benchmarks",
|
||||
"frame-system/runtime-benchmarks",
|
||||
"polkadot-parachain/runtime-benchmarks",
|
||||
"polkadot-parachain-primitives/runtime-benchmarks",
|
||||
"sp-runtime/runtime-benchmarks",
|
||||
]
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ pub fn register_validate_block(input: proc_macro::TokenStream) -> proc_macro::To
|
||||
#check_inherents,
|
||||
>(params);
|
||||
|
||||
#crate_::validate_block::polkadot_parachain::write_result(&res)
|
||||
#crate_::validate_block::polkadot_parachain_primitives::write_result(&res)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ use frame_support::{
|
||||
weights::Weight,
|
||||
};
|
||||
use frame_system::{ensure_none, ensure_root, pallet_prelude::HeaderFor};
|
||||
use polkadot_parachain::primitives::RelayChainBlockNumber;
|
||||
use polkadot_parachain_primitives::primitives::RelayChainBlockNumber;
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::{
|
||||
traits::{Block as BlockT, BlockNumberProvider, Hash},
|
||||
@@ -1429,7 +1429,7 @@ impl<T: Config> Pallet<T> {
|
||||
pub fn initialize_for_set_code_benchmark(max_code_size: u32) {
|
||||
// insert dummy ValidationData
|
||||
let vfp = PersistedValidationData {
|
||||
parent_head: polkadot_parachain::primitives::HeadData(Default::default()),
|
||||
parent_head: polkadot_parachain_primitives::primitives::HeadData(Default::default()),
|
||||
relay_parent_number: 1,
|
||||
relay_parent_storage_root: Default::default(),
|
||||
max_pov_size: 1_000,
|
||||
|
||||
@@ -22,7 +22,9 @@ use cumulus_primitives_core::{
|
||||
};
|
||||
use cumulus_primitives_parachain_inherent::ParachainInherentData;
|
||||
|
||||
use polkadot_parachain::primitives::{HeadData, RelayChainBlockNumber, ValidationResult};
|
||||
use polkadot_parachain_primitives::primitives::{
|
||||
HeadData, RelayChainBlockNumber, ValidationResult,
|
||||
};
|
||||
|
||||
use codec::Encode;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ pub use bytes;
|
||||
pub use codec::decode_from_bytes;
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[doc(hidden)]
|
||||
pub use polkadot_parachain;
|
||||
pub use polkadot_parachain_primitives;
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[doc(hidden)]
|
||||
pub use sp_runtime::traits::GetRuntimeBlockType;
|
||||
@@ -42,15 +42,16 @@ pub use sp_runtime::traits::GetRuntimeBlockType;
|
||||
#[doc(hidden)]
|
||||
pub use sp_std;
|
||||
|
||||
/// Basically the same as [`ValidationParams`](polkadot_parachain::primitives::ValidationParams),
|
||||
/// but a little bit optimized for our use case here.
|
||||
/// Basically the same as
|
||||
/// [`ValidationParams`](polkadot_parachain_primitives::primitives::ValidationParams), but a little
|
||||
/// bit optimized for our use case here.
|
||||
///
|
||||
/// `block_data` and `head_data` are represented as [`bytes::Bytes`] to make them reuse
|
||||
/// the memory of the input parameter of the exported `validate_blocks` function.
|
||||
///
|
||||
/// The layout of this type must match exactly the layout of
|
||||
/// [`ValidationParams`](polkadot_parachain::primitives::ValidationParams) to have the same
|
||||
/// SCALE encoding.
|
||||
/// [`ValidationParams`](polkadot_parachain_primitives::primitives::ValidationParams) to have the
|
||||
/// same SCALE encoding.
|
||||
#[derive(codec::Decode)]
|
||||
#[cfg_attr(feature = "std", derive(codec::Encode))]
|
||||
#[doc(hidden)]
|
||||
|
||||
Reference in New Issue
Block a user