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:
@@ -15,25 +15,25 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Offences pallet benchmarking.
|
||||
//! Offences pezpallet benchmarking.
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use codec::Decode;
|
||||
use pezframe_benchmarking::v2::*;
|
||||
use pezframe_support::traits::Get;
|
||||
use pezframe_system::{Config as SystemConfig, Pallet as System, RawOrigin};
|
||||
use pezframe_system::{Config as SystemConfig, Pezpallet as System, RawOrigin};
|
||||
use pezpallet_babe::EquivocationOffence as BabeEquivocationOffence;
|
||||
use pezpallet_balances::Config as BalancesConfig;
|
||||
use pezpallet_grandpa::{
|
||||
EquivocationOffence as GrandpaEquivocationOffence, TimeSlot as GrandpaTimeSlot,
|
||||
};
|
||||
use pezpallet_offences::{Config as OffencesConfig, Pallet as Offences};
|
||||
use pezpallet_offences::{Config as OffencesConfig, Pezpallet as Offences};
|
||||
use pezpallet_session::{
|
||||
historical::{Config as HistoricalConfig, IdentificationTuple},
|
||||
Config as SessionConfig, Pallet as Session,
|
||||
Config as SessionConfig, Pezpallet as Session,
|
||||
};
|
||||
use pezpallet_staking::{
|
||||
Config as StakingConfig, Exposure, IndividualExposure, MaxNominationsOf, Pallet as Staking,
|
||||
Config as StakingConfig, Exposure, IndividualExposure, MaxNominationsOf, Pezpallet as Staking,
|
||||
RewardDestination, ValidatorPrefs,
|
||||
};
|
||||
use pezsp_runtime::{
|
||||
@@ -46,7 +46,7 @@ const SEED: u32 = 0;
|
||||
|
||||
const MAX_NOMINATORS: u32 = 100;
|
||||
|
||||
pub struct Pallet<T: Config>(Offences<T>);
|
||||
pub struct Pezpallet<T: Config>(Offences<T>);
|
||||
|
||||
pub trait Config:
|
||||
SessionConfig<ValidatorId = <Self as pezframe_system::Config>::AccountId>
|
||||
@@ -285,5 +285,5 @@ mod benchmarks {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(Pallet, crate::mock::new_test_ext(), crate::mock::Test);
|
||||
impl_benchmark_test_suite!(Pezpallet, crate::mock::new_test_ext(), crate::mock::Test);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Offences pallet benchmarking.
|
||||
//! Offences pezpallet benchmarking.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ impl pezpallet_staking::Config for Test {
|
||||
type OldCurrency = Balances;
|
||||
type Currency = Balances;
|
||||
type CurrencyBalance = <Self as pezpallet_balances::Config>::Balance;
|
||||
type UnixTime = pezpallet_timestamp::Pallet<Self>;
|
||||
type UnixTime = pezpallet_timestamp::Pezpallet<Self>;
|
||||
type AdminOrigin = pezframe_system::EnsureRoot<Self::AccountId>;
|
||||
type SessionInterface = Self;
|
||||
type EraPayout = pezpallet_staking::ConvertCurve<RewardCurve>;
|
||||
@@ -188,13 +188,13 @@ pub type UncheckedExtrinsic = pezsp_runtime::generic::UncheckedExtrinsic<u32, Ru
|
||||
pezframe_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: system::{Pallet, Call, Event<T>},
|
||||
System: system::{Pezpallet, Call, Event<T>},
|
||||
Balances: pezpallet_balances,
|
||||
Staking: pezpallet_staking,
|
||||
Session: pezpallet_session,
|
||||
ImOnline: pezpallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
Offences: pezpallet_offences::{Pallet, Storage, Event},
|
||||
Historical: pezpallet_session_historical::{Pallet, Event<T>},
|
||||
ImOnline: pezpallet_im_online::{Pezpallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
|
||||
Offences: pezpallet_offences::{Pezpallet, Storage, Event},
|
||||
Historical: pezpallet_session_historical::{Pezpallet, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user