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:
@@ -25,7 +25,7 @@ use codec::{Decode, Encode};
|
||||
use futures::prelude::*;
|
||||
use parking_lot::Mutex;
|
||||
|
||||
use sp_consensus::SyncOracle;
|
||||
use pezsp_consensus::SyncOracle;
|
||||
|
||||
use pezkuwi_node_network_protocol::{
|
||||
peer_set::{PeerSet, ProtocolVersion},
|
||||
|
||||
@@ -24,7 +24,7 @@ use parking_lot::Mutex;
|
||||
|
||||
use codec::Encode;
|
||||
|
||||
use sc_network::{
|
||||
use pezsc_network::{
|
||||
config::parse_addr, multiaddr::Multiaddr, service::traits::NetworkService, types::ProtocolName,
|
||||
IfDisconnected, MessageSink, OutboundFailure, ReputationChange, RequestFailure,
|
||||
};
|
||||
@@ -196,7 +196,7 @@ pub trait Network: Clone + Send + 'static {
|
||||
fn disconnect_peer(&self, who: PeerId, protocol: ProtocolName);
|
||||
|
||||
/// Get peer role.
|
||||
fn peer_role(&self, who: PeerId, handshake: Vec<u8>) -> Option<sc_network::ObservedRole>;
|
||||
fn peer_role(&self, who: PeerId, handshake: Vec<u8>) -> Option<pezsc_network::ObservedRole>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
@@ -308,7 +308,7 @@ impl Network for Arc<dyn NetworkService> {
|
||||
);
|
||||
}
|
||||
|
||||
fn peer_role(&self, who: PeerId, handshake: Vec<u8>) -> Option<sc_network::ObservedRole> {
|
||||
fn peer_role(&self, who: PeerId, handshake: Vec<u8>) -> Option<pezsc_network::ObservedRole> {
|
||||
<dyn NetworkService>::peer_role(&**self, who, handshake)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,11 +24,11 @@ use codec::{Decode, DecodeAll};
|
||||
use net_protocol::filter_by_peer_version;
|
||||
use parking_lot::Mutex;
|
||||
|
||||
use sc_network::{
|
||||
use pezsc_network::{
|
||||
service::traits::{NotificationEvent, ValidationResult},
|
||||
MessageSink, NotificationService,
|
||||
};
|
||||
use sp_consensus::SyncOracle;
|
||||
use pezsp_consensus::SyncOracle;
|
||||
|
||||
use pezkuwi_node_network_protocol::{
|
||||
self as net_protocol,
|
||||
|
||||
@@ -29,9 +29,9 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use sc_network::{
|
||||
use pezsc_network::{
|
||||
service::traits::{Direction, MessageSink, NotificationService},
|
||||
IfDisconnected, Multiaddr, ObservedRole as SubstrateObservedRole, ProtocolName,
|
||||
IfDisconnected, Multiaddr, ObservedRole as BizinikiwiObservedRole, ProtocolName,
|
||||
ReputationChange, Roles,
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ use pezkuwi_node_subsystem_test_helpers::{
|
||||
use pezkuwi_node_subsystem_util::metered;
|
||||
use pezkuwi_primitives::{AuthorityDiscoveryId, Hash};
|
||||
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
|
||||
use crate::{network::Network, validator_discovery::AuthorityDiscovery};
|
||||
|
||||
@@ -167,10 +167,10 @@ impl Network for TestNetwork {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
fn peer_role(&self, _peer_id: PeerId, handshake: Vec<u8>) -> Option<SubstrateObservedRole> {
|
||||
fn peer_role(&self, _peer_id: PeerId, handshake: Vec<u8>) -> Option<BizinikiwiObservedRole> {
|
||||
Roles::decode_all(&mut &handshake[..])
|
||||
.ok()
|
||||
.and_then(|role| Some(SubstrateObservedRole::from(role)))
|
||||
.and_then(|role| Some(BizinikiwiObservedRole::from(role)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -352,7 +352,7 @@ impl MessageSink for TestMessageSink {
|
||||
async fn send_async_notification(
|
||||
&self,
|
||||
_notification: Vec<u8>,
|
||||
) -> Result<(), sc_network::error::Error> {
|
||||
) -> Result<(), pezsc_network::error::Error> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
@@ -379,7 +379,7 @@ impl NotificationService for TestNotificationService {
|
||||
&mut self,
|
||||
_peer: &PeerId,
|
||||
_notification: Vec<u8>,
|
||||
) -> Result<(), sc_network::error::Error> {
|
||||
) -> Result<(), pezsc_network::error::Error> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -507,7 +507,7 @@ fn test_harness<T: Future<Output = VirtualOverseer>>(
|
||||
let fork_id = None;
|
||||
let peerset_protocol_names = PeerSetProtocolNames::new(genesis_hash, fork_id);
|
||||
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let pool = pezsp_core::testing::TaskExecutor::new();
|
||||
let (network, network_handle, discovery, validation_service, collation_service) =
|
||||
new_test_network(peerset_protocol_names.clone());
|
||||
let (context, virtual_overseer) =
|
||||
@@ -1193,7 +1193,7 @@ fn relays_collation_protocol_messages() {
|
||||
let collator_protocol_message = protocol_v1::CollatorProtocolMessage::Declare(
|
||||
Sr25519Keyring::Alice.public().into(),
|
||||
Default::default(),
|
||||
sp_core::crypto::UncheckedFrom::unchecked_from([1u8; 64]),
|
||||
pezsp_core::crypto::UncheckedFrom::unchecked_from([1u8; 64]),
|
||||
);
|
||||
|
||||
let message_v1 =
|
||||
@@ -1691,7 +1691,7 @@ fn network_protocol_versioning_subsystem_msg() {
|
||||
let collator_protocol_message = protocol_v1::CollatorProtocolMessage::Declare(
|
||||
Sr25519Keyring::Alice.public().into(),
|
||||
Default::default(),
|
||||
sp_core::crypto::UncheckedFrom::unchecked_from([1u8; 64]),
|
||||
pezsp_core::crypto::UncheckedFrom::unchecked_from([1u8; 64]),
|
||||
);
|
||||
|
||||
let msg =
|
||||
|
||||
@@ -29,7 +29,7 @@ use pezkuwi_node_subsystem::{
|
||||
};
|
||||
|
||||
use pezkuwi_node_network_protocol::request_response::Requests;
|
||||
use sc_network::{MessageSink, ReputationChange};
|
||||
use pezsc_network::{MessageSink, ReputationChange};
|
||||
|
||||
use crate::validator_discovery;
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@ use async_trait::async_trait;
|
||||
use parking_lot::Mutex;
|
||||
use std::collections::HashSet;
|
||||
|
||||
use sc_network::{
|
||||
IfDisconnected, ObservedRole as SubstrateObservedRole, ProtocolName, ReputationChange, Roles,
|
||||
use pezsc_network::{
|
||||
IfDisconnected, ObservedRole as BizinikiwiObservedRole, ProtocolName, ReputationChange, Roles,
|
||||
};
|
||||
|
||||
use codec::DecodeAll;
|
||||
@@ -37,8 +37,8 @@ use pezkuwi_node_subsystem_test_helpers::TestSubsystemContextHandle;
|
||||
use pezkuwi_node_subsystem_util::metered;
|
||||
use pezkuwi_primitives::{AuthorityDiscoveryId, Hash};
|
||||
use pezkuwi_primitives_test_helpers::dummy_collator_signature;
|
||||
use sc_network::Multiaddr;
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use pezsc_network::Multiaddr;
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
|
||||
const TIMEOUT: std::time::Duration = pezkuwi_node_subsystem_test_helpers::TestSubsystemContextHandle::<NetworkBridgeTxMessage>::TIMEOUT;
|
||||
|
||||
@@ -105,7 +105,7 @@ impl MessageSink for TestMessageSink {
|
||||
async fn send_async_notification(
|
||||
&self,
|
||||
_notification: Vec<u8>,
|
||||
) -> Result<(), sc_network::error::Error> {
|
||||
) -> Result<(), pezsc_network::error::Error> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
@@ -190,10 +190,10 @@ impl Network for TestNetwork {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
fn peer_role(&self, _peer_id: PeerId, handshake: Vec<u8>) -> Option<SubstrateObservedRole> {
|
||||
fn peer_role(&self, _peer_id: PeerId, handshake: Vec<u8>) -> Option<BizinikiwiObservedRole> {
|
||||
Roles::decode_all(&mut &handshake[..])
|
||||
.ok()
|
||||
.and_then(|role| Some(SubstrateObservedRole::from(role)))
|
||||
.and_then(|role| Some(BizinikiwiObservedRole::from(role)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ fn test_harness<T: Future<Output = VirtualOverseer>>(test: impl FnOnce(TestHarne
|
||||
let req_protocol_names = ReqProtocolNames::new(genesis_hash, fork_id);
|
||||
let peerset_protocol_names = PeerSetProtocolNames::new(genesis_hash, fork_id);
|
||||
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let pool = pezsp_core::testing::TaskExecutor::new();
|
||||
let (network, network_handle, discovery, network_notification_sinks) =
|
||||
new_test_network(peerset_protocol_names.clone());
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ use std::collections::HashSet;
|
||||
|
||||
use futures::channel::oneshot;
|
||||
|
||||
use sc_network::multiaddr::{self, Multiaddr};
|
||||
use pezsc_network::multiaddr::{self, Multiaddr};
|
||||
|
||||
pub use pezkuwi_node_network_protocol::authority_discovery::AuthorityDiscovery;
|
||||
use pezkuwi_node_network_protocol::{
|
||||
@@ -202,8 +202,8 @@ mod tests {
|
||||
PeerId,
|
||||
};
|
||||
use pezkuwi_primitives::Hash;
|
||||
use sc_network::{IfDisconnected, ProtocolName, ReputationChange};
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use pezsc_network::{IfDisconnected, ProtocolName, ReputationChange};
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
fn new_service() -> Service<TestNetwork, TestAuthorityDiscovery> {
|
||||
@@ -299,7 +299,7 @@ mod tests {
|
||||
&self,
|
||||
_peer_id: PeerId,
|
||||
_handshake: Vec<u8>,
|
||||
) -> Option<sc_network::ObservedRole> {
|
||||
) -> Option<pezsc_network::ObservedRole> {
|
||||
panic!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user