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("flashbox_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=flashbox_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/flashbox_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
	/// 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:  `46`
65
		//  Estimated: `3997`
66
		// Minimum execution time: 27_469_000 picoseconds.
67
		Weight::from_parts(28_643_298, 3997)
68
			// Standard Error: 4
69
			.saturating_add(Weight::from_parts(513, 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
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
77
		// Proof Size summary in bytes:
78
		//  Measured:  `193 + s * (2 ±0)`
79
		//  Estimated: `6811`
80
		// Minimum execution time: 55_017_000 picoseconds.
81
		Weight::from_parts(42_856_542, 6811)
82
			// Standard Error: 595
83
			.saturating_add(Weight::from_parts(138_193, 0).saturating_mul(s.into()))
84
			// Standard Error: 5
85
			.saturating_add(Weight::from_parts(1_937, 0).saturating_mul(z.into()))
86
			.saturating_add(T::DbWeight::get().reads(1_u64))
87
			.saturating_add(T::DbWeight::get().writes(1_u64))
88
	}
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
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
94
		// Proof Size summary in bytes:
95
		//  Measured:  `211`
96
		//  Estimated: `6811`
97
		// Minimum execution time: 35_386_000 picoseconds.
98
		Weight::from_parts(23_996_192, 6811)
99
			// Standard Error: 488
100
			.saturating_add(Weight::from_parts(123_448, 0).saturating_mul(s.into()))
101
			// Standard Error: 4
102
			.saturating_add(Weight::from_parts(1_963, 0).saturating_mul(z.into()))
103
			.saturating_add(T::DbWeight::get().reads(1_u64))
104
			.saturating_add(T::DbWeight::get().writes(1_u64))
105
	}
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
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
117
		// Proof Size summary in bytes:
118
		//  Measured:  `363 + s * (33 ±0)`
119
		//  Estimated: `6811 + s * (34 ±0)`
120
		// Minimum execution time: 68_714_000 picoseconds.
121
		Weight::from_parts(53_676_479, 6811)
122
			// Standard Error: 731
123
			.saturating_add(Weight::from_parts(172_348, 0).saturating_mul(s.into()))
124
			// Standard Error: 7
125
			.saturating_add(Weight::from_parts(2_040, 0).saturating_mul(z.into()))
126
			.saturating_add(T::DbWeight::get().reads(4_u64))
127
			.saturating_add(T::DbWeight::get().writes(2_u64))
128
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
129
	}
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
	/// The range of component `z` is `[0, 10000]`.
134
	fn approve_as_multi_create(s: u32) -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `193 + s * (2 ±0)`
137
		//  Estimated: `6811`
138
		// Minimum execution time: 39_961_000 picoseconds.
139
		Weight::from_parts(41_153_655, 6811)
140
			// Standard Error: 630
141
			.saturating_add(Weight::from_parts(140_181, 0).saturating_mul(s.into()))
142
			.saturating_add(T::DbWeight::get().reads(1_u64))
143
			.saturating_add(T::DbWeight::get().writes(1_u64))
144
	}
145
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
146
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
147
	/// The range of component `s` is `[2, 100]`.
148
	/// The range of component `z` is `[0, 10000]`.
149
	fn approve_as_multi_approve(s: u32) -> Weight {
150
		// Proof Size summary in bytes:
151
		//  Measured:  `211`
152
		//  Estimated: `6811`
153
		// Minimum execution time: 21_542_000 picoseconds.
154
		Weight::from_parts(22_428_365, 6811)
155
			// Standard Error: 482
156
			.saturating_add(Weight::from_parts(119_641, 0).saturating_mul(s.into()))
157
			.saturating_add(T::DbWeight::get().reads(1_u64))
158
			.saturating_add(T::DbWeight::get().writes(1_u64))
159
	}
160
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
161
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
162
	/// The range of component `s` is `[2, 100]`.
163
	/// The range of component `z` is `[0, 10000]`.
164
	fn cancel_as_multi(s: u32) -> Weight {
165
		// Proof Size summary in bytes:
166
		//  Measured:  `383 + s * (1 ±0)`
167
		//  Estimated: `6811`
168
		// Minimum execution time: 39_933_000 picoseconds.
169
		Weight::from_parts(40_793_379, 6811)
170
			// Standard Error: 545
171
			.saturating_add(Weight::from_parts(131_972, 0).saturating_mul(s.into()))
172
			// Standard Error: 5
173
			.saturating_add(T::DbWeight::get().reads(1_u64))
174
			.saturating_add(T::DbWeight::get().writes(1_u64))
175
	}
176
}