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
@@ -18,7 +18,7 @@
use super::mock::*;
use crate::{universal_exports::*, WithTopicSource};
use frame_support::{parameter_types, traits::Get};
use pezframe_support::{parameter_types, traits::Get};
use std::{cell::RefCell, marker::PhantomData};
use xcm::AlwaysLatest;
use xcm_executor::{
@@ -19,7 +19,7 @@ use crate::test_utils::TrappedAssets;
#[test]
fn sovereign_paid_remote_exporter_produces_xcm_which_does_not_trap_assets() {
frame_support::parameter_types! {
pezframe_support::parameter_types! {
pub BridgeFeeAsset: Location = Parent.into();
pub LocalNetwork: NetworkId = ExecutorUniversalLocation::get().global_consensus().expect("valid `NetworkId`");
pub LocalBridgeLocation: Location = match &ExecutorUniversalLocation::get().split_global() {
@@ -54,7 +54,7 @@ fn sovereign_paid_remote_exporter_produces_xcm_which_does_not_trap_assets() {
)
.expect("valid message");
let message = Xcm::<TestCall>::from(message.0 .1);
let mut message_id = message.using_encoded(sp_io::hashing::blake2_256);
let mut message_id = message.using_encoded(pezsp_io::hashing::blake2_256);
// allow origin to pass barrier
let origin = Location::new(1, Teyrchain(50));
+10 -10
View File
@@ -24,7 +24,7 @@ fn expect_pallet_should_work() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 42,
}]);
@@ -41,7 +41,7 @@ fn expect_pallet_should_work() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 41,
}]);
@@ -62,7 +62,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 60,
}]);
@@ -85,7 +85,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"System".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 42,
}]);
@@ -108,7 +108,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_system".as_ref().into(),
module_name: b"pezpallet_system".as_ref().into(),
crate_major: 1,
min_crate_minor: 42,
}]);
@@ -131,7 +131,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 0,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 42,
}]);
@@ -154,7 +154,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 2,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 42,
}]);
@@ -177,7 +177,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 2,
min_crate_minor: 42,
}]);
@@ -200,7 +200,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 0,
min_crate_minor: 42,
}]);
@@ -223,7 +223,7 @@ fn expect_pallet_should_fail_correctly() {
let message = Xcm(vec![ExpectPallet {
index: 1,
name: b"Balances".as_ref().into(),
module_name: b"pallet_balances".as_ref().into(),
module_name: b"pezpallet_balances".as_ref().into(),
crate_major: 1,
min_crate_minor: 43,
}]);
+5 -5
View File
@@ -33,11 +33,11 @@ pub use core::{
fmt::Debug,
ops::ControlFlow,
};
use frame_support::traits::{ContainsPair, Everything};
pub use frame_support::{
use pezframe_support::traits::{ContainsPair, Everything};
pub use pezframe_support::{
dispatch::{DispatchInfo, DispatchResultWithPostInfo, GetDispatchInfo, PostDispatchInfo},
ensure, parameter_types,
sp_runtime::{traits::Dispatchable, DispatchError, DispatchErrorWithPostInfo},
pezsp_runtime::{traits::Dispatchable, DispatchError, DispatchErrorWithPostInfo},
traits::{Contains, Get, IsInVec},
};
pub use xcm::latest::{prelude::*, QueryId, Weight};
@@ -418,7 +418,7 @@ pub fn response(query_id: u64) -> Option<Response> {
/// Mock implementation of the [`QueryHandler`] trait for creating XCM success queries and expecting
/// responses.
pub struct TestQueryHandler<T, BlockNumber>(core::marker::PhantomData<(T, BlockNumber)>);
impl<T: Config, BlockNumber: sp_runtime::traits::Zero + Encode> QueryHandler
impl<T: Config, BlockNumber: pezsp_runtime::traits::Zero + Encode> QueryHandler
for TestQueryHandler<T, BlockNumber>
{
type BlockNumber = BlockNumber;
@@ -778,5 +778,5 @@ pub fn fungible_multi_asset(location: Location, amount: u128) -> Asset {
}
pub fn fake_message_hash<T>(message: &Xcm<T>) -> XcmHash {
message.using_encoded(sp_io::hashing::blake2_256)
message.using_encoded(pezsp_io::hashing::blake2_256)
}
+1 -1
View File
@@ -16,7 +16,7 @@
use super::{test_utils::*, *};
use alloc::{vec, vec::Vec};
use frame_support::{
use pezframe_support::{
assert_err,
traits::{ConstU32, ContainsPair, ProcessMessageError},
weights::constants::{WEIGHT_PROOF_SIZE_PER_MB, WEIGHT_REF_TIME_PER_SECOND},
+35 -35
View File
@@ -16,28 +16,28 @@
use super::*;
use frame_support::{
use pezframe_support::{
construct_runtime, derive_impl, parameter_types,
traits::{AsEnsureOriginWithArg, ConstU32, Disabled, Everything, Nothing},
};
use frame_system::{EnsureRoot, EnsureSigned};
use pezframe_system::{EnsureRoot, EnsureSigned};
use pezkuwi_primitives::{AccountIndex, BlakeTwo256, Signature};
use sp_runtime::{generic, traits::MaybeEquivalence, AccountId32, BuildStorage};
use pezsp_runtime::{generic, traits::MaybeEquivalence, AccountId32, BuildStorage};
use xcm_executor::{traits::ConvertLocation, XcmExecutor};
use xcm_simulator::ParaId;
pub type TxExtension = (
frame_system::AuthorizeCall<Test>,
frame_system::CheckNonZeroSender<Test>,
frame_system::CheckSpecVersion<Test>,
frame_system::CheckTxVersion<Test>,
frame_system::CheckGenesis<Test>,
frame_system::CheckMortality<Test>,
frame_system::CheckNonce<Test>,
frame_system::CheckWeight<Test>,
frame_system::WeightReclaim<Test>,
pezframe_system::AuthorizeCall<Test>,
pezframe_system::CheckNonZeroSender<Test>,
pezframe_system::CheckSpecVersion<Test>,
pezframe_system::CheckTxVersion<Test>,
pezframe_system::CheckGenesis<Test>,
pezframe_system::CheckMortality<Test>,
pezframe_system::CheckNonce<Test>,
pezframe_system::CheckWeight<Test>,
pezframe_system::WeightReclaim<Test>,
);
pub type Address = sp_runtime::MultiAddress<AccountId, AccountIndex>;
pub type Address = pezsp_runtime::MultiAddress<AccountId, AccountIndex>;
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
@@ -48,20 +48,20 @@ pub type AccountId = AccountId32;
construct_runtime!(
pub enum Test {
System: frame_system,
Balances: pallet_balances,
Assets: pallet_assets,
Salary: pallet_salary,
XcmPallet: pallet_xcm,
System: pezframe_system,
Balances: pezpallet_balances,
Assets: pezpallet_assets,
Salary: pezpallet_salary,
XcmPallet: pezpallet_xcm,
}
);
#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
impl frame_system::Config for Test {
#[derive_impl(pezframe_system::config_preludes::TestDefaultConfig)]
impl pezframe_system::Config for Test {
type Block = Block;
type AccountData = pallet_balances::AccountData<Balance>;
type AccountData = pezpallet_balances::AccountData<Balance>;
type AccountId = AccountId;
type Lookup = sp_runtime::traits::IdentityLookup<AccountId>;
type Lookup = pezsp_runtime::traits::IdentityLookup<AccountId>;
}
pub type Balance = u128;
@@ -70,7 +70,7 @@ parameter_types! {
pub const ExistentialDeposit: Balance = 1;
}
impl pallet_balances::Config for Test {
impl pezpallet_balances::Config for Test {
type MaxLocks = ConstU32<0>;
type Balance = Balance;
type RuntimeEvent = RuntimeEvent;
@@ -97,7 +97,7 @@ parameter_types! {
pub const RemoveItemsLimit: u32 = 50;
}
impl pallet_assets::Config for Test {
impl pezpallet_assets::Config for Test {
type RuntimeEvent = RuntimeEvent;
type Balance = Balance;
type AssetId = AssetIdForAssets;
@@ -145,7 +145,7 @@ pub struct AssetKind {
}
pub struct LocatableAssetKindConverter;
impl sp_runtime::traits::TryConvert<AssetKind, LocatableAssetId> for LocatableAssetKindConverter {
impl pezsp_runtime::traits::TryConvert<AssetKind, LocatableAssetId> for LocatableAssetKindConverter {
fn try_convert(value: AssetKind) -> Result<LocatableAssetId, AssetKind> {
Ok(LocatableAssetId { asset_id: value.asset_id, location: value.destination })
}
@@ -196,7 +196,7 @@ pub type LocalAssetsTransactor = FungiblesAdapter<
>;
type OriginConverter = (
pallet_xcm::XcmPassthrough<RuntimeOrigin>,
pezpallet_xcm::XcmPassthrough<RuntimeOrigin>,
SignedAccountId32AsNative<AnyNetwork, RuntimeOrigin>,
);
type Barrier = AllowUnpaidExecutionFrom<Everything>;
@@ -273,7 +273,7 @@ pub(crate) type SovereignAccountOf = (
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
);
impl pallet_xcm::Config for Test {
impl pezpallet_xcm::Config for Test {
type RuntimeEvent = RuntimeEvent;
type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
type XcmRouter = TestMessageSender;
@@ -287,15 +287,15 @@ impl pallet_xcm::Config for Test {
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
type AdvertisedXcmVersion = pezpallet_xcm::CurrentXcmVersion;
type TrustedLockers = ();
type SovereignAccountOf = SovereignAccountOf;
type Currency = Balances;
type CurrencyMatcher = IsConcrete<RelayLocation>;
type MaxLockers = frame_support::traits::ConstU32<8>;
type MaxRemoteLockConsumers = frame_support::traits::ConstU32<0>;
type MaxLockers = pezframe_support::traits::ConstU32<8>;
type MaxRemoteLockConsumers = pezframe_support::traits::ConstU32<0>;
type RemoteLockConsumerIdentifier = ();
type WeightInfo = pallet_xcm::TestWeightInfo;
type WeightInfo = pezpallet_xcm::TestWeightInfo;
type AdminOrigin = EnsureRoot<AccountId>;
type AuthorizedAliasConsideration = Disabled;
}
@@ -310,10 +310,10 @@ pub fn sibling_chain_account_id(para_id: u32, account: [u8; 32]) -> AccountId {
SovereignAccountOf::convert_location(&location).unwrap()
}
pub fn new_test_ext() -> sp_io::TestExternalities {
let mut t = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
pub fn new_test_ext() -> pezsp_io::TestExternalities {
let mut t = pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap();
let admin_account: AccountId = AccountId::new([0u8; 32]);
pallet_assets::GenesisConfig::<Test> {
pezpallet_assets::GenesisConfig::<Test> {
assets: vec![
(0, admin_account.clone(), true, MINIMUM_BALANCE),
(1, admin_account.clone(), true, MINIMUM_BALANCE),
@@ -334,7 +334,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
}
.assimilate_storage(&mut t)
.unwrap();
let mut ext = sp_io::TestExternalities::new(t);
let mut ext = pezsp_io::TestExternalities::new(t);
ext.execute_with(|| System::set_block_number(1));
ext
}
+1 -1
View File
@@ -18,7 +18,7 @@
//! correct destination
use super::{mock::*, *};
use frame_support::{assert_ok, traits::tokens::Pay};
use pezframe_support::{assert_ok, traits::tokens::Pay};
parameter_types! {
pub SenderAccount: AccountId = AccountId::new([3u8; 32]);
@@ -18,11 +18,11 @@
use super::{mock::*, *};
use frame_support::{
use pezframe_support::{
assert_ok,
traits::{tokens::GetSalary, RankedMembers},
};
use sp_runtime::{traits::ConvertToValue, DispatchResult};
use pezsp_runtime::{traits::ConvertToValue, DispatchResult};
parameter_types! {
pub Interior: InteriorLocation = Plurality { id: BodyId::Treasury, part: BodyPart::Voice }.into();
@@ -73,7 +73,7 @@ impl RankedMembers for TestClub {
}
fn demote(who: &Self::AccountId) -> DispatchResult {
CLUB.with(|club| match club.borrow().get(who) {
None => Err(sp_runtime::DispatchError::Unavailable),
None => Err(pezsp_runtime::DispatchError::Unavailable),
Some(&0) => {
club.borrow_mut().remove(&who);
Ok(())
@@ -104,7 +104,7 @@ impl GetSalary<Rank, AccountId, Balance> for FixedSalary {
}
}
impl pallet_salary::Config for Test {
impl pezpallet_salary::Config for Test {
type WeightInfo = ();
type RuntimeEvent = RuntimeEvent;
type Paymaster = SalaryPayOverXcm;
@@ -19,7 +19,7 @@
use super::{mock::*, *};
use crate::AliasesIntoAccountId32;
use frame_support::{
use pezframe_support::{
assert_ok, parameter_types,
traits::{fungible::Mutate, fungibles::Mutate as FungiblesMutate},
};
@@ -17,7 +17,7 @@
use super::*;
#[test]
fn pallet_query_should_work() {
fn pezpallet_query_should_work() {
AllowUnpaidFrom::set(vec![[Teyrchain(1)].into()]);
// They want to transfer 100 of our native asset from sovereign account of teyrchain #1 into #2
// and let them know to hand it to account #3.
@@ -52,12 +52,12 @@ fn pallet_query_should_work() {
}
#[test]
fn pallet_query_with_results_should_work() {
fn pezpallet_query_with_results_should_work() {
AllowUnpaidFrom::set(vec![[Teyrchain(1)].into()]);
// They want to transfer 100 of our native asset from sovereign account of teyrchain #1 into #2
// and let them know to hand it to account #3.
let message = Xcm(vec![QueryPallet {
module_name: "pallet_balances".into(),
module_name: "pezpallet_balances".into(),
response_info: QueryResponseInfo {
destination: Teyrchain(1).into(),
query_id: 1,
@@ -82,7 +82,7 @@ fn pallet_query_with_results_should_work() {
vec![PalletInfo::new(
1,
b"Balances".as_ref().into(),
b"pallet_balances".as_ref().into(),
b"pezpallet_balances".as_ref().into(),
1,
42,
69,
+2 -2
View File
@@ -15,7 +15,7 @@
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
use super::*;
use frame_support::{assert_ok, traits::Everything};
use pezframe_support::{assert_ok, traits::Everything};
use xcm_executor::traits::Properties;
fn props() -> Properties {
@@ -42,7 +42,7 @@ fn trailing_set_topic_as_id_with_unique_topic_should_work() {
);
// simulate sending `valid_xcm` with the `WithUniqueTopic` router
let mut sent_xcm = sp_io::TestExternalities::default().execute_with(|| {
let mut sent_xcm = pezsp_io::TestExternalities::default().execute_with(|| {
assert_ok!(send_xcm::<WithUniqueTopic<TestMessageSender>>(Location::parent(), valid_xcm,));
sent_xcm()
});
+2 -2
View File
@@ -162,9 +162,9 @@ fn errors_should_return_unused_weight() {
#[test]
fn weight_bounds_should_respect_instructions_limit() {
use sp_tracing::capture_test_logs;
use pezsp_tracing::capture_test_logs;
sp_tracing::init_for_tests();
pezsp_tracing::init_for_tests();
MaxInstructions::set(3);
// 4 instructions are too many.
let log_capture = capture_test_logs!({