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
	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:  `46`
68
		//  Estimated: `3997`
69
		// Minimum execution time: 27_469_000 picoseconds.
70
		Weight::from_parts(28_643_298, 3997)
71
			// Standard Error: 4
72
			.saturating_add(Weight::from_parts(513, 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
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
80
		// Proof Size summary in bytes:
81
		//  Measured:  `193 + s * (2 ±0)`
82
		//  Estimated: `6811`
83
		// Minimum execution time: 55_017_000 picoseconds.
84
		Weight::from_parts(42_856_542, 6811)
85
			// Standard Error: 595
86
			.saturating_add(Weight::from_parts(138_193, 0).saturating_mul(s.into()))
87
			// Standard Error: 5
88
			.saturating_add(Weight::from_parts(1_937, 0).saturating_mul(z.into()))
89
			.saturating_add(T::DbWeight::get().reads(1_u64))
90
			.saturating_add(T::DbWeight::get().writes(1_u64))
91
	}
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
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
97
		// Proof Size summary in bytes:
98
		//  Measured:  `211`
99
		//  Estimated: `6811`
100
		// Minimum execution time: 35_386_000 picoseconds.
101
		Weight::from_parts(23_996_192, 6811)
102
			// Standard Error: 488
103
			.saturating_add(Weight::from_parts(123_448, 0).saturating_mul(s.into()))
104
			// Standard Error: 4
105
			.saturating_add(Weight::from_parts(1_963, 0).saturating_mul(z.into()))
106
			.saturating_add(T::DbWeight::get().reads(1_u64))
107
			.saturating_add(T::DbWeight::get().writes(1_u64))
108
	}
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
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `363 + s * (33 ±0)`
122
		//  Estimated: `6811 + s * (34 ±0)`
123
		// Minimum execution time: 68_714_000 picoseconds.
124
		Weight::from_parts(53_676_479, 6811)
125
			// Standard Error: 731
126
			.saturating_add(Weight::from_parts(172_348, 0).saturating_mul(s.into()))
127
			// Standard Error: 7
128
			.saturating_add(Weight::from_parts(2_040, 0).saturating_mul(z.into()))
129
			.saturating_add(T::DbWeight::get().reads(4_u64))
130
			.saturating_add(T::DbWeight::get().writes(2_u64))
131
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
132
	}
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:  `193 + s * (2 ±0)`
140
		//  Estimated: `6811`
141
		// Minimum execution time: 39_961_000 picoseconds.
142
		Weight::from_parts(41_153_655, 6811)
143
			// Standard Error: 630
144
			.saturating_add(Weight::from_parts(140_181, 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:  `211`
155
		//  Estimated: `6811`
156
		// Minimum execution time: 21_542_000 picoseconds.
157
		Weight::from_parts(22_428_365, 6811)
158
			// Standard Error: 482
159
			.saturating_add(Weight::from_parts(119_641, 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
	fn cancel_as_multi(s: u32) -> Weight {
168
		// Proof Size summary in bytes:
169
		//  Measured:  `383 + s * (1 ±0)`
170
		//  Estimated: `6811`
171
		// Minimum execution time: 39_933_000 picoseconds.
172
		Weight::from_parts(40_793_379, 6811)
173
			// Standard Error: 545
174
			.saturating_add(Weight::from_parts(131_972, 0).saturating_mul(s.into()))
175
			// Standard Error: 5
176
			.saturating_add(T::DbWeight::get().reads(1_u64))
177
			.saturating_add(T::DbWeight::get().writes(1_u64))
178
	}
179
}