Skip to content

Commit 050c7c9

Browse files
BillyWooowangminqi
andauthored
add missing migrate pallets (#2962)
* add missing migrate pallets * staking pallet is not included in Litmus * renaming for clippy issue * chore: relocate and rename --------- Co-authored-by: Minqi Wang <wangminqi@aliyun.com>
1 parent 58a8d1e commit 050c7c9

33 files changed

+3744
-94
lines changed

runtime/litentry/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ pub type Executive = frame_executive::Executive<
139139
migration::ReplacePalletMultisigStorage<Runtime>,
140140
migration::ReplacePalletProxyStorage<Runtime>,
141141
migration::ReplacePalletVestingStorage<Runtime>,
142-
migration::pallet_bounty::ReplacePalletBountyStorage<Runtime>,
143-
migration::pallet_treasury::ReplaceTreasuryStorage<Runtime>,
144-
migration::pallet_preimage::ReplacePreImageStorage<Runtime>,
145-
migration::pallet_democracy::ReplaceDemocracyStorage<Runtime>,
142+
migration::ReplacePalletBountyStorage<Runtime>,
143+
migration::ReplaceTreasuryStorage<Runtime>,
144+
migration::ReplacePreImageStorage<Runtime>,
145+
migration::ReplaceDemocracyStorage<Runtime>,
146146
migration::ReplaceParachainStakingStorage<Runtime>,
147147
migration::ReplaceBalancesRelatedStorage<Runtime>,
148148
migration::ReplaceBridgeRelatedStorage<Runtime>,

runtime/litentry/src/migration/mod.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ pub mod migrate_proxy;
66
pub use migrate_proxy::ReplacePalletProxyStorage;
77
pub mod migrate_vesting;
88
pub use migrate_vesting::ReplacePalletVestingStorage;
9-
pub mod bridge_related;
10-
pub use bridge_related::ReplaceBridgeRelatedStorage;
11-
pub mod parachain_staking;
12-
pub use parachain_staking::ReplaceParachainStakingStorage;
13-
pub mod balances_transaction_payment;
14-
pub use balances_transaction_payment::ReplaceBalancesRelatedStorage;
15-
pub mod pallet_bounty;
16-
pub mod pallet_democracy;
17-
pub mod pallet_preimage;
18-
pub mod pallet_treasury;
9+
pub mod migrate_bridge_related;
10+
pub use migrate_bridge_related::ReplaceBridgeRelatedStorage;
11+
pub mod migrate_parachain_staking;
12+
pub use migrate_parachain_staking::ReplaceParachainStakingStorage;
13+
pub mod migrate_balances_transaction_payment;
14+
pub use migrate_balances_transaction_payment::ReplaceBalancesRelatedStorage;
15+
pub mod migrate_bounty;
16+
pub use migrate_bounty::ReplacePalletBountyStorage;
17+
pub mod migrate_democracy;
18+
pub use migrate_democracy::ReplaceDemocracyStorage;
19+
pub mod migrate_preimage;
20+
pub use migrate_preimage::ReplacePreImageStorage;
21+
pub mod migrate_treasury;
22+
pub use migrate_treasury::ReplaceTreasuryStorage;

runtime/litmus/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,16 @@ pub type Executive = frame_executive::Executive<
138138
// See the comment before collation related pallets too.
139139
AllPalletsWithSystem,
140140
(
141-
migration::ReplaceBridgeRelatedStorage<Runtime>,
141+
migration::ReplacePalletIdentityStorage<Runtime>,
142+
migration::ReplacePalletMultisigStorage<Runtime>,
143+
migration::ReplacePalletProxyStorage<Runtime>,
144+
migration::ReplacePalletVestingStorage<Runtime>,
145+
migration::ReplacePalletBountyStorage<Runtime>,
146+
migration::ReplaceTreasuryStorage<Runtime>,
147+
migration::ReplacePreImageStorage<Runtime>,
148+
migration::ReplaceDemocracyStorage<Runtime>,
142149
migration::ReplaceBalancesRelatedStorage<Runtime>,
150+
migration::ReplaceBridgeRelatedStorage<Runtime>,
143151
),
144152
>;
145153

0 commit comments

Comments
 (0)