Update documentation and templates for Pezkuwi branding

This commit is contained in:
2026-01-17 23:19:40 +03:00
parent d839cbd92b
commit 9bd688a742
172 changed files with 12903 additions and 6604 deletions
+4 -4
View File
@@ -7,11 +7,11 @@ pezframe_benchmarking::define_benchmarks!(
[pezpallet_message_queue, MessageQueue]
[pezpallet_sudo, Sudo]
[pezpallet_collator_selection, CollatorSelection]
[cumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
[pezpallet_scheduler, Scheduler]
[pezpallet_preimage, Preimage]
[pezpallet_proxy, Proxy]
[cumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezcumulus_pezpallet_teyrchain_system, TeyrChainSystem]
[pezpallet_multisig, Multisig]
[pezpallet_utility, Utility]
[pezpallet_treasury, Treasury]
@@ -25,12 +25,12 @@ pezframe_benchmarking::define_benchmarks!(
[pezpallet_xcm_weight_trader, XcmWeightTrader]
);
use cumulus_primitives_core::{ChannelStatus, GetChannelInfo};
use pezcumulus_primitives_core::{ChannelStatus, GetChannelInfo};
use pezframe_support::traits::{
tokens::{Pay, PaymentStatus},
Get,
};
use sp_std::marker::PhantomData;
use pezsp_std::marker::PhantomData;
use crate::TeyrChainSystem;
@@ -1,9 +1,9 @@
use pezframe_support::{dispatch::GetDispatchInfo, weights::Weight};
use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode};
use scale_info::TypeInfo;
use sp_core::{H160, H256};
use sp_runtime::traits::Hash as THash;
use sp_std::{
use pezsp_core::{H160, H256};
use pezsp_runtime::traits::Hash as THash;
use pezsp_std::{
convert::{From, Into},
prelude::*,
};
@@ -86,7 +86,7 @@ impl From<AssetType> for AssetId {
match asset {
AssetType::Xcm(id) => {
let mut result: [u8; 16] = [0u8; 16];
let hash: H256 = id.using_encoded(<Runtime as pezframe_system::Config>::Hashing::hash);
let hash: H256 = id.using_encoded(<Runtime as frame_system::Config>::Hashing::hash);
result.copy_from_slice(&hash.as_fixed_bytes()[0..16]);
u128::from_le_bytes(result)
}
@@ -207,7 +207,7 @@ impl AccountIdAssetIdConversion<AccountId, AssetId> for Runtime {
mod tests {
mod asset_registrar {
use pezpallet_asset_manager::AssetRegistrar;
use sp_io::TestExternalities;
use pezsp_io::TestExternalities;
use crate::{
configs::{AssetRegistrar as Registrar, AssetRegistrarMetadata},
@@ -2,17 +2,18 @@
pub use pezpallet_custom_origins::*;
#[pezframe_support::pezpallet]
use pezsp_std::marker::PhantomData;
#[pezframe_support::pallet]
pub mod pezpallet_custom_origins {
use pezframe_support::pezpallet_prelude::*;
use pezframe_support::pallet_prelude::*;
use crate::configs::governance::{Balance, CENTS, GRAND};
#[pezpallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::config]
pub trait Config: frame_system::Config {}
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[pallet::pezpallet]
pub struct Pezpallet<T>(PhantomData<T>);
#[derive(
PartialEq,
@@ -25,7 +26,7 @@ pub mod pezpallet_custom_origins {
TypeInfo,
RuntimeDebug,
)]
#[pezpallet::origin]
#[pallet::origin]
pub enum Origin {
/// Origin for spending (any amount of) funds.
Treasurer,
@@ -3,13 +3,13 @@
use alloc::borrow::Cow;
use pezpallet_referenda::Track;
use sp_runtime::str_array as s;
use pezsp_runtime::str_array as s;
use super::*;
use crate::constants::MINUTES;
const fn percent(x: i32) -> sp_arithmetic::FixedI64 {
sp_arithmetic::FixedI64::from_rational(x as u128, 100)
const fn percent(x: i32) -> pezsp_arithmetic::FixedI64 {
pezsp_arithmetic::FixedI64::from_rational(x as u128, 100)
}
use pezpallet_referenda::Curve;
const APP_ROOT: Curve = Curve::make_reciprocal(4, 28, percent(80), percent(50), percent(100));
@@ -42,7 +42,7 @@ const SUP_WHITELISTED_CALLER: Curve =
pub struct TracksInfo;
impl pezpallet_referenda::TracksInfo<Balance, BlockNumber> for TracksInfo {
type Id = u16;
type RuntimeOrigin = <RuntimeOrigin as pezframe_support::traits::OriginTrait>::PalletsOrigin;
type RuntimeOrigin = <RuntimeOrigin as pezframe_support::traits::OriginTrait>::PezpalletsOrigin;
fn tracks() -> impl Iterator<Item = Cow<'static, Track<Self::Id, Balance, BlockNumber>>> {
static DATA: [Track<u16, Balance, BlockNumber>; 10] = [
@@ -346,7 +346,7 @@ mod tests {
<crate::configs::governance::tracks::TracksInfo as pezpallet_referenda::TracksInfo<
Balance,
BlockNumber,
>>::track_for(&OriginCaller::CumulusXcm(cumulus_pezpallet_xcm::Origin::Relay))
>>::track_for(&OriginCaller::PezcumulusXcm(pezcumulus_pezpallet_xcm::Origin::Relay))
.expect_err("incorrect config");
}
}
+18 -18
View File
@@ -5,12 +5,12 @@ pub mod xcm_config;
use asset_config::*;
#[cfg(feature = "tanssi")]
use cumulus_pezpallet_teyrchain_system::ExpectParentIncluded;
use pezcumulus_pezpallet_teyrchain_system::ExpectParentIncluded;
#[cfg(feature = "async-backing")]
use cumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
#[cfg(not(feature = "async-backing"))]
use cumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases;
use cumulus_primitives_core::{AggregateMessageOrigin, ParaId};
use pezcumulus_pezpallet_teyrchain_system::RelayNumberStrictlyIncreases;
use pezcumulus_primitives_core::{AggregateMessageOrigin, ParaId};
#[cfg(not(feature = "tanssi"))]
use pezframe_support::PalletId;
use pezframe_support::{
@@ -55,13 +55,13 @@ use teyrchains_common::{
use parity_scale_codec::{Decode, Encode};
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
#[cfg(not(feature = "tanssi"))]
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{H160, U256};
use sp_runtime::{
use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_core::{H160, U256};
use pezsp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
ConsensusEngineId, Perbill, Permill,
};
use sp_std::marker::PhantomData;
use pezsp_std::marker::PhantomData;
use xcm::latest::{prelude::*, InteriorLocation};
#[cfg(not(feature = "runtime-benchmarks"))]
use xcm_builder::ProcessXcmMessage;
@@ -141,7 +141,7 @@ impl GovernanceConfig for OpenZeppelinRuntime {
type ReferendaSubmitOrigin = EnsureSigned<AccountId>;
type ReferendaUndecidingTimeout = ConstU32<{ 14 * DAYS }>;
type TreasuryInteriorLocation = TreasuryInteriorLocation;
type TreasuryPezpalletId = TreasuryPezpalletId;
type TreasuryPalletId = TreasuryPezpalletId;
type TreasuryPayoutSpendPeriod = ConstU32<{ 30 * DAYS }>;
type TreasuryRejectOrigin = EitherOfDiverse<EnsureRoot<AccountId>, Treasurer>;
type TreasurySpendOrigin = TreasurySpender;
@@ -168,7 +168,7 @@ impl XcmConfig for OpenZeppelinRuntime {
type MessageQueueHeapSize = ConstU32<{ 64 * 1024 }>;
type MessageQueueMaxStale = ConstU32<8>;
type MessageQueueServiceWeight = MessageQueueServiceWeight;
type TeyrChainMinFee = TeyrChainMinFee;
type TeyrchainMinFee = TeyrChainMinFee;
type PauseSupportedAssetOrigin = EnsureRoot<AccountId>;
type RelayLocation = RelayLocation;
type RemoveSupportedAssetOrigin = EnsureRoot<AccountId>;
@@ -211,16 +211,16 @@ parameter_types! {
}
pub struct AssetsToBlockAuthor<R, I>(PhantomData<(R, I)>);
impl<R, I> HandleCredit<AccountIdOf<R>, pezpallet_assets::Pallet<R, I>> for AssetsToBlockAuthor<R, I>
impl<R, I> HandleCredit<AccountIdOf<R>, pezpallet_assets::Pezpallet<R, I>> for AssetsToBlockAuthor<R, I>
where
I: 'static,
R: pezpallet_authorship::Config + pezpallet_assets::Config<I>,
{
fn handle_credit(credit: Credit<AccountIdOf<R>, pezpallet_assets::Pallet<R, I>>) {
fn handle_credit(credit: Credit<AccountIdOf<R>, pezpallet_assets::Pezpallet<R, I>>) {
use pezframe_support::traits::fungibles::Balanced;
if let Some(author) = pezpallet_authorship::Pallet::<R>::author() {
if let Some(author) = pezpallet_authorship::Pezpallet::<R>::author() {
// In case of error: Will drop the result triggering the `OnDrop` of the imbalance.
let _ = pezpallet_assets::Pallet::<R, I>::resolve(&author, credit);
let _ = pezpallet_assets::Pezpallet::<R, I>::resolve(&author, credit);
}
}
}
@@ -317,7 +317,7 @@ mod tests {
use pezframe_support::traits::fungibles::Balanced;
use pezpallet_asset_tx_payment::HandleCredit;
use parity_scale_codec::Encode;
use sp_runtime::{
use pezsp_runtime::{
testing::{Digest, DigestItem},
ConsensusEngineId,
};
@@ -379,8 +379,8 @@ mod tests {
});
}
fn new_test_ext() -> sp_io::TestExternalities {
use sp_runtime::BuildStorage;
fn new_test_ext() -> pezsp_io::TestExternalities {
use pezsp_runtime::BuildStorage;
pezframe_system::GenesisConfig::<Runtime>::default().build_storage().unwrap().into()
}
}
@@ -389,7 +389,7 @@ mod tests {
use ethereum::{LegacyTransaction, TransactionAction, TransactionSignature};
use fp_rpc::ConvertTransaction;
use sp_core::{H160, H256, U256};
use pezsp_core::{H160, H256, U256};
use crate::{configs::TransactionConverter, RuntimeCall, UncheckedExtrinsic};
+2 -2
View File
@@ -16,7 +16,7 @@ impl SystemWeight for OpenZeppelinRuntime {
type Balances = weights::pezpallet_balances::WeightInfo<Runtime>;
type DbWeight = RocksDbWeight;
type Multisig = weights::pezpallet_multisig::WeightInfo<Runtime>;
type TeyrChainSystem = weights::cumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type ParachainSystem = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
type Preimage = weights::pezpallet_preimage::WeightInfo<Runtime>;
type Proxy = weights::pezpallet_proxy::WeightInfo<Runtime>;
type Scheduler = weights::pezpallet_scheduler::WeightInfo<Runtime>;
@@ -51,7 +51,7 @@ impl XcmWeight for OpenZeppelinRuntime {
type Xcm = weights::pezpallet_xcm::WeightInfo<Runtime>;
type XcmTransactor = weights::pezpallet_xcm_transactor::WeightInfo<Runtime>;
type XcmWeightTrader = weights::pezpallet_xcm_weight_trader::WeightInfo<Runtime>;
type XcmpQueue = weights::cumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
type XcmpQueue = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
}
impl EvmWeight for OpenZeppelinRuntime {
+19 -19
View File
@@ -11,8 +11,8 @@ use pezpallet_xcm::XcmPassthrough;
use parity_scale_codec::{Decode, DecodeWithMemTracking, Encode};
use pezkuwi_teyrchain_primitives::primitives::{self, Sibling};
use scale_info::TypeInfo;
use sp_core::H160;
use sp_runtime::Vec;
use pezsp_core::H160;
use pezsp_runtime::Vec;
use xcm::latest::prelude::{Assets as XcmAssets, *};
use xcm_builder::{
AccountKey20Aliases, AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, Case,
@@ -39,7 +39,7 @@ parameter_types! {
pub AssetsPezpalletLocation: Location =
PezpalletInstance(<Assets as PezpalletInfoAccess>::index() as u8).into();
pub BalancesPezpalletLocation: Location = PezpalletInstance(<Balances as PezpalletInfoAccess>::index() as u8).into();
pub RelayChainOrigin: RuntimeOrigin = cumulus_pezpallet_xcm::Origin::Relay.into();
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
pub UniversalLocation: InteriorLocation = TeyrChain(TeyrChainInfo::teyrchain_id().into()).into();
// Self Reserve location, defines the multilocation identifiying the self-reserve currency
// This is used to match it also against our Balances pezpallet when we receive such
@@ -117,7 +117,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling TeyrChains; will convert to a `SiblingPara` origin when
// recognized.
SiblingTeyrChainAsNative<cumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
SiblingTeyrChainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
// Xcm Origins defined by a Multilocation of type AccountKey20 can be converted to a 20 byte-
// account local origin
SignedAccountKey20AsNative<RelayNetwork, RuntimeOrigin>,
@@ -249,17 +249,17 @@ pub type FeeManager = XcmFeeManagerFromComponents<
pub type XcmWeigher = FixedWeightBounds<UnitWeightCost, RuntimeCall, MaxInstructions>;
use pezframe_support::{pezpallet_prelude::Get, traits::OriginTrait};
use sp_runtime::traits::TryConvert;
use pezsp_runtime::traits::TryConvert;
// Convert a local Origin (i.e., a signed 20 byte account Origin) to a Multilocation
pub struct SignedToAccountId20<Origin, AccountId, Network>(
sp_std::marker::PhantomData<(Origin, AccountId, Network)>,
pezsp_std::marker::PhantomData<(Origin, AccountId, Network)>,
);
impl<Origin: OriginTrait + Clone, AccountId: Into<[u8; 20]>, Network: Get<Option<NetworkId>>>
TryConvert<Origin, Location> for SignedToAccountId20<Origin, AccountId, Network>
where
Origin::PalletsOrigin: From<pezframe_system::RawOrigin<AccountId>>
+ TryInto<pezframe_system::RawOrigin<AccountId>, Error = Origin::PalletsOrigin>,
Origin::PezpalletsOrigin: From<pezframe_system::RawOrigin<AccountId>>
+ TryInto<pezframe_system::RawOrigin<AccountId>, Error = Origin::PezpalletsOrigin>,
{
fn try_convert(o: Origin) -> Result<Location, Origin> {
o.try_with_caller(|caller| match caller.try_into() {
@@ -278,7 +278,7 @@ pub type LocalOriginToLocation = SignedToAccountId20<RuntimeOrigin, AccountId, R
/// the right message queues.
pub type XcmRouter = WithUniqueTopic<(
// Two routers - use UMP to communicate with the relay chain:
cumulus_primitives_utility::ParentAsUmp<TeyrChainSystem, (), ()>,
pezcumulus_primitives_utility::ParentAsUmp<TeyrChainSystem, (), ()>,
// ..and XCMP to communicate with the sibling chains.
XcmpQueue,
)>;
@@ -325,11 +325,11 @@ pub enum CurrencyId {
}
// How to convert from CurrencyId to Location
pub struct CurrencyIdToLocation<AssetXConverter>(sp_std::marker::PhantomData<AssetXConverter>);
impl<AssetXConverter> sp_runtime::traits::Convert<CurrencyId, Option<Location>>
pub struct CurrencyIdToLocation<AssetXConverter>(pezsp_std::marker::PhantomData<AssetXConverter>);
impl<AssetXConverter> pezsp_runtime::traits::Convert<CurrencyId, Option<Location>>
for CurrencyIdToLocation<AssetXConverter>
where
AssetXConverter: sp_runtime::traits::MaybeEquivalence<Location, AssetId>,
AssetXConverter: pezsp_runtime::traits::MaybeEquivalence<Location, AssetId>,
{
fn convert(currency: CurrencyId) -> Option<Location> {
match currency {
@@ -514,8 +514,8 @@ impl TryFrom<u8> for Transactors {
impl UtilityEncodeCall for Transactors {
fn encode_call(self, call: UtilityAvailableCalls) -> Vec<u8> {
match self {
Transactors::Relay => pezpallet_xcm_transactor::Pallet::<Runtime>::encode_call(
pezpallet_xcm_transactor::Pallet(sp_std::marker::PhantomData::<Runtime>),
Transactors::Relay => pezpallet_xcm_transactor::Pezpallet::<Runtime>::encode_call(
pezpallet_xcm_transactor::Pezpallet(pezsp_std::marker::PhantomData::<Runtime>),
call,
),
}
@@ -536,7 +536,7 @@ parameter_types! {
#[cfg(feature = "runtime-benchmarks")]
mod testing {
use sp_runtime::traits::MaybeEquivalence;
use pezsp_runtime::traits::MaybeEquivalence;
use xcm_builder::WithLatestLocationConverter;
use super::*;
@@ -601,8 +601,8 @@ mod tests {
}
mod location_conversion {
use sp_core::H160;
use sp_runtime::traits::{Convert, TryConvert};
use pezsp_core::H160;
use pezsp_runtime::traits::{Convert, TryConvert};
use xcm::latest::{Junction::AccountKey20, Location};
use crate::{
@@ -691,7 +691,7 @@ mod tests {
#[test]
fn test_transactors_encode_call() {
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let transactor = Transactors::Relay;
let call = UtilityAvailableCalls::AsDerivative(0, vec![]);
let encoded = transactor.encode_call(call);
@@ -846,7 +846,7 @@ mod tests {
#[test]
fn test_absolute_and_relative_reserve_with_self_location() {
// We need to use TestExternalities for this test
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
// Test with the actual SelfLocationAbsolute
let self_location = SelfLocationAbsolute::get();
let asset =
+4 -4
View File
@@ -1,6 +1,6 @@
use pezframe_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight};
use sp_runtime::Perbill;
use sp_version::{Cow, RuntimeVersion};
use pezsp_runtime::Perbill;
use pezsp_version::{Cow, RuntimeVersion};
use crate::types::BlockNumber;
@@ -33,7 +33,7 @@ pub const P_FACTOR: u128 = 10;
pub const Q_FACTOR: u128 = 100;
pub const POLY_DEGREE: u8 = 1;
#[sp_version::runtime_version]
#[pezsp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: Cow::Borrowed("template-teyrchain"),
impl_name: Cow::Borrowed("template-teyrchain"),
@@ -81,7 +81,7 @@ pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
#[cfg(not(feature = "async-backing"))]
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
pezcumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet
@@ -2,13 +2,13 @@
use alloc::{format, vec, vec::Vec};
use cumulus_primitives_core::ParaId;
use pezcumulus_primitives_core::ParaId;
use pezframe_support::build_struct_json_patch;
use teyrchains_common::AuraId;
use serde_json::Value;
use sp_core::{ecdsa, Pair, Public};
use sp_genesis_builder::PresetId;
use sp_runtime::traits::{IdentifyAccount, Verify};
use pezsp_core::{ecdsa, Pair, Public};
use pezsp_genesis_builder::PresetId;
use pezsp_runtime::traits::{IdentifyAccount, Verify};
use crate::{
constants::currency::EXISTENTIAL_DEPOSIT, AccountId, BalancesConfig, CollatorSelectionConfig,
@@ -124,8 +124,8 @@ fn development_config_genesis() -> Value {
/// Provides the JSON representation of predefined genesis config for given `id`.
pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
let patch = match id.as_ref() {
sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET => local_testnet_genesis(),
sp_genesis_builder::DEV_RUNTIME_PRESET => development_config_genesis(),
pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET => local_testnet_genesis(),
pezsp_genesis_builder::DEV_RUNTIME_PRESET => development_config_genesis(),
_ => return None,
};
Some(
@@ -138,8 +138,8 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
/// List of supported presets.
pub fn preset_names() -> Vec<PresetId> {
vec![
PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET),
PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET),
PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET),
PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET),
]
}
@@ -274,14 +274,14 @@ mod tests {
fn get_preset_roundtrips_known_ids() {
// LOCAL_TESTNET
let p =
super::get_preset(&PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET))
super::get_preset(&PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET))
.expect("local preset should exist");
let from_api = parse_bytes(p);
let from_fn = super::local_testnet_genesis();
assert_eq!(from_api, from_fn, "local_testnet preset must match function output");
// DEV
let p = super::get_preset(&PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET))
let p = super::get_preset(&PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET))
.expect("dev preset should exist");
let from_api = parse_bytes(p);
let from_fn = super::development_config_genesis();
@@ -292,11 +292,11 @@ mod tests {
fn preset_names_lists_supported() {
let names = super::preset_names();
assert!(
names.contains(&PresetId::from(sp_genesis_builder::DEV_RUNTIME_PRESET)),
names.contains(&PresetId::from(pezsp_genesis_builder::DEV_RUNTIME_PRESET)),
"DEV preset should be listed"
);
assert!(
names.contains(&PresetId::from(sp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET)),
names.contains(&PresetId::from(pezsp_genesis_builder::LOCAL_TESTNET_RUNTIME_PRESET)),
"LOCAL_TESTNET preset should be listed"
);
}
+32 -29
View File
@@ -1,3 +1,6 @@
pub use pezframe_system as frame_system;
pub use pezframe_support as frame_support;
pub use pezcumulus_pezpallet_teyrchain_system as cumulus_pallet_parachain_system;
#![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
#![recursion_limit = "256"]
@@ -22,19 +25,19 @@ use pezframe_support::{
};
pub use genesis_config_presets::TEYRCHAIN_ID;
use smallvec::smallvec;
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::H160;
pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
use pezsp_core::H160;
#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
use sp_runtime::{
pub use pezsp_runtime::BuildStorage;
use pezsp_runtime::{
impl_opaque_keys,
traits::{DispatchInfoOf, Dispatchable, Get, PostDispatchInfoOf, UniqueSaturatedInto},
transaction_validity::{TransactionValidity, TransactionValidityError},
};
pub use sp_runtime::{MultiAddress, Perbill, Permill};
use sp_std::prelude::{Vec, *};
pub use pezsp_runtime::{MultiAddress, Perbill, Permill};
use pezsp_std::prelude::{Vec, *};
#[cfg(feature = "std")]
use sp_version::NativeVersion;
use pezsp_version::NativeVersion;
use crate::{
configs::pezpallet_custom_origins,
@@ -61,7 +64,7 @@ use crate::{
use crate::{constants::SLOT_DURATION, types::ConsensusHook};
#[cfg(feature = "runtime-benchmarks")]
type ExistentialDeposit = sp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
type ExistentialDeposit = pezsp_core::ConstU128<EXISTENTIAL_DEPOSIT>;
impl fp_self_contained::SelfContainedCall for RuntimeCall {
type SignedInfo = H160;
@@ -108,7 +111,7 @@ impl fp_self_contained::SelfContainedCall for RuntimeCall {
fn apply_self_contained(
self,
info: Self::SignedInfo,
) -> Option<sp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {
) -> Option<pezsp_runtime::DispatchResultWithInfo<PostDispatchInfoOf<Self>>> {
match self {
call @ RuntimeCall::Ethereum(pezpallet_ethereum::Call::transact { .. }) =>
Some(call.dispatch(RuntimeOrigin::from(
@@ -156,8 +159,8 @@ impl WeightToFeePolynomial for WeightToFee {
/// continue syncing the network through upgrades to even the core data
/// structures.
pub mod opaque {
pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use sp_runtime::{
pub use pezsp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;
use pezsp_runtime::{
generic,
traits::{BlakeTwo256, Hash as HashT},
};
@@ -262,7 +265,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -271,13 +274,13 @@ mod apis {
}
mod benchmarks {
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
@@ -318,7 +321,7 @@ mod apis {
mod system {
type Executive = Executive;
type System = System;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type RuntimeVersion = VERSION;
type AccountId = AccountId;
type Nonce = Nonce;
@@ -327,13 +330,13 @@ mod apis {
}
mod benchmarks {
type AllPalletsWithSystem = AllPezpalletsWithSystem;
type AllPezpalletsWithSystem = AllPezpalletsWithSystem;
type Assets = Assets;
type AssetManager = AssetManager;
type AssetType = AssetType;
type RuntimeOrigin = RuntimeOrigin;
type RelayLocation = RelayLocation;
type ParachainSystem = TeyrChainSystem;
type TeyrchainSystem = TeyrChainSystem;
type System = System;
type ExistentialDeposit = ExistentialDeposit;
type AssetId = AssetId;
@@ -382,7 +385,7 @@ mod test {
use fp_self_contained::SelfContainedCall;
use pezframe_support::dispatch::GetDispatchInfo;
use pezpallet_ethereum::TransactionAction;
use sp_core::{H160, H256, U256};
use pezsp_core::{H160, H256, U256};
use crate::{Runtime, RuntimeCall, RuntimeOrigin};
@@ -457,10 +460,10 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
AccountId20(addr.0),
90000000000000000,
@@ -482,7 +485,7 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.validate_self_contained(
&H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
&info,
@@ -500,18 +503,18 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let who = AccountId20(addr.0);
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
who,
90000000000000000,
);
// I do not know any other way to increase nonce
for _ in 0..842 {
pezframe_system::Pallet::<Runtime>::inc_account_nonce(who);
pezframe_system::Pezpallet::<Runtime>::inc_account_nonce(who);
}
let () = call
.pre_dispatch_self_contained(&addr, &info, 0)
@@ -528,7 +531,7 @@ mod test {
});
let info = call.get_dispatch_info();
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.pre_dispatch_self_contained(
&H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
&info,
@@ -545,18 +548,18 @@ mod test {
transaction: get_transaction(),
});
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let addr =
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap();
let who = AccountId20(addr.0);
let _ = pezpallet_balances::Pallet::<Runtime>::force_set_balance(
let _ = pezpallet_balances::Pezpallet::<Runtime>::force_set_balance(
RuntimeOrigin::root(),
who,
90000000000000000,
);
// I do not know any other way to increase nonce
for _ in 0..842 {
pezframe_system::Pallet::<Runtime>::inc_account_nonce(who);
pezframe_system::Pezpallet::<Runtime>::inc_account_nonce(who);
}
let _ = call
.apply_self_contained(addr)
@@ -572,7 +575,7 @@ mod test {
keep_alive: true,
});
sp_io::TestExternalities::default().execute_with(|| {
pezsp_io::TestExternalities::default().execute_with(|| {
let i = call.apply_self_contained(
H160::from_str("0x78DFFE34196A5987fb73fb9bbfd55a2A33e467Fb").unwrap(),
);
+1 -1
View File
@@ -6,7 +6,7 @@ use pezpallet_evm::{
use pezpallet_evm_precompile_modexp::Modexp;
use pezpallet_evm_precompile_sha3fips::Sha3FIPS256;
use pezpallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256};
use sp_core::H160;
use pezsp_core::H160;
#[derive(Default)]
pub struct OpenZeppelinPrecompiles<R>(PhantomData<R>);
+8 -8
View File
@@ -11,15 +11,15 @@ use pezkuwi_runtime_common::impls::{
LocatableAssetConverter, VersionedLocatableAsset, VersionedLocationConverter,
};
use scale_info::TypeInfo;
use sp_core::ConstU32;
use sp_runtime::{
use pezsp_core::ConstU32;
use pezsp_runtime::{
generic,
traits::{BlakeTwo256, IdentifyAccount, Verify},
Perbill, RuntimeDebug,
};
use sp_version::RuntimeVersion;
use pezsp_version::RuntimeVersion;
use xcm::{
latest::{InteriorLocation, Junction::PalletInstance},
latest::{InteriorLocation, Junction::PezpalletInstance},
VersionedLocation,
};
use xcm_builder::PayOverXcm;
@@ -60,7 +60,7 @@ pub type AssetId = u128;
pub type Nonce = u32;
/// A hash of some data used by the chain.
pub type Hash = sp_core::H256;
pub type Hash = pezsp_core::H256;
/// An index to a block.
pub type BlockNumber = u32;
@@ -75,7 +75,7 @@ pub type Header = generic::Header<BlockNumber, BlakeTwo256>;
pub type Block = generic::Block<Header, UncheckedExtrinsic>;
/// The TransactionExtension to the basic transaction logic.
pub type TxExtension = cumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
Runtime,
(
pezframe_system::CheckNonZeroSender<Runtime>,
@@ -109,7 +109,7 @@ pub type PriceForSiblingTeyrChainDelivery = pezkuwi_runtime_common::xcm_sender::
/// Configures the number of blocks that can be created without submission of validity proof to the relay chain
#[cfg(not(feature = "tanssi"))]
pub type ConsensusHook = cumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
pub type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
Runtime,
RELAY_CHAIN_SLOT_DURATION_MILLIS,
BLOCK_PTYRESSING_VELOCITY,
@@ -204,7 +204,7 @@ parameter_types! {
mod test {
mod filter {
use pezframe_support::traits::InstanceFilter;
use sp_core::H256;
use pezsp_core::H256;
use crate::{types::ProxyType, AssetManager, RuntimeCall};
+2 -2
View File
@@ -18,8 +18,8 @@
//! Expose the auto generated weight files.
pub mod block_weights;
pub mod cumulus_pezpallet_teyrchain_system;
pub mod cumulus_pezpallet_xcmp_queue;
pub mod pezcumulus_pezpallet_teyrchain_system;
pub mod pezcumulus_pezpallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod pezpallet_asset_manager;
pub mod pezpallet_assets;
@@ -1,5 +1,5 @@
//! Autogenerated weights for `cumulus_pezpallet_teyrchain_system`
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -16,10 +16,10 @@
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=benchmarking/results/results-cumulus_pezpallet_teyrchain_system.json
// --pezpallet=cumulus_pezpallet_teyrchain_system
// --json-file=benchmarking/results/results-pezcumulus_pezpallet_teyrchain_system.json
// --pezpallet=pezcumulus_pezpallet_teyrchain_system
// --chain=dev
// --output=benchmarking/new-benchmarks/cumulus_pezpallet_teyrchain_system.rs
// --output=benchmarking/new-benchmarks/pezcumulus_pezpallet_teyrchain_system.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -29,9 +29,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pezpallet_teyrchain_system`.
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
impl<T: frame_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)
@@ -1,5 +1,5 @@
//! Autogenerated weights for `cumulus_pezpallet_xcmp_queue`
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
@@ -16,10 +16,10 @@
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=benchmarking/results/results-cumulus_pezpallet_xcmp_queue.json
// --pezpallet=cumulus_pezpallet_xcmp_queue
// --json-file=benchmarking/results/results-pezcumulus_pezpallet_xcmp_queue.json
// --pezpallet=pezcumulus_pezpallet_xcmp_queue
// --chain=dev
// --output=benchmarking/new-benchmarks/cumulus_pezpallet_xcmp_queue.rs
// --output=benchmarking/new-benchmarks/pezcumulus_pezpallet_xcmp_queue.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -29,9 +29,9 @@
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `cumulus_pezpallet_xcmp_queue`.
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> cumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
impl<T: frame_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 {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_asset_manager`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_asset_manager::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_asset_manager::WeightInfo for WeightInfo<T> {
/// Storage: `AssetManager::AssetIdType` (r:1 w:1)
/// Proof: `AssetManager::AssetIdType` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Assets::Asset` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_assets`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_assets::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_assets::WeightInfo for WeightInfo<T> {
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(174), added: 2649, mode: `MaxEncodedLen`)
/// Storage: `Assets::NextAssetId` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_balances`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_balances::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_balances::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
fn transfer_allow_death() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_collator_selection`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_collator_selection::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_collator_selection::WeightInfo for WeightInfo<T> {
/// Storage: `Session::NextKeys` (r:20 w:0)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `CollatorSelection::Invulnerables` (r:0 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_conviction_voting`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_conviction_voting::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_conviction_voting::WeightInfo for WeightInfo<T> {
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_evm`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_evm::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_evm::WeightInfo for WeightInfo<T> {
fn withdraw() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_message_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_message_queue::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_message_queue::WeightInfo for WeightInfo<T> {
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_multisig`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_multisig::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Proof Size summary in bytes:
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_preimage`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_preimage::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_preimage::WeightInfo for WeightInfo<T> {
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(79), added: 2554, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_proxy`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_proxy::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_proxy::WeightInfo for WeightInfo<T> {
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 31]`.
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_referenda`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_referenda::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_referenda::WeightInfo for WeightInfo<T> {
/// Storage: `Referenda::ReferendumCount` (r:1 w:1)
/// Proof: `Referenda::ReferendumCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_scheduler`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_scheduler::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_scheduler::WeightInfo for WeightInfo<T> {
/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn service_agendas_base() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_session`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_session::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_session::WeightInfo for WeightInfo<T> {
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_sudo`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_sudo::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_sudo::WeightInfo for WeightInfo<T> {
/// Storage: `Sudo::Key` (r:1 w:1)
/// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
fn set_key() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_timestamp`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_timestamp::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_timestamp::WeightInfo for WeightInfo<T> {
/// Storage: `Timestamp::Now` (r:1 w:1)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Aura::CurrentSlot` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_treasury`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_treasury::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_treasury::WeightInfo for WeightInfo<T> {
/// Storage: `Treasury::ProposalCount` (r:1 w:1)
/// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Treasury::Approvals` (r:1 w:1)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_utility`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_utility::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_utility::WeightInfo for WeightInfo<T> {
/// The range of component `c` is `[0, 1000]`.
fn batch(c: u32, ) -> Weight {
// Proof Size summary in bytes:
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_whitelist`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_whitelist::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_whitelist::WeightInfo for WeightInfo<T> {
/// Storage: `Whitelist::WhitelistedCall` (r:1 w:1)
/// Proof: `Whitelist::WhitelistedCall` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
/// Storage: `Preimage::StatusFor` (r:1 w:0)
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm::WeightInfo for WeightInfo<T> {
/// Storage: `PezkuwiXcm::AuthorizedAliases` (r:1 w:1)
/// Proof: `PezkuwiXcm::AuthorizedAliases` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn add_authorized_alias() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm_transactor`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm_transactor::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm_transactor::WeightInfo for WeightInfo<T> {
/// Storage: `XcmTransactor::IndexToAccount` (r:1 w:1)
/// Proof: `XcmTransactor::IndexToAccount` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn register() -> Weight {
@@ -31,7 +31,7 @@ use core::marker::PhantomData;
/// Weight functions for `pezpallet_xcm_weight_trader`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezpallet_xcm_weight_trader::WeightInfo for WeightInfo<T> {
impl<T: frame_system::Config> pezpallet_xcm_weight_trader::WeightInfo for WeightInfo<T> {
/// Storage: `XcmWeightTrader::SupportedAssets` (r:1 w:1)
/// Proof: `XcmWeightTrader::SupportedAssets` (`max_values`: None, `max_size`: Some(635), added: 3110, mode: `MaxEncodedLen`)
fn add_asset() -> Weight {