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
+44 -44
View File
@@ -27,41 +27,41 @@ pezkuwi-test-runtime = { workspace = true }
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
test-runtime-constants = { workspace = true, default-features = true }
# Substrate dependencies
frame-system = { workspace = true, default-features = true }
pallet-balances = { workspace = true, default-features = true }
pallet-staking = { workspace = true, default-features = true }
pallet-transaction-payment = { workspace = true, default-features = true }
sc-chain-spec = { workspace = true, default-features = true }
sc-cli = { workspace = true, default-features = true }
sc-client-api = { workspace = true, default-features = true }
sc-consensus = { workspace = true, default-features = true }
sc-consensus-grandpa = { workspace = true, default-features = true }
sc-network = { workspace = true, default-features = true }
sc-service = { workspace = true }
sc-tracing = { workspace = true, default-features = true }
sp-arithmetic = { workspace = true, default-features = true }
sp-authority-discovery = { workspace = true, default-features = true }
sp-blockchain = { workspace = true, default-features = true }
sp-consensus = { workspace = true, default-features = true }
sp-consensus-babe = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
sp-keyring = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
sp-state-machine = { workspace = true, default-features = true }
substrate-test-client = { workspace = true }
# Bizinikiwi dependencies
pezframe-system = { workspace = true, default-features = true }
pezpallet-balances = { workspace = true, default-features = true }
pezpallet-staking = { workspace = true, default-features = true }
pezpallet-transaction-payment = { workspace = true, default-features = true }
pezsc-chain-spec = { workspace = true, default-features = true }
pezsc-cli = { workspace = true, default-features = true }
pezsc-client-api = { workspace = true, default-features = true }
pezsc-consensus = { workspace = true, default-features = true }
pezsc-consensus-grandpa = { workspace = true, default-features = true }
pezsc-network = { workspace = true, default-features = true }
pezsc-service = { workspace = true }
pezsc-tracing = { workspace = true, default-features = true }
pezsp-arithmetic = { workspace = true, default-features = true }
pezsp-authority-discovery = { workspace = true, default-features = true }
pezsp-blockchain = { workspace = true, default-features = true }
pezsp-consensus = { workspace = true, default-features = true }
pezsp-consensus-babe = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
pezsp-keyring = { workspace = true, default-features = true }
pezsp-runtime = { workspace = true, default-features = true }
pezsp-state-machine = { workspace = true, default-features = true }
bizinikiwi-test-client = { workspace = true }
[dev-dependencies]
pallet-balances = { workspace = true }
pezpallet-balances = { workspace = true }
tokio = { features = ["macros"], workspace = true, default-features = true }
[features]
runtime-metrics = ["pezkuwi-test-runtime/runtime-metrics"]
runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-staking/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezkuwi-node-primitives/runtime-benchmarks",
"pezkuwi-node-subsystem/runtime-benchmarks",
"pezkuwi-overseer/runtime-benchmarks",
@@ -71,21 +71,21 @@ runtime-benchmarks = [
"pezkuwi-service/runtime-benchmarks",
"pezkuwi-test-runtime/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sc-chain-spec/runtime-benchmarks",
"sc-cli/runtime-benchmarks",
"sc-client-api/runtime-benchmarks",
"sc-consensus-grandpa/runtime-benchmarks",
"sc-consensus/runtime-benchmarks",
"sc-network/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sc-tracing/runtime-benchmarks",
"sp-authority-discovery/runtime-benchmarks",
"sp-blockchain/runtime-benchmarks",
"sp-consensus-babe/runtime-benchmarks",
"sp-consensus/runtime-benchmarks",
"sp-keyring/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-state-machine/runtime-benchmarks",
"substrate-test-client/runtime-benchmarks",
"pezsc-chain-spec/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-consensus-grandpa/runtime-benchmarks",
"pezsc-consensus/runtime-benchmarks",
"pezsc-network/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsc-tracing/runtime-benchmarks",
"pezsp-authority-discovery/runtime-benchmarks",
"pezsp-blockchain/runtime-benchmarks",
"pezsp-consensus-babe/runtime-benchmarks",
"pezsp-consensus/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-state-machine/runtime-benchmarks",
"bizinikiwi-test-client/runtime-benchmarks",
"test-runtime-constants/runtime-benchmarks",
]
+9 -9
View File
@@ -16,26 +16,26 @@
//! Chain specifications for the test runtime.
use pallet_staking::Forcing;
use pezpallet_staking::Forcing;
use pezkuwi_primitives::{
node_features, AccountId, AssignmentId, NodeFeatures, SchedulerParams, ValidatorId,
MAX_CODE_SIZE, MAX_POV_SIZE,
};
use pezkuwi_service::chain_spec::Extensions;
use pezkuwi_test_runtime::BABE_GENESIS_EPOCH_CONFIG;
use sc_chain_spec::{ChainSpec, ChainType};
use sc_consensus_grandpa::AuthorityId as GrandpaId;
use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
use sp_consensus_babe::AuthorityId as BabeId;
use sp_core::{crypto::get_public_from_string_or_panic, sr25519};
use sp_keyring::Sr25519Keyring;
use sp_runtime::Perbill;
use pezsc_chain_spec::{ChainSpec, ChainType};
use pezsc_consensus_grandpa::AuthorityId as GrandpaId;
use pezsp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
use pezsp_consensus_babe::AuthorityId as BabeId;
use pezsp_core::{crypto::get_public_from_string_or_panic, sr25519};
use pezsp_keyring::Sr25519Keyring;
use pezsp_runtime::Perbill;
use test_runtime_constants::currency::DOTS;
const DEFAULT_PROTOCOL_ID: &str = "hez";
/// The `ChainSpec` parameterized for pezkuwi test runtime.
pub type PezkuwiChainSpec = sc_service::GenericChainSpec<Extensions>;
pub type PezkuwiChainSpec = pezsc_service::GenericChainSpec<Extensions>;
/// Returns the properties for the [`PezkuwiChainSpec`].
pub fn pezkuwi_chain_spec_properties() -> serde_json::map::Map<String, serde_json::Value> {
+30 -30
View File
@@ -34,33 +34,33 @@ use pezkuwi_test_runtime::{
UncheckedExtrinsic, VERSION,
};
use sc_chain_spec::ChainSpec;
use sc_client_api::BlockchainEvents;
use sc_network::{
use pezsc_chain_spec::ChainSpec;
use pezsc_client_api::BlockchainEvents;
use pezsc_network::{
config::{NetworkConfiguration, TransportConfig},
multiaddr,
service::traits::NetworkService,
NetworkStateInfo,
};
use sc_service::{
use pezsc_service::{
config::{
DatabaseSource, KeystoreConfig, MultiaddrWithPeerId, RpcBatchRequestConfig,
WasmExecutionMethod, WasmtimeInstantiationStrategy,
},
BasePath, BlocksPruning, Configuration, Role, RpcHandlers, TaskManager,
};
use sp_arithmetic::traits::SaturatedConversion;
use sp_blockchain::HeaderBackend;
use sp_keyring::Sr25519Keyring;
use sp_runtime::{codec::Encode, generic, traits::IdentifyAccount, MultiSigner};
use sp_state_machine::BasicExternalities;
use pezsp_arithmetic::traits::SaturatedConversion;
use pezsp_blockchain::HeaderBackend;
use pezsp_keyring::Sr25519Keyring;
use pezsp_runtime::{codec::Encode, generic, traits::IdentifyAccount, MultiSigner};
use pezsp_state_machine::BasicExternalities;
use std::{
collections::HashSet,
net::{Ipv4Addr, SocketAddr},
path::PathBuf,
sync::Arc,
};
use substrate_test_client::{
use bizinikiwi_test_client::{
BlockchainEventsExt, RpcHandlersExt, RpcTransactionError, RpcTransactionOutput,
};
@@ -68,10 +68,10 @@ use substrate_test_client::{
pub type Client = FullClient;
pub use pezkuwi_service::{FullBackend, GetLastTimestamp};
use sc_service::config::{ExecutorConfiguration, RpcConfiguration};
use pezsc_service::config::{ExecutorConfiguration, RpcConfiguration};
/// Create a new full node.
#[sc_tracing::logging::prefix_logs_with(custom_log_prefix.unwrap_or(config.network.node_name.as_str()))]
#[pezsc_tracing::logging::prefix_logs_with(custom_log_prefix.unwrap_or(config.network.node_name.as_str()))]
pub fn new_full<OverseerGenerator: OverseerGen>(
config: Configuration,
is_teyrchain_node: IsTeyrchainNode,
@@ -103,10 +103,10 @@ pub fn new_full<OverseerGenerator: OverseerGen>(
};
match config.network.network_backend {
sc_network::config::NetworkBackendType::Libp2p =>
pezkuwi_service::new_full::<_, sc_network::NetworkWorker<_, _>>(config, params),
sc_network::config::NetworkBackendType::Litep2p =>
pezkuwi_service::new_full::<_, sc_network::Litep2pNetworkBackend>(config, params),
pezsc_network::config::NetworkBackendType::Libp2p =>
pezkuwi_service::new_full::<_, pezsc_network::NetworkWorker<_, _>>(config, params),
pezsc_network::config::NetworkBackendType::Litep2p =>
pezkuwi_service::new_full::<_, pezsc_network::Litep2pNetworkBackend>(config, params),
}
}
@@ -226,7 +226,7 @@ pub fn node_config(
/// Get the listen multiaddr from the network service.
///
/// The address is used to connect to the node.
pub async fn get_listen_address(network: Arc<dyn NetworkService>) -> sc_network::Multiaddr {
pub async fn get_listen_address(network: Arc<dyn NetworkService>) -> pezsc_network::Multiaddr {
loop {
// Litep2p provides instantly the listen address of the TCP protocol and
// ditched the `/0` port used by the `node_config` function.
@@ -433,16 +433,16 @@ pub fn construct_extrinsic(
BlockHashCount::get().checked_next_power_of_two().map(|c| c / 2).unwrap_or(2) as u64;
let tip = 0;
let tx_ext: TxExtension = (
frame_system::AuthorizeCall::<Runtime>::new(),
frame_system::CheckNonZeroSender::<Runtime>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckTxVersion::<Runtime>::new(),
frame_system::CheckGenesis::<Runtime>::new(),
frame_system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
frame_system::CheckNonce::<Runtime>::from(nonce),
frame_system::CheckWeight::<Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
frame_system::WeightReclaim::<Runtime>::new(),
pezframe_system::AuthorizeCall::<Runtime>::new(),
pezframe_system::CheckNonZeroSender::<Runtime>::new(),
pezframe_system::CheckSpecVersion::<Runtime>::new(),
pezframe_system::CheckTxVersion::<Runtime>::new(),
pezframe_system::CheckGenesis::<Runtime>::new(),
pezframe_system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
pezframe_system::CheckNonce::<Runtime>::from(nonce),
pezframe_system::CheckWeight::<Runtime>::new(),
pezpallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(tip),
pezframe_system::WeightReclaim::<Runtime>::new(),
)
.into();
let raw_payload = SignedPayload::from_raw(
@@ -473,12 +473,12 @@ pub fn construct_extrinsic(
/// Construct a transfer extrinsic.
pub fn construct_transfer_extrinsic(
client: &Client,
origin: sp_keyring::Sr25519Keyring,
dest: sp_keyring::Sr25519Keyring,
origin: pezsp_keyring::Sr25519Keyring,
dest: pezsp_keyring::Sr25519Keyring,
value: Balance,
) -> UncheckedExtrinsic {
let function =
pezkuwi_test_runtime::RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
dest: MultiSigner::from(dest.public()).into_account().into(),
value,
});
@@ -16,11 +16,11 @@
use futures::{future, pin_mut, select, FutureExt};
use pezkuwi_test_service::*;
use sp_keyring::Sr25519Keyring;
use pezsp_keyring::Sr25519Keyring;
#[tokio::test(flavor = "multi_thread")]
async fn ensure_test_service_build_blocks() {
let mut builder = sc_cli::LoggerBuilder::new("");
let mut builder = pezsc_cli::LoggerBuilder::new("");
builder.with_colors(false);
builder.init().expect("Sets up logger");
let alice_config = node_config(
@@ -15,7 +15,7 @@
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
use pezkuwi_test_service::*;
use sp_keyring::Sr25519Keyring::{Alice, Bob, Charlie};
use pezsp_keyring::Sr25519Keyring::{Alice, Bob, Charlie};
#[tokio::test(flavor = "multi_thread")]
async fn call_function_actually_work() {
@@ -25,7 +25,7 @@ async fn call_function_actually_work() {
let alice = run_validator_node(alice_config, None).await;
let function =
pezkuwi_test_runtime::RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
pezkuwi_test_runtime::RuntimeCall::Balances(pezpallet_balances::Call::transfer_allow_death {
dest: Charlie.to_account_id().into(),
value: 1,
});