1
// Copyright 2025 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Moonbeam is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17

            
18
//! Autogenerated weights for `pallet_balances`
19
//!
20
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
21
//! DATE: 2026-02-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_balances
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_balances`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
54
	/// Storage: `System::Account` (r:1 w:1)
55
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
56
24
	fn transfer_allow_death() -> Weight {
57
		// Proof Size summary in bytes:
58
		//  Measured:  `39`
59
		//  Estimated: `3581`
60
		// Minimum execution time: 44_715_000 picoseconds.
61
24
		Weight::from_parts(45_842_000, 3581)
62
24
			.saturating_add(T::DbWeight::get().reads(1_u64))
63
24
			.saturating_add(T::DbWeight::get().writes(1_u64))
64
24
	}
65
	/// Storage: `System::Account` (r:1 w:1)
66
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
67
	fn transfer_keep_alive() -> Weight {
68
		// Proof Size summary in bytes:
69
		//  Measured:  `39`
70
		//  Estimated: `3581`
71
		// Minimum execution time: 43_043_000 picoseconds.
72
		Weight::from_parts(44_375_000, 3581)
73
			.saturating_add(T::DbWeight::get().reads(1_u64))
74
			.saturating_add(T::DbWeight::get().writes(1_u64))
75
	}
76
	/// Storage: `System::Account` (r:1 w:1)
77
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
78
	fn force_set_balance_creating() -> Weight {
79
		// Proof Size summary in bytes:
80
		//  Measured:  `39`
81
		//  Estimated: `3581`
82
		// Minimum execution time: 22_349_000 picoseconds.
83
		Weight::from_parts(23_213_000, 3581)
84
			.saturating_add(T::DbWeight::get().reads(1_u64))
85
			.saturating_add(T::DbWeight::get().writes(1_u64))
86
	}
87
	/// Storage: `System::Account` (r:1 w:1)
88
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
89
	fn force_set_balance_killing() -> Weight {
90
		// Proof Size summary in bytes:
91
		//  Measured:  `162`
92
		//  Estimated: `3581`
93
		// Minimum execution time: 24_217_000 picoseconds.
94
		Weight::from_parts(24_862_000, 3581)
95
			.saturating_add(T::DbWeight::get().reads(1_u64))
96
			.saturating_add(T::DbWeight::get().writes(1_u64))
97
	}
98
	/// Storage: `System::Account` (r:2 w:2)
99
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
100
	fn force_transfer() -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `201`
103
		//  Estimated: `6172`
104
		// Minimum execution time: 47_590_000 picoseconds.
105
		Weight::from_parts(48_685_000, 6172)
106
			.saturating_add(T::DbWeight::get().reads(2_u64))
107
			.saturating_add(T::DbWeight::get().writes(2_u64))
108
	}
109
	/// Storage: `System::Account` (r:1 w:1)
110
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
111
	fn transfer_all() -> Weight {
112
		// Proof Size summary in bytes:
113
		//  Measured:  `39`
114
		//  Estimated: `3581`
115
		// Minimum execution time: 53_617_000 picoseconds.
116
		Weight::from_parts(54_826_000, 3581)
117
			.saturating_add(T::DbWeight::get().reads(1_u64))
118
			.saturating_add(T::DbWeight::get().writes(1_u64))
119
	}
120
	/// Storage: `System::Account` (r:1 w:1)
121
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
122
	fn force_unreserve() -> Weight {
123
		// Proof Size summary in bytes:
124
		//  Measured:  `162`
125
		//  Estimated: `3581`
126
		// Minimum execution time: 19_901_000 picoseconds.
127
		Weight::from_parts(20_625_000, 3581)
128
			.saturating_add(T::DbWeight::get().reads(1_u64))
129
			.saturating_add(T::DbWeight::get().writes(1_u64))
130
	}
131
	/// Storage: `System::Account` (r:999 w:999)
132
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
133
	/// The range of component `u` is `[1, 1000]`.
134
	fn upgrade_accounts(u: u32, ) -> Weight {
135
		// Proof Size summary in bytes:
136
		//  Measured:  `678 + u * (123 ±0)`
137
		//  Estimated: `990 + u * (2591 ±0)`
138
		// Minimum execution time: 18_456_000 picoseconds.
139
		Weight::from_parts(18_875_000, 990)
140
			// Standard Error: 5_614
141
			.saturating_add(Weight::from_parts(15_018_478, 0).saturating_mul(u.into()))
142
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
143
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
144
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(u.into()))
145
	}
146
	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
147
	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
148
	fn force_adjust_total_issuance() -> Weight {
149
		// Proof Size summary in bytes:
150
		//  Measured:  `0`
151
		//  Estimated: `1501`
152
		// Minimum execution time: 6_607_000 picoseconds.
153
		Weight::from_parts(6_994_000, 1501)
154
			.saturating_add(T::DbWeight::get().reads(1_u64))
155
	}
156
	fn burn_allow_death() -> Weight {
157
		// Proof Size summary in bytes:
158
		//  Measured:  `0`
159
		//  Estimated: `0`
160
		// Minimum execution time: 26_861_000 picoseconds.
161
		Weight::from_parts(27_801_000, 0)
162
	}
163
	fn burn_keep_alive() -> Weight {
164
		// Proof Size summary in bytes:
165
		//  Measured:  `0`
166
		//  Estimated: `0`
167
		// Minimum execution time: 24_214_000 picoseconds.
168
		Weight::from_parts(24_570_000, 0)
169
	}
170
}