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 e4778b4576
commit 379cb741ed
9082 changed files with 997824 additions and 997542 deletions
+15 -15
View File
@@ -41,11 +41,11 @@ rand = { workspace = true, default-features = true }
rand_chacha = { workspace = true, default-features = true }
# rand_core should match schnorrkel
rand_core = { workspace = true }
sc-keystore = { workspace = true }
sp-application-crypto = { features = ["full_crypto"], workspace = true }
sp-consensus = { workspace = true }
sp-consensus-slots = { workspace = true }
sp-runtime = { workspace = true }
pezsc-keystore = { workspace = true }
pezsp-application-crypto = { features = ["full_crypto"], workspace = true }
pezsp-consensus = { workspace = true }
pezsp-consensus-slots = { workspace = true }
pezsp-runtime = { workspace = true }
[dev-dependencies]
assert_matches = { workspace = true }
@@ -54,11 +54,11 @@ parking_lot = { workspace = true, default-features = true }
pezkuwi-node-subsystem-test-helpers = { workspace = true }
pezkuwi-primitives = { workspace = true, features = ["test"] }
pezkuwi-primitives-test-helpers = { workspace = true }
sp-consensus-babe = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
sp-keyring = { workspace = true, default-features = true }
sp-keystore = { workspace = true, default-features = true }
sp-tracing = { workspace = true }
pezsp-consensus-babe = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
pezsp-keyring = { workspace = true, default-features = true }
pezsp-keystore = { workspace = true, default-features = true }
pezsp-tracing = { workspace = true }
pezkuwi-subsystem-bench = { workspace = true }
@@ -74,9 +74,9 @@ runtime-benchmarks = [
"pezkuwi-primitives-test-helpers/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-subsystem-bench/runtime-benchmarks",
"sp-consensus-babe/runtime-benchmarks",
"sp-consensus-slots/runtime-benchmarks",
"sp-consensus/runtime-benchmarks",
"sp-keyring/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pezsp-consensus-babe/runtime-benchmarks",
"pezsp-consensus-slots/runtime-benchmarks",
"pezsp-consensus/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -28,7 +28,7 @@
//!
//! As such, we provide a function from this module to clear the database on start-up.
//! In the future, we may use a temporary DB which doesn't need to be wiped, but for the
//! time being we share the same DB with the rest of Substrate.
//! time being we share the same DB with the rest of Bizinikiwi.
pub mod common;
pub mod v1;
@@ -28,7 +28,7 @@ use pezkuwi_primitives::{
BlockNumber, CandidateHash, CandidateReceiptV2 as CandidateReceipt, CoreIndex, GroupIndex,
Hash, SessionIndex, ValidatorIndex, ValidatorSignature,
};
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use std::collections::BTreeMap;
use super::v2::Bitfield;
@@ -26,7 +26,7 @@ use crate::{
use pezkuwi_node_primitives::approval::v1::AssignmentCertKind;
use pezkuwi_node_subsystem_util::database::Database;
use sp_application_crypto::sp_core::H256;
use pezsp_application_crypto::pezsp_core::H256;
use std::{collections::HashSet, sync::Arc};
fn make_block_entry_v1(
@@ -25,7 +25,7 @@ use pezkuwi_primitives::{
GroupIndex, Hash, SessionIndex, ValidatorIndex, ValidatorSignature,
};
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use bitvec::{order::Lsb0 as BitOrderLsb0, vec::BitVec};
use std::collections::BTreeMap;
@@ -32,7 +32,7 @@ use pezkuwi_primitives::{
use pezkuwi_node_subsystem_util::database::Database;
use pezkuwi_primitives::Id as ParaId;
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use std::{collections::HashMap, sync::Arc};
use pezkuwi_primitives_test_helpers::{
@@ -26,7 +26,7 @@ use crate::{
};
use pezkuwi_node_primitives::approval::v1::AssignmentCertKind;
use pezkuwi_node_subsystem_util::database::Database;
use sp_application_crypto::sp_core::H256;
use pezsp_application_crypto::pezsp_core::H256;
use std::{collections::HashSet, sync::Arc};
/// Migrates `BlockEntry`, `CandidateEntry`, `ApprovalEntry` and `OurApproval` to version 3.
@@ -29,7 +29,7 @@ use pezkuwi_primitives::{
GroupIndex, Hash, SessionIndex, ValidatorIndex, ValidatorSignature,
};
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use std::collections::BTreeMap;
@@ -31,7 +31,7 @@ use pezkuwi_primitives::{
use pezkuwi_node_subsystem_util::database::Database;
use pezkuwi_primitives::Id as ParaId;
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use std::{collections::HashMap, sync::Arc};
use pezkuwi_primitives_test_helpers::{
@@ -34,8 +34,8 @@ use pezkuwi_primitives::{
};
use rand::{seq::SliceRandom, SeedableRng};
use rand_chacha::ChaCha20Rng;
use sc_keystore::LocalKeystore;
use sp_application_crypto::ByteArray;
use pezsc_keystore::LocalKeystore;
use pezsp_application_crypto::ByteArray;
use merlin::Transcript;
use schnorrkel::vrf::VRFInOut;
@@ -261,8 +261,8 @@ pub fn compute_assignments(
match keystore.key_pair(p) {
Ok(Some(pair)) => Some((ValidatorIndex(i as _), pair)),
Ok(None) => None,
Err(sc_keystore::Error::Unavailable) => None,
Err(sc_keystore::Error::Io(e)) if e.kind() == std::io::ErrorKind::NotFound => None,
Err(pezsc_keystore::Error::Unavailable) => None,
Err(pezsc_keystore::Error::Io(e)) if e.kind() == std::io::ErrorKind::NotFound => None,
Err(e) => {
gum::warn!(target: LOG_TARGET, "Encountered keystore error: {:?}", e);
None
@@ -292,7 +292,7 @@ pub fn compute_assignments(
"Assigning to candidates from different backing groups"
);
let assignments_key: &sp_application_crypto::sr25519::Pair = assignments_key.as_ref();
let assignments_key: &pezsp_application_crypto::sr25519::Pair = assignments_key.as_ref();
let assignments_key: &schnorrkel::Keypair = assignments_key.as_ref();
let mut assignments = HashMap::new();
@@ -719,10 +719,10 @@ mod tests {
use super::*;
use crate::import::tests::garbage_vrf_signature;
use pezkuwi_primitives::{AssignmentId, Hash, ASSIGNMENT_KEY_TYPE_ID};
use sp_application_crypto::sr25519;
use sp_core::crypto::Pair as PairT;
use sp_keyring::sr25519::Keyring as Sr25519Keyring;
use sp_keystore::Keystore;
use pezsp_application_crypto::sr25519;
use pezsp_core::crypto::Pair as PairT;
use pezsp_keyring::sr25519::Keyring as Sr25519Keyring;
use pezsp_keystore::Keystore;
// sets up a keystore with the given keyring accounts.
fn make_keystore(accounts: &[Sr25519Keyring]) -> LocalKeystore {
@@ -49,8 +49,8 @@ use pezkuwi_primitives::{
CandidateReceiptV2 as CandidateReceipt, ConsensusLog, CoreIndex, GroupIndex, Hash, Header,
SessionIndex,
};
use sc_keystore::LocalKeystore;
use sp_consensus_slots::Slot;
use pezsc_keystore::LocalKeystore;
use pezsp_consensus_slots::Slot;
use bitvec::order::Lsb0 as BitOrderLsb0;
use futures::{channel::oneshot, prelude::*};
@@ -190,7 +190,7 @@ async fn imported_block_info<Sender: SubsystemSender<RuntimeApiMessage>>(
// want to use the block hash itself, and here's why:
//
// First off, 'epoch' in BABE means 'session' in other places. 'epoch' is the terminology
// from the paper, which we fulfill using 'session's, which are a Substrate consensus
// from the paper, which we fulfill using 'session's, which are a Bizinikiwi consensus
// concept.
//
// In BABE, the on-chain and off-chain view of the current epoch can differ at epoch
@@ -471,7 +471,7 @@ pub(crate) async fn handle_new_head<
let validator_group_lens: Vec<usize> =
session_info.validator_groups.iter().map(|v| v.len()).collect();
// insta-approve candidates on low-node testnets:
// cf. https://github.com/paritytech/polkadot/issues/2411
// cf. https://github.com/pezkuwichain/kurdistan-sdk/issues/134
let num_candidates = included_candidates.len();
let approved_bitfield = {
if needed_approvals == 0 {
@@ -628,13 +628,13 @@ pub(crate) mod tests {
};
use pezkuwi_primitives_test_helpers::{dummy_candidate_receipt_v2, dummy_hash};
use schnellru::{ByLength, LruMap};
pub(crate) use sp_consensus_babe::{
pub(crate) use pezsp_consensus_babe::{
digests::{CompatibleDigestItem, PreDigest, SecondaryVRFPreDigest},
AllowedSlots, BabeEpochConfiguration, Epoch as BabeEpoch,
};
use sp_core::{crypto::VrfSecret, testing::TaskExecutor};
use sp_keyring::sr25519::Keyring as Sr25519Keyring;
pub(crate) use sp_runtime::{Digest, DigestItem};
use pezsp_core::{crypto::VrfSecret, testing::TaskExecutor};
use pezsp_keyring::sr25519::Keyring as Sr25519Keyring;
pub(crate) use pezsp_runtime::{Digest, DigestItem};
use std::{pin::Pin, sync::Arc};
use crate::{approval_db::common::Config as DatabaseConfig, criteria, BlockEntry};
+5 -5
View File
@@ -58,10 +58,10 @@ use pezkuwi_primitives::{
Hash, SessionIndex, SessionInfo, ValidatorId, ValidatorIndex, ValidatorPair,
ValidatorSignature,
};
use sc_keystore::LocalKeystore;
use sp_application_crypto::Pair;
use sp_consensus::SyncOracle;
use sp_consensus_slots::Slot;
use pezsc_keystore::LocalKeystore;
use pezsp_application_crypto::Pair;
use pezsp_consensus::SyncOracle;
use pezsp_consensus_slots::Slot;
use std::time::Instant;
// The max number of blocks we keep track of assignments gathering times. Normally,
@@ -1552,7 +1552,7 @@ pub async fn start_approval_worker<
// of actions are generated by handling a single action.
//
// This particular problem statement is specified in issue 3311:
// https://github.com/paritytech/polkadot/issues/3311
// https://github.com/pezkuwichain/kurdistan-sdk/issues/142
//
// returns `true` if any of the actions was a `Conclude` command.
#[overseer::contextbounds(ApprovalVoting, prefix = self::overseer)]
+1 -1
View File
@@ -175,7 +175,7 @@ pub fn canonicalize(
// due to the fork pruning, this range actually might go too far above where our actual highest
// block is, if a relatively short fork is canonicalized.
// TODO https://github.com/paritytech/polkadot/issues/3389
// TODO https://github.com/pezkuwichain/kurdistan-sdk/issues/143
let new_range = StoredBlockRange(canon_number + 1, std::cmp::max(range.1, canon_number + 2));
overlay_db.write_stored_block_range(new_range);
@@ -29,7 +29,7 @@ use pezkuwi_primitives::{
BlockNumber, CandidateHash, CandidateIndex, CandidateReceiptV2 as CandidateReceipt, CoreIndex,
GroupIndex, Hash, SessionIndex, ValidatorIndex, ValidatorSignature,
};
use sp_consensus_slots::Slot;
use pezsp_consensus_slots::Slot;
use bitvec::{order::Lsb0 as BitOrderLsb0, slice::BitSlice};
use std::collections::BTreeMap;
@@ -50,8 +50,8 @@ use std::{cmp::max, time::Duration};
use assert_matches::assert_matches;
use parking_lot::Mutex;
use sp_keyring::sr25519::Keyring as Sr25519Keyring;
use sp_keystore::Keystore;
use pezsp_keyring::sr25519::Keyring as Sr25519Keyring;
use pezsp_keystore::Keystore;
use std::{
pin::Pin,
sync::{
@@ -540,12 +540,12 @@ fn test_harness<T: Future<Output = VirtualOverseer>>(
config: HarnessConfig,
test: impl FnOnce(TestHarness) -> T,
) {
sp_tracing::init_for_tests();
pezsp_tracing::init_for_tests();
let HarnessConfig { sync_oracle, sync_oracle_handle, clock, backend, assignment_criteria } =
config;
let pool = sp_core::testing::TaskExecutor::new();
let pool = pezsp_core::testing::TaskExecutor::new();
let (mut context, virtual_overseer) =
pezkuwi_node_subsystem_test_helpers::make_subsystem_context(pool.clone());