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
@@ -79,7 +79,8 @@ fn setup_staking<T: Config>(v: u32, until: EraIndex) {
for era in 0..=until {
let others = (0..T::Staking::max_exposure_page_size())
.map(|s| {
let who = pezframe_benchmarking::account::<T::AccountId>("nominator", era, s.into());
let who =
pezframe_benchmarking::account::<T::AccountId>("nominator", era, s.into());
let value = ed;
(who, value)
})
@@ -103,7 +104,9 @@ mod benchmarks {
fn on_idle_unstake(b: Linear<1, { T::BatchSize::get() }>) {
ErasToCheckPerBlock::<T>::put(1);
for who in create_unexposed_batch::<T>(b).into_iter() {
assert_ok!(Pezpallet::<T>::register_fast_unstake(RawOrigin::Signed(who.clone()).into(),));
assert_ok!(Pezpallet::<T>::register_fast_unstake(
RawOrigin::Signed(who.clone()).into(),
));
}
// Run on_idle once. This will check era 0.
@@ -142,9 +145,9 @@ mod benchmarks {
let stashes = create_unexposed_batch::<T>(b)
.into_iter()
.map(|s| {
assert_ok!(
Pezpallet::<T>::register_fast_unstake(RawOrigin::Signed(s.clone()).into(),)
);
assert_ok!(Pezpallet::<T>::register_fast_unstake(
RawOrigin::Signed(s.clone()).into(),
));
(s, T::Deposit::get())
})
.collect::<Vec<_>>();
+13 -11
View File
@@ -25,9 +25,9 @@
//!
//! # Fast Unstake Pezpallet
//!
//! A pezpallet to allow participants of the staking system (represented by [`Config::Staking`], being
//! [`StakingInterface`]) to unstake quicker, if and only if they meet the condition of not being
//! exposed to any slashes.
//! A pezpallet to allow participants of the staking system (represented by [`Config::Staking`],
//! being [`StakingInterface`]) to unstake quicker, if and only if they meet the condition of not
//! being exposed to any slashes.
//!
//! ## Overview
//!
@@ -46,8 +46,8 @@
//! in the queue to be checked.
//!
//! A successful registration implies being fully unbonded and chilled in the staking system. These
//! effects persist even if the fast-unstake registration is retracted (see [`Pezpallet::deregister`]
//! and further).
//! effects persist even if the fast-unstake registration is retracted (see
//! [`Pezpallet::deregister`] and further).
//!
//! Once registered as a fast-unstaker, the staker will be queued and checked by the system. This
//! can take a variable number of blocks based on demand, but will almost certainly be "faster" (as
@@ -83,8 +83,8 @@
//!
//! ## Low Level / Implementation Details
//!
//! This pezpallet works off the basis of `on_idle`, meaning that it provides no guarantee about when
//! it will succeed, if at all. Moreover, the queue implementation is unordered. In case of
//! This pezpallet works off the basis of `on_idle`, meaning that it provides no guarantee about
//! when it will succeed, if at all. Moreover, the queue implementation is unordered. In case of
//! congestion, no FIFO ordering is provided.
//!
//! A few important considerations can be concluded based on the `on_idle`-based implementation:
@@ -187,7 +187,8 @@ pub mod pezpallet {
#[pezpallet::constant]
type Deposit: Get<BalanceOf<Self>>;
/// The origin that can control this pezpallet, in other words invoke [`Pezpallet::control`].
/// The origin that can control this pezpallet, in other words invoke
/// [`Pezpallet::control`].
type ControlOrigin: pezframe_support::traits::EnsureOrigin<Self::RuntimeOrigin>;
/// Batch size.
@@ -364,8 +365,8 @@ pub mod pezpallet {
/// This is useful if one is registered, they are still waiting, and they change their mind.
///
/// Note that the associated stash is still fully unbonded and chilled as a consequence of
/// calling [`Pezpallet::register_fast_unstake`]. Therefore, this should probably be followed
/// by a call to `rebond` in the staking system.
/// calling [`Pezpallet::register_fast_unstake`]. Therefore, this should probably be
/// followed by a call to `rebond` in the staking system.
///
/// ## Events
///
@@ -617,7 +618,8 @@ pub mod pezpallet {
});
},
Err(_) => {
// don't put the head back in -- there is an internal error in the pezpallet.
// don't put the head back in -- there is an internal error in the
// pezpallet.
Self::halt("checked is pruned via retain above")
},
}
+1 -2
View File
@@ -18,9 +18,8 @@
use crate::{self as fast_unstake};
use pezframe_election_provider_support::PageIndex;
use pezframe_support::{
assert_ok, derive_impl,
assert_ok, derive_impl, parameter_types,
pezpallet_prelude::*,
parameter_types,
traits::{ConstU64, Currency},
weights::constants::WEIGHT_REF_TIME_PER_SECOND,
};
@@ -22,8 +22,8 @@ use codec::{Decode, Encode, MaxEncodedLen};
use pezframe_support::{
traits::Currency, BoundedVec, CloneNoBound, EqNoBound, PartialEqNoBound, RuntimeDebugNoBound,
};
use scale_info::TypeInfo;
use pezsp_staking::{EraIndex, StakingInterface};
use scale_info::TypeInfo;
/// Maximum number of eras that we might check for a single staker.
///