1
// Copyright 2024 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17
//! Autogenerated weights for `pallet_multisig`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
20
//! DATE: 2024-10-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --chain=moonbase-dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_multisig
33
// --extrinsic=*
34
// --wasm-execution=compiled
35
// --header=./file_header.txt
36
// --template=./benchmarking/frame-weight-template.hbs
37
// --output=./runtime/common/src/weights/
38

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

            
43
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44
use sp_std::marker::PhantomData;
45

            
46
/// Weights for `pallet_multisig`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
49
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
50
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
51
	/// The range of component `z` is `[0, 10000]`.
52
	fn as_multi_threshold_1(z: u32, ) -> Weight {
53
		// Proof Size summary in bytes:
54
		//  Measured:  `42`
55
		//  Estimated: `1527`
56
		// Minimum execution time: 15_012_000 picoseconds.
57
		Weight::from_parts(15_722_401, 1527)
58
			// Standard Error: 2
59
			.saturating_add(Weight::from_parts(509, 0).saturating_mul(z.into()))
60
			.saturating_add(T::DbWeight::get().reads(1_u64))
61
	}
62
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
63
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
64
	/// The range of component `s` is `[2, 100]`.
65
	/// The range of component `z` is `[0, 10000]`.
66
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
67
		// Proof Size summary in bytes:
68
		//  Measured:  `304`
69
		//  Estimated: `5587`
70
		// Minimum execution time: 41_674_000 picoseconds.
71
		Weight::from_parts(31_403_043, 5587)
72
			// Standard Error: 818
73
			.saturating_add(Weight::from_parts(117_130, 0).saturating_mul(s.into()))
74
			// Standard Error: 8
75
			.saturating_add(Weight::from_parts(1_509, 0).saturating_mul(z.into()))
76
			.saturating_add(T::DbWeight::get().reads(1_u64))
77
			.saturating_add(T::DbWeight::get().writes(1_u64))
78
	}
79
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
80
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
81
	/// The range of component `s` is `[3, 100]`.
82
	/// The range of component `z` is `[0, 10000]`.
83
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
84
		// Proof Size summary in bytes:
85
		//  Measured:  `312`
86
		//  Estimated: `5587`
87
		// Minimum execution time: 25_687_000 picoseconds.
88
		Weight::from_parts(16_128_185, 5587)
89
			// Standard Error: 414
90
			.saturating_add(Weight::from_parts(105_531, 0).saturating_mul(s.into()))
91
			// Standard Error: 4
92
			.saturating_add(Weight::from_parts(1_490, 0).saturating_mul(z.into()))
93
			.saturating_add(T::DbWeight::get().reads(1_u64))
94
			.saturating_add(T::DbWeight::get().writes(1_u64))
95
	}
96
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
97
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
98
	/// Storage: `System::Account` (r:1 w:1)
99
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
100
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
101
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102
	/// The range of component `s` is `[2, 100]`.
103
	/// The range of component `z` is `[0, 10000]`.
104
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
105
		// Proof Size summary in bytes:
106
		//  Measured:  `475 + s * (20 ±0)`
107
		//  Estimated: `5587 + s * (20 ±0)`
108
		// Minimum execution time: 52_339_000 picoseconds.
109
		Weight::from_parts(38_249_617, 5587)
110
			// Standard Error: 884
111
			.saturating_add(Weight::from_parts(156_197, 0).saturating_mul(s.into()))
112
			// Standard Error: 8
113
			.saturating_add(Weight::from_parts(1_550, 0).saturating_mul(z.into()))
114
			.saturating_add(T::DbWeight::get().reads(3_u64))
115
			.saturating_add(T::DbWeight::get().writes(2_u64))
116
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(s.into()))
117
	}
118
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
119
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
120
	/// The range of component `s` is `[2, 100]`.
121
	fn approve_as_multi_create(s: u32, ) -> Weight {
122
		// Proof Size summary in bytes:
123
		//  Measured:  `304`
124
		//  Estimated: `5587`
125
		// Minimum execution time: 28_704_000 picoseconds.
126
		Weight::from_parts(29_906_375, 5587)
127
			// Standard Error: 792
128
			.saturating_add(Weight::from_parts(117_318, 0).saturating_mul(s.into()))
129
			.saturating_add(T::DbWeight::get().reads(1_u64))
130
			.saturating_add(T::DbWeight::get().writes(1_u64))
131
	}
132
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
133
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
134
	/// The range of component `s` is `[2, 100]`.
135
	fn approve_as_multi_approve(s: u32, ) -> Weight {
136
		// Proof Size summary in bytes:
137
		//  Measured:  `312`
138
		//  Estimated: `5587`
139
		// Minimum execution time: 14_532_000 picoseconds.
140
		Weight::from_parts(14_972_942, 5587)
141
			// Standard Error: 452
142
			.saturating_add(Weight::from_parts(102_638, 0).saturating_mul(s.into()))
143
			.saturating_add(T::DbWeight::get().reads(1_u64))
144
			.saturating_add(T::DbWeight::get().writes(1_u64))
145
	}
146
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
147
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
148
	/// The range of component `s` is `[2, 100]`.
149
	fn cancel_as_multi(s: u32, ) -> Weight {
150
		// Proof Size summary in bytes:
151
		//  Measured:  `474`
152
		//  Estimated: `5587`
153
		// Minimum execution time: 29_256_000 picoseconds.
154
		Weight::from_parts(29_906_746, 5587)
155
			// Standard Error: 635
156
			.saturating_add(Weight::from_parts(113_811, 0).saturating_mul(s.into()))
157
			.saturating_add(T::DbWeight::get().reads(1_u64))
158
			.saturating_add(T::DbWeight::get().writes(1_u64))
159
	}
160
}