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 48.0.0
21
//! DATE: 2025-09-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-198`, 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
// --output=./runtime/moonbase/src/weights
42

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

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

            
50
/// Weights for `pallet_proxy`.
51
pub struct WeightInfo<T>(PhantomData<T>);
52
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
53
	/// Storage: `Proxy::Proxies` (r:1 w:0)
54
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
55
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
56
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
57
	/// The range of component `p` is `[1, 31]`.
58
	fn proxy(p: u32, ) -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `191 + p * (25 ±0)`
61
		//  Estimated: `4310 + p * (25 ±0)`
62
		// Minimum execution time: 15_578_000 picoseconds.
63
		Weight::from_parts(16_495_147, 4310)
64
			// Standard Error: 1_182
65
			.saturating_add(Weight::from_parts(36_792, 0).saturating_mul(p.into()))
66
			.saturating_add(T::DbWeight::get().reads(2_u64))
67
			.saturating_add(Weight::from_parts(0, 25).saturating_mul(p.into()))
68
			// 1 DB read that happen when filtering the proxy call transaction
69
			.saturating_add(T::DbWeight::get().reads(1))
70
	}
71
	/// Storage: `Proxy::Proxies` (r:1 w:0)
72
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
73
	/// Storage: `Proxy::Announcements` (r:1 w:1)
74
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
75
	/// Storage: `System::Account` (r:1 w:1)
76
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
77
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
78
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79
	/// The range of component `a` is `[0, 31]`.
80
	/// The range of component `p` is `[1, 31]`.
81
	fn proxy_announced(a: u32, p: u32, ) -> Weight {
82
		// Proof Size summary in bytes:
83
		//  Measured:  `443 + a * (56 ±0) + p * (25 ±0)`
84
		//  Estimated: `5302 + a * (60 ±0) + p * (22 ±0)`
85
		// Minimum execution time: 40_784_000 picoseconds.
86
		Weight::from_parts(42_363_974, 5302)
87
			// Standard Error: 3_725
88
			.saturating_add(Weight::from_parts(195_382, 0).saturating_mul(a.into()))
89
			.saturating_add(T::DbWeight::get().reads(4_u64))
90
			.saturating_add(T::DbWeight::get().writes(2_u64))
91
			.saturating_add(Weight::from_parts(0, 60).saturating_mul(a.into()))
92
			.saturating_add(Weight::from_parts(0, 22).saturating_mul(p.into()))
93
	}
94
	/// Storage: `Proxy::Announcements` (r:1 w:1)
95
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
96
	/// Storage: `System::Account` (r:1 w:1)
97
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
98
	/// The range of component `a` is `[0, 31]`.
99
	/// The range of component `p` is `[1, 31]`.
100
	fn remove_announcement(a: u32, _p: u32, ) -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `329 + a * (56 ±0)`
103
		//  Estimated: `5302`
104
		// Minimum execution time: 25_186_000 picoseconds.
105
		Weight::from_parts(27_680_733, 5302)
106
			// Standard Error: 3_855
107
			.saturating_add(Weight::from_parts(226_372, 0).saturating_mul(a.into()))
108
			.saturating_add(T::DbWeight::get().reads(2_u64))
109
			.saturating_add(T::DbWeight::get().writes(2_u64))
110
	}
111
	/// Storage: `Proxy::Announcements` (r:1 w:1)
112
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
113
	/// Storage: `System::Account` (r:1 w:1)
114
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
115
	/// The range of component `a` is `[0, 31]`.
116
	/// The range of component `p` is `[1, 31]`.
117
	fn reject_announcement(a: u32, _p: u32, ) -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `329 + a * (56 ±0)`
120
		//  Estimated: `5302`
121
		// Minimum execution time: 25_066_000 picoseconds.
122
		Weight::from_parts(27_982_813, 5302)
123
			// Standard Error: 3_983
124
			.saturating_add(Weight::from_parts(221_159, 0).saturating_mul(a.into()))
125
			.saturating_add(T::DbWeight::get().reads(2_u64))
126
			.saturating_add(T::DbWeight::get().writes(2_u64))
127
	}
128
	/// Storage: `Proxy::Proxies` (r:1 w:0)
129
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
130
	/// Storage: `Proxy::Announcements` (r:1 w:1)
131
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
132
	/// Storage: `System::Account` (r:1 w:1)
133
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
134
	/// The range of component `a` is `[0, 31]`.
135
	/// The range of component `p` is `[1, 31]`.
136
	fn announce(a: u32, p: u32, ) -> Weight {
137
		// Proof Size summary in bytes:
138
		//  Measured:  `345 + a * (56 ±0) + p * (25 ±0)`
139
		//  Estimated: `5302`
140
		// Minimum execution time: 35_037_000 picoseconds.
141
		Weight::from_parts(36_267_042, 5302)
142
			// Standard Error: 2_450
143
			.saturating_add(Weight::from_parts(187_327, 0).saturating_mul(a.into()))
144
			// Standard Error: 2_532
145
			.saturating_add(Weight::from_parts(9_719, 0).saturating_mul(p.into()))
146
			.saturating_add(T::DbWeight::get().reads(3_u64))
147
			.saturating_add(T::DbWeight::get().writes(2_u64))
148
	}
149
	/// Storage: `Proxy::Proxies` (r:1 w:1)
150
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
151
	/// The range of component `p` is `[1, 31]`.
152
	fn add_proxy(p: u32, ) -> Weight {
153
		// Proof Size summary in bytes:
154
		//  Measured:  `149 + p * (25 ±0)`
155
		//  Estimated: `4310`
156
		// Minimum execution time: 24_747_000 picoseconds.
157
		Weight::from_parts(25_593_640, 4310)
158
			// Standard Error: 1_316
159
			.saturating_add(Weight::from_parts(48_287, 0).saturating_mul(p.into()))
160
			.saturating_add(T::DbWeight::get().reads(1_u64))
161
			.saturating_add(T::DbWeight::get().writes(1_u64))
162
	}
163
	/// Storage: `Proxy::Proxies` (r:1 w:1)
164
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
165
	/// The range of component `p` is `[1, 31]`.
166
	fn remove_proxy(p: u32, ) -> Weight {
167
		// Proof Size summary in bytes:
168
		//  Measured:  `149 + p * (25 ±0)`
169
		//  Estimated: `4310`
170
		// Minimum execution time: 24_458_000 picoseconds.
171
		Weight::from_parts(25_576_371, 4310)
172
			// Standard Error: 1_340
173
			.saturating_add(Weight::from_parts(43_987, 0).saturating_mul(p.into()))
174
			.saturating_add(T::DbWeight::get().reads(1_u64))
175
			.saturating_add(T::DbWeight::get().writes(1_u64))
176
	}
177
	/// Storage: `Proxy::Proxies` (r:1 w:1)
178
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
179
	/// The range of component `p` is `[1, 31]`.
180
	fn remove_proxies(p: u32, ) -> Weight {
181
		// Proof Size summary in bytes:
182
		//  Measured:  `149 + p * (25 ±0)`
183
		//  Estimated: `4310`
184
		// Minimum execution time: 22_251_000 picoseconds.
185
		Weight::from_parts(23_153_846, 4310)
186
			// Standard Error: 1_140
187
			.saturating_add(Weight::from_parts(29_670, 0).saturating_mul(p.into()))
188
			.saturating_add(T::DbWeight::get().reads(1_u64))
189
			.saturating_add(T::DbWeight::get().writes(1_u64))
190
	}
191
	/// Storage: `Proxy::Proxies` (r:1 w:1)
192
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
193
	/// The range of component `p` is `[1, 31]`.
194
	fn create_pure(p: u32, ) -> Weight {
195
		// Proof Size summary in bytes:
196
		//  Measured:  `161`
197
		//  Estimated: `4310`
198
		// Minimum execution time: 25_949_000 picoseconds.
199
		Weight::from_parts(27_054_149, 4310)
200
			// Standard Error: 1_239
201
			.saturating_add(Weight::from_parts(16_269, 0).saturating_mul(p.into()))
202
			.saturating_add(T::DbWeight::get().reads(1_u64))
203
			.saturating_add(T::DbWeight::get().writes(1_u64))
204
	}
205
	/// Storage: `Proxy::Proxies` (r:1 w:1)
206
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
207
	/// The range of component `p` is `[0, 30]`.
208
	fn kill_pure(p: u32, ) -> Weight {
209
		// Proof Size summary in bytes:
210
		//  Measured:  `174 + p * (25 ±0)`
211
		//  Estimated: `4310`
212
		// Minimum execution time: 23_003_000 picoseconds.
213
		Weight::from_parts(24_060_210, 4310)
214
			// Standard Error: 1_215
215
			.saturating_add(Weight::from_parts(29_410, 0).saturating_mul(p.into()))
216
			.saturating_add(T::DbWeight::get().reads(1_u64))
217
			.saturating_add(T::DbWeight::get().writes(1_u64))
218
	}
219
	/// Storage: `Proxy::Proxies` (r:1 w:1)
220
	/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
221
	/// Storage: `System::Account` (r:1 w:1)
222
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
223
	/// Storage: `Proxy::Announcements` (r:1 w:1)
224
	/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
225
	fn poke_deposit() -> Weight {
226
		// Proof Size summary in bytes:
227
		//  Measured:  `463`
228
		//  Estimated: `5302`
229
		// Minimum execution time: 47_888_000 picoseconds.
230
		Weight::from_parts(49_043_000, 5302)
231
			.saturating_add(T::DbWeight::get().reads(3_u64))
232
			.saturating_add(T::DbWeight::get().writes(3_u64))
233
	}
234
}