Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
@@ -4,7 +4,7 @@ version = "1.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
description = "Asset Hub Pezkuwichain runtime integration tests with xcm-emulator"
description = "Asset Hub Pezkuwichain runtime integration tests with xcm-pez-emulator"
publish = false
documentation = "https://docs.rs/asset-hub-pezkuwichain-integration-tests"
repository = { workspace = true }
@@ -36,10 +36,10 @@ pezkuwi-runtime-common = { workspace = true, default-features = true }
pezkuwichain-runtime-constants = { workspace = true, default-features = true }
xcm = { workspace = true }
xcm-executor = { workspace = true }
xcm-runtime-apis = { workspace = true, default-features = true }
xcm-runtime-pezapis = { workspace = true, default-features = true }
# Pezcumulus
asset-test-utils = { workspace = true, default-features = true }
asset-test-pezutils = { workspace = true, default-features = true }
pezcumulus-pezpallet-teyrchain-system = { workspace = true }
emulated-integration-tests-common = { workspace = true }
pezkuwichain-system-emulated-network = { workspace = true }
@@ -47,7 +47,7 @@ teyrchains-common = { workspace = true, default-features = true }
[features]
runtime-benchmarks = [
"asset-test-utils/runtime-benchmarks",
"asset-test-pezutils/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"emulated-integration-tests-common/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
@@ -66,6 +66,6 @@ runtime-benchmarks = [
"pezsp-runtime/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
@@ -33,13 +33,13 @@ mod imports {
pub(crate) use xcm_executor::traits::TransferType;
// Pezcumulus
pub(crate) use asset_test_utils::xcm_helpers;
pub(crate) use asset_test_pezutils::xcm_helpers;
pub(crate) use emulated_integration_tests_common::{
accounts::DUMMY_EMPTY,
test_relay_is_trusted_teleporter, test_teyrchain_is_trusted_teleporter,
test_teyrchain_is_trusted_teleporter_for_relay,
test_xcm_fee_querying_apis_work_for_asset_hub,
xcm_emulator::{
xcm_pez_emulator::{
assert_expected_events, bx, Chain, RelayChain as Relay, Test, TestArgs, TestContext,
TestExt, Teyrchain as Para,
},
@@ -62,8 +62,8 @@ mod imports {
genesis::{AssetHubPezkuwichainAssetOwner, ED as ASSET_HUB_PEZKUWICHAIN_ED},
AssetHubPezkuwichainParaPallet as AssetHubPezkuwichainPallet,
},
penpal_emulated_chain::{
penpal_runtime::xcm_config::{
pez_penpal_emulated_chain::{
pez_penpal_runtime::xcm_config::{
CustomizableAssetFromSystemAssetHub as PenpalCustomizableAssetFromSystemAssetHub,
LocalReservableFromAssetHub as PenpalLocalReservableFromAssetHub,
LocalTeleportableToAssetHub as PenpalLocalTeleportableToAssetHub,
@@ -159,7 +159,7 @@ fn spend_roc_on_asset_hub() {
AssetHubPezkuwichain,
vec![
RuntimeEvent::Balances(pezpallet_balances::Event::Transfer { .. }) => {},
RuntimeEvent::TeyrchainSystem(pezcumulus_pallet_teyrchain_system::Event::UpwardMessageSent { .. }) => {},
RuntimeEvent::TeyrchainSystem(pezcumulus_pezpallet_teyrchain_system::Event::UpwardMessageSent { .. }) => {},
RuntimeEvent::MessageQueue(pezpallet_message_queue::Event::Processed { success: true ,.. }) => {},
]
);
@@ -240,7 +240,7 @@ fn create_and_claim_treasury_spend_in_usdt() {
to: to == &alice,
amount: amount == &SPEND_AMOUNT,
},
RuntimeEvent::TeyrchainSystem(pezcumulus_pallet_teyrchain_system::Event::UpwardMessageSent { .. }) => {},
RuntimeEvent::TeyrchainSystem(pezcumulus_pezpallet_teyrchain_system::Event::UpwardMessageSent { .. }) => {},
RuntimeEvent::MessageQueue(pezpallet_message_queue::Event::Processed { success: true ,.. }) => {},
]
);
@@ -18,7 +18,7 @@
use crate::imports::*;
use emulated_integration_tests_common::test_can_estimate_and_pay_exact_fees;
use pezframe_support::dispatch::RawOrigin;
use xcm_runtime_apis::{
use xcm_runtime_pezapis::{
dry_run::runtime_decl_for_dry_run_api::DryRunApiV2,
fees::runtime_decl_for_xcm_payment_api::XcmPaymentApiV2,
};