Add migration for substrate#14084 (#2751)

* v12 migration to seq

* Contracts-rococo: Update migration

* add v9..v12 migrations

* fix

* fix

* v12 migration to run seq

* update lock file for substrate

fmt

cargo lock update substrate only

---------

Co-authored-by: pgherveou <pgherveou@gmail.com>
This commit is contained in:
Sasha Gryaznov
2023-07-03 16:18:19 +03:00
committed by GitHub
parent b1d9ce9f75
commit 043b711829
3 changed files with 212 additions and 201 deletions
+207 -199
View File
File diff suppressed because it is too large Load Diff
@@ -7,8 +7,10 @@ use frame_support::{
traits::{ConstBool, ConstU32, Nothing}, traits::{ConstBool, ConstU32, Nothing},
}; };
use pallet_contracts::{ use pallet_contracts::{
weights::SubstrateWeight, Config, DebugInfo, DefaultAddressGenerator, Frame, Schedule, migration::v12, weights::SubstrateWeight, Config, DebugInfo, DefaultAddressGenerator, Frame,
Schedule,
}; };
pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO; pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO;
// Prints debug output of the `contracts` pallet to stdout if the node is // Prints debug output of the `contracts` pallet to stdout if the node is
@@ -48,5 +50,5 @@ impl Config for Runtime {
type MaxStorageKeyLen = ConstU32<128>; type MaxStorageKeyLen = ConstU32<128>;
type UnsafeUnstableInterface = ConstBool<true>; type UnsafeUnstableInterface = ConstBool<true>;
type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>; type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>;
type Migrations = (); type Migrations = (v12::Migration<Runtime>,);
} }
@@ -100,6 +100,7 @@ pub type Migrations = (
cumulus_pallet_dmp_queue::migration::Migration<Runtime>, cumulus_pallet_dmp_queue::migration::Migration<Runtime>,
cumulus_pallet_parachain_system::migration::Migration<Runtime>, cumulus_pallet_parachain_system::migration::Migration<Runtime>,
cumulus_pallet_xcmp_queue::migration::Migration<Runtime>, cumulus_pallet_xcmp_queue::migration::Migration<Runtime>,
pallet_contracts::Migration<Runtime>,
); );
type EventRecord = frame_system::EventRecord< type EventRecord = frame_system::EventRecord<