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 286de54384
commit 1c0e57d984
9084 changed files with 997839 additions and 997557 deletions
+13 -13
View File
@@ -30,40 +30,40 @@ pub enum Subcommand {
#[deprecated(
note = "build-spec command will be removed after 1/04/2026. Use export-chain-spec command instead"
)]
BuildSpec(sc_cli::BuildSpecCmd),
BuildSpec(pezsc_cli::BuildSpecCmd),
/// Export the chain specification.
ExportChainSpec(sc_cli::ExportChainSpecCmd),
ExportChainSpec(pezsc_cli::ExportChainSpecCmd),
/// Validate blocks.
CheckBlock(sc_cli::CheckBlockCmd),
CheckBlock(pezsc_cli::CheckBlockCmd),
/// Export blocks.
ExportBlocks(sc_cli::ExportBlocksCmd),
ExportBlocks(pezsc_cli::ExportBlocksCmd),
/// Export the state of a given block into a chain spec.
ExportState(sc_cli::ExportStateCmd),
ExportState(pezsc_cli::ExportStateCmd),
/// Import blocks.
ImportBlocks(sc_cli::ImportBlocksCmd),
ImportBlocks(pezsc_cli::ImportBlocksCmd),
/// Remove the whole chain.
PurgeChain(sc_cli::PurgeChainCmd),
PurgeChain(pezsc_cli::PurgeChainCmd),
/// Revert the chain to a previous state.
Revert(sc_cli::RevertCmd),
Revert(pezsc_cli::RevertCmd),
/// Sub-commands concerned with benchmarking.
/// The pallet benchmarking moved to the `pallet` sub-command.
#[command(subcommand)]
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
Benchmark(pezframe_benchmarking_cli::BenchmarkCmd),
/// Key management CLI utilities
#[command(subcommand)]
Key(sc_cli::KeySubcommand),
Key(pezsc_cli::KeySubcommand),
/// Db meta columns information.
ChainInfo(sc_cli::ChainInfoCmd),
ChainInfo(pezsc_cli::ChainInfoCmd),
}
#[allow(missing_docs)]
@@ -71,7 +71,7 @@ pub enum Subcommand {
#[group(skip)]
pub struct RunCmd {
#[clap(flatten)]
pub base: sc_cli::RunCmd,
pub base: pezsc_cli::RunCmd,
/// Force using Kusama native runtime.
#[arg(long = "force-kusama")]
@@ -178,5 +178,5 @@ pub struct Cli {
pub run: RunCmd,
#[clap(flatten)]
pub storage_monitor: sc_storage_monitor::StorageMonitorParams,
pub storage_monitor: pezsc_storage_monitor::StorageMonitorParams,
}
+33 -33
View File
@@ -15,8 +15,8 @@
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
use crate::cli::{Cli, Subcommand, NODE_VERSION};
use frame_benchmarking_cli::{
BenchmarkCmd, ExtrinsicFactory, SubstrateRemarkBuilder, SUBSTRATE_REFERENCE_HARDWARE,
use pezframe_benchmarking_cli::{
BenchmarkCmd, ExtrinsicFactory, BizinikiwiRemarkBuilder, BIZINIKIWI_REFERENCE_HARDWARE,
};
use futures::future::TryFutureExt;
use log::{info, warn};
@@ -27,10 +27,10 @@ use pezkuwi_service::{
};
#[cfg(feature = "pyroscope")]
use pyroscope_pprofrs::{pprof_backend, PprofConfig};
use sc_cli::SubstrateCli;
use sc_network_types::PeerId;
use sp_core::crypto::Ss58AddressFormatRegistry;
use sp_keyring::Sr25519Keyring;
use pezsc_cli::BizinikiwiCli;
use pezsc_network_types::PeerId;
use pezsp_core::crypto::Ss58AddressFormatRegistry;
use pezsp_keyring::Sr25519Keyring;
pub use crate::error::Error;
#[cfg(feature = "pyroscope")]
@@ -95,13 +95,13 @@ fn get_invulnerable_ah_collators(
.collect()
}
impl SubstrateCli for Cli {
impl BizinikiwiCli for Cli {
fn impl_name() -> String {
"Parity Pezkuwi".into()
}
fn impl_version() -> String {
let commit_hash = env!("SUBSTRATE_CLI_COMMIT_HASH");
let commit_hash = env!("BIZINIKIWI_CLI_COMMIT_HASH");
format!("{}-{commit_hash}", NODE_VERSION)
}
@@ -125,7 +125,7 @@ impl SubstrateCli for Cli {
"pezkuwi".into()
}
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn pezsc_service::ChainSpec>, String> {
let id = if id == "" {
let n = get_exec_name().unwrap_or_default();
["pezkuwi", "kusama", "zagros", "pezkuwichain", "versi"]
@@ -199,13 +199,13 @@ fn set_default_ss58_version(spec: &Box<dyn pezkuwi_service::ChainSpec>) {
let ss58_version = if spec.is_kusama() {
Ss58AddressFormatRegistry::KusamaAccount
} else if spec.is_zagros() {
Ss58AddressFormatRegistry::SubstrateAccount
Ss58AddressFormatRegistry::BizinikiwiAccount
} else {
Ss58AddressFormatRegistry::PezkuwiAccount
}
.into();
sp_core::crypto::set_default_ss58_version(ss58_version);
pezsp_core::crypto::set_default_ss58_version(ss58_version);
}
/// Launch a node, accepting arguments just like a regular node,
@@ -229,7 +229,7 @@ fn run_node_inner<F>(
logger_hook: F,
) -> Result<()>
where
F: FnOnce(&mut sc_cli::LoggerBuilder, &sc_service::Configuration),
F: FnOnce(&mut pezsc_cli::LoggerBuilder, &pezsc_service::Configuration),
{
let runner = cli
.create_runner_with_logger_hook::<_, _, F>(&cli.run.base, logger_hook)
@@ -263,7 +263,7 @@ where
.then(|| {
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(&database_path);
sc_sysinfo::gather_hwbench(Some(database_path), &SUBSTRATE_REFERENCE_HARDWARE)
pezsc_sysinfo::gather_hwbench(Some(database_path), &BIZINIKIWI_REFERENCE_HARDWARE)
})
})
.flatten();
@@ -297,7 +297,7 @@ where
.map(|full| full.task_manager)?;
if let Some(path) = database_source.path() {
sc_storage_monitor::StorageMonitorService::try_spawn(
pezsc_storage_monitor::StorageMonitorService::try_spawn(
cli.storage_monitor,
path.to_path_buf(),
&task_manager.spawn_essential_handle(),
@@ -354,7 +354,7 @@ pub fn run() -> Result<()> {
cmd.run(spec).map_err(Into::into)
},
Some(Subcommand::CheckBlock(cmd)) => {
let runner = cli.create_runner(cmd).map_err(Error::SubstrateCli)?;
let runner = cli.create_runner(cmd).map_err(Error::BizinikiwiCli)?;
let chain_spec = &runner.config().chain_spec;
set_default_ss58_version(chain_spec);
@@ -362,7 +362,7 @@ pub fn run() -> Result<()> {
runner.async_run(|mut config| {
let (client, _, import_queue, task_manager) =
pezkuwi_service::new_chain_ops(&mut config)?;
Ok((cmd.run(client, import_queue).map_err(Error::SubstrateCli), task_manager))
Ok((cmd.run(client, import_queue).map_err(Error::BizinikiwiCli), task_manager))
})
},
Some(Subcommand::ExportBlocks(cmd)) => {
@@ -374,7 +374,7 @@ pub fn run() -> Result<()> {
Ok(runner.async_run(|mut config| {
let (client, _, _, task_manager) =
pezkuwi_service::new_chain_ops(&mut config).map_err(Error::PezkuwiService)?;
Ok((cmd.run(client, config.database).map_err(Error::SubstrateCli), task_manager))
Ok((cmd.run(client, config.database).map_err(Error::BizinikiwiCli), task_manager))
})?)
},
Some(Subcommand::ExportState(cmd)) => {
@@ -385,7 +385,7 @@ pub fn run() -> Result<()> {
Ok(runner.async_run(|mut config| {
let (client, _, _, task_manager) = pezkuwi_service::new_chain_ops(&mut config)?;
Ok((cmd.run(client, config.chain_spec).map_err(Error::SubstrateCli), task_manager))
Ok((cmd.run(client, config.chain_spec).map_err(Error::BizinikiwiCli), task_manager))
})?)
},
Some(Subcommand::ImportBlocks(cmd)) => {
@@ -397,7 +397,7 @@ pub fn run() -> Result<()> {
Ok(runner.async_run(|mut config| {
let (client, _, import_queue, task_manager) =
pezkuwi_service::new_chain_ops(&mut config)?;
Ok((cmd.run(client, import_queue).map_err(Error::SubstrateCli), task_manager))
Ok((cmd.run(client, import_queue).map_err(Error::BizinikiwiCli), task_manager))
})?)
},
Some(Subcommand::PurgeChain(cmd)) => {
@@ -420,12 +420,12 @@ pub fn run() -> Result<()> {
match err {
pezkuwi_service::Error::Blockchain(err) => err.into(),
// Generic application-specific error.
err => sc_cli::Error::Application(err.into()),
err => pezsc_cli::Error::Application(err.into()),
}
})
});
Ok((
cmd.run(client, backend, Some(aux_revert)).map_err(Error::SubstrateCli),
cmd.run(client, backend, Some(aux_revert)).map_err(Error::BizinikiwiCli),
task_manager,
))
})?)
@@ -437,7 +437,7 @@ pub fn run() -> Result<()> {
match cmd {
#[cfg(not(feature = "runtime-benchmarks"))]
BenchmarkCmd::Storage(_) =>
return Err(sc_cli::Error::Input(
return Err(pezsc_cli::Error::Input(
"Compile with --features=runtime-benchmarks \
to enable storage benchmarks."
.into(),
@@ -450,16 +450,16 @@ pub fn run() -> Result<()> {
let storage = backend.expose_storage();
let shared_trie_cache = backend.expose_shared_trie_cache();
cmd.run(config, client.clone(), db, storage, shared_trie_cache).map_err(Error::SubstrateCli)
cmd.run(config, client.clone(), db, storage, shared_trie_cache).map_err(Error::BizinikiwiCli)
}),
BenchmarkCmd::Block(cmd) => runner.sync_run(|mut config| {
let (client, _, _, _) = pezkuwi_service::new_chain_ops(&mut config)?;
cmd.run(client.clone()).map_err(Error::SubstrateCli)
cmd.run(client.clone()).map_err(Error::BizinikiwiCli)
}),
BenchmarkCmd::Overhead(cmd) => runner.sync_run(|config| {
if cmd.params.runtime.is_some() {
return Err(sc_cli::Error::Input(
return Err(pezsc_cli::Error::Input(
"Pezkuwi binary does not support `--runtime` flag for `benchmark overhead`. Please provide a chain spec or use the `frame-omni-bencher`."
.into(),
)
@@ -469,7 +469,7 @@ pub fn run() -> Result<()> {
cmd.run_with_default_builder_and_spec::<pezkuwi_service::Block, ()>(
Some(config.chain_spec),
)
.map_err(Error::SubstrateCli)
.map_err(Error::BizinikiwiCli)
}),
BenchmarkCmd::Extrinsic(cmd) => runner.sync_run(|mut config| {
let (client, _, _, _) = pezkuwi_service::new_chain_ops(&mut config)?;
@@ -477,7 +477,7 @@ pub fn run() -> Result<()> {
let inherent_data = benchmark_inherent_data(header)
.map_err(|e| format!("generating inherent data: {:?}", e))?;
let remark_builder = SubstrateRemarkBuilder::new_from_client(client.clone())?;
let remark_builder = BizinikiwiRemarkBuilder::new_from_client(client.clone())?;
let tka_builder = TransferKeepAliveBuilder::new(
client.clone(),
@@ -489,20 +489,20 @@ pub fn run() -> Result<()> {
ExtrinsicFactory(vec![Box::new(remark_builder), Box::new(tka_builder)]);
cmd.run(client.clone(), inherent_data, Vec::new(), &ext_factory)
.map_err(Error::SubstrateCli)
.map_err(Error::BizinikiwiCli)
}),
BenchmarkCmd::Pallet(cmd) => {
set_default_ss58_version(chain_spec);
if cfg!(feature = "runtime-benchmarks") {
runner.sync_run(|config| {
cmd.run_with_spec::<sp_runtime::traits::HashingFor<pezkuwi_service::Block>, ()>(
cmd.run_with_spec::<pezsp_runtime::traits::HashingFor<pezkuwi_service::Block>, ()>(
Some(config.chain_spec),
)
.map_err(|e| Error::SubstrateCli(e))
.map_err(|e| Error::BizinikiwiCli(e))
})
} else {
Err(sc_cli::Error::Input(
Err(pezsc_cli::Error::Input(
"Benchmarking wasn't enabled when building the node. \
You can enable it with `--features runtime-benchmarks`."
.into(),
@@ -511,8 +511,8 @@ pub fn run() -> Result<()> {
}
},
BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| {
cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())
.map_err(Error::SubstrateCli)
cmd.run(&config, BIZINIKIWI_REFERENCE_HARDWARE.clone())
.map_err(Error::BizinikiwiCli)
}),
// NOTE: this allows the Pezkuwi client to leniently implement
// new benchmark commands.
+4 -4
View File
@@ -20,13 +20,13 @@ pub enum Error {
PezkuwiService(#[from] pezkuwi_service::Error),
#[error(transparent)]
SubstrateCli(#[from] sc_cli::Error),
BizinikiwiCli(#[from] pezsc_cli::Error),
#[error(transparent)]
SubstrateService(#[from] sc_service::Error),
BizinikiwiService(#[from] pezsc_service::Error),
#[error(transparent)]
SubstrateTracing(#[from] sc_tracing::logging::Error),
BizinikiwiTracing(#[from] pezsc_tracing::logging::Error),
#[cfg(not(feature = "pyroscope"))]
#[error("Binary was not compiled with `--feature=pyroscope`")]
@@ -46,7 +46,7 @@ pub enum Error {
CommandNotImplemented,
#[error(transparent)]
Storage(#[from] sc_storage_monitor::Error),
Storage(#[from] pezsc_storage_monitor::Error),
#[error("Other: {0}")]
Other(String),
+1 -1
View File
@@ -40,4 +40,4 @@ pub use cli::*;
pub use command::*;
#[cfg(feature = "cli")]
pub use sc_cli::{Error, Result};
pub use pezsc_cli::{Error, Result};