@@ -945,8 +945,6 @@ construct_runtime!(
945945 PoolAssets : pallet_assets:: <Instance3 > = 55 ,
946946 AssetConversion : pallet_asset_conversion = 56 ,
947947
948- StateTrieMigration : pallet_state_trie_migration = 70 ,
949-
950948 // TODO: the pallet instance should be removed once all pools have migrated
951949 // to the new account IDs.
952950 AssetConversionMigration : pallet_asset_conversion_ops = 200 ,
@@ -1785,47 +1783,6 @@ cumulus_pallet_parachain_system::register_validate_block! {
17851783 BlockExecutor = cumulus_pallet_aura_ext:: BlockExecutor :: <Runtime , Executive >,
17861784}
17871785
1788- parameter_types ! {
1789- // The deposit configuration for the singed migration. Specially if you want to allow any signed account to do the migration (see `SignedFilter`, these deposits should be high)
1790- pub const MigrationSignedDepositPerItem : Balance = CENTS ;
1791- pub const MigrationSignedDepositBase : Balance = 2_000 * CENTS ;
1792- pub const MigrationMaxKeyLen : u32 = 512 ;
1793- }
1794-
1795- impl pallet_state_trie_migration:: Config for Runtime {
1796- type RuntimeEvent = RuntimeEvent ;
1797- type Currency = Balances ;
1798- type RuntimeHoldReason = RuntimeHoldReason ;
1799- type SignedDepositPerItem = MigrationSignedDepositPerItem ;
1800- type SignedDepositBase = MigrationSignedDepositBase ;
1801- // An origin that can control the whole pallet: should be Root, or a part of your council.
1802- type ControlOrigin = frame_system:: EnsureSignedBy < RootMigController , AccountId > ;
1803- // specific account for the migration, can trigger the signed migrations.
1804- type SignedFilter = frame_system:: EnsureSignedBy < MigController , AccountId > ;
1805-
1806- // Replace this with weight based on your runtime.
1807- type WeightInfo = pallet_state_trie_migration:: weights:: SubstrateWeight < Runtime > ;
1808-
1809- type MaxKeyLen = MigrationMaxKeyLen ;
1810- }
1811-
1812- frame_support:: ord_parameter_types! {
1813- pub const MigController : AccountId = AccountId :: from( hex_literal:: hex!( "8458ed39dc4b6f6c7255f7bc42be50c2967db126357c999d44e12ca7ac80dc52" ) ) ;
1814- pub const RootMigController : AccountId = AccountId :: from( hex_literal:: hex!( "8458ed39dc4b6f6c7255f7bc42be50c2967db126357c999d44e12ca7ac80dc52" ) ) ;
1815- }
1816-
1817- #[ test]
1818- fn ensure_key_ss58 ( ) {
1819- use frame_support:: traits:: SortedMembers ;
1820- use sp_core:: crypto:: Ss58Codec ;
1821- let acc =
1822- AccountId :: from_ss58check ( "5F4EbSkZz18X36xhbsjvDNs6NuZ82HyYtq5UiJ1h9SBHJXZD" ) . unwrap ( ) ;
1823- assert_eq ! ( acc, MigController :: sorted_members( ) [ 0 ] ) ;
1824- let acc =
1825- AccountId :: from_ss58check ( "5F4EbSkZz18X36xhbsjvDNs6NuZ82HyYtq5UiJ1h9SBHJXZD" ) . unwrap ( ) ;
1826- assert_eq ! ( acc, RootMigController :: sorted_members( ) [ 0 ] ) ;
1827- }
1828-
18291786#[ cfg( test) ]
18301787mod tests {
18311788 use super :: * ;
0 commit comments