mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
export more types from fast-untsake 🤦♂️ (#12353)
* export more types from fast-untsake 🤦♂️
* make non-test
* fmt
This commit is contained in:
@@ -60,7 +60,7 @@ mod tests;
|
||||
// NOTE: enable benchmarking in tests as well.
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
mod benchmarking;
|
||||
mod types;
|
||||
pub mod types;
|
||||
pub mod weights;
|
||||
|
||||
pub const LOG_TARGET: &'static str = "runtime::fast-unstake";
|
||||
@@ -90,6 +90,7 @@ pub mod pallet {
|
||||
};
|
||||
use sp_staking::EraIndex;
|
||||
use sp_std::{prelude::*, vec::Vec};
|
||||
pub use types::PreventStakingOpsIfUnbonding;
|
||||
pub use weights::WeightInfo;
|
||||
|
||||
#[derive(scale_info::TypeInfo, codec::Encode, codec::Decode, codec::MaxEncodedLen)]
|
||||
|
||||
@@ -47,7 +47,6 @@ pub struct UnstakeRequest<AccountId: Eq + PartialEq + Debug, MaxChecked: Get<u32
|
||||
#[scale_info(skip_type_params(T))]
|
||||
pub struct PreventStakingOpsIfUnbonding<T: Config + Send + Sync>(sp_std::marker::PhantomData<T>);
|
||||
|
||||
#[cfg(test)]
|
||||
impl<T: Config + Send + Sync> PreventStakingOpsIfUnbonding<T> {
|
||||
pub fn new() -> Self {
|
||||
Self(Default::default())
|
||||
|
||||
Reference in New Issue
Block a user