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}420difftreelog
source
pallets/app-promotion/src/weights.rs22.2 KiBsourcehistory