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/moonbase-runtime/moonbase_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/moonbase/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:  `191 + p * (25 ±0)`
62
		//  Estimated: `4310 + p * (25 ±0)`
63
		// Minimum execution time: 16_410_000 picoseconds.
64
		Weight::from_parts(17_353_012, 4310)
65
			// Standard Error: 1_390
66
			.saturating_add(Weight::from_parts(38_350, 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:  `443 + a * (56 ±0) + p * (25 ±0)`
85
		//  Estimated: `5302 + a * (59 ±0) + p * (22 ±0)`
86
		// Minimum execution time: 42_935_000 picoseconds.
87
		Weight::from_parts(44_549_830, 5302)
88
			// Standard Error: 3_071
89
			.saturating_add(Weight::from_parts(205_847, 0).saturating_mul(a.into()))
90
			// Standard Error: 3_173
91
			.saturating_add(Weight::from_parts(5_943, 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:  `329 + a * (56 ±0)`
106
		//  Estimated: `5302`
107
		// Minimum execution time: 26_587_000 picoseconds.
108
		Weight::from_parts(29_031_844, 5302)
109
			// Standard Error: 3_840
110
			.saturating_add(Weight::from_parts(239_523, 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:  `329 + a * (56 ±0)`
123
		//  Estimated: `5302`
124
		// Minimum execution time: 26_365_000 picoseconds.
125
		Weight::from_parts(29_119_326, 5302)
126
			// Standard Error: 3_976
127
			.saturating_add(Weight::from_parts(241_875, 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:  `345 + a * (56 ±0) + p * (25 ±0)`
142
		//  Estimated: `5302`
143
		// Minimum execution time: 37_051_000 picoseconds.
144
		Weight::from_parts(38_551_574, 5302)
145
			// Standard Error: 2_449
146
			.saturating_add(Weight::from_parts(196_116, 0).saturating_mul(a.into()))
147
			// Standard Error: 2_530
148
			.saturating_add(Weight::from_parts(1_875, 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:  `149 + p * (25 ±0)`
158
		//  Estimated: `4310`
159
		// Minimum execution time: 26_051_000 picoseconds.
160
		Weight::from_parts(27_171_464, 4310)
161
			// Standard Error: 1_382
162
			.saturating_add(Weight::from_parts(48_173, 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:  `149 + p * (25 ±0)`
172
		//  Estimated: `4310`
173
		// Minimum execution time: 25_886_000 picoseconds.
174
		Weight::from_parts(27_149_044, 4310)
175
			// Standard Error: 1_328
176
			.saturating_add(Weight::from_parts(41_537, 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:  `149 + p * (25 ±0)`
186
		//  Estimated: `4310`
187
		// Minimum execution time: 23_452_000 picoseconds.
188
		Weight::from_parts(24_515_718, 4310)
189
			// Standard Error: 1_261
190
			.saturating_add(Weight::from_parts(28_895, 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:  `161`
200
		//  Estimated: `4310`
201
		// Minimum execution time: 28_531_000 picoseconds.
202
		Weight::from_parts(29_941_177, 4310)
203
			// Standard Error: 1_674
204
			.saturating_add(Weight::from_parts(10_986, 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:  `174 + p * (25 ±0)`
214
		//  Estimated: `4310`
215
		// Minimum execution time: 27_039_000 picoseconds.
216
		Weight::from_parts(28_225_971, 4310)
217
			// Standard Error: 1_641
218
			.saturating_add(Weight::from_parts(26_515, 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:  `463`
231
		//  Estimated: `5302`
232
		// Minimum execution time: 50_545_000 picoseconds.
233
		Weight::from_parts(52_338_000, 5302)
234
			.saturating_add(T::DbWeight::get().reads(3_u64))
235
			.saturating_add(T::DbWeight::get().writes(3_u64))
236
	}
237
}