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 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_proxy
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_proxy.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_proxy using the Substrate node and recommended hardware.
55
pub struct SubstrateWeight<T>(PhantomData<T>);
56
impl<T: frame_system::Config> pallet_proxy::WeightInfo for SubstrateWeight<T> {
57
	/// Storage: `Proxy::Proxies` (r:1 w:0)
58
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
59
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
60
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61
	/// The range of component `p` is `[1, 31]`.
62
	fn proxy(p: u32, ) -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `169 + p * (37 ±0)`
65
		//  Estimated: `4706 + p * (37 ±0)`
66
		// Minimum execution time: 21_203_000 picoseconds.
67
		Weight::from_parts(22_114_584, 4706)
68
			// Standard Error: 1_188
69
			.saturating_add(Weight::from_parts(31_345, 0).saturating_mul(p.into()))
70
			.saturating_add(T::DbWeight::get().reads(2_u64))
71
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
72
	}
73
	/// Storage: `Proxy::Proxies` (r:1 w:0)
74
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
75
	/// Storage: `Proxy::Announcements` (r:1 w:1)
76
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
77
	/// Storage: `System::Account` (r:1 w:1)
78
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
79
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
80
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
81
	/// The range of component `a` is `[0, 31]`.
82
	/// The range of component `p` is `[1, 31]`.
83
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
84
		// Proof Size summary in bytes:
85
		//  Measured:  `530 + a * (68 ±0) + p * (37 ±0)`
86
		//  Estimated: `5698 + a * (67 ±0) + p * (37 ±0)`
87
		// Minimum execution time: 50_404_000 picoseconds.
88
		Weight::from_parts(50_740_354, 5698)
89
			// Standard Error: 2_188
90
			.saturating_add(Weight::from_parts(197_937, 0).saturating_mul(a.into()))
91
			// Standard Error: 2_261
92
			.saturating_add(Weight::from_parts(50_338, 0).saturating_mul(p.into()))
93
			.saturating_add(T::DbWeight::get().reads(4_u64))
94
			.saturating_add(T::DbWeight::get().writes(2_u64))
95
			.saturating_add(Weight::from_parts(0, 67).saturating_mul(a.into()))
96
			.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
97
	}
98
	/// Storage: `Proxy::Announcements` (r:1 w:1)
99
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
100
	/// Storage: `System::Account` (r:1 w:1)
101
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
102
	/// The range of component `a` is `[0, 31]`.
103
	/// The range of component `p` is `[1, 31]`.
104
	fn remove_announcement(a: u32, p: u32, ) -> Weight {
105
		// Proof Size summary in bytes:
106
		//  Measured:  `403 + a * (68 ±0)`
107
		//  Estimated: `5698`
108
		// Minimum execution time: 32_237_000 picoseconds.
109
		Weight::from_parts(33_502_585, 5698)
110
			// Standard Error: 1_445
111
			.saturating_add(Weight::from_parts(173_699, 0).saturating_mul(a.into()))
112
			// Standard Error: 1_493
113
			.saturating_add(Weight::from_parts(12_769, 0).saturating_mul(p.into()))
114
			.saturating_add(T::DbWeight::get().reads(2_u64))
115
			.saturating_add(T::DbWeight::get().writes(2_u64))
116
	}
117
	/// Storage: `Proxy::Announcements` (r:1 w:1)
118
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
119
	/// Storage: `System::Account` (r:1 w:1)
120
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
121
	/// The range of component `a` is `[0, 31]`.
122
	/// The range of component `p` is `[1, 31]`.
123
	fn reject_announcement(a: u32, p: u32, ) -> Weight {
124
		// Proof Size summary in bytes:
125
		//  Measured:  `403 + a * (68 ±0)`
126
		//  Estimated: `5698`
127
		// Minimum execution time: 32_541_000 picoseconds.
128
		Weight::from_parts(33_584_487, 5698)
129
			// Standard Error: 1_544
130
			.saturating_add(Weight::from_parts(174_677, 0).saturating_mul(a.into()))
131
			// Standard Error: 1_596
132
			.saturating_add(Weight::from_parts(11_450, 0).saturating_mul(p.into()))
133
			.saturating_add(T::DbWeight::get().reads(2_u64))
134
			.saturating_add(T::DbWeight::get().writes(2_u64))
135
	}
136
	/// Storage: `Proxy::Proxies` (r:1 w:0)
137
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
138
	/// Storage: `Proxy::Announcements` (r:1 w:1)
139
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
140
	/// Storage: `System::Account` (r:1 w:1)
141
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
142
	/// The range of component `a` is `[0, 31]`.
143
	/// The range of component `p` is `[1, 31]`.
144
	fn announce(a: u32, p: u32, ) -> Weight {
145
		// Proof Size summary in bytes:
146
		//  Measured:  `420 + a * (68 ±0) + p * (37 ±0)`
147
		//  Estimated: `5698`
148
		// Minimum execution time: 43_175_000 picoseconds.
149
		Weight::from_parts(43_012_338, 5698)
150
			// Standard Error: 1_731
151
			.saturating_add(Weight::from_parts(175_493, 0).saturating_mul(a.into()))
152
			// Standard Error: 1_788
153
			.saturating_add(Weight::from_parts(41_901, 0).saturating_mul(p.into()))
154
			.saturating_add(T::DbWeight::get().reads(3_u64))
155
			.saturating_add(T::DbWeight::get().writes(2_u64))
156
	}
157
	/// Storage: `Proxy::Proxies` (r:1 w:1)
158
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
159
	/// The range of component `p` is `[1, 31]`.
160
	fn add_proxy(p: u32, ) -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `127 + p * (37 ±0)`
163
		//  Estimated: `4706`
164
		// Minimum execution time: 31_500_000 picoseconds.
165
		Weight::from_parts(32_323_822, 4706)
166
			// Standard Error: 1_219
167
			.saturating_add(Weight::from_parts(38_496, 0).saturating_mul(p.into()))
168
			.saturating_add(T::DbWeight::get().reads(1_u64))
169
			.saturating_add(T::DbWeight::get().writes(1_u64))
170
	}
171
	/// Storage: `Proxy::Proxies` (r:1 w:1)
172
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
173
	/// The range of component `p` is `[1, 31]`.
174
	fn remove_proxy(p: u32, ) -> Weight {
175
		// Proof Size summary in bytes:
176
		//  Measured:  `127 + p * (37 ±0)`
177
		//  Estimated: `4706`
178
		// Minimum execution time: 31_280_000 picoseconds.
179
		Weight::from_parts(32_383_858, 4706)
180
			// Standard Error: 1_389
181
			.saturating_add(Weight::from_parts(39_719, 0).saturating_mul(p.into()))
182
			.saturating_add(T::DbWeight::get().reads(1_u64))
183
			.saturating_add(T::DbWeight::get().writes(1_u64))
184
	}
185
	/// Storage: `Proxy::Proxies` (r:1 w:1)
186
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
187
	/// The range of component `p` is `[1, 31]`.
188
	fn remove_proxies(p: u32, ) -> Weight {
189
		// Proof Size summary in bytes:
190
		//  Measured:  `127 + p * (37 ±0)`
191
		//  Estimated: `4706`
192
		// Minimum execution time: 28_139_000 picoseconds.
193
		Weight::from_parts(29_109_509, 4706)
194
			// Standard Error: 1_079
195
			.saturating_add(Weight::from_parts(28_625, 0).saturating_mul(p.into()))
196
			.saturating_add(T::DbWeight::get().reads(1_u64))
197
			.saturating_add(T::DbWeight::get().writes(1_u64))
198
	}
199
	/// Storage: `Proxy::Proxies` (r:1 w:1)
200
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
201
	/// The range of component `p` is `[1, 31]`.
202
	fn create_pure(p: u32, ) -> Weight {
203
		// Proof Size summary in bytes:
204
		//  Measured:  `139`
205
		//  Estimated: `4706`
206
		// Minimum execution time: 33_612_000 picoseconds.
207
		Weight::from_parts(34_587_988, 4706)
208
			// Standard Error: 1_247
209
			.saturating_add(Weight::from_parts(12_085, 0).saturating_mul(p.into()))
210
			.saturating_add(T::DbWeight::get().reads(1_u64))
211
			.saturating_add(T::DbWeight::get().writes(1_u64))
212
	}
213
	/// Storage: `Proxy::Proxies` (r:1 w:1)
214
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
215
	/// The range of component `p` is `[0, 30]`.
216
	fn kill_pure(p: u32, ) -> Weight {
217
		// Proof Size summary in bytes:
218
		//  Measured:  `164 + p * (37 ±0)`
219
		//  Estimated: `4706`
220
		// Minimum execution time: 29_189_000 picoseconds.
221
		Weight::from_parts(30_162_469, 4706)
222
			// Standard Error: 1_273
223
			.saturating_add(Weight::from_parts(29_832, 0).saturating_mul(p.into()))
224
			.saturating_add(T::DbWeight::get().reads(1_u64))
225
			.saturating_add(T::DbWeight::get().writes(1_u64))
226
	}
227
	/// Storage: `Proxy::Proxies` (r:1 w:1)
228
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
229
	/// Storage: `System::Account` (r:1 w:1)
230
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
231
	/// Storage: `Proxy::Announcements` (r:1 w:1)
232
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
233
	fn poke_deposit() -> Weight {
234
		// Proof Size summary in bytes:
235
		//  Measured:  `452`
236
		//  Estimated: `5698`
237
		// Minimum execution time: 58_173_000 picoseconds.
238
		Weight::from_parts(59_357_000, 5698)
239
			.saturating_add(T::DbWeight::get().reads(3_u64))
240
			.saturating_add(T::DbWeight::get().writes(3_u64))
241
	}
242
}