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:
@@ -34,6 +34,9 @@ teyrchain-template-runtime = { workspace = true }
|
||||
# Bizinikiwi
|
||||
prometheus-endpoint = { workspace = true, default-features = true }
|
||||
|
||||
# For storage benchmarks
|
||||
pezframe-benchmarking-cli = { workspace = true, optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
pezkuwi-sdk = { workspace = true, features = ["bizinikiwi-build-script-utils"] }
|
||||
|
||||
@@ -50,6 +53,7 @@ runtime-benchmarks = [
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
"teyrchain-template-runtime/runtime-benchmarks",
|
||||
]
|
||||
storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"]
|
||||
try-runtime = [
|
||||
"pezkuwi-sdk/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
|
||||
@@ -205,13 +205,7 @@ pub fn run() -> Result<()> {
|
||||
let partials = new_partial(&config)?;
|
||||
cmd.run(partials.client)
|
||||
}),
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
BenchmarkCmd::Storage(_) => Err(pezsc_cli::Error::Input(
|
||||
"Compile with --features=runtime-benchmarks \
|
||||
to enable storage benchmarks."
|
||||
.into(),
|
||||
)),
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
#[cfg(feature = "storage-benchmark")]
|
||||
BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {
|
||||
let partials = new_partial(&config)?;
|
||||
let db = partials.backend.expose_db();
|
||||
|
||||
@@ -20,13 +20,15 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
frame = { workspace = true, default-features = false, features = [
|
||||
pezframe = { workspace = true, default-features = false, features = [
|
||||
"experimental",
|
||||
"runtime",
|
||||
] }
|
||||
pezframe-support = { workspace = true, default-features = false }
|
||||
pezframe-system = { workspace = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
runtime-benchmarks = ["frame/runtime-benchmarks"]
|
||||
std = ["codec/std", "frame/std", "scale-info/std"]
|
||||
try-runtime = ["frame/try-runtime"]
|
||||
runtime-benchmarks = ["pezframe/runtime-benchmarks"]
|
||||
std = ["codec/std", "pezframe/std", "pezframe-support/std", "pezframe-system/std", "scale-info/std"]
|
||||
try-runtime = ["pezframe/try-runtime"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Benchmarking setup for pezpallet-template
|
||||
|
||||
use super::*;
|
||||
use frame::{deps::pezframe_benchmarking::v2::*, prelude::*};
|
||||
use pezframe::{deps::pezframe_benchmarking::v2::*, prelude::*};
|
||||
|
||||
#[benchmarks]
|
||||
mod benchmarks {
|
||||
|
||||
@@ -67,9 +67,9 @@ mod benchmarking;
|
||||
// To see a full list of `pezpallet` macros and their use cases, see:
|
||||
// <https://docs.pezkuwichain.io/sdk/master/pezpallet_example_kitchensink/index.html>
|
||||
// <https://docs.pezkuwichain.io/sdk/master/pezframe_support/pezpallet_macros/index.html>
|
||||
#[frame::pezpallet]
|
||||
#[pezframe::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use frame::prelude::*;
|
||||
use pezframe::prelude::*;
|
||||
|
||||
/// Configure the pezpallet by specifying the parameters and types on which it depends.
|
||||
#[pezpallet::config]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use frame::{
|
||||
use pezframe::{
|
||||
deps::{pezframe_support::weights::constants::RocksDbWeight, pezframe_system::GenesisConfig},
|
||||
prelude::*,
|
||||
runtime::prelude::*,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::{mock::*, Error, Something};
|
||||
use frame::testing_prelude::*;
|
||||
use pezframe::testing_prelude::*;
|
||||
|
||||
#[test]
|
||||
fn it_works_for_default_value() {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame::{deps::pezframe_support::weights::constants::RocksDbWeight, prelude::*};
|
||||
use pezframe::{deps::pezframe_support::weights::constants::RocksDbWeight, prelude::*};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pezpallet_template.
|
||||
|
||||
@@ -63,9 +63,9 @@ pezkuwi-sdk = { workspace = true, default-features = false, features = [
|
||||
"pezkuwi-runtime-common",
|
||||
"pezkuwi-teyrchain-primitives",
|
||||
"pezpallet-xcm",
|
||||
"pezstaging-xcm",
|
||||
"pezstaging-xcm-builder",
|
||||
"pezstaging-xcm-executor",
|
||||
"xcm",
|
||||
"xcm-builder",
|
||||
"xcm-executor",
|
||||
|
||||
"pezcumulus-pezpallet-aura-ext",
|
||||
"pezcumulus-pezpallet-session-benchmarking",
|
||||
@@ -76,7 +76,7 @@ pezkuwi-sdk = { workspace = true, default-features = false, features = [
|
||||
"pezcumulus-primitives-core",
|
||||
"pezcumulus-primitives-utility",
|
||||
"pezpallet-collator-selection",
|
||||
"pezstaging-teyrchain-info",
|
||||
"teyrchain-info",
|
||||
"teyrchains-common",
|
||||
|
||||
"runtime",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
// External crates imports
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, *};
|
||||
use pezkuwi_sdk::{teyrchain_info, *};
|
||||
|
||||
use pezcumulus_primitives_core::ParaId;
|
||||
use pezframe_support::{
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
|
||||
mod xcm_config;
|
||||
|
||||
use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, pezstaging_xcm as xcm, *};
|
||||
use pezkuwi_sdk::{teyrchain_info, xcm, *};
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
use pezkuwi_sdk::{pezstaging_xcm_builder as xcm_builder, pezstaging_xcm_executor as xcm_executor};
|
||||
use pezkuwi_sdk::{xcm_builder, xcm_executor};
|
||||
|
||||
// Bizinikiwi and Pezkuwi dependencies
|
||||
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
|
||||
@@ -4,10 +4,7 @@ use crate::{
|
||||
RuntimeOrigin, TeyrchainInfo, TeyrchainSystem, WeightToFee, XcmpQueue,
|
||||
};
|
||||
|
||||
use pezkuwi_sdk::{
|
||||
pezstaging_xcm as xcm, pezstaging_xcm_builder as xcm_builder,
|
||||
pezstaging_xcm_executor as xcm_executor, *,
|
||||
};
|
||||
use pezkuwi_sdk::{xcm, xcm_builder, xcm_executor, *};
|
||||
|
||||
use pezframe_support::{
|
||||
parameter_types,
|
||||
@@ -16,18 +13,15 @@ use pezframe_support::{
|
||||
};
|
||||
use pezframe_system::EnsureRoot;
|
||||
use pezkuwi_runtime_common::impls::ToAuthor;
|
||||
use pezkuwi_sdk::{
|
||||
pezkuwi_sdk_frame::traits::Disabled,
|
||||
pezstaging_xcm_builder::{DenyRecursively, DenyThenTry},
|
||||
};
|
||||
use pezframe_support::traits::Disabled;
|
||||
use pezkuwi_teyrchain_primitives::primitives::Sibling;
|
||||
use pezpallet_xcm::XcmPassthrough;
|
||||
use xcm::latest::prelude::*;
|
||||
use xcm_builder::{
|
||||
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom,
|
||||
DenyReserveTransferToRelayChain, EnsureXcmOrigin, FixedWeightBounds,
|
||||
FrameTransactionalProcessor, FungibleAdapter, IsConcrete, NativeAsset, ParentIsPreset,
|
||||
RelayChainAsNative, SiblingTeyrchainAsNative, SiblingTeyrchainConvertsVia,
|
||||
DenyRecursively, DenyReserveTransferToRelayChain, DenyThenTry, EnsureXcmOrigin,
|
||||
FixedWeightBounds, FrameTransactionalProcessor, FungibleAdapter, IsConcrete, NativeAsset,
|
||||
ParentIsPreset, RelayChainAsNative, SiblingTeyrchainAsNative, SiblingTeyrchainConvertsVia,
|
||||
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||
TrailingSetTopicAsId, UsingComponents, WithComputedOrigin, WithUniqueTopic,
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@ use crate::{
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
|
||||
use pezkuwi_sdk::{pezstaging_xcm as xcm, *};
|
||||
use pezkuwi_sdk::{xcm, *};
|
||||
|
||||
use pezcumulus_primitives_core::ParaId;
|
||||
use pezframe_support::build_struct_json_patch;
|
||||
|
||||
@@ -17,7 +17,7 @@ extern crate alloc;
|
||||
use alloc::vec::Vec;
|
||||
use smallvec::smallvec;
|
||||
|
||||
use pezkuwi_sdk::{pezstaging_teyrchain_info as teyrchain_info, *};
|
||||
use pezkuwi_sdk::{teyrchain_info, *};
|
||||
|
||||
use pezsp_runtime::{
|
||||
generic, impl_opaque_keys,
|
||||
|
||||
Reference in New Issue
Block a user