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
@@ -22,7 +22,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 hex_literal::hex;
use pezsp_core::{crypto::UncheckedInto, H256};
@@ -30,8 +30,8 @@ extern crate alloc;
use alloc::{vec, vec::Vec};
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
use cumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezframe_support::{
construct_runtime, derive_impl,
dispatch::DispatchClass,
@@ -100,7 +100,7 @@ pub type BlockId = generic::BlockId<Block>;
/// The TransactionExtension to the basic transaction logic.
/// Includes SkipCheckIfFeeless to exempt governance members from fees
/// when using #[pallet::feeless_if] marked extrinsics.
pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::AuthorizeCall<Runtime>,
@@ -125,14 +125,14 @@ pub type UncheckedExtrinsic =
/// Migrations to apply on runtime upgrade.
pub type Migrations = (
pezpallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
pezpallet_session::migrations::v1::MigrateV0ToV1<
Runtime,
pezpallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
>,
// permanent
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
);
/// Executive: handles dispatch to the various modules.
@@ -209,14 +209,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 = cumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
type MaxConsumers = ConstU32<16>;
type MultiBlockMigrator = MultiBlockMigrations;
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 {
@@ -279,7 +279,7 @@ parameter_types! {
pub const RelayOrigin: AggregateMessageOrigin = AggregateMessageOrigin::Parent;
}
impl cumulus_pallet_teyrchain_system::Config for Runtime {
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type OnSystemEvent = ();
type SelfParaId = teyrchain_info::Pallet<Runtime>;
@@ -290,11 +290,11 @@ impl cumulus_pallet_teyrchain_system::Config for Runtime {
type ReservedXcmpWeight = ReservedXcmpWeight;
type CheckAssociatedRelayNumber = RelayNumberMonotonicallyIncreases;
type ConsensusHook = ConsensusHook;
type WeightInfo = weights::cumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<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,
@@ -310,7 +310,7 @@ impl pezpallet_message_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
#[cfg(feature = "runtime-benchmarks")]
type MessageProcessor = pezpallet_message_queue::mock_helpers::NoopMessageProcessor<
cumulus_primitives_core::AggregateMessageOrigin,
pezcumulus_primitives_core::AggregateMessageOrigin,
>;
#[cfg(not(feature = "runtime-benchmarks"))]
type MessageProcessor = xcm_builder::ProcessXcmMessage<
@@ -331,7 +331,7 @@ impl pezpallet_message_queue::Config for Runtime {
impl teyrchain_info::Config for Runtime {}
impl cumulus_pallet_aura_ext::Config for Runtime {}
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
parameter_types! {
// Fellows pluralistic body.
@@ -416,7 +416,7 @@ pub type RootOrDiwanOrTechnical = EitherOfDiverse<
pezpallet_collective::EnsureProportionMoreThan<AccountId, CouncilCollective, 1, 2>,
>;
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;
@@ -429,10 +429,10 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
type ControllerOrigin = RootOrFellows;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
}
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;
}
@@ -667,10 +667,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,
@@ -682,12 +682,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 & related
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,
MessageQueue: pezpallet_message_queue = 34,
// Handy utilities.
@@ -774,14 +774,14 @@ mod benches {
[pezpallet_pez_rewards, PezRewards]
[pezkuwi_runtime_common::identity_migrator, IdentityMigrator]
// Pezcumulus
[cumulus_pallet_teyrchain_system, TeyrchainSystem]
[cumulus_pallet_xcmp_queue, XcmpQueue]
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
[pezpallet_collator_selection, CollatorSelection]
// XCM
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
[pezpallet_xcm_benchmarks::fungible, XcmBalances]
[pezpallet_xcm_benchmarks::generic, XcmGeneric]
[cumulus_pallet_weight_reclaim, WeightReclaim]
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
);
}
@@ -796,16 +796,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)
}
@@ -981,8 +981,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)
}
}
@@ -1015,7 +1015,7 @@ impl_runtime_apis! {
use pezframe_benchmarking::BenchmarkList;
use pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
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!
@@ -1047,12 +1047,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 testnet_teyrchains_constants::pezkuwichain::locations::{AssetHubParaId, AssetHubLocation};
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
@@ -1251,20 +1251,20 @@ 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>,
}
@@ -16,9 +16,9 @@
//! Expose the auto generated weight files.
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/people-pezkuwichain-runtime/people_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/people/people-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/people-pezkuwichain-runtime/people_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/people/people-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/people-pezkuwichain-runtime/people_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/people/people-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 {
@@ -54,7 +54,7 @@ parameter_types! {
pub const RootLocation: Location = Location::here();
pub const RelayLocation: Location = Location::parent();
pub const RelayNetwork: Option<NetworkId> = Some(NetworkId::ByGenesis(PEZKUWICHAIN_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().unwrap()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
pub const MaxInstructions: u32 = 100;
@@ -128,7 +128,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>,
@@ -247,7 +247,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,
)>;
@@ -286,7 +286,7 @@ impl pezpallet_xcm::Config for Runtime {
type AuthorizedAliasConsideration = Disabled;
}
impl cumulus_pallet_xcm::Config for Runtime {
impl pezcumulus_pallet_xcm::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type XcmExecutor = XcmExecutor<XcmConfig>;
}