1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  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 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonbeam-runtime/moonbeam_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_proxy
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonbeam/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_proxy`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
54
	/// Storage: `Proxy::Proxies` (r:1 w:0)
55
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
56
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
57
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
58
	/// The range of component `p` is `[1, 31]`.
59
	fn proxy(p: u32, ) -> Weight {
60
		// Proof Size summary in bytes:
61
		//  Measured:  `224 + p * (25 ±0)`
62
		//  Estimated: `4310 + p * (25 ±0)`
63
		// Minimum execution time: 18_226_000 picoseconds.
64
		Weight::from_parts(19_396_280, 4310)
65
			// Standard Error: 1_188
66
			.saturating_add(Weight::from_parts(48_717, 0).saturating_mul(p.into()))
67
			.saturating_add(T::DbWeight::get().reads(2_u64))
68
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
69
			// 1 DB read that happen when filtering the proxy call transaction
70
			.saturating_add(T::DbWeight::get().reads(1))
71
	}
72
	/// Storage: `Proxy::Proxies` (r:1 w:0)
73
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
74
	/// Storage: `Proxy::Announcements` (r:1 w:1)
75
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
76
	/// Storage: `System::Account` (r:1 w:1)
77
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
78
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
79
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80
	/// The range of component `a` is `[0, 31]`.
81
	/// The range of component `p` is `[1, 31]`.
82
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
83
		// Proof Size summary in bytes:
84
		//  Measured:  `476 + a * (56 ±0) + p * (25 ±0)`
85
		//  Estimated: `5302 + a * (59 ±0) + p * (22 ±0)`
86
		// Minimum execution time: 44_170_000 picoseconds.
87
		Weight::from_parts(45_089_982, 5302)
88
			// Standard Error: 2_620
89
			.saturating_add(Weight::from_parts(199_955, 0).saturating_mul(a.into()))
90
			// Standard Error: 2_707
91
			.saturating_add(Weight::from_parts(7_247, 0).saturating_mul(p.into()))
92
			.saturating_add(T::DbWeight::get().reads(4_u64))
93
			.saturating_add(T::DbWeight::get().writes(2_u64))
94
			.saturating_add(Weight::from_parts(0, 59).saturating_mul(a.into()))
95
			.saturating_add(Weight::from_parts(0, 22).saturating_mul(p.into()))
96
	}
97
	/// Storage: `Proxy::Announcements` (r:1 w:1)
98
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
99
	/// Storage: `System::Account` (r:1 w:1)
100
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
101
	/// The range of component `a` is `[0, 31]`.
102
	/// The range of component `p` is `[1, 31]`.
103
	fn remove_announcement(a: u32, _p: u32, ) -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `362 + a * (56 ±0)`
106
		//  Estimated: `5302`
107
		// Minimum execution time: 29_310_000 picoseconds.
108
		Weight::from_parts(30_948_478, 5302)
109
			// Standard Error: 2_184
110
			.saturating_add(Weight::from_parts(201_982, 0).saturating_mul(a.into()))
111
			.saturating_add(T::DbWeight::get().reads(2_u64))
112
			.saturating_add(T::DbWeight::get().writes(2_u64))
113
	}
114
	/// Storage: `Proxy::Announcements` (r:1 w:1)
115
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
116
	/// Storage: `System::Account` (r:1 w:1)
117
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
118
	/// The range of component `a` is `[0, 31]`.
119
	/// The range of component `p` is `[1, 31]`.
120
	fn reject_announcement(a: u32, _p: u32, ) -> Weight {
121
		// Proof Size summary in bytes:
122
		//  Measured:  `362 + a * (56 ±0)`
123
		//  Estimated: `5302`
124
		// Minimum execution time: 29_495_000 picoseconds.
125
		Weight::from_parts(31_167_882, 5302)
126
			// Standard Error: 2_163
127
			.saturating_add(Weight::from_parts(200_523, 0).saturating_mul(a.into()))
128
			.saturating_add(T::DbWeight::get().reads(2_u64))
129
			.saturating_add(T::DbWeight::get().writes(2_u64))
130
	}
131
	/// Storage: `Proxy::Proxies` (r:1 w:0)
132
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
133
	/// Storage: `Proxy::Announcements` (r:1 w:1)
134
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
135
	/// Storage: `System::Account` (r:1 w:1)
136
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
137
	/// The range of component `a` is `[0, 31]`.
138
	/// The range of component `p` is `[1, 31]`.
139
	fn announce(a: u32, p: u32, ) -> Weight {
140
		// Proof Size summary in bytes:
141
		//  Measured:  `378 + a * (56 ±0) + p * (25 ±0)`
142
		//  Estimated: `5302`
143
		// Minimum execution time: 37_118_000 picoseconds.
144
		Weight::from_parts(38_583_789, 5302)
145
			// Standard Error: 2_366
146
			.saturating_add(Weight::from_parts(203_110, 0).saturating_mul(a.into()))
147
			// Standard Error: 2_445
148
			.saturating_add(Weight::from_parts(3_463, 0).saturating_mul(p.into()))
149
			.saturating_add(T::DbWeight::get().reads(3_u64))
150
			.saturating_add(T::DbWeight::get().writes(2_u64))
151
	}
152
	/// Storage: `Proxy::Proxies` (r:1 w:1)
153
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
154
	/// The range of component `p` is `[1, 31]`.
155
	fn add_proxy(p: u32, ) -> Weight {
156
		// Proof Size summary in bytes:
157
		//  Measured:  `182 + p * (25 ±0)`
158
		//  Estimated: `4310`
159
		// Minimum execution time: 26_865_000 picoseconds.
160
		Weight::from_parts(27_713_237, 4310)
161
			// Standard Error: 1_317
162
			.saturating_add(Weight::from_parts(53_699, 0).saturating_mul(p.into()))
163
			.saturating_add(T::DbWeight::get().reads(1_u64))
164
			.saturating_add(T::DbWeight::get().writes(1_u64))
165
	}
166
	/// Storage: `Proxy::Proxies` (r:1 w:1)
167
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
168
	/// The range of component `p` is `[1, 31]`.
169
	fn remove_proxy(p: u32, ) -> Weight {
170
		// Proof Size summary in bytes:
171
		//  Measured:  `182 + p * (25 ±0)`
172
		//  Estimated: `4310`
173
		// Minimum execution time: 26_587_000 picoseconds.
174
		Weight::from_parts(27_797_973, 4310)
175
			// Standard Error: 1_271
176
			.saturating_add(Weight::from_parts(41_350, 0).saturating_mul(p.into()))
177
			.saturating_add(T::DbWeight::get().reads(1_u64))
178
			.saturating_add(T::DbWeight::get().writes(1_u64))
179
	}
180
	/// Storage: `Proxy::Proxies` (r:1 w:1)
181
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
182
	/// The range of component `p` is `[1, 31]`.
183
	fn remove_proxies(p: u32, ) -> Weight {
184
		// Proof Size summary in bytes:
185
		//  Measured:  `182 + p * (25 ±0)`
186
		//  Estimated: `4310`
187
		// Minimum execution time: 24_055_000 picoseconds.
188
		Weight::from_parts(25_042_145, 4310)
189
			// Standard Error: 1_161
190
			.saturating_add(Weight::from_parts(33_399, 0).saturating_mul(p.into()))
191
			.saturating_add(T::DbWeight::get().reads(1_u64))
192
			.saturating_add(T::DbWeight::get().writes(1_u64))
193
	}
194
	/// Storage: `Proxy::Proxies` (r:1 w:1)
195
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
196
	/// The range of component `p` is `[1, 31]`.
197
	fn create_pure(p: u32, ) -> Weight {
198
		// Proof Size summary in bytes:
199
		//  Measured:  `194`
200
		//  Estimated: `4310`
201
		// Minimum execution time: 28_521_000 picoseconds.
202
		Weight::from_parts(29_905_786, 4310)
203
			// Standard Error: 1_483
204
			.saturating_add(Weight::from_parts(16_878, 0).saturating_mul(p.into()))
205
			.saturating_add(T::DbWeight::get().reads(1_u64))
206
			.saturating_add(T::DbWeight::get().writes(1_u64))
207
	}
208
	/// Storage: `Proxy::Proxies` (r:1 w:1)
209
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
210
	/// The range of component `p` is `[0, 30]`.
211
	fn kill_pure(p: u32, ) -> Weight {
212
		// Proof Size summary in bytes:
213
		//  Measured:  `207 + p * (25 ±0)`
214
		//  Estimated: `4310`
215
		// Minimum execution time: 27_556_000 picoseconds.
216
		Weight::from_parts(28_583_548, 4310)
217
			// Standard Error: 1_236
218
			.saturating_add(Weight::from_parts(37_172, 0).saturating_mul(p.into()))
219
			.saturating_add(T::DbWeight::get().reads(1_u64))
220
			.saturating_add(T::DbWeight::get().writes(1_u64))
221
	}
222
	/// Storage: `Proxy::Proxies` (r:1 w:1)
223
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
224
	/// Storage: `System::Account` (r:1 w:1)
225
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
226
	/// Storage: `Proxy::Announcements` (r:1 w:1)
227
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
228
	fn poke_deposit() -> Weight {
229
		// Proof Size summary in bytes:
230
		//  Measured:  `496`
231
		//  Estimated: `5302`
232
		// Minimum execution time: 51_599_000 picoseconds.
233
		Weight::from_parts(52_833_000, 5302)
234
			.saturating_add(T::DbWeight::get().reads(3_u64))
235
			.saturating_add(T::DbWeight::get().writes(3_u64))
236
	}
237
}