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:
2026-01-02 11:41:09 +03:00
parent 76ba7dbf2f
commit cf463fe8ee
520 changed files with 4113 additions and 4524 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[package]
name = "bp-beefy"
name = "pezbp-beefy"
description = "Primitives of pezpallet-bridge-beefy module."
version = "0.1.0"
authors.workspace = true
@@ -1,5 +1,5 @@
[package]
name = "bp-header-pez-chain"
name = "pezbp-header-pez-chain"
description = "A common interface for describing what a bridge pezpallet should be able to do."
version = "0.7.0"
authors.workspace = true
@@ -29,7 +29,7 @@ pezsp-runtime = { features = ["serde"], workspace = true }
pezsp-std = { workspace = true }
[dev-dependencies]
bp-test-utils = { workspace = true, default-features = true }
# bp-test-utils = { workspace = true, default-features = true }
hex = { workspace = true, default-features = true }
hex-literal = { workspace = true, default-features = true }
@@ -48,7 +48,7 @@ std = [
"serde/std",
]
runtime-benchmarks = [
"bp-test-utils/runtime-benchmarks",
# "pezbp-test-utils/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-consensus-grandpa/runtime-benchmarks",
@@ -21,11 +21,11 @@
//! Some of tests in this module may partially duplicate tests from `justification.rs`,
//! but their purpose is different.
use bp_header_pez_chain::justification::{
use pezbp_header_pez_chain::justification::{
verify_justification, GrandpaJustification, JustificationVerificationContext,
JustificationVerificationError, PrecommitError,
};
use bp_test_utils::{
use pezbp_test_utils::{
header_id, make_justification_for_header, signed_precommit, test_header, Account,
JustificationGeneratorParams, ALICE, BOB, CHARLIE, DAVE, EVE, FERDIE, TEST_GRANDPA_SET_ID,
};
@@ -38,11 +38,11 @@ type TestHash = <TestHeader as HeaderT>::Hash;
type TestNumber = <TestHeader as HeaderT>::Number;
/// Implementation of `finality_grandpa::Chain` that is used in tests.
struct AncestryChain(bp_header_pez_chain::justification::AncestryChain<TestHeader>);
struct AncestryChain(pezbp_header_pez_chain::justification::AncestryChain<TestHeader>);
impl AncestryChain {
fn new(justification: &GrandpaJustification<TestHeader>) -> Self {
Self(bp_header_pez_chain::justification::AncestryChain::new(justification).0)
Self(pezbp_header_pez_chain::justification::AncestryChain::new(justification).0)
}
}
@@ -16,8 +16,8 @@
//! Tests for Grandpa equivocations collector code.
use bp_header_pez_chain::justification::EquivocationsCollector;
use bp_test_utils::*;
use pezbp_header_pez_chain::justification::EquivocationsCollector;
use pezbp_test_utils::*;
use finality_grandpa::Precommit;
use pezsp_consensus_grandpa::EquivocationProof;
@@ -16,8 +16,8 @@
//! Tests for Grandpa Justification optimizer code.
use bp_header_pez_chain::justification::verify_and_optimize_justification;
use bp_test_utils::*;
use pezbp_header_pez_chain::justification::verify_and_optimize_justification;
use pezbp_test_utils::*;
use finality_grandpa::SignedPrecommit;
use pezsp_consensus_grandpa::AuthoritySignature;
@@ -43,7 +43,7 @@ fn optimizer_does_noting_with_minimal_justification() {
fn unknown_authority_votes_are_removed_by_optimizer() {
let mut justification = make_default_justification::<TestHeader>(&test_header(1));
justification.commit.precommits.push(signed_precommit::<TestHeader>(
&bp_test_utils::Account(42),
&pezbp_test_utils::Account(42),
header_id::<TestHeader>(1),
justification.round,
TEST_GRANDPA_SET_ID,
@@ -16,11 +16,11 @@
//! Tests for Grandpa strict justification verifier code.
use bp_header_pez_chain::justification::{
use pezbp_header_pez_chain::justification::{
required_justification_precommits, verify_justification, JustificationVerificationContext,
JustificationVerificationError, PrecommitError,
};
use bp_test_utils::*;
use pezbp_test_utils::*;
type TestHeader = pezsp_runtime::testing::Header;
+4 -4
View File
@@ -1,5 +1,5 @@
[package]
name = "bp-messages"
name = "pezbp-messages"
description = "Primitives of messages module."
version = "0.7.0"
authors.workspace = true
@@ -18,7 +18,7 @@ scale-info = { features = ["bit-vec", "derive"], workspace = true }
serde = { features = ["alloc", "derive"], workspace = true }
# Bridge dependencies
bp-header-pez-chain = { workspace = true }
pezbp-header-pez-chain = { workspace = true }
pezbp-runtime = { workspace = true }
# Bizinikiwi Dependencies
@@ -34,7 +34,7 @@ hex-literal = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"bp-header-pez-chain/std",
"pezbp-header-pez-chain/std",
"codec/std",
"pezbp-runtime/std",
"pezframe-support/std",
@@ -45,7 +45,7 @@ std = [
"serde/std",
]
runtime-benchmarks = [
"bp-header-pez-chain/runtime-benchmarks",
"pezbp-header-pez-chain/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
+1 -1
View File
@@ -19,7 +19,7 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
use bp_header_pez_chain::HeaderChainError;
use pezbp_header_pez_chain::HeaderChainError;
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use pezbp_runtime::{
messages::MessageDispatchResult, BasicOperatingMode, Chain, OperatingMode, RangeInclusiveExt,
@@ -1,5 +1,5 @@
[package]
name = "bp-pezkuwi-core"
name = "pezbp-pezkuwi-core"
description = "Primitives of Pezkuwi-like runtime."
version = "0.7.0"
authors.workspace = true
@@ -20,7 +20,7 @@ serde = { optional = true, features = [
], workspace = true, default-features = true }
# Bridge Dependencies
bp-messages = { workspace = true }
pezbp-messages = { workspace = true }
pezbp-runtime = { workspace = true }
# Bizinikiwi Based Dependencies
@@ -36,7 +36,7 @@ hex = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"bp-messages/std",
"pezbp-messages/std",
"codec/std",
"pezbp-runtime/std",
"pezframe-support/std",
@@ -48,7 +48,7 @@ std = [
"serde",
]
runtime-benchmarks = [
"bp-messages/runtime-benchmarks",
"pezbp-messages/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
@@ -19,7 +19,7 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
use bp_messages::MessageNonce;
use pezbp_messages::MessageNonce;
use pezbp_runtime::{
self,
extensions::{
+10 -10
View File
@@ -1,5 +1,5 @@
[package]
name = "bp-relayers"
name = "pezbp-relayers"
description = "Primitives of relayers module."
version = "0.7.0"
authors.workspace = true
@@ -17,9 +17,9 @@ codec = { features = ["bit-vec", "derive"], workspace = true }
scale-info = { features = ["bit-vec", "derive"], workspace = true }
# Bridge Dependencies
bp-header-pez-chain = { workspace = true }
bp-messages = { workspace = true }
bp-teyrchains = { workspace = true }
pezbp-header-pez-chain = { workspace = true }
pezbp-messages = { workspace = true }
pezbp-teyrchains = { workspace = true }
pezbp-runtime = { workspace = true }
# Bizinikiwi Dependencies
@@ -35,9 +35,9 @@ hex-literal = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"bp-header-pez-chain/std",
"bp-messages/std",
"bp-teyrchains/std",
"pezbp-header-pez-chain/std",
"pezbp-messages/std",
"pezbp-teyrchains/std",
"codec/std",
"pezbp-runtime/std",
"pezframe-support/std",
@@ -48,9 +48,9 @@ std = [
"scale-info/std",
]
runtime-benchmarks = [
"bp-header-pez-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"pezbp-header-pez-chain/runtime-benchmarks",
"pezbp-messages/runtime-benchmarks",
"pezbp-teyrchains/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
@@ -17,9 +17,9 @@
//! All runtime calls, supported by `pezpallet-bridge-relayers` when it acts as a signed
//! extension.
use bp_header_pez_chain::SubmitFinalityProofInfo;
use bp_messages::MessagesCallInfo;
use bp_teyrchains::SubmitTeyrchainHeadsInfo;
use pezbp_header_pez_chain::SubmitFinalityProofInfo;
use pezbp_messages::MessagesCallInfo;
use pezbp_teyrchains::SubmitTeyrchainHeadsInfo;
use codec::{Decode, Encode};
use pezbp_runtime::StaticStrProvider;
use pezframe_support::{
+1 -1
View File
@@ -222,7 +222,7 @@ pub trait RewardLedger<Relayer, Reward, RewardBalance> {
#[cfg(test)]
mod tests {
use super::*;
use bp_messages::{HashedLaneId, LaneIdType, LegacyLaneId};
use pezbp_messages::{HashedLaneId, LaneIdType, LegacyLaneId};
use pezsp_runtime::{app_crypto::Ss58Codec, testing::H256};
#[test]
+6 -6
View File
@@ -363,7 +363,7 @@ macro_rules! decl_bridge_finality_runtime_apis {
}
};
($chain: ident, grandpa) => {
decl_bridge_finality_runtime_apis!($chain, grandpa => bp_header_pez_chain::StoredHeaderGrandpaInfo<Header>);
decl_bridge_finality_runtime_apis!($chain, grandpa => pezbp_header_pez_chain::StoredHeaderGrandpaInfo<Header>);
};
}
@@ -409,9 +409,9 @@ macro_rules! decl_bridge_messages_runtime_apis {
/// be missing from the resulting vector. The vector is ordered by the nonce.
fn message_details(
lane: $lane_id_type,
begin: bp_messages::MessageNonce,
end: bp_messages::MessageNonce,
) -> $crate::private::Vec<bp_messages::OutboundMessageDetails>;
begin: pezbp_messages::MessageNonce,
end: pezbp_messages::MessageNonce,
) -> $crate::private::Vec<pezbp_messages::OutboundMessageDetails>;
}
/// Inbound message lane API for messages sent by this chain.
@@ -425,8 +425,8 @@ macro_rules! decl_bridge_messages_runtime_apis {
/// Return details of given inbound messages.
fn message_details(
lane: $lane_id_type,
messages: $crate::private::Vec<(bp_messages::MessagePayload, bp_messages::OutboundMessageDetails)>,
) -> $crate::private::Vec<bp_messages::InboundMessageDetails>;
messages: $crate::private::Vec<(pezbp_messages::MessagePayload, pezbp_messages::OutboundMessageDetails)>,
) -> $crate::private::Vec<pezbp_messages::InboundMessageDetails>;
}
}
}
+10 -10
View File
@@ -1,5 +1,5 @@
[package]
name = "bp-test-utils"
name = "pezbp-test-utils"
version = "0.7.0"
description = "Utilities for testing bizinikiwi-based runtime bridge code"
authors.workspace = true
@@ -13,9 +13,9 @@ homepage = { workspace = true }
workspace = true
[dependencies]
bp-header-pez-chain = { workspace = true }
bp-pezkuwi-core = { workspace = true }
bp-teyrchains = { workspace = true }
pezbp-header-pez-chain = { workspace = true }
pezbp-pezkuwi-core = { workspace = true }
pezbp-teyrchains = { workspace = true }
codec = { workspace = true }
ed25519-dalek = { workspace = true }
finality-grandpa = { workspace = true }
@@ -30,9 +30,9 @@ pezsp-trie = { workspace = true }
[features]
default = ["std"]
std = [
"bp-header-pez-chain/std",
"bp-pezkuwi-core/std",
"bp-teyrchains/std",
"pezbp-header-pez-chain/std",
"pezbp-pezkuwi-core/std",
"pezbp-teyrchains/std",
"codec/std",
"ed25519-dalek/std",
"finality-grandpa/std",
@@ -45,9 +45,9 @@ std = [
"pezsp-trie/std",
]
runtime-benchmarks = [
"bp-header-pez-chain/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"pezbp-header-pez-chain/runtime-benchmarks",
"pezbp-pezkuwi-core/runtime-benchmarks",
"pezbp-teyrchains/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezsp-consensus-grandpa/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
@@ -16,7 +16,7 @@
//! Utilities for working with test accounts.
use bp_header_pez_chain::{justification::JustificationVerificationContext, AuthoritySet};
use pezbp_header_pez_chain::{justification::JustificationVerificationContext, AuthoritySet};
use codec::Encode;
use ed25519_dalek::{Signature, SigningKey, VerifyingKey};
use finality_grandpa::voter_set::VoterSet;
+3 -3
View File
@@ -19,9 +19,9 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
use bp_header_pez_chain::justification::{required_justification_precommits, GrandpaJustification};
use bp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId};
use bp_teyrchains::teyrchain_head_storage_key_at_source;
use pezbp_header_pez_chain::justification::{required_justification_precommits, GrandpaJustification};
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaHeadsProof, ParaId};
use pezbp_teyrchains::teyrchain_head_storage_key_at_source;
use codec::Encode;
use pezbp_runtime::record_all_trie_keys;
use pezsp_consensus_grandpa::{AuthorityId, AuthoritySignature, AuthorityWeight, SetId};
+7 -7
View File
@@ -1,5 +1,5 @@
[package]
name = "bp-teyrchains"
name = "pezbp-teyrchains"
description = "Primitives of teyrchains module."
version = "0.7.0"
authors.workspace = true
@@ -18,8 +18,8 @@ impl-trait-for-tuples = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
# Bridge dependencies
bp-header-pez-chain = { workspace = true }
bp-pezkuwi-core = { workspace = true }
pezbp-header-pez-chain = { workspace = true }
pezbp-pezkuwi-core = { workspace = true }
pezbp-runtime = { workspace = true }
# Bizinikiwi dependencies
@@ -31,8 +31,8 @@ pezsp-std = { workspace = true }
[features]
default = ["std"]
std = [
"bp-header-pez-chain/std",
"bp-pezkuwi-core/std",
"pezbp-header-pez-chain/std",
"pezbp-pezkuwi-core/std",
"codec/std",
"pezbp-runtime/std",
"pezframe-support/std",
@@ -42,8 +42,8 @@ std = [
"scale-info/std",
]
runtime-benchmarks = [
"bp-header-pez-chain/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"pezbp-header-pez-chain/runtime-benchmarks",
"pezbp-pezkuwi-core/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
@@ -18,7 +18,7 @@
use crate::{ParaHash, ParaId, RelayBlockHash, RelayBlockNumber};
use bp_pezkuwi_core::teyrchains::ParaHeadsProof;
use pezbp_pezkuwi_core::teyrchains::ParaHeadsProof;
use codec::{Decode, Encode};
use pezbp_runtime::HeaderId;
use pezsp_runtime::RuntimeDebug;
+5 -5
View File
@@ -19,10 +19,10 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
pub use bp_header_pez_chain::StoredHeaderData;
pub use pezbp_header_pez_chain::StoredHeaderData;
pub use call_info::{BridgeTeyrchainCall, SubmitTeyrchainHeadsInfo};
use bp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaId};
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaHead, ParaId};
use codec::{Decode, Encode, MaxEncodedLen};
use pezbp_runtime::{
BlockNumberOf, Chain, HashOf, HeaderOf, StorageDoubleMapKeyProvider, StorageMapKeyProvider,
@@ -35,11 +35,11 @@ use pezsp_std::{marker::PhantomData, prelude::*};
use scale_info::TypeInfo;
/// Block hash of the bridged relay chain.
pub type RelayBlockHash = bp_pezkuwi_core::Hash;
pub type RelayBlockHash = pezbp_pezkuwi_core::Hash;
/// Block number of the bridged relay chain.
pub type RelayBlockNumber = bp_pezkuwi_core::BlockNumber;
pub type RelayBlockNumber = pezbp_pezkuwi_core::BlockNumber;
/// Hasher of the bridged relay chain.
pub type RelayBlockHasher = bp_pezkuwi_core::Hasher;
pub type RelayBlockHasher = pezbp_pezkuwi_core::Hasher;
mod call_info;
@@ -1,7 +1,7 @@
[package]
name = "bp-xcm-bridge-hub-router"
name = "pezbp-xcm-bridge-hub-router"
description = "Primitives of the xcm-bridge-hub fee pezpallet."
version = "0.6.0"
version = "0.7.0"
authors.workspace = true
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
@@ -1,5 +1,5 @@
[package]
name = "bp-xcm-bridge-hub"
name = "pezbp-xcm-bridge-hub"
description = "Primitives of the xcm-bridge-hub pezpallet."
version = "0.2.0"
authors.workspace = true
@@ -18,7 +18,7 @@ scale-info = { features = ["derive"], workspace = true }
serde = { features = ["alloc", "derive"], workspace = true }
# Bridge Dependencies
bp-messages = { workspace = true }
pezbp-messages = { workspace = true }
pezbp-runtime = { workspace = true }
# Bizinikiwi Dependencies
@@ -33,7 +33,7 @@ xcm = { workspace = true }
[features]
default = ["std"]
std = [
"bp-messages/std",
"pezbp-messages/std",
"codec/std",
"pezbp-runtime/std",
"pezframe-support/std",
@@ -45,7 +45,7 @@ std = [
"xcm/std",
]
runtime-benchmarks = [
"bp-messages/runtime-benchmarks",
"pezbp-messages/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
@@ -16,7 +16,7 @@
//! Defines structures related to calls of the `pezpallet-xcm-bridge-hub` pezpallet.
use bp_messages::MessageNonce;
use pezbp_messages::MessageNonce;
use codec::{Decode, Encode};
use pezsp_std::boxed::Box;
use scale_info::TypeInfo;
@@ -19,7 +19,7 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
use bp_messages::LaneIdType;
use pezbp_messages::LaneIdType;
pub use call_info::XcmBridgeHubCall;
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use pezbp_runtime::{AccountIdOf, BalanceOf, Chain};
@@ -607,7 +607,7 @@ mod tests {
#[test]
fn calculate_lane_id_works() {
type TestLaneId = bp_messages::HashedLaneId;
type TestLaneId = pezbp_messages::HashedLaneId;
let from_local_to_remote = run_successful_test(SuccessfulTest {
here_universal_location: [GlobalConsensus(LOCAL_NETWORK), Teyrchain(LOCAL_BRIDGE_HUB)]