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_proxy
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
21
//! DATE: 2025-11-03, 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
// --wasm-execution=compiled
31
// --pallet
32
// pallet_proxy
33
// --extrinsic
34
// *
35
// --chain=dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/dancebox_weights/pallet_proxy.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_proxy::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `Proxy::Proxies` (r:1 w:0)
57
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
58
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
59
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
61
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
62
	/// The range of component `p` is `[1, 31]`.
63
	fn proxy(p: u32, ) -> Weight {
64
		// Proof Size summary in bytes:
65
		//  Measured:  `208 + p * (37 ±0)`
66
		//  Estimated: `4706 + p * (37 ±0)`
67
		// Minimum execution time: 25_942_000 picoseconds.
68
		Weight::from_parts(26_937_673, 4706)
69
			// Standard Error: 1_383
70
			.saturating_add(Weight::from_parts(28_432, 0).saturating_mul(p.into()))
71
			.saturating_add(T::DbWeight::get().reads(3_u64))
72
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
73
	}
74
	/// Storage: `Proxy::Proxies` (r:1 w:0)
75
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
76
	/// Storage: `Proxy::Announcements` (r:1 w:1)
77
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
78
	/// Storage: `System::Account` (r:1 w:1)
79
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
80
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
81
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
82
	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
83
	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
84
	/// The range of component `a` is `[0, 31]`.
85
	/// The range of component `p` is `[1, 31]`.
86
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `535 + a * (68 ±0) + p * (37 ±0)`
89
		//  Estimated: `5698 + a * (68 ±0) + p * (37 ±0)`
90
		// Minimum execution time: 58_023_000 picoseconds.
91
		Weight::from_parts(59_757_727, 5698)
92
			// Standard Error: 3_853
93
			.saturating_add(Weight::from_parts(177_935, 0).saturating_mul(a.into()))
94
			// Standard Error: 3_981
95
			.saturating_add(Weight::from_parts(34_394, 0).saturating_mul(p.into()))
96
			.saturating_add(T::DbWeight::get().reads(5_u64))
97
			.saturating_add(T::DbWeight::get().writes(2_u64))
98
			.saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into()))
99
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
100
	}
101
	/// Storage: `Proxy::Announcements` (r:1 w:1)
102
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
103
	/// Storage: `System::Account` (r:1 w:1)
104
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
105
	/// The range of component `a` is `[0, 31]`.
106
	/// The range of component `p` is `[1, 31]`.
107
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
108
		// Proof Size summary in bytes:
109
		//  Measured:  `370 + a * (68 ±0)`
110
		//  Estimated: `5698`
111
		// Minimum execution time: 33_057_000 picoseconds.
112
		Weight::from_parts(34_028_555, 5698)
113
			// Standard Error: 1_560
114
			.saturating_add(Weight::from_parts(185_277, 0).saturating_mul(a.into()))
115
			// Standard Error: 1_612
116
			.saturating_add(Weight::from_parts(997, 0).saturating_mul(p.into()))
117
			.saturating_add(T::DbWeight::get().reads(2_u64))
118
			.saturating_add(T::DbWeight::get().writes(2_u64))
119
	}
120
	/// Storage: `Proxy::Announcements` (r:1 w:1)
121
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
122
	/// Storage: `System::Account` (r:1 w:1)
123
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
124
	/// The range of component `a` is `[0, 31]`.
125
	/// The range of component `p` is `[1, 31]`.
126
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
127
		// Proof Size summary in bytes:
128
		//  Measured:  `370 + a * (68 ±0)`
129
		//  Estimated: `5698`
130
		// Minimum execution time: 32_938_000 picoseconds.
131
		Weight::from_parts(33_912_489, 5698)
132
			// Standard Error: 1_639
133
			.saturating_add(Weight::from_parts(187_064, 0).saturating_mul(a.into()))
134
			// Standard Error: 1_694
135
			.saturating_add(Weight::from_parts(9_054, 0).saturating_mul(p.into()))
136
			.saturating_add(T::DbWeight::get().reads(2_u64))
137
			.saturating_add(T::DbWeight::get().writes(2_u64))
138
	}
139
	/// Storage: `Proxy::Proxies` (r:1 w:0)
140
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
141
	/// Storage: `Proxy::Announcements` (r:1 w:1)
142
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
143
	/// Storage: `System::Account` (r:1 w:1)
144
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
145
	/// The range of component `a` is `[0, 31]`.
146
	/// The range of component `p` is `[1, 31]`.
147
	fn announce(a: u32, p: u32, ) -> Weight {
148
		// Proof Size summary in bytes:
149
		//  Measured:  `387 + a * (68 ±0) + p * (37 ±0)`
150
		//  Estimated: `5698`
151
		// Minimum execution time: 42_912_000 picoseconds.
152
		Weight::from_parts(44_085_766, 5698)
153
			// Standard Error: 1_866
154
			.saturating_add(Weight::from_parts(178_413, 0).saturating_mul(a.into()))
155
			// Standard Error: 1_928
156
			.saturating_add(Weight::from_parts(15_396, 0).saturating_mul(p.into()))
157
			.saturating_add(T::DbWeight::get().reads(3_u64))
158
			.saturating_add(T::DbWeight::get().writes(2_u64))
159
	}
160
	/// Storage: `Proxy::Proxies` (r:1 w:1)
161
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
162
	/// The range of component `p` is `[1, 31]`.
163
	fn add_proxy(p: u32, ) -> Weight {
164
		// Proof Size summary in bytes:
165
		//  Measured:  `128 + p * (37 ±0)`
166
		//  Estimated: `4706`
167
		// Minimum execution time: 31_864_000 picoseconds.
168
		Weight::from_parts(32_707_610, 4706)
169
			// Standard Error: 1_203
170
			.saturating_add(Weight::from_parts(47_434, 0).saturating_mul(p.into()))
171
			.saturating_add(T::DbWeight::get().reads(1_u64))
172
			.saturating_add(T::DbWeight::get().writes(1_u64))
173
	}
174
	/// Storage: `Proxy::Proxies` (r:1 w:1)
175
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
176
	/// The range of component `p` is `[1, 31]`.
177
	fn remove_proxy(p: u32, ) -> Weight {
178
		// Proof Size summary in bytes:
179
		//  Measured:  `128 + p * (37 ±0)`
180
		//  Estimated: `4706`
181
		// Minimum execution time: 32_000_000 picoseconds.
182
		Weight::from_parts(33_080_733, 4706)
183
			// Standard Error: 1_168
184
			.saturating_add(Weight::from_parts(31_916, 0).saturating_mul(p.into()))
185
			.saturating_add(T::DbWeight::get().reads(1_u64))
186
			.saturating_add(T::DbWeight::get().writes(1_u64))
187
	}
188
	/// Storage: `Proxy::Proxies` (r:1 w:1)
189
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
190
	/// The range of component `p` is `[1, 31]`.
191
	fn remove_proxies(p: u32, ) -> Weight {
192
		// Proof Size summary in bytes:
193
		//  Measured:  `128 + p * (37 ±0)`
194
		//  Estimated: `4706`
195
		// Minimum execution time: 28_920_000 picoseconds.
196
		Weight::from_parts(29_695_848, 4706)
197
			// Standard Error: 1_097
198
			.saturating_add(Weight::from_parts(26_815, 0).saturating_mul(p.into()))
199
			.saturating_add(T::DbWeight::get().reads(1_u64))
200
			.saturating_add(T::DbWeight::get().writes(1_u64))
201
	}
202
	/// Storage: `Proxy::Proxies` (r:1 w:1)
203
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
204
	/// The range of component `p` is `[1, 31]`.
205
	fn create_pure(p: u32, ) -> Weight {
206
		// Proof Size summary in bytes:
207
		//  Measured:  `140`
208
		//  Estimated: `4706`
209
		// Minimum execution time: 33_958_000 picoseconds.
210
		Weight::from_parts(34_994_597, 4706)
211
			// Standard Error: 1_098
212
			.saturating_add(Weight::from_parts(3_748, 0).saturating_mul(p.into()))
213
			.saturating_add(T::DbWeight::get().reads(1_u64))
214
			.saturating_add(T::DbWeight::get().writes(1_u64))
215
	}
216
	/// Storage: `Proxy::Proxies` (r:1 w:1)
217
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
218
	/// The range of component `p` is `[0, 30]`.
219
	fn kill_pure(p: u32, ) -> Weight {
220
		// Proof Size summary in bytes:
221
		//  Measured:  `165 + p * (37 ±0)`
222
		//  Estimated: `4706`
223
		// Minimum execution time: 32_696_000 picoseconds.
224
		Weight::from_parts(33_784_989, 4706)
225
			// Standard Error: 1_231
226
			.saturating_add(Weight::from_parts(22_383, 0).saturating_mul(p.into()))
227
			.saturating_add(T::DbWeight::get().reads(1_u64))
228
			.saturating_add(T::DbWeight::get().writes(1_u64))
229
	}
230
	/// Storage: `Proxy::Proxies` (r:1 w:1)
231
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
232
	/// Storage: `System::Account` (r:1 w:1)
233
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
234
	/// Storage: `Proxy::Announcements` (r:1 w:1)
235
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
236
	fn poke_deposit() -> Weight {
237
		// Proof Size summary in bytes:
238
		//  Measured:  `454`
239
		//  Estimated: `5698`
240
		// Minimum execution time: 58_092_000 picoseconds.
241
		Weight::from_parts(58_695_000, 5698)
242
			.saturating_add(T::DbWeight::get().reads(3_u64))
243
			.saturating_add(T::DbWeight::get().writes(3_u64))
244
	}
245
}