fix: Complete snowbridge pezpallet rebrand and critical bug fixes

- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs)
- pallet/ directories → pezpallet/ (4 locations)
- Fixed pezpallet.rs self-include recursion bug
- Fixed sc-chain-spec hardcoded crate name in derive macro
- Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API)
- Added BizinikiwiConfig type alias for zombienet tests
- Deleted obsolete session state files

Verified: pezsnowbridge-pezpallet-*, pezpallet-staking,
pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
This commit is contained in:
2025-12-16 09:57:23 +03:00
parent eea003e14d
commit 3139ffa25e
3022 changed files with 42157 additions and 23579 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "FRAME pallet staking async"
description = "FRAME pezpallet staking async"
documentation = "https://docs.rs/pezpallet-staking-async"
[lints]
@@ -1,6 +1,6 @@
[package]
name = "pezpallet-staking-async-ah-client"
description = "Pallet handling the communication with staking-rc-client. It's role is to glue the staking pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way."
description = "Pallet handling the communication with staking-rc-client. It's role is to glue the staking pezpallet (on AssetHub chain) and session pezpallet (on Relay Chain) in a transparent way."
license = "Apache-2.0"
version = "0.1.0"
edition.workspace = true
@@ -17,7 +17,7 @@
//! The client for AssetHub, intended to be used in the relay chain.
//!
//! The counter-part for this pallet is `pezpallet-staking-async-rc-client` on AssetHub.
//! The counter-part for this pezpallet is `pezpallet-staking-async-rc-client` on AssetHub.
//!
//! This documentation is divided into the following sections:
//!
@@ -36,15 +36,15 @@
//!
//! All outgoing messages are handled by a single trait
//! [`pezpallet_staking_async_rc_client::SendToAssetHub`]. They match the incoming messages of the
//! `rc-client` pallet.
//! `rc-client` pezpallet.
//!
//! ## Local Interfaces:
//!
//! Living on the relay chain, this pallet must:
//! Living on the relay chain, this pezpallet must:
//!
//! * Implement [`pezpallet_session::SessionManager`] (and historical variant thereof) to _give_
//! information to the session pallet.
//! * Implements [`SessionInterface`] to _receive_ information from the session pallet
//! information to the session pezpallet.
//! * Implements [`SessionInterface`] to _receive_ information from the session pezpallet
//! * Implement [`pezsp_staking::offence::OnOffenceHandler`].
//! * Implement reward related APIs ([`pezframe_support::traits::RewardsReporter`]).
//!
@@ -54,7 +54,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
pub use pallet::*;
pub use pezpallet::*;
#[cfg(test)]
pub mod mock;
@@ -73,7 +73,7 @@ use pezsp_staking::{
SessionIndex,
};
/// The balance type seen from this pallet's PoV.
/// The balance type seen from this pezpallet's PoV.
pub type BalanceOf<T> = <T as Config>::CurrencyBalance;
/// Type alias for offence details
@@ -93,14 +93,14 @@ macro_rules! log {
($level:tt, $patter:expr $(, $values:expr)* $(,)?) => {
log::$level!(
target: $crate::LOG_TARGET,
concat!("[{:?}] ⬇️ ", $patter), <pezframe_system::Pallet<T>>::block_number() $(, $values)*
concat!("[{:?}] ⬇️ ", $patter), <pezframe_system::Pezpallet<T>>::block_number() $(, $values)*
)
};
}
/// Interface to talk to the local session pallet.
/// Interface to talk to the local session pezpallet.
pub trait SessionInterface {
/// The validator id type of the session pallet
/// The validator id type of the session pezpallet
type ValidatorId: Clone;
fn validators() -> Vec<Self::ValidatorId>;
@@ -120,18 +120,18 @@ impl<T: Config + pezpallet_session::Config + pezpallet_session::historical::Conf
type ValidatorId = <T as pezpallet_session::Config>::ValidatorId;
fn validators() -> Vec<Self::ValidatorId> {
pezpallet_session::Pallet::<T>::validators()
pezpallet_session::Pezpallet::<T>::validators()
}
fn prune_up_to(index: SessionIndex) {
pezpallet_session::historical::Pallet::<T>::prune_up_to(index)
pezpallet_session::historical::Pezpallet::<T>::prune_up_to(index)
}
fn report_offence(offender: Self::ValidatorId, severity: OffenceSeverity) {
pezpallet_session::Pallet::<T>::report_offence(offender, severity)
pezpallet_session::Pezpallet::<T>::report_offence(offender, severity)
}
}
/// Represents the operating mode of the pallet.
/// Represents the operating mode of the pezpallet.
#[derive(
Default,
DecodeWithMemTracking,
@@ -149,8 +149,8 @@ impl<T: Config + pezpallet_session::Config + pezpallet_session::historical::Conf
pub enum OperatingMode {
/// Fully delegated mode.
///
/// In this mode, the pallet performs no core logic and forwards all relevant operations
/// to the fallback implementation defined in the pallet's `Config::Fallback`.
/// In this mode, the pezpallet performs no core logic and forwards all relevant operations
/// to the fallback implementation defined in the pezpallet's `Config::Fallback`.
///
/// This mode is useful when staking is in synchronous mode and waiting for the signal to
/// transition to asynchronous mode.
@@ -162,16 +162,16 @@ pub enum OperatingMode {
/// In this mode, offences are accepted and buffered for later transmission to AssetHub.
/// However, session change reports are dropped.
///
/// This mode is useful when the counterpart pallet `pezpallet-staking-async-rc-client` on
/// This mode is useful when the counterpart pezpallet `pezpallet-staking-async-rc-client` on
/// AssetHub is not yet ready to process incoming messages.
Buffered,
/// Fully active mode.
///
/// The pallet performs all core logic directly and handles messages immediately.
/// The pezpallet performs all core logic directly and handles messages immediately.
///
/// This mode is useful when staking is ready to execute in asynchronous mode and the
/// counterpart pallet `pezpallet-staking-async-rc-client` is ready to accept messages.
/// counterpart pezpallet `pezpallet-staking-async-rc-client` is ready to accept messages.
Active,
}
@@ -200,8 +200,8 @@ impl<T: Config>
}
}
#[pezframe_support::pallet]
pub mod pallet {
#[pezframe_support::pezpallet]
pub mod pezpallet {
use crate::*;
use alloc::vec;
use pezframe_support::traits::{Hooks, UnixTime};
@@ -216,7 +216,7 @@ pub mod pallet {
const STORAGE_VERSION: StorageVersion = StorageVersion::new(1);
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {
/// The balance type of the runtime's currency interface.
type CurrencyBalance: pezsp_runtime::traits::AtLeast32BitUnsigned
@@ -236,7 +236,7 @@ pub mod pallet {
/// An origin type that ensures an incoming message is from asset hub.
type AssetHubOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// The origin that can control this pallet's operations.
/// The origin that can control this pezpallet's operations.
type AdminOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// Our communication interface to AssetHub.
@@ -274,14 +274,14 @@ pub mod pallet {
/// (74 bytes).
type MaxOffenceBatchSize: Get<u32>;
/// Interface to talk to the local Session pallet.
/// Interface to talk to the local Session pezpallet.
type SessionInterface: SessionInterface<ValidatorId = Self::AccountId>;
/// A fallback implementation to delegate logic to when the pallet is in
/// A fallback implementation to delegate logic to when the pezpallet is in
/// [`OperatingMode::Passive`].
///
/// This type must implement the `historical::SessionManager` and `OnOffenceHandler`
/// interface and is expected to behave as a stand-in for this pallets core logic when
/// interface and is expected to behave as a stand-in for this pezpallets core logic when
/// delegation is active.
type Fallback: pezpallet_session::SessionManager<Self::AccountId>
+ OnOffenceHandler<
@@ -296,20 +296,20 @@ pub mod pallet {
type MaxSessionReportRetries: Get<u32>;
}
#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
#[pezpallet::storage_version(STORAGE_VERSION)]
pub struct Pezpallet<T>(_);
/// The queued validator sets for a given planning session index.
///
/// This is received via a call from AssetHub.
#[pallet::storage]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::unbounded]
pub type ValidatorSet<T: Config> = StorageValue<_, (u32, Vec<T::AccountId>), OptionQuery>;
/// An incomplete validator set report.
#[pallet::storage]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::unbounded]
pub type IncompleteValidatorSetReport<T: Config> =
StorageValue<_, rc_client::ValidatorSetReport<T::AccountId>, OptionQuery>;
@@ -317,41 +317,41 @@ pub mod pallet {
///
/// This is populated during a session, and is flushed and sent over via [`SendToAssetHub`]
/// at each session end.
#[pallet::storage]
#[pezpallet::storage]
pub type ValidatorPoints<T: Config> =
StorageMap<_, Twox64Concat, T::AccountId, u32, ValueQuery>;
/// Indicates the current operating mode of the pallet.
/// Indicates the current operating mode of the pezpallet.
///
/// This value determines how the pallet behaves in response to incoming and outgoing messages,
/// This value determines how the pezpallet behaves in response to incoming and outgoing messages,
/// particularly whether it should execute logic directly, defer it, or delegate it entirely.
#[pallet::storage]
#[pezpallet::storage]
pub type Mode<T: Config> = StorageValue<_, OperatingMode, ValueQuery>;
/// A storage value that is set when a `new_session` gives a new validator set to the session
/// pallet, and is cleared on the next call.
/// pezpallet, and is cleared on the next call.
///
/// The inner u32 is the id of the said activated validator set. While not relevant here, good
/// to know this is the planning era index of staking-async on AH.
///
/// Once cleared, we know a validator set has been activated, and therefore we can send a
/// timestamp to AH.
#[pallet::storage]
#[pezpallet::storage]
pub type NextSessionChangesValidators<T: Config> = StorageValue<_, u32, OptionQuery>;
/// The session index at which the latest elected validator set was applied.
///
/// This is used to determine if an offence, given a session index, is in the current active era
/// or not.
#[pallet::storage]
#[pezpallet::storage]
pub type ValidatorSetAppliedAt<T: Config> = StorageValue<_, SessionIndex, OptionQuery>;
/// A session report that is outgoing, and should be sent.
///
/// This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
/// or the second value reaches zero, at which point we drop it.
#[pallet::storage]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::unbounded]
pub type OutgoingSessionReport<T: Config> =
StorageValue<_, (SessionReport<T::AccountId>, u32), OptionQuery>;
@@ -435,38 +435,38 @@ pub mod pallet {
}
/// Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
#[pallet::storage]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::unbounded]
pub(crate) type OffenceSendQueueOffences<T: Config> =
StorageMap<_, Twox64Concat, u32, QueuedOffencePageOf<T>, ValueQuery>;
/// Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
#[pallet::storage]
#[pezpallet::storage]
pub(crate) type OffenceSendQueueCursor<T: Config> = StorageValue<_, u32, ValueQuery>;
#[pallet::genesis_config]
#[pezpallet::genesis_config]
#[derive(pezframe_support::DefaultNoBound, pezframe_support::DebugNoBound)]
pub struct GenesisConfig<T: Config> {
/// The initial operating mode of the pallet.
/// The initial operating mode of the pezpallet.
pub operating_mode: OperatingMode,
pub _marker: core::marker::PhantomData<T>,
}
#[pallet::genesis_build]
#[pezpallet::genesis_build]
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
fn build(&self) {
// Set the initial operating mode of the pallet.
// Set the initial operating mode of the pezpallet.
Mode::<T>::put(self.operating_mode.clone());
}
}
#[pallet::error]
#[pezpallet::error]
pub enum Error<T> {
/// Could not process incoming message because incoming messages are blocked.
Blocked,
}
#[pallet::event]
#[pallet::generate_deposit(fn deposit_event)]
#[pezpallet::event]
#[pezpallet::generate_deposit(fn deposit_event)]
pub enum Event<T: Config> {
/// A new validator set has been received.
ValidatorSetReceived {
@@ -478,7 +478,7 @@ pub mod pallet {
/// We could not merge, and therefore dropped a buffered message.
///
/// Note that this event is more resembling an error, but we use an event because in this
/// pallet we need to mutate storage upon some failures.
/// pezpallet we need to mutate storage upon some failures.
CouldNotMergeAndDropped,
/// The validator set received is way too small, as per
/// [`Config::MinimumValidatorSetSize`].
@@ -495,7 +495,7 @@ pub mod pallet {
/// diagnosing issues in production or test environments.
#[derive(Clone, Encode, Decode, DecodeWithMemTracking, PartialEq, TypeInfo, RuntimeDebug)]
pub enum UnexpectedKind {
/// A validator set was received while the pallet is in [`OperatingMode::Passive`].
/// A validator set was received while the pezpallet is in [`OperatingMode::Passive`].
ReceivedValidatorSetWhilePassive,
/// An unexpected transition was applied between operating modes.
@@ -528,10 +528,10 @@ pub mod pallet {
ValidatorPointDropped,
}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::call_index(0)]
#[pallet::weight(
#[pezpallet::call]
impl<T: Config> Pezpallet<T> {
#[pezpallet::call_index(0)]
#[pezpallet::weight(
// Reads:
// - OperatingMode
// - IncompleteValidatorSetReport
@@ -616,18 +616,18 @@ pub mod pallet {
Ok(())
}
/// Allows governance to force set the operating mode of the pallet.
#[pallet::call_index(1)]
#[pallet::weight(T::DbWeight::get().writes(1))]
/// Allows governance to force set the operating mode of the pezpallet.
#[pezpallet::call_index(1)]
#[pezpallet::weight(T::DbWeight::get().writes(1))]
pub fn set_mode(origin: OriginFor<T>, mode: OperatingMode) -> DispatchResult {
T::AdminOrigin::ensure_origin(origin)?;
Self::do_set_mode(mode);
Ok(())
}
/// manually do what this pallet was meant to do at the end of the migration.
#[pallet::call_index(2)]
#[pallet::weight(T::DbWeight::get().writes(1))]
/// manually do what this pezpallet was meant to do at the end of the migration.
#[pezpallet::call_index(2)]
#[pezpallet::weight(T::DbWeight::get().writes(1))]
pub fn force_on_migration_end(origin: OriginFor<T>) -> DispatchResult {
T::AdminOrigin::ensure_origin(origin)?;
Self::on_migration_end();
@@ -635,8 +635,8 @@ pub mod pallet {
}
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
#[pezpallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T> {
fn on_initialize(_n: BlockNumberFor<T>) -> Weight {
let mut weight = Weight::zero();
@@ -699,7 +699,7 @@ pub mod pallet {
impl<T: Config>
historical::SessionManager<T::AccountId, pezsp_staking::Exposure<T::AccountId, BalanceOf<T>>>
for Pallet<T>
for Pezpallet<T>
{
fn new_session(
new_index: pezsp_staking::SessionIndex,
@@ -734,7 +734,7 @@ pub mod pallet {
}
}
impl<T: Config> pezpallet_session::SessionManager<T::AccountId> for Pallet<T> {
impl<T: Config> pezpallet_session::SessionManager<T::AccountId> for Pezpallet<T> {
fn new_session(session_index: u32) -> Option<Vec<T::AccountId>> {
match Mode::<T>::get() {
OperatingMode::Passive => T::Fallback::new_session(session_index),
@@ -773,7 +773,7 @@ pub mod pallet {
T::AccountId,
(T::AccountId, pezsp_staking::Exposure<T::AccountId, BalanceOf<T>>),
Weight,
> for Pallet<T>
> for Pezpallet<T>
{
fn on_offence(
offenders: &[OffenceDetails<
@@ -796,7 +796,7 @@ pub mod pallet {
}
}
impl<T: Config> RewardsReporter<T::AccountId> for Pallet<T> {
impl<T: Config> RewardsReporter<T::AccountId> for Pezpallet<T> {
fn reward_by_ids(rewards: impl IntoIterator<Item = (T::AccountId, u32)>) {
match Mode::<T>::get() {
OperatingMode::Passive => T::Fallback::reward_by_ids(rewards),
@@ -805,7 +805,7 @@ pub mod pallet {
}
}
impl<T: Config> pezpallet_authorship::EventHandler<T::AccountId, BlockNumberFor<T>> for Pallet<T> {
impl<T: Config> pezpallet_authorship::EventHandler<T::AccountId, BlockNumberFor<T>> for Pezpallet<T> {
fn note_author(author: T::AccountId) {
match Mode::<T>::get() {
OperatingMode::Passive => T::Fallback::note_author(author),
@@ -814,14 +814,14 @@ pub mod pallet {
}
}
impl<T: Config> Pallet<T> {
impl<T: Config> Pezpallet<T> {
/// Hook to be called when the AssetHub migration begins.
///
/// This transitions the pallet into [`OperatingMode::Buffered`], meaning it will act as the
/// This transitions the pezpallet into [`OperatingMode::Buffered`], meaning it will act as the
/// primary staking module on the relay chain but will buffer outgoing messages instead of
/// sending them to AssetHub.
///
/// While in this mode, the pallet stops delegating to the fallback implementation and
/// While in this mode, the pezpallet stops delegating to the fallback implementation and
/// temporarily accumulates events for later processing.
pub fn on_migration_start() {
debug_assert!(
@@ -833,11 +833,11 @@ pub mod pallet {
/// Hook to be called when the AssetHub migration is complete.
///
/// This transitions the pallet into [`OperatingMode::Active`], meaning the counterpart
/// pallet on AssetHub is ready to accept incoming messages, and this pallet can resume
/// This transitions the pezpallet into [`OperatingMode::Active`], meaning the counterpart
/// pezpallet on AssetHub is ready to accept incoming messages, and this pezpallet can resume
/// sending them.
///
/// In this mode, the pallet becomes fully active and processes all staking-related events
/// In this mode, the pezpallet becomes fully active and processes all staking-related events
/// directly.
pub fn on_migration_end() {
debug_assert!(
@@ -939,7 +939,7 @@ pub mod pallet {
offenders.iter().cloned().zip(slash_fraction).for_each(|(offence, fraction)| {
if ongoing_offence {
// report the offence to the session pallet.
// report the offence to the session pezpallet.
T::SessionInterface::report_offence(
offence.offender.0.clone(),
OffenceSeverity(*fraction),
@@ -973,7 +973,7 @@ pub mod pallet {
offenders.iter().cloned().zip(slash_fraction).for_each(|(offence, fraction)| {
if ongoing_offence {
// report the offence to the session pallet.
// report the offence to the session pezpallet.
T::SessionInterface::report_offence(
offence.offender.0.clone(),
OffenceSeverity(*fraction),
@@ -97,7 +97,7 @@ pub(crate) fn roll_until_next_active(mut end_index: SessionIndex) -> Vec<Account
leftover: false,
validator_points: Default::default(),
};
assert_ok!(pezpallet_staking_async_rc_client::Pallet::<Runtime>::relay_session_report(
assert_ok!(pezpallet_staking_async_rc_client::Pezpallet::<Runtime>::relay_session_report(
RuntimeOrigin::root(),
report
));
@@ -148,7 +148,7 @@ pub(crate) fn roll_until_next_active(mut end_index: SessionIndex) -> Vec<Account
leftover: false,
validator_points: Default::default(),
};
assert_ok!(pezpallet_staking_async_rc_client::Pallet::<Runtime>::relay_session_report(
assert_ok!(pezpallet_staking_async_rc_client::Pezpallet::<Runtime>::relay_session_report(
RuntimeOrigin::root(),
report
));
@@ -403,7 +403,7 @@ impl pezpallet_staking_async_rc_client::SendToRelayChain for DeliverToRelay {
shared::CounterAHRCValidatorSet::mutate(|x| *x += 1);
shared::in_rc(|| {
let origin = crate::rc::RuntimeOrigin::root();
pezpallet_staking_async_ah_client::Pallet::<crate::rc::Runtime>::validator_set(
pezpallet_staking_async_ah_client::Pezpallet::<crate::rc::Runtime>::validator_set(
origin,
report.clone(),
)
@@ -45,7 +45,7 @@ fn on_receive_session_report() {
leftover: false,
};
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
session_report.clone(),
));
@@ -80,7 +80,7 @@ fn on_receive_session_report() {
roll_many(10);
// send the session report.
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: i,
@@ -105,7 +105,7 @@ fn on_receive_session_report() {
}
// Next session we will begin election.
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: 3,
@@ -219,7 +219,7 @@ fn validator_set_send_fail_retries() {
leftover: false,
};
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
session_report.clone(),
));
@@ -233,7 +233,7 @@ fn validator_set_send_fail_retries() {
roll_many(10);
// send the session report.
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: i,
@@ -258,7 +258,7 @@ fn validator_set_send_fail_retries() {
}
// Next session we will begin election.
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: 3,
@@ -391,7 +391,7 @@ fn roll_many_eras() {
None
};
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: session_counter,
@@ -459,7 +459,7 @@ fn receives_old_session_report() {
leftover: false,
};
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
session_report.clone(),
));
@@ -488,7 +488,7 @@ fn receives_old_session_report() {
assert_eq!(rc_client::LastSessionReportEndingIndex::<T>::get(), Some(0));
// then send it again, this is basically dropped, although it returns `Ok()`
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
session_report
));
@@ -510,7 +510,7 @@ fn receives_session_report_in_future() {
// Receive report for end of 1, start of 1 and plan 2.
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: 0,
@@ -544,7 +544,7 @@ fn receives_session_report_in_future() {
assert_eq!(staking_async::ErasRewardPoints::<T>::get(&0).total, 50);
// skip end_index 1, send 2
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: 2,
@@ -596,7 +596,7 @@ fn session_report_burst() {
// then send 20 sessions all at once. This is enough to schedule multiple elections, but we
// only schedule one.
for s in 1..=20 {
assert_ok!(rc_client::Pallet::<T>::relay_session_report(
assert_ok!(rc_client::Pezpallet::<T>::relay_session_report(
RuntimeOrigin::root(),
rc_client::SessionReport {
end_index: s,
@@ -651,7 +651,7 @@ fn on_offence_current_era() {
// flush the events.
let _ = staking_events_since_last_call();
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
vec![
(
@@ -748,7 +748,7 @@ fn on_offence_current_era_instant_apply() {
// flush the events.
let _ = staking_events_since_last_call();
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
vec![
(
@@ -831,12 +831,12 @@ fn on_offence_non_validator() {
// flush the events.
let _ = staking_events_since_last_call();
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
vec![(
5,
rc_client::Offence {
// this offender is unknown to the staking pallet.
// this offender is unknown to the staking pezpallet.
offender: 666,
reporters: vec![],
slash_fraction: Perbill::from_percent(50),
@@ -871,7 +871,7 @@ fn on_offence_previous_era() {
assert_eq!(oldest_reportable_era, 2);
// WHEN we report an offence older than Era 2 (oldest reportable era).
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
// offence is in era 1
vec![(
@@ -896,7 +896,7 @@ fn on_offence_previous_era() {
// WHEN: report an offence for the session belonging to the previous era
assert_eq!(Rotator::<Runtime>::era_start_session_index(2), Some(10));
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
// offence is in era 2
vec![(
@@ -971,7 +971,7 @@ fn on_offence_previous_era_instant_apply() {
// report an offence for the session belonging to the previous era
assert_eq!(Rotator::<Runtime>::era_start_session_index(1), Some(5));
assert_ok!(rc_client::Pallet::<Runtime>::relay_new_offence_paged(
assert_ok!(rc_client::Pezpallet::<Runtime>::relay_new_offence_paged(
RuntimeOrigin::root(),
// offence is in era 1
vec![(
@@ -49,7 +49,7 @@ mod tests {
// initial state of ah
shared::in_ah(|| {
assert_eq!(pezframe_system::Pallet::<ah::Runtime>::block_number(), 1);
assert_eq!(pezframe_system::Pezpallet::<ah::Runtime>::block_number(), 1);
assert_eq!(pezpallet_staking_async::CurrentEra::<ah::Runtime>::get(), Some(0));
assert_eq!(
ActiveEra::<ah::Runtime>::get(),
@@ -62,7 +62,7 @@ mod tests {
assert_eq!(ah_client::Mode::<rc::Runtime>::get(), OperatingMode::Active);
// go to session 1 in RC and test.
// when
assert!(pezframe_system::Pallet::<rc::Runtime>::block_number() == 1);
assert!(pezframe_system::Pezpallet::<rc::Runtime>::block_number() == 1);
// given end session 0, start session 1, plan 2
rc::roll_until_matches(
@@ -71,7 +71,7 @@ mod tests {
);
// then
assert_eq!(pezframe_system::Pallet::<rc::Runtime>::block_number(), rc::Period::get());
assert_eq!(pezframe_system::Pezpallet::<rc::Runtime>::block_number(), rc::Period::get());
});
shared::in_rc(|| {
@@ -84,7 +84,7 @@ mod tests {
shared::in_ah(|| {
// ah's rc-client has also progressed some blocks, equal to 4 sessions
assert_eq!(pezframe_system::Pallet::<ah::Runtime>::block_number(), 120);
assert_eq!(pezframe_system::Pezpallet::<ah::Runtime>::block_number(), 120);
// election is ongoing, and has just started
assert!(matches!(
multi_block::CurrentPhase::<ah::Runtime>::get(),
@@ -177,12 +177,12 @@ mod tests {
let pre_migration_era_points =
staking_classic::ErasRewardPoints::<rc::Runtime>::get(1).total;
ah_client::Pallet::<rc::Runtime>::on_migration_start();
ah_client::Pezpallet::<rc::Runtime>::on_migration_start();
assert_eq!(ah_client::Mode::<rc::Runtime>::get(), OperatingMode::Buffered);
// get current session
let current_session = pezpallet_session::CurrentIndex::<rc::Runtime>::get();
pre_migration_block_number = pezframe_system::Pallet::<rc::Runtime>::block_number();
pre_migration_block_number = pezframe_system::Pezpallet::<rc::Runtime>::block_number();
// assume migration takes at least one era
// go forward by more than `SessionsPerEra` sessions -- staking will not rotate a new
@@ -194,7 +194,7 @@ mod tests {
},
true,
);
let migration_start_block_number = pezframe_system::Pallet::<rc::Runtime>::block_number();
let migration_start_block_number = pezframe_system::Pezpallet::<rc::Runtime>::block_number();
// ensure era is still 1 on RC.
// (Session events are received by AHClient and never passed on to staking-classic once
@@ -365,7 +365,7 @@ mod tests {
// Before migration ends, verify we have 9 buffered offences across multiple sessions
assert_eq!(OffenceSendQueue::<rc::Runtime>::count(), 13);
ah_client::Pallet::<rc::Runtime>::on_migration_end();
ah_client::Pezpallet::<rc::Runtime>::on_migration_end();
assert_eq!(ah_client::Mode::<rc::Runtime>::get(), OperatingMode::Active);
// `MaxOffenceBatchSize` is set to 2 in this test, so we will send over the 13 offences
@@ -478,7 +478,7 @@ mod tests {
// - But only the highest slash fraction per validator per era gets queued for
// processing
// - So we see 13 OffenceReported events but only 3 offences in the processing queue
// - The queue processing happens one offence per block in staking-async pallet.
// - The queue processing happens one offence per block in staking-async pezpallet.
// Process all queued offences (one offence per block)
// We have 3 offences queued (one per validator), so we need to roll 3 times
@@ -676,7 +676,7 @@ mod tests {
shared::in_rc(|| {
rc::roll_to_next_session(true);
post_migration_session_block_number =
pezframe_system::Pallet::<rc::Runtime>::block_number();
pezframe_system::Pezpallet::<rc::Runtime>::block_number();
// all the buffered validators points are flushed
assert_eq!(ah_client::ValidatorPoints::<rc::Runtime>::iter().count(), 0,);
@@ -236,7 +236,7 @@ impl onchain::Config for OnChainSeqPhragmen {
impl pezpallet_staking::Config for Runtime {
type OldCurrency = Balances;
type Currency = Balances;
type UnixTime = pezpallet_timestamp::Pallet<Self>;
type UnixTime = pezpallet_timestamp::Pezpallet<Self>;
type AdminOrigin = pezframe_system::EnsureRoot<Self::AccountId>;
type EraPayout = ();
type ElectionProvider = onchain::OnChainExecution<OnChainSeqPhragmen>;
@@ -337,7 +337,7 @@ impl ah_client::SendToAssetHub for DeliverToAH {
shared::CounterRCAHSessionReport::mutate(|x| *x += 1);
shared::in_ah(|| {
let origin = crate::ah::RuntimeOrigin::root();
rc_client::Pallet::<crate::ah::Runtime>::relay_session_report(
rc_client::Pezpallet::<crate::ah::Runtime>::relay_session_report(
origin,
session_report.clone(),
)
@@ -359,7 +359,7 @@ impl ah_client::SendToAssetHub for DeliverToAH {
shared::in_ah(|| {
crate::shared::CounterRCAHNewOffence::mutate(|x| *x += offences.len() as u32);
let origin = crate::ah::RuntimeOrigin::root();
rc_client::Pallet::<crate::ah::Runtime>::relay_new_offence_paged(
rc_client::Pezpallet::<crate::ah::Runtime>::relay_new_offence_paged(
origin,
offences.clone(),
)
@@ -378,7 +378,7 @@ parameter_types! {
}
pub fn historical_events_since_last_call() -> Vec<pezpallet_session::historical::Event<Runtime>> {
let all = pezframe_system::Pallet::<Runtime>::read_events_for_pallet::<
let all = pezframe_system::Pezpallet::<Runtime>::read_events_for_pallet::<
pezpallet_session::historical::Event<Runtime>,
>();
let seen = HistoricalEventsIndex::get();
@@ -387,7 +387,7 @@ pub fn historical_events_since_last_call() -> Vec<pezpallet_session::historical:
}
pub fn offence_events_since_last_call() -> Vec<pezpallet_offences::Event> {
let all = pezframe_system::Pallet::<Runtime>::read_events_for_pallet::<pezpallet_offences::Event>();
let all = pezframe_system::Pezpallet::<Runtime>::read_events_for_pallet::<pezpallet_offences::Event>();
let seen = OffenceEventsIndex::get();
OffenceEventsIndex::set(all.len());
all.into_iter().skip(seen).collect()
@@ -395,7 +395,7 @@ pub fn offence_events_since_last_call() -> Vec<pezpallet_offences::Event> {
pub fn session_events_since_last_call() -> Vec<pezpallet_session::Event<Runtime>> {
let all =
pezframe_system::Pallet::<Runtime>::read_events_for_pallet::<pezpallet_session::Event<Runtime>>();
pezframe_system::Pezpallet::<Runtime>::read_events_for_pallet::<pezpallet_session::Event<Runtime>>();
let seen = SessionEventsIndex::get();
SessionEventsIndex::set(all.len());
all.into_iter().skip(seen).collect()
@@ -403,7 +403,7 @@ pub fn session_events_since_last_call() -> Vec<pezpallet_session::Event<Runtime>
pub fn ah_client_events_since_last_call() -> Vec<ah_client::Event<Runtime>> {
let all =
pezframe_system::Pallet::<Runtime>::read_events_for_pallet::<ah_client::Event<Runtime>>();
pezframe_system::Pezpallet::<Runtime>::read_events_for_pallet::<ah_client::Event<Runtime>>();
let seen = AhClientEventsIndex::get();
AhClientEventsIndex::set(all.len());
all.into_iter().skip(seen).collect()
@@ -524,8 +524,8 @@ impl ExtBuilder {
for v in self.session_keys {
// min some funds, create account and ref counts
pezpallet_balances::Pallet::<T>::mint_into(&v, INITIAL_BALANCE).unwrap();
pezpallet_session::Pallet::<T>::set_keys(
pezpallet_balances::Pezpallet::<T>::mint_into(&v, INITIAL_BALANCE).unwrap();
pezpallet_session::Pezpallet::<T>::set_keys(
RuntimeOrigin::signed(v),
SessionKeys { other: UintAuthorityId(v) },
vec![],
@@ -559,7 +559,7 @@ pub(crate) fn receive_validator_set_at(
new_validator_set: new_validator_set.clone(),
};
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
// go forward till one more session such that these validators are in the session queue now
roll_until_matches(|| pezpallet_session::CurrentIndex::<Runtime>::get() == sessions + 1, false);
@@ -193,7 +193,7 @@ fn upon_receiving_election_queue_and_activate_next_session() {
new_validator_set: vec![1, 2, 3, 4],
};
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
// session validators are not set yet.
assert!(pezpallet_session::Validators::<Runtime>::get().is_empty());
@@ -275,7 +275,7 @@ fn upon_receiving_election_queue_and_activate_next_session() {
leftover: false,
new_validator_set: vec![1, 2, 3, 5],
};
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(RuntimeOrigin::root(), report));
// rotate one more session
roll_until_matches(|| pezpallet_session::CurrentIndex::<Runtime>::get() == 6, false);
@@ -490,7 +490,7 @@ fn reports_unexpected_event_if_too_many_validator_points() {
validator_points, ..
})
)] if validator_points.len() as u32 == 1 + 1
// 1 more validator point added by the authorship pallet in our test setup
// 1 more validator point added by the authorship pezpallet in our test setup
));
})
}
@@ -507,7 +507,7 @@ fn drops_too_small_validator_set() {
};
// This will raise okay, but nothing is queued, and event is emitted
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(RuntimeOrigin::root(), report),);
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(RuntimeOrigin::root(), report),);
assert_eq!(
ah_client_events_since_last_call(),
vec![ah_client::Event::SetTooSmallAndDropped]
@@ -530,7 +530,7 @@ fn splitted_drops_too_small_validator_set() {
.split(1);
assert_eq!(parts.len(), 2);
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(
RuntimeOrigin::root(),
parts[0].clone()
));
@@ -547,7 +547,7 @@ fn splitted_drops_too_small_validator_set() {
assert_eq!(ah_client::ValidatorSet::<Runtime>::get(), None);
assert!(ah_client::IncompleteValidatorSetReport::<Runtime>::get().is_some());
assert_ok!(ah_client::Pallet::<Runtime>::validator_set(
assert_ok!(ah_client::Pezpallet::<Runtime>::validator_set(
RuntimeOrigin::root(),
parts[1].clone()
));
@@ -578,7 +578,7 @@ fn on_offence_non_validator() {
// submit an offence for validator 5 in current session, which is not a validator
// really. Note that we have to provide a manual identification, as the default one
// won't work here.
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::create_offence(
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::create_offence(
RuntimeOrigin::root(),
vec![(5, Perbill::from_percent(50))],
Some(vec![Default::default()]),
@@ -617,7 +617,7 @@ fn offences_first_queued_and_then_sent() {
let _ = session_events_since_last_call();
// submit an offence for two accounts
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::create_offence(
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::create_offence(
RuntimeOrigin::root(),
vec![(4, Perbill::from_percent(50)), (5, Perbill::from_percent(50))],
Some(vec![Default::default(), Default::default()]),
@@ -687,12 +687,12 @@ fn offences_spam_sent_page_by_page() {
)
})
.collect::<Vec<_>>();
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::report_offence(RuntimeOrigin::root(), offences));
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::report_offence(RuntimeOrigin::root(), offences));
// all offences reported to the offence pallet.
// all offences reported to the offence pezpallet.
assert_eq!(offence_events_since_last_call().len() as u32, offence_count);
// offence pallet will try and deduplicate them, but they all have the same time-slot,
// offence pezpallet will try and deduplicate them, but they all have the same time-slot,
// therefore are all reported to ah-client.
assert_eq!(ah_client::OffenceSendQueue::<Runtime>::count(), offence_count);
// 2.5 pages worth of offences
@@ -764,7 +764,7 @@ fn on_offence_non_validator_and_active() {
let _ = session_events_since_last_call();
// submit an offence for 5 and 4, first a non-validator and second an active one.
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::create_offence(
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::create_offence(
RuntimeOrigin::root(),
vec![(4, Perbill::from_percent(50)), (5, Perbill::from_percent(50))],
Some(vec![Default::default(), Default::default()]),
@@ -829,7 +829,7 @@ fn wont_disable_past_session_offence() {
let _ = session_events_since_last_call();
// submit an offence for 1, who is a past validator, in a past session.
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::create_offence(
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::create_offence(
RuntimeOrigin::root(),
vec![(1, Perbill::from_percent(50))],
Some(vec![Default::default()]),
@@ -875,7 +875,7 @@ fn on_offence_disable_and_re_enabled_next_set() {
let _ = session_events_since_last_call();
// submit an offence for 4 in the current session
assert_ok!(pezpallet_root_offences::Pallet::<Runtime>::create_offence(
assert_ok!(pezpallet_root_offences::Pezpallet::<Runtime>::create_offence(
RuntimeOrigin::root(),
vec![(4, Perbill::from_percent(50))],
Some(vec![Default::default()]),
@@ -951,7 +951,7 @@ mod session_pruning {
for i in 1..=10 {
let session_validators =
(i * 10..(i + 1) * 10).map(|x| x as AccountId).collect::<Vec<_>>();
assert_ok!(ah_client::Pallet::<T>::validator_set(
assert_ok!(ah_client::Pezpallet::<T>::validator_set(
RuntimeOrigin::root(),
ValidatorSetReport {
id: i,
@@ -975,11 +975,11 @@ mod session_pruning {
)
}
// ensure that we have the root for these recorded in the historical session pallet
// ensure that we have the root for these recorded in the historical session pezpallet
assert_eq!(pezpallet_session::historical::StoredRange::<T>::get(), Some((2, 12)));
// send back a new validator set, but with some pruning info.
assert_ok!(ah_client::Pallet::<T>::validator_set(
assert_ok!(ah_client::Pezpallet::<T>::validator_set(
RuntimeOrigin::root(),
ValidatorSetReport {
id: 999,
@@ -1014,7 +1014,7 @@ mod blocking {
// when
assert_noop!(
ah_client::Pallet::<Runtime>::validator_set(RuntimeOrigin::root(), report),
ah_client::Pezpallet::<Runtime>::validator_set(RuntimeOrigin::root(), report),
ah_client::Error::<Runtime>::Blocked,
);
@@ -1032,7 +1032,7 @@ mod blocking {
// nothing is queued; No outgoing messages expected in passive mode.
assert_eq!(LocalQueue::get().unwrap(), vec![]);
// make pallet active
// make pezpallet active
Mode::<T>::put(OperatingMode::Active);
// roll another session
@@ -1374,7 +1374,7 @@ mod splitting {
assert!(ah_client::ValidatorSet::<Runtime>::get().is_none());
assert_eq!(
pezframe_system::Pallet::<Runtime>::read_events_for_pallet::<ah_client::Event<Runtime>>(
pezframe_system::Pezpallet::<Runtime>::read_events_for_pallet::<ah_client::Event<Runtime>>(
),
vec![
ah_client::Event::<T>::ValidatorSetReceived {
@@ -1411,7 +1411,7 @@ mod key_proofs {
// receive a validator set, and trigger a 3 new sessions, such that we store some
// roots.
assert_ok!(ah_client::Pallet::<T>::validator_set(
assert_ok!(ah_client::Pezpallet::<T>::validator_set(
RuntimeOrigin::root(),
ValidatorSetReport {
id: 0,
@@ -1440,12 +1440,12 @@ mod key_proofs {
let key_ids = <SessionKeys as OpaqueKeys>::key_ids();
assert_eq!(key_ids.len(), 1, "we have inserted only one key type in mock");
let keys = pezpallet_session::Pallet::<T>::load_keys(&1).unwrap();
let keys = pezpallet_session::Pezpallet::<T>::load_keys(&1).unwrap();
let our_key = keys.get::<UintAuthorityId>(key_ids[0]);
assert_eq!(key_ids[0], DUMMY);
let proof =
pezpallet_session::historical::Pallet::<T>::prove((DUMMY, &our_key.encode()[..]))
pezpallet_session::historical::Pezpallet::<T>::prove((DUMMY, &our_key.encode()[..]))
.unwrap();
assert_eq!(proof.session, 3);
@@ -1453,7 +1453,7 @@ mod key_proofs {
// proof is valid, and it results into a default exposure.
assert_eq!(
pezpallet_session::historical::Pallet::<T>::check_proof(
pezpallet_session::historical::Pezpallet::<T>::check_proof(
(DUMMY, &our_key.encode()[..]),
proof
)
@@ -1,6 +1,6 @@
[package]
name = "pezpallet-staking-async-rc-client"
description = "Pallet handling the communication with staking-ah-client. It's role is to glue the staking pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way."
description = "Pallet handling the communication with staking-ah-client. It's role is to glue the staking pezpallet (on AssetHub chain) and session pezpallet (on Relay Chain) in a transparent way."
license = "Apache-2.0"
version = "0.1.0"
edition.workspace = true
@@ -17,7 +17,7 @@
//! The client for the relay chain, intended to be used in AssetHub.
//!
//! The counter-part for this pallet is `pezpallet-staking-async-ah-client` on the relay chain.
//! The counter-part for this pezpallet is `pezpallet-staking-async-ah-client` on the relay chain.
//!
//! This documentation is divided into the following sections:
//!
@@ -50,10 +50,10 @@
//!
//! ## Local Interfaces
//!
//! Within this pallet, we need to talk to the staking-async pallet in AH. This is done via
//! Within this pezpallet, we need to talk to the staking-async pezpallet in AH. This is done via
//! [`AHStakingInterface`] trait.
//!
//! The staking pallet in AH has no communication with session pallet whatsoever, therefore its
//! The staking pezpallet in AH has no communication with session pezpallet whatsoever, therefore its
//! implementation of `SessionManager`, and it associated type `SessionInterface` no longer exists.
//! Moreover, pezpallet-staking-async no longer has a notion of timestamp locally, and only relies in
//! the timestamp passed in in the `SessionReport`.
@@ -76,7 +76,7 @@
//! Let's first consider the old school model, when staking and session lived in the same runtime.
//! Assume 3 sessions is one era.
//!
//! The session pallet issues the following events:
//! The session pezpallet issues the following events:
//!
//! end_session / start_session / new_session (plan session)
//!
@@ -89,16 +89,16 @@
//! Staking should then do the following:
//!
//! * once a request to plan session 3 comes in, it must return a validator set. This is queued
//! internally in the session pallet, and is enacted later.
//! internally in the session pezpallet, and is enacted later.
//! * at the same time, staking increases its notion of `current_era` by 1. Yet, `active_era` is
//! intact. This is because the validator elected for era n+1 are not yet active in the session
//! pallet.
//! pezpallet.
//! * once a request to _start_ session 3 comes in, staking will rotate its `active_era` to also be
//! incremented to n+1.
//!
//! ### Asynchronous Model
//!
//! Now, if staking lives in AH and the session pallet lives in the relay chain, how will this look
//! Now, if staking lives in AH and the session pezpallet lives in the relay chain, how will this look
//! like?
//!
//! Staking knows that by the time the relay-chain session index `3` (and later on `6` and so on) is
@@ -123,8 +123,8 @@ use pezsp_runtime::{traits::Convert, Perbill, TransactionOutcome};
use pezsp_staking::SessionIndex;
use xcm::latest::{send_xcm, Location, SendError, SendXcm, Xcm};
/// Export everything needed for the pallet to be used in the runtime.
pub use pallet::*;
/// Export everything needed for the pezpallet to be used in the runtime.
pub use pezpallet::*;
const LOG_TARGET: &str = "runtime::staking-async::rc-client";
@@ -134,7 +134,7 @@ macro_rules! log {
($level:tt, $patter:expr $(, $values:expr)* $(,)?) => {
log::$level!(
target: $crate::LOG_TARGET,
concat!("[{:?}] ⬆️ ", $patter), <pezframe_system::Pallet<T>>::block_number() $(, $values)*
concat!("[{:?}] ⬆️ ", $patter), <pezframe_system::Pezpallet<T>>::block_number() $(, $values)*
)
};
}
@@ -144,7 +144,7 @@ macro_rules! log {
/// This trait should only encapsulate our _outgoing_ communication to the RC. Any incoming
/// communication comes it directly via our calls.
///
/// In a real runtime, this is implemented via XCM calls, much like how the core-time pallet works.
/// In a real runtime, this is implemented via XCM calls, much like how the core-time pezpallet works.
/// In a test runtime, it can be wired to direct function calls.
pub trait SendToRelayChain {
/// The validator account ids.
@@ -168,7 +168,7 @@ impl SendToRelayChain for () {
/// This trait should only encapsulate our outgoing communications. Any incoming message is handled
/// with `Call`s.
///
/// In a real runtime, this is implemented via XCM calls, much like how the coretime pallet works.
/// In a real runtime, this is implemented via XCM calls, much like how the coretime pezpallet works.
/// In a test runtime, it can be wired to direct function call.
pub trait SendToAssetHub {
/// The validator account ids.
@@ -540,7 +540,7 @@ where
/// Our communication trait of `pezpallet-staking-async-rc-client` -> `pezpallet-staking-async`.
///
/// This is merely a shorthand to avoid tightly-coupling the staking pallet to this pallet. It
/// This is merely a shorthand to avoid tightly-coupling the staking pezpallet to this pezpallet. It
/// limits what we can say to `pezpallet-staking-async` to only these functions.
pub trait AHStakingInterface {
/// The validator account id type.
@@ -590,8 +590,8 @@ pub struct Offence<AccountId> {
pub slash_fraction: Perbill,
}
#[pezframe_support::pallet]
pub mod pallet {
#[pezframe_support::pezpallet]
pub mod pezpallet {
use super::*;
use alloc::vec;
use pezframe_system::pezpallet_prelude::{BlockNumberFor, *};
@@ -602,39 +602,39 @@ pub mod pallet {
/// An incomplete incoming session report that we have not acted upon yet.
// Note: this can remain unbounded, as the internals of `AHStakingInterface` is benchmarked, and
// is worst case.
#[pallet::storage]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::unbounded]
pub type IncompleteSessionReport<T: Config> =
StorageValue<_, SessionReport<T::AccountId>, OptionQuery>;
/// The last session report's `end_index` that we have acted upon.
///
/// This allows this pallet to ensure a sequentially increasing sequence of session reports
/// This allows this pezpallet to ensure a sequentially increasing sequence of session reports
/// passed to staking.
///
/// Note that with the XCM being the backbone of communication, we have a guarantee on the
/// ordering of messages. As long as the RC sends session reports in order, we _eventually_
/// receive them in the same correct order as well.
#[pallet::storage]
#[pezpallet::storage]
pub type LastSessionReportEndingIndex<T: Config> = StorageValue<_, SessionIndex, OptionQuery>;
/// A validator set that is outgoing, and should be sent.
///
/// This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
/// or the second value reaches zero, at which point we drop it.
#[pallet::storage]
#[pezpallet::storage]
// TODO: for now we know this ValidatorSetReport is at most validator-count * 32, and we don't
// need its MEL critically.
#[pallet::unbounded]
#[pezpallet::unbounded]
pub type OutgoingValidatorSet<T: Config> =
StorageValue<_, (ValidatorSetReport<T::AccountId>, u32), OptionQuery>;
#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
#[pezpallet::storage_version(STORAGE_VERSION)]
pub struct Pezpallet<T>(_);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
#[pezpallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T> {
fn on_initialize(_: BlockNumberFor<T>) -> Weight {
if let Some((report, retries_left)) = OutgoingValidatorSet::<T>::take() {
match T::SendToRelayChain::validator_set(report.clone()) {
@@ -660,14 +660,14 @@ pub mod pallet {
}
}
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {
/// An origin type that allows us to be sure a call is being dispatched by the relay chain.
///
/// It be can be configured to something like `Root` or relay chain or similar.
type RelayChainOrigin: EnsureOrigin<Self::RuntimeOrigin>;
/// Our communication handle to the local staking pallet.
/// Our communication handle to the local staking pezpallet.
type AHStakingInterface: AHStakingInterface<AccountId = Self::AccountId>;
/// Our communication handle to the relay chain.
@@ -679,8 +679,8 @@ pub mod pallet {
type MaxValidatorSetRetries: Get<u32>;
}
#[pallet::event]
#[pallet::generate_deposit(pub(crate) fn deposit_event)]
#[pezpallet::event]
#[pezpallet::generate_deposit(pub(crate) fn deposit_event)]
pub enum Event<T: Config> {
/// A said session report was received.
SessionReportReceived {
@@ -720,7 +720,7 @@ pub mod pallet {
ValidatorSetDropped,
}
impl<T: Config> RcClientInterface for Pallet<T> {
impl<T: Config> RcClientInterface for Pezpallet<T> {
type AccountId = T::AccountId;
fn validator_set(
@@ -734,11 +734,11 @@ pub mod pallet {
}
}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pezpallet::call]
impl<T: Config> Pezpallet<T> {
/// Called to indicate the start of a new session on the relay chain.
#[pallet::call_index(0)]
#[pallet::weight(
#[pezpallet::call_index(0)]
#[pezpallet::weight(
// `LastSessionReportEndingIndex`: rw
// `IncompleteSessionReport`: rw
T::DbWeight::get().reads_writes(2, 2) + T::AHStakingInterface::weigh_on_relay_session_report(report)
@@ -816,8 +816,8 @@ pub mod pallet {
}
}
#[pallet::call_index(1)]
#[pallet::weight(
#[pezpallet::call_index(1)]
#[pezpallet::weight(
T::AHStakingInterface::weigh_on_new_offences(offences.len() as u32)
)]
pub fn relay_new_offence_paged(
@@ -6,7 +6,7 @@ edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "Reward function for FRAME staking pallet"
description = "Reward function for FRAME staking pezpallet"
documentation = "https://docs.rs/pezpallet-staking-async-reward-fn"
[lints]
@@ -6,7 +6,7 @@ edition.workspace = true
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
description = "RPC runtime API for transaction payment FRAME pallet"
description = "RPC runtime API for transaction payment FRAME pezpallet"
readme = "README.md"
documentation = "https://docs.rs/pezpallet-staking-async-runtime-api"
@@ -1,3 +1,3 @@
Runtime API definition for the staking pallet.
Runtime API definition for the staking pezpallet.
License: Apache-2.0
@@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Runtime API definition for the staking pallet.
//! Runtime API definition for the staking pezpallet.
#![cfg_attr(not(feature = "std"), no_std)]
@@ -25,7 +25,7 @@ the setup, see [Setup](#setup).
## Runtime Overview
This teyrchain runtime is a fake fork of the asset-hub next (created originally by Dónal). It is here
to test the async-staking pallet in a real environment.
to test the async-staking pezpallet in a real environment.
This teyrchain contains:
@@ -36,7 +36,7 @@ This teyrchain contains:
`pezpallet-delegated-staking`.
All of the above are means to stake and select validators for the RELAY-CHAIN, which is eventually
communicated to it via the `pezpallet-staking-async-rc-client` pallet.
communicated to it via the `pezpallet-staking-async-rc-client` pezpallet.
A lot more is in the runtime, and can be eventually removed.
@@ -4,7 +4,7 @@ version = "0.1.0"
publish = false
authors.workspace = true
edition.workspace = true
description = "Simple pallet to store the preset used to generate a runtime's genesis in state"
description = "Simple pezpallet to store the preset used to generate a runtime's genesis in state"
license.workspace = true
homepage.workspace = true
repository.workspace = true
@@ -15,39 +15,39 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Simple pallet that stores the preset that was used to generate the genesis state in the state.
//! Simple pezpallet that stores the preset that was used to generate the genesis state in the state.
#![cfg_attr(not(feature = "std"), no_std)]
pub use pallet::*;
pub use pezpallet::*;
#[frame::pallet]
pub mod pallet {
#[frame::pezpallet]
pub mod pezpallet {
extern crate alloc;
use frame::prelude::*;
#[pallet::storage]
#[pallet::getter(fn preset)]
#[pallet::unbounded]
#[pezpallet::storage]
#[pezpallet::getter(fn preset)]
#[pezpallet::unbounded]
pub type Preset<T: Config> = StorageValue<_, alloc::string::String, OptionQuery>;
#[pallet::genesis_config]
#[pezpallet::genesis_config]
#[derive(DefaultNoBound, DebugNoBound, CloneNoBound, PartialEqNoBound, EqNoBound)]
pub struct GenesisConfig<T: Config> {
pub preset: alloc::string::String,
pub _marker: core::marker::PhantomData<T>,
}
#[pallet::genesis_build]
#[pezpallet::genesis_build]
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
fn build(&self) {
Preset::<T>::put(self.preset.clone());
}
}
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
}
@@ -129,7 +129,7 @@ pub mod system_teyrchain {
}
}
/// Zagros Treasury pallet instance.
/// Zagros Treasury pezpallet instance.
pub const TREASURY_PALLET_ID: u8 = 37;
/// XCM protocol related constants.
@@ -19,16 +19,16 @@
pub use pezpallet_custom_origins::*;
#[pezframe_support::pallet]
#[pezframe_support::pezpallet]
pub mod pezpallet_custom_origins {
use crate::{Balance, CENTS, GRAND};
use pezframe_support::pezpallet_prelude::*;
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[derive(
PartialEq,
@@ -41,7 +41,7 @@ pub mod pezpallet_custom_origins {
TypeInfo,
RuntimeDebug,
)]
#[pallet::origin]
#[pezpallet::origin]
pub enum Origin {
/// Origin for cancelling slashes.
StakingAdmin,
@@ -35,7 +35,7 @@ enum PeopleRuntimePallets<AccountId: Encode> {
IdentityMigrator(IdentityMigratorCalls<AccountId>),
}
/// Call encoding for the calls needed from the Identity Migrator pallet.
/// Call encoding for the calls needed from the Identity Migrator pezpallet.
#[derive(Encode, Decode)]
enum IdentityMigratorCalls<AccountId: Encode> {
#[codec(index = 1)]
@@ -69,7 +69,7 @@ impl<Runtime, AccountId> ToTeyrchainIdentityReaper<Runtime, AccountId> {
let para_sub_account_deposit = deposit(1, 53) / 100;
let para_existential_deposit = EXISTENTIAL_DEPOSIT / 10;
// pallet deposits
// pezpallet deposits
let id_deposit =
para_basic_deposit.saturating_add(para_byte_deposit.saturating_mul(bytes as Balance));
let subs_deposit = para_sub_account_deposit.saturating_mul(subs as Balance);
@@ -169,7 +169,7 @@ where
]);
// send
let _ = <pezpallet_xcm::Pallet<Runtime>>::send(
let _ = <pezpallet_xcm::Pezpallet<Runtime>>::send(
RawOrigin::Root.into(),
Box::new(VersionedLocation::from(destination)),
Box::new(VersionedXcm::from(program)),
@@ -138,20 +138,20 @@ pub mod pezpallet_reward_point_filler {
use pezframe_support::pezpallet_prelude::*;
use pezframe_system::pezpallet_prelude::*;
#[pezframe_support::pallet]
pub mod pallet {
#[pezframe_support::pezpallet]
pub mod pezpallet {
use super::*;
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config + pezpallet_staking_async_ah_client::Config {
type FillValidatorPointsTo: Get<u32>;
}
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T>
#[pezpallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T>
where
T::AccountId: From<[u8; 32]>,
{
@@ -176,7 +176,7 @@ pub mod pezpallet_reward_point_filler {
}
}
impl pezpallet_reward_point_filler::pallet::Config for Runtime {
impl pezpallet_reward_point_filler::pezpallet::Config for Runtime {
// we may have 2/4 validators by default, so let's fill it up to 994.
type FillValidatorPointsTo = ConstU32<994>;
}
@@ -236,8 +236,8 @@ pub fn native_version() -> NativeVersion {
NativeVersion { runtime_version: VERSION, can_author_with: Default::default() }
}
/// A type to identify calls to the Identity pallet. These will be filtered to prevent invocation,
/// locking the state of the pallet and preventing further updates to identities and sub-identities.
/// A type to identify calls to the Identity pezpallet. These will be filtered to prevent invocation,
/// locking the state of the pezpallet and preventing further updates to identities and sub-identities.
/// The locked state will be the genesis state of a new system chain and then removed from the Relay
/// Chain.
pub struct IsIdentityCall;
@@ -293,7 +293,7 @@ impl pezpallet_scheduler::Config for Runtime {
type WeightInfo = weights::pezpallet_scheduler::WeightInfo<Runtime>;
type OriginPrivilegeCmp = pezframe_support::traits::EqualPrivilegeOnly;
type Preimages = Preimage;
type BlockNumberProvider = pezframe_system::Pallet<Runtime>;
type BlockNumberProvider = pezframe_system::Pezpallet<Runtime>;
}
parameter_types! {
@@ -474,7 +474,7 @@ impl pezpallet_mmr::Config for Runtime {
const INDEXING_PREFIX: &'static [u8] = mmr::INDEXING_PREFIX;
type Hashing = Keccak256;
type OnNewRoot = pezpallet_beefy_mmr::DepositBeefyDigest<Runtime>;
type LeafData = pezpallet_beefy_mmr::Pallet<Runtime>;
type LeafData = pezpallet_beefy_mmr::Pezpallet<Runtime>;
type BlockHashProvider = pezpallet_mmr::DefaultBlockHashProvider<Runtime>;
type WeightInfo = weights::pezpallet_mmr::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
@@ -501,7 +501,7 @@ pub struct ParaHeadsRootProvider;
impl BeefyDataProvider<H256> for ParaHeadsRootProvider {
fn extra_data() -> H256 {
let para_heads: Vec<(u32, Vec<u8>)> =
teyrchains_paras::Pallet::<Runtime>::sorted_para_heads();
teyrchains_paras::Pezpallet::<Runtime>::sorted_para_heads();
binary_merkle_tree::merkle_root::<mmr::Hashing, _>(
para_heads.into_iter().map(|pair| pair.encode()),
)
@@ -573,7 +573,7 @@ impl pezsp_runtime::traits::Convert<AccountId, Option<AccountId>> for IdentityVa
}
/// A testing type that implements SessionManager, it receives a new validator set from
/// `StakingAhClient`, but it prevents them from being passed over to the session pallet and
/// `StakingAhClient`, but it prevents them from being passed over to the session pezpallet and
/// just uses the previous session keys.
pub struct MaybeUsePreviousValidatorsElse<I>(core::marker::PhantomData<I>);
@@ -754,7 +754,7 @@ enum AssetHubRuntimePallets<AccountId> {
RcClient(RcClientCalls<AccountId>),
}
/// Call encoding for the calls needed from the rc-client pallet.
/// Call encoding for the calls needed from the rc-client pezpallet.
#[derive(Encode, Decode)]
enum RcClientCalls<AccountId> {
/// A session with the given index has started.
@@ -1003,7 +1003,7 @@ parameter_types! {
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const PayoutSpendPeriod: BlockNumber = 30 * DAYS;
// The asset's interior location for the paying account. This is the Treasury
// pallet instance (which sits at index 37).
// pezpallet instance (which sits at index 37).
pub TreasuryInteriorLocation: InteriorLocation = PalletInstance(37).into();
pub const TipCountdown: BlockNumber = 1 * DAYS;
@@ -1235,7 +1235,7 @@ impl pezpallet_multisig::Config for Runtime {
type DepositFactor = DepositFactor;
type MaxSignatories = MaxSignatories;
type WeightInfo = weights::pezpallet_multisig::WeightInfo<Runtime>;
type BlockNumberProvider = pezframe_system::Pallet<Runtime>;
type BlockNumberProvider = pezframe_system::Pezpallet<Runtime>;
}
parameter_types! {
@@ -1336,7 +1336,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Indices(pezpallet_indices::Call::free{..}) |
RuntimeCall::Indices(pezpallet_indices::Call::freeze{..}) |
// Specifically omitting Indices `transfer`, `force_transfer`
// Specifically omitting the entire Balances pallet
// Specifically omitting the entire Balances pezpallet
RuntimeCall::Session(..) |
RuntimeCall::Grandpa(..) |
RuntimeCall::Utility(..) |
@@ -1355,7 +1355,7 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Vesting(pezpallet_vesting::Call::vest_other{..}) |
// Specifically omitting Vesting `vested_transfer`, and `force_vested_transfer`
RuntimeCall::Scheduler(..) |
// Specifically omitting Sudo pallet
// Specifically omitting Sudo pezpallet
RuntimeCall::Proxy(..) |
RuntimeCall::Multisig(..) |
RuntimeCall::Registrar(paras_registrar::Call::register{..}) |
@@ -1436,7 +1436,7 @@ impl pezpallet_proxy::Config for Runtime {
type CallHasher = BlakeTwo256;
type AnnouncementDepositBase = AnnouncementDepositBase;
type AnnouncementDepositFactor = AnnouncementDepositFactor;
type BlockNumberProvider = pezframe_system::Pallet<Runtime>;
type BlockNumberProvider = pezframe_system::Pezpallet<Runtime>;
}
impl teyrchains_origin::Config for Runtime {}
@@ -1490,7 +1490,7 @@ parameter_types! {
pub const MessageQueueMaxStale: u32 = 48;
}
/// Message processor to handle any messages that were enqueued into the `MessageQueue` pallet.
/// Message processor to handle any messages that were enqueued into the `MessageQueue` pezpallet.
pub struct MessageProcessor;
impl ProcessMessage for MessageProcessor {
type Origin = AggregateMessageOrigin;
@@ -1773,11 +1773,11 @@ impl pezpallet_asset_rate::Config for Runtime {
type BenchmarkHelper = pezkuwi_runtime_common::impls::benchmarks::AssetRateArguments;
}
// Notify `coretime` pallet when a lease swap occurs
// Notify `coretime` pezpallet when a lease swap occurs
pub struct SwapLeases;
impl OnSwap for SwapLeases {
fn on_swap(one: ParaId, other: ParaId) {
coretime::Pallet::<Runtime>::on_legacy_lease_swap(one, other);
coretime::Pezpallet::<Runtime>::on_legacy_lease_swap(one, other);
}
}
@@ -1873,7 +1873,7 @@ mod runtime {
#[runtime::pezpallet_index(23)]
pub type Multisig = pezpallet_multisig;
// Election pallet. Only works with staking, but placed here to maintain indices.
// Election pezpallet. Only works with staking, but placed here to maintain indices.
#[runtime::pezpallet_index(24)]
pub type ElectionProviderMultiPhase = pezpallet_election_provider_multi_phase;
@@ -1948,13 +1948,13 @@ mod runtime {
#[runtime::pezpallet_index(68)]
pub type PresetStore = pezpallet_staking_async_preset_store;
#[runtime::pezpallet_index(69)]
pub type RewardPointFiller = pezpallet_reward_point_filler::pallet;
pub type RewardPointFiller = pezpallet_reward_point_filler::pezpallet;
// Migrations pallet
// Migrations pezpallet
#[runtime::pezpallet_index(98)]
pub type MultiBlockMigrations = pezpallet_migrations;
// Pallet for sending XCM.
// Pezpallet for sending XCM.
#[runtime::pezpallet_index(99)]
pub type XcmPallet = pezpallet_xcm;
@@ -1966,11 +1966,11 @@ mod runtime {
#[runtime::pezpallet_index(101)]
pub type AssetRate = pezpallet_asset_rate;
// Root testing pallet.
// Root testing pezpallet.
#[runtime::pezpallet_index(102)]
pub type RootTesting = pezpallet_root_testing;
// Root offences pallet
// Root offences pezpallet
#[runtime::pezpallet_index(103)]
pub type RootOffences = pezpallet_root_offences;
@@ -1984,7 +1984,7 @@ mod runtime {
#[runtime::pezpallet_index(202)]
pub type BeefyMmrLeaf = pezpallet_beefy_mmr;
// Pallet for migrating Identity to a teyrchain. To be removed post-migration.
// Pezpallet for migrating Identity to a teyrchain. To be removed post-migration.
#[runtime::pezpallet_index(248)]
pub type IdentityMigrator = identity_migrator;
}
@@ -2732,15 +2732,15 @@ pezsp_api::impl_runtime_apis! {
use pezframe_benchmarking::BenchmarkList;
use pezframe_support::traits::StorageInfoTrait;
use pezpallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_offences_benchmarking::Pallet as OffencesBench;
use pezpallet_election_provider_support_benchmarking::Pallet as ElectionProviderBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use pezpallet_session_benchmarking::Pezpallet as SessionBench;
use pezpallet_offences_benchmarking::Pezpallet as OffencesBench;
use pezpallet_election_provider_support_benchmarking::Pezpallet as ElectionProviderBench;
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
use pezframe_system_benchmarking::Pezpallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
let mut list = Vec::<BenchmarkList>::new();
list_benchmarks!(list, extra);
@@ -2761,12 +2761,12 @@ pezsp_api::impl_runtime_apis! {
use pezsp_storage::TrackedStorageKey;
// Trying to add benchmarks directly to some pallets caused cyclic dependency issues.
// To get around that, we separated the benchmarks into its own crate.
use pezpallet_session_benchmarking::Pallet as SessionBench;
use pezpallet_offences_benchmarking::Pallet as OffencesBench;
use pezpallet_election_provider_support_benchmarking::Pallet as ElectionProviderBench;
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use pezpallet_session_benchmarking::Pezpallet as SessionBench;
use pezpallet_offences_benchmarking::Pezpallet as OffencesBench;
use pezpallet_election_provider_support_benchmarking::Pezpallet as ElectionProviderBench;
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
use pezframe_system_benchmarking::Pezpallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
impl pezpallet_session_benchmarking::Config for Runtime {}
impl pezpallet_offences_benchmarking::Config for Runtime {}
@@ -2959,8 +2959,8 @@ pezsp_api::impl_runtime_apis! {
}
}
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
let whitelist: Vec<TrackedStorageKey> = AllPalletsWithSystem::whitelisted_storage_keys();
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezframe_system
// --pezpallet=pezframe_system
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -27,10 +27,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezframe_system_extensions
// --pezpallet=pezframe_system_extensions
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::assigned_slots
// --pezpallet=pezkuwi_runtime_common::assigned_slots
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::auctions
// --pezpallet=pezkuwi_runtime_common::auctions
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::crowdloan
// --pezpallet=pezkuwi_runtime_common::crowdloan
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::identity_migrator
// --pezpallet=pezkuwi_runtime_common::identity_migrator
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::paras_registrar
// --pezpallet=pezkuwi_runtime_common::paras_registrar
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_common::slots
// --pezpallet=pezkuwi_runtime_common::slots
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::configuration
// --pezpallet=pezkuwi_runtime_teyrchains::configuration
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::coretime
// --pezpallet=pezkuwi_runtime_teyrchains::coretime
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::disputes
// --pezpallet=pezkuwi_runtime_teyrchains::disputes
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::disputes::slashing
// --pezpallet=pezkuwi_runtime_teyrchains::disputes::slashing
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::hrmp
// --pezpallet=pezkuwi_runtime_teyrchains::hrmp
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::inclusion
// --pezpallet=pezkuwi_runtime_teyrchains::inclusion
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::initializer
// --pezpallet=pezkuwi_runtime_teyrchains::initializer
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::on_demand
// --pezpallet=pezkuwi_runtime_teyrchains::on_demand
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::paras
// --pezpallet=pezkuwi_runtime_teyrchains::paras
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezkuwi_runtime_teyrchains::paras_inherent
// --pezpallet=pezkuwi_runtime_teyrchains::paras_inherent
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_asset_rate
// --pezpallet=pezpallet_asset_rate
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_balances
// --pezpallet=pezpallet_balances
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_beefy_mmr
// --pezpallet=pezpallet_beefy_mmr
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_conviction_voting
// --pezpallet=pezpallet_conviction_voting
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_identity
// --pezpallet=pezpallet_identity
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_indices
// --pezpallet=pezpallet_indices
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_message_queue
// --pezpallet=pezpallet_message_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_migrations
// --pezpallet=pezpallet_migrations
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_mmr
// --pezpallet=pezpallet_mmr
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_multisig
// --pezpallet=pezpallet_multisig
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_offences
// --pezpallet=pezpallet_offences
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_parameters
// --pezpallet=pezpallet_parameters
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_preimage
// --pezpallet=pezpallet_preimage
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_proxy
// --pezpallet=pezpallet_proxy
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_recovery
// --pezpallet=pezpallet_recovery
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_referenda
// --pezpallet=pezpallet_referenda
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -25,14 +25,14 @@
// Executed Command:
// ./target/production/pezkuwi
// benchmark
// pallet
// pezpallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --pallet=pezpallet_referenda
// --pezpallet=pezpallet_referenda
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_scheduler
// --pezpallet=pezpallet_scheduler
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_session
// --pezpallet=pezpallet_session
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_sudo
// --pezpallet=pezpallet_sudo
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_timestamp
// --pezpallet=pezpallet_timestamp
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_transaction_payment
// --pezpallet=pezpallet_transaction_payment
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_treasury
// --pezpallet=pezpallet_treasury
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_utility
// --pezpallet=pezpallet_utility
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_vesting
// --pezpallet=pezpallet_vesting
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_whitelist
// --pezpallet=pezpallet_whitelist
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_xcm
// --pezpallet=pezpallet_xcm
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights
// --wasm-execution=compiled
@@ -52,7 +52,7 @@ trait WeighAssets {
fn weigh_assets(&self, balances_weight: Weight) -> Weight;
}
// Zagros only knows about one asset, the balances pallet.
// Zagros only knows about one asset, the balances pezpallet.
const MAX_ASSETS: u64 = 1;
impl WeighAssets for AssetFilter {
@@ -30,10 +30,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_xcm_benchmarks::fungible
// --pezpallet=pezpallet_xcm_benchmarks::fungible
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights/xcm
// --wasm-execution=compiled
@@ -27,10 +27,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/zagros-runtime/zagros_runtime.wasm
// --pallet=pezpallet_xcm_benchmarks::generic
// --pezpallet=pezpallet_xcm_benchmarks::generic
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezkuwi/file_header.txt
// --output=./pezkuwi/runtime/zagros/src/weights/xcm
// --wasm-execution=compiled
@@ -99,7 +99,7 @@ type LocalOriginConverter = (
// If the origin kind is `Native` and the XCM origin is the `AccountId32` location, then it can
// be expressed using the `Signed` origin variant.
SignedAccountId32AsNative<ThisNetwork, RuntimeOrigin>,
// Xcm origins can be represented natively under the Xcm pallet's Xcm origin.
// Xcm origins can be represented natively under the Xcm pezpallet's Xcm origin.
XcmPassthrough<RuntimeOrigin>,
);
@@ -272,7 +272,7 @@ pub type FellowshipAdminToPlurality =
/// Type to convert the `Treasurer` origin to a Plurality `Location` value.
pub type TreasurerToPlurality = OriginToPluralityVoice<RuntimeOrigin, Treasurer, TreasurerBodyId>;
/// Type to convert a pallet `Origin` type value into a `Location` value which represents an
/// Type to convert a pezpallet `Origin` type value into a `Location` value which represents an
/// interior location of this chain for a destination chain.
pub type LocalPalletOriginToLocation = (
// GeneralAdmin origin to be used in XCM as a corresponding Plurality `Location` value.
@@ -115,7 +115,7 @@ parameter_types! {
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const PayoutSpendPeriod: BlockNumber = 30 * DAYS;
// The asset's interior location for the paying account. This is the Treasury
// pallet instance (which sits at index 37).
// pezpallet instance (which sits at index 37).
pub TreasuryInteriorLocation: InteriorLocation = PalletInstance(37).into();
pub const TipCountdown: BlockNumber = 1 * DAYS;
@@ -19,16 +19,16 @@
pub use pezpallet_custom_origins::*;
#[pezframe_support::pallet]
#[pezframe_support::pezpallet]
pub mod pezpallet_custom_origins {
use crate::{Balance, CENTS, GRAND};
use pezframe_support::pezpallet_prelude::*;
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {}
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[derive(
PartialEq,
@@ -41,7 +41,7 @@ pub mod pezpallet_custom_origins {
TypeInfo,
RuntimeDebug,
)]
#[pallet::origin]
#[pezpallet::origin]
pub enum Origin {
/// Origin for cancelling slashes.
StakingAdmin,
@@ -261,7 +261,7 @@ parameter_types! {
pub type AssetsForceOrigin = EnsureRoot<AccountId>;
// Called "Trust Backed" assets because these are generally registered by some account, and users of
// the asset assume it has some claimed backing. The pallet is called `Assets` in
// the asset assume it has some claimed backing. The pezpallet is called `Assets` in
// `construct_runtime` to avoid breaking changes on storage reads.
pub type TrustBackedAssetsInstance = pezpallet_assets::Instance1;
type TrustBackedAssetsCall = pezpallet_assets::Call<Runtime, TrustBackedAssetsInstance>;
@@ -290,7 +290,7 @@ impl pezpallet_assets::Config<TrustBackedAssetsInstance> for Runtime {
type BenchmarkHelper = ();
}
// Allow Freezes for the `Assets` pallet
// Allow Freezes for the `Assets` pezpallet
pub type AssetsFreezerInstance = pezpallet_assets_freezer::Instance1;
impl pezpallet_assets_freezer::Config<AssetsFreezerInstance> for Runtime {
type RuntimeFreezeReason = RuntimeFreezeReason;
@@ -334,7 +334,7 @@ impl pezpallet_assets::Config<PoolAssetsInstance> for Runtime {
type BenchmarkHelper = ();
}
// Allow Freezes for the `PoolAssets` pallet
// Allow Freezes for the `PoolAssets` pezpallet
pub type PoolAssetsFreezerInstance = pezpallet_assets_freezer::Instance3;
impl pezpallet_assets_freezer::Config<PoolAssetsFreezerInstance> for Runtime {
type RuntimeFreezeReason = RuntimeFreezeReason;
@@ -447,7 +447,7 @@ impl pezpallet_asset_conversion::Config for Runtime {
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = assets_common::benchmarks::AssetPairFactory<
ZagrosLocation,
teyrchain_info::Pallet<Runtime>,
teyrchain_info::Pezpallet<Runtime>,
xcm_config::TrustBackedAssetsPalletIndex,
xcm::v5::Location,
>;
@@ -515,7 +515,7 @@ impl pezpallet_asset_rewards::Config for Runtime {
ConstantStoragePrice<StakePoolCreationDeposit, Balance>,
>;
type WeightInfo = weights::pezpallet_asset_rewards::WeightInfo<Runtime>;
type BlockNumberProvider = pezframe_system::Pallet<Runtime>;
type BlockNumberProvider = pezframe_system::Pezpallet<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = PalletAssetRewardsBenchmarkHelper;
}
@@ -556,7 +556,7 @@ impl pezpallet_assets::Config<ForeignAssetsInstance> for Runtime {
type Currency = Balances;
type CreateOrigin = ForeignCreators<
(
FromSiblingTeyrchain<teyrchain_info::Pallet<Runtime>, xcm::v5::Location>,
FromSiblingTeyrchain<teyrchain_info::Pezpallet<Runtime>, xcm::v5::Location>,
FromNetwork<xcm_config::UniversalLocation, EthereumNetwork, xcm::v5::Location>,
xcm_config::bridging::to_pezkuwichain::PezkuwichainAssetFromAssetHubPezkuwichain,
),
@@ -581,7 +581,7 @@ impl pezpallet_assets::Config<ForeignAssetsInstance> for Runtime {
type BenchmarkHelper = assets_common::benchmarks::LocationAssetsBenchmarkHelper;
}
// Allow Freezes for the `ForeignAssets` pallet
// Allow Freezes for the `ForeignAssets` pezpallet
pub type ForeignAssetsFreezerInstance = pezpallet_assets_freezer::Instance2;
impl pezpallet_assets_freezer::Config<ForeignAssetsFreezerInstance> for Runtime {
type RuntimeFreezeReason = RuntimeFreezeReason;
@@ -805,7 +805,7 @@ 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>;
type SelfParaId = teyrchain_info::Pezpallet<Runtime>;
type DmpQueue = pezframe_support::traits::EnqueueWithOrigin<MessageQueue, RelayOrigin>;
type ReservedDmpWeight = ReservedDmpWeight;
type OutboundXcmpMessageSource = XcmpQueue;
@@ -846,7 +846,7 @@ impl pezpallet_message_queue::Config for Runtime {
RuntimeCall,
>;
type Size = u32;
// The XCMP queue pallet is only ever able to handle the `Sibling(ParaId)` origin:
// The XCMP queue pezpallet is only ever able to handle the `Sibling(ParaId)` origin:
type QueueChangeHandler = NarrowOriginToSibling<XcmpQueue>;
type QueuePausedQuery = NarrowOriginToSibling<XcmpQueue>;
type HeapSize = pezsp_core::ConstU32<{ 103 * 1024 }>;
@@ -1203,7 +1203,7 @@ construct_runtime!(
Sudo: pezpallet_sudo = 110,
PresetStore: pezpallet_staking_async_preset_store = 111,
// TODO: the pallet instance should be removed once all pools have migrated
// TODO: the pezpallet instance should be removed once all pools have migrated
// to the new account IDs.
AssetConversionMigration: pezpallet_asset_conversion_ops = 200,
}
@@ -1265,7 +1265,7 @@ impl
fn create_asset_id_parameter(
seed: u32,
) -> (pezcumulus_primitives_core::Location, pezcumulus_primitives_core::Location) {
// Use a different teyrchain' foreign assets pallet so that the asset is indeed foreign.
// Use a different teyrchain' foreign assets pezpallet so that the asset is indeed foreign.
let asset_id = pezcumulus_primitives_core::Location::new(
1,
[
@@ -1803,25 +1803,25 @@ impl_runtime_apis! {
) {
use pezframe_benchmarking::BenchmarkList;
use pezframe_support::traits::StorageInfoTrait;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
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;
use pezframe_system_benchmarking::Pezpallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
use pezcumulus_pezpallet_session_benchmarking::Pezpallet as SessionBench;
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
use pezpallet_xcm_bridge_hub_router::benchmarking::Pezpallet as XcmBridgeHubRouterBench;
// This is defined once again in dispatch_benchmark, because list_benchmarks!
// and add_benchmarks! are macros exported by define_benchmarks! macros and those types
// are referenced in that call.
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
// Benchmark files generated for `Assets/ForeignAssets` instances are by default
// `pezpallet_assets_assets.rs / pezpallet_assets_foreign_assets`, which is not really nice,
// so with this redefinition we can change names to nicer:
// `pezpallet_assets_local.rs / pezpallet_assets_foreign.rs`.
type Local = pezpallet_assets::Pallet::<Runtime, TrustBackedAssetsInstance>;
type Foreign = pezpallet_assets::Pallet::<Runtime, ForeignAssetsInstance>;
type Pool = pezpallet_assets::Pallet::<Runtime, PoolAssetsInstance>;
type Local = pezpallet_assets::Pezpallet::<Runtime, TrustBackedAssetsInstance>;
type Foreign = pezpallet_assets::Pezpallet::<Runtime, ForeignAssetsInstance>;
type Pool = pezpallet_assets::Pezpallet::<Runtime, PoolAssetsInstance>;
type ToPezkuwichain = XcmBridgeHubRouterBench<Runtime, ToPezkuwichainXcmRouterInstance>;
@@ -1837,8 +1837,8 @@ impl_runtime_apis! {
) -> Result<Vec<pezframe_benchmarking::BenchmarkBatch>, alloc::string::String> {
use pezframe_benchmarking::{BenchmarkBatch, BenchmarkError};
use pezsp_storage::TrackedStorageKey;
use pezframe_system_benchmarking::Pallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use pezframe_system_benchmarking::Pezpallet as SystemBench;
use pezframe_system_benchmarking::extensions::Pezpallet as SystemExtensionsBench;
use xcm::prelude::WeightLimit;
// add a few custom keys to benchmarks.
@@ -1869,7 +1869,7 @@ impl_runtime_apis! {
}
}
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
use pezcumulus_pezpallet_session_benchmarking::Pezpallet as SessionBench;
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
parameter_types! {
@@ -1880,7 +1880,7 @@ impl_runtime_apis! {
pub const RandomParaId: ParaId = ParaId::new(43211234);
}
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
use pezpallet_xcm::benchmarking::Pezpallet as PalletXcmExtrinsicsBenchmark;
impl pezpallet_xcm::benchmarking::Config for Runtime {
type DeliveryHelper = (
pezcumulus_primitives_utility::ToParentDeliveryHelper<
@@ -1980,7 +1980,7 @@ impl_runtime_apis! {
}
use pezpallet_xcm_bridge_hub_router::benchmarking::{
Pallet as XcmBridgeHubRouterBench,
Pezpallet as XcmBridgeHubRouterBench,
Config as XcmBridgeHubRouterConfig,
};
@@ -2138,12 +2138,12 @@ impl_runtime_apis! {
}
}
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pallet::<Runtime>;
type XcmBalances = pezpallet_xcm_benchmarks::fungible::Pezpallet::<Runtime>;
type XcmGeneric = pezpallet_xcm_benchmarks::generic::Pezpallet::<Runtime>;
type Local = pezpallet_assets::Pallet::<Runtime, TrustBackedAssetsInstance>;
type Foreign = pezpallet_assets::Pallet::<Runtime, ForeignAssetsInstance>;
type Pool = pezpallet_assets::Pallet::<Runtime, PoolAssetsInstance>;
type Local = pezpallet_assets::Pezpallet::<Runtime, TrustBackedAssetsInstance>;
type Foreign = pezpallet_assets::Pezpallet::<Runtime, ForeignAssetsInstance>;
type Pool = pezpallet_assets::Pezpallet::<Runtime, PoolAssetsInstance>;
type ToPezkuwichain = XcmBridgeHubRouterBench<Runtime, ToPezkuwichainXcmRouterInstance>;
@@ -2236,7 +2236,7 @@ impl pezpallet_state_trie_migration::Config for Runtime {
type RuntimeHoldReason = RuntimeHoldReason;
type SignedDepositPerItem = MigrationSignedDepositPerItem;
type SignedDepositBase = MigrationSignedDepositBase;
// An origin that can control the whole pallet: should be Root, or a part of your council.
// An origin that can control the whole pezpallet: should be Root, or a part of your council.
type ControlOrigin = pezframe_system::EnsureSignedBy<RootMigController, AccountId>;
// specific account for the migration, can trigger the signed migrations.
type SignedFilter = pezframe_system::EnsureSignedBy<MigController, AccountId>;
@@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
///! Staking, and election related pallet configurations.
///! Staking, and election related pezpallet configurations.
use super::*;
use pezcumulus_primitives_core::relay_chain::SessionIndex;
use pezframe_election_provider_support::{ElectionDataProvider, SequentialPhragmen};
@@ -703,7 +703,7 @@ mod tests {
pezsp_tracing::try_init_simple();
pezsp_io::TestExternalities::default().execute_with(|| {
super::enable_hez_preset(false);
let duration = mb::Pallet::<Runtime>::average_election_duration();
let duration = mb::Pezpallet::<Runtime>::average_election_duration();
let pezkuwi_session = 6 * HOURS;
log::info!(
target: "runtime",
@@ -716,7 +716,7 @@ mod tests {
pezsp_io::TestExternalities::default().execute_with(|| {
super::enable_ksm_preset(false);
let duration = mb::Pallet::<Runtime>::average_election_duration();
let duration = mb::Pezpallet::<Runtime>::average_election_duration();
let kusama_session = 1 * HOURS;
log::info!(
target: "runtime",
@@ -799,8 +799,8 @@ mod tests {
pezsp_core::crypto::set_default_ss58_version(1u8.into());
super::enable_hez_preset(true);
// prepare all snapshot in EPMB pallet.
mb::Pallet::<Runtime>::asap();
// prepare all snapshot in EPMB pezpallet.
mb::Pezpallet::<Runtime>::asap();
for page in 1..=32 {
mb::unsigned::miner::OffchainWorkerMiner::<Runtime>::mine_solution(page, true)
.inspect(|p| log::info!(target: "runtime", "{:?}", p.score.pretty("HEZ", 10)))
@@ -26,10 +26,10 @@
// Executed Command:
// ./target/release/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain
// statemine-dev
// --pallet
// --pezpallet
// pezcumulus_pezpallet_teyrchain_system
// --extrinsic
// *
@@ -26,14 +26,14 @@
// Executed Command:
// target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/pezkuwi-sdk/.git/.artifacts/bench.json
// --pallet=pezcumulus_pezpallet_weight_reclaim
// --pezpallet=pezcumulus_pezpallet_weight_reclaim
// --chain=asset-hub-next-zagros-dev
// --header=./pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights/
@@ -26,8 +26,8 @@
// Executed Command:
// ./target/release/pezkuwi-teyrchain
// benchmark
// pallet
// --pallet
// pezpallet
// --pezpallet
// pezcumulus-pezpallet-xcmp-queue
// --chain
// asset-hub-next-zagros-dev
@@ -0,0 +1,82 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `i9`, CPU: `13th Gen Intel(R) Core(TM) i9-13900K`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/pezkuwi-teyrchain
// benchmark
// pezpallet
// --chain
// statemine-dev
// --pezpallet
// pezcumulus_pezpallet_teyrchain_system
// --extrinsic
// *
// --execution
// wasm
// --wasm-execution
// compiled
// --output
// teyrchains/runtimes/assets/statemine/src/weights
// --steps
// 50
// --repeat
// 20
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
/// Storage: TeyrchainSystem LastDmqMqcHead (r:1 w:1)
/// Proof Skipped: TeyrchainSystem LastDmqMqcHead (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TeyrchainSystem ReservedDmpWeightOverride (r:1 w:0)
/// Proof Skipped: TeyrchainSystem ReservedDmpWeightOverride (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
/// Storage: TeyrchainSystem ProcessedDownwardMessages (r:0 w:1)
/// Proof Skipped: TeyrchainSystem ProcessedDownwardMessages (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: MessageQueue Pages (r:0 w:16)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 1000]`.
fn enqueue_inbound_downward_messages(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `12`
// Estimated: `8013`
// Minimum execution time: 1_622_000 picoseconds.
Weight::from_parts(1_709_000, 0)
.saturating_add(Weight::from_parts(0, 8013))
// Standard Error: 22_138
.saturating_add(Weight::from_parts(23_923_169, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
}
@@ -0,0 +1,68 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pezcumulus_pezpallet_weight_reclaim`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-12-30, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-ys-ssygq-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-zagros-dev")`, DB CACHE: 1024
// Executed Command:
// target/production/pezkuwi-teyrchain
// benchmark
// pezpallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/pezkuwi-sdk/.git/.artifacts/bench.json
// --pezpallet=pezcumulus_pezpallet_weight_reclaim
// --chain=asset-hub-next-zagros-dev
// --header=./pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: pezframe_system::Config> pezcumulus_pezpallet_weight_reclaim::WeightInfo for WeightInfo<T> {
/// Storage: `System::BlockWeight` (r:1 w:1)
/// Proof: `System::BlockWeight` (`max_values`: Some(1), `max_size`: Some(48), added: 543, mode: `MaxEncodedLen`)
/// Storage: `System::ExtrinsicWeightReclaimed` (r:1 w:1)
/// Proof: `System::ExtrinsicWeightReclaimed` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `System::AllExtrinsicsLen` (r:1 w:0)
/// Proof: `System::AllExtrinsicsLen` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn storage_weight_reclaim() -> Weight {
// Proof Size summary in bytes:
// Measured: `24`
// Estimated: `1533`
// Minimum execution time: 7_470_000 picoseconds.
Weight::from_parts(7_695_000, 0)
.saturating_add(Weight::from_parts(0, 1533))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
}
@@ -0,0 +1,245 @@
// This file is part of Bizinikiwi.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Olivers-MacBook-Pro.local`, CPU: `<UNKNOWN>`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-zagros-dev")`, DB CACHE: 1024
// Executed Command:
// ./target/release/pezkuwi-teyrchain
// benchmark
// pezpallet
// --pezpallet
// pezcumulus-pezpallet-xcmp-queue
// --chain
// asset-hub-next-zagros-dev
// --output
// pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights/pezcumulus_pezpallet_xcmp_queue.rs
// --extrinsic
//
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use pezframe_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<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 {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1497`
// Minimum execution time: 3_562_000 picoseconds.
Weight::from_parts(4_749_000, 1497)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 105467]`.
fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `151`
// Estimated: `5487`
// Minimum execution time: 10_685_000 picoseconds.
Weight::from_parts(8_747_868, 5487)
// Standard Error: 6
.saturating_add(Weight::from_parts(696, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 1000]`.
fn enqueue_n_empty_xcmp_messages(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `151`
// Estimated: `5487`
// Minimum execution time: 9_498_000 picoseconds.
Weight::from_parts(14_113_868, 5487)
// Standard Error: 298
.saturating_add(Weight::from_parts(109_652, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 105457]`.
fn enqueue_empty_xcmp_message_at(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `334 + n * (1 ±0)`
// Estimated: `108986`
// Minimum execution time: 12_000_000 picoseconds.
Weight::from_parts(11_015_940, 108986)
// Standard Error: 32
.saturating_add(Weight::from_parts(911, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:100)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 100]`.
fn enqueue_n_full_pages(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `186`
// Estimated: `5487`
// Minimum execution time: 10_685_000 picoseconds.
Weight::from_parts(10_686_000, 5487)
// Standard Error: 51_426
.saturating_add(Weight::from_parts(64_394_224, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
}
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
fn enqueue_1000_small_xcmp_messages() -> Weight {
// Proof Size summary in bytes:
// Measured: `53067`
// Estimated: `108986`
// Minimum execution time: 139_000_000 picoseconds.
Weight::from_parts(148_000_000, 108986)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
fn suspend_channel() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `2767`
// Minimum execution time: 2_374_000 picoseconds.
Weight::from_parts(3_562_000, 2767)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
fn resume_channel() -> Weight {
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `2767`
// Minimum execution time: 3_561_000 picoseconds.
Weight::from_parts(4_749_000, 2767)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// The range of component `n` is `[0, 92]`.
fn take_first_concatenated_xcm(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_000_000 picoseconds.
Weight::from_parts(1_806_940, 0)
// Standard Error: 541
.saturating_add(Weight::from_parts(46_068, 0).saturating_mul(n.into()))
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
fn on_idle_good_msg() -> Weight {
// Proof Size summary in bytes:
// Measured: `105716`
// Estimated: `109181`
// Minimum execution time: 131_791_000 picoseconds.
Weight::from_parts(134_166_000, 109181)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
/// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
/// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
fn on_idle_large_msg() -> Weight {
// Proof Size summary in bytes:
// Measured: `65785`
// Estimated: `69250`
// Minimum execution time: 80_737_000 picoseconds.
Weight::from_parts(83_111_000, 69250)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
}
@@ -26,10 +26,10 @@
// Executed Command:
// ./target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --wasm-execution=compiled
// --pallet=pezframe_system
// --pezpallet=pezframe_system
// --no-storage-info
// --no-median-slopes
// --no-min-squares
@@ -27,10 +27,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/release/wbuild/asset-hub-next-zagros-runtime/asset_hub_next_zagros_runtime.wasm
// --pallet=pezframe_system_extensions
// --pezpallet=pezframe_system_extensions
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights
// --wasm-execution=compiled
@@ -26,11 +26,11 @@
// Executed Command:
// ./target/debug/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --steps=20
// --repeat=2
// --pallet=pezpallet-asset-conversion
// --pezpallet=pezpallet-asset-conversion
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
@@ -26,11 +26,11 @@
// Executed Command:
// ./target/debug/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --steps=10
// --repeat=2
// --pallet=pezpallet-asset-conversion-ops
// --pezpallet=pezpallet-asset-conversion-ops
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
@@ -26,9 +26,9 @@
// Executed Command:
// ./target/debug/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --wasm-execution=compiled
// --pallet=pezpallet_asset_conversion_tx_payment
// --pezpallet=pezpallet_asset_conversion_tx_payment
// --no-storage-info
// --no-median-slopes
// --no-min-squares
@@ -26,11 +26,11 @@
// Executed Command:
// ./target/debug/pezkuwi
// benchmark
// pallet
// pezpallet
// --chain=pezkuwi-dev
// --steps=50
// --repeat=2
// --pallet=pezpallet_asset_rate
// --pezpallet=pezpallet_asset_rate
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
@@ -26,14 +26,14 @@
// Executed Command:
// target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/pezkuwi-sdk/.git/.artifacts/bench.json
// --pallet=pezpallet_asset_rewards
// --pezpallet=pezpallet_asset_rewards
// --chain=asset-hub-next-zagros-dev
// --header=./pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights/
@@ -25,10 +25,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezpallet_assets
// --pezpallet=pezpallet_assets
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -25,10 +25,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezpallet_assets
// --pezpallet=pezpallet_assets
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -25,10 +25,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
// --pallet=pezpallet_assets
// --pezpallet=pezpallet_assets
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
// --wasm-execution=compiled
@@ -26,14 +26,14 @@
// Executed Command:
// ./target/production/pezkuwi
// benchmark
// pallet
// pezpallet
// --chain=zagros-dev
// --steps=50
// --repeat=20
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --pallet=pezpallet_bags_list
// --pezpallet=pezpallet_bags_list
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -26,14 +26,14 @@
// Executed Command:
// target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/pezkuwi-sdk/.git/.artifacts/bench.json
// --pallet=pezpallet_balances
// --pezpallet=pezpallet_balances
// --chain=asset-hub-next-zagros-dev
// --header=./pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights/
@@ -26,10 +26,10 @@
// Executed Command:
// ./target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --wasm-execution=compiled
// --pallet=pezpallet_collator_selection
// --pezpallet=pezpallet_collator_selection
// --no-storage-info
// --no-median-slopes
// --no-min-squares
@@ -26,7 +26,7 @@
// Executed Command:
// target/production/pezkuwi
// benchmark
// pallet
// pezpallet
// --steps=50
// --repeat=20
// --extrinsic=*
@@ -34,7 +34,7 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/builds/parity/mirrors/pezkuwi/.git/.artifacts/bench.json
// --pallet=pezpallet_conviction_voting
// --pezpallet=pezpallet_conviction_voting
// --chain=zagros-dev
// --header=./file_header.txt
// --output=./runtime/zagros/src/weights/
@@ -26,14 +26,14 @@
// Executed Command:
// ./target/production/pezkuwi
// benchmark
// pallet
// pezpallet
// --chain=zagros-dev
// --steps=50
// --repeat=20
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --pallet=pezpallet_fast_unstake
// --pezpallet=pezpallet_fast_unstake
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
@@ -27,10 +27,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/asset-hub-next-zagros-runtime/asset_hub_next_zagros_runtime.wasm
// --pallet=pezpallet_message_queue
// --pezpallet=pezpallet_message_queue
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights
// --wasm-execution=compiled
@@ -27,10 +27,10 @@
// frame-omni-bencher
// v1
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --runtime=target/production/wbuild/asset-hub-next-zagros-runtime/asset_hub_next_zagros_runtime.wasm
// --pallet=pezpallet_migrations
// --pezpallet=pezpallet_migrations
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// Executed Command:
// target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --extrinsic=*
// --chain=asset-hub-next-zagros-dev
// --pallet=pezpallet_multisig
// --pezpallet=pezpallet_multisig
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-next-zagros/src/weights
// --wasm-execution=compiled
@@ -26,10 +26,10 @@
// Executed Command:
// ./target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --wasm-execution=compiled
// --pallet=pezpallet_nft_fractionalization
// --pezpallet=pezpallet_nft_fractionalization
// --no-storage-info
// --no-median-slopes
// --no-min-squares
@@ -26,10 +26,10 @@
// Executed Command:
// ./target/production/pezkuwi-teyrchain
// benchmark
// pallet
// pezpallet
// --chain=asset-hub-next-zagros-dev
// --wasm-execution=compiled
// --pallet=pezpallet_nfts
// --pezpallet=pezpallet_nfts
// --no-storage-info
// --no-median-slopes
// --no-min-squares

Some files were not shown because too many files have changed in this diff Show More