Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -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