Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
@@ -101,7 +101,7 @@ pezkuwichain-runtime-constants = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
xcm-runtime-apis = { workspace = true }
xcm-runtime-pezapis = { workspace = true }
# Pezcumulus
assets-common = { workspace = true }
@@ -127,7 +127,7 @@ bp-bridge-hub-zagros = { workspace = true }
pezpallet-xcm-bridge-hub-router = { workspace = true }
[dev-dependencies]
asset-test-utils = { workspace = true, default-features = true }
asset-test-pezutils = { workspace = true, default-features = true }
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
[build-dependencies]
@@ -137,7 +137,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
default = ["std"]
fast-runtime = []
runtime-benchmarks = [
"asset-test-utils/runtime-benchmarks",
"asset-test-pezutils/runtime-benchmarks",
"assets-common/runtime-benchmarks",
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
@@ -225,11 +225,11 @@ runtime-benchmarks = [
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
try-runtime = [
"asset-test-utils/try-runtime",
"asset-test-pezutils/try-runtime",
"assets-common/try-runtime",
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
@@ -379,7 +379,7 @@ std = [
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm-runtime-pezapis/std",
"xcm/std",
]
@@ -27,7 +27,7 @@ pezsp-core = { workspace = true }
# Bridge Dependencies
bp-bridge-hub-pezcumulus = { workspace = true }
bp-messages = { workspace = true }
bp-runtime = { workspace = true }
pezbp-runtime = { workspace = true }
bp-xcm-bridge-hub-router = { workspace = true }
testnet-teyrchains-constants = { features = ["pezkuwichain"], workspace = true }
@@ -39,7 +39,7 @@ default = ["std"]
std = [
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"pezbp-runtime/std",
"bp-xcm-bridge-hub-router/std",
"codec/std",
"pezframe-support/std",
@@ -52,7 +52,7 @@ std = [
runtime-benchmarks = [
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
@@ -22,9 +22,9 @@ extern crate alloc;
use codec::{Decode, Encode};
use scale_info::TypeInfo;
pub use bp_bridge_hub_cumulus::*;
pub use bp_bridge_hub_pezcumulus::*;
use bp_messages::*;
use bp_runtime::{
use pezbp_runtime::{
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
};
pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
@@ -43,7 +43,7 @@ use assets_common::{
AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert,
};
use bp_asset_hub_pezkuwichain::CreateForeignAssetDeposit;
use pezcumulus_pallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
use pezcumulus_pezpallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
use pezcumulus_primitives_core::AggregateMessageOrigin;
use pezsp_api::impl_runtime_apis;
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
@@ -116,7 +116,7 @@ use xcm::{
Version as XcmVersion, VersionedAsset, VersionedAssetId, VersionedAssets, VersionedLocation,
VersionedXcm,
};
use xcm_runtime_apis::{
use xcm_runtime_pezapis::{
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
fees::Error as XcmPaymentApiError,
};
@@ -190,13 +190,13 @@ impl pezframe_system::Config for Runtime {
type SystemWeightInfo = weights::pezframe_system::WeightInfo<Runtime>;
type ExtensionsWeightInfo = weights::pezframe_system_extensions::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
type SingleBlockMigrations = Migrations;
}
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
}
impl pezpallet_timestamp::Config for Runtime {
@@ -737,8 +737,8 @@ parameter_types! {
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
}
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = teyrchain_info::Pallet<Runtime>;
@@ -752,7 +752,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type RelayParentOffset = ConstU32<0>;
}
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
@@ -788,7 +788,7 @@ impl pezpallet_message_queue::Config for Runtime {
impl teyrchain_info::Config for Runtime {}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
@@ -804,8 +804,8 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
XcmpQueue,
>;
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type ChannelInfo = TeyrchainSystem;
type VersionWrapper = PezkuwiXcm;
@@ -820,7 +820,7 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
}
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
// This must be the same as the `ChannelInfo` from the `Config`:
type ChannelList = TeyrchainSystem;
}
@@ -1021,7 +1021,7 @@ impl pezpallet_xcm_bridge_hub_router::Config<ToZagrosXcmRouterInstance> for Runt
>;
type ToBridgeHubSender = XcmpQueue;
type LocalXcmChannelManager =
pezcumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
pezcumulus_pezpallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee;
type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId;
@@ -1301,10 +1301,10 @@ construct_runtime!(
{
// System support stuff.
System: pezframe_system = 0,
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
Timestamp: pezpallet_timestamp = 3,
TeyrchainInfo: teyrchain_info = 4,
WeightReclaim: pezcumulus_pallet_weight_reclaim = 5,
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 5,
// Monetary stuff.
Balances: pezpallet_balances = 10,
@@ -1316,12 +1316,12 @@ construct_runtime!(
CollatorSelection: pezpallet_collator_selection = 21,
Session: pezpallet_session = 22,
Aura: pezpallet_aura = 23,
AuraExt: pezcumulus_pallet_aura_ext = 24,
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
// XCM helpers.
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
PezkuwiXcm: pezpallet_xcm = 31,
CumulusXcm: pezcumulus_pallet_xcm = 32,
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
MessageQueue: pezpallet_message_queue = 34,
// Handy utilities.
@@ -1386,7 +1386,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
/// BlockId type as expected by this runtime.
pub type BlockId = generic::BlockId<Block>;
/// The extension to the basic transaction logic.
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::AuthorizeCall<Runtime>,
@@ -1408,8 +1408,8 @@ pub type UncheckedExtrinsic =
pub type Migrations = (
InitStorageVersions,
// unreleased
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezpallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
pezframe_support::migrations::RemovePallet<StateTrieMigrationName, RocksDbWeight>,
// unreleased
@@ -1424,7 +1424,7 @@ pub type Migrations = (
>,
// permanent
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
);
parameter_types! {
@@ -1580,8 +1580,8 @@ mod benches {
[pezpallet_timestamp, Timestamp]
[pezpallet_transaction_payment, TransactionPayment]
[pezpallet_collator_selection, CollatorSelection]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezpallet_xcm_bridge_hub_router, ToZagros]
[pezpallet_asset_conversion_ops, AssetConversionMigration]
// XCM
@@ -1589,7 +1589,7 @@ mod benches {
// NOTE: Make sure you point to the individual modules below.
[pezpallet_xcm_benchmarks::fungible, XcmBalances]
[pezpallet_xcm_benchmarks::generic, XcmGeneric]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
// PezkuwiChain Custom Pallets
[pezpallet_pez_treasury, PezTreasury]
[pezpallet_presale, Presale]
@@ -1807,7 +1807,7 @@ impl_runtime_apis! {
}
}
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
let native_token = xcm_config::TokenLocation::get();
// We accept the native token to pay fees.
@@ -1835,7 +1835,7 @@ impl_runtime_apis! {
}
}
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
}
@@ -1845,12 +1845,12 @@ impl_runtime_apis! {
}
}
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
fn convert_location(location: VersionedLocation) -> Result<
AccountId,
xcm_runtime_apis::conversions::Error
xcm_runtime_pezapis::conversions::Error
> {
xcm_runtime_apis::conversions::LocationToAccountHelper::<
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
AccountId,
xcm_config::LocationToAccountId,
>::convert_location(location)
@@ -1898,7 +1898,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 pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use pezpallet_xcm_bridge_hub_router::benchmarking::Pallet as XcmBridgeHubRouterBench;
@@ -1942,12 +1942,12 @@ impl_runtime_apis! {
}
fn verify_set_code() {
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
}
}
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
use pezpallet_xcm_bridge_hub_router::benchmarking::{
Pallet as XcmBridgeHubRouterBench,
@@ -2097,7 +2097,7 @@ impl_runtime_apis! {
impl XcmBridgeHubRouterConfig<ToZagrosXcmRouterInstance> for Runtime {
fn make_congested() {
pezcumulus_pallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
pezcumulus_pezpallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
xcm_config::bridging::SiblingBridgeHubParaId::get().into()
);
}
@@ -2306,11 +2306,11 @@ impl_runtime_apis! {
}
}
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
PezkuwiXcm::is_trusted_reserve(asset, location)
}
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
PezkuwiXcm::is_trusted_teleporter(asset, location)
}
}
@@ -2327,23 +2327,23 @@ impl_runtime_apis! {
}
}
impl xcm_runtime_apis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
impl xcm_runtime_pezapis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
fn authorized_aliasers(target: VersionedLocation) -> Result<
Vec<xcm_runtime_apis::authorized_aliases::OriginAliaser>,
xcm_runtime_apis::authorized_aliases::Error
Vec<xcm_runtime_pezapis::authorized_aliases::OriginAliaser>,
xcm_runtime_pezapis::authorized_aliases::Error
> {
PezkuwiXcm::authorized_aliasers(target)
}
fn is_authorized_alias(origin: VersionedLocation, target: VersionedLocation) -> Result<
bool,
xcm_runtime_apis::authorized_aliases::Error
xcm_runtime_pezapis::authorized_aliases::Error
> {
PezkuwiXcm::is_authorized_alias(origin, target)
}
}
}
pezcumulus_pallet_teyrchain_system::register_validate_block! {
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}
@@ -15,9 +15,9 @@
// limitations under the License.
pub mod block_weights;
pub mod pezcumulus_pallet_teyrchain_system;
pub mod pezcumulus_pallet_weight_reclaim;
pub mod pezcumulus_pallet_xcmp_queue;
pub mod pezcumulus_pezpallet_teyrchain_system;
pub mod pezcumulus_pezpallet_weight_reclaim;
pub mod pezcumulus_pezpallet_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 `pezcumulus_pallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezcumulus_pallet_teyrchain_system
// --pallet=pezcumulus_pezpallet_teyrchain_system
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 `pezcumulus_pallet_weight_reclaim`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezcumulus_pallet_weight_reclaim
// --pallet=pezcumulus_pezpallet_weight_reclaim
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_weight_reclaim`.
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 `pezcumulus_pallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezcumulus_pallet_xcmp_queue
// --pallet=pezcumulus_pezpallet_xcmp_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 {
@@ -73,7 +73,7 @@ parameter_types! {
pub const TokenLocation: Location = Location::parent();
pub const RelayNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
pub const AssetHubParaId: crate::ParaId = crate::ParaId::new(ASSET_HUB_ID);
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorLocation =
[GlobalConsensus(RelayNetwork::get()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
pub UniversalLocationNetworkId: NetworkId = UniversalLocation::get().global_consensus().unwrap();
@@ -235,7 +235,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
// recognised.
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrchainAsNative<pezcumulus_pezpallet_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>,
@@ -490,7 +490,7 @@ impl pezpallet_xcm::Config for Runtime {
>;
}
impl pezcumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pezpallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}
@@ -28,7 +28,7 @@ use asset_hub_pezkuwichain_runtime::{
MetadataDepositBase, MetadataDepositPerByte, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin,
SessionKeys, TeyrchainSystem, ToZagrosXcmRouterInstance, TrustBackedAssetsInstance, XcmpQueue,
};
use asset_test_utils::{
use asset_test_pezutils::{
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
ExtBuilder, GovernanceOrigin, SlotDurations,
};
@@ -56,7 +56,7 @@ use xcm::latest::{
};
use xcm_builder::WithLatestLocationConverter;
use xcm_executor::traits::{JustTry, WeightTrader};
use xcm_runtime_apis::conversions::LocationToAccountHelper;
use xcm_runtime_pezapis::conversions::LocationToAccountHelper;
const ALICE: [u8; 32] = [1u8; 32];
const SOME_ASSET_ADMIN: [u8; 32] = [5u8; 32];
@@ -68,7 +68,7 @@ parameter_types! {
type AssetIdForTrustBackedAssetsConvert =
assets_common::AssetIdForTrustBackedAssetsConvert<TrustBackedAssetsPalletLocation>;
type RuntimeHelper = asset_test_utils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
type RuntimeHelper = asset_test_pezutils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
fn collator_session_key(account: [u8; 32]) -> CollatorSessionKey<Runtime> {
CollatorSessionKey::new(
@@ -574,7 +574,7 @@ fn test_assets_balances_api_works() {
});
}
asset_test_utils::include_teleports_for_native_asset_works!(
asset_test_pezutils::include_teleports_for_native_asset_works!(
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -593,7 +593,7 @@ asset_test_utils::include_teleports_for_native_asset_works!(
1000
);
asset_test_utils::include_teleports_for_foreign_assets_works!(
asset_test_pezutils::include_teleports_for_foreign_assets_works!(
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -619,7 +619,7 @@ asset_test_utils::include_teleports_for_foreign_assets_works!(
})
);
asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
Runtime,
XcmConfig,
collator_session_keys(),
@@ -634,7 +634,7 @@ asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currenc
})
);
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_transactor_transfer_with_trust_backed_assets_works,
Runtime,
XcmConfig,
@@ -652,7 +652,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
})
);
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_transactor_transfer_with_foreign_assets_works,
Runtime,
XcmConfig,
@@ -670,7 +670,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
})
);
asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
asset_test_pezutils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
Runtime,
XcmConfig,
WeightToFee,
@@ -703,7 +703,7 @@ asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_t
fn limited_reserve_transfer_assets_for_native_asset_over_bridge_works(
bridging_configuration: fn() -> TestBridgingConfig,
) {
asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
asset_test_pezutils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -790,7 +790,7 @@ mod asset_hub_pezkuwichain_tests {
foreign_asset_id_minimum_balance,
);
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -805,7 +805,7 @@ mod asset_hub_pezkuwichain_tests {
1000000000000,
|| {
// setup pool for paying fees to touch `SwapFirstAssetTrader`
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
// staking pot account for collecting local native fees from `BuyExecution`
let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get());
// prepare bridge configuration
@@ -874,7 +874,7 @@ mod asset_hub_pezkuwichain_tests {
foreign_asset_id_minimum_balance,
);
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -888,7 +888,7 @@ mod asset_hub_pezkuwichain_tests {
foreign_asset_create_params,
1000000000000,
|| {
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
bridging_to_asset_hub_zagros()
},
(
@@ -923,7 +923,7 @@ mod asset_hub_pezkuwichain_tests {
#[test]
fn report_bridge_status_from_xcm_bridge_router_for_zagros_works() {
asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
asset_test_pezutils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -978,7 +978,7 @@ mod asset_hub_pezkuwichain_tests {
#[test]
fn reserve_transfer_native_asset_to_non_teleport_para_works() {
asset_test_utils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
asset_test_pezutils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1009,7 +1009,7 @@ mod asset_hub_pezkuwichain_tests {
#[test]
fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::XcmBridgeHubRouterByteFee,
Balance,
@@ -1035,7 +1035,7 @@ fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
#[test]
fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::XcmBridgeHubRouterBaseFee,
Balance,
@@ -1067,7 +1067,7 @@ fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
#[test]
fn change_xcm_bridge_hub_ethereum_base_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::to_ethereum::BridgeHubEthereumBaseFee,
Balance,
@@ -1338,7 +1338,7 @@ fn xcm_payment_api_works() {
Block,
WeightToFee,
>();
asset_test_utils::test_cases::xcm_payment_api_with_pools_works::<
asset_test_pezutils::test_cases::xcm_payment_api_with_pools_works::<
Runtime,
RuntimeCall,
RuntimeOrigin,
@@ -1346,7 +1346,7 @@ fn xcm_payment_api_works() {
WeightToFee,
>();
asset_test_utils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
asset_test_pezutils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
Runtime,
RuntimeCall,
RuntimeOrigin,
@@ -110,7 +110,7 @@ pezkuwi-teyrchain-primitives = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
xcm-runtime-apis = { workspace = true }
xcm-runtime-pezapis = { workspace = true }
zagros-runtime-constants = { workspace = true }
# Pezcumulus
@@ -136,13 +136,13 @@ bp-asset-hub-zagros = { workspace = true }
bp-bridge-hub-pezkuwichain = { workspace = true }
bp-bridge-hub-zagros = { workspace = true }
pezpallet-xcm-bridge-hub-router = { workspace = true }
snowbridge-outbound-queue-primitives = { workspace = true }
pezsnowbridge-outbound-queue-primitives = { workspace = true }
snowbridge-pezpallet-system-frontend = { workspace = true }
snowbridge-runtime-common = { workspace = true }
snowpezbridge-runtime-common = { workspace = true }
[dev-dependencies]
alloy-core = { workspace = true, features = ["sol-types"] }
asset-test-utils = { workspace = true, default-features = true }
asset-test-pezutils = { workspace = true, default-features = true }
pezpallet-revive-fixtures = { workspace = true, default-features = true }
pezsp-tracing = { workspace = true, default-features = true }
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
@@ -153,7 +153,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
[features]
default = ["std"]
runtime-benchmarks = [
"asset-test-utils/runtime-benchmarks",
"asset-test-pezutils/runtime-benchmarks",
"assets-common/runtime-benchmarks",
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
"bp-asset-hub-zagros/runtime-benchmarks",
@@ -230,9 +230,9 @@ runtime-benchmarks = [
"pezpallet-xcm/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
"pezsnowbridge-outbound-queue-primitives/runtime-benchmarks",
"snowbridge-pezpallet-system-frontend/runtime-benchmarks",
"snowbridge-runtime-common/runtime-benchmarks",
"snowpezbridge-runtime-common/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
"pezsp-block-builder/runtime-benchmarks",
"pezsp-consensus-aura/runtime-benchmarks",
@@ -254,12 +254,12 @@ runtime-benchmarks = [
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
"zagros-runtime-constants/runtime-benchmarks",
]
try-runtime = [
"asset-test-utils/try-runtime",
"asset-test-pezutils/try-runtime",
"assets-common/try-runtime",
"pezcumulus-pezpallet-aura-ext/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
@@ -319,7 +319,7 @@ try-runtime = [
"pezpallet-xcm/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"snowbridge-pezpallet-system-frontend/try-runtime",
"snowbridge-runtime-common/try-runtime",
"snowpezbridge-runtime-common/try-runtime",
"pezsp-runtime/try-runtime",
"teyrchain-info/try-runtime",
"teyrchains-common/try-runtime",
@@ -407,9 +407,9 @@ std = [
"primitive-types/std",
"scale-info/std",
"serde_json/std",
"snowbridge-outbound-queue-primitives/std",
"pezsnowbridge-outbound-queue-primitives/std",
"snowbridge-pezpallet-system-frontend/std",
"snowbridge-runtime-common/std",
"snowpezbridge-runtime-common/std",
"pezsp-api/std",
"pezsp-arithmetic/std",
"pezsp-block-builder/std",
@@ -435,7 +435,7 @@ std = [
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm-runtime-pezapis/std",
"xcm/std",
"zagros-runtime-constants/std",
]
@@ -27,7 +27,7 @@ pezsp-core = { workspace = true }
# Bridge Dependencies
bp-bridge-hub-pezcumulus = { workspace = true }
bp-messages = { workspace = true }
bp-runtime = { workspace = true }
pezbp-runtime = { workspace = true }
bp-xcm-bridge-hub-router = { workspace = true }
testnet-teyrchains-constants = { features = ["zagros"], workspace = true }
@@ -39,7 +39,7 @@ default = ["std"]
std = [
"bp-bridge-hub-pezcumulus/std",
"bp-messages/std",
"bp-runtime/std",
"pezbp-runtime/std",
"bp-xcm-bridge-hub-router/std",
"codec/std",
"pezframe-support/std",
@@ -52,7 +52,7 @@ std = [
runtime-benchmarks = [
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
"bp-messages/runtime-benchmarks",
"bp-runtime/runtime-benchmarks",
"pezbp-runtime/runtime-benchmarks",
"bp-xcm-bridge-hub-router/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezsp-api/runtime-benchmarks",
@@ -19,9 +19,9 @@
extern crate alloc;
pub use bp_bridge_hub_cumulus::*;
pub use bp_bridge_hub_pezcumulus::*;
use bp_messages::*;
use bp_runtime::{
use pezbp_runtime::{
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
};
pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
@@ -26,7 +26,7 @@ use crate::{
use assets_common::{matching::FromSiblingTeyrchain, AssetIdForTrustBackedAssetsConvert};
use pezframe_support::{parameter_types, traits::EitherOf};
use pezframe_system::EnsureRootWithSuccess;
use snowbridge_runtime_common::{ForeignAssetOwner, LocalAssetOwner};
use snowpezbridge_runtime_common::{ForeignAssetOwner, LocalAssetOwner};
use testnet_teyrchains_constants::zagros::snowbridge::{EthereumNetwork, FRONTEND_PALLET_INDEX};
use teyrchains_common::AssetIdForTrustBackedAssets;
use xcm::prelude::{InteriorLocation, Location, PalletInstance};
@@ -42,9 +42,9 @@ parameter_types! {
pub SystemFrontendPalletLocation: InteriorLocation = [PalletInstance(FRONTEND_PALLET_INDEX)].into();
}
impl snowbridge_pallet_system_frontend::Config for Runtime {
impl snowbridge_pezpallet_system_frontend::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = weights::snowbridge_pallet_system_frontend::WeightInfo<Runtime>;
type WeightInfo = weights::snowbridge_pezpallet_system_frontend::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type Helper = ();
type RegisterTokenOrigin = EitherOf<
@@ -80,7 +80,7 @@ impl snowbridge_pallet_system_frontend::Config for Runtime {
type UniversalLocation = UniversalLocation;
type PalletLocation = SystemFrontendPalletLocation;
type Swap = AssetConversion;
type BackendWeightInfo = weights::snowbridge_pallet_system_backend::WeightInfo<Runtime>;
type BackendWeightInfo = weights::snowbridge_pezpallet_system_backend::WeightInfo<Runtime>;
type AccountIdConverter = xcm_config::LocationToAccountId;
}
@@ -125,7 +125,7 @@ pub mod benchmark_helpers {
}
}
impl snowbridge_pallet_system_frontend::BenchmarkHelper<RuntimeOrigin, AccountId> for () {
impl snowbridge_pezpallet_system_frontend::BenchmarkHelper<RuntimeOrigin, AccountId> for () {
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
RuntimeOrigin::from(pezpallet_xcm::Origin::Xcm(location))
}
@@ -48,7 +48,7 @@ use assets_common::{
};
use bp_asset_hub_zagros::CreateForeignAssetDeposit;
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use pezcumulus_pallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
use pezcumulus_pezpallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
use pezcumulus_primitives_core::{relay_chain::AccountIndex, AggregateMessageOrigin, ParaId};
use pezframe_support::{
construct_runtime, derive_impl,
@@ -119,7 +119,7 @@ use xcm::{
XcmVersion,
},
};
use xcm_runtime_apis::{
use xcm_runtime_pezapis::{
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
fees::Error as XcmPaymentApiError,
};
@@ -201,14 +201,14 @@ impl pezframe_system::Config for Runtime {
type SystemWeightInfo = weights::pezframe_system::WeightInfo<Runtime>;
type ExtensionsWeightInfo = weights::pezframe_system_extensions::WeightInfo<Runtime>;
type SS58Prefix = SS58Prefix;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
type MultiBlockMigrator = MultiBlockMigrations;
type SingleBlockMigrations = Migrations;
}
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
}
impl pezpallet_timestamp::Config for Runtime {
@@ -890,8 +890,8 @@ parameter_types! {
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
}
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = teyrchain_info::Pallet<Runtime>;
@@ -905,7 +905,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type RelayParentOffset = ConstU32<0>;
}
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PROCESSING_VELOCITY,
@@ -941,7 +941,7 @@ impl pezpallet_message_queue::Config for Runtime {
type IdleMaxServiceWeight = MessageQueueServiceWeight;
}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
@@ -957,7 +957,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
XcmpQueue,
>;
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ChannelInfo = TeyrchainSystem;
type VersionWrapper = PezkuwiXcm;
@@ -970,11 +970,11 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
type ControllerOrigin = EnsureRoot<AccountId>;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
}
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
// This must be the same as the `ChannelInfo` from the `Config`:
type ChannelList = TeyrchainSystem;
}
@@ -1169,7 +1169,7 @@ impl pezpallet_xcm_bridge_hub_router::Config<ToPezkuwichainXcmRouterInstance> fo
>;
type ToBridgeHubSender = XcmpQueue;
type LocalXcmChannelManager =
pezcumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
pezcumulus_pezpallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee;
type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId;
@@ -1308,11 +1308,11 @@ construct_runtime!(
{
// System support stuff.
System: pezframe_system = 0,
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
// RandomnessCollectiveFlip = 2 removed
Timestamp: pezpallet_timestamp = 3,
TeyrchainInfo: teyrchain_info = 4,
WeightReclaim: pezcumulus_pallet_weight_reclaim = 5,
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 5,
MultiBlockMigrations: pezpallet_migrations = 6,
Preimage: pezpallet_preimage = 7,
Scheduler: pezpallet_scheduler = 8,
@@ -1330,17 +1330,17 @@ construct_runtime!(
CollatorSelection: pezpallet_collator_selection = 21,
Session: pezpallet_session = 22,
Aura: pezpallet_aura = 23,
AuraExt: pezcumulus_pallet_aura_ext = 24,
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
// XCM helpers.
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
PezkuwiXcm: pezpallet_xcm = 31,
CumulusXcm: pezcumulus_pallet_xcm = 32,
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
// Bridge utilities.
ToPezkuwichainXcmRouter: pezpallet_xcm_bridge_hub_router::<Instance1> = 34,
MessageQueue: pezpallet_message_queue = 35,
// Snowbridge
SnowbridgeSystemFrontend: snowbridge_pallet_system_frontend = 36,
SnowbridgeSystemFrontend: snowbridge_pezpallet_system_frontend = 36,
// Handy utilities.
Utility: pezpallet_utility = 40,
@@ -1406,7 +1406,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
/// BlockId type as expected by this runtime.
pub type BlockId = generic::BlockId<Block>;
/// The extension to the basic transaction logic.
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::AuthorizeCall<Runtime>,
@@ -1466,8 +1466,8 @@ pub type Migrations = (
// unreleased
DeleteUndecodableStorage,
// unreleased
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
// unreleased
pezpallet_assets::migration::next_asset_id::SetNextAssetId<
ConstU32<50_000_000>,
@@ -1484,7 +1484,7 @@ pub type Migrations = (
>,
// permanent
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
);
/// Asset Hub Zagros has some undecodable storage, delete it.
@@ -1701,8 +1701,8 @@ mod benches {
[pezpallet_timestamp, Timestamp]
[pezpallet_transaction_payment, TransactionPayment]
[pezpallet_collator_selection, CollatorSelection]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezpallet_treasury, Treasury]
[pezpallet_vesting, Vesting]
[pezpallet_whitelist, Whitelist]
@@ -1714,8 +1714,8 @@ mod benches {
// NOTE: Make sure you point to the individual modules below.
[pezpallet_xcm_benchmarks::fungible, XcmBalances]
[pezpallet_xcm_benchmarks::generic, XcmGeneric]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
[snowbridge_pallet_system_frontend, SnowbridgeSystemFrontend]
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
[snowbridge_pezpallet_system_frontend, SnowbridgeSystemFrontend]
);
}
@@ -1929,7 +1929,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
}
}
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
let native_token = xcm_config::ZagrosLocation::get();
// We accept the native token to pay fees.
@@ -1957,7 +1957,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
}
}
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
}
@@ -1967,37 +1967,37 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
}
}
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
fn convert_location(location: VersionedLocation) -> Result<
AccountId,
xcm_runtime_apis::conversions::Error
xcm_runtime_pezapis::conversions::Error
> {
xcm_runtime_apis::conversions::LocationToAccountHelper::<
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
AccountId,
xcm_config::LocationToAccountId,
>::convert_location(location)
}
}
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
PezkuwiXcm::is_trusted_reserve(asset, location)
}
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
PezkuwiXcm::is_trusted_teleporter(asset, location)
}
}
impl xcm_runtime_apis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
impl xcm_runtime_pezapis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
fn authorized_aliasers(target: VersionedLocation) -> Result<
Vec<xcm_runtime_apis::authorized_aliases::OriginAliaser>,
xcm_runtime_apis::authorized_aliases::Error
Vec<xcm_runtime_pezapis::authorized_aliases::OriginAliaser>,
xcm_runtime_pezapis::authorized_aliases::Error
> {
PezkuwiXcm::authorized_aliasers(target)
}
fn is_authorized_alias(origin: VersionedLocation, target: VersionedLocation) -> Result<
bool,
xcm_runtime_apis::authorized_aliases::Error
xcm_runtime_pezapis::authorized_aliases::Error
> {
PezkuwiXcm::is_authorized_alias(origin, target)
}
@@ -2168,7 +2168,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
use pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use pezpallet_xcm_bridge_hub_router::benchmarking::Pallet as XcmBridgeHubRouterBench;
@@ -2211,14 +2211,14 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
}
fn verify_set_code() {
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
}
}
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
use xcm_config::{MaxAssetsIntoHolding, ZagrosLocation};
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
use testnet_teyrchains_constants::zagros::locations::{PeopleParaId, PeopleLocation};
parameter_types! {
pub ExistentialDepositAsset: Option<Asset> = Some((
@@ -2370,7 +2370,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
impl XcmBridgeHubRouterConfig<ToPezkuwichainXcmRouterInstance> for Runtime {
fn make_congested() {
pezcumulus_pallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
pezcumulus_pezpallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
xcm_config::bridging::SiblingBridgeHubParaId::get().into()
);
}
@@ -2645,9 +2645,9 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
}
);
pezcumulus_pallet_teyrchain_system::register_validate_block! {
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
Runtime = Runtime,
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
}
parameter_types! {
@@ -14,9 +14,9 @@
// limitations under the License.
pub mod block_weights;
pub mod pezcumulus_pallet_teyrchain_system;
pub mod pezcumulus_pallet_weight_reclaim;
pub mod pezcumulus_pallet_xcmp_queue;
pub mod pezcumulus_pezpallet_teyrchain_system;
pub mod pezcumulus_pezpallet_weight_reclaim;
pub mod pezcumulus_pezpallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod pezframe_system;
pub mod pezframe_system_extensions;
@@ -63,8 +63,8 @@ pub mod pezpallet_xcm;
pub mod pezpallet_xcm_bridge_hub_router;
pub mod paritydb_weights;
pub mod rocksdb_weights;
pub mod snowbridge_pallet_system_backend;
pub mod snowbridge_pallet_system_frontend;
pub mod snowbridge_pezpallet_system_backend;
pub mod snowbridge_pezpallet_system_frontend;
pub mod xcm;
pub use block_weights::constants::BlockExecutionWeight;
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
// --pallet=pezcumulus_pallet_teyrchain_system
// --pallet=pezcumulus_pezpallet_teyrchain_system
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 `pezcumulus_pallet_weight_reclaim`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
// --pallet=pezcumulus_pallet_weight_reclaim
// --pallet=pezcumulus_pezpallet_weight_reclaim
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_weight_reclaim`.
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 `pezcumulus_pallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pezpallet_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/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
// --pallet=pezcumulus_pallet_xcmp_queue
// --pallet=pezcumulus_pezpallet_xcmp_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-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 `pezcumulus_pallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> pezcumulus_pezpallet_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 {
@@ -21,11 +21,11 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `snowbridge_pallet_system_frontend::BackendWeightInfo`.
/// Weight functions for `snowbridge_pezpallet_system_frontend::BackendWeightInfo`.
/// Copy the weight generated for `fn register_token() -> Weight` from
/// ../../../../bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pallet_system_v2.rs
/// ../../../../bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pezpallet_system_v2.rs
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> snowbridge_pallet_system_frontend::BackendWeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> snowbridge_pezpallet_system_frontend::BackendWeightInfo for WeightInfo<T> {
fn transact_register_token() -> Weight {
Weight::from_parts(45_000_000, 6044)
.saturating_add(T::DbWeight::get().reads(5_u64))
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `snowbridge_pallet_system_frontend`
//! Autogenerated weights for `snowbridge_pezpallet_system_frontend`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -31,7 +31,7 @@
// --extrinsic=*
// --wasm-execution=compiled
// --output
// pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights/snowbridge_pallet_system_frontend.rs
// pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights/snowbridge_pezpallet_system_frontend.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -41,9 +41,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `snowbridge_pallet_system_frontend`.
/// Weight functions for `snowbridge_pezpallet_system_frontend`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> snowbridge_pallet_system_frontend::WeightInfo for WeightInfo<T> {
impl<T: pezframe_system::Config> snowbridge_pezpallet_system_frontend::WeightInfo for WeightInfo<T> {
/// Storage: `SnowbridgeSystemFrontend::ExportOperatingMode` (r:1 w:0)
/// Proof: `SnowbridgeSystemFrontend::ExportOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `TeyrchainInfo::TeyrchainId` (r:1 w:0)
@@ -41,7 +41,7 @@ use pezframe_system::EnsureRoot;
use pezpallet_xcm::{AuthorizedAliasers, XcmPassthrough};
use pezkuwi_runtime_common::xcm_sender::ExponentialPrice;
use pezkuwi_teyrchain_primitives::primitives::Sibling;
use snowbridge_outbound_queue_primitives::v2::exporter::PausableExporter;
use pezsnowbridge_outbound_queue_primitives::v2::exporter::PausableExporter;
use pezsp_runtime::traits::{AccountIdConversion, TryConvertInto};
use testnet_teyrchains_constants::zagros::locations::AssetHubParaId;
use teyrchains_common::xcm_config::{
@@ -72,7 +72,7 @@ parameter_types! {
pub const RootLocation: Location = Location::here();
pub const ZagrosLocation: Location = Location::parent();
pub const RelayNetwork: Option<NetworkId> = Some(NetworkId::ByGenesis(ZAGROS_GENESIS_HASH));
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorLocation =
[GlobalConsensus(RelayNetwork::get().unwrap()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
pub UniversalLocationNetworkId: NetworkId = UniversalLocation::get().global_consensus().unwrap();
@@ -256,7 +256,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
// recognised.
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrchainAsNative<pezcumulus_pezpallet_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>,
@@ -594,7 +594,7 @@ impl pezpallet_xcm::Config for Runtime {
>;
}
impl pezcumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pezpallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}
@@ -767,9 +767,9 @@ pub mod bridging {
xcm_builder::NetworkExportTable<EthereumBridgeTableV1>;
pub type EthereumNetworkExportTableV2 =
snowbridge_outbound_queue_primitives::v2::XcmFilterExporter<
pezsnowbridge_outbound_queue_primitives::v2::XcmFilterExporter<
xcm_builder::NetworkExportTable<EthereumBridgeTableV2>,
snowbridge_outbound_queue_primitives::v2::XcmForSnowbridgeV2,
pezsnowbridge_outbound_queue_primitives::v2::XcmForSnowbridgeV2,
>;
pub type EthereumAssetFromEthereum =
@@ -34,7 +34,7 @@ use asset_hub_zagros_runtime::{
ToPezkuwichainXcmRouterInstance, TrustBackedAssetsInstance, Uniques, WeightToFee, XcmpQueue,
};
pub use asset_hub_zagros_runtime::{AssetConversion, AssetDeposit, CollatorSelection, System};
use asset_test_utils::{
use asset_test_pezutils::{
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
ExtBuilder, GovernanceOrigin, SlotDurations,
};
@@ -80,7 +80,7 @@ use xcm_builder::{
NonFungiblesAdapter as OldNftAdapter, WithLatestLocationConverter,
};
use xcm_executor::traits::{ConvertLocation, JustTry, TransactAsset, WeightTrader};
use xcm_runtime_apis::conversions::LocationToAccountHelper;
use xcm_runtime_pezapis::conversions::LocationToAccountHelper;
const ALICE: [u8; 32] = [1u8; 32];
const BOB: [u8; 32] = [2u8; 32];
@@ -103,7 +103,7 @@ parameter_types! {
type AssetIdForTrustBackedAssetsConvert =
assets_common::AssetIdForTrustBackedAssetsConvert<TrustBackedAssetsPalletLocation>;
type RuntimeHelper = asset_test_utils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
type RuntimeHelper = asset_test_pezutils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
fn collator_session_key(account: [u8; 32]) -> CollatorSessionKey<Runtime> {
CollatorSessionKey::new(
@@ -888,7 +888,7 @@ fn authorized_aliases_work() {
})
}
asset_test_utils::include_teleports_for_native_asset_works!(
asset_test_pezutils::include_teleports_for_native_asset_works!(
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -907,7 +907,7 @@ asset_test_utils::include_teleports_for_native_asset_works!(
1000
);
asset_test_utils::include_teleports_for_foreign_assets_works!(
asset_test_pezutils::include_teleports_for_foreign_assets_works!(
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -933,7 +933,7 @@ asset_test_utils::include_teleports_for_foreign_assets_works!(
})
);
asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
Runtime,
XcmConfig,
collator_session_keys(),
@@ -948,7 +948,7 @@ asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currenc
})
);
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_transactor_transfer_with_trust_backed_assets_works,
Runtime,
XcmConfig,
@@ -966,7 +966,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
})
);
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
asset_transactor_transfer_with_foreign_assets_works,
Runtime,
XcmConfig,
@@ -988,7 +988,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
})
);
asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
asset_test_pezutils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
Runtime,
XcmConfig,
WeightToFee,
@@ -1035,7 +1035,7 @@ fn bridging_to_asset_hub_pezkuwichain() -> TestBridgingConfig {
#[test]
fn limited_reserve_transfer_assets_for_native_asset_to_asset_hub_pezkuwichain_works() {
asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
asset_test_pezutils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1090,7 +1090,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
let pool_params =
(foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance);
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1105,7 +1105,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
1000000000000,
|| {
// setup pool for paying fees to touch `SwapFirstAssetTrader`
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
// staking pot account for collecting local native fees from `BuyExecution`
let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get());
// prepare bridge configuration
@@ -1170,7 +1170,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
let pool_params =
(foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance);
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1184,7 +1184,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
foreign_asset_create_params,
1000000000000,
|| {
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
bridging_to_asset_hub_pezkuwichain()
},
(
@@ -1219,7 +1219,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
#[test]
fn report_bridge_status_from_xcm_bridge_router_for_pezkuwichain_works() {
asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
asset_test_pezutils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1271,7 +1271,7 @@ fn check_sane_weight_report_bridge_status() {
#[test]
fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::XcmBridgeHubRouterByteFee,
Balance,
@@ -1297,7 +1297,7 @@ fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
#[test]
fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
Runtime,
bridging::XcmBridgeHubRouterBaseFee,
Balance,
@@ -1329,7 +1329,7 @@ fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
#[test]
fn reserve_transfer_native_asset_to_non_teleport_para_works() {
asset_test_utils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
asset_test_pezutils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
Runtime,
AllPalletsWithoutSystem,
XcmConfig,
@@ -1597,7 +1597,7 @@ fn xcm_payment_api_works() {
Block,
WeightToFee,
>();
asset_test_utils::test_cases::xcm_payment_api_with_pools_works::<
asset_test_pezutils::test_cases::xcm_payment_api_with_pools_works::<
Runtime,
RuntimeCall,
RuntimeOrigin,
@@ -1605,7 +1605,7 @@ fn xcm_payment_api_works() {
WeightToFee,
>();
asset_test_utils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
asset_test_pezutils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
Runtime,
RuntimeCall,
RuntimeOrigin,
@@ -1662,7 +1662,7 @@ fn governance_authorize_upgrade_works() {
#[test]
fn weight_of_message_increases_when_dealing_with_erc20s() {
use xcm::VersionedXcm;
use xcm_runtime_apis::fees::runtime_decl_for_xcm_payment_api::XcmPaymentApiV2;
use xcm_runtime_pezapis::fees::runtime_decl_for_xcm_payment_api::XcmPaymentApiV2;
let message = Xcm::<()>::builder_unsafe().withdraw_asset((Parent, 100u128)).build();
let versioned = VersionedXcm::<()>::V5(message);
let regular_asset_weight = Runtime::query_xcm_weight(versioned).unwrap();
@@ -38,7 +38,7 @@ xcm-executor = { workspace = true }
# Pezcumulus
pezcumulus-primitives-core = { workspace = true }
ethereum-standards = { workspace = true }
pez-ethereum-standards = { workspace = true }
teyrchains-common = { workspace = true }
[features]
@@ -17,7 +17,7 @@
//! The ERC20 Asset Transactor.
use core::marker::PhantomData;
use ethereum_standards::IERC20;
use pez_ethereum_standards::IERC20;
use pezframe_support::traits::{fungible::Inspect, OriginTrait};
use pezframe_system::pezpallet_prelude::OriginFor;
use pezpallet_revive::{
@@ -1,5 +1,5 @@
[package]
name = "asset-test-utils"
name = "asset-test-pezutils"
version = "7.0.0"
authors.workspace = true
edition.workspace = true
@@ -7,7 +7,7 @@ description = "Test utils for Asset Hub runtimes."
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/asset-test-utils"
documentation = "https://docs.rs/asset-test-pezutils"
[lints]
workspace = true
@@ -41,7 +41,7 @@ pezpallet-xcm = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
xcm-runtime-apis = { workspace = true }
xcm-runtime-pezapis = { workspace = true }
# Bridges
pezpallet-xcm-bridge-hub-router = { workspace = true }
@@ -71,7 +71,7 @@ std = [
"teyrchains-runtimes-test-utils/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm-runtime-pezapis/std",
"xcm/std",
]
try-runtime = [
@@ -114,6 +114,6 @@ runtime-benchmarks = [
"teyrchains-runtimes-test-utils/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"xcm-runtime-pezapis/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
@@ -44,7 +44,7 @@ use xcm_executor::{
traits::{ConvertLocation, TransferType},
XcmExecutor,
};
use xcm_runtime_apis::fees::{
use xcm_runtime_pezapis::fees::{
runtime_decl_for_xcm_payment_api::XcmPaymentApiV2, Error as XcmPaymentApiError,
};
@@ -77,8 +77,8 @@ pub fn teleports_for_native_asset_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem:
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
@@ -95,7 +95,7 @@ pub fn teleports_for_native_asset_works<
XcmConfig: xcm_executor::Config,
CheckingAccount: Get<Option<AccountIdOf<Runtime>>>,
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
>,
{
let buy_execution_fee_amount_eta =
@@ -194,7 +194,7 @@ pub fn teleports_for_native_asset_works<
let native_asset_to_teleport_away = native_asset_amount_unit * 3.into();
// 2. try to teleport asset back to the relaychain
{
<pezcumulus_pallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
<pezcumulus_pezpallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
let dest = Location::parent();
let mut dest_beneficiary = Location::parent()
@@ -372,7 +372,7 @@ pub fn teleports_for_foreign_assets_works<
asset_owner: AccountIdOf<Runtime>,
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
unwrap_xcmp_queue_event: Box<
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
>,
) where
Runtime: pezframe_system::Config
@@ -381,8 +381,8 @@ pub fn teleports_for_foreign_assets_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem:
@@ -393,7 +393,7 @@ pub fn teleports_for_foreign_assets_works<
XcmConfig: xcm_executor::Config,
CheckingAccount: Get<AccountIdOf<Runtime>>,
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
>,
WeightToFee: pezframe_support::weights::WeightToFee<Balance = Balance>,
<WeightToFee as pezframe_support::weights::WeightToFee>::Balance: From<u128> + Into<u128>,
@@ -747,7 +747,7 @@ pub fn asset_transactor_transfer_with_local_consensus_currency_works<Runtime, Xc
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezpallet_timestamp::Config,
AccountIdOf<Runtime>: Into<[u8; 32]>,
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
@@ -872,7 +872,7 @@ pub fn asset_transactor_transfer_with_pallet_assets_instance_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezpallet_assets::Config<AssetsPalletInstance>
+ pezpallet_timestamp::Config,
AccountIdOf<Runtime>: Into<[u8; 32]>,
@@ -1140,7 +1140,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_wor
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezpallet_assets::Config<ForeignAssetsPalletInstance>
+ pezpallet_timestamp::Config,
AccountIdOf<Runtime>: Into<[u8; 32]>,
@@ -1461,7 +1461,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
alice_account: AccountIdOf<Runtime>,
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
unwrap_xcmp_queue_event: Box<
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
>,
weight_limit: WeightLimit,
) where
@@ -1471,8 +1471,8 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem:
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
@@ -1488,7 +1488,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
From<<Runtime as pezframe_system::Config>::AccountId>,
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
>,
HrmpChannelSource: XcmpMessageSource,
{
@@ -1599,7 +1599,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
.into_iter()
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
.find_map(|e| match e {
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
pezcumulus_pezpallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
Some(message_hash),
_ => None,
});
@@ -1657,8 +1657,8 @@ where
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_timestamp::Config
+ pezpallet_assets::Config<
pezpallet_assets::Instance1,
@@ -1844,8 +1844,8 @@ pub fn xcm_payment_api_foreign_asset_pool_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_timestamp::Config
+ pezpallet_assets::Config<
pezpallet_assets::Instance2,
@@ -60,7 +60,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
alice_account: AccountIdOf<Runtime>,
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
unwrap_xcmp_queue_event: Box<
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
>,
prepare_configuration: fn() -> TestBridgingConfig,
weight_limit: WeightLimit,
@@ -73,8 +73,8 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem:
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
@@ -90,7 +90,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
From<<Runtime as pezframe_system::Config>::AccountId>,
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
>,
HrmpChannelSource: XcmpMessageSource,
{
@@ -220,7 +220,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
.into_iter()
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
.find_map(|e| match e {
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
pezcumulus_pezpallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
Some(message_hash),
_ => None,
});
@@ -357,8 +357,8 @@ pub fn receive_reserve_asset_deposited_from_different_consensus_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem:
@@ -528,8 +528,8 @@ pub fn report_bridge_status_from_xcm_bridge_router_works<
+ pezpallet_xcm::Config
+ teyrchain_info::Config
+ pezpallet_collator_selection::Config
+ pezcumulus_pallet_teyrchain_system::Config
+ pezcumulus_pallet_xcmp_queue::Config
+ pezcumulus_pezpallet_teyrchain_system::Config
+ pezcumulus_pezpallet_xcmp_queue::Config
+ pezpallet_xcm_bridge_hub_router::Config<XcmBridgeHubRouterInstance>
+ pezpallet_timestamp::Config,
AllPalletsWithoutSystem: