Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "xcm-emulator"
|
||||
name = "xcm-pez-emulator"
|
||||
description = "Test kit to emulate XCM program execution."
|
||||
version = "0.5.0"
|
||||
authors.workspace = true
|
||||
@@ -7,7 +7,7 @@ edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/xcm-emulator"
|
||||
documentation = "https://docs.rs/xcm-pez-emulator"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -47,7 +47,7 @@ pezkuwi-runtime-teyrchains = { workspace = true, default-features = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
xcm = { workspace = true, default-features = true }
|
||||
xcm-executor = { workspace = true, default-features = true }
|
||||
xcm-simulator = { workspace = true, default-features = true }
|
||||
xcm-pez-simulator = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
@@ -69,6 +69,6 @@ runtime-benchmarks = [
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"teyrchains-common/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-simulator/runtime-benchmarks",
|
||||
"xcm-pez-simulator/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
@@ -1,4 +1,4 @@
|
||||
# xcm-emulator
|
||||
# xcm-pez-emulator
|
||||
|
||||
XCM-Emulator is a tool to emulate XCM program execution using
|
||||
pre-configured runtimes, including those used to run on live
|
||||
@@ -19,5 +19,5 @@ in particular things like disputes, staking and iamonline events can't be tested
|
||||
## Alternatives
|
||||
|
||||
If you just wish to test execution of various XCM instructions
|
||||
against the XCM VM then the `xcm-simulator` (in the PezkuwiChain
|
||||
against the XCM VM then the `xcm-pez-simulator` (in the PezkuwiChain
|
||||
repo) is the perfect tool for this.
|
||||
@@ -66,7 +66,7 @@ pub use pezsp_runtime::BoundedSlice;
|
||||
pub use pezsp_tracing;
|
||||
|
||||
// Pezcumulus
|
||||
pub use pezcumulus_pallet_teyrchain_system::{
|
||||
pub use pezcumulus_pezpallet_teyrchain_system::{
|
||||
teyrchain_inherent::{deconstruct_teyrchain_inherent_data, InboundMessagesData},
|
||||
Call as TeyrchainSystemCall, Pallet as TeyrchainSystemPallet,
|
||||
};
|
||||
@@ -90,7 +90,7 @@ pub use xcm::latest::prelude::{
|
||||
Teyrchain as TeyrchainJunction, WeightLimit, XcmHash,
|
||||
};
|
||||
pub use xcm_executor::traits::ConvertLocation;
|
||||
use xcm_simulator::helpers::TopicIdTracker;
|
||||
use xcm_pez_simulator::helpers::TopicIdTracker;
|
||||
|
||||
pub type AccountIdOf<T> = <T as pezframe_system::Config>::AccountId;
|
||||
|
||||
@@ -731,7 +731,7 @@ macro_rules! decl_test_teyrchains {
|
||||
timestamp_set.dispatch(<Self as Chain>::RuntimeOrigin::none())
|
||||
);
|
||||
|
||||
// 2. inherent: pezcumulus_pallet_teyrchain_system::Call::set_validation_data
|
||||
// 2. inherent: pezcumulus_pezpallet_teyrchain_system::Call::set_validation_data
|
||||
let data = N::hrmp_channel_teyrchain_inherent_data(para_id, relay_block_number, parent_head_data);
|
||||
let (data, mut downward_messages, mut horizontal_messages) =
|
||||
$crate::deconstruct_teyrchain_inherent_data(data);
|
||||
@@ -1548,7 +1548,7 @@ pub struct TestAccount<R: Chain> {
|
||||
pub balance: Balance,
|
||||
}
|
||||
|
||||
/// Default `Args` provided by xcm-emulator to be stored in a `Test` instance
|
||||
/// Default `Args` provided by xcm-pez-emulator to be stored in a `Test` instance
|
||||
#[derive(Clone)]
|
||||
pub struct TestArgs {
|
||||
pub dest: Location,
|
||||
Reference in New Issue
Block a user