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 32.0.0
21
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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/moonbase-runtime/moonbase_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
// --output=./runtime/moonbase/src/weights
42

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

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

            
50
/// Weights for `pallet_multisig`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
53
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
54
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55
	/// The range of component `z` is `[0, 10000]`.
56
	fn as_multi_threshold_1(z: u32, ) -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `42`
59
		//  Estimated: `1527`
60
		// Minimum execution time: 17_551_000 picoseconds.
61
		Weight::from_parts(18_330_141, 1527)
62
			// Standard Error: 2
63
			.saturating_add(Weight::from_parts(431, 0).saturating_mul(z.into()))
64
			.saturating_add(T::DbWeight::get().reads(1_u64))
65
	}
66
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
67
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
68
	/// The range of component `s` is `[2, 100]`.
69
	/// The range of component `z` is `[0, 10000]`.
70
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
71
		// Proof Size summary in bytes:
72
		//  Measured:  `304`
73
		//  Estimated: `5587`
74
		// Minimum execution time: 47_106_000 picoseconds.
75
		Weight::from_parts(36_440_327, 5587)
76
			// Standard Error: 1_331
77
			.saturating_add(Weight::from_parts(118_748, 0).saturating_mul(s.into()))
78
			// Standard Error: 13
79
			.saturating_add(Weight::from_parts(1_936, 0).saturating_mul(z.into()))
80
			.saturating_add(T::DbWeight::get().reads(1_u64))
81
			.saturating_add(T::DbWeight::get().writes(1_u64))
82
	}
83
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
84
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
85
	/// The range of component `s` is `[3, 100]`.
86
	/// The range of component `z` is `[0, 10000]`.
87
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
88
		// Proof Size summary in bytes:
89
		//  Measured:  `312`
90
		//  Estimated: `5587`
91
		// Minimum execution time: 30_505_000 picoseconds.
92
		Weight::from_parts(20_986_677, 5587)
93
			// Standard Error: 1_127
94
			.saturating_add(Weight::from_parts(104_774, 0).saturating_mul(s.into()))
95
			// Standard Error: 11
96
			.saturating_add(Weight::from_parts(1_899, 0).saturating_mul(z.into()))
97
			.saturating_add(T::DbWeight::get().reads(1_u64))
98
			.saturating_add(T::DbWeight::get().writes(1_u64))
99
	}
100
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
101
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
102
	/// Storage: `System::Account` (r:1 w:1)
103
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
104
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
105
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
106
	/// The range of component `s` is `[2, 100]`.
107
	/// The range of component `z` is `[0, 10000]`.
108
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `475 + s * (20 ±0)`
111
		//  Estimated: `5587 + s * (20 ±0)`
112
		// Minimum execution time: 60_867_000 picoseconds.
113
		Weight::from_parts(46_140_489, 5587)
114
			// Standard Error: 1_528
115
			.saturating_add(Weight::from_parts(158_407, 0).saturating_mul(s.into()))
116
			// Standard Error: 14
117
			.saturating_add(Weight::from_parts(1_977, 0).saturating_mul(z.into()))
118
			.saturating_add(T::DbWeight::get().reads(3_u64))
119
			.saturating_add(T::DbWeight::get().writes(2_u64))
120
			.saturating_add(Weight::from_parts(0, 20).saturating_mul(s.into()))
121
	}
122
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
123
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
124
	/// The range of component `s` is `[2, 100]`.
125
	fn approve_as_multi_create(s: u32, ) -> Weight {
126
		// Proof Size summary in bytes:
127
		//  Measured:  `304`
128
		//  Estimated: `5587`
129
		// Minimum execution time: 32_322_000 picoseconds.
130
		Weight::from_parts(33_811_871, 5587)
131
			// Standard Error: 2_119
132
			.saturating_add(Weight::from_parts(136_590, 0).saturating_mul(s.into()))
133
			.saturating_add(T::DbWeight::get().reads(1_u64))
134
			.saturating_add(T::DbWeight::get().writes(1_u64))
135
	}
136
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
137
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
138
	/// The range of component `s` is `[2, 100]`.
139
	fn approve_as_multi_approve(s: u32, ) -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `312`
142
		//  Estimated: `5587`
143
		// Minimum execution time: 17_421_000 picoseconds.
144
		Weight::from_parts(18_352_904, 5587)
145
			// Standard Error: 647
146
			.saturating_add(Weight::from_parts(115_827, 0).saturating_mul(s.into()))
147
			.saturating_add(T::DbWeight::get().reads(1_u64))
148
			.saturating_add(T::DbWeight::get().writes(1_u64))
149
	}
150
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
151
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
152
	/// The range of component `s` is `[2, 100]`.
153
	fn cancel_as_multi(s: u32, ) -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `474`
156
		//  Estimated: `5587`
157
		// Minimum execution time: 33_368_000 picoseconds.
158
		Weight::from_parts(34_639_047, 5587)
159
			// Standard Error: 835
160
			.saturating_add(Weight::from_parts(126_354, 0).saturating_mul(s.into()))
161
			.saturating_add(T::DbWeight::get().reads(1_u64))
162
			.saturating_add(T::DbWeight::get().writes(1_u64))
163
	}
164
}