git.delta.rocks / unique-network / refs/commits / 4275a8f9c142

difftreelog

fix remove preimage benchmark

Grigoriy Simonov2023-10-12parent: #18a5c32.patch.diff
in: master

6 files changed

modifiednode/cli/src/service.rsdiffbeforeafterboth
--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -614,7 +614,7 @@
 				para_id,
 				collator_key: collator_key.expect("cli args do not allow this"),
 				announce_block,
-			}
+			},
 		)?;
 	}
 
modifiedpallets/app-promotion/src/weights.rsdiffbeforeafterboth
before · pallets/app-promotion/src/weights.rs
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_app_promotion4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `400`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-app-promotion17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=40024// --heap-pages=409625// --output=./pallets/app-promotion/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_app_promotion.35pub trait WeightInfo {36	fn on_initialize(b: u32, ) -> Weight;37	fn set_admin_address() -> Weight;38	fn payout_stakers(b: u32, ) -> Weight;39	fn stake() -> Weight;40	fn unstake_all() -> Weight;41	fn unstake_partial() -> Weight;42	fn sponsor_collection() -> Weight;43	fn stop_sponsoring_collection() -> Weight;44	fn sponsor_contract() -> Weight;45	fn stop_sponsoring_contract() -> Weight;46}4748/// Weights for pallet_app_promotion using the Substrate node and recommended hardware.49pub struct SubstrateWeight<T>(PhantomData<T>);50impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {51	/// Storage: Maintenance Enabled (r:1 w:0)52	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)53	/// Storage: AppPromotion PendingUnstake (r:1 w:1)54	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)55	/// Storage: Balances Freezes (r:3 w:3)56	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)57	/// Storage: System Account (r:3 w:3)58	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)59	/// Storage: Balances Locks (r:3 w:0)60	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)61	/// The range of component `b` is `[0, 3]`.62	fn on_initialize(b: u32, ) -> Weight {63		// Proof Size summary in bytes:64		//  Measured:  `222 + b * (285 ±0)`65		//  Estimated: `3622 + b * (3774 ±0)`66		// Minimum execution time: 4_107_000 picoseconds.67		Weight::from_parts(4_751_973, 3622)68			// Standard Error: 4_66869			.saturating_add(Weight::from_parts(10_570_330, 0).saturating_mul(b.into()))70			.saturating_add(T::DbWeight::get().reads(2_u64))71			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))72			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(b.into())))73			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))74	}75	/// Storage: AppPromotion Admin (r:0 w:1)76	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)77	fn set_admin_address() -> Weight {78		// Proof Size summary in bytes:79		//  Measured:  `0`80		//  Estimated: `0`81		// Minimum execution time: 3_459_000 picoseconds.82		Weight::from_parts(3_627_000, 0)83			.saturating_add(T::DbWeight::get().writes(1_u64))84	}85	/// Storage: AppPromotion Admin (r:1 w:0)86	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)87	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)88	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)89	/// Storage: ParachainSystem ValidationData (r:1 w:0)90	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)91	/// Storage: AppPromotion PreviousCalculatedRecord (r:1 w:1)92	/// Proof: AppPromotion PreviousCalculatedRecord (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)93	/// Storage: AppPromotion Staked (r:1001 w:1000)94	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)95	/// Storage: System Account (r:101 w:101)96	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)97	/// Storage: Balances Freezes (r:100 w:100)98	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)99	/// Storage: Balances Locks (r:100 w:0)100	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)101	/// Storage: AppPromotion TotalStaked (r:1 w:1)102	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)103	/// The range of component `b` is `[1, 100]`.104	fn payout_stakers(b: u32, ) -> Weight {105		// Proof Size summary in bytes:106		//  Measured:  `564 + b * (641 ±0)`107		//  Estimated: `3593 + b * (25550 ±0)`108		// Minimum execution time: 73_245_000 picoseconds.109		Weight::from_parts(74_196_000, 3593)110			// Standard Error: 8_231111			.saturating_add(Weight::from_parts(49_090_053, 0).saturating_mul(b.into()))112			.saturating_add(T::DbWeight::get().reads(7_u64))113			.saturating_add(T::DbWeight::get().reads((13_u64).saturating_mul(b.into())))114			.saturating_add(T::DbWeight::get().writes(3_u64))115			.saturating_add(T::DbWeight::get().writes((12_u64).saturating_mul(b.into())))116			.saturating_add(Weight::from_parts(0, 25550).saturating_mul(b.into()))117	}118	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)119	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)120	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)121	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)122	/// Storage: System Account (r:1 w:1)123	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)124	/// Storage: Balances Freezes (r:1 w:1)125	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)126	/// Storage: Balances Locks (r:1 w:0)127	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)128	/// Storage: ParachainSystem ValidationData (r:1 w:0)129	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)130	/// Storage: AppPromotion Staked (r:1 w:1)131	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)132	/// Storage: AppPromotion TotalStaked (r:1 w:1)133	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)134	fn stake() -> Weight {135		// Proof Size summary in bytes:136		//  Measured:  `389`137		//  Estimated: `4764`138		// Minimum execution time: 21_088_000 picoseconds.139		Weight::from_parts(21_639_000, 4764)140			.saturating_add(T::DbWeight::get().reads(8_u64))141			.saturating_add(T::DbWeight::get().writes(5_u64))142	}143	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)144	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)145	/// Storage: AppPromotion PendingUnstake (r:1 w:1)146	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)147	/// Storage: AppPromotion Staked (r:11 w:10)148	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)149	/// Storage: AppPromotion TotalStaked (r:1 w:1)150	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)151	/// Storage: AppPromotion StakesPerAccount (r:0 w:1)152	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)153	fn unstake_all() -> Weight {154		// Proof Size summary in bytes:155		//  Measured:  `829`156		//  Estimated: `29095`157		// Minimum execution time: 42_086_000 picoseconds.158		Weight::from_parts(43_149_000, 29095)159			.saturating_add(T::DbWeight::get().reads(14_u64))160			.saturating_add(T::DbWeight::get().writes(13_u64))161	}162	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)163	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)164	/// Storage: AppPromotion PendingUnstake (r:1 w:1)165	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)166	/// Storage: AppPromotion Staked (r:11 w:10)167	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)168	/// Storage: AppPromotion TotalStaked (r:1 w:1)169	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)170	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)171	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)172	fn unstake_partial() -> Weight {173		// Proof Size summary in bytes:174		//  Measured:  `829`175		//  Estimated: `29095`176		// Minimum execution time: 46_458_000 picoseconds.177		Weight::from_parts(47_333_000, 29095)178			.saturating_add(T::DbWeight::get().reads(15_u64))179			.saturating_add(T::DbWeight::get().writes(13_u64))180	}181	/// Storage: AppPromotion Admin (r:1 w:0)182	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)183	/// Storage: Common CollectionById (r:1 w:1)184	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)185	fn sponsor_collection() -> Weight {186		// Proof Size summary in bytes:187		//  Measured:  `1060`188		//  Estimated: `4325`189		// Minimum execution time: 12_827_000 picoseconds.190		Weight::from_parts(13_610_000, 4325)191			.saturating_add(T::DbWeight::get().reads(2_u64))192			.saturating_add(T::DbWeight::get().writes(1_u64))193	}194	/// Storage: AppPromotion Admin (r:1 w:0)195	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)196	/// Storage: Common CollectionById (r:1 w:1)197	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)198	fn stop_sponsoring_collection() -> Weight {199		// Proof Size summary in bytes:200		//  Measured:  `1092`201		//  Estimated: `4325`202		// Minimum execution time: 11_899_000 picoseconds.203		Weight::from_parts(12_303_000, 4325)204			.saturating_add(T::DbWeight::get().reads(2_u64))205			.saturating_add(T::DbWeight::get().writes(1_u64))206	}207	/// Storage: AppPromotion Admin (r:1 w:0)208	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)209	/// Storage: EvmContractHelpers Sponsoring (r:0 w:1)210	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)211	fn sponsor_contract() -> Weight {212		// Proof Size summary in bytes:213		//  Measured:  `198`214		//  Estimated: `1517`215		// Minimum execution time: 10_226_000 picoseconds.216		Weight::from_parts(10_549_000, 1517)217			.saturating_add(T::DbWeight::get().reads(1_u64))218			.saturating_add(T::DbWeight::get().writes(1_u64))219	}220	/// Storage: AppPromotion Admin (r:1 w:0)221	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)222	/// Storage: EvmContractHelpers Sponsoring (r:1 w:1)223	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)224	fn stop_sponsoring_contract() -> Weight {225		// Proof Size summary in bytes:226		//  Measured:  `396`227		//  Estimated: `3527`228		// Minimum execution time: 10_528_000 picoseconds.229		Weight::from_parts(10_842_000, 3527)230			.saturating_add(T::DbWeight::get().reads(2_u64))231			.saturating_add(T::DbWeight::get().writes(1_u64))232	}233}234235// For backwards compatibility and tests236impl WeightInfo for () {237	/// Storage: Maintenance Enabled (r:1 w:0)238	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)239	/// Storage: AppPromotion PendingUnstake (r:1 w:1)240	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)241	/// Storage: Balances Freezes (r:3 w:3)242	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)243	/// Storage: System Account (r:3 w:3)244	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)245	/// Storage: Balances Locks (r:3 w:0)246	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)247	/// The range of component `b` is `[0, 3]`.248	fn on_initialize(b: u32, ) -> Weight {249		// Proof Size summary in bytes:250		//  Measured:  `222 + b * (285 ±0)`251		//  Estimated: `3622 + b * (3774 ±0)`252		// Minimum execution time: 4_107_000 picoseconds.253		Weight::from_parts(4_751_973, 3622)254			// Standard Error: 4_668255			.saturating_add(Weight::from_parts(10_570_330, 0).saturating_mul(b.into()))256			.saturating_add(RocksDbWeight::get().reads(2_u64))257			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))258			.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(b.into())))259			.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))260	}261	/// Storage: AppPromotion Admin (r:0 w:1)262	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)263	fn set_admin_address() -> Weight {264		// Proof Size summary in bytes:265		//  Measured:  `0`266		//  Estimated: `0`267		// Minimum execution time: 3_459_000 picoseconds.268		Weight::from_parts(3_627_000, 0)269			.saturating_add(RocksDbWeight::get().writes(1_u64))270	}271	/// Storage: AppPromotion Admin (r:1 w:0)272	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)273	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)274	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)275	/// Storage: ParachainSystem ValidationData (r:1 w:0)276	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)277	/// Storage: AppPromotion PreviousCalculatedRecord (r:1 w:1)278	/// Proof: AppPromotion PreviousCalculatedRecord (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)279	/// Storage: AppPromotion Staked (r:1001 w:1000)280	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)281	/// Storage: System Account (r:101 w:101)282	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)283	/// Storage: Balances Freezes (r:100 w:100)284	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)285	/// Storage: Balances Locks (r:100 w:0)286	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)287	/// Storage: AppPromotion TotalStaked (r:1 w:1)288	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)289	/// The range of component `b` is `[1, 100]`.290	fn payout_stakers(b: u32, ) -> Weight {291		// Proof Size summary in bytes:292		//  Measured:  `564 + b * (641 ±0)`293		//  Estimated: `3593 + b * (25550 ±0)`294		// Minimum execution time: 73_245_000 picoseconds.295		Weight::from_parts(74_196_000, 3593)296			// Standard Error: 8_231297			.saturating_add(Weight::from_parts(49_090_053, 0).saturating_mul(b.into()))298			.saturating_add(RocksDbWeight::get().reads(7_u64))299			.saturating_add(RocksDbWeight::get().reads((13_u64).saturating_mul(b.into())))300			.saturating_add(RocksDbWeight::get().writes(3_u64))301			.saturating_add(RocksDbWeight::get().writes((12_u64).saturating_mul(b.into())))302			.saturating_add(Weight::from_parts(0, 25550).saturating_mul(b.into()))303	}304	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)305	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)306	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)307	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)308	/// Storage: System Account (r:1 w:1)309	/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)310	/// Storage: Balances Freezes (r:1 w:1)311	/// Proof: Balances Freezes (max_values: None, max_size: Some(369), added: 2844, mode: MaxEncodedLen)312	/// Storage: Balances Locks (r:1 w:0)313	/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)314	/// Storage: ParachainSystem ValidationData (r:1 w:0)315	/// Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured)316	/// Storage: AppPromotion Staked (r:1 w:1)317	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)318	/// Storage: AppPromotion TotalStaked (r:1 w:1)319	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)320	fn stake() -> Weight {321		// Proof Size summary in bytes:322		//  Measured:  `389`323		//  Estimated: `4764`324		// Minimum execution time: 21_088_000 picoseconds.325		Weight::from_parts(21_639_000, 4764)326			.saturating_add(RocksDbWeight::get().reads(8_u64))327			.saturating_add(RocksDbWeight::get().writes(5_u64))328	}329	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)330	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)331	/// Storage: AppPromotion PendingUnstake (r:1 w:1)332	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)333	/// Storage: AppPromotion Staked (r:11 w:10)334	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)335	/// Storage: AppPromotion TotalStaked (r:1 w:1)336	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)337	/// Storage: AppPromotion StakesPerAccount (r:0 w:1)338	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)339	fn unstake_all() -> Weight {340		// Proof Size summary in bytes:341		//  Measured:  `829`342		//  Estimated: `29095`343		// Minimum execution time: 42_086_000 picoseconds.344		Weight::from_parts(43_149_000, 29095)345			.saturating_add(RocksDbWeight::get().reads(14_u64))346			.saturating_add(RocksDbWeight::get().writes(13_u64))347	}348	/// Storage: Configuration AppPromomotionConfigurationOverride (r:1 w:0)349	/// Proof: Configuration AppPromomotionConfigurationOverride (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen)350	/// Storage: AppPromotion PendingUnstake (r:1 w:1)351	/// Proof: AppPromotion PendingUnstake (max_values: None, max_size: Some(157), added: 2632, mode: MaxEncodedLen)352	/// Storage: AppPromotion Staked (r:11 w:10)353	/// Proof: AppPromotion Staked (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)354	/// Storage: AppPromotion TotalStaked (r:1 w:1)355	/// Proof: AppPromotion TotalStaked (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)356	/// Storage: AppPromotion StakesPerAccount (r:1 w:1)357	/// Proof: AppPromotion StakesPerAccount (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)358	fn unstake_partial() -> Weight {359		// Proof Size summary in bytes:360		//  Measured:  `829`361		//  Estimated: `29095`362		// Minimum execution time: 46_458_000 picoseconds.363		Weight::from_parts(47_333_000, 29095)364			.saturating_add(RocksDbWeight::get().reads(15_u64))365			.saturating_add(RocksDbWeight::get().writes(13_u64))366	}367	/// Storage: AppPromotion Admin (r:1 w:0)368	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)369	/// Storage: Common CollectionById (r:1 w:1)370	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)371	fn sponsor_collection() -> Weight {372		// Proof Size summary in bytes:373		//  Measured:  `1060`374		//  Estimated: `4325`375		// Minimum execution time: 12_827_000 picoseconds.376		Weight::from_parts(13_610_000, 4325)377			.saturating_add(RocksDbWeight::get().reads(2_u64))378			.saturating_add(RocksDbWeight::get().writes(1_u64))379	}380	/// Storage: AppPromotion Admin (r:1 w:0)381	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)382	/// Storage: Common CollectionById (r:1 w:1)383	/// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)384	fn stop_sponsoring_collection() -> Weight {385		// Proof Size summary in bytes:386		//  Measured:  `1092`387		//  Estimated: `4325`388		// Minimum execution time: 11_899_000 picoseconds.389		Weight::from_parts(12_303_000, 4325)390			.saturating_add(RocksDbWeight::get().reads(2_u64))391			.saturating_add(RocksDbWeight::get().writes(1_u64))392	}393	/// Storage: AppPromotion Admin (r:1 w:0)394	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)395	/// Storage: EvmContractHelpers Sponsoring (r:0 w:1)396	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)397	fn sponsor_contract() -> Weight {398		// Proof Size summary in bytes:399		//  Measured:  `198`400		//  Estimated: `1517`401		// Minimum execution time: 10_226_000 picoseconds.402		Weight::from_parts(10_549_000, 1517)403			.saturating_add(RocksDbWeight::get().reads(1_u64))404			.saturating_add(RocksDbWeight::get().writes(1_u64))405	}406	/// Storage: AppPromotion Admin (r:1 w:0)407	/// Proof: AppPromotion Admin (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)408	/// Storage: EvmContractHelpers Sponsoring (r:1 w:1)409	/// Proof: EvmContractHelpers Sponsoring (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen)410	fn stop_sponsoring_contract() -> Weight {411		// Proof Size summary in bytes:412		//  Measured:  `396`413		//  Estimated: `3527`414		// Minimum execution time: 10_528_000 picoseconds.415		Weight::from_parts(10_842_000, 3527)416			.saturating_add(RocksDbWeight::get().reads(2_u64))417			.saturating_add(RocksDbWeight::get().writes(1_u64))418	}419}420
modifiedpallets/maintenance/src/benchmarking.rsdiffbeforeafterboth
--- a/pallets/maintenance/src/benchmarking.rs
+++ b/pallets/maintenance/src/benchmarking.rs
@@ -15,9 +15,8 @@
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
 use frame_benchmarking::v2::*;
-use frame_support::{ensure, pallet_prelude::Weight, traits::StorePreimage};
+use frame_support::ensure;
 use frame_system::RawOrigin;
-use parity_scale_codec::Encode;
 use sp_std::vec;
 
 use super::*;
@@ -45,28 +44,6 @@
 		_(RawOrigin::Root);
 
 		ensure!(!<Enabled<T>>::get(), "didn't disable the MM");
-
-		Ok(())
-	}
-
-	// TODO: fix
-	// #[pov_mode = MaxEncodedLen {
-	// 	// PoV size is deducted from weight_bound
-	// 	Preimage::PreimageFor: Measured
-	// }]
-	#[benchmark]
-	fn execute_preimage() -> Result<(), BenchmarkError> {
-		let call = <T as Config>::RuntimeCall::from(frame_system::Call::<T>::remark {
-			remark: 1u32.encode(),
-		});
-		let hash = T::Preimages::note(call.encode().into())?;
-
-		#[extrinsic_call]
-		_(
-			RawOrigin::Root,
-			hash,
-			Weight::from_parts(100000000000, 100000000000),
-		);
 
 		Ok(())
 	}
modifiedpallets/maintenance/src/lib.rsdiffbeforeafterboth
--- a/pallets/maintenance/src/lib.rs
+++ b/pallets/maintenance/src/lib.rs
@@ -32,7 +32,6 @@
 		traits::{EnsureOrigin, QueryPreimage, StorePreimage},
 	};
 	use frame_system::pallet_prelude::*;
-	use sp_core::H256;
 	use sp_runtime::traits::Dispatchable;
 
 	use crate::weights::WeightInfo;
@@ -102,50 +101,6 @@
 			Self::deposit_event(Event::MaintenanceDisabled);
 
 			Ok(())
-		}
-
-		/// Execute a runtime call stored as a preimage.
-		///
-		/// `weight_bound` is the maximum weight that the caller is willing
-		/// to allow the extrinsic to be executed with.
-		#[pallet::call_index(2)]
-		#[pallet::weight(<T as Config>::WeightInfo::execute_preimage() + *weight_bound)]
-		pub fn execute_preimage(
-			origin: OriginFor<T>,
-			hash: H256,
-			weight_bound: Weight,
-		) -> DispatchResultWithPostInfo {
-			use parity_scale_codec::Decode;
-
-			T::PreimageOrigin::ensure_origin(origin.clone())?;
-
-			let data = T::Preimages::fetch(&hash, None)?;
-			weight_bound.set_proof_size(
-				weight_bound
-					.proof_size()
-					.checked_sub(
-						data.len()
-							.try_into()
-							.map_err(|_| DispatchError::Corruption)?,
-					)
-					.ok_or(DispatchError::Exhausted)?,
-			);
-
-			let call = <T as Config>::RuntimeCall::decode(&mut &data[..])
-				.map_err(|_| DispatchError::Corruption)?;
-
-			ensure!(
-				call.get_dispatch_info().weight.all_lte(weight_bound),
-				DispatchError::Exhausted
-			);
-
-			match call.dispatch(origin) {
-				Ok(_) => Ok(Pays::No.into()),
-				Err(error_and_info) => Err(DispatchErrorWithPostInfo {
-					post_info: Pays::No.into(),
-					error: error_and_info.error,
-				}),
-			}
 		}
 	}
 }
modifiedpallets/maintenance/src/weights.rsdiffbeforeafterboth
--- a/pallets/maintenance/src/weights.rs
+++ b/pallets/maintenance/src/weights.rs
@@ -35,7 +35,6 @@
 pub trait WeightInfo {
 	fn enable() -> Weight;
 	fn disable() -> Weight;
-	fn execute_preimage() -> Weight;
 }
 
 /// Weights for pallet_maintenance using the Substrate node and recommended hardware.
@@ -60,18 +59,6 @@
 		// Minimum execution time: 2_976_000 picoseconds.
 		Weight::from_parts(3_111_000, 0)
 			.saturating_add(T::DbWeight::get().writes(1_u64))
-	}
-	/// Storage: Preimage StatusFor (r:1 w:0)
-	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
-	/// Storage: Preimage PreimageFor (r:1 w:0)
-	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
-	fn execute_preimage() -> Weight {
-		// Proof Size summary in bytes:
-		//  Measured:  `209`
-		//  Estimated: `3674`
-		// Minimum execution time: 7_359_000 picoseconds.
-		Weight::from_parts(7_613_000, 3674)
-			.saturating_add(T::DbWeight::get().reads(2_u64))
 	}
 }
 
@@ -96,18 +83,6 @@
 		// Minimum execution time: 2_976_000 picoseconds.
 		Weight::from_parts(3_111_000, 0)
 			.saturating_add(RocksDbWeight::get().writes(1_u64))
-	}
-	/// Storage: Preimage StatusFor (r:1 w:0)
-	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
-	/// Storage: Preimage PreimageFor (r:1 w:0)
-	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
-	fn execute_preimage() -> Weight {
-		// Proof Size summary in bytes:
-		//  Measured:  `209`
-		//  Estimated: `3674`
-		// Minimum execution time: 7_359_000 picoseconds.
-		Weight::from_parts(7_613_000, 3674)
-			.saturating_add(RocksDbWeight::get().reads(2_u64))
 	}
 }
 
modifiedtests/src/maintenance.seqtest.tsdiffbeforeafterboth
--- a/tests/src/maintenance.seqtest.ts
+++ b/tests/src/maintenance.seqtest.ts
@@ -283,87 +283,6 @@
     });
   });
 
-  describe('Preimage Execution', () => {
-    const preimageHashes: string[] = [];
-
-    before(async function() {
-      await usingPlaygrounds(async (helper) => {
-        requirePalletsOrSkip(this, helper, [Pallets.Preimage, Pallets.Maintenance]);
-
-        // create a preimage to be operated with in the tests
-        const randomAccounts = await helper.arrange.createCrowd(10, 0n, superuser);
-        const randomIdentities = randomAccounts.map((acc, i) => [
-          acc.address, {
-            deposit: 0n,
-            judgements: [],
-            info: {
-              display: {
-                raw: `Random Account #${i}`,
-              },
-            },
-          },
-        ]);
-        const preimage = helper.constructApiCall('api.tx.identity.forceInsertIdentities', [randomIdentities]).method.toHex();
-        preimageHashes.push(await helper.preimage.notePreimage(bob, preimage, true));
-      });
-    });
-
-    itSub('Successfully executes call in a preimage', async ({helper}) => {
-      const result = await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
-        preimageHashes[0], {refTime: 10000000000, proofSize: 10000},
-      ])).to.be.fulfilled;
-
-      // preimage is executed, and an appropriate event is present
-      const events = result.result.events.filter((x: any) => x.event.method === 'IdentitiesInserted' && x.event.section === 'identity');
-      expect(events.length).to.be.equal(1);
-
-      // the preimage goes back to being unrequested
-      expect(await helper.preimage.getPreimageInfo(preimageHashes[0])).to.have.property('unrequested');
-    });
-
-    itSub('Does not allow execution of a preimage that would fail', async ({helper}) => {
-      const [zeroAccount] = await helper.arrange.createAccounts([0n], superuser);
-
-      const preimage = helper.constructApiCall('api.tx.balances.forceTransfer', [
-        {Id: zeroAccount.address}, {Id: superuser.address}, 1000n,
-      ]).method.toHex();
-      const preimageHash = await helper.preimage.notePreimage(bob, preimage, true);
-      preimageHashes.push(preimageHash);
-
-      await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
-        preimageHash, {refTime: 10000000000, proofSize: 10000},
-      ])).to.be.rejectedWith(/^Token: FundsUnavailable$/);
-    });
-
-    itSub('Does not allow preimage execution with non-root', async ({helper}) => {
-      await expect(helper.executeExtrinsic(bob, 'api.tx.maintenance.executePreimage', [
-        preimageHashes[0], {refTime: 10000000000, proofSize: 10000},
-      ])).to.be.rejectedWith(/^Misc: BadOrigin$/);
-    });
-
-    itSub('Does not allow execution of non-existent preimages', async ({helper}) => {
-      await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
-        '0x1010101010101010101010101010101010101010101010101010101010101010', {refTime: 10000000000, proofSize: 10000},
-      ])).to.be.rejectedWith(/^Misc: Unavailable$/);
-    });
-
-    itSub('Does not allow preimage execution with less than minimum weights', async ({helper}) => {
-      await expect(helper.getSudo().executeExtrinsic(superuser, 'api.tx.maintenance.executePreimage', [
-        preimageHashes[0], {refTime: 1000, proofSize: 100},
-      ])).to.be.rejectedWith(/^Misc: Exhausted$/);
-    });
-
-    after(async function() {
-      await usingPlaygrounds(async (helper) => {
-        if(helper.fetchMissingPalletNames([Pallets.Preimage, Pallets.Maintenance]).length != 0) return;
-
-        for(const hash of preimageHashes) {
-          await helper.preimage.unnotePreimage(bob, hash);
-        }
-      });
-    });
-  });
-
   describe('Integration Test: Maintenance mode & App Promo', () => {
     let superuser: IKeyringPair;