referrerpolicy=no-referrer-when-downgrade

pallet_bounties/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// 	http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_bounties`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-07-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `ce7865b6eb9f`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_bounties
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/bounties/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage
62
63#![cfg_attr(rustfmt, rustfmt_skip)]
64#![allow(unused_parens)]
65#![allow(unused_imports)]
66#![allow(missing_docs)]
67#![allow(dead_code)]
68
69use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
70use core::marker::PhantomData;
71
72/// Weight functions needed for `pallet_bounties`.
73pub trait WeightInfo {
74	fn propose_bounty(d: u32, ) -> Weight;
75	fn approve_bounty() -> Weight;
76	fn propose_curator() -> Weight;
77	fn approve_bounty_with_curator() -> Weight;
78	fn unassign_curator() -> Weight;
79	fn accept_curator() -> Weight;
80	fn award_bounty() -> Weight;
81	fn claim_bounty() -> Weight;
82	fn close_bounty_proposed() -> Weight;
83	fn close_bounty_active() -> Weight;
84	fn extend_bounty_expiry() -> Weight;
85	fn spend_funds(b: u32, ) -> Weight;
86	fn poke_deposit() -> Weight;
87	fn reclaim_bounty_funds() -> Weight;
88}
89
90/// Weights for `pallet_bounties` using the Substrate node and recommended hardware.
91pub struct SubstrateWeight<T>(PhantomData<T>);
92impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
93	/// Storage: `Bounties::BountyCount` (r:1 w:1)
94	/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
95	/// Storage: `System::Account` (r:1 w:1)
96	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
97	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
98	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
99	/// Storage: `Bounties::Bounties` (r:0 w:1)
100	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
101	/// The range of component `d` is `[0, 300]`.
102	fn propose_bounty(d: u32, ) -> Weight {
103		// Proof Size summary in bytes:
104		//  Measured:  `342`
105		//  Estimated: `3593`
106		// Minimum execution time: 25_999_000 picoseconds.
107		Weight::from_parts(27_437_542, 3593)
108			// Standard Error: 204
109			.saturating_add(Weight::from_parts(775, 0).saturating_mul(d.into()))
110			.saturating_add(T::DbWeight::get().reads(2_u64))
111			.saturating_add(T::DbWeight::get().writes(4_u64))
112	}
113	/// Storage: `Bounties::Bounties` (r:1 w:1)
114	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
115	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
116	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
117	fn approve_bounty() -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `434`
120		//  Estimated: `3642`
121		// Minimum execution time: 14_047_000 picoseconds.
122		Weight::from_parts(14_589_000, 3642)
123			.saturating_add(T::DbWeight::get().reads(2_u64))
124			.saturating_add(T::DbWeight::get().writes(2_u64))
125	}
126	/// Storage: `Bounties::Bounties` (r:1 w:1)
127	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
128	fn propose_curator() -> Weight {
129		// Proof Size summary in bytes:
130		//  Measured:  `454`
131		//  Estimated: `3642`
132		// Minimum execution time: 15_603_000 picoseconds.
133		Weight::from_parts(16_186_000, 3642)
134			.saturating_add(T::DbWeight::get().reads(1_u64))
135			.saturating_add(T::DbWeight::get().writes(1_u64))
136	}
137	/// Storage: `Bounties::Bounties` (r:1 w:1)
138	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
139	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
140	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
141	fn approve_bounty_with_curator() -> Weight {
142		// Proof Size summary in bytes:
143		//  Measured:  `434`
144		//  Estimated: `3642`
145		// Minimum execution time: 18_853_000 picoseconds.
146		Weight::from_parts(19_458_000, 3642)
147			.saturating_add(T::DbWeight::get().reads(2_u64))
148			.saturating_add(T::DbWeight::get().writes(2_u64))
149	}
150	/// Storage: `Bounties::Bounties` (r:1 w:1)
151	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
152	/// Storage: `System::Account` (r:1 w:1)
153	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
154	fn unassign_curator() -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `630`
157		//  Estimated: `3642`
158		// Minimum execution time: 41_310_000 picoseconds.
159		Weight::from_parts(42_322_000, 3642)
160			.saturating_add(T::DbWeight::get().reads(2_u64))
161			.saturating_add(T::DbWeight::get().writes(2_u64))
162	}
163	/// Storage: `Bounties::Bounties` (r:1 w:1)
164	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
165	/// Storage: `System::Account` (r:1 w:1)
166	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
167	fn accept_curator() -> Weight {
168		// Proof Size summary in bytes:
169		//  Measured:  `626`
170		//  Estimated: `3642`
171		// Minimum execution time: 32_010_000 picoseconds.
172		Weight::from_parts(32_692_000, 3642)
173			.saturating_add(T::DbWeight::get().reads(2_u64))
174			.saturating_add(T::DbWeight::get().writes(2_u64))
175	}
176	/// Storage: `Bounties::Bounties` (r:1 w:1)
177	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
178	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
179	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
180	fn award_bounty() -> Weight {
181		// Proof Size summary in bytes:
182		//  Measured:  `638`
183		//  Estimated: `3642`
184		// Minimum execution time: 20_416_000 picoseconds.
185		Weight::from_parts(21_226_000, 3642)
186			.saturating_add(T::DbWeight::get().reads(2_u64))
187			.saturating_add(T::DbWeight::get().writes(1_u64))
188	}
189	/// Storage: `Bounties::Bounties` (r:1 w:1)
190	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
191	/// Storage: `System::Account` (r:3 w:3)
192	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
193	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
194	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
195	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
196	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
197	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
198	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
199	/// Storage: `ChildBounties::ParentChildBounties` (r:0 w:1)
200	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
201	fn claim_bounty() -> Weight {
202		// Proof Size summary in bytes:
203		//  Measured:  `1036`
204		//  Estimated: `8799`
205		// Minimum execution time: 113_090_000 picoseconds.
206		Weight::from_parts(114_971_000, 8799)
207			.saturating_add(T::DbWeight::get().reads(5_u64))
208			.saturating_add(T::DbWeight::get().writes(8_u64))
209	}
210	/// Storage: `Bounties::Bounties` (r:1 w:1)
211	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
212	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
213	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
214	/// Storage: `System::Account` (r:1 w:1)
215	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
216	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
217	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
218	fn close_bounty_proposed() -> Weight {
219		// Proof Size summary in bytes:
220		//  Measured:  `682`
221		//  Estimated: `3642`
222		// Minimum execution time: 44_374_000 picoseconds.
223		Weight::from_parts(46_520_000, 3642)
224			.saturating_add(T::DbWeight::get().reads(3_u64))
225			.saturating_add(T::DbWeight::get().writes(3_u64))
226	}
227	/// Storage: `Bounties::Bounties` (r:1 w:1)
228	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
229	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
230	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
231	/// Storage: `System::Account` (r:2 w:2)
232	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
233	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
234	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
235	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
236	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
237	fn close_bounty_active() -> Weight {
238		// Proof Size summary in bytes:
239		//  Measured:  `952`
240		//  Estimated: `6196`
241		// Minimum execution time: 79_903_000 picoseconds.
242		Weight::from_parts(83_063_000, 6196)
243			.saturating_add(T::DbWeight::get().reads(4_u64))
244			.saturating_add(T::DbWeight::get().writes(6_u64))
245	}
246	/// Storage: `Bounties::Bounties` (r:1 w:1)
247	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
248	fn extend_bounty_expiry() -> Weight {
249		// Proof Size summary in bytes:
250		//  Measured:  `490`
251		//  Estimated: `3642`
252		// Minimum execution time: 16_302_000 picoseconds.
253		Weight::from_parts(16_897_000, 3642)
254			.saturating_add(T::DbWeight::get().reads(1_u64))
255			.saturating_add(T::DbWeight::get().writes(1_u64))
256	}
257	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
258	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
259	/// Storage: `Bounties::Bounties` (r:100 w:100)
260	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
261	/// Storage: `System::Account` (r:200 w:200)
262	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
263	/// The range of component `b` is `[0, 100]`.
264	fn spend_funds(b: u32, ) -> Weight {
265		// Proof Size summary in bytes:
266		//  Measured:  `71 + b * (298 ±0)`
267		//  Estimated: `1887 + b * (5206 ±0)`
268		// Minimum execution time: 3_377_000 picoseconds.
269		Weight::from_parts(3_447_000, 1887)
270			// Standard Error: 10_301
271			.saturating_add(Weight::from_parts(34_772_229, 0).saturating_mul(b.into()))
272			.saturating_add(T::DbWeight::get().reads(1_u64))
273			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))
274			.saturating_add(T::DbWeight::get().writes(1_u64))
275			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
276			.saturating_add(Weight::from_parts(0, 5206).saturating_mul(b.into()))
277	}
278	/// Storage: `Bounties::Bounties` (r:1 w:1)
279	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
280	/// Storage: `Bounties::BountyDescriptions` (r:1 w:0)
281	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
282	/// Storage: `System::Account` (r:1 w:1)
283	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
284	fn poke_deposit() -> Weight {
285		// Proof Size summary in bytes:
286		//  Measured:  `839`
287		//  Estimated: `3779`
288		// Minimum execution time: 32_100_000 picoseconds.
289		Weight::from_parts(33_660_000, 3779)
290			.saturating_add(T::DbWeight::get().reads(3_u64))
291			.saturating_add(T::DbWeight::get().writes(2_u64))
292	}
293
294	/// Storage: `Bounties::Bounties` (r:1 w:0)
295	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
296	/// Storage: `System::Account` (r:2 w:2)
297	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
298	fn reclaim_bounty_funds() -> Weight {
299		// Proof Size summary in bytes:
300		//  Measured:  `500`
301		//  Estimated: `6196`
302		// Minimum execution time: 40_000_000 picoseconds.
303		Weight::from_parts(40_000_000, 6196)
304			.saturating_add(T::DbWeight::get().reads(3_u64))
305			.saturating_add(T::DbWeight::get().writes(2_u64))
306	}
307}
308
309// For backwards compatibility and tests.
310impl WeightInfo for () {
311	/// Storage: `Bounties::BountyCount` (r:1 w:1)
312	/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
313	/// Storage: `System::Account` (r:1 w:1)
314	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
315	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
316	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
317	/// Storage: `Bounties::Bounties` (r:0 w:1)
318	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
319	/// The range of component `d` is `[0, 300]`.
320	fn propose_bounty(d: u32, ) -> Weight {
321		// Proof Size summary in bytes:
322		//  Measured:  `342`
323		//  Estimated: `3593`
324		// Minimum execution time: 25_999_000 picoseconds.
325		Weight::from_parts(27_437_542, 3593)
326			// Standard Error: 204
327			.saturating_add(Weight::from_parts(775, 0).saturating_mul(d.into()))
328			.saturating_add(RocksDbWeight::get().reads(2_u64))
329			.saturating_add(RocksDbWeight::get().writes(4_u64))
330	}
331	/// Storage: `Bounties::Bounties` (r:1 w:1)
332	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
333	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
334	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
335	fn approve_bounty() -> Weight {
336		// Proof Size summary in bytes:
337		//  Measured:  `434`
338		//  Estimated: `3642`
339		// Minimum execution time: 14_047_000 picoseconds.
340		Weight::from_parts(14_589_000, 3642)
341			.saturating_add(RocksDbWeight::get().reads(2_u64))
342			.saturating_add(RocksDbWeight::get().writes(2_u64))
343	}
344	/// Storage: `Bounties::Bounties` (r:1 w:1)
345	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
346	fn propose_curator() -> Weight {
347		// Proof Size summary in bytes:
348		//  Measured:  `454`
349		//  Estimated: `3642`
350		// Minimum execution time: 15_603_000 picoseconds.
351		Weight::from_parts(16_186_000, 3642)
352			.saturating_add(RocksDbWeight::get().reads(1_u64))
353			.saturating_add(RocksDbWeight::get().writes(1_u64))
354	}
355	/// Storage: `Bounties::Bounties` (r:1 w:1)
356	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
357	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
358	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
359	fn approve_bounty_with_curator() -> Weight {
360		// Proof Size summary in bytes:
361		//  Measured:  `434`
362		//  Estimated: `3642`
363		// Minimum execution time: 18_853_000 picoseconds.
364		Weight::from_parts(19_458_000, 3642)
365			.saturating_add(RocksDbWeight::get().reads(2_u64))
366			.saturating_add(RocksDbWeight::get().writes(2_u64))
367	}
368	/// Storage: `Bounties::Bounties` (r:1 w:1)
369	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
370	/// Storage: `System::Account` (r:1 w:1)
371	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
372	fn unassign_curator() -> Weight {
373		// Proof Size summary in bytes:
374		//  Measured:  `630`
375		//  Estimated: `3642`
376		// Minimum execution time: 41_310_000 picoseconds.
377		Weight::from_parts(42_322_000, 3642)
378			.saturating_add(RocksDbWeight::get().reads(2_u64))
379			.saturating_add(RocksDbWeight::get().writes(2_u64))
380	}
381	/// Storage: `Bounties::Bounties` (r:1 w:1)
382	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
383	/// Storage: `System::Account` (r:1 w:1)
384	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
385	fn accept_curator() -> Weight {
386		// Proof Size summary in bytes:
387		//  Measured:  `626`
388		//  Estimated: `3642`
389		// Minimum execution time: 32_010_000 picoseconds.
390		Weight::from_parts(32_692_000, 3642)
391			.saturating_add(RocksDbWeight::get().reads(2_u64))
392			.saturating_add(RocksDbWeight::get().writes(2_u64))
393	}
394	/// Storage: `Bounties::Bounties` (r:1 w:1)
395	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
396	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
397	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
398	fn award_bounty() -> Weight {
399		// Proof Size summary in bytes:
400		//  Measured:  `638`
401		//  Estimated: `3642`
402		// Minimum execution time: 20_416_000 picoseconds.
403		Weight::from_parts(21_226_000, 3642)
404			.saturating_add(RocksDbWeight::get().reads(2_u64))
405			.saturating_add(RocksDbWeight::get().writes(1_u64))
406	}
407	/// Storage: `Bounties::Bounties` (r:1 w:1)
408	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
409	/// Storage: `System::Account` (r:3 w:3)
410	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
411	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
412	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
413	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
414	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
415	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
416	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
417	/// Storage: `ChildBounties::ParentChildBounties` (r:0 w:1)
418	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
419	fn claim_bounty() -> Weight {
420		// Proof Size summary in bytes:
421		//  Measured:  `1036`
422		//  Estimated: `8799`
423		// Minimum execution time: 113_090_000 picoseconds.
424		Weight::from_parts(114_971_000, 8799)
425			.saturating_add(RocksDbWeight::get().reads(5_u64))
426			.saturating_add(RocksDbWeight::get().writes(8_u64))
427	}
428	/// Storage: `Bounties::Bounties` (r:1 w:1)
429	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
430	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
431	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
432	/// Storage: `System::Account` (r:1 w:1)
433	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
434	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
435	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
436	fn close_bounty_proposed() -> Weight {
437		// Proof Size summary in bytes:
438		//  Measured:  `682`
439		//  Estimated: `3642`
440		// Minimum execution time: 44_374_000 picoseconds.
441		Weight::from_parts(46_520_000, 3642)
442			.saturating_add(RocksDbWeight::get().reads(3_u64))
443			.saturating_add(RocksDbWeight::get().writes(3_u64))
444	}
445	/// Storage: `Bounties::Bounties` (r:1 w:1)
446	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
447	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
448	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
449	/// Storage: `System::Account` (r:2 w:2)
450	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
451	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
452	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
453	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
454	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
455	fn close_bounty_active() -> Weight {
456		// Proof Size summary in bytes:
457		//  Measured:  `952`
458		//  Estimated: `6196`
459		// Minimum execution time: 79_903_000 picoseconds.
460		Weight::from_parts(83_063_000, 6196)
461			.saturating_add(RocksDbWeight::get().reads(4_u64))
462			.saturating_add(RocksDbWeight::get().writes(6_u64))
463	}
464	/// Storage: `Bounties::Bounties` (r:1 w:1)
465	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
466	fn extend_bounty_expiry() -> Weight {
467		// Proof Size summary in bytes:
468		//  Measured:  `490`
469		//  Estimated: `3642`
470		// Minimum execution time: 16_302_000 picoseconds.
471		Weight::from_parts(16_897_000, 3642)
472			.saturating_add(RocksDbWeight::get().reads(1_u64))
473			.saturating_add(RocksDbWeight::get().writes(1_u64))
474	}
475	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
476	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
477	/// Storage: `Bounties::Bounties` (r:100 w:100)
478	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
479	/// Storage: `System::Account` (r:200 w:200)
480	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
481	/// The range of component `b` is `[0, 100]`.
482	fn spend_funds(b: u32, ) -> Weight {
483		// Proof Size summary in bytes:
484		//  Measured:  `71 + b * (298 ±0)`
485		//  Estimated: `1887 + b * (5206 ±0)`
486		// Minimum execution time: 3_377_000 picoseconds.
487		Weight::from_parts(3_447_000, 1887)
488			// Standard Error: 10_301
489			.saturating_add(Weight::from_parts(34_772_229, 0).saturating_mul(b.into()))
490			.saturating_add(RocksDbWeight::get().reads(1_u64))
491			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))
492			.saturating_add(RocksDbWeight::get().writes(1_u64))
493			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
494			.saturating_add(Weight::from_parts(0, 5206).saturating_mul(b.into()))
495	}
496	/// Storage: `Bounties::Bounties` (r:1 w:1)
497	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
498	/// Storage: `Bounties::BountyDescriptions` (r:1 w:0)
499	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
500	/// Storage: `System::Account` (r:1 w:1)
501	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
502	fn poke_deposit() -> Weight {
503		// Proof Size summary in bytes:
504		//  Measured:  `839`
505		//  Estimated: `3779`
506		// Minimum execution time: 32_100_000 picoseconds.
507		Weight::from_parts(33_660_000, 3779)
508			.saturating_add(RocksDbWeight::get().reads(3_u64))
509			.saturating_add(RocksDbWeight::get().writes(2_u64))
510	}
511
512	/// Storage: `Bounties::Bounties` (r:1 w:0)
513	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
514	/// Storage: `System::Account` (r:2 w:2)
515	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
516	fn reclaim_bounty_funds() -> Weight {
517		Weight::from_parts(40_000_000, 6196)
518			.saturating_add(RocksDbWeight::get().reads(3_u64))
519			.saturating_add(RocksDbWeight::get().writes(2_u64))
520	}
521}