|
| 1 | +// This file is part of Substrate. |
| 2 | + |
| 3 | +// Copyright (C) 2020 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 WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc6 |
| 19 | +
|
| 20 | +#![allow(unused_parens)] |
| 21 | +#![allow(unused_imports)] |
| 22 | + |
| 23 | +use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight}; |
| 24 | + |
| 25 | +pub struct WeightInfo; |
| 26 | +impl pallet_treasury::WeightInfo for WeightInfo { |
| 27 | + fn propose_spend() -> Weight { |
| 28 | + (79604000 as Weight) |
| 29 | + .saturating_add(DbWeight::get().reads(1 as Weight)) |
| 30 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 31 | + } |
| 32 | + fn reject_proposal() -> Weight { |
| 33 | + (61001000 as Weight) |
| 34 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 35 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 36 | + } |
| 37 | + fn approve_proposal() -> Weight { |
| 38 | + (17835000 as Weight) |
| 39 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 40 | + .saturating_add(DbWeight::get().writes(1 as Weight)) |
| 41 | + } |
| 42 | + fn report_awesome(r: u32, ) -> Weight { |
| 43 | + (101602000 as Weight) |
| 44 | + .saturating_add((2000 as Weight).saturating_mul(r as Weight)) |
| 45 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 46 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 47 | + } |
| 48 | + // WARNING! Some components were not used: ["r"] |
| 49 | + fn retract_tip() -> Weight { |
| 50 | + (82970000 as Weight) |
| 51 | + .saturating_add(DbWeight::get().reads(1 as Weight)) |
| 52 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 53 | + } |
| 54 | + fn tip_new(r: u32, t: u32, ) -> Weight { |
| 55 | + (63995000 as Weight) |
| 56 | + .saturating_add((2000 as Weight).saturating_mul(r as Weight)) |
| 57 | + .saturating_add((153000 as Weight).saturating_mul(t as Weight)) |
| 58 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 59 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 60 | + } |
| 61 | + fn tip(t: u32, ) -> Weight { |
| 62 | + (46765000 as Weight) |
| 63 | + .saturating_add((711000 as Weight).saturating_mul(t as Weight)) |
| 64 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 65 | + .saturating_add(DbWeight::get().writes(1 as Weight)) |
| 66 | + } |
| 67 | + fn close_tip(t: u32, ) -> Weight { |
| 68 | + (160874000 as Weight) |
| 69 | + .saturating_add((379000 as Weight).saturating_mul(t as Weight)) |
| 70 | + .saturating_add(DbWeight::get().reads(3 as Weight)) |
| 71 | + .saturating_add(DbWeight::get().writes(3 as Weight)) |
| 72 | + } |
| 73 | + fn propose_bounty(d: u32, ) -> Weight { |
| 74 | + (86198000 as Weight) |
| 75 | + .saturating_add((1000 as Weight).saturating_mul(d as Weight)) |
| 76 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 77 | + .saturating_add(DbWeight::get().writes(4 as Weight)) |
| 78 | + } |
| 79 | + fn approve_bounty() -> Weight { |
| 80 | + (23063000 as Weight) |
| 81 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 82 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 83 | + } |
| 84 | + fn propose_curator() -> Weight { |
| 85 | + (18890000 as Weight) |
| 86 | + .saturating_add(DbWeight::get().reads(1 as Weight)) |
| 87 | + .saturating_add(DbWeight::get().writes(1 as Weight)) |
| 88 | + } |
| 89 | + fn unassign_curator() -> Weight { |
| 90 | + (66768000 as Weight) |
| 91 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 92 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 93 | + } |
| 94 | + fn accept_curator() -> Weight { |
| 95 | + (69131000 as Weight) |
| 96 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 97 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 98 | + } |
| 99 | + fn award_bounty() -> Weight { |
| 100 | + (48184000 as Weight) |
| 101 | + .saturating_add(DbWeight::get().reads(1 as Weight)) |
| 102 | + .saturating_add(DbWeight::get().writes(1 as Weight)) |
| 103 | + } |
| 104 | + fn claim_bounty() -> Weight { |
| 105 | + (243104000 as Weight) |
| 106 | + .saturating_add(DbWeight::get().reads(4 as Weight)) |
| 107 | + .saturating_add(DbWeight::get().writes(5 as Weight)) |
| 108 | + } |
| 109 | + fn close_bounty_proposed() -> Weight { |
| 110 | + (65917000 as Weight) |
| 111 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 112 | + .saturating_add(DbWeight::get().writes(3 as Weight)) |
| 113 | + } |
| 114 | + fn close_bounty_active() -> Weight { |
| 115 | + (157232000 as Weight) |
| 116 | + .saturating_add(DbWeight::get().reads(3 as Weight)) |
| 117 | + .saturating_add(DbWeight::get().writes(4 as Weight)) |
| 118 | + } |
| 119 | + fn extend_bounty_expiry() -> Weight { |
| 120 | + (46216000 as Weight) |
| 121 | + .saturating_add(DbWeight::get().reads(1 as Weight)) |
| 122 | + .saturating_add(DbWeight::get().writes(1 as Weight)) |
| 123 | + } |
| 124 | + fn on_initialize_proposals(p: u32, ) -> Weight { |
| 125 | + (119765000 as Weight) |
| 126 | + .saturating_add((108368000 as Weight).saturating_mul(p as Weight)) |
| 127 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 128 | + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(p as Weight))) |
| 129 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 130 | + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(p as Weight))) |
| 131 | + } |
| 132 | + fn on_initialize_bounties(b: u32, ) -> Weight { |
| 133 | + (112536000 as Weight) |
| 134 | + .saturating_add((107132000 as Weight).saturating_mul(b as Weight)) |
| 135 | + .saturating_add(DbWeight::get().reads(2 as Weight)) |
| 136 | + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight))) |
| 137 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 138 | + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight))) |
| 139 | + } |
| 140 | +} |
0 commit comments