FAZ 1 Complete: Workspace compile fixes, warning cleanup, version bumps
- Fixed is_using_frame_crate() macro to check for pezframe/pezkuwi_sdk - Removed disable_pezframe_system_supertrait_check temporary bypasses - Feature-gated storage-benchmark and teyrchain-benchmarks code - Fixed dead_code warnings with underscore prefix (_Header) - Removed unused imports and shadowing use statements - Version bumps: procedural-tools 10.0.1, benchmarking-cli 32.0.1, docs 0.0.2, minimal-runtime 0.0.1, yet-another-teyrchain 0.6.1, umbrella 0.1.2 - Updated MAINNET_ROADMAP.md with FAZ 1 completion status
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#![cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
use super::{Pezpallet as SafeMode, *};
|
||||
use frame::benchmarking::prelude::*;
|
||||
use pezframe::benchmarking::prelude::*;
|
||||
|
||||
#[benchmarks(where T::Currency: fungible::Mutate<T::AccountId>)]
|
||||
mod benchmarks {
|
||||
|
||||
@@ -75,7 +75,7 @@ pub mod mock;
|
||||
mod tests;
|
||||
pub mod weights;
|
||||
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
prelude::{
|
||||
fungible::hold::{Inspect, Mutate},
|
||||
*,
|
||||
@@ -90,7 +90,7 @@ type BalanceOf<T> = <<T as Config>::Currency as fungible::Inspect<
|
||||
<T as pezframe_system::Config>::AccountId,
|
||||
>>::Balance;
|
||||
|
||||
#[frame::pezpallet]
|
||||
#[pezframe::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
|
||||
@@ -613,7 +613,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Config> frame::traits::SafeMode for Pezpallet<T> {
|
||||
impl<T: Config> pezframe::traits::SafeMode for Pezpallet<T> {
|
||||
type BlockNumber = BlockNumberFor<T>;
|
||||
|
||||
fn is_entered() -> bool {
|
||||
@@ -627,20 +627,20 @@ impl<T: Config> frame::traits::SafeMode for Pezpallet<T> {
|
||||
})
|
||||
}
|
||||
|
||||
fn enter(duration: BlockNumberFor<T>) -> Result<(), frame::traits::SafeModeError> {
|
||||
fn enter(duration: BlockNumberFor<T>) -> Result<(), pezframe::traits::SafeModeError> {
|
||||
Self::do_enter(None, duration).map_err(Into::into)
|
||||
}
|
||||
|
||||
fn extend(duration: BlockNumberFor<T>) -> Result<(), frame::traits::SafeModeError> {
|
||||
fn extend(duration: BlockNumberFor<T>) -> Result<(), pezframe::traits::SafeModeError> {
|
||||
Self::do_extend(None, duration).map_err(Into::into)
|
||||
}
|
||||
|
||||
fn exit() -> Result<(), frame::traits::SafeModeError> {
|
||||
fn exit() -> Result<(), pezframe::traits::SafeModeError> {
|
||||
Self::do_exit(ExitReason::Force).map_err(Into::into)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Config> From<Error<T>> for frame::traits::SafeModeError {
|
||||
impl<T: Config> From<Error<T>> for pezframe::traits::SafeModeError {
|
||||
fn from(err: Error<T>) -> Self {
|
||||
match err {
|
||||
Error::<T>::Entered => Self::AlreadyEntered,
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
use super::*;
|
||||
use crate as pezpallet_safe_mode;
|
||||
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
testing_prelude::*,
|
||||
traits::{InsideBoth, InstanceFilter, IsInVec},
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
use super::*;
|
||||
use crate::mock::{RuntimeCall, *};
|
||||
|
||||
use frame::{testing_prelude::*, traits::Currency};
|
||||
use pezframe::{testing_prelude::*, traits::Currency};
|
||||
|
||||
#[test]
|
||||
fn fails_to_filter_calls_to_safe_mode_pallet() {
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
#![allow(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use frame::weights_prelude::*;
|
||||
use pezframe::weights_prelude::*;
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for `pezpallet_safe_mode`.
|
||||
|
||||
Reference in New Issue
Block a user