chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
@@ -269,8 +269,8 @@ impl ConvertLocation<AccountId> for AccountIndex64Aliases {
/// `Convert` implementation to convert from some a `Signed` (system) `Origin` into an
/// `AccountIndex64`.
///
/// Typically used when configuring `pezpallet-xcm` in tests to allow `u64` accounts to dispatch an XCM
/// from an `AccountIndex64` origin.
/// Typically used when configuring `pezpallet-xcm` in tests to allow `u64` accounts to dispatch an
/// XCM from an `AccountIndex64` origin.
pub struct SignedToAccountIndex64<RuntimeOrigin, AccountId, Network>(
PhantomData<(RuntimeOrigin, AccountId, Network)>,
);
@@ -58,7 +58,8 @@ pub struct DescribePalletTerminal;
impl DescribeLocation for DescribePalletTerminal {
fn describe_location(l: &Location) -> Option<Vec<u8>> {
match l.unpack() {
(0, [PalletInstance(i)]) => Some((b"Pezpallet", Compact::<u32>::from(*i as u32)).encode()),
(0, [PalletInstance(i)]) =>
Some((b"Pezpallet", Compact::<u32>::from(*i as u32)).encode()),
_ => return None,
}
}
@@ -290,8 +290,8 @@ where
/// `Convert` implementation to convert from some an origin which implements `Backing` into a
/// corresponding `Plurality` `Location`.
///
/// Typically used when configuring `pezpallet-xcm` for allowing a collective's Origin to dispatch an
/// XCM from a `Plurality` origin.
/// Typically used when configuring `pezpallet-xcm` for allowing a collective's Origin to dispatch
/// an XCM from a `Plurality` origin.
pub struct BackingToPlurality<RuntimeOrigin, COrigin, Body>(
PhantomData<(RuntimeOrigin, COrigin, Body)>,
);
@@ -22,8 +22,8 @@ use pezframe_support::{
dispatch::GetDispatchInfo,
traits::{ProcessMessage, ProcessMessageError},
};
use scale_info::TypeInfo;
use pezsp_weights::{Weight, WeightMeter};
use scale_info::TypeInfo;
use xcm::{prelude::*, MAX_XCM_DECODE_DEPTH};
const LOG_TARGET: &str = "xcm::process-message";
@@ -145,7 +145,9 @@ pub struct AssetKind {
}
pub struct LocatableAssetKindConverter;
impl pezsp_runtime::traits::TryConvert<AssetKind, LocatableAssetId> for LocatableAssetKindConverter {
impl pezsp_runtime::traits::TryConvert<AssetKind, LocatableAssetId>
for LocatableAssetKindConverter
{
fn try_convert(value: AssetKind) -> Result<LocatableAssetId, AssetKind> {
Ok(LocatableAssetId { asset_id: value.asset_id, location: value.destination })
}
+4 -2
View File
@@ -21,8 +21,8 @@ use pezframe_support::{
weights::Weight,
};
use pezframe_system::EnsureRoot;
use primitive_types::H256;
use pezsp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage};
use primitive_types::H256;
use pezkuwi_runtime_teyrchains::{configuration, origin, shared};
use pezkuwi_teyrchain_primitives::primitives::Id as ParaId;
@@ -245,7 +245,9 @@ construct_runtime!(
}
);
pub fn kusama_like_with_balances(balances: Vec<(AccountId, Balance)>) -> pezsp_io::TestExternalities {
pub fn kusama_like_with_balances(
balances: Vec<(AccountId, Balance)>,
) -> pezsp_io::TestExternalities {
let mut t = pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap();
pezpallet_balances::GenesisConfig::<Runtime> { balances, ..Default::default() }