referrerpolicy=no-referrer-when-downgrade

pallet_dummy_dim/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for pallet_ranked_collective
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2022-05-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
23
24// Executed Command:
25// /Users/gav/Core/substrate/target/release/substrate
26// benchmark
27// pallet
28// --pallet
29// pallet-dummy-dim
30// --extrinsic=*
31// --chain=dev
32// --steps=50
33// --repeat=20
34// --output=../../../frame/dummy-dim/src/weights.rs
35// --template=../../../.maintain/frame-weight-template.hbs
36// --header=../../../HEADER-APACHE2
37// --record-proof
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42
43use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44use core::marker::PhantomData;
45
46/// Weight functions needed for pallet_dummy_dim.
47pub trait WeightInfo {
48	fn reserve_ids(c: u32) -> Weight;
49	fn renew_id_reservation() -> Weight;
50	fn cancel_id_reservation() -> Weight;
51	fn recognize_personhood(c: u32) -> Weight;
52	fn suspend_personhood(c: u32) -> Weight;
53	fn resume_personhood() -> Weight;
54	fn start_mutation_session() -> Weight;
55	fn end_mutation_session() -> Weight;
56}
57
58/// Weights for pallet_dummy_dim using the Substrate node and recommended hardware.
59pub struct SubstrateWeight<T>(PhantomData<T>);
60impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
61	fn reserve_ids(_c: u32) -> Weight { Weight::zero() }
62	fn renew_id_reservation() -> Weight { Weight::zero() }
63	fn cancel_id_reservation() -> Weight { Weight::zero() }
64	fn recognize_personhood(_c: u32) -> Weight { Weight::zero() }
65	fn suspend_personhood(_c: u32) -> Weight { Weight::zero() }
66	fn resume_personhood() -> Weight { Weight::zero() }
67	fn start_mutation_session() -> Weight { Weight::zero() }
68	fn end_mutation_session() -> Weight { Weight::zero() }
69}
70
71// For backwards compatibility and tests
72impl WeightInfo for () {
73	fn reserve_ids(_c: u32) -> Weight { Weight::zero() }
74	fn renew_id_reservation() -> Weight { Weight::zero() }
75	fn cancel_id_reservation() -> Weight { Weight::zero() }
76	fn recognize_personhood(_c: u32) -> Weight { Weight::zero() }
77	fn suspend_personhood(_c: u32) -> Weight { Weight::zero() }
78	fn resume_personhood() -> Weight { Weight::zero() }
79	fn start_mutation_session() -> Weight { Weight::zero() }
80	fn end_mutation_session() -> Weight { Weight::zero() }
81}