Skip to content

Commit

Permalink
[runtime] remove obsolete state migrations and add missing collator-s…
Browse files Browse the repository at this point in the history
…election migration (#57)
  • Loading branch information
clangenb authored and DidacSF committed Jun 27, 2024
1 parent 939f51d commit cc17b27
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 118 deletions.
17 changes: 2 additions & 15 deletions runtime/bajun/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,27 +381,14 @@ impl frame_system::Config for Runtime {
type PostTransactions = ();
}

type SingleBlockMigrations = (pallet_ajuna_awesome_avatars::migration::v6::MigrateToV6<Runtime>,);
type SingleBlockMigrations = (pallet_collator_selection::migration::v2::MigrationToV2<Runtime>,);

#[cfg(not(feature = "runtime-benchmarks"))]
use mbm::MultiBlockMigrations;

#[cfg(not(feature = "runtime-benchmarks"))]
mod mbm {
use crate::Runtime;
use pallet_ajuna_awesome_avatars::migration::v6::mbm::{
LazyMigrationAvatarV5ToV6, LazyMigrationPlayerSeasonConfigsV5ToV6,
LazyMigrationSeasonStatsV5ToV6, LazyTradeStatsMapCleanup,
};

use crate::weights::pallet_ajuna_awesome_avatars_mbm::WeightInfo as AaaMbmWeight;

pub type MultiBlockMigrations = (
LazyMigrationPlayerSeasonConfigsV5ToV6<Runtime, AaaMbmWeight<Runtime>>,
LazyMigrationSeasonStatsV5ToV6<Runtime, AaaMbmWeight<Runtime>>,
LazyMigrationAvatarV5ToV6<Runtime, AaaMbmWeight<Runtime>>,
LazyTradeStatsMapCleanup<Runtime, AaaMbmWeight<Runtime>>,
);
pub type MultiBlockMigrations = ();
}

parameter_types! {
Expand Down
1 change: 0 additions & 1 deletion runtime/bajun/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ pub mod cumulus_pallet_parachain_system;
pub mod cumulus_pallet_xcmp_queue;
pub mod frame_system;
pub mod orml_vesting;
pub mod pallet_ajuna_awesome_avatars_mbm;
pub mod pallet_balances;
pub mod pallet_collator_selection;
pub mod pallet_collective;
Expand Down
102 changes: 0 additions & 102 deletions runtime/bajun/src/weights/pallet_ajuna_awesome_avatars_mbm.rs

This file was deleted.

0 comments on commit cc17b27

Please sign in to comment.