1
// Copyright 2025 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

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

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_multisig
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_multisig`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
54
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
55
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56
	/// The range of component `z` is `[0, 10000]`.
57
	fn as_multi_threshold_1(z: u32, ) -> Weight {
58
		// Proof Size summary in bytes:
59
		//  Measured:  `42`
60
		//  Estimated: `1527`
61
		// Minimum execution time: 28_396_000 picoseconds.
62
		Weight::from_parts(29_169_232, 1527)
63
			// Standard Error: 17
64
			.saturating_add(Weight::from_parts(4_091, 0).saturating_mul(z.into()))
65
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
	}
67
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
68
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
69
	/// The range of component `s` is `[2, 100]`.
70
	/// The range of component `z` is `[0, 10000]`.
71
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
72
		// Proof Size summary in bytes:
73
		//  Measured:  `304`
74
		//  Estimated: `5587`
75
		// Minimum execution time: 52_036_000 picoseconds.
76
		Weight::from_parts(38_126_731, 5587)
77
			// Standard Error: 1_191
78
			.saturating_add(Weight::from_parts(149_621, 0).saturating_mul(s.into()))
79
			// Standard Error: 11
80
			.saturating_add(Weight::from_parts(4_147, 0).saturating_mul(z.into()))
81
			.saturating_add(T::DbWeight::get().reads(1_u64))
82
			.saturating_add(T::DbWeight::get().writes(1_u64))
83
	}
84
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
85
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
86
	/// The range of component `s` is `[3, 100]`.
87
	/// The range of component `z` is `[0, 10000]`.
88
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `312`
91
		//  Estimated: `5587`
92
		// Minimum execution time: 34_395_000 picoseconds.
93
		Weight::from_parts(20_737_241, 5587)
94
			// Standard Error: 991
95
			.saturating_add(Weight::from_parts(146_549, 0).saturating_mul(s.into()))
96
			// Standard Error: 9
97
			.saturating_add(Weight::from_parts(4_137, 0).saturating_mul(z.into()))
98
			.saturating_add(T::DbWeight::get().reads(1_u64))
99
			.saturating_add(T::DbWeight::get().writes(1_u64))
100
	}
101
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
102
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
103
	/// Storage: `System::Account` (r:1 w:1)
104
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
105
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
106
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
107
	/// The range of component `s` is `[2, 100]`.
108
	/// The range of component `z` is `[0, 10000]`.
109
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
110
		// Proof Size summary in bytes:
111
		//  Measured:  `475 + s * (20 ±0)`
112
		//  Estimated: `5587 + s * (20 ±0)`
113
		// Minimum execution time: 62_114_000 picoseconds.
114
		Weight::from_parts(45_359_432, 5587)
115
			// Standard Error: 1_324
116
			.saturating_add(Weight::from_parts(186_229, 0).saturating_mul(s.into()))
117
			// Standard Error: 12
118
			.saturating_add(Weight::from_parts(4_140, 0).saturating_mul(z.into()))
119
			.saturating_add(T::DbWeight::get().reads(3_u64))
120
			.saturating_add(T::DbWeight::get().writes(2_u64))
121
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(s.into()))
122
	}
123
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
124
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
125
	/// The range of component `s` is `[2, 100]`.
126
	fn approve_as_multi_create(s: u32, ) -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `304`
129
		//  Estimated: `5587`
130
		// Minimum execution time: 34_149_000 picoseconds.
131
		Weight::from_parts(35_785_801, 5587)
132
			// Standard Error: 782
133
			.saturating_add(Weight::from_parts(160_788, 0).saturating_mul(s.into()))
134
			.saturating_add(T::DbWeight::get().reads(1_u64))
135
			.saturating_add(T::DbWeight::get().writes(1_u64))
136
	}
137
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
138
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
139
	/// The range of component `s` is `[2, 100]`.
140
	fn approve_as_multi_approve(s: u32, ) -> Weight {
141
		// Proof Size summary in bytes:
142
		//  Measured:  `312`
143
		//  Estimated: `5587`
144
		// Minimum execution time: 18_174_000 picoseconds.
145
		Weight::from_parts(18_764_747, 5587)
146
			// Standard Error: 595
147
			.saturating_add(Weight::from_parts(149_607, 0).saturating_mul(s.into()))
148
			.saturating_add(T::DbWeight::get().reads(1_u64))
149
			.saturating_add(T::DbWeight::get().writes(1_u64))
150
	}
151
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
152
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
153
	/// The range of component `s` is `[2, 100]`.
154
	fn cancel_as_multi(s: u32, ) -> Weight {
155
		// Proof Size summary in bytes:
156
		//  Measured:  `474`
157
		//  Estimated: `5587`
158
		// Minimum execution time: 36_727_000 picoseconds.
159
		Weight::from_parts(38_092_175, 5587)
160
			// Standard Error: 1_199
161
			.saturating_add(Weight::from_parts(161_721, 0).saturating_mul(s.into()))
162
			.saturating_add(T::DbWeight::get().reads(1_u64))
163
			.saturating_add(T::DbWeight::get().writes(1_u64))
164
	}
165
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
166
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
167
	/// The range of component `s` is `[2, 100]`.
168
	fn poke_deposit(s: u32, ) -> Weight {
169
		// Proof Size summary in bytes:
170
		//  Measured:  `474`
171
		//  Estimated: `5587`
172
		// Minimum execution time: 35_089_000 picoseconds.
173
		Weight::from_parts(36_162_565, 5587)
174
			// Standard Error: 794
175
			.saturating_add(Weight::from_parts(154_671, 0).saturating_mul(s.into()))
176
			.saturating_add(T::DbWeight::get().reads(1_u64))
177
			.saturating_add(T::DbWeight::get().writes(1_u64))
178
	}
179
}