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,9 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["max-encoded-len"], workspace = true }
|
||||
frame = { workspace = true, features = ["runtime"] }
|
||||
pezframe = { workspace = true, features = ["runtime"] }
|
||||
pezframe-system = { workspace = true }
|
||||
pezframe-support = { workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -27,14 +29,14 @@ pezpallet-utility = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["codec/std", "frame/std", "scale-info/std"]
|
||||
std = ["codec/std", "pezframe/std", "scale-info/std"]
|
||||
runtime-benchmarks = [
|
||||
"frame/runtime-benchmarks",
|
||||
"pezframe/runtime-benchmarks",
|
||||
"pezpallet-balances/runtime-benchmarks",
|
||||
"pezpallet-utility/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame/try-runtime",
|
||||
"pezframe/try-runtime",
|
||||
"pezpallet-balances/try-runtime",
|
||||
"pezpallet-utility/try-runtime",
|
||||
]
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
use super::*;
|
||||
use crate::Pezpallet as Proxy;
|
||||
use alloc::{boxed::Box, vec};
|
||||
use frame::benchmarking::prelude::{
|
||||
use pezframe::benchmarking::prelude::{
|
||||
account, benchmarks, impl_test_function, whitelisted_caller, BenchmarkError, RawOrigin,
|
||||
};
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ pub mod weights;
|
||||
|
||||
extern crate alloc;
|
||||
use alloc::{boxed::Box, vec};
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
prelude::*,
|
||||
traits::{Currency, InstanceFilter, ReservableCurrency},
|
||||
};
|
||||
@@ -120,7 +120,7 @@ pub enum DepositKind {
|
||||
Announcements,
|
||||
}
|
||||
|
||||
#[frame::pezpallet]
|
||||
#[pezframe::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
|
||||
@@ -154,7 +154,7 @@ pub mod pezpallet {
|
||||
+ Member
|
||||
+ Ord
|
||||
+ PartialOrd
|
||||
+ frame::traits::InstanceFilter<<Self as Config>::RuntimeCall>
|
||||
+ pezframe::traits::InstanceFilter<<Self as Config>::RuntimeCall>
|
||||
+ Default
|
||||
+ MaxEncodedLen;
|
||||
|
||||
@@ -998,7 +998,7 @@ impl<T: Config> Pezpallet<T> {
|
||||
real: T::AccountId,
|
||||
call: <T as Config>::RuntimeCall,
|
||||
) {
|
||||
use frame::traits::{InstanceFilter as _, OriginTrait as _};
|
||||
use pezframe::traits::{InstanceFilter as _, OriginTrait as _};
|
||||
// This is a freshly authenticated new account, the origin restrictions doesn't apply.
|
||||
let mut origin: T::RuntimeOrigin = pezframe_system::RawOrigin::Signed(real).into();
|
||||
origin.add_filter(move |c: &<T as pezframe_system::Config>::RuntimeCall| {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
use super::*;
|
||||
use crate as proxy;
|
||||
use alloc::{vec, vec::Vec};
|
||||
use frame::testing_prelude::*;
|
||||
use pezframe::testing_prelude::*;
|
||||
|
||||
type Block = pezframe_system::mocking::MockBlock<Test>;
|
||||
|
||||
@@ -79,7 +79,7 @@ impl Default for ProxyType {
|
||||
Self::Any
|
||||
}
|
||||
}
|
||||
impl frame::traits::InstanceFilter<RuntimeCall> for ProxyType {
|
||||
impl pezframe::traits::InstanceFilter<RuntimeCall> for ProxyType {
|
||||
fn filter(&self, c: &RuntimeCall) -> bool {
|
||||
match self {
|
||||
ProxyType::Any => true,
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
#![allow(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use frame::weights_prelude::*;
|
||||
use pezframe::weights_prelude::*;
|
||||
|
||||
/// Weight functions needed for `pezpallet_proxy`.
|
||||
pub trait WeightInfo {
|
||||
|
||||
Reference in New Issue
Block a user