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 47.0.0
21
//! DATE: 2025-07-09, 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
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_multisig
34
// --extrinsic
35
// *
36
// --chain=dev
37
// --steps
38
// 50
39
// --repeat
40
// 20
41
// --template=benchmarking/frame-weight-runtime-template.hbs
42
// --json-file
43
// raw.json
44
// --output
45
// tmp/dancebox_weights/pallet_multisig.rs
46

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

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

            
54
/// Weights for pallet_multisig using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_multisig::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
58
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
60
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
61
	/// The range of component `z` is `[0, 10000]`.
62
	fn as_multi_threshold_1(z: u32, ) -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `80`
65
		//  Estimated: `3997`
66
		// Minimum execution time: 27_054_000 picoseconds.
67
		Weight::from_parts(27_840_021, 3997)
68
			// Standard Error: 3
69
			.saturating_add(Weight::from_parts(404, 0).saturating_mul(z.into()))
70
			.saturating_add(T::DbWeight::get().reads(2_u64))
71
	}
72
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
73
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
74
	/// The range of component `s` is `[2, 100]`.
75
	/// The range of component `z` is `[0, 10000]`.
76
60
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
77
60
		// Proof Size summary in bytes:
78
60
		//  Measured:  `296 + s * (2 ±0)`
79
60
		//  Estimated: `6811`
80
60
		// Minimum execution time: 54_899_000 picoseconds.
81
60
		Weight::from_parts(41_797_238, 6811)
82
60
			// Standard Error: 662
83
60
			.saturating_add(Weight::from_parts(148_539, 0).saturating_mul(s.into()))
84
60
			// Standard Error: 6
85
60
			.saturating_add(Weight::from_parts(1_848, 0).saturating_mul(z.into()))
86
60
			.saturating_add(T::DbWeight::get().reads(1_u64))
87
60
			.saturating_add(T::DbWeight::get().writes(1_u64))
88
60
	}
89
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
90
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
91
	/// The range of component `s` is `[3, 100]`.
92
	/// The range of component `z` is `[0, 10000]`.
93
48
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
94
48
		// Proof Size summary in bytes:
95
48
		//  Measured:  `315`
96
48
		//  Estimated: `6811`
97
48
		// Minimum execution time: 34_314_000 picoseconds.
98
48
		Weight::from_parts(23_319_063, 6811)
99
48
			// Standard Error: 497
100
48
			.saturating_add(Weight::from_parts(126_290, 0).saturating_mul(s.into()))
101
48
			// Standard Error: 4
102
48
			.saturating_add(Weight::from_parts(1_835, 0).saturating_mul(z.into()))
103
48
			.saturating_add(T::DbWeight::get().reads(1_u64))
104
48
			.saturating_add(T::DbWeight::get().writes(1_u64))
105
48
	}
106
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
107
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
108
	/// Storage: `System::Account` (r:1 w:1)
109
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
110
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
111
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
113
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
114
	/// The range of component `s` is `[2, 100]`.
115
	/// The range of component `z` is `[0, 10000]`.
116
48
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
117
48
		// Proof Size summary in bytes:
118
48
		//  Measured:  `501 + s * (33 ±0)`
119
48
		//  Estimated: `6811 + s * (34 ±0)`
120
48
		// Minimum execution time: 68_971_000 picoseconds.
121
48
		Weight::from_parts(52_814_550, 6811)
122
48
			// Standard Error: 678
123
48
			.saturating_add(Weight::from_parts(186_120, 0).saturating_mul(s.into()))
124
48
			// Standard Error: 6
125
48
			.saturating_add(Weight::from_parts(1_868, 0).saturating_mul(z.into()))
126
48
			.saturating_add(T::DbWeight::get().reads(4_u64))
127
48
			.saturating_add(T::DbWeight::get().writes(2_u64))
128
48
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
129
48
	}
130
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
131
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
132
	/// The range of component `s` is `[2, 100]`.
133
	fn approve_as_multi_create(s: u32, ) -> Weight {
134
		// Proof Size summary in bytes:
135
		//  Measured:  `296 + s * (2 ±0)`
136
		//  Estimated: `6811`
137
		// Minimum execution time: 40_046_000 picoseconds.
138
		Weight::from_parts(40_318_241, 6811)
139
			// Standard Error: 836
140
			.saturating_add(Weight::from_parts(146_710, 0).saturating_mul(s.into()))
141
			.saturating_add(T::DbWeight::get().reads(1_u64))
142
			.saturating_add(T::DbWeight::get().writes(1_u64))
143
	}
144
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
145
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
146
	/// The range of component `s` is `[2, 100]`.
147
	fn approve_as_multi_approve(s: u32, ) -> Weight {
148
		// Proof Size summary in bytes:
149
		//  Measured:  `315`
150
		//  Estimated: `6811`
151
		// Minimum execution time: 21_869_000 picoseconds.
152
		Weight::from_parts(21_748_534, 6811)
153
			// Standard Error: 689
154
			.saturating_add(Weight::from_parts(121_096, 0).saturating_mul(s.into()))
155
			.saturating_add(T::DbWeight::get().reads(1_u64))
156
			.saturating_add(T::DbWeight::get().writes(1_u64))
157
	}
158
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
159
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
160
	/// The range of component `s` is `[2, 100]`.
161
12
	fn cancel_as_multi(s: u32, ) -> Weight {
162
12
		// Proof Size summary in bytes:
163
12
		//  Measured:  `487 + s * (1 ±0)`
164
12
		//  Estimated: `6811`
165
12
		// Minimum execution time: 40_240_000 picoseconds.
166
12
		Weight::from_parts(40_406_341, 6811)
167
12
			// Standard Error: 765
168
12
			.saturating_add(Weight::from_parts(139_270, 0).saturating_mul(s.into()))
169
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
170
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
171
12
	}
172
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
173
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
174
	/// The range of component `s` is `[2, 100]`.
175
	fn poke_deposit(s: u32, ) -> Weight {
176
		// Proof Size summary in bytes:
177
		//  Measured:  `487 + s * (1 ±0)`
178
		//  Estimated: `6811`
179
		// Minimum execution time: 37_791_000 picoseconds.
180
		Weight::from_parts(38_284_182, 6811)
181
			// Standard Error: 728
182
			.saturating_add(Weight::from_parts(133_819, 0).saturating_mul(s.into()))
183
			.saturating_add(T::DbWeight::get().reads(1_u64))
184
			.saturating_add(T::DbWeight::get().writes(1_u64))
185
	}
186
}