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
+9 -9
View File
@@ -12,18 +12,18 @@ repository.workspace = true
workspace = true
[dependencies]
# note: special care is taken to avoid inclusion of `sp-io` externals when compiling
# note: special care is taken to avoid inclusion of `pezsp-io` externals when compiling
# this crate for WASM. This is critical to avoid forcing all teyrchain WASM into implementing
# various unnecessary Substrate-specific endpoints.
# various unnecessary Bizinikiwi-specific endpoints.
array-bytes = { workspace = true }
bounded-collections = { features = ["serde"], workspace = true }
codec = { features = ["derive"], workspace = true }
derive_more = { workspace = true, default-features = true }
pezkuwi-core-primitives = { workspace = true }
scale-info = { features = ["derive", "serde"], workspace = true }
sp-core = { features = ["serde"], workspace = true }
sp-runtime = { features = ["serde"], workspace = true }
sp-weights = { workspace = true }
pezsp-core = { features = ["serde"], workspace = true }
pezsp-runtime = { features = ["serde"], workspace = true }
pezsp-weights = { workspace = true }
# all optional crates.
serde = { features = ["alloc", "derive"], workspace = true }
@@ -37,11 +37,11 @@ std = [
"pezkuwi-core-primitives/std",
"scale-info/std",
"serde/std",
"sp-core/std",
"sp-runtime/std",
"sp-weights/std",
"pezsp-core/std",
"pezsp-runtime/std",
"pezsp-weights/std",
]
runtime-benchmarks = [
"pezkuwi-core-primitives/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
+7 -7
View File
@@ -23,9 +23,9 @@ use bounded_collections::{BoundedVec, ConstU32};
use codec::{CompactAs, Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use serde::{Deserialize, Serialize};
use sp_core::{bytes, RuntimeDebug, TypeId};
use sp_runtime::traits::Hash as _;
use sp_weights::Weight;
use pezsp_core::{bytes, RuntimeDebug, TypeId};
use pezsp_runtime::traits::Hash as _;
use pezsp_weights::Weight;
use pezkuwi_core_primitives::{Hash, OutboundHrmpMessage};
@@ -59,7 +59,7 @@ impl core::fmt::Debug for HeadData {
impl HeadData {
/// Returns the hash of this head data.
pub fn hash(&self) -> Hash {
sp_runtime::traits::BlakeTwo256::hash(&self.0)
pezsp_runtime::traits::BlakeTwo256::hash(&self.0)
}
}
@@ -90,7 +90,7 @@ impl core::fmt::Debug for ValidationCode {
impl ValidationCode {
/// Get the blake2-256 hash of the validation code bytes.
pub fn hash(&self) -> ValidationCodeHash {
ValidationCodeHash(sp_runtime::traits::BlakeTwo256::hash(&self.0[..]))
ValidationCodeHash(pezsp_runtime::traits::BlakeTwo256::hash(&self.0[..]))
}
}
@@ -427,7 +427,7 @@ impl XcmpMessageHandler for () {
}
/// Validation parameters for evaluating the teyrchain validity function.
// TODO: balance downloads (https://github.com/paritytech/polkadot/issues/220)
// TODO: balance downloads (https://github.com/pezkuwichain/kurdistan-sdk/issues/131)
#[derive(PartialEq, Eq, Decode, Clone)]
#[cfg_attr(feature = "std", derive(Debug, Encode))]
pub struct ValidationParams {
@@ -458,7 +458,7 @@ pub type HorizontalMessages =
BoundedVec<OutboundHrmpMessage<Id>, ConstU32<MAX_HORIZONTAL_MESSAGE_NUM>>;
/// The result of teyrchain validation.
// TODO: balance uploads (https://github.com/paritytech/polkadot/issues/220)
// TODO: balance uploads (https://github.com/pezkuwichain/kurdistan-sdk/issues/131)
#[derive(PartialEq, Eq, Clone, Encode)]
#[cfg_attr(feature = "std", derive(Debug, Decode))]
pub struct ValidationResult {
+1 -1
View File
@@ -33,5 +33,5 @@ pub unsafe fn load_params(params: *const u8, len: usize) -> crate::primitives::V
/// of the vector.
#[cfg(not(feature = "std"))]
pub fn write_result(result: &crate::primitives::ValidationResult) -> u64 {
sp_core::to_substrate_wasm_fn_return_value(&result)
pezsp_core::to_bizinikiwi_wasm_fn_return_value(&result)
}
@@ -17,17 +17,17 @@ dlmalloc = { features = ["global"], workspace = true }
pezkuwi-teyrchain-primitives = { features = ["wasm-api"], workspace = true }
tiny-keccak = { features = ["keccak"], workspace = true }
# We need to make sure the global allocator is disabled until we have support of full substrate externalities
sp-io = { features = ["disable_allocator"], workspace = true }
# We need to make sure the global allocator is disabled until we have support of full bizinikiwi externalities
pezsp-io = { features = ["disable_allocator"], workspace = true }
[build-dependencies]
substrate-wasm-builder = { workspace = true, default-features = true }
bizinikiwi-wasm-builder = { workspace = true, default-features = true }
[features]
default = ["std"]
std = ["codec/std", "pezkuwi-teyrchain-primitives/std", "sp-io/std"]
std = ["codec/std", "pezkuwi-teyrchain-primitives/std", "pezsp-io/std"]
runtime-benchmarks = [
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sp-io/runtime-benchmarks",
"substrate-wasm-builder/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"bizinikiwi-wasm-builder/runtime-benchmarks",
]
@@ -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/>.
use substrate_wasm_builder::WasmBuilder;
use bizinikiwi_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
@@ -30,9 +30,9 @@ pezkuwi-service = { features = [
], workspace = true, default-features = true }
test-teyrchain-adder = { workspace = true }
sc-cli = { workspace = true, default-features = true }
sc-service = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
pezsc-cli = { workspace = true, default-features = true }
pezsc-service = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
[dev-dependencies]
pezkuwi-node-core-pvf = { features = [
@@ -41,7 +41,7 @@ pezkuwi-node-core-pvf = { features = [
pezkuwi-test-service = { workspace = true }
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
sp-keyring = { workspace = true, default-features = true }
pezsp-keyring = { workspace = true, default-features = true }
tokio = { features = ["macros"], workspace = true, default-features = true }
@@ -55,8 +55,8 @@ runtime-benchmarks = [
"pezkuwi-service/runtime-benchmarks",
"pezkuwi-test-service/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sc-cli/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-keyring/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"test-teyrchain-adder/runtime-benchmarks",
]
@@ -17,7 +17,7 @@
//! Pezkuwi CLI library.
use clap::Parser;
use sc_cli::SubstrateCli;
use pezsc_cli::BizinikiwiCli;
use std::path::PathBuf;
/// Sub-commands supported by the collator.
@@ -54,7 +54,7 @@ pub struct ExportGenesisWasmCommand {
pub struct RunCmd {
#[allow(missing_docs)]
#[clap(flatten)]
pub base: sc_cli::RunCmd,
pub base: pezsc_cli::RunCmd,
/// Id of the teyrchain this collator collates for.
#[arg(long)]
@@ -71,7 +71,7 @@ pub struct Cli {
pub run: RunCmd,
}
impl SubstrateCli for Cli {
impl BizinikiwiCli for Cli {
fn impl_name() -> String {
"Parity Pezkuwi".into()
}
@@ -100,7 +100,7 @@ impl SubstrateCli for Cli {
"adder-collator".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.is_empty() { "pezkuwichain" } else { id };
Ok(match id {
"pezkuwichain-staging" =>
@@ -24,7 +24,7 @@ use pezkuwi_node_primitives::{
Statement,
};
use pezkuwi_primitives::{CollatorId, CollatorPair};
use sp_core::{traits::SpawnNamed, Pair};
use pezsp_core::{traits::SpawnNamed, Pair};
use std::{
collections::HashMap,
sync::{
@@ -297,7 +297,7 @@ mod tests {
#[test]
fn collator_works() {
let spawner = sp_core::testing::TaskExecutor::new();
let spawner = pezsp_core::testing::TaskExecutor::new();
let collator = Collator::new();
let collation_function = collator.create_collation_function(spawner);
@@ -20,8 +20,8 @@ use pezkuwi_cli::{Error, Result};
use pezkuwi_node_primitives::CollationGenerationConfig;
use pezkuwi_node_subsystem::messages::{CollationGenerationMessage, CollatorProtocolMessage};
use pezkuwi_primitives::Id as ParaId;
use sc_cli::{Error as SubstrateCliError, SubstrateCli};
use sp_core::hexdisplay::HexDisplay;
use pezsc_cli::{Error as BizinikiwiCliError, BizinikiwiCli};
use pezsp_core::hexdisplay::HexDisplay;
use std::{
collections::HashSet,
fs,
@@ -67,7 +67,7 @@ fn main() -> Result<()> {
},
None => {
let runner = cli.create_runner(&cli.run.base).map_err(|e| {
SubstrateCliError::Application(
BizinikiwiCliError::Application(
Box::new(e) as Box<(dyn 'static + Send + Sync + std::error::Error)>
)
})?;
@@ -23,9 +23,9 @@
#[tokio::test(flavor = "multi_thread")]
async fn collating_using_adder_collator() {
use pezkuwi_primitives::Id as ParaId;
use sp_keyring::Sr25519Keyring::*;
use pezsp_keyring::Sr25519Keyring::*;
let mut builder = sc_cli::LoggerBuilder::new("");
let mut builder = pezsc_cli::LoggerBuilder::new("");
builder.with_colors(false);
builder.init().expect("Set up logger");
@@ -13,7 +13,7 @@ workspace = true
[build-dependencies]
rustversion = { workspace = true }
substrate-wasm-builder = { workspace = true, default-features = true }
bizinikiwi-wasm-builder = { workspace = true, default-features = true }
[features]
default = ["std"]
@@ -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/>.
use substrate_wasm_builder::WasmBuilder;
use bizinikiwi_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
@@ -19,11 +19,11 @@ pezkuwi-primitives = { workspace = true, default-features = false }
pezkuwi-teyrchain-primitives = { features = ["wasm-api"], workspace = true }
tiny-keccak = { features = ["keccak"], workspace = true }
# We need to make sure the global allocator is disabled until we have support of full substrate externalities
sp-io = { features = ["disable_allocator"], workspace = true }
# We need to make sure the global allocator is disabled until we have support of full bizinikiwi externalities
pezsp-io = { features = ["disable_allocator"], workspace = true }
[build-dependencies]
substrate-wasm-builder = { workspace = true, default-features = true }
bizinikiwi-wasm-builder = { workspace = true, default-features = true }
[features]
default = ["std"]
@@ -32,11 +32,11 @@ std = [
"log/std",
"pezkuwi-primitives/std",
"pezkuwi-teyrchain-primitives/std",
"sp-io/std",
"pezsp-io/std",
]
runtime-benchmarks = [
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sp-io/runtime-benchmarks",
"substrate-wasm-builder/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"bizinikiwi-wasm-builder/runtime-benchmarks",
]
@@ -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/>.
use substrate_wasm_builder::WasmBuilder;
use bizinikiwi_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
@@ -31,10 +31,10 @@ pezkuwi-service = { features = [
], workspace = true, default-features = true }
test-teyrchain-undying = { workspace = true }
sc-cli = { workspace = true, default-features = true }
sc-client-api = { workspace = true, default-features = true }
sc-service = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
pezsc-cli = { workspace = true, default-features = true }
pezsc-client-api = { workspace = true, default-features = true }
pezsc-service = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
[dev-dependencies]
pezkuwi-node-core-pvf = { features = [
@@ -43,7 +43,7 @@ pezkuwi-node-core-pvf = { features = [
pezkuwi-test-service = { workspace = true }
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
sp-keyring = { workspace = true, default-features = true }
pezsp-keyring = { workspace = true, default-features = true }
tokio = { features = ["macros"], workspace = true, default-features = true }
@@ -58,9 +58,9 @@ runtime-benchmarks = [
"pezkuwi-service/runtime-benchmarks",
"pezkuwi-test-service/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sc-cli/runtime-benchmarks",
"sc-client-api/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-keyring/runtime-benchmarks",
"pezsc-cli/runtime-benchmarks",
"pezsc-client-api/runtime-benchmarks",
"pezsc-service/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"test-teyrchain-undying/runtime-benchmarks",
]
@@ -17,7 +17,7 @@
//! Pezkuwi CLI library.
use clap::Parser;
use sc_cli::SubstrateCli;
use pezsc_cli::BizinikiwiCli;
use std::path::PathBuf;
/// Sub-commands supported by the collator.
@@ -76,7 +76,7 @@ pub enum MalusType {
pub struct RunCmd {
#[allow(missing_docs)]
#[clap(flatten)]
pub base: sc_cli::RunCmd,
pub base: pezsc_cli::RunCmd,
/// Id of the teyrchain this collator collates for.
#[arg(long, default_value_t = 2000)]
@@ -110,7 +110,7 @@ pub struct Cli {
pub run: RunCmd,
}
impl SubstrateCli for Cli {
impl BizinikiwiCli for Cli {
fn impl_name() -> String {
"Parity Zombienet/Undying".into()
}
@@ -139,7 +139,7 @@ impl SubstrateCli for Cli {
"undying-collator".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.is_empty() { "pezkuwichain" } else { id };
Ok(match id {
"pezkuwichain-staging" =>
@@ -31,8 +31,8 @@ use pezkuwi_primitives::{
DEFAULT_CLAIM_QUEUE_OFFSET,
};
use pezkuwi_service::{Handle, NewFull, TeyrchainHost};
use sc_client_api::client::BlockchainEvents;
use sp_core::Pair;
use pezsc_client_api::client::BlockchainEvents;
use pezsp_core::Pair;
use std::{
collections::HashMap,
@@ -650,7 +650,7 @@ impl Collator {
}
}
use sp_core::traits::SpawnNamed;
use pezsp_core::traits::SpawnNamed;
#[cfg(test)]
mod tests {
@@ -661,7 +661,7 @@ mod tests {
#[test]
fn collator_works() {
let spawner = sp_core::testing::TaskExecutor::new();
let spawner = pezsp_core::testing::TaskExecutor::new();
let collator = Collator::new(1_000, 1, false);
let collation_function = collator.create_collation_function(spawner);
@@ -20,8 +20,8 @@ use pezkuwi_cli::{Error, Result};
use pezkuwi_node_primitives::CollationGenerationConfig;
use pezkuwi_node_subsystem::messages::{CollationGenerationMessage, CollatorProtocolMessage};
use pezkuwi_primitives::Id as ParaId;
use sc_cli::{Error as SubstrateCliError, SubstrateCli};
use sp_core::hexdisplay::HexDisplay;
use pezsc_cli::{Error as BizinikiwiCliError, BizinikiwiCli};
use pezsp_core::hexdisplay::HexDisplay;
use std::{
collections::HashSet,
fs,
@@ -75,7 +75,7 @@ fn main() -> Result<()> {
},
None => {
let runner = cli.create_runner(&cli.run.base).map_err(|e| {
SubstrateCliError::Application(
BizinikiwiCliError::Application(
Box::new(e) as Box<(dyn 'static + Send + Sync + std::error::Error)>
)
})?;
@@ -28,9 +28,9 @@ const TIMEOUT: Duration = Duration::from_secs(120);
#[tokio::test(flavor = "multi_thread")]
async fn collating_using_undying_collator() {
use pezkuwi_primitives::Id as ParaId;
use sp_keyring::Sr25519Keyring::*;
use pezsp_keyring::Sr25519Keyring::*;
let mut builder = sc_cli::LoggerBuilder::new("");
let mut builder = pezsc_cli::LoggerBuilder::new("");
builder.with_colors(false);
builder.init().expect("Set up logger");