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/container-chain-frontier-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/frontier_template_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) -> cumulus_primitives_core::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: 25_038_000 picoseconds.
70
		Weight::from_parts(26_296_769, 3997)
71
			// Standard Error: 4
72
			.saturating_add(Weight::from_parts(524, 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(2122), added: 4597, 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:  `213`
82
		//  Estimated: `5587`
83
		// Minimum execution time: 55_043_000 picoseconds.
84
		Weight::from_parts(43_577_715, 5587)
85
			// Standard Error: 978
86
			.saturating_add(Weight::from_parts(133_224, 0).saturating_mul(s.into()))
87
			// Standard Error: 9
88
			.saturating_add(Weight::from_parts(2_027, 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(2122), added: 4597, 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:  `279`
99
		//  Estimated: `5587`
100
		// Minimum execution time: 33_834_000 picoseconds.
101
		Weight::from_parts(23_436_261, 5587)
102
			// Standard Error: 549
103
			.saturating_add(Weight::from_parts(115_413, 0).saturating_mul(s.into()))
104
			// Standard Error: 5
105
			.saturating_add(Weight::from_parts(2_031, 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(2122), added: 4597, mode: `MaxEncodedLen`)
111
	/// Storage: `System::Account` (r:1 w:1)
112
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, 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:  `390 + s * (20 ±0)`
122
		//  Estimated: `5587 + s * (21 ±0)`
123
		// Minimum execution time: 69_860_000 picoseconds.
124
		Weight::from_parts(54_877_314, 5587)
125
			// Standard Error: 871
126
			.saturating_add(Weight::from_parts(172_338, 0).saturating_mul(s.into()))
127
			// Standard Error: 8
128
			.saturating_add(Weight::from_parts(2_045, 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, 21).saturating_mul(s.into()))
132
	}
133
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
134
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, 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:  `213`
140
		//  Estimated: `5587`
141
		// Minimum execution time: 40_033_000 picoseconds.
142
		Weight::from_parts(41_074_849, 5587)
143
			// Standard Error: 1_240
144
			.saturating_add(Weight::from_parts(135_507, 0).saturating_mul(s.into()))
145
			// Standard Error: 12
146
			.saturating_add(T::DbWeight::get().reads(1_u64))
147
			.saturating_add(T::DbWeight::get().writes(1_u64))
148
	}
149
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
150
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
151
	/// The range of component `s` is `[2, 100]`.
152
	/// The range of component `z` is `[0, 10000]`.
153
	fn approve_as_multi_approve(s: u32) -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `279`
156
		//  Estimated: `5587`
157
		// Minimum execution time: 20_928_000 picoseconds.
158
		Weight::from_parts(21_387_981, 5587)
159
			// Standard Error: 459
160
			.saturating_add(Weight::from_parts(115_433, 0).saturating_mul(s.into()))
161
			// Standard Error: 4
162
			.saturating_add(T::DbWeight::get().reads(1_u64))
163
			.saturating_add(T::DbWeight::get().writes(1_u64))
164
	}
165
	/// Storage: `Multisig::Multisigs` (r:1 w:1)
166
	/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(2122), added: 4597, mode: `MaxEncodedLen`)
167
	/// The range of component `s` is `[2, 100]`.
168
	/// The range of component `z` is `[0, 10000]`.
169
	fn cancel_as_multi(s: u32) -> Weight {
170
		// Proof Size summary in bytes:
171
		//  Measured:  `383`
172
		//  Estimated: `5587`
173
		// Minimum execution time: 40_535_000 picoseconds.
174
		Weight::from_parts(41_578_369, 5587)
175
			// Standard Error: 728
176
			.saturating_add(Weight::from_parts(127_810, 0).saturating_mul(s.into()))
177
			// Standard Error: 7
178
			.saturating_add(T::DbWeight::get().reads(1_u64))
179
			.saturating_add(T::DbWeight::get().writes(1_u64))
180
	}
181
}