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 root testing pallet"
description = "FRAME root testing pezpallet"
readme = "README.md"
documentation = "https://docs.rs/pezpallet-root-testing"
publish = false
+3 -3
View File
@@ -1,5 +1,5 @@
# Root Testing Pallet
# Root Testing Pezpallet
Pallet that contains extrinsics that can be useful in testing.
Pezpallet that contains extrinsics that can be useful in testing.
NOTE: This pallet should only be used for testing purposes and should not be used in production runtimes!
NOTE: This pezpallet should only be used for testing purposes and should not be used in production runtimes!
+17 -17
View File
@@ -15,54 +15,54 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! # Root Testing Pallet
//! # Root Testing Pezpallet
//!
//! Pallet that contains extrinsics that can be useful in testing.
//! Pezpallet that contains extrinsics that can be useful in testing.
//!
//! NOTE: This pallet should only be used for testing purposes and should not be used in production
//! NOTE: This pezpallet should only be used for testing purposes and should not be used in production
//! runtimes!
#![cfg_attr(not(feature = "std"), no_std)]
use pezframe_support::{dispatch::DispatchResult, pezsp_runtime::Perbill};
pub use pallet::*;
pub use pezpallet::*;
#[pezframe_support::pallet(dev_mode)]
pub mod pallet {
#[pezframe_support::pezpallet(dev_mode)]
pub mod pezpallet {
use super::*;
use pezframe_support::pezpallet_prelude::*;
use pezframe_system::pezpallet_prelude::*;
#[pallet::config]
#[pezpallet::config]
pub trait Config: pezframe_system::Config {
/// The overarching event type.
#[allow(deprecated)]
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
}
#[pallet::pallet]
pub struct Pallet<T>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T>(_);
#[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
#[pezpallet::event]
#[pezpallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> {
/// Event dispatched when the trigger_defensive extrinsic is called.
DefensiveTestCall,
}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pezpallet::call]
impl<T: Config> Pezpallet<T> {
/// A dispatch that will fill the block weight up to the given ratio.
#[pallet::call_index(0)]
#[pallet::weight(*_ratio * T::BlockWeights::get().max_block)]
#[pezpallet::call_index(0)]
#[pezpallet::weight(*_ratio * T::BlockWeights::get().max_block)]
pub fn fill_block(origin: OriginFor<T>, _ratio: Perbill) -> DispatchResult {
ensure_root(origin)?;
Ok(())
}
#[pallet::call_index(1)]
#[pallet::weight(0)]
#[pezpallet::call_index(1)]
#[pezpallet::weight(0)]
pub fn trigger_defensive(origin: OriginFor<T>) -> DispatchResult {
ensure_root(origin)?;
pezframe_support::defensive!("root_testing::trigger_defensive was called.");