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
@@ -52,7 +52,6 @@ use pezframe_support::{
DefaultNoBound,
};
use pezpallet_transaction_payment::{ChargeTransactionPayment, OnChargeTransaction};
use scale_info::TypeInfo;
use pezsp_runtime::{
traits::{
AsSystemOriginSigner, DispatchInfoOf, Dispatchable, PostDispatchInfoOf, RefundWeight,
@@ -60,6 +59,7 @@ use pezsp_runtime::{
},
transaction_validity::{InvalidTransaction, TransactionValidityError, ValidTransaction},
};
use scale_info::TypeInfo;
#[cfg(test)]
mod mock;
@@ -71,8 +71,8 @@ pub mod weights;
mod benchmarking;
mod payment;
use pezframe_support::{pezpallet_prelude::Weight, traits::tokens::AssetId};
pub use payment::*;
use pezframe_support::{pezpallet_prelude::Weight, traits::tokens::AssetId};
pub use weights::WeightInfo;
/// Balance type alias for balances of the chain's native asset.
@@ -112,7 +112,8 @@ pub mod pezpallet {
pub trait Config: pezframe_system::Config + pezpallet_transaction_payment::Config {
/// The overarching event type.
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
type RuntimeEvent: From<Event<Self>>
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
/// The asset ID type that can be used for transaction payments in addition to a
/// native asset.
type AssetId: AssetId;
@@ -316,7 +317,8 @@ where
return Ok((ValidTransaction::default(), Val::NoCharge, origin));
};
// Non-mutating call of `compute_fee` to calculate the fee used in the transaction priority.
let fee = pezpallet_transaction_payment::Pezpallet::<T>::compute_fee(len as u32, info, self.tip);
let fee =
pezpallet_transaction_payment::Pezpallet::<T>::compute_fee(len as u32, info, self.tip);
self.can_withdraw_fee(&who, call, info, fee)?;
let priority = ChargeTransactionPayment::<T>::get_priority(info, len, self.tip, fee);
let validity = ValidTransaction { priority, ..Default::default() };
@@ -20,9 +20,8 @@ use pezframe_support::{
derive_impl,
dispatch::DispatchClass,
instances::Instance2,
ord_parameter_types,
ord_parameter_types, parameter_types,
pezpallet_prelude::*,
parameter_types,
traits::{
fungible, fungibles,
tokens::{
@@ -157,7 +156,10 @@ pub struct DealWithFungiblesFees;
impl OnUnbalanced<fungibles::Credit<AccountId, NativeAndAssets>> for DealWithFungiblesFees {
fn on_unbalanceds(
mut fees_then_tips: impl Iterator<
Item = fungibles::Credit<<Runtime as pezframe_system::Config>::AccountId, NativeAndAssets>,
Item = fungibles::Credit<
<Runtime as pezframe_system::Config>::AccountId,
NativeAndAssets,
>,
>,
) {
if let Some(fees) = fees_then_tips.next() {
@@ -15,6 +15,7 @@
use super::*;
use mock::{ExtrinsicBaseWeight, *};
use pezframe_support::{
assert_ok,
dispatch::{DispatchInfo, GetDispatchInfo, PostDispatchInfo},
@@ -28,7 +29,6 @@ use pezframe_support::{
weights::Weight,
};
use pezframe_system as system;
use mock::{ExtrinsicBaseWeight, *};
use pezpallet_balances::Call as BalancesCall;
use pezsp_runtime::{
traits::{DispatchTransaction, StaticLookup},