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
+32 -32
View File
@@ -1,5 +1,5 @@
pub mod xcm_mock;
use frame_support::{assert_ok, weights::Weight};
use pezframe_support::{assert_ok, weights::Weight};
use parity_scale_codec::Encode;
use xcm::prelude::*;
use xcm_mock::*;
@@ -21,13 +21,13 @@ fn remote_account_ids_work() {
fn dmp() {
MockNet::reset();
let remark = parachain::RuntimeCall::System(
frame_system::Call::<parachain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
let remark = teyrchain::RuntimeCall::System(
pezframe_system::Call::<teyrchain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
);
Relay::execute_with(|| {
assert_ok!(RelayChainPalletXcm::send_xcm(
assert_ok!(RelayChainPezpalletXcm::send_xcm(
Here,
Parachain(1),
TeyrChain(1),
Xcm(vec![Transact {
origin_kind: OriginKind::SovereignAccount,
fallback_max_weight: Some(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)),
@@ -37,10 +37,10 @@ fn dmp() {
});
ParaA::execute_with(|| {
use parachain::{RuntimeEvent, System};
use teyrchain::{RuntimeEvent, System};
assert!(System::events().iter().any(|r| matches!(
r.event,
RuntimeEvent::System(frame_system::Event::Remarked { .. })
RuntimeEvent::System(pezframe_system::Event::Remarked { .. })
)));
});
}
@@ -50,10 +50,10 @@ fn ump() {
MockNet::reset();
let remark = relay_chain::RuntimeCall::System(
frame_system::Call::<relay_chain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
pezframe_system::Call::<relay_chain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
);
ParaA::execute_with(|| {
assert_ok!(ParachainPalletXcm::send_xcm(
assert_ok!(TeyrChainPezpalletXcm::send_xcm(
Here,
Parent,
Xcm(vec![Transact {
@@ -68,7 +68,7 @@ fn ump() {
use relay_chain::{RuntimeEvent, System};
assert!(System::events().iter().any(|r| matches!(
r.event,
RuntimeEvent::System(frame_system::Event::Remarked { .. })
RuntimeEvent::System(pezframe_system::Event::Remarked { .. })
)));
});
}
@@ -77,13 +77,13 @@ fn ump() {
fn xcmp() {
MockNet::reset();
let remark = parachain::RuntimeCall::System(
frame_system::Call::<parachain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
let remark = teyrchain::RuntimeCall::System(
pezframe_system::Call::<teyrchain::Runtime>::remark_with_event { remark: vec![1, 2, 3] },
);
ParaA::execute_with(|| {
assert_ok!(ParachainPalletXcm::send_xcm(
assert_ok!(TeyrChainPezpalletXcm::send_xcm(
Here,
(Parent, Parachain(2)),
(Parent, TeyrChain(2)),
Xcm(vec![Transact {
origin_kind: OriginKind::SovereignAccount,
fallback_max_weight: Some(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)),
@@ -93,10 +93,10 @@ fn xcmp() {
});
ParaB::execute_with(|| {
use parachain::{RuntimeEvent, System};
use teyrchain::{RuntimeEvent, System};
assert!(System::events().iter().any(|r| matches!(
r.event,
RuntimeEvent::System(frame_system::Event::Remarked { .. })
RuntimeEvent::System(pezframe_system::Event::Remarked { .. })
)));
});
}
@@ -110,13 +110,13 @@ fn remote_locking_and_unlocking() {
ParaB::execute_with(|| {
let message = Xcm(vec![LockAsset {
asset: (Here, locked_amount).into(),
unlocker: Parachain(1).into(),
unlocker: TeyrChain(1).into(),
}]);
assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, message.clone()));
assert_ok!(TeyrChainPezpalletXcm::send_xcm(Here, Parent, message.clone()));
});
Relay::execute_with(|| {
use pallet_balances::{BalanceLock, Reasons};
use pezpallet_balances::{BalanceLock, Reasons};
assert_eq!(
relay_chain::Balances::locks(&child_account_id(2)),
vec![BalanceLock { id: *b"py/xcmlk", amount: locked_amount, reasons: Reasons::All }]
@@ -125,9 +125,9 @@ fn remote_locking_and_unlocking() {
ParaA::execute_with(|| {
assert_eq!(
ReceivedDmp::<parachain::Runtime>::get(),
ReceivedDmp::<teyrchain::Runtime>::get(),
vec![Xcm(vec![NoteUnlockable {
owner: (Parent, Parachain(2)).into(),
owner: (Parent, TeyrChain(2)).into(),
asset: (Parent, locked_amount).into()
}])]
);
@@ -139,11 +139,11 @@ fn remote_locking_and_unlocking() {
asset: (Parent, locked_amount - 50).into(),
locker: Parent.into(),
}]);
assert_ok!(ParachainPalletXcm::send_xcm(Here, (Parent, Parachain(1)), message));
assert_ok!(TeyrChainPezpalletXcm::send_xcm(Here, (Parent, TeyrChain(1)), message));
});
Relay::execute_with(|| {
use pallet_balances::{BalanceLock, Reasons};
use pezpallet_balances::{BalanceLock, Reasons};
// Lock is reduced
assert_eq!(
relay_chain::Balances::locks(&child_account_id(2)),
@@ -157,9 +157,9 @@ fn remote_locking_and_unlocking() {
}
/// Scenario:
/// A parachain transfers funds on the relay chain to another parachain account.
/// A teyrchain transfers funds on the relay chain to another teyrchain account.
///
/// Asserts that the parachain accounts are updated as expected.
/// Asserts that the teyrchain accounts are updated as expected.
#[test]
fn withdraw_and_deposit() {
MockNet::reset();
@@ -170,10 +170,10 @@ fn withdraw_and_deposit() {
let message = Xcm(vec![
WithdrawAsset((Here, send_amount).into()),
buy_execution((Here, send_amount)),
DepositAsset { assets: AllCounted(1).into(), beneficiary: Parachain(2).into() },
DepositAsset { assets: AllCounted(1).into(), beneficiary: TeyrChain(2).into() },
]);
// Send withdraw and deposit
assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, message.clone()));
assert_ok!(TeyrChainPezpalletXcm::send_xcm(Here, Parent, message.clone()));
});
Relay::execute_with(|| {
@@ -189,7 +189,7 @@ fn withdraw_and_deposit() {
}
/// Scenario:
/// A parachain wants to be notified that a transfer worked correctly.
/// A teyrchain wants to be notified that a transfer worked correctly.
/// It sends a `QueryHolding` after the deposit to get notified on success.
///
/// Asserts that the balances are updated correctly and the expected XCM is sent.
@@ -205,10 +205,10 @@ fn query_holding() {
let message = Xcm(vec![
WithdrawAsset((Here, send_amount).into()),
buy_execution((Here, send_amount)),
DepositAsset { assets: AllCounted(1).into(), beneficiary: Parachain(2).into() },
DepositAsset { assets: AllCounted(1).into(), beneficiary: TeyrChain(2).into() },
ReportHolding {
response_info: QueryResponseInfo {
destination: Parachain(1).into(),
destination: TeyrChain(1).into(),
query_id: query_id_set,
max_weight: Weight::from_parts(1_000_000_000, 1024 * 1024),
},
@@ -216,7 +216,7 @@ fn query_holding() {
},
]);
// Send withdraw and deposit with query holding
assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, message.clone(),));
assert_ok!(TeyrChainPezpalletXcm::send_xcm(Here, Parent, message.clone(),));
});
// Check that transfer was executed
@@ -236,7 +236,7 @@ fn query_holding() {
// Check that QueryResponse message was received
ParaA::execute_with(|| {
assert_eq!(
ReceivedDmp::<parachain::Runtime>::get(),
ReceivedDmp::<teyrchain::Runtime>::get(),
vec![Xcm(vec![QueryResponse {
query_id: query_id_set,
response: Response::Assets(Assets::new()),