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
+44 -43
View File
@@ -7,6 +7,7 @@ description = "Pallet to queue outbound and inbound XCMP messages."
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/pezcumulus-pezpallet-xcmp-queue"
[lints]
workspace = true
@@ -46,7 +47,7 @@ bp-xcm-bridge-hub-router = { optional = true, workspace = true }
[dev-dependencies]
# Bizinikiwi
pezframe-support = { features = [
"experimental",
"experimental",
], workspace = true, default-features = true }
pezpallet-balances = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
@@ -57,51 +58,51 @@ pezcumulus-pezpallet-teyrchain-system = { workspace = true, default-features = t
[features]
default = ["std"]
std = [
"approx/std",
"bounded-collections/std",
"bp-xcm-bridge-hub-router?/std",
"codec/std",
"pezcumulus-primitives-core/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-message-queue/std",
"pezkuwi-runtime-common/std",
"pezkuwi-runtime-teyrchains/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
"approx/std",
"bounded-collections/std",
"bp-xcm-bridge-hub-router?/std",
"codec/std",
"pezcumulus-primitives-core/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-message-queue/std",
"pezkuwi-runtime-common/std",
"pezkuwi-runtime-teyrchains/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
]
runtime-benchmarks = [
"bp-xcm-bridge-hub-router?/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-runtime-teyrchains/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
"bp-xcm-bridge-hub-router?/runtime-benchmarks",
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
"pezcumulus-primitives-core/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezpallet-message-queue/runtime-benchmarks",
"pezkuwi-runtime-common/runtime-benchmarks",
"pezkuwi-runtime-teyrchains/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
try-runtime = [
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"pezkuwi-runtime-teyrchains/try-runtime",
"pezsp-runtime/try-runtime",
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezpallet-message-queue/try-runtime",
"pezkuwi-runtime-common/try-runtime",
"pezkuwi-runtime-teyrchains/try-runtime",
"pezsp-runtime/try-runtime",
]
bridging = ["bp-xcm-bridge-hub-router"]
@@ -14,7 +14,7 @@
// limitations under the License.
use crate::{pallet, OutboundState};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use xcm::latest::prelude::*;
/// Adapter implementation for `bp_xcm_bridge_hub_router::XcmChannelStatusProvider` which checks
+1 -1
View File
@@ -58,7 +58,7 @@ extern crate alloc;
use alloc::{collections::BTreeSet, vec, vec::Vec};
use bounded_collections::{BoundedBTreeSet, BoundedSlice, BoundedVec};
use codec::{Compact, Decode, DecodeLimit, Encode, MaxEncodedLen};
use cumulus_primitives_core::{
use pezcumulus_primitives_core::{
relay_chain::BlockNumber as RelayBlockNumber, ChannelStatus, GetChannelInfo, MessageSendError,
ParaId, XcmpMessageFormat, XcmpMessageHandler, XcmpMessageSource,
};
@@ -20,7 +20,7 @@ pub mod v5;
use crate::{Config, OverweightIndex, Pallet, QueueConfig, QueueConfigData, DEFAULT_POV_SIZE};
use alloc::vec::Vec;
use cumulus_primitives_core::XcmpMessageFormat;
use pezcumulus_primitives_core::XcmpMessageFormat;
use pezframe_support::{
pezpallet_prelude::*,
traits::{EnqueueMessage, StorageVersion, UncheckedOnRuntimeUpgrade},
@@ -18,7 +18,7 @@
use crate::*;
use alloc::vec::Vec;
use cumulus_primitives_core::ListChannelInfos;
use pezcumulus_primitives_core::ListChannelInfos;
use pezframe_support::{pezpallet_prelude::*, traits::UncheckedOnRuntimeUpgrade};
/// Configs needed to run the V5 migration.
+6 -6
View File
@@ -17,8 +17,8 @@ use super::*;
use crate as xcmp_queue;
use alloc::collections::BTreeMap;
use core::marker::PhantomData;
use cumulus_pallet_teyrchain_system::AnyRelayNumber;
use cumulus_primitives_core::{ChannelInfo, IsSystem, ParaId};
use pezcumulus_pallet_teyrchain_system::AnyRelayNumber;
use pezcumulus_primitives_core::{ChannelInfo, IsSystem, ParaId};
use pezframe_support::{
derive_impl, parameter_types,
traits::{BatchesFootprints, ConstU32, Everything, OriginTrait},
@@ -41,7 +41,7 @@ pezframe_support::construct_runtime!(
{
System: pezframe_system::{Pallet, Call, Config<T>, Storage, Event<T>},
Balances: pezpallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
TeyrchainSystem: cumulus_pallet_teyrchain_system::{
TeyrchainSystem: pezcumulus_pallet_teyrchain_system::{
Pallet, Call, Config<T>, Storage, Inherent, Event<T>,
},
XcmpQueue: xcmp_queue::{Pallet, Call, Storage, Event<T>},
@@ -76,7 +76,7 @@ impl pezframe_system::Config for Test {
type OnKilledAccount = ();
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
type OnSetCode = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Test>;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Test>;
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
}
@@ -92,7 +92,7 @@ impl pezpallet_balances::Config for Test {
type AccountStore = System;
}
impl cumulus_pallet_teyrchain_system::Config for Test {
impl pezcumulus_pallet_teyrchain_system::Config for Test {
type WeightInfo = ();
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
@@ -104,7 +104,7 @@ impl cumulus_pallet_teyrchain_system::Config for Test {
type XcmpMessageHandler = XcmpQueue;
type ReservedXcmpWeight = ();
type CheckAssociatedRelayNumber = AnyRelayNumber;
type ConsensusHook = cumulus_pallet_teyrchain_system::consensus_hook::ExpectParentIncluded;
type ConsensusHook = pezcumulus_pallet_teyrchain_system::consensus_hook::ExpectParentIncluded;
type RelayParentOffset = ConstU32<0>;
}
+4 -4
View File
@@ -21,7 +21,7 @@ use std::collections::BTreeMap;
use XcmpMessageFormat::*;
use codec::Input;
use cumulus_primitives_core::{ParaId, XcmpMessageHandler};
use pezcumulus_primitives_core::{ParaId, XcmpMessageHandler};
use pezframe_support::{
assert_err, assert_noop, assert_ok, assert_storage_noop, hypothetically,
traits::{BatchFootprint, Hooks},
@@ -756,7 +756,7 @@ fn hrmp_signals_are_prioritized() {
TeyrchainSystem::open_custom_outbound_hrmp_channel_for_benchmarks_or_tests(
sibling_para_id,
cumulus_primitives_core::AbridgedHrmpChannel {
pezcumulus_primitives_core::AbridgedHrmpChannel {
max_capacity: 128,
max_total_size: 1 << 16,
max_message_size: 128,
@@ -1053,7 +1053,7 @@ fn xcmp_queue_send_too_big_xcm_fails() {
// open HRMP channel to the sibling_para_id with a set `max_message_size`
TeyrchainSystem::open_custom_outbound_hrmp_channel_for_benchmarks_or_tests(
sibling_para_id,
cumulus_primitives_core::AbridgedHrmpChannel {
pezcumulus_primitives_core::AbridgedHrmpChannel {
max_message_size,
max_capacity: 10,
max_total_size: 10_000_000_u32,
@@ -1088,7 +1088,7 @@ fn xcmp_queue_send_too_big_xcm_fails() {
#[test]
fn verify_fee_factor_increase_and_decrease() {
use cumulus_primitives_core::AbridgedHrmpChannel;
use pezcumulus_primitives_core::AbridgedHrmpChannel;
use pezsp_runtime::FixedU128;
let sibling_para_id = ParaId::from(12345);
+3 -3
View File
@@ -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: `[]`
@@ -45,7 +45,7 @@
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `cumulus_pallet_xcmp_queue`.
/// Weight functions needed for `pezcumulus_pallet_xcmp_queue`.
pub trait WeightInfo {
fn set_config_with_u32() -> Weight;
fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight;
@@ -60,7 +60,7 @@ pub trait WeightInfo {
fn on_idle_large_msg() -> Weight;
}
/// Weights for `cumulus_pallet_xcmp_queue` using the Bizinikiwi node and recommended hardware.
/// Weights for `pezcumulus_pallet_xcmp_queue` using the Bizinikiwi node and recommended hardware.
pub struct BizinikiwiWeight<T>(PhantomData<T>);
impl<T: pezframe_system::Config> WeightInfo for BizinikiwiWeight<T> {
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)