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:
@@ -33,7 +33,7 @@ const LOG_TARGET: &str = "runtime::session_historical";
|
||||
|
||||
const OLD_PREFIX: &str = "Session";
|
||||
|
||||
/// Migrate the entire storage of this pallet to a new prefix.
|
||||
/// Migrate the entire storage of this pezpallet to a new prefix.
|
||||
///
|
||||
/// This new prefix must be the same as the one set in construct_runtime.
|
||||
///
|
||||
@@ -47,7 +47,7 @@ pub fn migrate<T: pezpallet_session_historical::Config, P: GetStorageVersion + P
|
||||
if new_pallet_name == OLD_PREFIX {
|
||||
log::info!(
|
||||
target: LOG_TARGET,
|
||||
"New pallet name is equal to the old prefix. No migration needs to be done.",
|
||||
"New pezpallet name is equal to the old prefix. No migration needs to be done.",
|
||||
);
|
||||
return Weight::zero();
|
||||
}
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
/// Version 1.
|
||||
///
|
||||
/// In version 0 session historical pallet uses `Session` for storage module prefix.
|
||||
/// In version 0 session historical pezpallet uses `Session` for storage module prefix.
|
||||
/// In version 1 it uses its name as configured in `construct_runtime`.
|
||||
/// This migration moves session historical pallet storages from old prefix to new prefix.
|
||||
/// This migration moves session historical pezpallet storages from old prefix to new prefix.
|
||||
#[cfg(feature = "historical")]
|
||||
pub mod historical;
|
||||
pub mod v1;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use crate::{Config, DisabledValidators as NewDisabledValidators, Pallet, Vec};
|
||||
use crate::{Config, DisabledValidators as NewDisabledValidators, Pezpallet, Vec};
|
||||
use pezframe_support::{
|
||||
pezpallet_prelude::{Get, ValueQuery, Weight},
|
||||
traits::UncheckedOnRuntimeUpgrade,
|
||||
@@ -31,7 +31,7 @@ use pezframe_support::migrations::VersionedMigration;
|
||||
|
||||
/// This is the storage getting migrated.
|
||||
#[pezframe_support::storage_alias]
|
||||
type DisabledValidators<T: Config> = StorageValue<Pallet<T>, Vec<u32>, ValueQuery>;
|
||||
type DisabledValidators<T: Config> = StorageValue<Pezpallet<T>, Vec<u32>, ValueQuery>;
|
||||
|
||||
pub trait MigrateDisabledValidators {
|
||||
/// Peek the list of disabled validators and their offence severity.
|
||||
@@ -98,6 +98,6 @@ pub type MigrateV0ToV1<T, S> = VersionedMigration<
|
||||
0,
|
||||
1,
|
||||
VersionUncheckedMigrateV0ToV1<T, S>,
|
||||
Pallet<T>,
|
||||
Pezpallet<T>,
|
||||
<T as pezframe_system::Config>::DbWeight,
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user