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
+7 -7
View File
@@ -24,10 +24,10 @@ hex = { workspace = true, default-features = true }
pezkuwi-node-primitives = { workspace = true, default-features = true }
pezkuwi-primitives = { workspace = true, default-features = true }
rand = { workspace = true, default-features = true }
sc-authority-discovery = { workspace = true, default-features = true }
sc-network = { workspace = true, default-features = true }
sc-network-types = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
pezsc-authority-discovery = { workspace = true, default-features = true }
pezsc-network = { workspace = true, default-features = true }
pezsc-network-types = { workspace = true, default-features = true }
pezsp-runtime = { workspace = true, default-features = true }
strum = { features = ["derive"], workspace = true, default-features = true }
thiserror = { workspace = true }
@@ -39,7 +39,7 @@ runtime-benchmarks = [
"gum/runtime-benchmarks",
"pezkuwi-node-primitives/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"sc-authority-discovery/runtime-benchmarks",
"sc-network/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pezsc-authority-discovery/runtime-benchmarks",
"pezsc-network/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -20,11 +20,11 @@ use std::{collections::HashSet, fmt::Debug};
use async_trait::async_trait;
use sc_authority_discovery::Service as AuthorityDiscoveryService;
use pezsc_authority_discovery::Service as AuthorityDiscoveryService;
use pezkuwi_primitives::AuthorityDiscoveryId;
use sc_network::Multiaddr;
use sc_network_types::PeerId;
use pezsc_network::Multiaddr;
use pezsc_network_types::PeerId;
/// An abstraction over the authority discovery service.
///
+13 -13
View File
@@ -24,8 +24,8 @@ use pezkuwi_primitives::{BlockNumber, Hash};
use std::fmt;
#[doc(hidden)]
pub use sc_network::IfDisconnected;
pub use sc_network_types::PeerId;
pub use pezsc_network::IfDisconnected;
pub use pezsc_network_types::PeerId;
#[doc(hidden)]
pub use std::sync::Arc;
@@ -69,22 +69,22 @@ pub enum ObservedRole {
Authority,
}
impl From<sc_network::ObservedRole> for ObservedRole {
fn from(role: sc_network::ObservedRole) -> ObservedRole {
impl From<pezsc_network::ObservedRole> for ObservedRole {
fn from(role: pezsc_network::ObservedRole) -> ObservedRole {
match role {
sc_network::ObservedRole::Light => ObservedRole::Light,
sc_network::ObservedRole::Authority => ObservedRole::Authority,
sc_network::ObservedRole::Full => ObservedRole::Full,
pezsc_network::ObservedRole::Light => ObservedRole::Light,
pezsc_network::ObservedRole::Authority => ObservedRole::Authority,
pezsc_network::ObservedRole::Full => ObservedRole::Full,
}
}
}
impl Into<sc_network::ObservedRole> for ObservedRole {
fn into(self) -> sc_network::ObservedRole {
impl Into<pezsc_network::ObservedRole> for ObservedRole {
fn into(self) -> pezsc_network::ObservedRole {
match self {
ObservedRole::Light => sc_network::ObservedRole::Light,
ObservedRole::Full => sc_network::ObservedRole::Full,
ObservedRole::Authority => sc_network::ObservedRole::Authority,
ObservedRole::Light => pezsc_network::ObservedRole::Light,
ObservedRole::Full => pezsc_network::ObservedRole::Full,
ObservedRole::Authority => pezsc_network::ObservedRole::Authority,
}
}
}
@@ -502,7 +502,7 @@ pub mod v1 {
///
/// The payload is the local peer id of the node, which serves to prove that it
/// controls the collator key it is declaring an intention to collate under.
pub fn declare_signature_payload(peer_id: &sc_network_types::PeerId) -> Vec<u8> {
pub fn declare_signature_payload(peer_id: &pezsc_network_types::PeerId) -> Vec<u8> {
let mut payload = peer_id.to_bytes();
payload.extend_from_slice(b"COLL");
payload
@@ -18,11 +18,11 @@
use derive_more::Display;
use pezkuwi_primitives::Hash;
use sc_network::{
use pezsc_network::{
config::SetConfig, peer_store::PeerStoreProvider, service::NotificationMetrics,
types::ProtocolName, NetworkBackend, NotificationService,
};
use sp_runtime::traits::Block;
use pezsp_runtime::traits::Block;
use std::{
collections::{hash_map::Entry, HashMap},
ops::{Index, IndexMut},
@@ -64,7 +64,7 @@ pub enum IsAuthority {
}
impl PeerSet {
/// Get `sc_network` peer set configurations for each peerset on the default version.
/// Get `pezsc_network` peer set configurations for each peerset on the default version.
///
/// Those should be used in the network configuration to register the protocols with the
/// network service.
@@ -100,7 +100,7 @@ impl PeerSet {
in_peers: super::MIN_GOSSIP_PEERS as u32 / 2 - 1,
out_peers: super::MIN_GOSSIP_PEERS as u32 / 2 - 1,
reserved_nodes: Vec::new(),
non_reserved_mode: sc_network::config::NonReservedPeerMode::Accept,
non_reserved_mode: pezsc_network::config::NonReservedPeerMode::Accept,
},
metrics,
peer_store_handle,
@@ -125,9 +125,9 @@ impl PeerSet {
out_peers: 0,
reserved_nodes: Vec::new(),
non_reserved_mode: if is_authority == IsAuthority::Yes {
sc_network::config::NonReservedPeerMode::Accept
pezsc_network::config::NonReservedPeerMode::Accept
} else {
sc_network::config::NonReservedPeerMode::Deny
pezsc_network::config::NonReservedPeerMode::Deny
},
},
metrics,
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
pub use sc_network::ReputationChange;
pub use pezsc_network::ReputationChange;
/// Unified annoyance cost and good behavior benefits.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -16,7 +16,7 @@
//! Error handling related code and Error/Result definitions.
use sc_network_types::PeerId;
use pezsc_network_types::PeerId;
use codec::Error as DecodingError;
@@ -20,9 +20,9 @@ use futures::{channel::oneshot, StreamExt};
use codec::{Decode, Encode};
use sc_network::{config as netconfig, NetworkBackend};
use sc_network_types::PeerId;
use sp_runtime::traits::Block;
use pezsc_network::{config as netconfig, NetworkBackend};
use pezsc_network_types::PeerId;
use pezsp_runtime::traits::Block;
use super::{IsRequest, ReqProtocolNames};
use crate::UnifiedReputationChange;
@@ -32,7 +32,7 @@ pub use error::{Error, FatalError, JfyiError, Result};
/// A request coming in, including a sender for sending responses.
///
/// Typed `IncomingRequest`s, see `IncomingRequest::get_config_receiver` and substrate
/// Typed `IncomingRequest`s, see `IncomingRequest::get_config_receiver` and bizinikiwi
/// `NetworkConfiguration` for more information.
#[derive(Debug)]
pub struct IncomingRequest<Req> {
@@ -52,7 +52,7 @@ where
/// Create configuration for `NetworkConfiguration::request_response_protocols` and a
/// corresponding typed receiver.
///
/// This Register that config with substrate networking and receive incoming requests via the
/// This Register that config with bizinikiwi networking and receive incoming requests via the
/// returned `IncomingRequestReceiver`.
pub fn get_config_receiver<B: Block, N: NetworkBackend<B, <B as Block>::Hash>>(
req_protocol_names: &ReqProtocolNames,
@@ -74,7 +74,7 @@ where
}
}
/// Try building from raw substrate request.
/// Try building from raw bizinikiwi request.
///
/// This function will fail if the request cannot be decoded and will apply passed in
/// reputation changes in that case.
@@ -83,15 +83,15 @@ where
/// - The raw request to decode
/// - Reputation changes to apply for the peer in case decoding fails.
fn try_from_raw(
raw: sc_network::config::IncomingRequest,
raw: pezsc_network::config::IncomingRequest,
reputation_changes: Vec<UnifiedReputationChange>,
) -> std::result::Result<Self, JfyiError> {
let sc_network::config::IncomingRequest { payload, peer, pending_response } = raw;
let pezsc_network::config::IncomingRequest { payload, peer, pending_response } = raw;
let payload = match Req::decode(&mut payload.as_ref()) {
Ok(payload) => payload,
Err(err) => {
let reputation_changes = reputation_changes.into_iter().map(|r| r.into()).collect();
let response = sc_network::config::OutgoingResponse {
let response = pezsc_network::config::OutgoingResponse {
result: Err(()),
reputation_changes,
sent_feedback: None,
@@ -106,11 +106,11 @@ where
Ok(Self::new(peer, payload, pending_response))
}
/// Convert into raw untyped substrate `IncomingRequest`.
/// Convert into raw untyped bizinikiwi `IncomingRequest`.
///
/// This is mostly useful for testing.
pub fn into_raw(self) -> sc_network::config::IncomingRequest {
sc_network::config::IncomingRequest {
pub fn into_raw(self) -> pezsc_network::config::IncomingRequest {
pezsc_network::config::IncomingRequest {
peer: self.peer,
payload: self.payload.encode(),
pending_response: self.pending_response.pending_response,
@@ -52,11 +52,11 @@
use std::{collections::HashMap, time::Duration, u64};
use pezkuwi_primitives::MAX_CODE_SIZE;
use sc_network::{NetworkBackend, MAX_RESPONSE_SIZE};
use sp_runtime::traits::Block;
use pezsc_network::{NetworkBackend, MAX_RESPONSE_SIZE};
use pezsp_runtime::traits::Block;
use strum::{EnumIter, IntoEnumIterator};
pub use sc_network::{config as network, config::RequestResponseConfig, ProtocolName};
pub use pezsc_network::{config as network, config::RequestResponseConfig, ProtocolName};
/// Everything related to handling of incoming requests.
pub mod incoming;
@@ -137,7 +137,7 @@ const POV_REQUEST_TIMEOUT_CONNECTED: Duration = Duration::from_millis(2000);
/// We supply leniency because there are often large candidates and asynchronous
/// backing allows them to be included over a longer window of time. Exponential back-off
/// up to a maximum of 10 seconds would be ideal, but isn't supported by the
/// infrastructure here yet: see https://github.com/paritytech/polkadot/issues/6009
/// infrastructure here yet: see https://github.com/pezkuwichain/kurdistan-sdk/issues/164
const ATTESTED_CANDIDATE_TIMEOUT: Duration = Duration::from_millis(2500);
/// We don't want a slow peer to slow down all the others, at the same time we want to get out the
@@ -148,7 +148,7 @@ pub const MAX_PARALLEL_ATTESTED_CANDIDATE_REQUESTS: u32 = 5;
/// Response size limit for responses of POV like data.
///
/// Same as what we use in substrate networking.
/// Same as what we use in bizinikiwi networking.
const POV_RESPONSE_SIZE: u64 = MAX_RESPONSE_SIZE;
/// Maximum response sizes for `AttestedCandidateV2`.
@@ -19,8 +19,8 @@ use futures::{channel::oneshot, prelude::Future, FutureExt};
use codec::{Decode, Encode, Error as DecodingError};
use network::ProtocolName;
use sc_network as network;
use sc_network_types::PeerId;
use pezsc_network as network;
use pezsc_network_types::PeerId;
use pezkuwi_primitives::AuthorityDiscoveryId;
@@ -78,7 +78,7 @@ pub enum RequestError {
#[error("Response could not be decoded: {0}")]
InvalidResponse(#[from] DecodingError),
/// Some error in substrate/libp2p happened.
/// Some error in bizinikiwi/libp2p happened.
#[error("{0}")]
NetworkError(#[from] network::RequestFailure),