1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 49.1.0
21
//! DATE: 2025-11-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_multisig
33
// --extrinsic
34
// *
35
// --chain=starlight-dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/starlight_weights/pallet_multisig.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for pallet_multisig using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_multisig::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
57
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
58
	/// The range of component `z` is `[0, 10000]`.
59
	fn as_multi_threshold_1(z: u32, ) -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `42`
62
		//  Estimated: `1527`
63
		// Minimum execution time: 29_290_000 picoseconds.
64
		Weight::from_parts(30_425_323, 1527)
65
			// Standard Error: 4
66
			.saturating_add(Weight::from_parts(1_927, 0).saturating_mul(z.into()))
67
			.saturating_add(T::DbWeight::get().reads(1_u64))
68
	}
69
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
70
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
71
	/// The range of component `s` is `[2, 100]`.
72
	/// The range of component `z` is `[0, 10000]`.
73
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `400 + s * (2 ±0)`
76
		//  Estimated: `6811`
77
		// Minimum execution time: 57_614_000 picoseconds.
78
		Weight::from_parts(45_685_652, 6811)
79
			// Standard Error: 614
80
			.saturating_add(Weight::from_parts(140_547, 0).saturating_mul(s.into()))
81
			// Standard Error: 6
82
			.saturating_add(Weight::from_parts(1_908, 0).saturating_mul(z.into()))
83
			.saturating_add(T::DbWeight::get().reads(1_u64))
84
			.saturating_add(T::DbWeight::get().writes(1_u64))
85
	}
86
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
87
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
88
	/// The range of component `s` is `[3, 100]`.
89
	/// The range of component `z` is `[0, 10000]`.
90
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
91
		// Proof Size summary in bytes:
92
		//  Measured:  `419`
93
		//  Estimated: `6811`
94
		// Minimum execution time: 37_033_000 picoseconds.
95
		Weight::from_parts(26_251_269, 6811)
96
			// Standard Error: 556
97
			.saturating_add(Weight::from_parts(122_553, 0).saturating_mul(s.into()))
98
			// Standard Error: 5
99
			.saturating_add(Weight::from_parts(1_930, 0).saturating_mul(z.into()))
100
			.saturating_add(T::DbWeight::get().reads(1_u64))
101
			.saturating_add(T::DbWeight::get().writes(1_u64))
102
	}
103
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
104
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
105
	/// Storage: `System::Account` (r:1 w:1)
106
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
107
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
108
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
109
	/// The range of component `s` is `[2, 100]`.
110
	/// The range of component `z` is `[0, 10000]`.
111
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
112
		// Proof Size summary in bytes:
113
		//  Measured:  `567 + s * (33 ±0)`
114
		//  Estimated: `6811 + s * (34 ±0)`
115
		// Minimum execution time: 67_759_000 picoseconds.
116
		Weight::from_parts(52_078_056, 6811)
117
			// Standard Error: 781
118
			.saturating_add(Weight::from_parts(174_632, 0).saturating_mul(s.into()))
119
			// Standard Error: 7
120
			.saturating_add(Weight::from_parts(1_964, 0).saturating_mul(z.into()))
121
			.saturating_add(T::DbWeight::get().reads(3_u64))
122
			.saturating_add(T::DbWeight::get().writes(2_u64))
123
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
124
	}
125
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
126
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
127
	/// The range of component `s` is `[2, 100]`.
128
	fn approve_as_multi_create(s: u32, ) -> Weight {
129
		// Proof Size summary in bytes:
130
		//  Measured:  `400 + s * (2 ±0)`
131
		//  Estimated: `6811`
132
		// Minimum execution time: 42_846_000 picoseconds.
133
		Weight::from_parts(43_078_852, 6811)
134
			// Standard Error: 894
135
			.saturating_add(Weight::from_parts(140_589, 0).saturating_mul(s.into()))
136
			.saturating_add(T::DbWeight::get().reads(1_u64))
137
			.saturating_add(T::DbWeight::get().writes(1_u64))
138
	}
139
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
140
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
141
	/// The range of component `s` is `[2, 100]`.
142
	fn approve_as_multi_approve(s: u32, ) -> Weight {
143
		// Proof Size summary in bytes:
144
		//  Measured:  `419`
145
		//  Estimated: `6811`
146
		// Minimum execution time: 24_494_000 picoseconds.
147
		Weight::from_parts(24_275_701, 6811)
148
			// Standard Error: 833
149
			.saturating_add(Weight::from_parts(116_426, 0).saturating_mul(s.into()))
150
			.saturating_add(T::DbWeight::get().reads(1_u64))
151
			.saturating_add(T::DbWeight::get().writes(1_u64))
152
	}
153
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
154
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
155
	/// The range of component `s` is `[2, 100]`.
156
	fn cancel_as_multi(s: u32, ) -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `591 + s * (1 ±0)`
159
		//  Estimated: `6811`
160
		// Minimum execution time: 42_900_000 picoseconds.
161
		Weight::from_parts(43_158_768, 6811)
162
			// Standard Error: 878
163
			.saturating_add(Weight::from_parts(133_188, 0).saturating_mul(s.into()))
164
			.saturating_add(T::DbWeight::get().reads(1_u64))
165
			.saturating_add(T::DbWeight::get().writes(1_u64))
166
	}
167
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
168
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
169
	/// The range of component `s` is `[2, 100]`.
170
	fn poke_deposit(s: u32, ) -> Weight {
171
		// Proof Size summary in bytes:
172
		//  Measured:  `591 + s * (1 ±0)`
173
		//  Estimated: `6811`
174
		// Minimum execution time: 41_118_000 picoseconds.
175
		Weight::from_parts(41_096_514, 6811)
176
			// Standard Error: 975
177
			.saturating_add(Weight::from_parts(124_702, 0).saturating_mul(s.into()))
178
			.saturating_add(T::DbWeight::get().reads(1_u64))
179
			.saturating_add(T::DbWeight::get().writes(1_u64))
180
	}
181
}