Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -4,7 +4,7 @@ version = "3.0.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
description = "Common resources for integration testing with xcm-emulator"
|
||||
description = "Common resources for integration testing with xcm-pez-emulator"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/emulated-integration-tests-common"
|
||||
@@ -44,16 +44,16 @@ pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
xcm = { workspace = true, default-features = true }
|
||||
xcm-builder = { workspace = true, default-features = true }
|
||||
xcm-executor = { workspace = true, default-features = true }
|
||||
xcm-runtime-apis = { workspace = true, default-features = true }
|
||||
xcm-simulator = { workspace = true, default-features = true }
|
||||
xcm-runtime-pezapis = { workspace = true, default-features = true }
|
||||
xcm-pez-simulator = { 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, default-features = true }
|
||||
pezcumulus-pezpallet-xcmp-queue = { workspace = true, default-features = true }
|
||||
pezcumulus-primitives-core = { workspace = true, default-features = true }
|
||||
teyrchains-common = { workspace = true, default-features = true }
|
||||
xcm-emulator = { workspace = true, default-features = true }
|
||||
xcm-pez-emulator = { workspace = true, default-features = true }
|
||||
|
||||
# Bridges
|
||||
bp-messages = { workspace = true, default-features = true }
|
||||
@@ -63,7 +63,7 @@ pezpallet-xcm-bridge-hub = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"asset-test-utils/runtime-benchmarks",
|
||||
"asset-test-pezutils/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
@@ -90,9 +90,9 @@ runtime-benchmarks = [
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"teyrchains-common/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-emulator/runtime-benchmarks",
|
||||
"xcm-pez-emulator/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-simulator/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm-pez-simulator/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -46,14 +46,14 @@ pub use xcm::{
|
||||
};
|
||||
|
||||
// Pezcumulus
|
||||
pub use pezcumulus_pallet_teyrchain_system;
|
||||
pub use pezcumulus_pallet_xcmp_queue;
|
||||
pub use pezcumulus_pezpallet_teyrchain_system;
|
||||
pub use pezcumulus_pezpallet_xcmp_queue;
|
||||
pub use pezcumulus_primitives_core::{
|
||||
relay_chain::HrmpChannelId, DmpMessageHandler, Junction, Junctions, NetworkId, ParaId,
|
||||
XcmpMessageHandler,
|
||||
};
|
||||
pub use teyrchains_common::{AccountId, Balance};
|
||||
pub use xcm_emulator::{
|
||||
pub use xcm_pez_emulator::{
|
||||
assert_expected_events, bx, helpers::weight_within_threshold, BridgeLaneId, BridgeMessage,
|
||||
BridgeMessageDispatchError, BridgeMessageHandler, Chain, Network, RelayChain, TestExt,
|
||||
Teyrchain,
|
||||
@@ -516,7 +516,7 @@ macro_rules! impl_assert_events_helpers_for_teyrchain {
|
||||
Self,
|
||||
vec![
|
||||
[<$chain RuntimeEvent>]::<N>::TeyrchainSystem(
|
||||
$crate::impls::pezcumulus_pallet_teyrchain_system::Event::UpwardMessageSent { .. }
|
||||
$crate::impls::pezcumulus_pezpallet_teyrchain_system::Event::UpwardMessageSent { .. }
|
||||
) => {},
|
||||
]
|
||||
);
|
||||
|
||||
@@ -19,8 +19,8 @@ pub mod xcm_helpers;
|
||||
|
||||
use codec::Encode;
|
||||
use pezcumulus_primitives_core::relay_chain::Slot;
|
||||
pub use xcm_emulator;
|
||||
pub use xcm_simulator;
|
||||
pub use xcm_pez_emulator;
|
||||
pub use xcm_pez_simulator;
|
||||
|
||||
// Bizinikiwi
|
||||
use pezframe_support::parameter_types;
|
||||
@@ -41,7 +41,7 @@ use teyrchains_common::BlockNumber;
|
||||
use pezkuwi_primitives::{AssignmentId, ValidatorId};
|
||||
use pezsp_runtime::traits::Convert;
|
||||
use teyrchains_common::{AccountId, AuraId};
|
||||
use xcm_emulator::{RelayBlockNumber, AURA_ENGINE_ID};
|
||||
use xcm_pez_emulator::{RelayBlockNumber, AURA_ENGINE_ID};
|
||||
|
||||
pub const XCM_V2: u32 = 2;
|
||||
pub const XCM_V3: u32 = 3;
|
||||
|
||||
@@ -42,10 +42,10 @@ pub use xcm::{
|
||||
pub use xcm_executor::traits::{DropAssets, TransferType};
|
||||
|
||||
// Pezcumulus
|
||||
pub use asset_test_utils;
|
||||
pub use pezcumulus_pallet_xcmp_queue;
|
||||
pub use asset_test_pezutils;
|
||||
pub use pezcumulus_pezpallet_xcmp_queue;
|
||||
pub use teyrchains_common::AccountId;
|
||||
pub use xcm_emulator::{
|
||||
pub use xcm_pez_emulator::{
|
||||
assert_expected_events, Chain, RelayChain, TestArgs, TestContext, TestExt, Teyrchain as Para,
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ pub use pezframe_support::{
|
||||
dispatch::{GetDispatchInfo, RawOrigin},
|
||||
BoundedVec,
|
||||
};
|
||||
pub use xcm_runtime_apis::{
|
||||
pub use xcm_runtime_pezapis::{
|
||||
dry_run::runtime_decl_for_dry_run_api::DryRunApiV2,
|
||||
fees::{runtime_decl_for_xcm_payment_api::XcmPaymentApiV2, Error as XcmPaymentApiError},
|
||||
};
|
||||
@@ -162,7 +162,7 @@ macro_rules! test_teyrchain_is_trusted_teleporter {
|
||||
$crate::macros::pezpallet_xcm::Event::Attempted { outcome: $crate::macros::Outcome::Complete { .. } }
|
||||
) => {},
|
||||
RuntimeEvent::XcmpQueue(
|
||||
$crate::macros::pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }
|
||||
$crate::macros::pezcumulus_pezpallet_xcmp_queue::Event::XcmpMessageSent { .. }
|
||||
) => {},
|
||||
RuntimeEvent::Balances(
|
||||
$crate::macros::pezpallet_balances::Event::Burned { who: sender, amount }
|
||||
@@ -662,7 +662,7 @@ macro_rules! test_can_estimate_and_pay_exact_fees {
|
||||
let asset_owner = [<$owner_prefix AssetOwner>]::get();
|
||||
|
||||
// Fund teyrchain's sender account.
|
||||
// TODO: consider mint_foreign_asset to be part of xcm_emulator::Chain trait
|
||||
// TODO: consider mint_foreign_asset to be part of xcm_pez_emulator::Chain trait
|
||||
$sender_para::mint_foreign_asset(
|
||||
<$sender_para as $crate::macros::Chain>::RuntimeOrigin::signed(asset_owner.clone()),
|
||||
$asset_id.clone().into(),
|
||||
@@ -671,7 +671,7 @@ macro_rules! test_can_estimate_and_pay_exact_fees {
|
||||
);
|
||||
|
||||
// Fund the teyrchain origin's SA on Asset Hub with the native tokens.
|
||||
// TODO: consider fund_accounts to be part of xcm_emulator::Chain trait
|
||||
// TODO: consider fund_accounts to be part of xcm_pez_emulator::Chain trait
|
||||
$asset_hub::fund_accounts(vec![(sov_of_sender_on_ah.clone(), $amount * 2)]);
|
||||
|
||||
let beneficiary_id = [<$receiver_para Receiver>]::get();
|
||||
|
||||
@@ -19,7 +19,7 @@ use teyrchains_common::AccountId;
|
||||
// Pezkuwi
|
||||
use pezsp_core::H256;
|
||||
use xcm::{prelude::*, DoubleEncoded};
|
||||
use xcm_emulator::Chain;
|
||||
use xcm_pez_emulator::Chain;
|
||||
|
||||
use crate::impls::{bx, Encode};
|
||||
use pezframe_support::dispatch::{DispatchResultWithPostInfo, PostDispatchInfo};
|
||||
|
||||
Reference in New Issue
Block a user