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
@@ -474,7 +474,9 @@ mod benchmarks {
let address = Lookup::<T>::get(name).unwrap();
let (when, index) = address;
let period = BlockNumberFor::<T>::one();
assert!(Pezpallet::<T>::set_retry(RawOrigin::Root.into(), (when, index), 10, period).is_ok());
assert!(
Pezpallet::<T>::set_retry(RawOrigin::Root.into(), (when, index), 10, period).is_ok()
);
#[extrinsic_call]
_(RawOrigin::Root, (when, index));
+14 -13
View File
@@ -57,8 +57,8 @@
//!
//! ## Warning
//!
//! This Pezpallet executes all scheduled runtime calls in the [`on_initialize`] hook. Do not execute
//! any runtime calls which should not be considered mandatory.
//! This Pezpallet executes all scheduled runtime calls in the [`on_initialize`] hook. Do not
//! execute any runtime calls which should not be considered mandatory.
//!
//! Please be aware that any scheduled runtime calls executed in a future block may __fail__ or may
//! result in __undefined behavior__ since the runtime could have upgraded between the time of
@@ -101,12 +101,12 @@ use pezframe_support::{
weights::{Weight, WeightMeter},
};
use pezframe_system::{self as system};
use scale_info::TypeInfo;
use pezsp_io::hashing::blake2_256;
use pezsp_runtime::{
traits::{BadOrigin, BlockNumberProvider, Dispatchable, One, Saturating, Zero},
BoundedVec, DispatchError, RuntimeDebug,
};
use scale_info::TypeInfo;
pub use pezpallet::*;
pub use weights::WeightInfo;
@@ -265,7 +265,8 @@ pub mod pezpallet {
pub trait Config: pezframe_system::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 aggregated origin which the dispatch will take.
type RuntimeOrigin: OriginTrait<PalletsOrigin = Self::PalletsOrigin>
@@ -297,8 +298,8 @@ pub mod pezpallet {
/// This will be used when canceling a task, to ensure that the origin that tries
/// to cancel has greater or equal privileges as the origin that created the scheduled task.
///
/// For simplicity the [`EqualPrivilegeOnly`](pezframe_support::traits::EqualPrivilegeOnly) can
/// be used. This will only check if two given origins are equal.
/// For simplicity the [`EqualPrivilegeOnly`](pezframe_support::traits::EqualPrivilegeOnly)
/// can be used. This will only check if two given origins are equal.
type OriginPrivilegeCmp: PrivilegeCmp<Self::PalletsOrigin>;
/// The maximum number of scheduled calls in the queue for a single block.
@@ -330,13 +331,13 @@ pub mod pezpallet {
/// - an arbitrary value through a custom implementation of the trait
///
/// Suggested values:
/// - Solo- and Relay-chains should use `pezframe_system::Pezpallet`. There are no concerns with
/// this configuration.
/// - Teyrchains should also use `pezframe_system::Pezpallet` for the time being. The scheduler
/// pezpallet is not yet ready for the case that big numbers of blocks are skipped. In an
/// *Agile Coretime* chain with relay chain number provider configured, it could otherwise
/// happen that the scheduler will not be able to catch up to its agendas, since too many
/// relay blocks are missing if the teyrchain only produces blocks rarely.
/// - Solo- and Relay-chains should use `pezframe_system::Pezpallet`. There are no concerns
/// with this configuration.
/// - Teyrchains should also use `pezframe_system::Pezpallet` for the time being. The
/// scheduler pezpallet is not yet ready for the case that big numbers of blocks are
/// skipped. In an *Agile Coretime* chain with relay chain number provider configured, it
/// could otherwise happen that the scheduler will not be able to catch up to its agendas,
/// since too many relay blocks are missing if the teyrchain only produces blocks rarely.
///
/// There is currently no migration provided to "hot-swap" block number providers and it is
/// therefore highly advised to stay with the default (local) values. If you still want to
@@ -305,8 +305,8 @@ mod test {
use super::*;
use crate::mock::*;
use alloc::borrow::Cow;
use pezframe_support::Hashable;
use bizinikiwi_test_utils::assert_eq_uvec;
use pezframe_support::Hashable;
#[test]
#[allow(deprecated)]
+3 -2
View File
@@ -32,7 +32,7 @@ use pezsp_weights::constants::WEIGHT_REF_TIME_PER_SECOND;
#[pezframe_support::pezpallet]
pub mod logger {
use super::{OriginCaller, OriginTrait};
use pezframe_support::{pezpallet_prelude::*, parameter_types};
use pezframe_support::{parameter_types, pezpallet_prelude::*};
use pezframe_system::pezpallet_prelude::*;
parameter_types! {
@@ -62,7 +62,8 @@ pub mod logger {
#[pezpallet::config]
pub trait Config: pezframe_system::Config {
#[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>;
}
#[pezpallet::event]
+1 -1
View File
@@ -22,13 +22,13 @@ use crate::mock::{
logger::{self, Threshold},
new_test_ext, root, LoggerCall, RuntimeCall, Scheduler, Test, *,
};
use bizinikiwi_test_utils::assert_eq_uvec;
use pezframe_support::{
assert_err, assert_noop, assert_ok,
traits::{Contains, GetStorageVersion, OnInitialize, QueryPreimage, StorePreimage},
Hashable,
};
use pezsp_runtime::traits::Hash;
use bizinikiwi_test_utils::assert_eq_uvec;
#[test]
#[docify::export]