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-04, 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("starlight-dev"), DB CACHE: 1024
25

            
26
// Executed Command:
27
// target/release/tanssi-relay
28
// benchmark
29
// pallet
30
// --wasm-execution=compiled
31
// --pallet
32
// pallet_balances
33
// --extrinsic
34
// *
35
// --chain=starlight-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/starlight_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_423_000 picoseconds.
63
		Weight::from_parts(65_716_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: 50_839_000 picoseconds.
74
		Weight::from_parts(51_982_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_233_000 picoseconds.
85
		Weight::from_parts(29_590_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: 31_029_000 picoseconds.
96
		Weight::from_parts(31_676_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: 69_343_000 picoseconds.
107
		Weight::from_parts(70_019_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: 63_796_000 picoseconds.
118
		Weight::from_parts(64_763_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: 25_435_000 picoseconds.
129
		Weight::from_parts(25_896_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 * (135 ±0)`
139
		//  Estimated: `990 + u * (2603 ±0)`
140
		// Minimum execution time: 25_280_000 picoseconds.
141
		Weight::from_parts(25_585_000, 990)
142
			// Standard Error: 7_272
143
			.saturating_add(Weight::from_parts(17_943_450, 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
	fn force_adjust_total_issuance() -> Weight {
149
		// Proof Size summary in bytes:
150
		//  Measured:  `0`
151
		//  Estimated: `0`
152
		// Minimum execution time: 9_138_000 picoseconds.
153
		Weight::from_parts(9_383_000, 0)
154
	}
155
	fn burn_allow_death() -> Weight {
156
		// Proof Size summary in bytes:
157
		//  Measured:  `0`
158
		//  Estimated: `0`
159
		// Minimum execution time: 41_165_000 picoseconds.
160
		Weight::from_parts(42_193_000, 0)
161
	}
162
	fn burn_keep_alive() -> Weight {
163
		// Proof Size summary in bytes:
164
		//  Measured:  `0`
165
		//  Estimated: `0`
166
		// Minimum execution time: 28_520_000 picoseconds.
167
		Weight::from_parts(29_137_000, 0)
168
	}
169
}