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 -4
View File
@@ -72,7 +72,7 @@ use xcm_executor::{
},
AssetsInHolding,
};
use xcm_runtime_apis::{
use xcm_runtime_pezapis::{
authorized_aliases::{Error as AuthorizedAliasersApiError, OriginAliaser},
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
fees::Error as XcmPaymentApiError,
@@ -3063,7 +3063,7 @@ impl<T: Config> Pallet<T> {
///
/// Returns not only the call result and events, but also the local XCM, if any,
/// and any XCMs forwarded to other locations.
/// Meant to be used in the `xcm_runtime_apis::dry_run::DryRunApi` runtime API.
/// Meant to be used in the `xcm_runtime_pezapis::dry_run::DryRunApi` runtime API.
pub fn dry_run_call<Runtime, Router, OriginCaller, RuntimeCall>(
origin: OriginCaller,
call: RuntimeCall,
@@ -3119,7 +3119,7 @@ impl<T: Config> Pallet<T> {
/// Dry-runs `xcm` with the given `origin_location`.
///
/// Returns execution result, events, and any forwarded XCMs to other locations.
/// Meant to be used in the `xcm_runtime_apis::dry_run::DryRunApi` runtime API.
/// Meant to be used in the `xcm_runtime_pezapis::dry_run::DryRunApi` runtime API.
pub fn dry_run_xcm<Router>(
origin_location: VersionedLocation,
xcm: VersionedXcm<<T as Config>::RuntimeCall>,
@@ -3326,7 +3326,7 @@ impl<T: Config> Pallet<T> {
let asset_id = versioned_asset_id.clone().try_into().map_err(|()| {
tracing::trace!(
target: "xcm::xcm_runtime_apis::query_delivery_fees",
target: "xcm::xcm_runtime_pezapis::query_delivery_fees",
"Failed to convert asset id: {versioned_asset_id:?}!"
);
XcmPaymentApiError::VersionedConversionFailed
+1 -1
View File
@@ -456,7 +456,7 @@ pub mod v1 {
}
/// When adding a new XCM version, we need to run this migration for `pezpallet_xcm` to ensure that all
/// previously stored data with subkey prefix `XCM_VERSION-1` (and below) are migrated to the
/// previously stored data with pez_subkey prefix `XCM_VERSION-1` (and below) are migrated to the
/// `XCM_VERSION`.
///
/// NOTE: This migration can be permanently added to the runtime migrations.
+1 -1
View File
@@ -45,7 +45,7 @@ use xcm_executor::{
traits::{Identity, JustTry},
XcmExecutor,
};
use xcm_simulator::helpers::derive_topic_id;
use xcm_pez_simulator::helpers::derive_topic_id;
use crate::{self as pezpallet_xcm, TestWeightInfo};
+1 -1
View File
@@ -46,7 +46,7 @@ use xcm_executor::{
traits::{Properties, QueryHandler, QueryResponseStatus, ShouldExecute},
XcmExecutor,
};
use xcm_simulator::fake_message_hash;
use xcm_pez_simulator::fake_message_hash;
const ALICE: AccountId = AccountId::new([0u8; 32]);
const BOB: AccountId = AccountId::new([1u8; 32]);