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,13 +18,24 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
pezkuwi-sdk = { workspace = true, default-features = false, features = [
|
||||
"experimental",
|
||||
"runtime",
|
||||
] }
|
||||
scale-info = { features = ["derive"], workspace = true }
|
||||
|
||||
# frame deps
|
||||
pezframe-benchmarking = { optional = true, workspace = true }
|
||||
pezframe-support = { workspace = true }
|
||||
pezframe-system = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["codec/std", "pezkuwi-sdk/std", "scale-info/std"]
|
||||
runtime-benchmarks = ["pezkuwi-sdk/runtime-benchmarks"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
"pezframe-support/std",
|
||||
"pezframe-system/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezframe-system/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -1,26 +1,23 @@
|
||||
//! A shell pezpallet built with [`frame`].
|
||||
//! A shell pezpallet built with [`pezframe`].
|
||||
//!
|
||||
//! To get started with this pezpallet, try implementing the guide in
|
||||
//! <https://docs.pezkuwichain.io/sdk/master/polkadot_sdk_docs/guides/your_first_pallet/index.html>
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use frame::prelude::*;
|
||||
use pezkuwi_sdk::pezkuwi_sdk_frame as frame;
|
||||
|
||||
// Re-export all pezpallet parts, this is needed to properly import the pezpallet into the runtime.
|
||||
pub use pezpallet::*;
|
||||
|
||||
#[frame::pezpallet]
|
||||
#[pezframe_support::pezpallet]
|
||||
pub mod pezpallet {
|
||||
use super::*;
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
|
||||
#[pezpallet::config]
|
||||
pub trait Config: pezkuwi_sdk::pezframe_system::Config {}
|
||||
pub trait Config: pezframe_system::Config {}
|
||||
|
||||
#[pezpallet::pezpallet]
|
||||
pub struct Pezpallet<T>(_);
|
||||
|
||||
#[pezpallet::storage]
|
||||
pub type Value<T> = StorageValue<Value = u32>;
|
||||
pub type Value<T> = StorageValue<_, u32>;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "pez-minimal-template-runtime"
|
||||
description = "A solochain runtime template built with Bizinikiwi, part of Pezkuwi Sdk."
|
||||
version = "0.0.0"
|
||||
version = "0.0.1"
|
||||
license = "Unlicense"
|
||||
authors.workspace = true
|
||||
homepage.workspace = true
|
||||
|
||||
@@ -27,8 +27,7 @@ extern crate alloc;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use pezkuwi_sdk::{
|
||||
pezkuwi_sdk_frame::{
|
||||
self as frame,
|
||||
pezframe::{
|
||||
deps::pezsp_genesis_builder,
|
||||
runtime::{apis, prelude::*},
|
||||
},
|
||||
@@ -211,7 +210,7 @@ impl pezpallet_transaction_payment::Config for Runtime {
|
||||
// Implements the types required for the template pezpallet.
|
||||
impl pezpallet_minimal_template::Config for Runtime {}
|
||||
|
||||
type Block = frame::runtime::types_common::BlockOf<Runtime, TxExtension>;
|
||||
type Block = pezframe::runtime::types_common::BlockOf<Runtime, TxExtension>;
|
||||
type Header = HeaderFor<Runtime>;
|
||||
|
||||
type RuntimeExecutive = Executive<
|
||||
@@ -228,7 +227,7 @@ impl_runtime_apis! {
|
||||
VERSION
|
||||
}
|
||||
|
||||
fn execute_block(block: <Block as frame::traits::Block>::LazyBlock) {
|
||||
fn execute_block(block: <Block as pezframe::traits::Block>::LazyBlock) {
|
||||
RuntimeExecutive::execute_block(block)
|
||||
}
|
||||
|
||||
@@ -264,7 +263,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn check_inherents(
|
||||
block: <Block as frame::traits::Block>::LazyBlock,
|
||||
block: <Block as pezframe::traits::Block>::LazyBlock,
|
||||
data: InherentData,
|
||||
) -> CheckInherentsResult {
|
||||
data.check_extrinsics(&block)
|
||||
@@ -345,10 +344,10 @@ impl_runtime_apis! {
|
||||
// https://github.com/pezkuwichain/pezkuwi-sdk/issues/3
|
||||
pub mod interface {
|
||||
use super::Runtime;
|
||||
use pezkuwi_sdk::{pezkuwi_sdk_frame as frame, *};
|
||||
use pezkuwi_sdk::*;
|
||||
|
||||
pub type Block = super::Block;
|
||||
pub use frame::runtime::types_common::OpaqueBlock;
|
||||
pub use pezframe::runtime::types_common::OpaqueBlock;
|
||||
pub type AccountId = <Runtime as pezframe_system::Config>::AccountId;
|
||||
pub type Nonce = <Runtime as pezframe_system::Config>::Nonce;
|
||||
pub type Hash = <Runtime as pezframe_system::Config>::Hash;
|
||||
|
||||
@@ -70,6 +70,8 @@ bizinikiwi-build-script-utils = { workspace = true, default-features = true }
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["pez-solochain-template-runtime/std"]
|
||||
# Storage benchmarking support (optional)
|
||||
storage-benchmark = ["pezframe-benchmarking-cli/storage-benchmark"]
|
||||
# Dependencies that are only required if runtime benchmarking should be build.
|
||||
runtime-benchmarks = [
|
||||
"bizinikiwi-frame-rpc-system/runtime-benchmarks",
|
||||
|
||||
@@ -131,12 +131,12 @@ pub fn run() -> pezsc_cli::Result<()> {
|
||||
let PartialComponents { client, .. } = service::new_partial(&config)?;
|
||||
cmd.run(client)
|
||||
},
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
#[cfg(all(feature = "storage-benchmark", not(feature = "runtime-benchmarks")))]
|
||||
BenchmarkCmd::Storage(_) => Err(
|
||||
"Storage benchmarking can be enabled with `--features runtime-benchmarks`."
|
||||
.into(),
|
||||
),
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
#[cfg(all(feature = "storage-benchmark", feature = "runtime-benchmarks"))]
|
||||
BenchmarkCmd::Storage(cmd) => {
|
||||
let PartialComponents { client, backend, .. } =
|
||||
service::new_partial(&config)?;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -14,7 +14,7 @@ documentation.workspace = true
|
||||
anyhow = { workspace = true }
|
||||
env_logger = { workspace = true }
|
||||
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
||||
zombienet-sdk = { workspace = true }
|
||||
pezkuwi-zombienet-sdk = { workspace = true }
|
||||
|
||||
[features]
|
||||
zombienet = []
|
||||
|
||||
@@ -29,7 +29,7 @@ mod smoke {
|
||||
use std::path::PathBuf;
|
||||
|
||||
use anyhow::anyhow;
|
||||
use zombienet_sdk::{NetworkConfig, NetworkConfigBuilder, NetworkConfigExt};
|
||||
use pezkuwi_zombienet_sdk::{NetworkConfig, NetworkConfigBuilder, NetworkConfigExt};
|
||||
|
||||
const CHAIN_SPECS_DIR_PATH: &str = "CHAIN_SPECS_DIR";
|
||||
const TEYRCHAIN_ID: u32 = 1000;
|
||||
|
||||
Reference in New Issue
Block a user