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
@@ -35,14 +35,14 @@ use pezkuwi_primitives::{
use pezkuwi_primitives_test_helpers::dummy_candidate_receipt_v2_bad_sig;
use rand::{seq::SliceRandom, SeedableRng};
use rand_chacha::ChaCha20Rng;
use sc_network_types::PeerId;
use sp_consensus_babe::{
use pezsc_network_types::PeerId;
use pezsp_consensus_babe::{
digests::{CompatibleDigestItem, PreDigest, SecondaryVRFPreDigest},
AllowedSlots, BabeEpochConfiguration, Epoch as BabeEpoch, VrfSignature, VrfTranscript,
};
use sp_core::crypto::VrfSecret;
use sp_keyring::sr25519::Keyring as Sr25519Keyring;
use sp_runtime::{Digest, DigestItem};
use pezsp_core::crypto::VrfSecret;
use pezsp_keyring::sr25519::Keyring as Sr25519Keyring;
use pezsp_runtime::{Digest, DigestItem};
use std::sync::{atomic::AtomicU64, Arc};
/// A fake system clock used for driving the approval voting and make
@@ -46,14 +46,14 @@ use pezkuwi_primitives::{
use rand::{seq::SliceRandom, RngCore, SeedableRng};
use rand_chacha::ChaCha20Rng;
use rand_distr::{Distribution, Normal};
use sc_keystore::LocalKeystore;
use sc_network_types::PeerId;
use sc_service::SpawnTaskHandle;
use pezsc_keystore::LocalKeystore;
use pezsc_network_types::PeerId;
use pezsc_service::SpawnTaskHandle;
use sha1::Digest;
use sp_application_crypto::AppCrypto;
use sp_consensus_babe::SlotDuration;
use sp_keystore::Keystore;
use sp_timestamp::Timestamp;
use pezsp_application_crypto::AppCrypto;
use pezsp_consensus_babe::SlotDuration;
use pezsp_keystore::Keystore;
use pezsp_timestamp::Timestamp;
use std::{
cmp::max,
collections::{BTreeMap, HashSet},
@@ -70,13 +70,13 @@ use pezkuwi_primitives::{
Header, Slot, ValidatorId, ValidatorIndex, ASSIGNMENT_KEY_TYPE_ID,
};
use prometheus::Registry;
use sc_keystore::LocalKeystore;
use sc_service::SpawnTaskHandle;
use pezsc_keystore::LocalKeystore;
use pezsc_service::SpawnTaskHandle;
use serde::{Deserialize, Serialize};
use sp_application_crypto::AppCrypto;
use sp_consensus_babe::Epoch as BabeEpoch;
use sp_core::H256;
use sp_keystore::Keystore;
use pezsp_application_crypto::AppCrypto;
use pezsp_consensus_babe::Epoch as BabeEpoch;
use pezsp_core::H256;
use pezsp_keystore::Keystore;
use std::{
cmp::max,
collections::{HashMap, HashSet},
@@ -22,7 +22,7 @@ use codec::{Decode, Encode};
use itertools::Itertools;
use pezkuwi_node_network_protocol::v3 as protocol_v3;
use pezkuwi_primitives::{CandidateIndex, Hash, ValidatorIndex};
use sc_network_types::PeerId;
use pezsc_network_types::PeerId;
use std::collections::{HashMap, HashSet};
#[derive(Debug, Clone, Encode, Decode, PartialEq, Eq)]
@@ -50,11 +50,11 @@ use pezkuwi_node_subsystem::{
use pezkuwi_node_subsystem_types::messages::{AvailabilityStoreMessage, NetworkBridgeEvent};
use pezkuwi_overseer::{metrics::Metrics as OverseerMetrics, Handle as OverseerHandle};
use pezkuwi_primitives::{Block, CoreIndex, GroupIndex, Hash};
use sc_network::request_responses::{IncomingRequest as RawIncomingRequest, ProtocolConfig};
use pezsc_network::request_responses::{IncomingRequest as RawIncomingRequest, ProtocolConfig};
use std::{ops::Sub, sync::Arc, time::Instant};
use strum::Display;
use sc_service::SpawnTaskHandle;
use pezsc_service::SpawnTaskHandle;
use serde::{Deserialize, Serialize};
pub use test_state::TestState;
@@ -166,20 +166,20 @@ pub fn prepare_test(
let (collation_req_receiver, collation_req_cfg) = IncomingRequest::get_config_receiver::<
Block,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>(&state.req_protocol_names);
req_cfgs.push(collation_req_cfg);
let (pov_req_receiver, pov_req_cfg) = IncomingRequest::get_config_receiver::<
Block,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>(&state.req_protocol_names);
req_cfgs.push(pov_req_cfg);
let (chunk_req_v1_receiver, chunk_req_v1_cfg) =
IncomingRequest::<v1::ChunkFetchingRequest>::get_config_receiver::<
Block,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>(&state.req_protocol_names);
// We won't use v1 chunk fetching requests, but we need to keep the inbound queue alive.
@@ -189,7 +189,7 @@ pub fn prepare_test(
let (chunk_req_v2_receiver, chunk_req_v2_cfg) =
IncomingRequest::<v2::ChunkFetchingRequest>::get_config_receiver::<
Block,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>(&state.req_protocol_names);
let (network, network_interface, network_receiver) = new_network(
@@ -39,7 +39,7 @@ use pezkuwi_primitives::{
ValidatorIndex,
};
use pezkuwi_primitives_test_helpers::{dummy_candidate_receipt_v2, dummy_hash};
use sp_core::H256;
use pezsp_core::H256;
use std::{collections::HashMap, iter::Cycle, sync::Arc};
const LOG_TARGET: &str = "subsystem-bench::availability::test_state";
@@ -22,11 +22,11 @@ use pezkuwi_node_network_protocol::authority_discovery::AuthorityDiscovery;
use pezkuwi_primitives::{AssignmentId, AuthorityDiscoveryId, ValidatorId, ValidatorPair};
use rand::thread_rng;
use rand_distr::{Distribution, Normal, Uniform};
use sc_network::Multiaddr;
use sc_network_types::PeerId;
use pezsc_network::Multiaddr;
use pezsc_network_types::PeerId;
use serde::{Deserialize, Serialize};
use sp_consensus_babe::AuthorityId;
use sp_core::Pair;
use pezsp_consensus_babe::AuthorityId;
use pezsp_core::Pair;
use std::collections::{HashMap, HashSet};
/// Peer networking latency configuration.
@@ -56,12 +56,12 @@ use pezkuwi_overseer::{
Handle as OverseerHandle, Overseer, OverseerConnector, OverseerMetrics, SpawnGlue,
};
use pezkuwi_primitives::{AuthorityDiscoveryId, Block, Hash, ValidatorId};
use sc_keystore::LocalKeystore;
use sc_network::request_responses::IncomingRequest as RawIncomingRequest;
use sc_service::SpawnTaskHandle;
use pezsc_keystore::LocalKeystore;
use pezsc_network::request_responses::IncomingRequest as RawIncomingRequest;
use pezsc_service::SpawnTaskHandle;
use serde::{Deserialize, Serialize};
use sp_keystore::Keystore;
use sp_runtime::RuntimeAppPublic;
use pezsp_keystore::Keystore;
use pezsp_runtime::RuntimeAppPublic;
use std::{sync::Arc, time::Instant};
pub use test_state::TestState;
@@ -106,7 +106,7 @@ fn build_overseer(
let keystore = make_keystore();
let (dispute_req_receiver, dispute_req_cfg) = IncomingRequest::get_config_receiver::<
Block,
sc_network::NetworkWorker<Block, Hash>,
pezsc_network::NetworkWorker<Block, Hash>,
>(&ReqProtocolNames::new(GENESIS_HASH, None));
let mock_runtime_api = MockRuntimeApi::new(
state.config.clone(),
@@ -35,7 +35,7 @@ use pezkuwi_primitives::{
SessionIndex, ValidDisputeStatementKind, ValidatorId, ValidatorIndex,
};
use pezkuwi_primitives_test_helpers::{dummy_candidate_receipt_v2_bad_sig, dummy_hash};
use sp_keystore::KeystorePtr;
use pezsp_keystore::KeystorePtr;
use std::{
collections::{HashMap, HashSet},
sync::{Arc, Mutex},
@@ -30,7 +30,7 @@ use pezkuwi_node_subsystem_util::metrics::prometheus::{
self, Gauge, Histogram, PrometheusError, Registry, U64,
};
use pezkuwi_overseer::{BlockInfo, Handle as OverseerHandle};
use sc_service::{SpawnTaskHandle, TaskManager};
use pezsc_service::{SpawnTaskHandle, TaskManager};
use std::net::{Ipv4Addr, SocketAddr};
use tokio::runtime::Handle;
@@ -394,7 +394,7 @@ impl TestEnvironment {
for subsystem in subsystems_under_test.iter() {
let subsystem_cpu_metrics =
test_metrics.subset_with_label_value("task_group", subsystem);
let total_cpu = subsystem_cpu_metrics.sum_by("substrate_tasks_polling_duration_sum");
let total_cpu = subsystem_cpu_metrics.sum_by("bizinikiwi_tasks_polling_duration_sum");
usage.push(ResourceUsage {
resource_name: subsystem.to_string(),
total: total_cpu,
@@ -403,7 +403,7 @@ impl TestEnvironment {
if break_down_per_task {
for metric in subsystem_cpu_metrics.all() {
if metric.name() != "substrate_tasks_polling_duration_sum" {
if metric.name() != "bizinikiwi_tasks_polling_duration_sum" {
continue;
}
@@ -420,7 +420,7 @@ impl TestEnvironment {
let test_env_cpu_metrics =
test_metrics.subset_with_label_value("task_group", "test-environment");
let total_cpu = test_env_cpu_metrics.sum_by("substrate_tasks_polling_duration_sum");
let total_cpu = test_env_cpu_metrics.sum_by("bizinikiwi_tasks_polling_duration_sum");
usage.push(ResourceUsage {
resource_name: "test-environment".to_string(),
@@ -15,10 +15,10 @@
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
use pezkuwi_primitives::ValidatorId;
use sc_keystore::LocalKeystore;
use sp_application_crypto::AppCrypto;
use sp_core::sr25519::Public;
use sp_keystore::Keystore;
use pezsc_keystore::LocalKeystore;
use pezsp_application_crypto::AppCrypto;
use pezsp_core::sr25519::Public;
use pezsp_keystore::Keystore;
use std::sync::Arc;
/// Set of test accounts generated and kept safe by a keystore.
@@ -26,7 +26,7 @@ use pezkuwi_node_subsystem_types::OverseerSignal;
use pezkuwi_primitives::{
CandidateHash, Hash, PersistedValidationData, SigningContext, ValidatorIndex, ValidatorPair,
};
use sp_core::Pair;
use pezsp_core::Pair;
use std::collections::HashMap;
const LOG_TARGET: &str = "subsystem-bench::candidate-backing-mock";
@@ -23,7 +23,7 @@ use pezkuwi_node_subsystem::{
};
use pezkuwi_node_subsystem_types::OverseerSignal;
use pezkuwi_primitives::Header;
use sp_core::H256;
use pezsp_core::H256;
use std::collections::HashMap;
const LOG_TARGET: &str = "subsystem-bench::chain-api-mock";
@@ -34,7 +34,7 @@ macro_rules! mock {
fn start(self, ctx: Context) -> SpawnedSubsystem {
let future = self.run(ctx).map(|_| Ok(())).boxed();
// The name will appear in substrate CPU task metrics as `task_group`.`
// The name will appear in bizinikiwi CPU task metrics as `task_group`.`
SpawnedSubsystem { name: "test-environment", future }
}
}
@@ -16,7 +16,7 @@
use pezkuwi_node_subsystem::HeadSupportsTeyrchains;
use pezkuwi_node_subsystem_types::Hash;
use sp_consensus::SyncOracle;
use pezsp_consensus::SyncOracle;
pub mod approval_voting_parallel;
pub mod av_store;
@@ -31,7 +31,7 @@ use pezkuwi_node_subsystem_types::{
messages::{BitfieldDistributionMessage, NetworkBridgeEvent, StatementDistributionMessage},
OverseerSignal,
};
use sc_network::{request_responses::ProtocolConfig, RequestFailure};
use pezsc_network::{request_responses::ProtocolConfig, RequestFailure};
const LOG_TARGET: &str = "subsystem-bench::network-bridge";
const ALLOWED_PROTOCOLS: &[&str] = &[
@@ -31,8 +31,8 @@ use pezkuwi_primitives::{
Id as ParaId, IndexedVec, NodeFeatures, OccupiedCore, ScheduledCore, SessionIndex, SessionInfo,
ValidationCode, ValidatorIndex,
};
use sp_consensus_babe::Epoch as BabeEpoch;
use sp_core::H256;
use pezsp_consensus_babe::Epoch as BabeEpoch;
use pezsp_core::H256;
use std::collections::{BTreeMap, HashMap, VecDeque};
const LOG_TARGET: &str = "subsystem-bench::runtime-api-mock";
@@ -66,12 +66,12 @@ use pezkuwi_overseer::AllMessages;
use pezkuwi_primitives::AuthorityDiscoveryId;
use prometheus_endpoint::U64;
use rand::{seq::SliceRandom, thread_rng};
use sc_network::{
use pezsc_network::{
request_responses::{IncomingRequest, OutgoingResponse},
RequestFailure,
};
use sc_network_types::PeerId;
use sc_service::SpawnTaskHandle;
use pezsc_network_types::PeerId;
use pezsc_service::SpawnTaskHandle;
use std::{
collections::HashMap,
sync::Arc,
@@ -51,11 +51,11 @@ use pezkuwi_primitives::{
AuthorityDiscoveryId, Block, GroupIndex, Hash, Id, ValidatorId, ValidatorIndex,
};
use pezkuwi_statement_distribution::StatementDistributionSubsystem;
use sc_keystore::LocalKeystore;
use sc_network_types::PeerId;
use sc_service::SpawnTaskHandle;
use sp_keystore::{Keystore, KeystorePtr};
use sp_runtime::RuntimeAppPublic;
use pezsc_keystore::LocalKeystore;
use pezsc_network_types::PeerId;
use pezsc_service::SpawnTaskHandle;
use pezsp_keystore::{Keystore, KeystorePtr};
use pezsp_runtime::RuntimeAppPublic;
use std::{
sync::{atomic::Ordering, Arc},
time::{Duration, Instant},
@@ -109,7 +109,7 @@ fn build_overseer(
state.own_backing_group.clone(),
);
let (candidate_req_receiver, candidate_req_cfg) =
IncomingRequest::get_config_receiver::<Block, sc_network::NetworkWorker<Block, Hash>>(
IncomingRequest::get_config_receiver::<Block, pezsc_network::NetworkWorker<Block, Hash>>(
&ReqProtocolNames::new(GENESIS_HASH, None),
);
let keystore = make_keystore();
@@ -52,8 +52,8 @@ use pezkuwi_primitives::{
use pezkuwi_primitives_test_helpers::{
dummy_committed_candidate_receipt_v2, dummy_hash, dummy_head_data, dummy_pvd,
};
use sc_network::{config::IncomingRequest, ProtocolName};
use sp_core::{Pair, H256};
use pezsc_network::{config::IncomingRequest, ProtocolName};
use pezsp_core::{Pair, H256};
use std::{
collections::HashMap,
sync::{