fix(ci): resolve all quick-checks failures

- Remove missing cli crate from workspace members
- Fix TOML array syntax errors in pvf and benchmarking-cli Cargo.toml
- Fix Rust import ordering with cargo fmt
- Fix feature propagation with zepter (try-runtime, runtime-benchmarks, std)
This commit is contained in:
2026-01-04 17:21:57 +03:00
parent 933f08e282
commit 479010094e
574 changed files with 1465 additions and 2447 deletions
@@ -134,12 +134,12 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
[features]
default = ["std"]
default = [ "std" ]
fast-runtime = []
runtime-benchmarks = [
"asset-test-pezutils/runtime-benchmarks",
"pez-assets-common/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"pez-assets-common/runtime-benchmarks",
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
"pezbp-asset-hub-zagros/runtime-benchmarks",
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
@@ -284,14 +284,14 @@ try-runtime = [
"teyrchains-common/try-runtime",
]
std = [
"pez-assets-common/std",
"bizinikiwi-wasm-builder",
"codec/std",
"log/std",
"pez-assets-common/std",
"pezbp-asset-hub-pezkuwichain/std",
"pezbp-asset-hub-zagros/std",
"pezbp-bridge-hub-pezkuwichain/std",
"pezbp-bridge-hub-zagros/std",
"codec/std",
"log/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
@@ -384,9 +384,9 @@ std = [
]
# Enable the metadata hash generation in the wasm builder.
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
# A feature that should be enabled when the runtime should be built for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
# to make it smaller, like logging for example.
on-chain-release-build = ["metadata-hash"]
on-chain-release-build = [ "metadata-hash" ]
@@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["pezkuwichain"], workspace = true }
xcm = { workspace = true }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"pezbp-bridge-hub-pezcumulus/std",
"pezbp-messages/std",
"pezbp-xcm-bridge-hub-router/std",
"codec/std",
"pezbp-runtime/std",
"pezbp-xcm-bridge-hub-router/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-core/std",
@@ -52,8 +52,8 @@ std = [
runtime-benchmarks = [
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
"pezbp-messages/runtime-benchmarks",
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
@@ -24,10 +24,10 @@ use scale_info::TypeInfo;
pub use pezbp_bridge_hub_pezcumulus::*;
use pezbp_messages::*;
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use pezbp_runtime::{
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
};
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use pezframe_support::{
dispatch::DispatchClass,
pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion},
@@ -61,8 +61,8 @@ use testnet_teyrchains_constants::pezkuwichain::snowbridge::EthereumNetwork;
use pezsp_version::NativeVersion;
use pezsp_version::RuntimeVersion;
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::{
construct_runtime, derive_impl,
@@ -129,7 +129,10 @@ pub type FungibleTransactor = FungibleAdapter<
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
pub type TrustBackedAssetsConvertedConcreteId =
pez_assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
pez_assets_common::TrustBackedAssetsConvertedConcreteId<
TrustBackedAssetsPalletLocation,
Balance,
>;
/// Means for transacting assets besides the native currency on this chain.
pub type FungiblesTransactor = FungiblesAdapter<
@@ -967,7 +967,8 @@ mod asset_hub_pezkuwichain_tests {
let actual = <Runtime as pezpallet_xcm_bridge_hub_router::Config<
ToZagrosXcmRouterInstance,
>>::WeightInfo::report_bridge_status();
let max_weight = pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get();
let max_weight =
pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get();
assert!(
actual.all_lte(max_weight),
"max_weight: {:?} should be adjusted to actual {:?}",
@@ -151,11 +151,11 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
[features]
default = ["std"]
default = [ "std" ]
runtime-benchmarks = [
"asset-test-pezutils/runtime-benchmarks",
"pez-assets-common/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"pez-assets-common/runtime-benchmarks",
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
"pezbp-asset-hub-zagros/runtime-benchmarks",
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
@@ -326,14 +326,14 @@ try-runtime = [
]
std = [
"alloy-core/std",
"pez-assets-common/std",
"bizinikiwi-wasm-builder",
"codec/std",
"log/std",
"pez-assets-common/std",
"pezbp-asset-hub-pezkuwichain/std",
"pezbp-asset-hub-zagros/std",
"pezbp-bridge-hub-pezkuwichain/std",
"pezbp-bridge-hub-zagros/std",
"codec/std",
"log/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
@@ -443,9 +443,9 @@ std = [
fast-runtime = []
# Enable the metadata hash generation in the wasm builder.
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
# A feature that should be enabled when the runtime should be built for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
# to make it smaller, like logging for example.
on-chain-release-build = ["metadata-hash"]
on-chain-release-build = [ "metadata-hash" ]
@@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["zagros"], workspace = true }
xcm = { workspace = true }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"pezbp-bridge-hub-pezcumulus/std",
"pezbp-messages/std",
"pezbp-xcm-bridge-hub-router/std",
"codec/std",
"pezbp-runtime/std",
"pezbp-xcm-bridge-hub-router/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-core/std",
@@ -52,8 +52,8 @@ std = [
runtime-benchmarks = [
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
"pezbp-messages/runtime-benchmarks",
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
@@ -19,13 +19,13 @@
extern crate alloc;
use codec::{Decode, Encode};
pub use pezbp_bridge_hub_pezcumulus::*;
use pezbp_messages::*;
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use codec::{Decode, Encode};
use pezbp_runtime::{
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
};
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
use pezframe_support::{
dispatch::DispatchClass,
pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion},
@@ -43,13 +43,13 @@ use governance::{
extern crate alloc;
use alloc::{vec, vec::Vec};
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use pez_assets_common::{
local_and_foreign_assets::{LocalFromLeft, TargetFromLeft},
AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert,
};
use pezbp_asset_hub_zagros::CreateForeignAssetDeposit;
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use pezcumulus_pezpallet_teyrchain_system::{
RelayNumberMonotonicallyIncreases, RelaychainDataProvider,
};
@@ -124,7 +124,10 @@ pub type FungibleTransactor = FungibleAdapter<
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
pub type TrustBackedAssetsConvertedConcreteId =
pez_assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
pez_assets_common::TrustBackedAssetsConvertedConcreteId<
TrustBackedAssetsPalletLocation,
Balance,
>;
/// Means for transacting assets besides the native currency on this chain.
pub type FungiblesTransactor = FungiblesAdapter<
@@ -38,9 +38,9 @@ use asset_test_pezutils::{
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
ExtBuilder, GovernanceOrigin, SlotDurations,
};
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use codec::{Decode, Encode};
use hex_literal::hex;
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use pezframe_support::{
assert_err, assert_noop, assert_ok, parameter_types,
traits::{
@@ -780,12 +780,13 @@ fn test_assets_balances_api_works() {
assert_eq!(result.len(), 3);
// check currency
assert!(result.inner().iter().any(|asset| asset.eq(
&pez_assets_common::fungible_conversion::convert_balance::<ZagrosLocation, Balance>(
some_currency
)
.unwrap()
)));
assert!(result.inner().iter().any(|asset| {
asset.eq(&pez_assets_common::fungible_conversion::convert_balance::<
ZagrosLocation,
Balance,
>(some_currency)
.unwrap())
}));
// check trusted asset
assert!(result.inner().iter().any(|asset| asset.eq(&(
AssetIdForTrustBackedAssetsConvert::convert_back(&local_asset_id).unwrap(),
@@ -42,7 +42,7 @@ pezcumulus-primitives-core = { workspace = true }
teyrchains-common = { workspace = true }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"pezcumulus-primitives-core/std",
@@ -47,10 +47,10 @@ xcm-runtime-pezapis = { workspace = true }
pezpallet-xcm-bridge-hub-router = { workspace = true }
[features]
default = ["std"]
default = [ "std" ]
std = [
"pez-assets-common/std",
"codec/std",
"pez-assets-common/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-core/std",
@@ -17,9 +17,9 @@
use super::xcm_helpers;
use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees};
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use codec::Encode;
use core::ops::Mul;
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use pezcumulus_primitives_core::{UpwardMessageSender, XcmpMessageSource};
use pezframe_support::{
assert_noop, assert_ok,
@@ -17,8 +17,8 @@
//! over a bridge.
use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees};
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use codec::Encode;
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
use pezcumulus_primitives_core::XcmpMessageSource;
use pezframe_support::{
assert_ok,