Complete terminology rebrand to Pezkuwi ecosystem

Applied global changes: Polkadot->Pezkuwi, Parachain->TeyrChain, pallet->pezpallet, frame->pezframe.

Updated authors in Cargo.toml to include Kurdistan Tech Institute and pezkuwichain team.

Used Cargo aliases to maintain SDK compatibility while using rebranded names in source code.
This commit is contained in:
2025-12-22 09:03:43 +03:00
parent a52909422a
commit d839cbd92b
180 changed files with 3537 additions and 2889 deletions
+30 -30
View File
@@ -19,43 +19,43 @@ quinn-proto = { version = "0.9.6", features = [ "arbitrary" ] }
ziggy = { workspace = true }
generic-runtime-template = { path = "../runtime" }
parachains-common = { workspace = true }
teyrchains-common = { workspace = true }
parity-scale-codec = { workspace = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-runtime = { workspace = true }
sp-state-machine = { workspace = true }
pallet-balances = { workspace = true }
pallet-collator-selection = { workspace = true }
pallet-multisig = { workspace = true }
pallet-scheduler = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
pallet-utility = { workspace = true }
pallet-whitelist = { workspace = true }
pezpallet-balances = { workspace = true }
pezpallet-collator-selection = { workspace = true }
pezpallet-multisig = { workspace = true }
pezpallet-scheduler = { workspace = true }
pezpallet-sudo = { workspace = true }
pezpallet-timestamp = { workspace = true }
pezpallet-utility = { workspace = true }
pezpallet-whitelist = { workspace = true }
cumulus-pallet-parachain-system = { workspace = true }
cumulus-pezpallet-teyrchain-system = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-parachain-inherent = { workspace = true }
cumulus-primitives-teyrchain-inherent = { workspace = true }
cumulus-test-relay-sproof-builder = { workspace = true }
[features]
default = [ "std", "try-runtime" ]
std = [
"frame-support/std",
"pezframe-support/std",
"generic-runtime-template/std",
"pallet-collator-selection/std",
"pallet-multisig/std",
"pallet-scheduler/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-utility/std",
"pallet-whitelist/std",
"pezpallet-collator-selection/std",
"pezpallet-multisig/std",
"pezpallet-scheduler/std",
"pezpallet-sudo/std",
"pezpallet-timestamp/std",
"pezpallet-utility/std",
"pezpallet-whitelist/std",
"parity-scale-codec/std",
"sp-consensus-aura/std",
"sp-runtime/std",
@@ -63,16 +63,16 @@ std = [
fuzzing = []
tanssi = []
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"generic-runtime-template/try-runtime",
"pallet-collator-selection/try-runtime",
"pallet-multisig/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-sudo/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-utility/try-runtime",
"pallet-whitelist/try-runtime",
"pezpallet-collator-selection/try-runtime",
"pezpallet-multisig/try-runtime",
"pezpallet-scheduler/try-runtime",
"pezpallet-sudo/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-whitelist/try-runtime",
"sp-runtime/try-runtime",
]
+37 -37
View File
@@ -4,20 +4,20 @@ use std::{
};
#[cfg(not(feature = "tanssi"))]
use frame_support::traits::Get;
use frame_support::{
use pezframe_support::traits::Get;
use pezframe_support::{
dispatch::GetDispatchInfo,
traits::{IntegrityTest, TryState, TryStateSelect},
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
};
use frame_system::Account;
use pezframe_system::Account;
// Local Imports
use generic_runtime_template::{
constants::SLOT_DURATION, AllPalletsWithSystem, Balance, Balances, Executive, Runtime,
constants::SLOT_DURATION, AllPezpalletsWithSystem, Balance, Balances, Executive, Runtime,
RuntimeCall, RuntimeOrigin, SudoConfig, UncheckedExtrinsic,
};
use pallet_balances::{Holds, TotalIssuance};
use parachains_common::AccountId;
use pezpallet_balances::{Holds, TotalIssuance};
use teyrchains_common::AccountId;
use parity_scale_codec::{DecodeLimit, Encode};
use sp_consensus_aura::{Slot, AURA_ENGINE_ID};
use sp_runtime::{
@@ -61,9 +61,9 @@ fn generate_genesis(accounts: &[AccountId]) -> Storage {
candidacy_bond: 1 << 57,
desired_candidates: 1,
},
parachain_info: Default::default(),
parachain_system: Default::default(),
polkadot_xcm: Default::default(),
teyrchain_info: Default::default(),
teyrchain_system: Default::default(),
pezkuwi_xcm: Default::default(),
assets: Default::default(),
transaction_payment: Default::default(),
sudo: SudoConfig { key: Some(root) },
@@ -165,14 +165,14 @@ fn initialize_block(block: u32) {
// We apply the timestamp extrinsic for the current block.
Executive::apply_extrinsic(UncheckedExtrinsic::new_bare(RuntimeCall::Timestamp(
pallet_timestamp::Call::set { now: current_timestamp },
pezpallet_timestamp::Call::set { now: current_timestamp },
)))
.unwrap()
.unwrap();
let parachain_validation_data = {
let teyrchain_validation_data = {
use cumulus_primitives_core::{relay_chain::HeadData, PersistedValidationData};
use cumulus_primitives_parachain_inherent::ParachainInherentData;
use cumulus_primitives_teyrchain_inherent::TeyrChainInherentData;
use cumulus_test_relay_sproof_builder::RelayStateSproofBuilder;
let parent_head = HeadData(prev_header.clone().unwrap_or(parent_header.clone()).encode());
@@ -185,7 +185,7 @@ fn initialize_block(block: u32) {
let (relay_parent_storage_root, relay_chain_state) =
sproof_builder.into_state_root_and_proof();
let data = ParachainInherentData {
let data = TeyrChainInherentData {
validation_data: PersistedValidationData {
parent_head,
relay_parent_number: block,
@@ -196,11 +196,11 @@ fn initialize_block(block: u32) {
downward_messages: Default::default(),
horizontal_messages: Default::default(),
};
cumulus_pallet_parachain_system::Call::set_validation_data { data }
cumulus_pezpallet_teyrchain_system::Call::set_validation_data { data }
};
Executive::apply_extrinsic(UncheckedExtrinsic::new_bare(RuntimeCall::ParachainSystem(
parachain_validation_data,
Executive::apply_extrinsic(UncheckedExtrinsic::new_bare(RuntimeCall::TeyrChainSystem(
teyrchain_validation_data,
)))
.unwrap()
.unwrap();
@@ -232,44 +232,44 @@ fn check_invariants(block: u32, initial_total_issuance: Balance) {
assert_eq!(total_issuance, counted_issuance);
assert!(total_issuance <= initial_total_issuance);
// We run all developer-defined integrity tests
AllPalletsWithSystem::integrity_test();
AllPalletsWithSystem::try_state(block, TryStateSelect::All).unwrap();
AllPezpalletsWithSystem::integrity_test();
AllPezpalletsWithSystem::try_state(block, TryStateSelect::All).unwrap();
}
fn recursive_call_filter(call: &RuntimeCall, origin: usize) -> bool {
match call {
//recursion
RuntimeCall::Sudo(
pallet_sudo::Call::sudo { call }
| pallet_sudo::Call::sudo_unchecked_weight { call, weight: _ },
pezpallet_sudo::Call::sudo { call }
| pezpallet_sudo::Call::sudo_unchecked_weight { call, weight: _ },
) if origin == 0 => recursive_call_filter(call, origin),
RuntimeCall::Utility(
pallet_utility::Call::with_weight { call, weight: _ }
| pallet_utility::Call::dispatch_as { as_origin: _, call }
| pallet_utility::Call::as_derivative { index: _, call },
pezpallet_utility::Call::with_weight { call, weight: _ }
| pezpallet_utility::Call::dispatch_as { as_origin: _, call }
| pezpallet_utility::Call::as_derivative { index: _, call },
) => recursive_call_filter(call, origin),
RuntimeCall::Utility(
pallet_utility::Call::force_batch { calls }
| pallet_utility::Call::batch { calls }
| pallet_utility::Call::batch_all { calls },
pezpallet_utility::Call::force_batch { calls }
| pezpallet_utility::Call::batch { calls }
| pezpallet_utility::Call::batch_all { calls },
) => calls.iter().all(|call| recursive_call_filter(call, origin)),
RuntimeCall::Scheduler(
pallet_scheduler::Call::schedule_named_after {
pezpallet_scheduler::Call::schedule_named_after {
id: _,
after: _,
maybe_periodic: _,
priority: _,
call,
}
| pallet_scheduler::Call::schedule { when: _, maybe_periodic: _, priority: _, call }
| pallet_scheduler::Call::schedule_named {
| pezpallet_scheduler::Call::schedule { when: _, maybe_periodic: _, priority: _, call }
| pezpallet_scheduler::Call::schedule_named {
when: _,
id: _,
maybe_periodic: _,
priority: _,
call,
}
| pallet_scheduler::Call::schedule_after {
| pezpallet_scheduler::Call::schedule_after {
after: _,
maybe_periodic: _,
priority: _,
@@ -277,8 +277,8 @@ fn recursive_call_filter(call: &RuntimeCall, origin: usize) -> bool {
},
) => recursive_call_filter(call, origin),
RuntimeCall::Multisig(
pallet_multisig::Call::as_multi_threshold_1 { other_signatories: _, call }
| pallet_multisig::Call::as_multi {
pezpallet_multisig::Call::as_multi_threshold_1 { other_signatories: _, call }
| pezpallet_multisig::Call::as_multi {
threshold: _,
other_signatories: _,
maybe_timepoint: _,
@@ -287,19 +287,19 @@ fn recursive_call_filter(call: &RuntimeCall, origin: usize) -> bool {
},
) => recursive_call_filter(call, origin),
RuntimeCall::Whitelist(
pallet_whitelist::Call::dispatch_whitelisted_call_with_preimage { call },
pezpallet_whitelist::Call::dispatch_whitelisted_call_with_preimage { call },
) => recursive_call_filter(call, origin),
// restrictions
RuntimeCall::Sudo(_) if origin != 0 => false,
RuntimeCall::System(
frame_system::Call::set_code { .. } | frame_system::Call::kill_prefix { .. },
pezframe_system::Call::set_code { .. } | pezframe_system::Call::kill_prefix { .. },
) => false,
#[cfg(not(feature = "tanssi"))]
RuntimeCall::CollatorSelection(
pallet_collator_selection::Call::set_desired_candidates { max },
) => *max < <Runtime as pallet_collator_selection::Config>::MaxCandidates::get(),
RuntimeCall::Balances(pallet_balances::Call::force_adjust_total_issuance { .. }) => false,
pezpallet_collator_selection::Call::set_desired_candidates { max },
) => *max < <Runtime as pezpallet_collator_selection::Config>::MaxCandidates::get(),
RuntimeCall::Balances(pezpallet_balances::Call::force_adjust_total_issuance { .. }) => false,
_ => true,
}