Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -22,7 +22,7 @@ use frame::deps::{
|
||||
pezsp_io::TestExternalities,
|
||||
pezsp_runtime::{AccountId32, BuildStorage},
|
||||
};
|
||||
use xcm_simulator::{decl_test_network, decl_test_relay_chain, decl_test_teyrchain, TestExt};
|
||||
use xcm_pez_simulator::{decl_test_network, decl_test_relay_chain, decl_test_teyrchain, TestExt};
|
||||
|
||||
use super::{relay_chain, teyrchain};
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, T
|
||||
impl pezpallet_xcm::Config for Runtime {
|
||||
// No one can call `send`
|
||||
type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;
|
||||
type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator
|
||||
type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-pez-simulator
|
||||
// Anyone can execute XCM programs
|
||||
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||
// We execute any type of program
|
||||
|
||||
@@ -19,7 +19,7 @@ use frame::testing_prelude::*;
|
||||
use test_log::test;
|
||||
use xcm::prelude::*;
|
||||
use xcm_executor::traits::{ConvertLocation, TransferType};
|
||||
use xcm_simulator::TestExt;
|
||||
use xcm_pez_simulator::TestExt;
|
||||
|
||||
use super::{
|
||||
network::{MockNet, ParaA, Relay, ALICE, BOB, CENTS, INITIAL_BALANCE},
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
use frame::{deps::pezframe_system, runtime::prelude::*, traits::IdentityLookup};
|
||||
use xcm_executor::XcmExecutor;
|
||||
use xcm_simulator::mock_message_queue;
|
||||
use xcm_pez_simulator::mock_message_queue;
|
||||
|
||||
mod xcm_config;
|
||||
use xcm_config::XcmConfig;
|
||||
|
||||
@@ -155,7 +155,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, T
|
||||
impl pezpallet_xcm::Config for Runtime {
|
||||
// We turn off sending for these tests
|
||||
type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;
|
||||
type XcmRouter = super::super::network::TeyrchainXcmRouter<MessageQueue>; // Provided by xcm-simulator
|
||||
type XcmRouter = super::super::network::TeyrchainXcmRouter<MessageQueue>; // Provided by xcm-pez-simulator
|
||||
// Anyone can execute XCM programs
|
||||
type ExecuteXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, LocalOriginToLocation>;
|
||||
// We execute any type of program
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
//! configurable.
|
||||
//! - [`Builder`](xcm_builder): A collection of types used to configure the executor.
|
||||
//! - [`XCM Pallet`](pezpallet_xcm): A FRAME pallet for interacting with the executor.
|
||||
//! - [`Simulator`](xcm_simulator): A playground to tinker with different XCM programs and executor
|
||||
//! - [`Simulator`](xcm_pez_simulator): A playground to tinker with different XCM programs and executor
|
||||
//! configurations.
|
||||
//!
|
||||
//! XCM programs are composed of Instructions, which reference Locations and Assets.
|
||||
|
||||
Reference in New Issue
Block a user