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
@@ -21,9 +21,9 @@ use super::*;
/// A mutator type allowing inspection and possible modification of the extra "sidecar" data.
///
/// This may be used as a `Deref` for the pezpallet's extra data. If mutated (using `DerefMut`), then
/// any uncommitted changes (see `commit` function) will be automatically committed to storage when
/// dropped. Changes, even after committed, may be reverted to their original values with the
/// This may be used as a `Deref` for the pezpallet's extra data. If mutated (using `DerefMut`),
/// then any uncommitted changes (see `commit` function) will be automatically committed to storage
/// when dropped. Changes, even after committed, may be reverted to their original values with the
/// `revert` function.
pub struct ExtraMutator<T: Config<I>, I: 'static = ()> {
id: T::AssetId,
+3 -1
View File
@@ -160,7 +160,9 @@ impl<T: Config<I>, I: 'static> Pezpallet<T, I> {
if amount < details.min_balance {
return DepositConsequence::BelowMinimum;
}
if !details.is_sufficient && !pezframe_system::Pezpallet::<T>::can_accrue_consumers(who, 2) {
if !details.is_sufficient &&
!pezframe_system::Pezpallet::<T>::can_accrue_consumers(who, 2)
{
return DepositConsequence::CannotCreate;
}
if details.is_sufficient && details.sufficients.checked_add(1).is_none() {
@@ -30,7 +30,9 @@ use pezframe_support::{
use super::*;
impl<T: Config<I>, I: 'static> fungibles::Inspect<<T as SystemConfig>::AccountId> for Pezpallet<T, I> {
impl<T: Config<I>, I: 'static> fungibles::Inspect<<T as SystemConfig>::AccountId>
for Pezpallet<T, I>
{
type AssetId = T::AssetId;
type Balance = T::Balance;
@@ -83,7 +85,9 @@ impl<T: Config<I>, I: 'static> fungibles::Inspect<<T as SystemConfig>::AccountId
}
}
impl<T: Config<I>, I: 'static> fungibles::Mutate<<T as SystemConfig>::AccountId> for Pezpallet<T, I> {
impl<T: Config<I>, I: 'static> fungibles::Mutate<<T as SystemConfig>::AccountId>
for Pezpallet<T, I>
{
fn done_mint_into(
asset_id: Self::AssetId,
beneficiary: &<T as SystemConfig>::AccountId,
+6 -4
View File
@@ -21,8 +21,8 @@
//! [`fungible`](pezframe_support::traits::fungible) traits, via [`fungibles`] traits.
//!
//! The pezpallet makes heavy use of concepts such as Holds and Freezes from the
//! [`pezframe_support::traits::fungible`] traits, therefore you should read and understand those docs
//! as a prerequisite to understanding this pezpallet.
//! [`pezframe_support::traits::fungible`] traits, therefore you should read and understand those
//! docs as a prerequisite to understanding this pezpallet.
//!
//! See the [`frame_tokens`] reference docs for more information about the place of the
//! Assets pezpallet in FRAME.
@@ -171,11 +171,11 @@ pub use types::*;
extern crate alloc;
extern crate core;
use scale_info::TypeInfo;
use pezsp_runtime::{
traits::{AtLeast32BitUnsigned, CheckedAdd, CheckedSub, Saturating, StaticLookup, Zero},
ArithmeticError, DispatchError, TokenError,
};
use scale_info::TypeInfo;
use alloc::vec::Vec;
use core::{fmt::Debug, marker::PhantomData};
@@ -1951,7 +1951,9 @@ pub mod pezpallet {
/// Implements [`ProvideAssetReserves`] trait for getting the list of trusted reserves for a
/// given asset.
impl<T: Config<I>, I: 'static> ProvideAssetReserves<T::AssetId, T::ReserveData> for Pezpallet<T, I> {
impl<T: Config<I>, I: 'static> ProvideAssetReserves<T::AssetId, T::ReserveData>
for Pezpallet<T, I>
{
/// Provide the configured reserves for asset `id`.
fn reserves(id: &T::AssetId) -> Vec<T::ReserveData> {
Reserves::<T, I>::get(id).into_inner()
+1 -1
View File
@@ -16,8 +16,8 @@
// limitations under the License.
use super::*;
use pezframe_support::traits::OnRuntimeUpgrade;
use log;
use pezframe_support::traits::OnRuntimeUpgrade;
#[cfg(feature = "try-runtime")]
use pezsp_runtime::TryRuntimeError;