1234567891011121314151617181920212223242526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(clippy::unnecessary_cast)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;333435pub trait WeightInfo {36 fn create_collection() -> Weight;37 fn destroy_collection() -> Weight;38 fn add_to_allow_list() -> Weight;39 fn remove_from_allow_list() -> Weight;40 fn change_collection_owner() -> Weight;41 fn add_collection_admin() -> Weight;42 fn remove_collection_admin() -> Weight;43 fn set_collection_sponsor() -> Weight;44 fn confirm_sponsorship() -> Weight;45 fn remove_collection_sponsor() -> Weight;46 fn set_transfers_enabled_flag() -> Weight;47 fn set_collection_limits() -> Weight;48}495051pub struct SubstrateWeight<T>(PhantomData<T>);52impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {53 54 55 56 57 58 59 fn create_collection() -> Weight {60 (39_427_000 as Weight)61 .saturating_add(T::DbWeight::get().reads(4 as Weight))62 .saturating_add(T::DbWeight::get().writes(6 as Weight))63 }64 65 66 67 68 69 70 71 fn destroy_collection() -> Weight {72 (48_339_000 as Weight)73 .saturating_add(T::DbWeight::get().reads(3 as Weight))74 .saturating_add(T::DbWeight::get().writes(6 as Weight))75 }76 77 78 fn add_to_allow_list() -> Weight {79 (17_379_000 as Weight)80 .saturating_add(T::DbWeight::get().reads(1 as Weight))81 .saturating_add(T::DbWeight::get().writes(1 as Weight))82 }83 84 85 fn remove_from_allow_list() -> Weight {86 (17_490_000 as Weight)87 .saturating_add(T::DbWeight::get().reads(1 as Weight))88 .saturating_add(T::DbWeight::get().writes(1 as Weight))89 }90 91 fn change_collection_owner() -> Weight {92 (17_701_000 as Weight)93 .saturating_add(T::DbWeight::get().reads(1 as Weight))94 .saturating_add(T::DbWeight::get().writes(1 as Weight))95 }96 97 98 99 fn add_collection_admin() -> Weight {100 (23_301_000 as Weight)101 .saturating_add(T::DbWeight::get().reads(3 as Weight))102 .saturating_add(T::DbWeight::get().writes(2 as Weight))103 }104 105 106 107 fn remove_collection_admin() -> Weight {108 (24_859_000 as Weight)109 .saturating_add(T::DbWeight::get().reads(3 as Weight))110 .saturating_add(T::DbWeight::get().writes(2 as Weight))111 }112 113 fn set_collection_sponsor() -> Weight {114 (17_795_000 as Weight)115 .saturating_add(T::DbWeight::get().reads(1 as Weight))116 .saturating_add(T::DbWeight::get().writes(1 as Weight))117 }118 119 fn confirm_sponsorship() -> Weight {120 (17_297_000 as Weight)121 .saturating_add(T::DbWeight::get().reads(1 as Weight))122 .saturating_add(T::DbWeight::get().writes(1 as Weight))123 }124 125 fn remove_collection_sponsor() -> Weight {126 (17_079_000 as Weight)127 .saturating_add(T::DbWeight::get().reads(1 as Weight))128 .saturating_add(T::DbWeight::get().writes(1 as Weight))129 }130 131 fn set_transfers_enabled_flag() -> Weight {132 (9_734_000 as Weight)133 .saturating_add(T::DbWeight::get().reads(1 as Weight))134 .saturating_add(T::DbWeight::get().writes(1 as Weight))135 }136 137 fn set_collection_limits() -> Weight {138 (17_998_000 as Weight)139 .saturating_add(T::DbWeight::get().reads(1 as Weight))140 .saturating_add(T::DbWeight::get().writes(1 as Weight))141 }142}143144145impl WeightInfo for () {146 147 148 149 150 151 152 fn create_collection() -> Weight {153 (39_427_000 as Weight)154 .saturating_add(RocksDbWeight::get().reads(4 as Weight))155 .saturating_add(RocksDbWeight::get().writes(6 as Weight))156 }157 158 159 160 161 162 163 164 fn destroy_collection() -> Weight {165 (48_339_000 as Weight)166 .saturating_add(RocksDbWeight::get().reads(3 as Weight))167 .saturating_add(RocksDbWeight::get().writes(6 as Weight))168 }169 170 171 fn add_to_allow_list() -> Weight {172 (17_379_000 as Weight)173 .saturating_add(RocksDbWeight::get().reads(1 as Weight))174 .saturating_add(RocksDbWeight::get().writes(1 as Weight))175 }176 177 178 fn remove_from_allow_list() -> Weight {179 (17_490_000 as Weight)180 .saturating_add(RocksDbWeight::get().reads(1 as Weight))181 .saturating_add(RocksDbWeight::get().writes(1 as Weight))182 }183 184 fn change_collection_owner() -> Weight {185 (17_701_000 as Weight)186 .saturating_add(RocksDbWeight::get().reads(1 as Weight))187 .saturating_add(RocksDbWeight::get().writes(1 as Weight))188 }189 190 191 192 fn add_collection_admin() -> Weight {193 (23_301_000 as Weight)194 .saturating_add(RocksDbWeight::get().reads(3 as Weight))195 .saturating_add(RocksDbWeight::get().writes(2 as Weight))196 }197 198 199 200 fn remove_collection_admin() -> Weight {201 (24_859_000 as Weight)202 .saturating_add(RocksDbWeight::get().reads(3 as Weight))203 .saturating_add(RocksDbWeight::get().writes(2 as Weight))204 }205 206 fn set_collection_sponsor() -> Weight {207 (17_795_000 as Weight)208 .saturating_add(RocksDbWeight::get().reads(1 as Weight))209 .saturating_add(RocksDbWeight::get().writes(1 as Weight))210 }211 212 fn confirm_sponsorship() -> Weight {213 (17_297_000 as Weight)214 .saturating_add(RocksDbWeight::get().reads(1 as Weight))215 .saturating_add(RocksDbWeight::get().writes(1 as Weight))216 }217 218 fn remove_collection_sponsor() -> Weight {219 (17_079_000 as Weight)220 .saturating_add(RocksDbWeight::get().reads(1 as Weight))221 .saturating_add(RocksDbWeight::get().writes(1 as Weight))222 }223 224 fn set_transfers_enabled_flag() -> Weight {225 (9_734_000 as Weight)226 .saturating_add(RocksDbWeight::get().reads(1 as Weight))227 .saturating_add(RocksDbWeight::get().writes(1 as Weight))228 }229 230 fn set_collection_limits() -> Weight {231 (17_998_000 as Weight)232 .saturating_add(RocksDbWeight::get().reads(1 as Weight))233 .saturating_add(RocksDbWeight::get().writes(1 as Weight))234 }235}