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}
88
89/// Weights for `pallet_bounties` using the Substrate node and recommended hardware.
90pub struct SubstrateWeight<T>(PhantomData<T>);
91impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
92	/// Storage: `Bounties::BountyCount` (r:1 w:1)
93	/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
94	/// Storage: `System::Account` (r:1 w:1)
95	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
96	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
97	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
98	/// Storage: `Bounties::Bounties` (r:0 w:1)
99	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
100	/// The range of component `d` is `[0, 300]`.
101	fn propose_bounty(d: u32, ) -> Weight {
102		// Proof Size summary in bytes:
103		//  Measured:  `342`
104		//  Estimated: `3593`
105		// Minimum execution time: 25_999_000 picoseconds.
106		Weight::from_parts(27_437_542, 3593)
107			// Standard Error: 204
108			.saturating_add(Weight::from_parts(775, 0).saturating_mul(d.into()))
109			.saturating_add(T::DbWeight::get().reads(2_u64))
110			.saturating_add(T::DbWeight::get().writes(4_u64))
111	}
112	/// Storage: `Bounties::Bounties` (r:1 w:1)
113	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
114	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
115	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
116	fn approve_bounty() -> Weight {
117		// Proof Size summary in bytes:
118		//  Measured:  `434`
119		//  Estimated: `3642`
120		// Minimum execution time: 14_047_000 picoseconds.
121		Weight::from_parts(14_589_000, 3642)
122			.saturating_add(T::DbWeight::get().reads(2_u64))
123			.saturating_add(T::DbWeight::get().writes(2_u64))
124	}
125	/// Storage: `Bounties::Bounties` (r:1 w:1)
126	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
127	fn propose_curator() -> Weight {
128		// Proof Size summary in bytes:
129		//  Measured:  `454`
130		//  Estimated: `3642`
131		// Minimum execution time: 15_603_000 picoseconds.
132		Weight::from_parts(16_186_000, 3642)
133			.saturating_add(T::DbWeight::get().reads(1_u64))
134			.saturating_add(T::DbWeight::get().writes(1_u64))
135	}
136	/// Storage: `Bounties::Bounties` (r:1 w:1)
137	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
138	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
139	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
140	fn approve_bounty_with_curator() -> Weight {
141		// Proof Size summary in bytes:
142		//  Measured:  `434`
143		//  Estimated: `3642`
144		// Minimum execution time: 18_853_000 picoseconds.
145		Weight::from_parts(19_458_000, 3642)
146			.saturating_add(T::DbWeight::get().reads(2_u64))
147			.saturating_add(T::DbWeight::get().writes(2_u64))
148	}
149	/// Storage: `Bounties::Bounties` (r:1 w:1)
150	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
151	/// Storage: `System::Account` (r:1 w:1)
152	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
153	fn unassign_curator() -> Weight {
154		// Proof Size summary in bytes:
155		//  Measured:  `630`
156		//  Estimated: `3642`
157		// Minimum execution time: 41_310_000 picoseconds.
158		Weight::from_parts(42_322_000, 3642)
159			.saturating_add(T::DbWeight::get().reads(2_u64))
160			.saturating_add(T::DbWeight::get().writes(2_u64))
161	}
162	/// Storage: `Bounties::Bounties` (r:1 w:1)
163	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
164	/// Storage: `System::Account` (r:1 w:1)
165	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
166	fn accept_curator() -> Weight {
167		// Proof Size summary in bytes:
168		//  Measured:  `626`
169		//  Estimated: `3642`
170		// Minimum execution time: 32_010_000 picoseconds.
171		Weight::from_parts(32_692_000, 3642)
172			.saturating_add(T::DbWeight::get().reads(2_u64))
173			.saturating_add(T::DbWeight::get().writes(2_u64))
174	}
175	/// Storage: `Bounties::Bounties` (r:1 w:1)
176	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
177	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
178	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
179	fn award_bounty() -> Weight {
180		// Proof Size summary in bytes:
181		//  Measured:  `638`
182		//  Estimated: `3642`
183		// Minimum execution time: 20_416_000 picoseconds.
184		Weight::from_parts(21_226_000, 3642)
185			.saturating_add(T::DbWeight::get().reads(2_u64))
186			.saturating_add(T::DbWeight::get().writes(1_u64))
187	}
188	/// Storage: `Bounties::Bounties` (r:1 w:1)
189	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
190	/// Storage: `System::Account` (r:3 w:3)
191	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
192	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
193	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
194	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
195	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
196	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
197	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
198	/// Storage: `ChildBounties::ParentChildBounties` (r:0 w:1)
199	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
200	fn claim_bounty() -> Weight {
201		// Proof Size summary in bytes:
202		//  Measured:  `1036`
203		//  Estimated: `8799`
204		// Minimum execution time: 113_090_000 picoseconds.
205		Weight::from_parts(114_971_000, 8799)
206			.saturating_add(T::DbWeight::get().reads(5_u64))
207			.saturating_add(T::DbWeight::get().writes(8_u64))
208	}
209	/// Storage: `Bounties::Bounties` (r:1 w:1)
210	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
211	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
212	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
213	/// Storage: `System::Account` (r:1 w:1)
214	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
215	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
216	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
217	fn close_bounty_proposed() -> Weight {
218		// Proof Size summary in bytes:
219		//  Measured:  `682`
220		//  Estimated: `3642`
221		// Minimum execution time: 44_374_000 picoseconds.
222		Weight::from_parts(46_520_000, 3642)
223			.saturating_add(T::DbWeight::get().reads(3_u64))
224			.saturating_add(T::DbWeight::get().writes(3_u64))
225	}
226	/// Storage: `Bounties::Bounties` (r:1 w:1)
227	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
228	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
229	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
230	/// Storage: `System::Account` (r:2 w:2)
231	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
232	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
233	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
234	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
235	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
236	fn close_bounty_active() -> Weight {
237		// Proof Size summary in bytes:
238		//  Measured:  `952`
239		//  Estimated: `6196`
240		// Minimum execution time: 79_903_000 picoseconds.
241		Weight::from_parts(83_063_000, 6196)
242			.saturating_add(T::DbWeight::get().reads(4_u64))
243			.saturating_add(T::DbWeight::get().writes(6_u64))
244	}
245	/// Storage: `Bounties::Bounties` (r:1 w:1)
246	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
247	fn extend_bounty_expiry() -> Weight {
248		// Proof Size summary in bytes:
249		//  Measured:  `490`
250		//  Estimated: `3642`
251		// Minimum execution time: 16_302_000 picoseconds.
252		Weight::from_parts(16_897_000, 3642)
253			.saturating_add(T::DbWeight::get().reads(1_u64))
254			.saturating_add(T::DbWeight::get().writes(1_u64))
255	}
256	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
257	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
258	/// Storage: `Bounties::Bounties` (r:100 w:100)
259	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
260	/// Storage: `System::Account` (r:200 w:200)
261	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
262	/// The range of component `b` is `[0, 100]`.
263	fn spend_funds(b: u32, ) -> Weight {
264		// Proof Size summary in bytes:
265		//  Measured:  `71 + b * (298 ±0)`
266		//  Estimated: `1887 + b * (5206 ±0)`
267		// Minimum execution time: 3_377_000 picoseconds.
268		Weight::from_parts(3_447_000, 1887)
269			// Standard Error: 10_301
270			.saturating_add(Weight::from_parts(34_772_229, 0).saturating_mul(b.into()))
271			.saturating_add(T::DbWeight::get().reads(1_u64))
272			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))
273			.saturating_add(T::DbWeight::get().writes(1_u64))
274			.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
275			.saturating_add(Weight::from_parts(0, 5206).saturating_mul(b.into()))
276	}
277	/// Storage: `Bounties::Bounties` (r:1 w:1)
278	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
279	/// Storage: `Bounties::BountyDescriptions` (r:1 w:0)
280	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
281	/// Storage: `System::Account` (r:1 w:1)
282	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
283	fn poke_deposit() -> Weight {
284		// Proof Size summary in bytes:
285		//  Measured:  `839`
286		//  Estimated: `3779`
287		// Minimum execution time: 32_100_000 picoseconds.
288		Weight::from_parts(33_660_000, 3779)
289			.saturating_add(T::DbWeight::get().reads(3_u64))
290			.saturating_add(T::DbWeight::get().writes(2_u64))
291	}
292}
293
294// For backwards compatibility and tests.
295impl WeightInfo for () {
296	/// Storage: `Bounties::BountyCount` (r:1 w:1)
297	/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
298	/// Storage: `System::Account` (r:1 w:1)
299	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
300	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
301	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
302	/// Storage: `Bounties::Bounties` (r:0 w:1)
303	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
304	/// The range of component `d` is `[0, 300]`.
305	fn propose_bounty(d: u32, ) -> Weight {
306		// Proof Size summary in bytes:
307		//  Measured:  `342`
308		//  Estimated: `3593`
309		// Minimum execution time: 25_999_000 picoseconds.
310		Weight::from_parts(27_437_542, 3593)
311			// Standard Error: 204
312			.saturating_add(Weight::from_parts(775, 0).saturating_mul(d.into()))
313			.saturating_add(RocksDbWeight::get().reads(2_u64))
314			.saturating_add(RocksDbWeight::get().writes(4_u64))
315	}
316	/// Storage: `Bounties::Bounties` (r:1 w:1)
317	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
318	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
319	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
320	fn approve_bounty() -> Weight {
321		// Proof Size summary in bytes:
322		//  Measured:  `434`
323		//  Estimated: `3642`
324		// Minimum execution time: 14_047_000 picoseconds.
325		Weight::from_parts(14_589_000, 3642)
326			.saturating_add(RocksDbWeight::get().reads(2_u64))
327			.saturating_add(RocksDbWeight::get().writes(2_u64))
328	}
329	/// Storage: `Bounties::Bounties` (r:1 w:1)
330	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
331	fn propose_curator() -> Weight {
332		// Proof Size summary in bytes:
333		//  Measured:  `454`
334		//  Estimated: `3642`
335		// Minimum execution time: 15_603_000 picoseconds.
336		Weight::from_parts(16_186_000, 3642)
337			.saturating_add(RocksDbWeight::get().reads(1_u64))
338			.saturating_add(RocksDbWeight::get().writes(1_u64))
339	}
340	/// Storage: `Bounties::Bounties` (r:1 w:1)
341	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
342	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
343	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
344	fn approve_bounty_with_curator() -> Weight {
345		// Proof Size summary in bytes:
346		//  Measured:  `434`
347		//  Estimated: `3642`
348		// Minimum execution time: 18_853_000 picoseconds.
349		Weight::from_parts(19_458_000, 3642)
350			.saturating_add(RocksDbWeight::get().reads(2_u64))
351			.saturating_add(RocksDbWeight::get().writes(2_u64))
352	}
353	/// Storage: `Bounties::Bounties` (r:1 w:1)
354	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
355	/// Storage: `System::Account` (r:1 w:1)
356	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
357	fn unassign_curator() -> Weight {
358		// Proof Size summary in bytes:
359		//  Measured:  `630`
360		//  Estimated: `3642`
361		// Minimum execution time: 41_310_000 picoseconds.
362		Weight::from_parts(42_322_000, 3642)
363			.saturating_add(RocksDbWeight::get().reads(2_u64))
364			.saturating_add(RocksDbWeight::get().writes(2_u64))
365	}
366	/// Storage: `Bounties::Bounties` (r:1 w:1)
367	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
368	/// Storage: `System::Account` (r:1 w:1)
369	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
370	fn accept_curator() -> Weight {
371		// Proof Size summary in bytes:
372		//  Measured:  `626`
373		//  Estimated: `3642`
374		// Minimum execution time: 32_010_000 picoseconds.
375		Weight::from_parts(32_692_000, 3642)
376			.saturating_add(RocksDbWeight::get().reads(2_u64))
377			.saturating_add(RocksDbWeight::get().writes(2_u64))
378	}
379	/// Storage: `Bounties::Bounties` (r:1 w:1)
380	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
381	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
382	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
383	fn award_bounty() -> Weight {
384		// Proof Size summary in bytes:
385		//  Measured:  `638`
386		//  Estimated: `3642`
387		// Minimum execution time: 20_416_000 picoseconds.
388		Weight::from_parts(21_226_000, 3642)
389			.saturating_add(RocksDbWeight::get().reads(2_u64))
390			.saturating_add(RocksDbWeight::get().writes(1_u64))
391	}
392	/// Storage: `Bounties::Bounties` (r:1 w:1)
393	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
394	/// Storage: `System::Account` (r:3 w:3)
395	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
396	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
397	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
398	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
399	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
400	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
401	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
402	/// Storage: `ChildBounties::ParentChildBounties` (r:0 w:1)
403	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
404	fn claim_bounty() -> Weight {
405		// Proof Size summary in bytes:
406		//  Measured:  `1036`
407		//  Estimated: `8799`
408		// Minimum execution time: 113_090_000 picoseconds.
409		Weight::from_parts(114_971_000, 8799)
410			.saturating_add(RocksDbWeight::get().reads(5_u64))
411			.saturating_add(RocksDbWeight::get().writes(8_u64))
412	}
413	/// Storage: `Bounties::Bounties` (r:1 w:1)
414	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
415	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
416	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
417	/// Storage: `System::Account` (r:1 w:1)
418	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
419	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
420	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
421	fn close_bounty_proposed() -> Weight {
422		// Proof Size summary in bytes:
423		//  Measured:  `682`
424		//  Estimated: `3642`
425		// Minimum execution time: 44_374_000 picoseconds.
426		Weight::from_parts(46_520_000, 3642)
427			.saturating_add(RocksDbWeight::get().reads(3_u64))
428			.saturating_add(RocksDbWeight::get().writes(3_u64))
429	}
430	/// Storage: `Bounties::Bounties` (r:1 w:1)
431	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
432	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
433	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
434	/// Storage: `System::Account` (r:2 w:2)
435	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
436	/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
437	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
438	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:0 w:1)
439	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
440	fn close_bounty_active() -> Weight {
441		// Proof Size summary in bytes:
442		//  Measured:  `952`
443		//  Estimated: `6196`
444		// Minimum execution time: 79_903_000 picoseconds.
445		Weight::from_parts(83_063_000, 6196)
446			.saturating_add(RocksDbWeight::get().reads(4_u64))
447			.saturating_add(RocksDbWeight::get().writes(6_u64))
448	}
449	/// Storage: `Bounties::Bounties` (r:1 w:1)
450	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
451	fn extend_bounty_expiry() -> Weight {
452		// Proof Size summary in bytes:
453		//  Measured:  `490`
454		//  Estimated: `3642`
455		// Minimum execution time: 16_302_000 picoseconds.
456		Weight::from_parts(16_897_000, 3642)
457			.saturating_add(RocksDbWeight::get().reads(1_u64))
458			.saturating_add(RocksDbWeight::get().writes(1_u64))
459	}
460	/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
461	/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
462	/// Storage: `Bounties::Bounties` (r:100 w:100)
463	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
464	/// Storage: `System::Account` (r:200 w:200)
465	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
466	/// The range of component `b` is `[0, 100]`.
467	fn spend_funds(b: u32, ) -> Weight {
468		// Proof Size summary in bytes:
469		//  Measured:  `71 + b * (298 ±0)`
470		//  Estimated: `1887 + b * (5206 ±0)`
471		// Minimum execution time: 3_377_000 picoseconds.
472		Weight::from_parts(3_447_000, 1887)
473			// Standard Error: 10_301
474			.saturating_add(Weight::from_parts(34_772_229, 0).saturating_mul(b.into()))
475			.saturating_add(RocksDbWeight::get().reads(1_u64))
476			.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))
477			.saturating_add(RocksDbWeight::get().writes(1_u64))
478			.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
479			.saturating_add(Weight::from_parts(0, 5206).saturating_mul(b.into()))
480	}
481	/// Storage: `Bounties::Bounties` (r:1 w:1)
482	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
483	/// Storage: `Bounties::BountyDescriptions` (r:1 w:0)
484	/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
485	/// Storage: `System::Account` (r:1 w:1)
486	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
487	fn poke_deposit() -> Weight {
488		// Proof Size summary in bytes:
489		//  Measured:  `839`
490		//  Estimated: `3779`
491		// Minimum execution time: 32_100_000 picoseconds.
492		Weight::from_parts(33_660_000, 3779)
493			.saturating_add(RocksDbWeight::get().reads(3_u64))
494			.saturating_add(RocksDbWeight::get().writes(2_u64))
495	}
496}