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:
+10
-10
@@ -17,28 +17,28 @@
|
||||
|
||||
use pezframe_benchmarking::v2::*;
|
||||
|
||||
#[pezframe_support::pallet]
|
||||
mod pallet {
|
||||
#[pezframe_support::pezpallet]
|
||||
mod pezpallet {
|
||||
use pezframe_system::pezpallet_prelude::*;
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(_);
|
||||
#[pezpallet::pezpallet]
|
||||
pub struct Pezpallet<T>(_);
|
||||
|
||||
#[pallet::config]
|
||||
#[pezpallet::config]
|
||||
pub trait Config: pezframe_system::Config {}
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(Weight::default())]
|
||||
#[pezpallet::call]
|
||||
impl<T: Config> Pezpallet<T> {
|
||||
#[pezpallet::call_index(1)]
|
||||
#[pezpallet::weight(Weight::default())]
|
||||
pub fn call_1(_origin: OriginFor<T>) -> DispatchResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub use pallet::*;
|
||||
pub use pezpallet::*;
|
||||
|
||||
#[benchmarks]
|
||||
mod benches {
|
||||
|
||||
@@ -35,8 +35,8 @@ mod benches {
|
||||
}
|
||||
|
||||
#[benchmark(extra, pov_mode = Measured {
|
||||
Pallet: Measured,
|
||||
Pallet::Storage: MaxEncodedLen,
|
||||
Pezpallet: Measured,
|
||||
Pezpallet::Storage: MaxEncodedLen,
|
||||
}, skip_meta)]
|
||||
fn bench3() {
|
||||
#[block]
|
||||
@@ -44,8 +44,8 @@ mod benches {
|
||||
}
|
||||
|
||||
#[benchmark(skip_meta, extra, pov_mode = Measured {
|
||||
Pallet::Storage: MaxEncodedLen,
|
||||
Pallet::StorageSubKey: Measured,
|
||||
Pezpallet::Storage: MaxEncodedLen,
|
||||
Pezpallet::StorageSubKey: Measured,
|
||||
})]
|
||||
fn bench4() {
|
||||
#[block]
|
||||
@@ -53,8 +53,8 @@ mod benches {
|
||||
}
|
||||
|
||||
#[benchmark(pov_mode = MaxEncodedLen {
|
||||
Pallet::Storage: Measured,
|
||||
Pallet::StorageSubKey: Measured
|
||||
Pezpallet::Storage: Measured,
|
||||
Pezpallet::StorageSubKey: Measured
|
||||
}, extra, skip_meta)]
|
||||
fn bench5() {
|
||||
#[block]
|
||||
@@ -62,8 +62,8 @@ mod benches {
|
||||
}
|
||||
|
||||
#[benchmark(pov_mode = MaxEncodedLen {
|
||||
Pallet::Storage: Measured,
|
||||
Pallet::Storage::Nested: Ignored
|
||||
Pezpallet::Storage: Measured,
|
||||
Pezpallet::Storage::Nested: Ignored
|
||||
}, extra, skip_meta)]
|
||||
fn bench6() {
|
||||
#[block]
|
||||
|
||||
Reference in New Issue
Block a user