1
// Copyright (C) Moondance Labs Ltd.
2
// This file is part of Tanssi.
3

            
4
// Tanssi 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
// Tanssi 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 Tanssi.  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 49.1.0
21
//! DATE: 2025-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22
//! WORST CASE MAP SIZE: `1000000`
23
//! HOSTNAME: `benchmark-1`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("flashbox_dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// ./target/release/tanssi-node
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_balances
33
// --extrinsic
34
// *
35
// --chain=flashbox_dev
36
// --steps
37
// 50
38
// --repeat
39
// 20
40
// --template=benchmarking/frame-weight-runtime-template.hbs
41
// --json-file
42
// raw.json
43
// --output
44
// tmp/flashbox_weights/pallet_balances.rs
45

            
46
#![cfg_attr(rustfmt, rustfmt_skip)]
47
#![allow(unused_parens)]
48
#![allow(unused_imports)]
49

            
50
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
51
use core::marker::PhantomData;
52

            
53
/// Weights for pallet_balances using the Substrate node and recommended hardware.
54
pub struct SubstrateWeight<T>(PhantomData<T>);
55
impl<T: frame_system::Config> pallet_balances::WeightInfo for SubstrateWeight<T> {
56
	/// Storage: `System::Account` (r:1 w:1)
57
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
58
	fn transfer_allow_death() -> Weight {
59
		// Proof Size summary in bytes:
60
		//  Measured:  `0`
61
		//  Estimated: `3593`
62
		// Minimum execution time: 64_671_000 picoseconds.
63
		Weight::from_parts(65_788_000, 3593)
64
			.saturating_add(T::DbWeight::get().reads(1_u64))
65
			.saturating_add(T::DbWeight::get().writes(1_u64))
66
	}
67
	/// Storage: `System::Account` (r:1 w:1)
68
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
69
	fn transfer_keep_alive() -> Weight {
70
		// Proof Size summary in bytes:
71
		//  Measured:  `0`
72
		//  Estimated: `3593`
73
		// Minimum execution time: 51_837_000 picoseconds.
74
		Weight::from_parts(52_514_000, 3593)
75
			.saturating_add(T::DbWeight::get().reads(1_u64))
76
			.saturating_add(T::DbWeight::get().writes(1_u64))
77
	}
78
	/// Storage: `System::Account` (r:1 w:1)
79
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
80
	fn force_set_balance_creating() -> Weight {
81
		// Proof Size summary in bytes:
82
		//  Measured:  `39`
83
		//  Estimated: `3593`
84
		// Minimum execution time: 29_352_000 picoseconds.
85
		Weight::from_parts(29_871_000, 3593)
86
			.saturating_add(T::DbWeight::get().reads(1_u64))
87
			.saturating_add(T::DbWeight::get().writes(1_u64))
88
	}
89
	/// Storage: `System::Account` (r:1 w:1)
90
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
91
	fn force_set_balance_killing() -> Weight {
92
		// Proof Size summary in bytes:
93
		//  Measured:  `174`
94
		//  Estimated: `3593`
95
		// Minimum execution time: 29_491_000 picoseconds.
96
		Weight::from_parts(30_014_000, 3593)
97
			.saturating_add(T::DbWeight::get().reads(1_u64))
98
			.saturating_add(T::DbWeight::get().writes(1_u64))
99
	}
100
	/// Storage: `System::Account` (r:2 w:2)
101
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
102
	fn force_transfer() -> Weight {
103
		// Proof Size summary in bytes:
104
		//  Measured:  `103`
105
		//  Estimated: `6196`
106
		// Minimum execution time: 68_731_000 picoseconds.
107
		Weight::from_parts(69_555_000, 6196)
108
			.saturating_add(T::DbWeight::get().reads(2_u64))
109
			.saturating_add(T::DbWeight::get().writes(2_u64))
110
	}
111
	/// Storage: `System::Account` (r:1 w:1)
112
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
113
	fn transfer_all() -> Weight {
114
		// Proof Size summary in bytes:
115
		//  Measured:  `0`
116
		//  Estimated: `3593`
117
		// Minimum execution time: 64_052_000 picoseconds.
118
		Weight::from_parts(64_712_000, 3593)
119
			.saturating_add(T::DbWeight::get().reads(1_u64))
120
			.saturating_add(T::DbWeight::get().writes(1_u64))
121
	}
122
	/// Storage: `System::Account` (r:1 w:1)
123
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
124
	fn force_unreserve() -> Weight {
125
		// Proof Size summary in bytes:
126
		//  Measured:  `174`
127
		//  Estimated: `3593`
128
		// Minimum execution time: 24_411_000 picoseconds.
129
		Weight::from_parts(25_056_000, 3593)
130
			.saturating_add(T::DbWeight::get().reads(1_u64))
131
			.saturating_add(T::DbWeight::get().writes(1_u64))
132
	}
133
	/// Storage: `System::Account` (r:999 w:999)
134
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
135
	/// The range of component `u` is `[1, 1000]`.
136
	fn upgrade_accounts(u: u32, ) -> Weight {
137
		// Proof Size summary in bytes:
138
		//  Measured:  `0 + u * (136 ±0)`
139
		//  Estimated: `990 + u * (2603 ±0)`
140
		// Minimum execution time: 23_523_000 picoseconds.
141
		Weight::from_parts(23_848_000, 990)
142
			// Standard Error: 7_342
143
			.saturating_add(Weight::from_parts(17_754_913, 0).saturating_mul(u.into()))
144
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
145
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
146
			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
147
	}
148
	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
149
	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
150
	fn force_adjust_total_issuance() -> Weight {
151
		// Proof Size summary in bytes:
152
		//  Measured:  `0`
153
		//  Estimated: `1501`
154
		// Minimum execution time: 8_802_000 picoseconds.
155
		Weight::from_parts(9_052_000, 1501)
156
			.saturating_add(T::DbWeight::get().reads(1_u64))
157
	}
158
	fn burn_allow_death() -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `0`
161
		//  Estimated: `0`
162
		// Minimum execution time: 40_992_000 picoseconds.
163
		Weight::from_parts(41_549_000, 0)
164
	}
165
	fn burn_keep_alive() -> Weight {
166
		// Proof Size summary in bytes:
167
		//  Measured:  `0`
168
		//  Estimated: `0`
169
		// Minimum execution time: 28_684_000 picoseconds.
170
		Weight::from_parts(29_059_000, 0)
171
	}
172
}