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
@@ -1,15 +1,15 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
//! Benchmarking setup for pallet-template
//! Benchmarking setup for pezpallet-template
use super::*;
#[allow(unused)]
use crate::Pallet as SnowbridgeControl;
use frame_benchmarking::v2::*;
use frame_system::RawOrigin;
use pezframe_benchmarking::v2::*;
use pezframe_system::RawOrigin;
use snowbridge_core::eth;
use snowbridge_outbound_queue_primitives::OperatingMode;
use sp_runtime::SaturatedConversion;
use pezsp_runtime::SaturatedConversion;
use xcm::prelude::*;
#[benchmarks]
+16 -16
View File
@@ -32,15 +32,15 @@ pub mod api;
pub mod weights;
pub use weights::*;
use frame_support::{
pallet_prelude::*,
use pezframe_support::{
pezpallet_prelude::*,
traits::{
fungible::{Inspect, Mutate},
tokens::Preservation,
Contains, EnsureOrigin,
},
};
use frame_system::pallet_prelude::*;
use pezframe_system::pezpallet_prelude::*;
use snowbridge_core::{
meth, AgentId, AssetMetadata, Channel, ChannelId, ParaId,
PricingParameters as PricingParametersRecord, TokenId, TokenIdOf, PRIMARY_GOVERNANCE_CHANNEL,
@@ -50,21 +50,21 @@ use snowbridge_outbound_queue_primitives::{
v1::{Command, Initializer, Message, SendMessage},
OperatingMode, SendError,
};
use sp_core::{RuntimeDebug, H160, H256};
use sp_io::hashing::blake2_256;
use sp_runtime::{traits::MaybeConvert, DispatchError, SaturatedConversion};
use sp_std::prelude::*;
use pezsp_core::{RuntimeDebug, H160, H256};
use pezsp_io::hashing::blake2_256;
use pezsp_runtime::{traits::MaybeConvert, DispatchError, SaturatedConversion};
use pezsp_std::prelude::*;
use xcm::prelude::*;
use xcm_executor::traits::ConvertLocation;
#[cfg(feature = "runtime-benchmarks")]
use frame_support::traits::OriginTrait;
use pezframe_support::traits::OriginTrait;
pub use pallet::*;
pub type BalanceOf<T> =
<<T as pallet::Config>::Token as Inspect<<T as frame_system::Config>::AccountId>>::Balance;
pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
<<T as pallet::Config>::Token as Inspect<<T as pezframe_system::Config>::AccountId>>::Balance;
pub type AccountIdOf<T> = <T as pezframe_system::Config>::AccountId;
pub type PricingParametersOf<T> = PricingParametersRecord<BalanceOf<T>>;
/// Hash the location to produce an agent id
@@ -94,11 +94,11 @@ where
No,
}
#[frame_support::pallet]
#[pezframe_support::pallet]
pub mod pallet {
use frame_support::dispatch::PostDispatchInfo;
use pezframe_support::dispatch::PostDispatchInfo;
use snowbridge_core::StaticLookup;
use sp_core::U256;
use pezsp_core::U256;
use super::*;
@@ -107,9 +107,9 @@ pub mod pallet {
pub struct Pallet<T>(_);
#[pallet::config]
pub trait Config: frame_system::Config {
pub trait Config: pezframe_system::Config {
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
/// Send messages to Ethereum
type OutboundQueue: SendMessage<Balance = BalanceOf<Self>>;
@@ -234,7 +234,7 @@ pub mod pallet {
StorageMap<_, Blake2_128Concat, TokenId, Location, OptionQuery>;
#[pallet::genesis_config]
#[derive(frame_support::DefaultNoBound)]
#[derive(pezframe_support::DefaultNoBound)]
pub struct GenesisConfig<T: Config> {
// Own teyrchain id
pub para_id: ParaId,
@@ -2,16 +2,16 @@
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
//! Governance API for controlling the Ethereum side of the bridge
use super::*;
use frame_support::{
use pezframe_support::{
migrations::VersionedMigration,
pallet_prelude::*,
pezpallet_prelude::*,
traits::{OnRuntimeUpgrade, UncheckedOnRuntimeUpgrade},
weights::Weight,
};
use sp_std::marker::PhantomData;
use pezsp_std::marker::PhantomData;
#[cfg(feature = "try-runtime")]
use sp_runtime::TryRuntimeError;
use pezsp_runtime::TryRuntimeError;
const LOG_TARGET: &str = "ethereum_system::migration";
@@ -71,7 +71,7 @@ pub mod v0 {
#[cfg(feature = "try-runtime")]
fn post_upgrade(_: Vec<u8>) -> Result<(), TryRuntimeError> {
frame_support::ensure!(
pezframe_support::ensure!(
Pallet::<T>::is_initialized(),
"Agents and channels were not initialized."
);
@@ -84,7 +84,7 @@ pub mod v1 {
use super::*;
#[cfg(feature = "try-runtime")]
use sp_core::U256;
use pezsp_core::U256;
/// Descreases the fee per gas.
pub struct FeePerGasMigration<T>(PhantomData<T>);
@@ -219,5 +219,5 @@ pub type FeePerGasMigrationV0ToV1<T> = VersionedMigration<
1,
v1::FeePerGasMigration<T>,
Pallet<T>,
<T as frame_system::Config>::DbWeight,
<T as pezframe_system::Config>::DbWeight,
>;
+29 -29
View File
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
use crate as snowbridge_system;
use frame_support::{
use pezframe_support::{
derive_impl, parameter_types,
traits::{tokens::fungible::Mutate, ConstU128, ConstU8},
weights::IdentityFee,
PalletId,
};
use sp_core::H256;
use pezsp_core::H256;
use xcm_executor::traits::ConvertLocation;
use snowbridge_core::{
@@ -15,7 +15,7 @@ use snowbridge_core::{
Rewards,
};
use snowbridge_outbound_queue_primitives::v1::ConstantGasMeter;
use sp_runtime::{
use pezsp_runtime::{
traits::{AccountIdConversion, BlakeTwo256, IdentityLookup, Keccak256},
AccountId32, BuildStorage, FixedU128,
};
@@ -24,17 +24,17 @@ use xcm::prelude::*;
#[cfg(feature = "runtime-benchmarks")]
use crate::BenchmarkHelper;
type Block = frame_system::mocking::MockBlock<Test>;
type Block = pezframe_system::mocking::MockBlock<Test>;
type Balance = u128;
pub type AccountId = AccountId32;
// A stripped-down version of pallet-xcm that only inserts an XCM origin into the runtime
// A stripped-down version of pezpallet-xcm that only inserts an XCM origin into the runtime
#[allow(dead_code)]
#[frame_support::pallet]
mod pallet_xcm_origin {
use frame_support::{
pallet_prelude::*,
#[pezframe_support::pallet]
mod pezpallet_xcm_origin {
use pezframe_support::{
pezpallet_prelude::*,
traits::{Contains, OriginTrait},
};
use xcm::latest::prelude::*;
@@ -43,8 +43,8 @@ mod pallet_xcm_origin {
pub struct Pallet<T>(_);
#[pallet::config]
pub trait Config: frame_system::Config {
type RuntimeOrigin: From<Origin> + From<<Self as frame_system::Config>::RuntimeOrigin>;
pub trait Config: pezframe_system::Config {
type RuntimeOrigin: From<Origin> + From<<Self as pezframe_system::Config>::RuntimeOrigin>;
}
// Insert this custom Origin into the aggregate RuntimeOrigin
@@ -93,21 +93,21 @@ mod pallet_xcm_origin {
}
// Configure a mock runtime to test the pallet.
frame_support::construct_runtime!(
pezframe_support::construct_runtime!(
pub enum Test
{
System: frame_system,
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
XcmOrigin: pallet_xcm_origin::{Pallet, Origin},
System: pezframe_system,
Balances: pezpallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
XcmOrigin: pezpallet_xcm_origin::{Pallet, Origin},
OutboundQueue: snowbridge_pallet_outbound_queue::{Pallet, Call, Storage, Event<T>},
EthereumSystem: snowbridge_system,
MessageQueue: pallet_message_queue::{Pallet, Call, Storage, Event<T>}
MessageQueue: pezpallet_message_queue::{Pallet, Call, Storage, Event<T>}
}
);
#[derive_impl(frame_system::config_preludes::TestDefaultConfig)]
impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
#[derive_impl(pezframe_system::config_preludes::TestDefaultConfig)]
impl pezframe_system::Config for Test {
type BaseCallFilter = pezframe_support::traits::Everything;
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
@@ -117,19 +117,19 @@ impl frame_system::Config for Test {
type Lookup = IdentityLookup<Self::AccountId>;
type RuntimeEvent = RuntimeEvent;
type PalletInfo = PalletInfo;
type AccountData = pallet_balances::AccountData<u128>;
type AccountData = pezpallet_balances::AccountData<u128>;
type Nonce = u64;
type Block = Block;
}
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)]
impl pallet_balances::Config for Test {
#[derive_impl(pezpallet_balances::config_preludes::TestDefaultConfig)]
impl pezpallet_balances::Config for Test {
type Balance = Balance;
type ExistentialDeposit = ConstU128<1>;
type AccountStore = System;
}
impl pallet_xcm_origin::Config for Test {
impl pezpallet_xcm_origin::Config for Test {
type RuntimeOrigin = RuntimeOrigin;
}
@@ -139,7 +139,7 @@ parameter_types! {
pub static ServiceWeight: Option<Weight> = Some(Weight::from_parts(100, 100));
}
impl pallet_message_queue::Config for Test {
impl pezpallet_message_queue::Config for Test {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
type MessageProcessor = OutboundQueue;
@@ -205,14 +205,14 @@ parameter_types! {
#[cfg(feature = "runtime-benchmarks")]
impl BenchmarkHelper<RuntimeOrigin> for () {
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
RuntimeOrigin::from(pallet_xcm_origin::Origin(location))
RuntimeOrigin::from(pezpallet_xcm_origin::Origin(location))
}
}
impl crate::Config for Test {
type RuntimeEvent = RuntimeEvent;
type OutboundQueue = OutboundQueue;
type SiblingOrigin = pallet_xcm_origin::EnsureXcm<AllowSiblingsOnly>;
type SiblingOrigin = pezpallet_xcm_origin::EnsureXcm<AllowSiblingsOnly>;
type AgentIdOf = snowbridge_core::AgentIdOf;
type TreasuryAccount = TreasuryAccount;
type Token = Balances;
@@ -226,8 +226,8 @@ impl crate::Config for Test {
}
// Build genesis storage according to the mock runtime.
pub fn new_test_ext(genesis_build: bool) -> sp_io::TestExternalities {
let mut storage = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
pub fn new_test_ext(genesis_build: bool) -> pezsp_io::TestExternalities {
let mut storage = pezframe_system::GenesisConfig::<Test>::default().build_storage().unwrap();
if genesis_build {
crate::GenesisConfig::<Test> {
@@ -239,7 +239,7 @@ pub fn new_test_ext(genesis_build: bool) -> sp_io::TestExternalities {
.unwrap();
}
let mut ext: sp_io::TestExternalities = storage.into();
let mut ext: pezsp_io::TestExternalities = storage.into();
let initial_amount = InitialFunding::get();
let test_para_id = TestParaId::get();
let sovereign_account = sibling_sovereign_account::<Test>(test_para_id.into());
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
use crate::{mock::*, *};
use frame_support::{assert_noop, assert_ok};
use pezframe_support::{assert_noop, assert_ok};
use hex_literal::hex;
use snowbridge_core::eth;
use sp_core::H256;
use sp_runtime::{AccountId32, DispatchError::BadOrigin};
use pezsp_core::H256;
use pezsp_runtime::{AccountId32, DispatchError::BadOrigin};
#[test]
fn test_agent_for_here() {
@@ -125,7 +125,7 @@ fn set_pricing_parameters_invalid() {
Error::<Test>::InvalidPricingParameters
);
params = Parameters::get();
params.fee_per_gas = sp_core::U256::zero();
params.fee_per_gas = pezsp_core::U256::zero();
assert_noop!(
EthereumSystem::set_pricing_parameters(origin.clone(), params),
Error::<Test>::InvalidPricingParameters
@@ -137,7 +137,7 @@ fn set_pricing_parameters_invalid() {
Error::<Test>::InvalidPricingParameters
);
params = Parameters::get();
params.rewards.remote = sp_core::U256::zero();
params.rewards.remote = pezsp_core::U256::zero();
assert_noop!(
EthereumSystem::set_pricing_parameters(origin, params),
Error::<Test>::InvalidPricingParameters
@@ -1,7 +1,7 @@
//! Autogenerated weights for `snowbridge_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-10-09, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `crake.local`, CPU: `<UNKNOWN>`
@@ -27,7 +27,7 @@
#![allow(unused_imports)]
#![allow(missing_docs)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `snowbridge_system`.