snapshot before rebranding

This commit is contained in:
2025-12-14 07:37:21 +03:00
parent 5520d491a5
commit 09735eb97a
1752 changed files with 58116 additions and 15986 deletions
@@ -7,6 +7,7 @@ description = "Pezkuwichain's BridgeHub teyrchain runtime"
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/bridge-hub-pezkuwichain-runtime"
[lints]
workspace = true
@@ -19,7 +20,7 @@ codec = { features = ["derive"], workspace = true }
hex-literal = { workspace = true, default-features = true }
scale-info = { features = ["derive"], workspace = true }
serde = { optional = true, features = [
"derive",
"derive",
], workspace = true, default-features = true }
serde_json = { features = ["alloc"], workspace = true }
tracing = { workspace = true }
@@ -125,7 +126,7 @@ bridge-hub-common = { workspace = true }
[dev-dependencies]
bridge-hub-test-utils = { workspace = true, default-features = true }
bridge-runtime-common = { features = [
"integrity-test",
"integrity-test",
], workspace = true, default-features = true }
pezpallet-bridge-relayers = { features = ["integrity-test"], workspace = true }
snowbridge-runtime-test-common = { workspace = true, default-features = true }
@@ -134,225 +135,225 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"bp-asset-hub-pezkuwichain/std",
"bp-asset-hub-zagros/std",
"bp-bridge-hub-pezkuwichain/std",
"bp-bridge-hub-zagros/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-bulletin/std",
"bp-pezkuwi-core/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-teyrchains/std",
"bp-xcm-bridge-hub-router/std",
"bp-zagros/std",
"bridge-hub-common/std",
"bridge-runtime-common/std",
"codec/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-weight-reclaim/std",
"pezcumulus-pezpallet-xcm/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-aura/std",
"pezcumulus-primitives-core/std",
"pezcumulus-primitives-utility/std",
"pezframe-benchmarking/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-authorship/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-collator-selection/std",
"pezpallet-message-queue/std",
"pezpallet-multisig/std",
"pezpallet-session/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"pezpallet-utility/std",
"pezpallet-xcm-benchmarks?/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezkuwi-runtime-common/std",
"pezkuwi-teyrchain-primitives/std",
"pezkuwichain-runtime-constants/std",
"scale-info/std",
"serde",
"serde_json/std",
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-inbound-queue-primitives/std",
"snowbridge-merkle-tree/std",
"snowbridge-outbound-queue-primitives/std",
"snowbridge-outbound-queue-runtime-api/std",
"snowbridge-pezpallet-ethereum-client/std",
"snowbridge-pezpallet-inbound-queue-fixtures/std",
"snowbridge-pezpallet-inbound-queue/std",
"snowbridge-pezpallet-outbound-queue/std",
"snowbridge-pezpallet-system/std",
"snowbridge-system-runtime-api/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-io/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-std/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
"testnet-teyrchains-constants/std",
"teyrchain-info/std",
"teyrchains-common/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
"bp-asset-hub-pezkuwichain/std",
"bp-asset-hub-zagros/std",
"bp-bridge-hub-pezkuwichain/std",
"bp-bridge-hub-zagros/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-bulletin/std",
"bp-pezkuwi-core/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-teyrchains/std",
"bp-xcm-bridge-hub-router/std",
"bp-zagros/std",
"bridge-hub-common/std",
"bridge-runtime-common/std",
"codec/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-weight-reclaim/std",
"pezcumulus-pezpallet-xcm/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-aura/std",
"pezcumulus-primitives-core/std",
"pezcumulus-primitives-utility/std",
"pezframe-benchmarking/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-authorship/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-collator-selection/std",
"pezpallet-message-queue/std",
"pezpallet-multisig/std",
"pezpallet-session/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"pezpallet-utility/std",
"pezpallet-xcm-benchmarks?/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezkuwi-runtime-common/std",
"pezkuwi-teyrchain-primitives/std",
"pezkuwichain-runtime-constants/std",
"scale-info/std",
"serde",
"serde_json/std",
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-inbound-queue-primitives/std",
"snowbridge-merkle-tree/std",
"snowbridge-outbound-queue-primitives/std",
"snowbridge-outbound-queue-runtime-api/std",
"snowbridge-pezpallet-ethereum-client/std",
"snowbridge-pezpallet-inbound-queue-fixtures/std",
"snowbridge-pezpallet-inbound-queue/std",
"snowbridge-pezpallet-outbound-queue/std",
"snowbridge-pezpallet-system/std",
"snowbridge-system-runtime-api/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-io/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-std/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
"testnet-teyrchains-constants/std",
"teyrchain-info/std",
"teyrchains-common/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
]
runtime-benchmarks = [
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
"bp-bridge-hub-zagros/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-bulletin/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"bp-zagros/runtime-benchmarks",
"bridge-hub-common/runtime-benchmarks",
"bridge-hub-test-utils/runtime-benchmarks",
"bridge-runtime-common/runtime-benchmarks",
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
"pezcumulus-pezpallet-xcm/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezcumulus-primitives-aura/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezcumulus-primitives-utility/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-authorship/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-collator-selection/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-multisig/runtime-benchmarks",
"pezpallet-session/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-benchmarks/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezkuwichain-runtime-constants/runtime-benchmarks",
"snowbridge-beacon-primitives/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
"snowbridge-merkle-tree/runtime-benchmarks",
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-system/runtime-benchmarks",
"snowbridge-runtime-test-common/runtime-benchmarks",
"snowbridge-system-runtime-api/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
"teyrchain-info/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
"bp-bridge-hub-zagros/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-bulletin/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"bp-zagros/runtime-benchmarks",
"bridge-hub-common/runtime-benchmarks",
"bridge-hub-test-utils/runtime-benchmarks",
"bridge-runtime-common/runtime-benchmarks",
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
"pezcumulus-pezpallet-xcm/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezcumulus-primitives-aura/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezcumulus-primitives-utility/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-authorship/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-collator-selection/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-multisig/runtime-benchmarks",
"pezpallet-session/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-benchmarks/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezkuwichain-runtime-constants/runtime-benchmarks",
"snowbridge-beacon-primitives/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
"snowbridge-merkle-tree/runtime-benchmarks",
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-system/runtime-benchmarks",
"snowbridge-runtime-test-common/runtime-benchmarks",
"snowbridge-system-runtime-api/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
"teyrchain-info/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
try-runtime = [
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezcumulus-pezpallet-weight-reclaim/try-runtime",
"pezcumulus-pezpallet-xcm/try-runtime",
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-authorship/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-bridge-grandpa/try-runtime",
"pezpallet-bridge-messages/try-runtime",
"pezpallet-bridge-relayers/try-runtime",
"pezpallet-bridge-teyrchains/try-runtime",
"pezpallet-collator-selection/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezpallet-multisig/try-runtime",
"pezpallet-session/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-xcm-bridge-hub/try-runtime",
"pezpallet-xcm/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"snowbridge-inbound-queue-primitives/try-runtime",
"snowbridge-pezpallet-ethereum-client/try-runtime",
"snowbridge-pezpallet-inbound-queue/try-runtime",
"snowbridge-pezpallet-outbound-queue/try-runtime",
"snowbridge-pezpallet-system/try-runtime",
"pezsp-runtime/try-runtime",
"teyrchain-info/try-runtime",
"teyrchains-common/try-runtime",
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezcumulus-pezpallet-weight-reclaim/try-runtime",
"pezcumulus-pezpallet-xcm/try-runtime",
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-authorship/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-bridge-grandpa/try-runtime",
"pezpallet-bridge-messages/try-runtime",
"pezpallet-bridge-relayers/try-runtime",
"pezpallet-bridge-teyrchains/try-runtime",
"pezpallet-collator-selection/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezpallet-multisig/try-runtime",
"pezpallet-session/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-xcm-bridge-hub/try-runtime",
"pezpallet-xcm/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"snowbridge-inbound-queue-primitives/try-runtime",
"snowbridge-pezpallet-ethereum-client/try-runtime",
"snowbridge-pezpallet-inbound-queue/try-runtime",
"snowbridge-pezpallet-outbound-queue/try-runtime",
"snowbridge-pezpallet-system/try-runtime",
"pezsp-runtime/try-runtime",
"teyrchain-info/try-runtime",
"teyrchains-common/try-runtime",
]
fast-runtime = []
@@ -6,6 +6,8 @@ authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
repository.workspace = true
documentation = "https://docs.rs/bp-bridge-hub-pezkuwichain"
homepage = { workspace = true }
[package.metadata.pezkuwi-sdk]
exclude-from-umbrella = true
@@ -31,22 +33,22 @@ pezsp-std = { workspace = true }
[features]
default = ["std"]
std = [
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"bp-xcm-bridge-hub/std",
"codec/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-runtime/std",
"pezsp-std/std",
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"bp-xcm-bridge-hub/std",
"codec/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-runtime/std",
"pezsp-std/std",
]
runtime-benchmarks = [
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -172,7 +172,7 @@ impl pezpallet_xcm_bridge_hub::LocalXcmChannelManager for CongestionManager {
// dispatched and sent to the sibling teyrchain. Therefore, checking outbound `XcmpQueue`
// is sufficient here.
use bp_xcm_bridge_hub_router::XcmChannelStatusProvider;
cumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
pezcumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
with,
)
}
@@ -17,7 +17,7 @@
use crate::*;
use alloc::{vec, vec::Vec};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::build_struct_json_patch;
use pezsp_genesis_builder::PresetId;
use pezsp_keyring::Sr25519Keyring;
@@ -42,7 +42,7 @@ use alloc::{vec, vec::Vec};
use bridge_runtime_common::extensions::{
CheckAndBoostBridgeGrandpaTransactions, CheckAndBoostBridgeTeyrchainsTransactions,
};
use cumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezpallet_bridge_messages::LaneIdOf;
use pezsp_api::impl_runtime_apis;
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
@@ -57,7 +57,7 @@ use pezsp_runtime::{
use pezsp_version::NativeVersion;
use pezsp_version::RuntimeVersion;
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::{
construct_runtime, derive_impl,
dispatch::DispatchClass,
@@ -124,7 +124,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
pub type BlockId = generic::BlockId<Block>;
/// The TransactionExtension to the basic transaction logic.
pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
(
@@ -154,8 +154,8 @@ pub type Migrations = (
pezpallet_multisig::migrations::v1::MigrateToV1<Runtime>,
InitStorageVersions,
// unreleased
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
snowbridge_pallet_system::migration::v0::InitializeOnUpgrade<
Runtime,
ConstU32<BRIDGE_HUB_ID>,
@@ -196,7 +196,7 @@ pub type Migrations = (
>,
// permanent
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
);
parameter_types! {
@@ -323,13 +323,13 @@ impl pezframe_system::Config for Runtime {
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
type SS58Prefix = SS58Prefix;
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
type SingleBlockMigrations = Migrations;
}
impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}
impl pezpallet_timestamp::Config for Runtime {
@@ -389,8 +389,8 @@ parameter_types! {
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
}
impl cumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = teyrchain_info::Pallet<Runtime>;
@@ -404,7 +404,7 @@ impl cumulus_pallet_teyrchain_system::Config for Runtime {
type RelayParentOffset = ConstU32<0>;
}
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
@@ -450,7 +450,7 @@ impl pezpallet_message_queue::Config for Runtime {
type IdleMaxServiceWeight = MessageQueueServiceWeight;
}
impl cumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
@@ -466,7 +466,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
XcmpQueue,
>;
impl cumulus_pallet_xcmp_queue::Config for Runtime {
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ChannelInfo = TeyrchainSystem;
type VersionWrapper = PezkuwiXcm;
@@ -479,11 +479,11 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
type ControllerOrigin = EnsureRoot<AccountId>;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
}
impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
// This must be the same as the `ChannelInfo` from the `Config`:
type ChannelList = TeyrchainSystem;
}
@@ -574,10 +574,10 @@ construct_runtime!(
{
// System support stuff.
System: pezframe_system = 0,
TeyrchainSystem: cumulus_pallet_teyrchain_system = 1,
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
Timestamp: pezpallet_timestamp = 2,
TeyrchainInfo: teyrchain_info = 3,
WeightReclaim: cumulus_pallet_weight_reclaim = 4,
WeightReclaim: pezcumulus_pallet_weight_reclaim = 4,
// Monetary stuff.
Balances: pezpallet_balances = 10,
@@ -588,12 +588,12 @@ construct_runtime!(
CollatorSelection: pezpallet_collator_selection = 21,
Session: pezpallet_session = 22,
Aura: pezpallet_aura = 23,
AuraExt: cumulus_pallet_aura_ext = 24,
AuraExt: pezcumulus_pallet_aura_ext = 24,
// XCM helpers.
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
PezkuwiXcm: pezpallet_xcm = 31,
CumulusXcm: cumulus_pallet_xcm = 32,
CumulusXcm: pezcumulus_pallet_xcm = 32,
// Handy utilities.
Utility: pezpallet_utility = 40,
@@ -688,9 +688,9 @@ mod benches {
[pezpallet_timestamp, Timestamp]
[pezpallet_transaction_payment, TransactionPayment]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pallet_teyrchain_system, TeyrchainSystem]
[cumulus_pallet_xcmp_queue, XcmpQueue]
[cumulus_pallet_weight_reclaim, WeightReclaim]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
// XCM
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
// NOTE: Make sure you point to the individual modules below.
@@ -711,9 +711,9 @@ mod benches {
);
}
cumulus_pallet_teyrchain_system::register_validate_block! {
pezcumulus_pallet_teyrchain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}
impl_runtime_apis! {
@@ -727,16 +727,16 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
impl pezcumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
fn relay_parent_offset() -> u32 {
0
}
}
impl cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
impl pezcumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
fn can_build_upon(
included_hash: <Block as BlockT>::Hash,
slot: cumulus_primitives_aura::Slot,
slot: pezcumulus_primitives_aura::Slot,
) -> bool {
ConsensusHook::can_build_upon(included_hash, slot)
}
@@ -912,8 +912,8 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {
impl pezcumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> pezcumulus_primitives_core::CollationInfo {
TeyrchainSystem::collect_collation_info(header)
}
}
@@ -1059,7 +1059,7 @@ impl_runtime_apis! {
use pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
// This is defined once again in dispatch_benchmark, because list_benchmarks!
@@ -1100,12 +1100,12 @@ impl_runtime_apis! {
}
fn verify_set_code() {
System::assert_last_event(cumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
}
}
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl cumulus_pallet_session_benchmarking::Config for Runtime {}
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
use xcm::latest::prelude::*;
use xcm_config::TokenLocation;
@@ -1367,7 +1367,7 @@ impl_runtime_apis! {
fn prepare_message_proof(
params: MessageProofParams<LaneIdOf<Runtime, bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance>>,
) -> (bridge_to_zagros_config::FromZagrosBridgeHubMessagesProof<bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance>, Weight) {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
assert!(XcmpQueue::take_outbound_messages(usize::MAX).is_empty());
TeyrchainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(42.into());
let universal_source = bridge_to_zagros_config::open_bridge_for_benchmarks::<
@@ -1398,7 +1398,7 @@ impl_runtime_apis! {
}
fn is_message_successfully_dispatched(_nonce: bp_messages::MessageNonce) -> bool {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
!XcmpQueue::take_outbound_messages(usize::MAX).is_empty()
}
}
@@ -1412,7 +1412,7 @@ impl_runtime_apis! {
fn prepare_message_proof(
params: MessageProofParams<LaneIdOf<Runtime, bridge_to_bulletin_config::WithPezkuwichainBulletinMessagesInstance>>,
) -> (bridge_to_bulletin_config::FromPezkuwichainBulletinMessagesProof<bridge_to_bulletin_config::WithPezkuwichainBulletinMessagesInstance>, Weight) {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
assert!(XcmpQueue::take_outbound_messages(usize::MAX).is_empty());
TeyrchainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(42.into());
let universal_source = bridge_to_bulletin_config::open_bridge_for_benchmarks::<
@@ -1443,7 +1443,7 @@ impl_runtime_apis! {
}
fn is_message_successfully_dispatched(_nonce: bp_messages::MessageNonce) -> bool {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
!XcmpQueue::take_outbound_messages(usize::MAX).is_empty()
}
}
@@ -1573,13 +1573,13 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
impl pezcumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
fn teyrchain_id() -> ParaId {
TeyrchainInfo::teyrchain_id()
}
}
impl cumulus_primitives_core::TargetBlockRate<Block> for Runtime {
impl pezcumulus_primitives_core::TargetBlockRate<Block> for Runtime {
fn target_block_rate() -> u32 {
1
}
@@ -23,9 +23,9 @@ use ::pezpallet_bridge_relayers::WeightInfo as _;
use ::pezpallet_bridge_teyrchains::WeightInfoExt as TeyrchainsWeightInfoExt;
pub mod block_weights;
pub mod cumulus_pallet_teyrchain_system;
pub mod cumulus_pallet_weight_reclaim;
pub mod cumulus_pallet_xcmp_queue;
pub mod pezcumulus_pallet_teyrchain_system;
pub mod pezcumulus_pallet_weight_reclaim;
pub mod pezcumulus_pallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod pezframe_system;
pub mod pezframe_system_extensions;
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
// --pallet=cumulus_pallet_teyrchain_system
// --pallet=pezcumulus_pallet_teyrchain_system
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_weight_reclaim`
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
// --pallet=cumulus_pallet_weight_reclaim
// --pallet=pezcumulus_pallet_weight_reclaim
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_weight_reclaim`.
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
fn storage_weight_reclaim() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
// --pallet=cumulus_pallet_xcmp_queue
// --pallet=pezcumulus_pallet_xcmp_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
fn set_config_with_u32() -> Weight {
@@ -64,7 +64,7 @@ use xcm_executor::{
parameter_types! {
pub const RootLocation: Location = Location::here();
pub const TokenLocation: Location = Location::parent();
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
pub RelayNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
pub UniversalLocation: InteriorLocation =
[GlobalConsensus(RelayNetwork::get()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
@@ -119,7 +119,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
// recognized.
SiblingTeyrchainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
// transaction from the Root origin.
ParentAsSuperuser<RuntimeOrigin>,
@@ -253,7 +253,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, R
/// queues.
pub type XcmRouter = WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
pezcumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
// ..and XCMP to communicate with the sibling chains.
XcmpQueue,
)>;
@@ -303,7 +303,7 @@ impl pezpallet_xcm::Config for Runtime {
>;
}
impl cumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}
@@ -24,7 +24,7 @@ use bridge_hub_pezkuwichain_runtime::{
TxExtension, UncheckedExtrinsic,
};
use codec::{Decode, Encode};
use cumulus_primitives_core::XcmError::FailedToTransactAsset;
use pezcumulus_primitives_core::XcmError::FailedToTransactAsset;
use pezframe_support::parameter_types;
use snowbridge_pallet_ethereum_client::WeightInfo;
use pezsp_core::H160;
@@ -139,7 +139,7 @@ mod bridge_hub_zagros_tests {
BridgeHubZagrosLocation, WithBridgeHubZagrosMessagesInstance,
XcmOverBridgeHubZagrosInstance, ZagrosGlobalConsensusNetwork,
};
use cumulus_primitives_core::UpwardMessageSender;
use pezcumulus_primitives_core::UpwardMessageSender;
// Random para id of sibling chain used in tests.
pub const SIBLING_TEYRCHAIN_ID: u32 = 2053;
@@ -531,7 +531,7 @@ mod bridge_hub_bulletin_tests {
PezkuwichainBulletinGlobalConsensusNetworkLocation,
WithPezkuwichainBulletinMessagesInstance, XcmOverPezkuwiBulletinInstance,
};
use cumulus_primitives_core::UpwardMessageSender;
use pezcumulus_primitives_core::UpwardMessageSender;
// Random para id of sibling chain used in tests.
pub const SIBLING_PEOPLE_TEYRCHAIN_ID: u32 =
@@ -7,6 +7,7 @@ description = "Zagros's BridgeHub teyrchain runtime"
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/bridge-hub-zagros-runtime"
[lints]
workspace = true
@@ -16,7 +17,7 @@ codec = { features = ["derive"], workspace = true }
hex-literal = { workspace = true, default-features = true }
scale-info = { features = ["derive"], workspace = true }
serde = { optional = true, features = [
"derive",
"derive",
], workspace = true, default-features = true }
serde_json = { features = ["alloc"], workspace = true }
tracing = { workspace = true }
@@ -127,7 +128,7 @@ snowbridge-system-v2-runtime-api = { workspace = true }
[dev-dependencies]
bridge-hub-test-utils = { workspace = true, default-features = true }
bridge-runtime-common = { features = [
"integrity-test",
"integrity-test",
], workspace = true, default-features = true }
pezpallet-bridge-relayers = { features = ["integrity-test"], workspace = true }
snowbridge-runtime-test-common = { workspace = true, default-features = true }
@@ -138,241 +139,241 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
[features]
std = [
"bp-asset-hub-pezkuwichain/std",
"bp-asset-hub-zagros/std",
"bp-bridge-hub-pezkuwichain/std",
"bp-bridge-hub-zagros/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-core/std",
"bp-pezkuwichain/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-teyrchains/std",
"bp-xcm-bridge-hub-router/std",
"bridge-hub-common/std",
"bridge-runtime-common/std",
"codec/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-weight-reclaim/std",
"pezcumulus-pezpallet-xcm/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-aura/std",
"pezcumulus-primitives-core/std",
"pezcumulus-primitives-utility/std",
"pezframe-benchmarking/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-authorship/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-collator-selection/std",
"pezpallet-message-queue/std",
"pezpallet-multisig/std",
"pezpallet-session/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"pezpallet-utility/std",
"pezpallet-xcm-benchmarks?/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezkuwi-runtime-common/std",
"pezkuwi-teyrchain-primitives/std",
"scale-info/std",
"serde",
"serde_json/std",
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-inbound-queue-primitives/std",
"snowbridge-merkle-tree/std",
"snowbridge-outbound-queue-primitives/std",
"snowbridge-outbound-queue-runtime-api/std",
"snowbridge-outbound-queue-v2-runtime-api/std",
"snowbridge-pezpallet-ethereum-client/std",
"snowbridge-pezpallet-inbound-queue-fixtures/std",
"snowbridge-pezpallet-inbound-queue-v2-fixtures/std",
"snowbridge-pezpallet-inbound-queue-v2/std",
"snowbridge-pezpallet-inbound-queue/std",
"snowbridge-pezpallet-outbound-queue-v2/std",
"snowbridge-pezpallet-outbound-queue/std",
"snowbridge-pezpallet-system-v2/std",
"snowbridge-pezpallet-system/std",
"snowbridge-system-runtime-api/std",
"snowbridge-system-v2-runtime-api/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-io/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-std/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
"testnet-teyrchains-constants/std",
"teyrchain-info/std",
"teyrchains-common/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
"zagros-runtime-constants/std",
"bp-asset-hub-pezkuwichain/std",
"bp-asset-hub-zagros/std",
"bp-bridge-hub-pezkuwichain/std",
"bp-bridge-hub-zagros/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-core/std",
"bp-pezkuwichain/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-teyrchains/std",
"bp-xcm-bridge-hub-router/std",
"bridge-hub-common/std",
"bridge-runtime-common/std",
"codec/std",
"pezcumulus-pezpallet-aura-ext/std",
"pezcumulus-pezpallet-session-benchmarking/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-weight-reclaim/std",
"pezcumulus-pezpallet-xcm/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezcumulus-primitives-aura/std",
"pezcumulus-primitives-core/std",
"pezcumulus-primitives-utility/std",
"pezframe-benchmarking/std",
"pezframe-executive/std",
"pezframe-metadata-hash-extension/std",
"pezframe-support/std",
"pezframe-system-benchmarking?/std",
"pezframe-system-rpc-runtime-api/std",
"pezframe-system/std",
"pezframe-try-runtime?/std",
"pezpallet-aura/std",
"pezpallet-authorship/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-collator-selection/std",
"pezpallet-message-queue/std",
"pezpallet-multisig/std",
"pezpallet-session/std",
"pezpallet-timestamp/std",
"pezpallet-transaction-payment-rpc-runtime-api/std",
"pezpallet-transaction-payment/std",
"pezpallet-utility/std",
"pezpallet-xcm-benchmarks?/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezkuwi-runtime-common/std",
"pezkuwi-teyrchain-primitives/std",
"scale-info/std",
"serde",
"serde_json/std",
"snowbridge-beacon-primitives/std",
"snowbridge-core/std",
"snowbridge-inbound-queue-primitives/std",
"snowbridge-merkle-tree/std",
"snowbridge-outbound-queue-primitives/std",
"snowbridge-outbound-queue-runtime-api/std",
"snowbridge-outbound-queue-v2-runtime-api/std",
"snowbridge-pezpallet-ethereum-client/std",
"snowbridge-pezpallet-inbound-queue-fixtures/std",
"snowbridge-pezpallet-inbound-queue-v2-fixtures/std",
"snowbridge-pezpallet-inbound-queue-v2/std",
"snowbridge-pezpallet-inbound-queue/std",
"snowbridge-pezpallet-outbound-queue-v2/std",
"snowbridge-pezpallet-outbound-queue/std",
"snowbridge-pezpallet-system-v2/std",
"snowbridge-pezpallet-system/std",
"snowbridge-system-runtime-api/std",
"snowbridge-system-v2-runtime-api/std",
"pezsp-api/std",
"pezsp-block-builder/std",
"pezsp-consensus-aura/std",
"pezsp-core/std",
"pezsp-genesis-builder/std",
"pezsp-inherents/std",
"pezsp-io/std",
"pezsp-keyring/std",
"pezsp-offchain/std",
"pezsp-runtime/std",
"pezsp-session/std",
"pezsp-std/std",
"pezsp-storage/std",
"pezsp-transaction-pool/std",
"pezsp-version/std",
"bizinikiwi-wasm-builder",
"testnet-teyrchains-constants/std",
"teyrchain-info/std",
"teyrchains-common/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
"zagros-runtime-constants/std",
]
default = ["std"]
runtime-benchmarks = [
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
"bp-bridge-hub-zagros/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-pezkuwichain/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"bridge-hub-common/runtime-benchmarks",
"bridge-hub-test-utils/runtime-benchmarks",
"bridge-runtime-common/runtime-benchmarks",
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
"pezcumulus-pezpallet-xcm/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezcumulus-primitives-aura/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezcumulus-primitives-utility/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-authorship/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-collator-selection/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-multisig/runtime-benchmarks",
"pezpallet-session/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-benchmarks/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"snowbridge-beacon-primitives/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
"snowbridge-merkle-tree/runtime-benchmarks",
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
"snowbridge-outbound-queue-v2-runtime-api/runtime-benchmarks",
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-v2-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-v2/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue-v2/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-system-v2/runtime-benchmarks",
"snowbridge-pezpallet-system/runtime-benchmarks",
"snowbridge-runtime-test-common/runtime-benchmarks",
"snowbridge-system-runtime-api/runtime-benchmarks",
"snowbridge-system-v2-runtime-api/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
"teyrchain-info/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-runtime-constants/runtime-benchmarks",
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
"bp-bridge-hub-zagros/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-pezkuwichain/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"bridge-hub-common/runtime-benchmarks",
"bridge-hub-test-utils/runtime-benchmarks",
"bridge-runtime-common/runtime-benchmarks",
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-weight-reclaim/runtime-benchmarks",
"pezcumulus-pezpallet-xcm/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezcumulus-primitives-aura/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezcumulus-primitives-utility/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-executive/runtime-benchmarks",
"pezframe-metadata-hash-extension/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system-benchmarking/runtime-benchmarks",
"pezframe-system-rpc-runtime-api/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezframe-try-runtime?/runtime-benchmarks",
"pezpallet-aura/runtime-benchmarks",
"pezpallet-authorship/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-collator-selection/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezpallet-multisig/runtime-benchmarks",
"pezpallet-session/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-transaction-payment-rpc-runtime-api/runtime-benchmarks",
"pezpallet-transaction-payment/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-benchmarks/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"snowbridge-beacon-primitives/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
"snowbridge-merkle-tree/runtime-benchmarks",
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
"snowbridge-outbound-queue-v2-runtime-api/runtime-benchmarks",
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-v2-fixtures/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue-v2/runtime-benchmarks",
"snowbridge-pezpallet-inbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue-v2/runtime-benchmarks",
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
"snowbridge-pezpallet-system-v2/runtime-benchmarks",
"snowbridge-pezpallet-system/runtime-benchmarks",
"snowbridge-runtime-test-common/runtime-benchmarks",
"snowbridge-system-runtime-api/runtime-benchmarks",
"snowbridge-system-v2-runtime-api/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
"pezsp-genesis-builder/runtime-benchmarks",
"pezsp-inherents/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-offchain/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-session/runtime-benchmarks",
"pezsp-transaction-pool/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"bizinikiwi-wasm-builder?/runtime-benchmarks",
"testnet-teyrchains-constants/runtime-benchmarks",
"teyrchain-info/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-runtime-constants/runtime-benchmarks",
]
try-runtime = [
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezcumulus-pezpallet-weight-reclaim/try-runtime",
"pezcumulus-pezpallet-xcm/try-runtime",
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-authorship/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-bridge-grandpa/try-runtime",
"pezpallet-bridge-messages/try-runtime",
"pezpallet-bridge-relayers/try-runtime",
"pezpallet-bridge-teyrchains/try-runtime",
"pezpallet-collator-selection/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezpallet-multisig/try-runtime",
"pezpallet-session/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-xcm-bridge-hub/try-runtime",
"pezpallet-xcm/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"snowbridge-inbound-queue-primitives/try-runtime",
"snowbridge-pezpallet-ethereum-client/try-runtime",
"snowbridge-pezpallet-inbound-queue-v2/try-runtime",
"snowbridge-pezpallet-inbound-queue/try-runtime",
"snowbridge-pezpallet-outbound-queue-v2/try-runtime",
"snowbridge-pezpallet-outbound-queue/try-runtime",
"snowbridge-pezpallet-system-v2/try-runtime",
"snowbridge-pezpallet-system/try-runtime",
"pezsp-runtime/try-runtime",
"teyrchain-info/try-runtime",
"teyrchains-common/try-runtime",
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezcumulus-pezpallet-weight-reclaim/try-runtime",
"pezcumulus-pezpallet-xcm/try-runtime",
"pezcumulus-pezpallet-xcmp-queue/try-runtime",
"pezframe-executive/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezframe-try-runtime/try-runtime",
"pezpallet-aura/try-runtime",
"pezpallet-authorship/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-bridge-grandpa/try-runtime",
"pezpallet-bridge-messages/try-runtime",
"pezpallet-bridge-relayers/try-runtime",
"pezpallet-bridge-teyrchains/try-runtime",
"pezpallet-collator-selection/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezpallet-multisig/try-runtime",
"pezpallet-session/try-runtime",
"pezpallet-timestamp/try-runtime",
"pezpallet-transaction-payment/try-runtime",
"pezpallet-utility/try-runtime",
"pezpallet-xcm-bridge-hub/try-runtime",
"pezpallet-xcm/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"snowbridge-inbound-queue-primitives/try-runtime",
"snowbridge-pezpallet-ethereum-client/try-runtime",
"snowbridge-pezpallet-inbound-queue-v2/try-runtime",
"snowbridge-pezpallet-inbound-queue/try-runtime",
"snowbridge-pezpallet-outbound-queue-v2/try-runtime",
"snowbridge-pezpallet-outbound-queue/try-runtime",
"snowbridge-pezpallet-system-v2/try-runtime",
"snowbridge-pezpallet-system/try-runtime",
"pezsp-runtime/try-runtime",
"teyrchain-info/try-runtime",
"teyrchains-common/try-runtime",
]
# Enable the metadata hash generation in the wasm builder.
@@ -6,6 +6,8 @@ authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
repository.workspace = true
documentation = "https://docs.rs/bp-bridge-hub-zagros"
homepage = { workspace = true }
[package.metadata.pezkuwi-sdk]
exclude-from-umbrella = true
@@ -31,22 +33,22 @@ pezsp-std = { workspace = true }
[features]
default = ["std"]
std = [
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"bp-xcm-bridge-hub/std",
"codec/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-runtime/std",
"pezsp-std/std",
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"bp-xcm-bridge-hub/std",
"codec/std",
"pezframe-support/std",
"pezsp-api/std",
"pezsp-runtime/std",
"pezsp-std/std",
]
runtime-benchmarks = [
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -203,7 +203,7 @@ impl pezpallet_xcm_bridge_hub::LocalXcmChannelManager for CongestionManager {
// dispatched and sent to the sibling teyrchain. Therefore, checking outbound `XcmpQueue`
// is sufficient here.
use bp_xcm_bridge_hub_router::XcmChannelStatusProvider;
cumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
pezcumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
with,
)
}
@@ -17,7 +17,7 @@
use crate::*;
use alloc::{vec, vec::Vec};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::build_struct_json_patch;
use pezsp_genesis_builder::PresetId;
use pezsp_keyring::Sr25519Keyring;
@@ -40,8 +40,8 @@ use alloc::{vec, vec::Vec};
use bridge_runtime_common::extensions::{
CheckAndBoostBridgeGrandpaTransactions, CheckAndBoostBridgeTeyrchainsTransactions,
};
use cumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use cumulus_primitives_core::ParaId;
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_primitives_core::ParaId;
use pezsp_api::impl_runtime_apis;
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
use pezsp_runtime::{
@@ -117,7 +117,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
pub type BlockId = generic::BlockId<Block>;
/// The TransactionExtension to the basic transaction logic.
pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
(
@@ -147,8 +147,8 @@ pub type Migrations = (
pezpallet_multisig::migrations::v1::MigrateToV1<Runtime>,
InitStorageVersions,
// unreleased
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezpallet_bridge_messages::migration::v1::MigrationToV1<
Runtime,
bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance,
@@ -185,7 +185,7 @@ pub type Migrations = (
>,
// permanent
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
);
parameter_types! {
@@ -311,13 +311,13 @@ impl pezframe_system::Config for Runtime {
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
type SS58Prefix = SS58Prefix;
/// The action to take on a Runtime Upgrade
type OnSetCode = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
type SingleBlockMigrations = Migrations;
}
impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}
impl pezpallet_timestamp::Config for Runtime {
@@ -377,8 +377,8 @@ parameter_types! {
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
}
impl cumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = teyrchain_info::Pallet<Runtime>;
@@ -392,7 +392,7 @@ impl cumulus_pallet_teyrchain_system::Config for Runtime {
type RelayParentOffset = ConstU32<0>;
}
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
@@ -435,7 +435,7 @@ impl pezpallet_message_queue::Config for Runtime {
type IdleMaxServiceWeight = MessageQueueServiceWeight;
}
impl cumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
@@ -451,7 +451,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
XcmpQueue,
>;
impl cumulus_pallet_xcmp_queue::Config for Runtime {
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ChannelInfo = TeyrchainSystem;
type VersionWrapper = PezkuwiXcm;
@@ -463,11 +463,11 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
type ControllerOrigin = EnsureRoot<AccountId>;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
}
impl cumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
// This must be the same as the `ChannelInfo` from the `Config`:
type ChannelList = TeyrchainSystem;
}
@@ -558,10 +558,10 @@ construct_runtime!(
{
// System support stuff.
System: pezframe_system = 0,
TeyrchainSystem: cumulus_pallet_teyrchain_system = 1,
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
Timestamp: pezpallet_timestamp = 2,
TeyrchainInfo: teyrchain_info = 3,
WeightReclaim: cumulus_pallet_weight_reclaim = 4,
WeightReclaim: pezcumulus_pallet_weight_reclaim = 4,
// Monetary stuff.
Balances: pezpallet_balances = 10,
@@ -572,12 +572,12 @@ construct_runtime!(
CollatorSelection: pezpallet_collator_selection = 21,
Session: pezpallet_session = 22,
Aura: pezpallet_aura = 23,
AuraExt: cumulus_pallet_aura_ext = 24,
AuraExt: pezcumulus_pallet_aura_ext = 24,
// XCM helpers.
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
PezkuwiXcm: pezpallet_xcm = 31,
CumulusXcm: cumulus_pallet_xcm = 32,
CumulusXcm: pezcumulus_pallet_xcm = 32,
// Handy utilities.
Utility: pezpallet_utility = 40,
@@ -639,8 +639,8 @@ mod benches {
[pezpallet_timestamp, Timestamp]
[pezpallet_transaction_payment, TransactionPayment]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pallet_teyrchain_system, TeyrchainSystem]
[cumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
// XCM
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
// NOTE: Make sure you point to the individual modules below.
@@ -661,7 +661,7 @@ mod benches {
[snowbridge_pallet_inbound_queue_v2, EthereumInboundQueueV2]
[snowbridge_pallet_outbound_queue_v2, EthereumOutboundQueueV2]
[cumulus_pallet_weight_reclaim, WeightReclaim]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
);
}
@@ -676,16 +676,16 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
impl pezcumulus_primitives_core::RelayParentOffsetApi<Block> for Runtime {
fn relay_parent_offset() -> u32 {
0
}
}
impl cumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
impl pezcumulus_primitives_aura::AuraUnincludedSegmentApi<Block> for Runtime {
fn can_build_upon(
included_hash: <Block as BlockT>::Hash,
slot: cumulus_primitives_aura::Slot,
slot: pezcumulus_primitives_aura::Slot,
) -> bool {
ConsensusHook::can_build_upon(included_hash, slot)
}
@@ -885,8 +885,8 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {
impl pezcumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> pezcumulus_primitives_core::CollationInfo {
TeyrchainSystem::collect_collation_info(header)
}
}
@@ -1000,7 +1000,7 @@ impl_runtime_apis! {
use pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
// This is defined once again in dispatch_benchmark, because list_benchmarks!
@@ -1038,12 +1038,12 @@ impl_runtime_apis! {
}
fn verify_set_code() {
System::assert_last_event(cumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
}
}
use cumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl cumulus_pallet_session_benchmarking::Config for Runtime {}
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
use xcm::latest::prelude::*;
use xcm_config::ZagrosLocation;
@@ -1308,7 +1308,7 @@ impl_runtime_apis! {
fn prepare_message_proof(
params: MessageProofParams<LaneIdOf<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>>,
) -> (bridge_to_pezkuwichain_config::FromPezkuwichainBridgeHubMessagesProof<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>, Weight) {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
assert!(XcmpQueue::take_outbound_messages(usize::MAX).is_empty());
TeyrchainSystem::open_outbound_hrmp_channel_for_benchmarks_or_tests(42.into());
let universal_source = bridge_to_pezkuwichain_config::open_bridge_for_benchmarks::<
@@ -1339,7 +1339,7 @@ impl_runtime_apis! {
}
fn is_message_successfully_dispatched(_nonce: bp_messages::MessageNonce) -> bool {
use cumulus_primitives_core::XcmpMessageSource;
use pezcumulus_primitives_core::XcmpMessageSource;
!XcmpQueue::take_outbound_messages(usize::MAX).is_empty()
}
}
@@ -1433,22 +1433,22 @@ impl_runtime_apis! {
}
}
impl cumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
impl pezcumulus_primitives_core::GetTeyrchainInfo<Block> for Runtime {
fn teyrchain_id() -> ParaId {
TeyrchainInfo::teyrchain_id()
}
}
impl cumulus_primitives_core::TargetBlockRate<Block> for Runtime {
impl pezcumulus_primitives_core::TargetBlockRate<Block> for Runtime {
fn target_block_rate() -> u32 {
1
}
}
}
cumulus_pallet_teyrchain_system::register_validate_block! {
pezcumulus_pallet_teyrchain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}
#[cfg(test)]
@@ -23,9 +23,9 @@ use ::pezpallet_bridge_relayers::WeightInfo as _;
use ::pezpallet_bridge_teyrchains::WeightInfoExt as TeyrchainsWeightInfoExt;
pub mod block_weights;
pub mod cumulus_pallet_teyrchain_system;
pub mod cumulus_pallet_weight_reclaim;
pub mod cumulus_pallet_xcmp_queue;
pub mod pezcumulus_pallet_teyrchain_system;
pub mod pezcumulus_pallet_weight_reclaim;
pub mod pezcumulus_pallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod pezframe_system;
pub mod pezframe_system_extensions;
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
// --pallet=cumulus_pallet_teyrchain_system
// --pallet=pezcumulus_pallet_teyrchain_system
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_weight_reclaim`
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
// --pallet=cumulus_pallet_weight_reclaim
// --pallet=pezcumulus_pallet_weight_reclaim
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_weight_reclaim`.
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
fn storage_weight_reclaim() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -28,7 +28,7 @@
// pallet
// --extrinsic=*
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
// --pallet=cumulus_pallet_xcmp_queue
// --pallet=pezcumulus_pallet_xcmp_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
// --wasm-execution=compiled
@@ -47,9 +47,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
fn set_config_with_u32() -> Weight {
@@ -66,7 +66,7 @@ parameter_types! {
pub const RootLocation: Location = Location::here();
pub const ZagrosLocation: Location = Location::parent();
pub const RelayNetwork: NetworkId = NetworkId::ByGenesis(ZAGROS_GENESIS_HASH);
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorLocation =
[GlobalConsensus(RelayNetwork::get()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
pub const MaxInstructions: u32 = 100;
@@ -120,7 +120,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
// recognized.
SiblingTeyrchainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
// transaction from the Root origin.
ParentAsSuperuser<RuntimeOrigin>,
@@ -264,7 +264,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<RuntimeOrigin, AccountId, R
/// queues.
pub type XcmRouter = WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
pezcumulus_primitives_utility::ParentAsUmp<TeyrchainSystem, PezkuwiXcm, PriceForParentDelivery>,
// ..and XCMP to communicate with the sibling chains.
XcmpQueue,
)>;
@@ -314,7 +314,7 @@ impl pezpallet_xcm::Config for Runtime {
>;
}
impl cumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}
@@ -25,7 +25,7 @@ use bridge_hub_zagros_runtime::{
RuntimeCall, RuntimeEvent, SessionKeys, TxExtension, UncheckedExtrinsic,
};
use codec::{Decode, Encode};
use cumulus_primitives_core::XcmError::FailedToTransactAsset;
use pezcumulus_primitives_core::XcmError::FailedToTransactAsset;
use pezframe_support::parameter_types;
use snowbridge_pallet_ethereum_client::WeightInfo;
use pezsp_core::H160;
@@ -42,7 +42,7 @@ use bridge_to_pezkuwichain_config::{
WithBridgeHubPezkuwichainMessagesInstance, XcmOverBridgeHubPezkuwichainInstance,
};
use codec::{Decode, Encode};
use cumulus_primitives_core::UpwardMessageSender;
use pezcumulus_primitives_core::UpwardMessageSender;
use pezframe_support::{
assert_err, assert_ok,
dispatch::GetDispatchInfo,
@@ -7,6 +7,7 @@ description = "Bridge hub common utilities"
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/bridge-hub-common"
[lints]
workspace = true
@@ -28,26 +29,26 @@ xcm-executor = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezcumulus-primitives-core/std",
"pezframe-support/std",
"pezpallet-message-queue/std",
"scale-info/std",
"snowbridge-core/std",
"pezsp-core/std",
"pezsp-runtime/std",
"pezsp-std/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"codec/std",
"pezcumulus-primitives-core/std",
"pezframe-support/std",
"pezpallet-message-queue/std",
"scale-info/std",
"snowbridge-core/std",
"pezsp-core/std",
"pezsp-runtime/std",
"pezsp-std/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
]
runtime-benchmarks = [
"pezcumulus-primitives-core/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
@@ -14,7 +14,7 @@
// limitations under the License.
use core::{marker::PhantomData, ops::ControlFlow};
use cumulus_primitives_core::Weight;
use pezcumulus_primitives_core::Weight;
use pezframe_support::traits::{Contains, ProcessMessageError};
use xcm::prelude::{ExportMessage, Instruction, Location, NetworkId};
@@ -15,7 +15,7 @@
//! Runtime configuration for MessageQueue pallet
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use core::marker::PhantomData;
use cumulus_primitives_core::{AggregateMessageOrigin as CumulusAggregateMessageOrigin, ParaId};
use pezcumulus_primitives_core::{AggregateMessageOrigin as CumulusAggregateMessageOrigin, ParaId};
use pezframe_support::{
traits::{ProcessMessage, ProcessMessageError, QueueFootprint, QueuePausedQuery},
weights::WeightMeter,
@@ -7,6 +7,7 @@ description = "Utils for BridgeHub testing"
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/bridge-hub-test-utils"
[lints]
workspace = true
@@ -59,67 +60,67 @@ pezpallet-xcm-bridge-hub = { workspace = true }
[features]
default = ["std"]
std = [
"asset-test-utils/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-core/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-test-utils/std",
"bp-teyrchains/std",
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-timestamp/std",
"pezpallet-utility/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"pezsp-std/std",
"teyrchains-common/std",
"teyrchains-runtimes-test-utils/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"asset-test-utils/std",
"bp-header-chain/std",
"bp-messages/std",
"bp-pezkuwi-core/std",
"bp-relayers/std",
"bp-runtime/std",
"bp-test-utils/std",
"bp-teyrchains/std",
"codec/std",
"pezcumulus-pezpallet-teyrchain-system/std",
"pezcumulus-pezpallet-xcmp-queue/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezpallet-bridge-grandpa/std",
"pezpallet-bridge-messages/std",
"pezpallet-bridge-relayers/std",
"pezpallet-bridge-teyrchains/std",
"pezpallet-timestamp/std",
"pezpallet-utility/std",
"pezpallet-xcm-bridge-hub/std",
"pezpallet-xcm/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"pezsp-std/std",
"teyrchains-common/std",
"teyrchains-runtimes-test-utils/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
]
runtime-benchmarks = [
"asset-test-utils/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-test-utils/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
"asset-test-utils/runtime-benchmarks",
"bp-header-chain/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-pezkuwi-core/runtime-benchmarks",
"bp-relayers/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"bp-test-utils/runtime-benchmarks",
"bp-teyrchains/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-bridge-grandpa/runtime-benchmarks",
"pezpallet-bridge-messages/runtime-benchmarks",
"pezpallet-bridge-relayers/runtime-benchmarks",
"pezpallet-bridge-teyrchains/runtime-benchmarks",
"pezpallet-timestamp/runtime-benchmarks",
"pezpallet-utility/runtime-benchmarks",
"pezpallet-xcm-bridge-hub/runtime-benchmarks",
"pezpallet-xcm/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"teyrchains-common/runtime-benchmarks",
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
@@ -44,7 +44,7 @@ use xcm::latest::prelude::*;
pub trait WithRemoteGrandpaChainHelper {
/// This chain runtime.
type Runtime: BasicTeyrchainRuntime
+ cumulus_pallet_xcmp_queue::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ BridgeGrandpaConfig<Self::GPI, BridgedChain = BridgedChainOf<Self::Runtime, Self::MPI>>
+ BridgeMessagesConfig<
Self::MPI,
@@ -74,7 +74,7 @@ impl<Runtime, AllPalletsWithoutSystem, GPI, MPI, RPI> WithRemoteGrandpaChainHelp
for WithRemoteGrandpaChainHelperAdapter<Runtime, AllPalletsWithoutSystem, GPI, MPI, RPI>
where
Runtime: BasicTeyrchainRuntime
+ cumulus_pallet_xcmp_queue::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ BridgeGrandpaConfig<GPI, BridgedChain = BridgedChainOf<Runtime, MPI>>
+ BridgeMessagesConfig<
MPI,
@@ -46,7 +46,7 @@ use xcm::latest::prelude::*;
pub trait WithRemoteTeyrchainHelper {
/// This chain runtime.
type Runtime: BasicTeyrchainRuntime
+ cumulus_pallet_xcmp_queue::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ BridgeGrandpaConfig<Self::GPI>
+ BridgeTeyrchainsConfig<Self::PPI>
+ BridgeMessagesConfig<
@@ -79,7 +79,7 @@ impl<Runtime, AllPalletsWithoutSystem, GPI, PPI, MPI, RPI> WithRemoteTeyrchainHe
for WithRemoteTeyrchainHelperAdapter<Runtime, AllPalletsWithoutSystem, GPI, PPI, MPI, RPI>
where
Runtime: BasicTeyrchainRuntime
+ cumulus_pallet_xcmp_queue::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ BridgeGrandpaConfig<GPI>
+ BridgeTeyrchainsConfig<PPI>
+ BridgeMessagesConfig<
@@ -231,7 +231,7 @@ pub(crate) fn initialize_bridge_grandpa_pallet<Runtime, GPI>(
init_data: bp_header_chain::InitializationData<BridgedHeader<Runtime, GPI>>,
) where
Runtime: BridgeGrandpaConfig<GPI>
+ cumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezpallet_timestamp::Config,
{
pezpallet_bridge_grandpa::Pallet::<Runtime, GPI>::initialize(
@@ -274,7 +274,7 @@ pub fn relayed_incoming_message_works<Runtime, AllPalletsWithoutSystem, MPI>(
bp_runtime::ChainId,
) -> CallsAndVerifiers<Runtime>,
) where
Runtime: BasicTeyrchainRuntime + cumulus_pallet_xcmp_queue::Config + BridgeMessagesConfig<MPI>,
Runtime: BasicTeyrchainRuntime + pezcumulus_pallet_xcmp_queue::Config + BridgeMessagesConfig<MPI>,
AllPalletsWithoutSystem:
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
MPI: 'static,
@@ -307,7 +307,7 @@ pub fn relayed_incoming_message_works<Runtime, AllPalletsWithoutSystem, MPI>(
2,
AccountId::from(alice).into(),
);
mock_open_hrmp_channel::<Runtime, cumulus_pallet_teyrchain_system::Pallet<Runtime>>(
mock_open_hrmp_channel::<Runtime, pezcumulus_pallet_teyrchain_system::Pallet<Runtime>>(
runtime_para_id.into(),
sibling_teyrchain_id.into(),
included_head,
@@ -351,7 +351,7 @@ pub fn relayed_incoming_message_works<Runtime, AllPalletsWithoutSystem, MPI>(
// verify that imported XCM contains original message
let imported_xcm =
RuntimeHelper::<cumulus_pallet_xcmp_queue::Pallet<Runtime>>::take_xcm(
RuntimeHelper::<pezcumulus_pallet_xcmp_queue::Pallet<Runtime>>::take_xcm(
sibling_teyrchain_id.into(),
)
.unwrap();
@@ -473,7 +473,7 @@ pub(crate) mod for_pallet_xcm_bridge_hub {
) where
Runtime: pezframe_system::Config
+ pezpallet_xcm_bridge_hub::Config<XcmOverBridgePalletInstance>
+ cumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezpallet_xcm::Config,
XcmOverBridgePalletInstance: 'static,
<Runtime as pezframe_system::Config>::RuntimeCall:
@@ -432,16 +432,16 @@ pub fn message_dispatch_routing_works<
slot_durations: SlotDurations,
runtime_para_id: u32,
sibling_teyrchain_id: u32,
unwrap_cumulus_pallet_teyrchain_system_event: Box<
dyn Fn(Vec<u8>) -> Option<cumulus_pallet_teyrchain_system::Event<Runtime>>,
unwrap_pezcumulus_pallet_teyrchain_system_event: Box<
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_teyrchain_system::Event<Runtime>>,
>,
unwrap_cumulus_pallet_xcmp_queue_event: Box<
dyn Fn(Vec<u8>) -> Option<cumulus_pallet_xcmp_queue::Event<Runtime>>,
unwrap_pezcumulus_pallet_xcmp_queue_event: Box<
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
>,
prepare_configuration: impl Fn(),
) where
Runtime: BasicTeyrchainRuntime
+ cumulus_pallet_xcmp_queue::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ BridgeMessagesConfig<MessagesPalletInstance, InboundPayload = test_data::XcmAsPlainPayload>,
AllPalletsWithoutSystem:
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
@@ -450,7 +450,7 @@ pub fn message_dispatch_routing_works<
XcmConfig: xcm_executor::Config,
MessagesPalletInstance: 'static,
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
Call = cumulus_pallet_teyrchain_system::Call<Runtime>,
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
>,
RuntimeNetwork: Get<NetworkId>,
BridgedNetwork: Get<NetworkId>,
@@ -501,10 +501,10 @@ pub fn message_dispatch_routing_works<
// check events - UpwardMessageSent
let mut events = <pezframe_system::Pallet<Runtime>>::events()
.into_iter()
.filter_map(|e| unwrap_cumulus_pallet_teyrchain_system_event(e.event.encode()));
.filter_map(|e| unwrap_pezcumulus_pallet_teyrchain_system_event(e.event.encode()));
assert!(events.any(|e| matches!(
e,
cumulus_pallet_teyrchain_system::Event::UpwardMessageSent { .. }
pezcumulus_pallet_teyrchain_system::Event::UpwardMessageSent { .. }
)));
// 2. this message is sent from other global consensus with destination of this Runtime
@@ -536,7 +536,7 @@ pub fn message_dispatch_routing_works<
assert_eq!(
<pezframe_system::Pallet<Runtime>>::events()
.into_iter()
.filter_map(|e| unwrap_cumulus_pallet_xcmp_queue_event(e.event.encode()))
.filter_map(|e| unwrap_pezcumulus_pallet_xcmp_queue_event(e.event.encode()))
.count(),
0
);
@@ -564,9 +564,9 @@ pub fn message_dispatch_routing_works<
// check events - XcmpMessageSent
let mut events = <pezframe_system::Pallet<Runtime>>::events()
.into_iter()
.filter_map(|e| unwrap_cumulus_pallet_xcmp_queue_event(e.event.encode()));
.filter_map(|e| unwrap_pezcumulus_pallet_xcmp_queue_event(e.event.encode()));
assert!(
events.any(|e| matches!(e, cumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }))
events.any(|e| matches!(e, pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { .. }))
);
})
}