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
@@ -332,7 +332,7 @@ benchmarks_instance_pallet! {
}
impl_benchmark_test_suite!(
Pallet,
Pezpallet,
crate::fungible::mock::new_test_ext(),
crate::fungible::mock::Test
);
@@ -29,7 +29,7 @@ use xcm_builder::{
type Block = pezframe_system::mocking::MockBlock<Test>;
// For testing the pallet, we construct a mock runtime.
// For testing the pezpallet, we construct a mock runtime.
pezframe_support::construct_runtime!(
pub enum Test
{
@@ -16,17 +16,17 @@
// Benchmarking for the `AssetTransactor` trait via `Fungible`.
pub use pallet::*;
pub use pezpallet::*;
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
#[cfg(test)]
mod mock;
#[pezframe_support::pallet]
pub mod pallet {
#[pezframe_support::pezpallet]
pub mod pezpallet {
use pezframe_support::pezpallet_prelude::Get;
#[pallet::config]
#[pezpallet::config]
pub trait Config<I: 'static = ()>: pezframe_system::Config + crate::Config {
/// The type of `fungible` that is being used under the hood.
///
@@ -47,6 +47,6 @@ pub mod pallet {
fn get_asset() -> xcm::latest::Asset;
}
#[pallet::pallet]
pub struct Pallet<T, I = ()>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T, I = ()>(_);
}
@@ -962,7 +962,7 @@ mod benchmarks {
}
impl_benchmark_test_suite!(
Pallet,
Pezpallet,
crate::generic::mock::new_test_ext(),
crate::generic::mock::Test
);
@@ -50,7 +50,7 @@ impl pezframe_system::Config for Test {
type AccountData = pezpallet_balances::AccountData<u64>;
}
/// The benchmarks in this pallet should never need an asset transactor to begin with.
/// The benchmarks in this pezpallet should never need an asset transactor to begin with.
pub struct NoAssetTransactor;
impl xcm_executor::traits::TransactAsset for NoAssetTransactor {
fn deposit_asset(_: &Asset, _: &Location, _: Option<&XcmContext>) -> Result<(), XcmError> {
@@ -14,15 +14,15 @@
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
pub use pallet::*;
pub use pezpallet::*;
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
#[cfg(test)]
mod mock;
#[pezframe_support::pallet]
pub mod pallet {
#[pezframe_support::pezpallet]
pub mod pezpallet {
use pezframe_benchmarking::BenchmarkError;
use pezframe_support::{dispatch::GetDispatchInfo, pezpallet_prelude::Encode};
use pezsp_runtime::traits::Dispatchable;
@@ -30,7 +30,7 @@ pub mod pallet {
Asset, Assets, InteriorLocation, Junction, Location, NetworkId, Response, WeightLimit,
};
#[pallet::config]
#[pezpallet::config]
pub trait Config<I: 'static = ()>: pezframe_system::Config + crate::Config {
type RuntimeCall: Dispatchable<RuntimeOrigin = Self::RuntimeOrigin>
+ GetDispatchInfo
@@ -97,19 +97,19 @@ pub mod pallet {
/// If set to `Err`, benchmarks which rely on a universal alias will be skipped.
fn alias_origin() -> Result<(Location, Location), BenchmarkError>;
/// Returns a valid pallet info for `ExpectPallet` or `QueryPallet` benchmark.
/// Returns a valid pezpallet info for `ExpectPallet` or `QueryPallet` benchmark.
///
/// By default returns `pezframe_system::Pallet` info with expected pallet index `0`.
/// By default returns `pezframe_system::Pezpallet` info with expected pezpallet index `0`.
fn valid_pallet() -> pezframe_support::traits::PalletInfoData {
pezframe_support::traits::PalletInfoData {
index: <pezframe_system::Pallet<Self> as pezframe_support::traits::PalletInfoAccess>::index(),
name: <pezframe_system::Pallet<Self> as pezframe_support::traits::PalletInfoAccess>::name(),
module_name: <pezframe_system::Pallet<Self> as pezframe_support::traits::PalletInfoAccess>::module_name(),
crate_version: <pezframe_system::Pallet<Self> as pezframe_support::traits::PalletInfoAccess>::crate_version(),
index: <pezframe_system::Pezpallet<Self> as pezframe_support::traits::PalletInfoAccess>::index(),
name: <pezframe_system::Pezpallet<Self> as pezframe_support::traits::PalletInfoAccess>::name(),
module_name: <pezframe_system::Pezpallet<Self> as pezframe_support::traits::PalletInfoAccess>::module_name(),
crate_version: <pezframe_system::Pezpallet<Self> as pezframe_support::traits::PalletInfoAccess>::crate_version(),
}
}
}
#[pallet::pallet]
pub struct Pallet<T, I = ()>(_);
#[pezpallet::pezpallet]
pub struct Pezpallet<T, I = ()>(_);
}
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
//! Pallet that serves no other purpose than benchmarking raw messages [`Xcm`].
//! Pezpallet that serves no other purpose than benchmarking raw messages [`Xcm`].
#![cfg_attr(not(feature = "std"), no_std)]