git.delta.rocks / unique-network / refs/commits / c1f4e7e1cab1

difftreelog

source

pallets/app-promotion/src/weights.rs6.9 KiBsourcehistory
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: 2022-08-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-app-promotion15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/app-promotion/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]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 start_app_promotion() -> Weight;37	fn stop_app_promotion() -> Weight;38	fn set_admin_address() -> Weight;39	fn payout_stakers() -> Weight;40	fn stake() -> Weight;41	fn unstake() -> Weight;42	fn recalculate_stake() -> Weight;43	fn sponsor_collection() -> Weight;44	fn stop_sponsoring_collection() -> Weight;45	fn sponsor_contract() -> Weight;46	fn stop_sponsoring_contract() -> Weight;47}4849/// Weights for pallet_app_promotion using the Substrate node and recommended hardware.50pub struct SubstrateWeight<T>(PhantomData<T>);51impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {52	// Storage: Promotion StartBlock (r:1 w:1)53	// Storage: ParachainSystem ValidationData (r:1 w:0)54	// Storage: Promotion NextInterestBlock (r:0 w:1)55	fn start_app_promotion() -> Weight {56		(2_299_000 as Weight)57			.saturating_add(T::DbWeight::get().reads(2 as Weight))58			.saturating_add(T::DbWeight::get().writes(2 as Weight))59	}60	// Storage: Promotion StartBlock (r:1 w:1)61	// Storage: Promotion NextInterestBlock (r:0 w:1)62	fn stop_app_promotion() -> Weight {63		(1_733_000 as Weight)64			.saturating_add(T::DbWeight::get().reads(1 as Weight))65			.saturating_add(T::DbWeight::get().writes(2 as Weight))66	}67	// Storage: Promotion Admin (r:0 w:1)68	fn set_admin_address() -> Weight {69		(553_000 as Weight)70			.saturating_add(T::DbWeight::get().writes(1 as Weight))71	}72	// Storage: Promotion Admin (r:1 w:0)73	fn payout_stakers() -> Weight {74		(1_398_000 as Weight)75			.saturating_add(T::DbWeight::get().reads(1 as Weight))76	}77	// Storage: System Account (r:1 w:1)78	// Storage: Balances Locks (r:1 w:1)79	// Storage: ParachainSystem ValidationData (r:1 w:0)80	// Storage: Promotion Staked (r:1 w:1)81	fn stake() -> Weight {82		(9_506_000 as Weight)83			.saturating_add(T::DbWeight::get().reads(4 as Weight))84			.saturating_add(T::DbWeight::get().writes(3 as Weight))85	}86	// Storage: System Account (r:1 w:0)87	fn unstake() -> Weight {88		(2_529_000 as Weight)89			.saturating_add(T::DbWeight::get().reads(1 as Weight))90	}91	// Storage: System Account (r:1 w:0)92	fn recalculate_stake() -> Weight {93		(2_203_000 as Weight)94			.saturating_add(T::DbWeight::get().reads(1 as Weight))95	}96	// Storage: Promotion Admin (r:1 w:0)97	// Storage: Common CollectionById (r:1 w:1)98	fn sponsor_collection() -> Weight {99		(10_882_000 as Weight)100			.saturating_add(T::DbWeight::get().reads(2 as Weight))101			.saturating_add(T::DbWeight::get().writes(1 as Weight))102	}103	// Storage: Promotion Admin (r:1 w:0)104	// Storage: Common CollectionById (r:1 w:1)105	fn stop_sponsoring_collection() -> Weight {106		(10_544_000 as Weight)107			.saturating_add(T::DbWeight::get().reads(2 as Weight))108			.saturating_add(T::DbWeight::get().writes(1 as Weight))109	}110	// Storage: Promotion Admin (r:1 w:0)111	// Storage: EvmContractHelpers Sponsoring (r:0 w:1)112	fn sponsor_contract() -> Weight {113		(2_163_000 as Weight)114			.saturating_add(T::DbWeight::get().reads(1 as Weight))115			.saturating_add(T::DbWeight::get().writes(1 as Weight))116	}117	// Storage: Promotion Admin (r:1 w:0)118	// Storage: EvmContractHelpers Sponsoring (r:1 w:1)119	fn stop_sponsoring_contract() -> Weight {120		(3_511_000 as Weight)121			.saturating_add(T::DbWeight::get().reads(2 as Weight))122			.saturating_add(T::DbWeight::get().writes(1 as Weight))123	}124}125126// For backwards compatibility and tests127impl WeightInfo for () {128	// Storage: Promotion StartBlock (r:1 w:1)129	// Storage: ParachainSystem ValidationData (r:1 w:0)130	// Storage: Promotion NextInterestBlock (r:0 w:1)131	fn start_app_promotion() -> Weight {132		(2_299_000 as Weight)133			.saturating_add(RocksDbWeight::get().reads(2 as Weight))134			.saturating_add(RocksDbWeight::get().writes(2 as Weight))135	}136	// Storage: Promotion StartBlock (r:1 w:1)137	// Storage: Promotion NextInterestBlock (r:0 w:1)138	fn stop_app_promotion() -> Weight {139		(1_733_000 as Weight)140			.saturating_add(RocksDbWeight::get().reads(1 as Weight))141			.saturating_add(RocksDbWeight::get().writes(2 as Weight))142	}143	// Storage: Promotion Admin (r:0 w:1)144	fn set_admin_address() -> Weight {145		(553_000 as Weight)146			.saturating_add(RocksDbWeight::get().writes(1 as Weight))147	}148	// Storage: Promotion Admin (r:1 w:0)149	fn payout_stakers() -> Weight {150		(1_398_000 as Weight)151			.saturating_add(RocksDbWeight::get().reads(1 as Weight))152	}153	// Storage: System Account (r:1 w:1)154	// Storage: Balances Locks (r:1 w:1)155	// Storage: ParachainSystem ValidationData (r:1 w:0)156	// Storage: Promotion Staked (r:1 w:1)157	fn stake() -> Weight {158		(9_506_000 as Weight)159			.saturating_add(RocksDbWeight::get().reads(4 as Weight))160			.saturating_add(RocksDbWeight::get().writes(3 as Weight))161	}162	// Storage: System Account (r:1 w:0)163	fn unstake() -> Weight {164		(2_529_000 as Weight)165			.saturating_add(RocksDbWeight::get().reads(1 as Weight))166	}167	// Storage: System Account (r:1 w:0)168	fn recalculate_stake() -> Weight {169		(2_203_000 as Weight)170			.saturating_add(RocksDbWeight::get().reads(1 as Weight))171	}172	// Storage: Promotion Admin (r:1 w:0)173	// Storage: Common CollectionById (r:1 w:1)174	fn sponsor_collection() -> Weight {175		(10_882_000 as Weight)176			.saturating_add(RocksDbWeight::get().reads(2 as Weight))177			.saturating_add(RocksDbWeight::get().writes(1 as Weight))178	}179	// Storage: Promotion Admin (r:1 w:0)180	// Storage: Common CollectionById (r:1 w:1)181	fn stop_sponsoring_collection() -> Weight {182		(10_544_000 as Weight)183			.saturating_add(RocksDbWeight::get().reads(2 as Weight))184			.saturating_add(RocksDbWeight::get().writes(1 as Weight))185	}186	// Storage: Promotion Admin (r:1 w:0)187	// Storage: EvmContractHelpers Sponsoring (r:0 w:1)188	fn sponsor_contract() -> Weight {189		(2_163_000 as Weight)190			.saturating_add(RocksDbWeight::get().reads(1 as Weight))191			.saturating_add(RocksDbWeight::get().writes(1 as Weight))192	}193	// Storage: Promotion Admin (r:1 w:0)194	// Storage: EvmContractHelpers Sponsoring (r:1 w:1)195	fn stop_sponsoring_contract() -> Weight {196		(3_511_000 as Weight)197			.saturating_add(RocksDbWeight::get().reads(2 as Weight))198			.saturating_add(RocksDbWeight::get().writes(1 as Weight))199	}200}