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

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --execution=wasm
31
// --wasm-execution=compiled
32
// --pallet
33
// pallet_multisig
34
// --extrinsic
35
// *
36
// --chain=dancelight-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/dancelight_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
	/// The range of component `z` is `[0, 10000]`.
60
	fn as_multi_threshold_1(z: u32, ) -> Weight {
61
		// Proof Size summary in bytes:
62
		//  Measured:  `42`
63
		//  Estimated: `1527`
64
		// Minimum execution time: 21_785_000 picoseconds.
65
		Weight::from_parts(22_962_585, 1527)
66
			// Standard Error: 3
67
			.saturating_add(Weight::from_parts(410, 0).saturating_mul(z.into()))
68
			.saturating_add(T::DbWeight::get().reads(1_u64))
69
	}
70
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
71
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
72
	/// The range of component `s` is `[2, 100]`.
73
	/// The range of component `z` is `[0, 10000]`.
74
	fn as_multi_create(s: u32, z: u32, ) -> Weight {
75
		// Proof Size summary in bytes:
76
		//  Measured:  `400 + s * (2 ±0)`
77
		//  Estimated: `6811`
78
		// Minimum execution time: 56_901_000 picoseconds.
79
		Weight::from_parts(44_709_377, 6811)
80
			// Standard Error: 624
81
			.saturating_add(Weight::from_parts(138_848, 0).saturating_mul(s.into()))
82
			// Standard Error: 6
83
			.saturating_add(Weight::from_parts(1_845, 0).saturating_mul(z.into()))
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
88
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
89
	/// The range of component `s` is `[3, 100]`.
90
	/// The range of component `z` is `[0, 10000]`.
91
	fn as_multi_approve(s: u32, z: u32, ) -> Weight {
92
		// Proof Size summary in bytes:
93
		//  Measured:  `419`
94
		//  Estimated: `6811`
95
		// Minimum execution time: 36_651_000 picoseconds.
96
		Weight::from_parts(25_982_610, 6811)
97
			// Standard Error: 585
98
			.saturating_add(Weight::from_parts(123_803, 0).saturating_mul(s.into()))
99
			// Standard Error: 5
100
			.saturating_add(Weight::from_parts(1_848, 0).saturating_mul(z.into()))
101
			.saturating_add(T::DbWeight::get().reads(1_u64))
102
			.saturating_add(T::DbWeight::get().writes(1_u64))
103
	}
104
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
105
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
106
	/// Storage: `System::Account` (r:1 w:1)
107
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
108
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
109
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110
	/// The range of component `s` is `[2, 100]`.
111
	/// The range of component `z` is `[0, 10000]`.
112
	fn as_multi_complete(s: u32, z: u32, ) -> Weight {
113
		// Proof Size summary in bytes:
114
		//  Measured:  `567 + s * (33 ±0)`
115
		//  Estimated: `6811 + s * (34 ±0)`
116
		// Minimum execution time: 66_334_000 picoseconds.
117
		Weight::from_parts(50_925_109, 6811)
118
			// Standard Error: 757
119
			.saturating_add(Weight::from_parts(171_021, 0).saturating_mul(s.into()))
120
			// Standard Error: 7
121
			.saturating_add(Weight::from_parts(1_898, 0).saturating_mul(z.into()))
122
			.saturating_add(T::DbWeight::get().reads(3_u64))
123
			.saturating_add(T::DbWeight::get().writes(2_u64))
124
			.saturating_add(Weight::from_parts(0, 34).saturating_mul(s.into()))
125
	}
126
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
127
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
128
	/// The range of component `s` is `[2, 100]`.
129
	fn approve_as_multi_create(s: u32, ) -> Weight {
130
		// Proof Size summary in bytes:
131
		//  Measured:  `400 + s * (2 ±0)`
132
		//  Estimated: `6811`
133
		// Minimum execution time: 41_902_000 picoseconds.
134
		Weight::from_parts(42_388_257, 6811)
135
			// Standard Error: 871
136
			.saturating_add(Weight::from_parts(135_080, 0).saturating_mul(s.into()))
137
			.saturating_add(T::DbWeight::get().reads(1_u64))
138
			.saturating_add(T::DbWeight::get().writes(1_u64))
139
	}
140
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
141
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
142
	/// The range of component `s` is `[2, 100]`.
143
	fn approve_as_multi_approve(s: u32, ) -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `419`
146
		//  Estimated: `6811`
147
		// Minimum execution time: 23_734_000 picoseconds.
148
		Weight::from_parts(23_817_151, 6811)
149
			// Standard Error: 899
150
			.saturating_add(Weight::from_parts(117_491, 0).saturating_mul(s.into()))
151
			.saturating_add(T::DbWeight::get().reads(1_u64))
152
			.saturating_add(T::DbWeight::get().writes(1_u64))
153
	}
154
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
155
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
156
	/// The range of component `s` is `[2, 100]`.
157
	fn cancel_as_multi(s: u32, ) -> Weight {
158
		// Proof Size summary in bytes:
159
		//  Measured:  `591 + s * (1 ±0)`
160
		//  Estimated: `6811`
161
		// Minimum execution time: 42_040_000 picoseconds.
162
		Weight::from_parts(42_588_270, 6811)
163
			// Standard Error: 961
164
			.saturating_add(Weight::from_parts(131_576, 0).saturating_mul(s.into()))
165
			.saturating_add(T::DbWeight::get().reads(1_u64))
166
			.saturating_add(T::DbWeight::get().writes(1_u64))
167
	}
168
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
169
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
170
	/// The range of component `s` is `[2, 100]`.
171
	fn poke_deposit(s: u32, ) -> Weight {
172
		// Proof Size summary in bytes:
173
		//  Measured:  `591 + s * (1 ±0)`
174
		//  Estimated: `6811`
175
		// Minimum execution time: 39_769_000 picoseconds.
176
		Weight::from_parts(40_401_490, 6811)
177
			// Standard Error: 944
178
			.saturating_add(Weight::from_parts(126_614, 0).saturating_mul(s.into()))
179
			.saturating_add(T::DbWeight::get().reads(1_u64))
180
			.saturating_add(T::DbWeight::get().writes(1_u64))
181
	}
182
}