feat: Rebrand Polkadot/Substrate references to PezkuwiChain

This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
2025-12-14 00:04:10 +03:00
parent 286de54384
commit 1c0e57d984
9084 changed files with 997839 additions and 997557 deletions
@@ -15,8 +15,8 @@
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
use bitvec::{bitvec, prelude::Lsb0};
use frame_benchmarking::v2::*;
use pallet_message_queue as mq;
use pezframe_benchmarking::v2::*;
use pezpallet_message_queue as mq;
use pezkuwi_primitives::{
CandidateCommitments, CommittedCandidateReceiptV2 as CommittedCandidateReceipt, HrmpChannelId,
OutboundHrmpMessage, SessionIndex,
@@ -17,8 +17,8 @@ pub mod v0 {
use crate::inclusion::{Config, Pallet};
use bitvec::{order::Lsb0 as BitOrderLsb0, vec::BitVec};
use codec::{Decode, Encode};
use frame_support::{storage_alias, Twox64Concat};
use frame_system::pallet_prelude::BlockNumberFor;
use pezframe_support::{storage_alias, Twox64Concat};
use pezframe_system::pezpallet_prelude::BlockNumberFor;
use pezkuwi_primitives::{
AvailabilityBitfield, CandidateCommitments, CandidateDescriptorV2 as CandidateDescriptor,
CandidateHash, CoreIndex, GroupIndex, Id as ParaId, ValidatorIndex,
@@ -48,7 +48,7 @@ pub mod v0 {
Pallet<T>,
Twox64Concat,
ParaId,
CandidatePendingAvailability<<T as frame_system::Config>::Hash, BlockNumberFor<T>>,
CandidatePendingAvailability<<T as pezframe_system::Config>::Hash, BlockNumberFor<T>>,
>;
#[storage_alias]
@@ -74,13 +74,13 @@ mod v1 {
PendingAvailability as V1PendingAvailability,
};
use alloc::{collections::vec_deque::VecDeque, vec::Vec};
use frame_support::{traits::UncheckedOnRuntimeUpgrade, weights::Weight};
use sp_core::Get;
use pezframe_support::{traits::UncheckedOnRuntimeUpgrade, weights::Weight};
use pezsp_core::Get;
#[cfg(feature = "try-runtime")]
use codec::{Decode, Encode};
#[cfg(feature = "try-runtime")]
use frame_support::{
use pezframe_support::{
ensure,
traits::{GetStorageVersion, StorageVersion},
};
@@ -89,7 +89,7 @@ mod v1 {
impl<T: Config> UncheckedOnRuntimeUpgrade for VersionUncheckedMigrateToV1<T> {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<Vec<u8>, sp_runtime::TryRuntimeError> {
fn pre_upgrade() -> Result<Vec<u8>, pezsp_runtime::TryRuntimeError> {
log::trace!(target: crate::inclusion::LOG_TARGET, "Running pre_upgrade() for inclusion MigrateToV1");
let candidates_before_upgrade = V0PendingAvailability::<T>::iter().count();
let commitments_before_upgrade = V0PendingAvailabilityCommitments::<T>::iter().count();
@@ -155,7 +155,7 @@ mod v1 {
}
#[cfg(feature = "try-runtime")]
fn post_upgrade(state: Vec<u8>) -> Result<(), sp_runtime::TryRuntimeError> {
fn post_upgrade(state: Vec<u8>) -> Result<(), pezsp_runtime::TryRuntimeError> {
log::trace!(target: crate::inclusion::LOG_TARGET, "Running post_upgrade() for inclusion MigrateToV1");
ensure!(
Pallet::<T>::on_chain_storage_version() >= StorageVersion::new(1),
@@ -197,12 +197,12 @@ mod v1 {
/// - merges the `PendingAvailabilityCommitments` into the `CandidatePendingAvailability`
/// storage
/// - removes the `AvailabilityBitfields` storage, which was never read.
pub type MigrateToV1<T> = frame_support::migrations::VersionedMigration<
pub type MigrateToV1<T> = pezframe_support::migrations::VersionedMigration<
0,
1,
VersionUncheckedMigrateToV1<T>,
Pallet<T>,
<T as frame_system::Config>::DbWeight,
<T as pezframe_system::Config>::DbWeight,
>;
}
@@ -216,7 +216,7 @@ mod tests {
},
mock::{new_test_ext, MockGenesisConfig, Test},
};
use frame_support::traits::UncheckedOnRuntimeUpgrade;
use pezframe_support::traits::UncheckedOnRuntimeUpgrade;
use pezkuwi_primitives::{AvailabilityBitfield, Id as ParaId};
use pezkuwi_primitives_test_helpers::{
dummy_candidate_commitments, dummy_candidate_descriptor_v2, dummy_hash,
+11 -11
View File
@@ -35,14 +35,14 @@ use alloc::{
use bitvec::{order::Lsb0 as BitOrderLsb0, vec::BitVec};
use codec::{Decode, DecodeWithMemTracking, Encode};
use core::fmt;
use frame_support::{
use pezframe_support::{
defensive,
pallet_prelude::*,
pezpallet_prelude::*,
traits::{EnqueueMessage, Footprint, QueueFootprint, QueueFootprintQuery},
BoundedSlice,
};
use frame_system::pallet_prelude::*;
use pallet_message_queue::OnQueueChanged;
use pezframe_system::pezpallet_prelude::*;
use pezpallet_message_queue::OnQueueChanged;
use pezkuwi_primitives::{
effective_minimum_backing_votes, skip_ump_signals, supermajority_threshold, well_known_keys,
BackedCandidate, CandidateCommitments, CandidateDescriptorV2 as CandidateDescriptor,
@@ -52,7 +52,7 @@ use pezkuwi_primitives::{
ValidatorIndex, ValidityAttestation,
};
use scale_info::TypeInfo;
use sp_runtime::{traits::One, DispatchError, SaturatedConversion, Saturating};
use pezsp_runtime::{traits::One, DispatchError, SaturatedConversion, Saturating};
pub use pallet::*;
@@ -268,7 +268,7 @@ impl From<u32> for AggregateMessageOrigin {
pub type MaxUmpMessageLenOf<T> =
<<T as Config>::MessageQueue as EnqueueMessage<AggregateMessageOrigin>>::MaxMessageLen;
#[frame_support::pallet]
#[pezframe_support::pallet]
pub mod pallet {
use super::*;
@@ -280,7 +280,7 @@ pub mod pallet {
#[pallet::config]
pub trait Config:
frame_system::Config
pezframe_system::Config
+ shared::Config
+ paras::Config
+ dmp::Config
@@ -289,7 +289,7 @@ pub mod pallet {
+ scheduler::Config
{
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
type DisputesHandler: disputes::DisputesHandler<BlockNumberFor<Self>>;
type RewardValidators: RewardValidators;
@@ -647,7 +647,7 @@ impl<T: Config> Pallet<T> {
return Ok(Default::default());
}
let now = frame_system::Pallet::<T>::block_number();
let now = pezframe_system::Pallet::<T>::block_number();
let validators = shared::ActiveValidatorKeys::<T>::get();
// Collect candidate receipts with backers.
@@ -880,7 +880,7 @@ impl<T: Config> Pallet<T> {
if let Some(new_code) = commitments.new_validation_code {
// Block number of candidate's inclusion.
let now = frame_system::Pallet::<T>::block_number();
let now = pezframe_system::Pallet::<T>::block_number();
paras::Pallet::<T>::schedule_code_upgrade(
receipt.descriptor.para_id(),
@@ -1235,7 +1235,7 @@ impl<T: Config> CandidateCheckContext<T> {
pub(crate) fn verify_backed_candidate(
&self,
allowed_relay_parents: &AllowedRelayParentsTracker<T::Hash, BlockNumberFor<T>>,
backed_candidate_receipt: &CommittedCandidateReceipt<<T as frame_system::Config>::Hash>,
backed_candidate_receipt: &CommittedCandidateReceipt<<T as pezframe_system::Config>::Hash>,
parent_head_data: HeadData,
) -> Result<BlockNumberFor<T>, Error<T>> {
let para_id = backed_candidate_receipt.descriptor.para_id();
@@ -33,17 +33,17 @@ use pezkuwi_primitives::{
use assert_matches::assert_matches;
use codec::DecodeAll;
use frame_support::assert_noop;
use pezframe_support::assert_noop;
use pezkuwi_primitives::{
BlockNumber, CandidateCommitments, CollatorId, CollatorSignature,
CompactStatement as Statement, Hash, MutateDescriptorV2, SignedAvailabilityBitfield,
SignedStatement, ValidationCode, ValidatorId, ValidityAttestation, TEYRCHAIN_KEY_TYPE_ID,
};
use pezkuwi_primitives_test_helpers::{dummy_validation_code, CandidateDescriptor};
use sc_keystore::LocalKeystore;
use sp_core::ByteArray;
use sp_keyring::Sr25519Keyring;
use sp_keystore::{Keystore, KeystorePtr};
use pezsc_keystore::LocalKeystore;
use pezsp_core::ByteArray;
use pezsp_keyring::Sr25519Keyring;
use pezsp_keystore::{Keystore, KeystorePtr};
use std::sync::Arc;
fn default_config() -> HostConfiguration<BlockNumber> {
@@ -349,7 +349,7 @@ impl TestCandidateBuilder {
}
pub(crate) fn make_vdata_hash(para_id: ParaId) -> Option<Hash> {
let relay_parent_number = frame_system::Pallet::<Test>::block_number() - 1;
let relay_parent_number = pezframe_system::Pallet::<Test>::block_number() - 1;
make_vdata_hash_with_block_number(para_id, relay_parent_number)
}
@@ -371,7 +371,7 @@ fn simple_sanitize_bitfields(
disputed_bitfield: DisputedBitfield,
expected_bits: usize,
) -> SignedAvailabilityBitfields {
let parent_hash = frame_system::Pallet::<Test>::parent_hash();
let parent_hash = pezframe_system::Pallet::<Test>::parent_hash();
let session_index = shared::CurrentSessionIndex::<Test>::get();
let validators = shared::ActiveValidatorKeys::<Test>::get();