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:
@@ -140,6 +140,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"pezbp-asset-hub-pezkuwichain/std",
|
||||
"pezbp-asset-hub-zagros/std",
|
||||
"pezbp-bridge-hub-pezkuwichain/std",
|
||||
@@ -149,11 +150,10 @@ std = [
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-pezkuwichain/std",
|
||||
"pezbp-relayers/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezbridge-hub-common/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbridge-runtime-common/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
@@ -238,7 +238,7 @@ std = [
|
||||
"xcm/std",
|
||||
"zagros-runtime-constants/std",
|
||||
]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
|
||||
runtime-benchmarks = [
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
@@ -251,10 +251,10 @@ runtime-benchmarks = [
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-pezkuwichain/runtime-benchmarks",
|
||||
"pezbp-relayers/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbridge-hub-test-utils/runtime-benchmarks",
|
||||
"pezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
@@ -377,11 +377,11 @@ try-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" ]
|
||||
|
||||
fast-runtime = []
|
||||
|
||||
+4
-4
@@ -31,13 +31,13 @@ pezsp-runtime = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-bridge-hub-pezcumulus/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"pezframe-support/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-runtime/std",
|
||||
@@ -46,8 +46,8 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -18,9 +18,9 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
pub use pezbp_bridge_hub_pezcumulus::*;
|
||||
use pezbp_messages::*;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
|
||||
+1
-1
@@ -26,9 +26,9 @@ use crate::{
|
||||
bridge_to_ethereum_config::InboundQueueV2Location, xcm_config::XcmConfig, RuntimeCall,
|
||||
XcmRouter,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_relayers::RewardsAccountParams;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezframe_support::parameter_types;
|
||||
use scale_info::TypeInfo;
|
||||
use testnet_teyrchains_constants::zagros::{
|
||||
|
||||
+1
-1
@@ -22,9 +22,9 @@ use crate::{
|
||||
EthereumOutboundQueue, EthereumOutboundQueueV2, EthereumSystem, EthereumSystemV2, MessageQueue,
|
||||
Runtime, RuntimeEvent, TransactionByteFee,
|
||||
};
|
||||
use hex_literal::hex;
|
||||
use pezbp_asset_hub_zagros::CreateForeignAssetDeposit;
|
||||
use pezbridge_hub_common::AggregateMessageOrigin;
|
||||
use hex_literal::hex;
|
||||
use pezframe_support::{parameter_types, traits::Contains, weights::ConstantMultiplier};
|
||||
use pezframe_system::EnsureRootWithSuccess;
|
||||
use pezpallet_xcm::EnsureXcm;
|
||||
|
||||
+5
-3
@@ -83,8 +83,10 @@ parameter_types! {
|
||||
pub type FromPezkuwichainBridgeHubMessagesProof<MI> =
|
||||
FromBridgedChainMessagesProof<pezbp_bridge_hub_pezkuwichain::Hash, LaneIdOf<Runtime, MI>>;
|
||||
/// Messages delivery proof for Pezkuwichain Bridge Hub -> Zagros Bridge Hub messages.
|
||||
pub type ToPezkuwichainBridgeHubMessagesDeliveryProof<MI> =
|
||||
FromBridgedChainMessagesDeliveryProof<pezbp_bridge_hub_pezkuwichain::Hash, LaneIdOf<Runtime, MI>>;
|
||||
pub type ToPezkuwichainBridgeHubMessagesDeliveryProof<MI> = FromBridgedChainMessagesDeliveryProof<
|
||||
pezbp_bridge_hub_pezkuwichain::Hash,
|
||||
LaneIdOf<Runtime, MI>,
|
||||
>;
|
||||
|
||||
/// Dispatches received XCM messages from other bridge
|
||||
type FromPezkuwichainMessageBlobDispatcher = BridgeBlobDispatcher<
|
||||
@@ -381,8 +383,8 @@ pub mod migration {
|
||||
}
|
||||
|
||||
mod v1_wrong {
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezpallet_bridge_messages::BridgedChainOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
@@ -1487,15 +1487,16 @@ mod tests {
|
||||
).into();
|
||||
|
||||
{
|
||||
let bh_indirect_payload = pezbp_bridge_hub_zagros::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
(((), ()), ((), ())),
|
||||
);
|
||||
let bh_indirect_payload =
|
||||
pezbp_bridge_hub_zagros::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
(((), ()), ((), ())),
|
||||
);
|
||||
assert_eq!(payload.encode().split_last().unwrap().1, bh_indirect_payload.encode());
|
||||
assert_eq!(
|
||||
TxExtension::implicit(&payload).unwrap().encode().split_last().unwrap().1,
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_asset_hub_zagros::ASSET_HUB_ZAGROS_TEYRCHAIN_ID;
|
||||
use pezbp_bridge_hub_zagros::BRIDGE_HUB_ZAGROS_TEYRCHAIN_ID;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbridge_hub_zagros_runtime::{
|
||||
bridge_to_pezkuwichain_config, xcm_config::XcmConfig, AllPalletsWithoutSystem,
|
||||
BridgeRejectObsoleteHeadersAndMessages, Executive, MessageQueueServiceWeight, Runtime,
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use crate::bridge_common_config::BridgeRewardBeneficiaries;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams};
|
||||
use bridge_common_config::{BridgeRelayersInstance, BridgeReward, RequiredStakeForStakeAndSlash};
|
||||
use bridge_to_pezkuwichain_config::{
|
||||
BridgeGrandpaPezkuwichainInstance, BridgeHubPezkuwichainLocation,
|
||||
@@ -28,6 +25,9 @@ use bridge_to_pezkuwichain_config::{
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
use hex_literal::hex;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams};
|
||||
use pezbridge_hub_test_utils::{
|
||||
test_cases::{from_teyrchain, run_test},
|
||||
GovernanceOrigin, SlotDurations,
|
||||
|
||||
Reference in New Issue
Block a user