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 43.0.0
20
//! DATE: 2025-02-04, 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: None, DB CACHE: 1024
24

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

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

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

            
48
/// Weights for `pallet_multisig`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
51
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
52
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
53
	/// The range of component `z` is `[0, 10000]`.
54
	fn as_multi_threshold_1(z: u32, ) -> Weight {
55
		// Proof Size summary in bytes:
56
		//  Measured:  `42`
57
		//  Estimated: `1527`
58
		// Minimum execution time: 15_771_000 picoseconds.
59
		Weight::from_parts(16_565_612, 1527)
60
			// Standard Error: 3
61
			.saturating_add(Weight::from_parts(539, 0).saturating_mul(z.into()))
62
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
	}
64
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
65
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
66
	/// The range of component `s` is `[2, 100]`.
67
	/// The range of component `z` is `[0, 10000]`.
68
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
69
		// Proof Size summary in bytes:
70
		//  Measured:  `304`
71
		//  Estimated: `5587`
72
		// Minimum execution time: 44_465_000 picoseconds.
73
		Weight::from_parts(34_468_866, 5587)
74
			// Standard Error: 1_760
75
			.saturating_add(Weight::from_parts(119_658, 0).saturating_mul(s.into()))
76
			// Standard Error: 17
77
			.saturating_add(Weight::from_parts(1_500, 0).saturating_mul(z.into()))
78
			.saturating_add(T::DbWeight::get().reads(1_u64))
79
			.saturating_add(T::DbWeight::get().writes(1_u64))
80
	}
81
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
82
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
83
	/// The range of component `s` is `[3, 100]`.
84
	/// The range of component `z` is `[0, 10000]`.
85
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
86
		// Proof Size summary in bytes:
87
		//  Measured:  `312`
88
		//  Estimated: `5587`
89
		// Minimum execution time: 27_987_000 picoseconds.
90
		Weight::from_parts(18_719_478, 5587)
91
			// Standard Error: 462
92
			.saturating_add(Weight::from_parts(104_239, 0).saturating_mul(s.into()))
93
			// Standard Error: 4
94
			.saturating_add(Weight::from_parts(1_495, 0).saturating_mul(z.into()))
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
	}
98
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
99
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
100
	/// Storage: `System::Account` (r:1 w:1)
101
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
102
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
103
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104
	/// The range of component `s` is `[2, 100]`.
105
	/// The range of component `z` is `[0, 10000]`.
106
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
107
		// Proof Size summary in bytes:
108
		//  Measured:  `475 + s * (20 ±0)`
109
		//  Estimated: `5587 + s * (20 ±0)`
110
		// Minimum execution time: 57_249_000 picoseconds.
111
		Weight::from_parts(44_529_812, 5587)
112
			// Standard Error: 1_245
113
			.saturating_add(Weight::from_parts(147_870, 0).saturating_mul(s.into()))
114
			// Standard Error: 12
115
			.saturating_add(Weight::from_parts(1_513, 0).saturating_mul(z.into()))
116
			.saturating_add(T::DbWeight::get().reads(3_u64))
117
			.saturating_add(T::DbWeight::get().writes(2_u64))
118
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(s.into()))
119
	}
120
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
121
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
122
	/// The range of component `s` is `[2, 100]`.
123
	fn approve_as_multi_create(s: u32, ) -> Weight {
124
		// Proof Size summary in bytes:
125
		//  Measured:  `304`
126
		//  Estimated: `5587`
127
		// Minimum execution time: 31_643_000 picoseconds.
128
		Weight::from_parts(32_917_930, 5587)
129
			// Standard Error: 850
130
			.saturating_add(Weight::from_parts(116_291, 0).saturating_mul(s.into()))
131
			.saturating_add(T::DbWeight::get().reads(1_u64))
132
			.saturating_add(T::DbWeight::get().writes(1_u64))
133
	}
134
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
135
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
136
	/// The range of component `s` is `[2, 100]`.
137
	fn approve_as_multi_approve(s: u32, ) -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `312`
140
		//  Estimated: `5587`
141
		// Minimum execution time: 16_884_000 picoseconds.
142
		Weight::from_parts(17_617_302, 5587)
143
			// Standard Error: 530
144
			.saturating_add(Weight::from_parts(98_595, 0).saturating_mul(s.into()))
145
			.saturating_add(T::DbWeight::get().reads(1_u64))
146
			.saturating_add(T::DbWeight::get().writes(1_u64))
147
	}
148
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
149
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
150
	/// The range of component `s` is `[2, 100]`.
151
	fn cancel_as_multi(s: u32, ) -> Weight {
152
		// Proof Size summary in bytes:
153
		//  Measured:  `474`
154
		//  Estimated: `5587`
155
		// Minimum execution time: 32_553_000 picoseconds.
156
		Weight::from_parts(33_595_903, 5587)
157
			// Standard Error: 711
158
			.saturating_add(Weight::from_parts(111_912, 0).saturating_mul(s.into()))
159
			.saturating_add(T::DbWeight::get().reads(1_u64))
160
			.saturating_add(T::DbWeight::get().writes(1_u64))
161
	}
162
}