mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 07:31:03 +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:
@@ -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