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 32.0.0
21
//! DATE: 2025-05-02, 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 sp_std::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
	fn poke_deposit(_: u32) -> sp_runtime::Weight {
58
		Default::default()
59
	}
60
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
61
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
62
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
63
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
64
	/// The range of component `z` is `[0, 10000]`.
65
	fn as_multi_threshold_1(z: u32, ) -> Weight {
66
		// Proof Size summary in bytes:
67
		//  Measured:  `80`
68
		//  Estimated: `3997`
69
		// Minimum execution time: 28_514_000 picoseconds.
70
		Weight::from_parts(29_870_213, 3997)
71
			// Standard Error: 4
72
			.saturating_add(Weight::from_parts(504, 0).saturating_mul(z.into()))
73
			.saturating_add(T::DbWeight::get().reads(2_u64))
74
	}
75
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
76
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
77
	/// The range of component `s` is `[2, 100]`.
78
	/// The range of component `z` is `[0, 10000]`.
79
60
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
80
60
		// Proof Size summary in bytes:
81
60
		//  Measured:  `296 + s * (2 ±0)`
82
60
		//  Estimated: `6811`
83
60
		// Minimum execution time: 57_680_000 picoseconds.
84
60
		Weight::from_parts(44_748_458, 6811)
85
60
			// Standard Error: 619
86
60
			.saturating_add(Weight::from_parts(148_372, 0).saturating_mul(s.into()))
87
60
			// Standard Error: 6
88
60
			.saturating_add(Weight::from_parts(1_936, 0).saturating_mul(z.into()))
89
60
			.saturating_add(T::DbWeight::get().reads(1_u64))
90
60
			.saturating_add(T::DbWeight::get().writes(1_u64))
91
60
	}
92
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
93
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
94
	/// The range of component `s` is `[3, 100]`.
95
	/// The range of component `z` is `[0, 10000]`.
96
48
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
97
48
		// Proof Size summary in bytes:
98
48
		//  Measured:  `315`
99
48
		//  Estimated: `6811`
100
48
		// Minimum execution time: 37_088_000 picoseconds.
101
48
		Weight::from_parts(25_427_377, 6811)
102
48
			// Standard Error: 471
103
48
			.saturating_add(Weight::from_parts(131_881, 0).saturating_mul(s.into()))
104
48
			// Standard Error: 4
105
48
			.saturating_add(Weight::from_parts(1_962, 0).saturating_mul(z.into()))
106
48
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
48
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
48
	}
109
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
110
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
111
	/// Storage: `System::Account` (r:1 w:1)
112
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
113
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
114
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
115
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
116
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
117
	/// The range of component `s` is `[2, 100]`.
118
	/// The range of component `z` is `[0, 10000]`.
119
48
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
120
48
		// Proof Size summary in bytes:
121
48
		//  Measured:  `501 + s * (33 ±0)`
122
48
		//  Estimated: `6811 + s * (34 ±0)`
123
48
		// Minimum execution time: 72_386_000 picoseconds.
124
48
		Weight::from_parts(56_014_066, 6811)
125
48
			// Standard Error: 772
126
48
			.saturating_add(Weight::from_parts(182_482, 0).saturating_mul(s.into()))
127
48
			// Standard Error: 7
128
48
			.saturating_add(Weight::from_parts(2_057, 0).saturating_mul(z.into()))
129
48
			.saturating_add(T::DbWeight::get().reads(4_u64))
130
48
			.saturating_add(T::DbWeight::get().writes(2_u64))
131
48
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
132
48
	}
133
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
134
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
135
	/// The range of component `s` is `[2, 100]`.
136
	/// The range of component `z` is `[0, 10000]`.
137
	fn approve_as_multi_create(s: u32) -> Weight {
138
		// Proof Size summary in bytes:
139
		//  Measured:  `296 + s * (2 ±0)`
140
		//  Estimated: `6811`
141
		// Minimum execution time: 41_607_000 picoseconds.
142
		Weight::from_parts(42_693_251, 6811)
143
			// Standard Error: 608
144
			.saturating_add(Weight::from_parts(145_656, 0).saturating_mul(s.into()))
145
			.saturating_add(T::DbWeight::get().reads(1_u64))
146
			.saturating_add(T::DbWeight::get().writes(1_u64))
147
	}
148
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
149
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
150
	/// The range of component `s` is `[2, 100]`.
151
	/// The range of component `z` is `[0, 10000]`.
152
	fn approve_as_multi_approve(s: u32) -> Weight {
153
		// Proof Size summary in bytes:
154
		//  Measured:  `315`
155
		//  Estimated: `6811`
156
		// Minimum execution time: 23_622_000 picoseconds.
157
		Weight::from_parts(24_201_904, 6811)
158
			// Standard Error: 455
159
			.saturating_add(Weight::from_parts(125_336, 0).saturating_mul(s.into()))
160
			.saturating_add(T::DbWeight::get().reads(1_u64))
161
			.saturating_add(T::DbWeight::get().writes(1_u64))
162
	}
163
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
164
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
165
	/// The range of component `s` is `[2, 100]`.
166
	/// The range of component `z` is `[0, 10000]`.
167
12
	fn cancel_as_multi(s: u32) -> Weight {
168
12
		// Proof Size summary in bytes:
169
12
		//  Measured:  `487 + s * (1 ±0)`
170
12
		//  Estimated: `6811`
171
12
		// Minimum execution time: 42_346_000 picoseconds.
172
12
		Weight::from_parts(42_681_589, 6811)
173
12
			// Standard Error: 589
174
12
			.saturating_add(Weight::from_parts(143_876, 0).saturating_mul(s.into()))
175
12
			// Standard Error: 5
176
12
			.saturating_add(T::DbWeight::get().reads(1_u64))
177
12
			.saturating_add(T::DbWeight::get().writes(1_u64))
178
12
	}
179
}