pallet_balances.rs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (C) 2020 Parity Technologies (UK) Ltd.
  2. // SPDX-License-Identifier: Apache-2.0
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc5
  15. use frame_support::weights::{constants::RocksDbWeight as DbWeight, Weight};
  16. pub struct WeightInfo;
  17. impl pallet_balances::WeightInfo for WeightInfo {
  18. fn transfer() -> Weight {
  19. (65949000 as Weight)
  20. .saturating_add(DbWeight::get().reads(1 as Weight))
  21. .saturating_add(DbWeight::get().writes(1 as Weight))
  22. }
  23. fn transfer_keep_alive() -> Weight {
  24. (46665000 as Weight)
  25. .saturating_add(DbWeight::get().reads(1 as Weight))
  26. .saturating_add(DbWeight::get().writes(1 as Weight))
  27. }
  28. fn set_balance_creating() -> Weight {
  29. (27086000 as Weight)
  30. .saturating_add(DbWeight::get().reads(1 as Weight))
  31. .saturating_add(DbWeight::get().writes(1 as Weight))
  32. }
  33. fn set_balance_killing() -> Weight {
  34. (33424000 as Weight)
  35. .saturating_add(DbWeight::get().reads(1 as Weight))
  36. .saturating_add(DbWeight::get().writes(1 as Weight))
  37. }
  38. fn force_transfer() -> Weight {
  39. (65343000 as Weight)
  40. .saturating_add(DbWeight::get().reads(2 as Weight))
  41. .saturating_add(DbWeight::get().writes(2 as Weight))
  42. }
  43. }