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-03, 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("dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_multisig
33
// --extrinsic
34
// *
35
// --chain=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/dancebox_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
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
59
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
60
	/// The range of component `z` is `[0, 10000]`.
61
	fn as_multi_threshold_1(z: u32, ) -> Weight {
62
		// Proof Size summary in bytes:
63
		//  Measured:  `80`
64
		//  Estimated: `3997`
65
		// Minimum execution time: 35_352_000 picoseconds.
66
		Weight::from_parts(37_015_138, 3997)
67
			// Standard Error: 4
68
			.saturating_add(Weight::from_parts(1_964, 0).saturating_mul(z.into()))
69
			.saturating_add(T::DbWeight::get().reads(2_u64))
70
	}
71
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
72
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
73
	/// The range of component `s` is `[2, 100]`.
74
	/// The range of component `z` is `[0, 10000]`.
75
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
76
		// Proof Size summary in bytes:
77
		//  Measured:  `296 + s * (2 ±0)`
78
		//  Estimated: `6811`
79
		// Minimum execution time: 56_894_000 picoseconds.
80
		Weight::from_parts(43_961_501, 6811)
81
			// Standard Error: 654
82
			.saturating_add(Weight::from_parts(148_435, 0).saturating_mul(s.into()))
83
			// Standard Error: 6
84
			.saturating_add(Weight::from_parts(1_938, 0).saturating_mul(z.into()))
85
			.saturating_add(T::DbWeight::get().reads(1_u64))
86
			.saturating_add(T::DbWeight::get().writes(1_u64))
87
	}
88
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
89
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
90
	/// The range of component `s` is `[3, 100]`.
91
	/// The range of component `z` is `[0, 10000]`.
92
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
93
		// Proof Size summary in bytes:
94
		//  Measured:  `315`
95
		//  Estimated: `6811`
96
		// Minimum execution time: 36_101_000 picoseconds.
97
		Weight::from_parts(24_516_423, 6811)
98
			// Standard Error: 576
99
			.saturating_add(Weight::from_parts(131_912, 0).saturating_mul(s.into()))
100
			// Standard Error: 5
101
			.saturating_add(Weight::from_parts(1_950, 0).saturating_mul(z.into()))
102
			.saturating_add(T::DbWeight::get().reads(1_u64))
103
			.saturating_add(T::DbWeight::get().writes(1_u64))
104
	}
105
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
106
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
107
	/// Storage: `System::Account` (r:1 w:1)
108
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
109
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
110
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
111
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
112
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
113
	/// The range of component `s` is `[2, 100]`.
114
	/// The range of component `z` is `[0, 10000]`.
115
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
116
		// Proof Size summary in bytes:
117
		//  Measured:  `501 + s * (33 ±0)`
118
		//  Estimated: `6811 + s * (34 ±0)`
119
		// Minimum execution time: 72_806_000 picoseconds.
120
		Weight::from_parts(54_525_520, 6811)
121
			// Standard Error: 827
122
			.saturating_add(Weight::from_parts(198_440, 0).saturating_mul(s.into()))
123
			// Standard Error: 8
124
			.saturating_add(Weight::from_parts(2_027, 0).saturating_mul(z.into()))
125
			.saturating_add(T::DbWeight::get().reads(4_u64))
126
			.saturating_add(T::DbWeight::get().writes(2_u64))
127
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
128
	}
129
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
130
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
131
	/// The range of component `s` is `[2, 100]`.
132
	fn approve_as_multi_create(s: u32, ) -> Weight {
133
		// Proof Size summary in bytes:
134
		//  Measured:  `296 + s * (2 ±0)`
135
		//  Estimated: `6811`
136
		// Minimum execution time: 41_339_000 picoseconds.
137
		Weight::from_parts(42_195_434, 6811)
138
			// Standard Error: 895
139
			.saturating_add(Weight::from_parts(140_247, 0).saturating_mul(s.into()))
140
			.saturating_add(T::DbWeight::get().reads(1_u64))
141
			.saturating_add(T::DbWeight::get().writes(1_u64))
142
	}
143
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
144
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
145
	/// The range of component `s` is `[2, 100]`.
146
	fn approve_as_multi_approve(s: u32, ) -> Weight {
147
		// Proof Size summary in bytes:
148
		//  Measured:  `315`
149
		//  Estimated: `6811`
150
		// Minimum execution time: 22_388_000 picoseconds.
151
		Weight::from_parts(22_749_784, 6811)
152
			// Standard Error: 802
153
			.saturating_add(Weight::from_parts(125_622, 0).saturating_mul(s.into()))
154
			.saturating_add(T::DbWeight::get().reads(1_u64))
155
			.saturating_add(T::DbWeight::get().writes(1_u64))
156
	}
157
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
158
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
159
	/// The range of component `s` is `[2, 100]`.
160
	fn cancel_as_multi(s: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `487 + s * (1 ±0)`
163
		//  Estimated: `6811`
164
		// Minimum execution time: 41_096_000 picoseconds.
165
		Weight::from_parts(42_175_981, 6811)
166
			// Standard Error: 862
167
			.saturating_add(Weight::from_parts(138_116, 0).saturating_mul(s.into()))
168
			.saturating_add(T::DbWeight::get().reads(1_u64))
169
			.saturating_add(T::DbWeight::get().writes(1_u64))
170
	}
171
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
172
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
173
	/// The range of component `s` is `[2, 100]`.
174
	fn poke_deposit(s: u32, ) -> Weight {
175
		// Proof Size summary in bytes:
176
		//  Measured:  `487 + s * (1 ±0)`
177
		//  Estimated: `6811`
178
		// Minimum execution time: 38_936_000 picoseconds.
179
		Weight::from_parts(39_545_951, 6811)
180
			// Standard Error: 970
181
			.saturating_add(Weight::from_parts(137_402, 0).saturating_mul(s.into()))
182
			.saturating_add(T::DbWeight::get().reads(1_u64))
183
			.saturating_add(T::DbWeight::get().writes(1_u64))
184
	}
185
}