-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use Parity's VersionedMigration (#5364)
Re-commit of (due to unverified commit blocking CI merge): * Use Parity's VersionedMigration. * Merged Runtime-upgrade-utility crate into Runtime-utility crate
- Loading branch information
Showing
57 changed files
with
464 additions
and
682 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::Pallet; | ||
use cf_runtime_upgrade_utilities::PlaceholderMigration; | ||
use cf_runtime_utilities::PlaceholderMigration; | ||
|
||
pub type PalletMigration<T> = PlaceholderMigration<Pallet<T>, 2>; | ||
pub type PalletMigration<T> = PlaceholderMigration<2, Pallet<T>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
use crate::Pallet; | ||
use cf_runtime_upgrade_utilities::{PlaceholderMigration, VersionedMigration}; | ||
use cf_runtime_utilities::PlaceholderMigration; | ||
use frame_support::migrations::VersionedMigration; | ||
|
||
mod initialize_broadcast_timeout_storage; | ||
mod migrate_timeouts; | ||
pub mod remove_aborted_broadcasts; | ||
|
||
pub type PalletMigration<T, I> = ( | ||
VersionedMigration<Pallet<T, I>, initialize_broadcast_timeout_storage::Migration<T, I>, 6, 7>, | ||
VersionedMigration<Pallet<T, I>, migrate_timeouts::Migration<T, I>, 7, 8>, | ||
PlaceholderMigration<Pallet<T, I>, 8>, | ||
VersionedMigration< | ||
6, | ||
7, | ||
initialize_broadcast_timeout_storage::Migration<T, I>, | ||
Pallet<T, I>, | ||
<T as frame_system::Config>::DbWeight, | ||
>, | ||
VersionedMigration< | ||
7, | ||
8, | ||
migrate_timeouts::Migration<T, I>, | ||
Pallet<T, I>, | ||
<T as frame_system::Config>::DbWeight, | ||
>, | ||
PlaceholderMigration<8, Pallet<T, I>>, | ||
// Migration 8->9 is SerializeSolanaBroadcastMigration in runtime lib. | ||
// Migration 9->10 is SolanaEgressSuccessWitnessMigration in runtime lib. | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.