diff --git a/pallets/proxy/src/weights.rs b/pallets/proxy/src/weights.rs index 89467c708c..52a10d758e 100644 --- a/pallets/proxy/src/weights.rs +++ b/pallets/proxy/src/weights.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_subtensor_proxy` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0 -//! DATE: 2026-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervmeorf1`, CPU: `AMD EPYC 7763 64-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.WaYr3ni8x5 +// --output=/tmp/tmp.Mq6XZsjjVN // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -66,10 +66,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `637 + p * (37 ±0)` // Estimated: `4254 + p * (37 ±0)` - // Minimum execution time: 26_550_000 picoseconds. - Weight::from_parts(27_859_277, 4254) - // Standard Error: 3_837 - .saturating_add(Weight::from_parts(81_447, 0).saturating_mul(p.into())) + // Minimum execution time: 26_409_000 picoseconds. + Weight::from_parts(27_497_849, 4254) + // Standard Error: 3_174 + .saturating_add(Weight::from_parts(75_758, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into())) @@ -92,12 +92,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `894 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615 + a * (68 ±0) + p * (37 ±0)` - // Minimum execution time: 52_348_000 picoseconds. - Weight::from_parts(53_307_899, 8615) - // Standard Error: 1_258 - .saturating_add(Weight::from_parts(211_995, 0).saturating_mul(a.into())) - // Standard Error: 5_039 - .saturating_add(Weight::from_parts(42_656, 0).saturating_mul(p.into())) + // Minimum execution time: 52_398_000 picoseconds. + Weight::from_parts(52_767_607, 8615) + // Standard Error: 1_794 + .saturating_add(Weight::from_parts(211_004, 0).saturating_mul(a.into())) + // Standard Error: 7_187 + .saturating_add(Weight::from_parts(52_109, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into())) @@ -113,12 +113,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_849_000 picoseconds. - Weight::from_parts(25_995_666, 8615) - // Standard Error: 1_164 - .saturating_add(Weight::from_parts(196_516, 0).saturating_mul(a.into())) - // Standard Error: 4_662 - .saturating_add(Weight::from_parts(22_615, 0).saturating_mul(p.into())) + // Minimum execution time: 25_096_000 picoseconds. + Weight::from_parts(25_762_328, 8615) + // Standard Error: 1_118 + .saturating_add(Weight::from_parts(190_188, 0).saturating_mul(a.into())) + // Standard Error: 4_478 + .saturating_add(Weight::from_parts(8_981, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -132,12 +132,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_578_000 picoseconds. - Weight::from_parts(26_125_974, 8615) - // Standard Error: 1_064 - .saturating_add(Weight::from_parts(196_744, 0).saturating_mul(a.into())) - // Standard Error: 4_264 - .saturating_add(Weight::from_parts(21_717, 0).saturating_mul(p.into())) + // Minimum execution time: 25_287_000 picoseconds. + Weight::from_parts(25_920_706, 8615) + // Standard Error: 1_389 + .saturating_add(Weight::from_parts(186_592, 0).saturating_mul(a.into())) + // Standard Error: 5_564 + .saturating_add(Weight::from_parts(14_450, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -153,12 +153,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `308 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615` - // Minimum execution time: 33_473_000 picoseconds. - Weight::from_parts(33_968_741, 8615) - // Standard Error: 2_554 - .saturating_add(Weight::from_parts(197_978, 0).saturating_mul(a.into())) - // Standard Error: 10_231 - .saturating_add(Weight::from_parts(19_756, 0).saturating_mul(p.into())) + // Minimum execution time: 32_942_000 picoseconds. + Weight::from_parts(33_610_546, 8615) + // Standard Error: 1_128 + .saturating_add(Weight::from_parts(180_422, 0).saturating_mul(a.into())) + // Standard Error: 4_521 + .saturating_add(Weight::from_parts(53_655, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -169,10 +169,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_276_000 picoseconds. - Weight::from_parts(25_273_817, 4254) - // Standard Error: 2_624 - .saturating_add(Weight::from_parts(78_807, 0).saturating_mul(p.into())) + // Minimum execution time: 24_145_000 picoseconds. + Weight::from_parts(24_922_268, 4254) + // Standard Error: 2_045 + .saturating_add(Weight::from_parts(100_980, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -185,10 +185,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_410_000 picoseconds. - Weight::from_parts(27_457_975, 4254) - // Standard Error: 2_749 - .saturating_add(Weight::from_parts(64_462, 0).saturating_mul(p.into())) + // Minimum execution time: 26_500_000 picoseconds. + Weight::from_parts(27_572_510, 4254) + // Standard Error: 2_610 + .saturating_add(Weight::from_parts(48_169, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -199,10 +199,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_919_000 picoseconds. - Weight::from_parts(27_060_574, 4254) - // Standard Error: 2_935 - .saturating_add(Weight::from_parts(46_263, 0).saturating_mul(p.into())) + // Minimum execution time: 25_837_000 picoseconds. + Weight::from_parts(26_802_905, 4254) + // Standard Error: 2_581 + .saturating_add(Weight::from_parts(36_803, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -213,10 +213,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 26_420_000 picoseconds. - Weight::from_parts(27_463_886, 4254) - // Standard Error: 2_930 - .saturating_add(Weight::from_parts(35_030, 0).saturating_mul(p.into())) + // Minimum execution time: 26_008_000 picoseconds. + Weight::from_parts(27_008_198, 4254) + // Standard Error: 2_529 + .saturating_add(Weight::from_parts(24_204, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -227,10 +227,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_977_000 picoseconds. - Weight::from_parts(26_122_998, 4254) - // Standard Error: 2_941 - .saturating_add(Weight::from_parts(52_778, 0).saturating_mul(p.into())) + // Minimum execution time: 25_127_000 picoseconds. + Weight::from_parts(25_979_822, 4254) + // Standard Error: 2_434 + .saturating_add(Weight::from_parts(48_076, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -244,8 +244,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 44_514_000 picoseconds. - Weight::from_parts(45_375_000, 8615) + // Minimum execution time: 44_111_000 picoseconds. + Weight::from_parts(45_074_000, 8615) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -258,10 +258,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_826_000 picoseconds. - Weight::from_parts(14_417_042, 4254) - // Standard Error: 2_091 - .saturating_add(Weight::from_parts(47_683, 0).saturating_mul(p.into())) + // Minimum execution time: 13_776_000 picoseconds. + Weight::from_parts(14_437_469, 4254) + // Standard Error: 1_697 + .saturating_add(Weight::from_parts(38_918, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -282,10 +282,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `637 + p * (37 ±0)` // Estimated: `4254 + p * (37 ±0)` - // Minimum execution time: 26_550_000 picoseconds. - Weight::from_parts(27_859_277, 4254) - // Standard Error: 3_837 - .saturating_add(Weight::from_parts(81_447, 0).saturating_mul(p.into())) + // Minimum execution time: 26_409_000 picoseconds. + Weight::from_parts(27_497_849, 4254) + // Standard Error: 3_174 + .saturating_add(Weight::from_parts(75_758, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into())) @@ -308,12 +308,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `894 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615 + a * (68 ±0) + p * (37 ±0)` - // Minimum execution time: 52_348_000 picoseconds. - Weight::from_parts(53_307_899, 8615) - // Standard Error: 1_258 - .saturating_add(Weight::from_parts(211_995, 0).saturating_mul(a.into())) - // Standard Error: 5_039 - .saturating_add(Weight::from_parts(42_656, 0).saturating_mul(p.into())) + // Minimum execution time: 52_398_000 picoseconds. + Weight::from_parts(52_767_607, 8615) + // Standard Error: 1_794 + .saturating_add(Weight::from_parts(211_004, 0).saturating_mul(a.into())) + // Standard Error: 7_187 + .saturating_add(Weight::from_parts(52_109, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into())) @@ -329,12 +329,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_849_000 picoseconds. - Weight::from_parts(25_995_666, 8615) - // Standard Error: 1_164 - .saturating_add(Weight::from_parts(196_516, 0).saturating_mul(a.into())) - // Standard Error: 4_662 - .saturating_add(Weight::from_parts(22_615, 0).saturating_mul(p.into())) + // Minimum execution time: 25_096_000 picoseconds. + Weight::from_parts(25_762_328, 8615) + // Standard Error: 1_118 + .saturating_add(Weight::from_parts(190_188, 0).saturating_mul(a.into())) + // Standard Error: 4_478 + .saturating_add(Weight::from_parts(8_981, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -348,12 +348,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_578_000 picoseconds. - Weight::from_parts(26_125_974, 8615) - // Standard Error: 1_064 - .saturating_add(Weight::from_parts(196_744, 0).saturating_mul(a.into())) - // Standard Error: 4_264 - .saturating_add(Weight::from_parts(21_717, 0).saturating_mul(p.into())) + // Minimum execution time: 25_287_000 picoseconds. + Weight::from_parts(25_920_706, 8615) + // Standard Error: 1_389 + .saturating_add(Weight::from_parts(186_592, 0).saturating_mul(a.into())) + // Standard Error: 5_564 + .saturating_add(Weight::from_parts(14_450, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -369,12 +369,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `308 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615` - // Minimum execution time: 33_473_000 picoseconds. - Weight::from_parts(33_968_741, 8615) - // Standard Error: 2_554 - .saturating_add(Weight::from_parts(197_978, 0).saturating_mul(a.into())) - // Standard Error: 10_231 - .saturating_add(Weight::from_parts(19_756, 0).saturating_mul(p.into())) + // Minimum execution time: 32_942_000 picoseconds. + Weight::from_parts(33_610_546, 8615) + // Standard Error: 1_128 + .saturating_add(Weight::from_parts(180_422, 0).saturating_mul(a.into())) + // Standard Error: 4_521 + .saturating_add(Weight::from_parts(53_655, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -385,10 +385,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_276_000 picoseconds. - Weight::from_parts(25_273_817, 4254) - // Standard Error: 2_624 - .saturating_add(Weight::from_parts(78_807, 0).saturating_mul(p.into())) + // Minimum execution time: 24_145_000 picoseconds. + Weight::from_parts(24_922_268, 4254) + // Standard Error: 2_045 + .saturating_add(Weight::from_parts(100_980, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -401,10 +401,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_410_000 picoseconds. - Weight::from_parts(27_457_975, 4254) - // Standard Error: 2_749 - .saturating_add(Weight::from_parts(64_462, 0).saturating_mul(p.into())) + // Minimum execution time: 26_500_000 picoseconds. + Weight::from_parts(27_572_510, 4254) + // Standard Error: 2_610 + .saturating_add(Weight::from_parts(48_169, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -415,10 +415,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_919_000 picoseconds. - Weight::from_parts(27_060_574, 4254) - // Standard Error: 2_935 - .saturating_add(Weight::from_parts(46_263, 0).saturating_mul(p.into())) + // Minimum execution time: 25_837_000 picoseconds. + Weight::from_parts(26_802_905, 4254) + // Standard Error: 2_581 + .saturating_add(Weight::from_parts(36_803, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -429,10 +429,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 26_420_000 picoseconds. - Weight::from_parts(27_463_886, 4254) - // Standard Error: 2_930 - .saturating_add(Weight::from_parts(35_030, 0).saturating_mul(p.into())) + // Minimum execution time: 26_008_000 picoseconds. + Weight::from_parts(27_008_198, 4254) + // Standard Error: 2_529 + .saturating_add(Weight::from_parts(24_204, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -443,10 +443,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_977_000 picoseconds. - Weight::from_parts(26_122_998, 4254) - // Standard Error: 2_941 - .saturating_add(Weight::from_parts(52_778, 0).saturating_mul(p.into())) + // Minimum execution time: 25_127_000 picoseconds. + Weight::from_parts(25_979_822, 4254) + // Standard Error: 2_434 + .saturating_add(Weight::from_parts(48_076, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -460,8 +460,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 44_514_000 picoseconds. - Weight::from_parts(45_375_000, 8615) + // Minimum execution time: 44_111_000 picoseconds. + Weight::from_parts(45_074_000, 8615) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -474,10 +474,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_826_000 picoseconds. - Weight::from_parts(14_417_042, 4254) - // Standard Error: 2_091 - .saturating_add(Weight::from_parts(47_683, 0).saturating_mul(p.into())) + // Minimum execution time: 13_776_000 picoseconds. + Weight::from_parts(14_437_469, 4254) + // Standard Error: 1_697 + .saturating_add(Weight::from_parts(38_918, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/pallets/subtensor/src/coinbase/run_coinbase.rs b/pallets/subtensor/src/coinbase/run_coinbase.rs index 922b3f5592..33c2692f35 100644 --- a/pallets/subtensor/src/coinbase/run_coinbase.rs +++ b/pallets/subtensor/src/coinbase/run_coinbase.rs @@ -107,7 +107,9 @@ impl Pallet { if let Ok(buy_swap_result_ok) = buy_swap_result { let bought_alpha: AlphaBalance = buy_swap_result_ok.amount_paid_out.into(); - Self::recycle_subnet_alpha(*netuid_i, bought_alpha); + SubnetProtocolAlpha::::mutate(*netuid_i, |total| { + *total = total.saturating_add(bought_alpha); + }); // Record actual excess TAO that entered pool. let actual_excess: TaoBalance = buy_swap_result_ok.amount_paid_in; diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 98ee408fec..093c2bae25 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -1380,6 +1380,10 @@ pub mod pallet { #[pallet::storage] pub type SubnetAlphaOut = StorageMap<_, Identity, NetUid, AlphaBalance, ValueQuery, DefaultZeroAlpha>; + /// --- MAP ( netuid ) --> protocol_alpha | Returns the protocol-owned alpha cached for the subnet. + #[pallet::storage] + pub type SubnetProtocolAlpha = + StorageMap<_, Identity, NetUid, AlphaBalance, ValueQuery, DefaultZeroAlpha>; /// --- MAP ( cold ) --> Vec | Maps coldkey to hotkeys that stake to it #[pallet::storage] diff --git a/pallets/subtensor/src/staking/remove_stake.rs b/pallets/subtensor/src/staking/remove_stake.rs index f2d07189a4..c3ed9e1b74 100644 --- a/pallets/subtensor/src/staking/remove_stake.rs +++ b/pallets/subtensor/src/staking/remove_stake.rs @@ -473,7 +473,11 @@ impl Pallet { // - track hotkeys to clear pool totals. let mut keys_to_remove: Vec<(T::AccountId, T::AccountId)> = Vec::new(); let mut stakers: Vec<(T::AccountId, T::AccountId, u128)> = Vec::new(); - let mut total_alpha_value_u128: u128 = 0; + let protocol_alpha_value_u128: u128 = SubnetAlphaIn::::get(netuid) + .saturating_add(SubnetProtocolAlpha::::get(netuid)) + .to_u64() as u128; + let mut total_alpha_value_u128: u128 = protocol_alpha_value_u128; + let mut protocol_tao_share = TaoBalance::ZERO; let hotkeys_in_subnet: Vec = TotalHotkeyAlpha::::iter_keys() .filter(|(_, this_netuid)| *this_netuid == netuid) @@ -517,16 +521,18 @@ impl Pallet { // 6) Pro‑rata distribution of the pot by α value (largest‑remainder), // **credited directly to each staker's COLDKEY free balance**. - if pot_u64 > 0 && total_alpha_value_u128 > 0 && !stakers.is_empty() { + if pot_u64 > 0 && total_alpha_value_u128 > 0 { struct Portion { _hot: A, cold: C, + is_protocol: bool, share: u64, // TAO to credit to coldkey balance rem: u128, // remainder for largest‑remainder method } let pot_u128: u128 = pot_u64 as u128; - let mut portions: Vec> = Vec::with_capacity(stakers.len()); + let mut portions: Vec> = + Vec::with_capacity(stakers.len().saturating_add(1)); let mut distributed: u128 = 0; for (hot, cold, alpha_val) in &stakers { @@ -539,6 +545,22 @@ impl Pallet { portions.push(Portion { _hot: hot.clone(), cold: cold.clone(), + is_protocol: false, + share: share_u64, + rem, + }); + } + + if protocol_alpha_value_u128 > 0 { + let prod: u128 = pot_u128.saturating_mul(protocol_alpha_value_u128); + let share_u128: u128 = prod.checked_div(total_alpha_value_u128).unwrap_or_default(); + let share_u64: u64 = share_u128.min(u128::from(u64::MAX)) as u64; + distributed = distributed.saturating_add(u128::from(share_u64)); + let rem: u128 = prod.checked_rem(total_alpha_value_u128).unwrap_or_default(); + portions.push(Portion { + _hot: owner_coldkey.clone(), + cold: owner_coldkey.clone(), + is_protocol: true, share: share_u64, rem, }); @@ -555,7 +577,9 @@ impl Pallet { // Credit each share directly to coldkey free balance. for p in portions { - if p.share > 0 { + if p.is_protocol { + protocol_tao_share = protocol_tao_share.saturating_add(p.share.into()); + } else if p.share > 0 { // Cannot fail the whole transaction if this transfer fails let _ = Self::transfer_tao_from_subnet(netuid, &p.cold, p.share.into()); } @@ -578,6 +602,7 @@ impl Pallet { SubnetAlphaIn::::remove(netuid); SubnetAlphaInProvided::::remove(netuid); SubnetAlphaOut::::remove(netuid); + SubnetProtocolAlpha::::remove(netuid); // Clear the locked balance on the subnet. Self::set_subnet_locked_balance(netuid, TaoBalance::ZERO); @@ -596,7 +621,8 @@ impl Pallet { && let Some(subnet_account) = Self::get_subnet_account_id(netuid) { // Transfer maximum transferrable up to refund to owner - let transferrable = Self::get_coldkey_balance(&subnet_account); + let transferrable = + Self::get_coldkey_balance(&subnet_account).saturating_sub(protocol_tao_share); // We do our best effort to refund owner to as full amount of refund as possible, but // we cannot fail new subnet registration, so the result is ignored. let _ = Self::transfer_tao(&subnet_account, &owner_coldkey, refund.min(transferrable)); diff --git a/pallets/subtensor/src/tests/coinbase.rs b/pallets/subtensor/src/tests/coinbase.rs index 0039889cab..937faff514 100644 --- a/pallets/subtensor/src/tests/coinbase.rs +++ b/pallets/subtensor/src/tests/coinbase.rs @@ -785,6 +785,13 @@ fn test_coinbase_alpha_issuance_with_cap_trigger_and_block_emission() { // Run coinbase SubtensorModule::run_coinbase(emission_credit); + // New behavior: chain-bought alpha is cached instead of recycled. + // The cached amount remains part of outstanding alpha supply. + assert!( + !SubnetProtocolAlpha::::get(netuid1).is_zero() + || !SubnetProtocolAlpha::::get(netuid2).is_zero() + ); + // Get the prices after the run_coinbase let price_1_after = ::SwapInterface::current_alpha_price(netuid1); let price_2_after = ::SwapInterface::current_alpha_price(netuid2); @@ -794,11 +801,13 @@ fn test_coinbase_alpha_issuance_with_cap_trigger_and_block_emission() { assert_eq!( u64::from(SubnetAlphaOut::::get(netuid2)), 21_000_000_000_000_000_u64 + .saturating_add(u64::from(SubnetProtocolAlpha::::get(netuid2))) ); assert!(u64::from(SubnetAlphaIn::::get(netuid2)) < initial_alpha); assert_eq!( u64::from(SubnetAlphaOut::::get(netuid2)), 21_000_000_000_000_000_u64 + .saturating_add(u64::from(SubnetProtocolAlpha::::get(netuid2))) ); assert!(price_1_after > price_1_before); diff --git a/pallets/subtensor/src/tests/networks.rs b/pallets/subtensor/src/tests/networks.rs index c4efc75825..50814b6b4d 100644 --- a/pallets/subtensor/src/tests/networks.rs +++ b/pallets/subtensor/src/tests/networks.rs @@ -110,6 +110,8 @@ fn dissolve_single_alpha_out_staker_gets_all_tao() { let owner_hot = U256::from(20); let net = add_dynamic_network(&owner_hot, &owner_cold); remove_owner_registration_stake(net); + SubnetAlphaIn::::insert(net, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(net, AlphaBalance::ZERO); // 2. Single α-out staker let (s_hot, s_cold) = (U256::from(100), U256::from(200)); @@ -146,6 +148,8 @@ fn dissolve_two_stakers_pro_rata_distribution() { let oh = U256::from(51); let net = add_dynamic_network(&oh, &oc); remove_owner_registration_stake(net); + SubnetAlphaIn::::insert(net, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(net, AlphaBalance::ZERO); // Mark this subnet as *legacy* so owner refund path is enabled. let reg_at = NetworkRegisteredAt::::get(net); @@ -366,6 +370,7 @@ fn dissolve_clears_all_per_subnet_storages() { // Items now REMOVED (not zeroed) by dissolution SubnetAlphaIn::::insert(net, AlphaBalance::from(2)); SubnetAlphaOut::::insert(net, AlphaBalance::from(3)); + SubnetProtocolAlpha::::insert(net, AlphaBalance::from(4)); // Prefix / double-map collections Keys::::insert(net, 0u16, owner_hot); @@ -521,6 +526,7 @@ fn dissolve_clears_all_per_subnet_storages() { // These are now REMOVED assert!(!SubnetAlphaIn::::contains_key(net)); assert!(!SubnetAlphaOut::::contains_key(net)); + assert!(!SubnetProtocolAlpha::::contains_key(net)); // Collections fully cleared assert!(Keys::::iter_prefix(net).next().is_none()); @@ -688,6 +694,8 @@ fn dissolve_rounding_remainder_distribution() { let oh = U256::from(62); let net = add_dynamic_network(&oh, &oc); remove_owner_registration_stake(net); + SubnetAlphaIn::::insert(net, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(net, AlphaBalance::ZERO); let (s1h, s1c) = (U256::from(63), U256::from(64)); let (s2h, s2c) = (U256::from(65), U256::from(66)); @@ -721,6 +729,40 @@ fn dissolve_rounding_remainder_distribution() { }); } +#[test] +fn dissolve_protocol_alpha_share_is_not_paid_to_users() { + new_test_ext(0).execute_with(|| { + let owner_cold = U256::from(610); + let owner_hot = U256::from(620); + let net = add_dynamic_network(&owner_hot, &owner_cold); + remove_owner_registration_stake(net); + SubtensorModule::set_subnet_locked_balance(net, TaoBalance::ZERO); + + // Protocol owns both alpha-in and cached chain-buy alpha on dereg. + SubnetAlphaIn::::insert(net, AlphaBalance::from(100u64)); + SubnetProtocolAlpha::::insert(net, AlphaBalance::from(50u64)); + + let staker_hot = U256::from(630); + let staker_cold = U256::from(640); + AlphaV2::::insert((staker_hot, staker_cold, net), sf_from_u64(50u64)); + TotalHotkeyAlpha::::insert(staker_hot, net, AlphaBalance::from(50u64)); + + let pot: u64 = 200; + SubnetTAO::::insert(net, TaoBalance::from(pot)); + + let staker_before = SubtensorModule::get_coldkey_balance(&staker_cold); + assert_ok!(SubtensorModule::do_dissolve_network(net)); + + // User gets 50 / (100 alpha-in + 50 cached protocol alpha + 50 user alpha) + // of the TAO pot. The protocol share is withheld from user/owner payout. + assert_eq!( + SubtensorModule::get_coldkey_balance(&staker_cold), + staker_before + 50.into() + ); + assert!(!SubnetProtocolAlpha::::contains_key(net)); + }); +} + #[test] fn destroy_alpha_out_multiple_stakers_pro_rata() { new_test_ext(0).execute_with(|| { @@ -763,6 +805,9 @@ fn destroy_alpha_out_multiple_stakers_pro_rata() { )); // 4. α-out snapshot + + SubnetAlphaIn::::insert(netuid, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(netuid, AlphaBalance::ZERO); let a1: u128 = sf_to_u128(&AlphaV2::::get((h1, c1, netuid))); let a2: u128 = sf_to_u128(&AlphaV2::::get((h2, c2, netuid))); let atotal = a1 + a2; @@ -896,6 +941,9 @@ fn destroy_alpha_out_many_stakers_complex_distribution() { let owner_before = SubtensorModule::get_coldkey_balance(&owner_cold); // ── 5) expected τ share per pallet algorithm (incl. remainder) ───── + + SubnetAlphaIn::::insert(netuid, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(netuid, AlphaBalance::ZERO); let mut share = [0u64; N]; let mut rem = [0u128; N]; let mut paid: u128 = 0; @@ -1967,6 +2015,11 @@ fn massive_dissolve_refund_and_reregistration_flow_is_lossless_and_cleans_state( // 5) Compute Hamilton-apportionment BASE shares per cold and total leftover // from the **pair-level** pre‑LP α snapshot; also count pairs per cold. // ──────────────────────────────────────────────────────────────────── + for &net in nets.iter() { + SubnetAlphaIn::::insert(net, AlphaBalance::ZERO); + SubnetProtocolAlpha::::insert(net, AlphaBalance::ZERO); + } + let mut base_share_cold: BTreeMap = cold_lps.iter().copied().map(|c| (c, 0_u64)).collect(); let mut pair_count_cold: BTreeMap = diff --git a/pallets/subtensor/src/weights.rs b/pallets/subtensor/src/weights.rs index 03fee56829..394b09308b 100644 --- a/pallets/subtensor/src/weights.rs +++ b/pallets/subtensor/src/weights.rs @@ -2,9 +2,9 @@ //! Autogenerated weights for `pallet_subtensor` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0 -//! DATE: 2026-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runnervmeorf1`, CPU: `AMD EPYC 9V74 80-Core Processor` +//! HOSTNAME: `runnervmeorf1`, CPU: `AMD EPYC 7763 64-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.4w3qE893EF +// --output=/tmp/tmp.Ny8nuUXP0L // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -196,8 +196,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1716` // Estimated: `13600` - // Minimum execution time: 356_574_000 picoseconds. - Weight::from_parts(362_715_000, 13600) + // Minimum execution time: 356_503_000 picoseconds. + Weight::from_parts(360_891_000, 13600) .saturating_add(T::DbWeight::get().reads(48_u64)) .saturating_add(T::DbWeight::get().writes(40_u64)) } @@ -239,8 +239,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `188792` // Estimated: `10327382` - // Minimum execution time: 15_273_144_000 picoseconds. - Weight::from_parts(15_604_439_000, 10327382) + // Minimum execution time: 14_860_332_000 picoseconds. + Weight::from_parts(15_044_960_000, 10327382) .saturating_add(T::DbWeight::get().reads(4112_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -308,8 +308,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2599` // Estimated: `8727` - // Minimum execution time: 435_739_000 picoseconds. - Weight::from_parts(439_516_000, 8727) + // Minimum execution time: 435_552_000 picoseconds. + Weight::from_parts(440_823_000, 8727) .saturating_add(T::DbWeight::get().reads(33_u64)) .saturating_add(T::DbWeight::get().writes(18_u64)) } @@ -323,8 +323,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `801` // Estimated: `6741` - // Minimum execution time: 33_603_000 picoseconds. - Weight::from_parts(34_534_000, 6741) + // Minimum execution time: 33_503_000 picoseconds. + Weight::from_parts(34_274_000, 6741) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -338,8 +338,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `774` // Estimated: `6714` - // Minimum execution time: 30_206_000 picoseconds. - Weight::from_parts(30_586_000, 6714) + // Minimum execution time: 29_716_000 picoseconds. + Weight::from_parts(30_667_000, 6714) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -441,8 +441,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1649` // Estimated: `13600` - // Minimum execution time: 349_238_000 picoseconds. - Weight::from_parts(369_776_000, 13600) + // Minimum execution time: 351_095_000 picoseconds. + Weight::from_parts(354_461_000, 13600) .saturating_add(T::DbWeight::get().reads(48_u64)) .saturating_add(T::DbWeight::get().writes(40_u64)) } @@ -494,8 +494,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1445` // Estimated: `4910` - // Minimum execution time: 99_725_000 picoseconds. - Weight::from_parts(101_969_000, 4910) + // Minimum execution time: 98_524_000 picoseconds. + Weight::from_parts(100_618_000, 4910) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -615,8 +615,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1459` // Estimated: `9874` - // Minimum execution time: 270_822_000 picoseconds. - Weight::from_parts(277_174_000, 9874) + // Minimum execution time: 267_429_000 picoseconds. + Weight::from_parts(274_472_000, 9874) .saturating_add(T::DbWeight::get().reads(42_u64)) .saturating_add(T::DbWeight::get().writes(48_u64)) } @@ -644,8 +644,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1071` // Estimated: `4536` - // Minimum execution time: 60_101_000 picoseconds. - Weight::from_parts(61_574_000, 4536) + // Minimum execution time: 58_739_000 picoseconds. + Weight::from_parts(60_563_000, 4536) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -689,8 +689,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1589` // Estimated: `7529` - // Minimum execution time: 106_016_000 picoseconds. - Weight::from_parts(108_191_000, 7529) + // Minimum execution time: 105_827_000 picoseconds. + Weight::from_parts(107_290_000, 7529) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -700,8 +700,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_320_000 picoseconds. - Weight::from_parts(5_671_000, 0) + // Minimum execution time: 5_380_000 picoseconds. + Weight::from_parts(5_670_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -718,8 +718,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `948` // Estimated: `4413` - // Minimum execution time: 46_306_000 picoseconds. - Weight::from_parts(46_907_000, 4413) + // Minimum execution time: 45_024_000 picoseconds. + Weight::from_parts(46_587_000, 4413) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -735,8 +735,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 44_943_000 picoseconds. - Weight::from_parts(46_216_000, 4159) + // Minimum execution time: 44_824_000 picoseconds. + Weight::from_parts(45_596_000, 4159) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -776,8 +776,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2175` // Estimated: `13065` - // Minimum execution time: 270_411_000 picoseconds. - Weight::from_parts(273_768_000, 13065) + // Minimum execution time: 268_210_000 picoseconds. + Weight::from_parts(270_696_000, 13065) .saturating_add(T::DbWeight::get().reads(33_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -821,8 +821,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2231` // Estimated: `13121` - // Minimum execution time: 294_487_000 picoseconds. - Weight::from_parts(300_989_000, 13121) + // Minimum execution time: 290_712_000 picoseconds. + Weight::from_parts(299_910_000, 13121) .saturating_add(T::DbWeight::get().reads(33_u64)) .saturating_add(T::DbWeight::get().writes(19_u64)) } @@ -834,8 +834,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_451_000 picoseconds. - Weight::from_parts(22_933_000, 4130) + // Minimum execution time: 22_162_000 picoseconds. + Weight::from_parts(22_903_000, 4130) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -847,8 +847,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_194_000 picoseconds. - Weight::from_parts(19_235_000, 4078) + // Minimum execution time: 18_444_000 picoseconds. + Weight::from_parts(18_815_000, 4078) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -860,8 +860,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_486_000 picoseconds. - Weight::from_parts(8_846_000, 0) + // Minimum execution time: 8_345_000 picoseconds. + Weight::from_parts(8_677_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -904,8 +904,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2094` // Estimated: `8034` - // Minimum execution time: 400_944_000 picoseconds. - Weight::from_parts(408_848_000, 8034) + // Minimum execution time: 392_202_000 picoseconds. + Weight::from_parts(397_642_000, 8034) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -939,8 +939,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 173_391_000 picoseconds. - Weight::from_parts(174_965_000, 5338) + // Minimum execution time: 172_963_000 picoseconds. + Weight::from_parts(175_527_000, 5338) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -972,8 +972,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 169_094_000 picoseconds. - Weight::from_parts(170_977_000, 5338) + // Minimum execution time: 168_845_000 picoseconds. + Weight::from_parts(171_861_000, 5338) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -993,8 +993,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_582_000 picoseconds. - Weight::from_parts(39_323_000, 4583) + // Minimum execution time: 38_081_000 picoseconds. + Weight::from_parts(39_023_000, 4583) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1062,8 +1062,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2599` // Estimated: `8727` - // Minimum execution time: 471_916_000 picoseconds. - Weight::from_parts(492_534_000, 8727) + // Minimum execution time: 467_993_000 picoseconds. + Weight::from_parts(487_089_000, 8727) .saturating_add(T::DbWeight::get().reads(33_u64)) .saturating_add(T::DbWeight::get().writes(18_u64)) } @@ -1099,8 +1099,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2027` // Estimated: `7967` - // Minimum execution time: 210_781_000 picoseconds. - Weight::from_parts(214_729_000, 7967) + // Minimum execution time: 208_610_000 picoseconds. + Weight::from_parts(212_657_000, 7967) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -1166,8 +1166,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 420_992_000 picoseconds. - Weight::from_parts(440_537_000, 10979) + // Minimum execution time: 421_314_000 picoseconds. + Weight::from_parts(441_181_000, 10979) .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -1231,8 +1231,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 454_935_000 picoseconds. - Weight::from_parts(476_194_000, 10979) + // Minimum execution time: 454_816_000 picoseconds. + Weight::from_parts(468_161_000, 10979) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -1302,8 +1302,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2978` // Estimated: `11393` - // Minimum execution time: 659_494_000 picoseconds. - Weight::from_parts(683_398_000, 11393) + // Minimum execution time: 659_747_000 picoseconds. + Weight::from_parts(683_000_000, 11393) .saturating_add(T::DbWeight::get().reads(49_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } @@ -1343,8 +1343,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2021` // Estimated: `7961` - // Minimum execution time: 240_076_000 picoseconds. - Weight::from_parts(243_041_000, 7961) + // Minimum execution time: 241_118_000 picoseconds. + Weight::from_parts(244_384_000, 7961) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -1414,8 +1414,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2824` // Estimated: `11239` - // Minimum execution time: 604_913_000 picoseconds. - Weight::from_parts(627_404_000, 11239) + // Minimum execution time: 602_340_000 picoseconds. + Weight::from_parts(625_023_000, 11239) .saturating_add(T::DbWeight::get().reads(49_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } @@ -1445,8 +1445,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1122` // Estimated: `4587` - // Minimum execution time: 124_180_000 picoseconds. - Weight::from_parts(126_024_000, 4587) + // Minimum execution time: 127_377_000 picoseconds. + Weight::from_parts(129_371_000, 4587) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1486,8 +1486,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1426` // Estimated: `7366` - // Minimum execution time: 99_064_000 picoseconds. - Weight::from_parts(100_797_000, 7366) + // Minimum execution time: 98_874_000 picoseconds. + Weight::from_parts(100_026_000, 7366) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1503,8 +1503,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `793` // Estimated: `4258` - // Minimum execution time: 27_892_000 picoseconds. - Weight::from_parts(29_104_000, 4258) + // Minimum execution time: 27_601_000 picoseconds. + Weight::from_parts(28_743_000, 4258) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1522,8 +1522,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `886` // Estimated: `4351` - // Minimum execution time: 34_955_000 picoseconds. - Weight::from_parts(35_636_000, 4351) + // Minimum execution time: 34_584_000 picoseconds. + Weight::from_parts(35_335_000, 4351) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1643,8 +1643,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1343` // Estimated: `9758` - // Minimum execution time: 265_694_000 picoseconds. - Weight::from_parts(271_955_000, 9758) + // Minimum execution time: 264_562_000 picoseconds. + Weight::from_parts(268_810_000, 9758) .saturating_add(T::DbWeight::get().reads(41_u64)) .saturating_add(T::DbWeight::get().writes(47_u64)) } @@ -1658,8 +1658,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `772` // Estimated: `6712` - // Minimum execution time: 33_513_000 picoseconds. - Weight::from_parts(34_363_000, 6712) + // Minimum execution time: 32_801_000 picoseconds. + Weight::from_parts(33_943_000, 6712) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1673,8 +1673,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `852` // Estimated: `6792` - // Minimum execution time: 30_677_000 picoseconds. - Weight::from_parts(32_190_000, 6792) + // Minimum execution time: 30_606_000 picoseconds. + Weight::from_parts(31_519_000, 6792) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1686,8 +1686,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_733_000 picoseconds. - Weight::from_parts(18_354_000, 4060) + // Minimum execution time: 17_562_000 picoseconds. + Weight::from_parts(18_053_000, 4060) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1761,8 +1761,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3026` // Estimated: `28766` - // Minimum execution time: 1_133_333_000 picoseconds. - Weight::from_parts(1_143_512_000, 28766) + // Minimum execution time: 1_134_802_000 picoseconds. + Weight::from_parts(1_139_961_000, 28766) .saturating_add(T::DbWeight::get().reads(166_u64)) .saturating_add(T::DbWeight::get().writes(95_u64)) } @@ -1776,8 +1776,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `745` // Estimated: `4210` - // Minimum execution time: 23_985_000 picoseconds. - Weight::from_parts(24_835_000, 4210) + // Minimum execution time: 23_493_000 picoseconds. + Weight::from_parts(24_255_000, 4210) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -1791,8 +1791,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `740` // Estimated: `9155` - // Minimum execution time: 26_810_000 picoseconds. - Weight::from_parts(27_371_000, 9155) + // Minimum execution time: 26_449_000 picoseconds. + Weight::from_parts(27_010_000, 9155) .saturating_add(T::DbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -1863,8 +1863,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2642` // Estimated: `11306` - // Minimum execution time: 562_454_000 picoseconds. - Weight::from_parts(571_821_000, 11306) + // Minimum execution time: 578_647_000 picoseconds. + Weight::from_parts(583_015_000, 11306) .saturating_add(T::DbWeight::get().reads(50_u64)) .saturating_add(T::DbWeight::get().writes(27_u64)) } @@ -1928,8 +1928,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 479_209_000 picoseconds. - Weight::from_parts(485_020_000, 10979) + // Minimum execution time: 479_833_000 picoseconds. + Weight::from_parts(502_786_000, 10979) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -2068,10 +2068,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1762 + k * (44 ±0)` // Estimated: `10183 + k * (2579 ±0)` - // Minimum execution time: 472_747_000 picoseconds. - Weight::from_parts(310_064_795, 10183) - // Standard Error: 49_391 - .saturating_add(Weight::from_parts(45_675_968, 0).saturating_mul(k.into())) + // Minimum execution time: 468_231_000 picoseconds. + Weight::from_parts(277_408_614, 10183) + // Standard Error: 26_474 + .saturating_add(Weight::from_parts(44_643_068, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(51_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes(53_u64)) @@ -2101,10 +2101,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1468 + k * (53 ±0)` // Estimated: `6148 + k * (2514 ±0)` - // Minimum execution time: 93_393_000 picoseconds. - Weight::from_parts(108_331_864, 6148) - // Standard Error: 6_240 - .saturating_add(Weight::from_parts(1_507_109, 0).saturating_mul(k.into())) + // Minimum execution time: 124_271_000 picoseconds. + Weight::from_parts(141_164_876, 6148) + // Standard Error: 8_240 + .saturating_add(Weight::from_parts(1_406_147, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes(7_u64)) @@ -2119,8 +2119,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 26_269_000 picoseconds. - Weight::from_parts(27_120_000, 9074) + // Minimum execution time: 26_268_000 picoseconds. + Weight::from_parts(27_521_000, 9074) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2148,8 +2148,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1070` // Estimated: `4535` - // Minimum execution time: 72_374_000 picoseconds. - Weight::from_parts(73_256_000, 4535) + // Minimum execution time: 71_282_000 picoseconds. + Weight::from_parts(72_975_000, 4535) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2165,8 +2165,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 32_811_000 picoseconds. - Weight::from_parts(33_332_000, 4274) + // Minimum execution time: 32_099_000 picoseconds. + Weight::from_parts(33_262_000, 4274) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2182,8 +2182,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `476` // Estimated: `3941` - // Minimum execution time: 17_442_000 picoseconds. - Weight::from_parts(18_325_000, 3941) + // Minimum execution time: 17_313_000 picoseconds. + Weight::from_parts(17_943_000, 3941) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2213,8 +2213,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1929` // Estimated: `7869` - // Minimum execution time: 132_877_000 picoseconds. - Weight::from_parts(134_610_000, 7869) + // Minimum execution time: 134_200_000 picoseconds. + Weight::from_parts(136_214_000, 7869) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2224,8 +2224,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_615_000 picoseconds. - Weight::from_parts(2_836_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_856_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -2234,8 +2234,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_220_000 picoseconds. - Weight::from_parts(5_911_000, 0) + // Minimum execution time: 5_249_000 picoseconds. + Weight::from_parts(5_751_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -2248,8 +2248,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `862` // Estimated: `4327` - // Minimum execution time: 25_918_000 picoseconds. - Weight::from_parts(26_880_000, 4327) + // Minimum execution time: 25_768_000 picoseconds. + Weight::from_parts(26_890_000, 4327) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2319,8 +2319,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2602` // Estimated: `8727` - // Minimum execution time: 593_733_000 picoseconds. - Weight::from_parts(617_797_000, 8727) + // Minimum execution time: 592_522_000 picoseconds. + Weight::from_parts(612_019_000, 8727) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(19_u64)) } @@ -2330,8 +2330,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_816_000 picoseconds. - Weight::from_parts(2_966_000, 0) + // Minimum execution time: 2_815_000 picoseconds. + Weight::from_parts(2_935_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::StakingHotkeys` (r:1 w:0) @@ -2354,8 +2354,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1463` // Estimated: `4928` - // Minimum execution time: 91_761_000 picoseconds. - Weight::from_parts(93_133_000, 4928) + // Minimum execution time: 90_288_000 picoseconds. + Weight::from_parts(91_720_000, 4928) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2371,8 +2371,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `978` // Estimated: `6918` - // Minimum execution time: 72_464_000 picoseconds. - Weight::from_parts(73_697_000, 6918) + // Minimum execution time: 70_882_000 picoseconds. + Weight::from_parts(71_814_000, 6918) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2390,8 +2390,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1302` // Estimated: `7242` - // Minimum execution time: 94_536_000 picoseconds. - Weight::from_parts(96_199_000, 7242) + // Minimum execution time: 92_212_000 picoseconds. + Weight::from_parts(93_754_000, 7242) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2497,8 +2497,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1716` // Estimated: `13600` - // Minimum execution time: 356_574_000 picoseconds. - Weight::from_parts(362_715_000, 13600) + // Minimum execution time: 356_503_000 picoseconds. + Weight::from_parts(360_891_000, 13600) .saturating_add(RocksDbWeight::get().reads(48_u64)) .saturating_add(RocksDbWeight::get().writes(40_u64)) } @@ -2540,8 +2540,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `188792` // Estimated: `10327382` - // Minimum execution time: 15_273_144_000 picoseconds. - Weight::from_parts(15_604_439_000, 10327382) + // Minimum execution time: 14_860_332_000 picoseconds. + Weight::from_parts(15_044_960_000, 10327382) .saturating_add(RocksDbWeight::get().reads(4112_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -2609,8 +2609,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2599` // Estimated: `8727` - // Minimum execution time: 435_739_000 picoseconds. - Weight::from_parts(439_516_000, 8727) + // Minimum execution time: 435_552_000 picoseconds. + Weight::from_parts(440_823_000, 8727) .saturating_add(RocksDbWeight::get().reads(33_u64)) .saturating_add(RocksDbWeight::get().writes(18_u64)) } @@ -2624,8 +2624,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `801` // Estimated: `6741` - // Minimum execution time: 33_603_000 picoseconds. - Weight::from_parts(34_534_000, 6741) + // Minimum execution time: 33_503_000 picoseconds. + Weight::from_parts(34_274_000, 6741) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2639,8 +2639,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `774` // Estimated: `6714` - // Minimum execution time: 30_206_000 picoseconds. - Weight::from_parts(30_586_000, 6714) + // Minimum execution time: 29_716_000 picoseconds. + Weight::from_parts(30_667_000, 6714) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2742,8 +2742,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1649` // Estimated: `13600` - // Minimum execution time: 349_238_000 picoseconds. - Weight::from_parts(369_776_000, 13600) + // Minimum execution time: 351_095_000 picoseconds. + Weight::from_parts(354_461_000, 13600) .saturating_add(RocksDbWeight::get().reads(48_u64)) .saturating_add(RocksDbWeight::get().writes(40_u64)) } @@ -2795,8 +2795,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1445` // Estimated: `4910` - // Minimum execution time: 99_725_000 picoseconds. - Weight::from_parts(101_969_000, 4910) + // Minimum execution time: 98_524_000 picoseconds. + Weight::from_parts(100_618_000, 4910) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -2916,8 +2916,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1459` // Estimated: `9874` - // Minimum execution time: 270_822_000 picoseconds. - Weight::from_parts(277_174_000, 9874) + // Minimum execution time: 267_429_000 picoseconds. + Weight::from_parts(274_472_000, 9874) .saturating_add(RocksDbWeight::get().reads(42_u64)) .saturating_add(RocksDbWeight::get().writes(48_u64)) } @@ -2945,8 +2945,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1071` // Estimated: `4536` - // Minimum execution time: 60_101_000 picoseconds. - Weight::from_parts(61_574_000, 4536) + // Minimum execution time: 58_739_000 picoseconds. + Weight::from_parts(60_563_000, 4536) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -2990,8 +2990,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1589` // Estimated: `7529` - // Minimum execution time: 106_016_000 picoseconds. - Weight::from_parts(108_191_000, 7529) + // Minimum execution time: 105_827_000 picoseconds. + Weight::from_parts(107_290_000, 7529) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3001,8 +3001,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_320_000 picoseconds. - Weight::from_parts(5_671_000, 0) + // Minimum execution time: 5_380_000 picoseconds. + Weight::from_parts(5_670_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -3019,8 +3019,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `948` // Estimated: `4413` - // Minimum execution time: 46_306_000 picoseconds. - Weight::from_parts(46_907_000, 4413) + // Minimum execution time: 45_024_000 picoseconds. + Weight::from_parts(46_587_000, 4413) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3036,8 +3036,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 44_943_000 picoseconds. - Weight::from_parts(46_216_000, 4159) + // Minimum execution time: 44_824_000 picoseconds. + Weight::from_parts(45_596_000, 4159) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -3077,8 +3077,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2175` // Estimated: `13065` - // Minimum execution time: 270_411_000 picoseconds. - Weight::from_parts(273_768_000, 13065) + // Minimum execution time: 268_210_000 picoseconds. + Weight::from_parts(270_696_000, 13065) .saturating_add(RocksDbWeight::get().reads(33_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -3122,8 +3122,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2231` // Estimated: `13121` - // Minimum execution time: 294_487_000 picoseconds. - Weight::from_parts(300_989_000, 13121) + // Minimum execution time: 290_712_000 picoseconds. + Weight::from_parts(299_910_000, 13121) .saturating_add(RocksDbWeight::get().reads(33_u64)) .saturating_add(RocksDbWeight::get().writes(19_u64)) } @@ -3135,8 +3135,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_451_000 picoseconds. - Weight::from_parts(22_933_000, 4130) + // Minimum execution time: 22_162_000 picoseconds. + Weight::from_parts(22_903_000, 4130) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3148,8 +3148,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_194_000 picoseconds. - Weight::from_parts(19_235_000, 4078) + // Minimum execution time: 18_444_000 picoseconds. + Weight::from_parts(18_815_000, 4078) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3161,8 +3161,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_486_000 picoseconds. - Weight::from_parts(8_846_000, 0) + // Minimum execution time: 8_345_000 picoseconds. + Weight::from_parts(8_677_000, 0) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -3205,8 +3205,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2094` // Estimated: `8034` - // Minimum execution time: 400_944_000 picoseconds. - Weight::from_parts(408_848_000, 8034) + // Minimum execution time: 392_202_000 picoseconds. + Weight::from_parts(397_642_000, 8034) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3240,8 +3240,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 173_391_000 picoseconds. - Weight::from_parts(174_965_000, 5338) + // Minimum execution time: 172_963_000 picoseconds. + Weight::from_parts(175_527_000, 5338) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3273,8 +3273,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 169_094_000 picoseconds. - Weight::from_parts(170_977_000, 5338) + // Minimum execution time: 168_845_000 picoseconds. + Weight::from_parts(171_861_000, 5338) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -3294,8 +3294,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_582_000 picoseconds. - Weight::from_parts(39_323_000, 4583) + // Minimum execution time: 38_081_000 picoseconds. + Weight::from_parts(39_023_000, 4583) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3363,8 +3363,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2599` // Estimated: `8727` - // Minimum execution time: 471_916_000 picoseconds. - Weight::from_parts(492_534_000, 8727) + // Minimum execution time: 467_993_000 picoseconds. + Weight::from_parts(487_089_000, 8727) .saturating_add(RocksDbWeight::get().reads(33_u64)) .saturating_add(RocksDbWeight::get().writes(18_u64)) } @@ -3400,8 +3400,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2027` // Estimated: `7967` - // Minimum execution time: 210_781_000 picoseconds. - Weight::from_parts(214_729_000, 7967) + // Minimum execution time: 208_610_000 picoseconds. + Weight::from_parts(212_657_000, 7967) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -3467,8 +3467,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 420_992_000 picoseconds. - Weight::from_parts(440_537_000, 10979) + // Minimum execution time: 421_314_000 picoseconds. + Weight::from_parts(441_181_000, 10979) .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -3532,8 +3532,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 454_935_000 picoseconds. - Weight::from_parts(476_194_000, 10979) + // Minimum execution time: 454_816_000 picoseconds. + Weight::from_parts(468_161_000, 10979) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -3603,8 +3603,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2978` // Estimated: `11393` - // Minimum execution time: 659_494_000 picoseconds. - Weight::from_parts(683_398_000, 11393) + // Minimum execution time: 659_747_000 picoseconds. + Weight::from_parts(683_000_000, 11393) .saturating_add(RocksDbWeight::get().reads(49_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } @@ -3644,8 +3644,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2021` // Estimated: `7961` - // Minimum execution time: 240_076_000 picoseconds. - Weight::from_parts(243_041_000, 7961) + // Minimum execution time: 241_118_000 picoseconds. + Weight::from_parts(244_384_000, 7961) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3715,8 +3715,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2824` // Estimated: `11239` - // Minimum execution time: 604_913_000 picoseconds. - Weight::from_parts(627_404_000, 11239) + // Minimum execution time: 602_340_000 picoseconds. + Weight::from_parts(625_023_000, 11239) .saturating_add(RocksDbWeight::get().reads(49_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } @@ -3746,8 +3746,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1122` // Estimated: `4587` - // Minimum execution time: 124_180_000 picoseconds. - Weight::from_parts(126_024_000, 4587) + // Minimum execution time: 127_377_000 picoseconds. + Weight::from_parts(129_371_000, 4587) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3787,8 +3787,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1426` // Estimated: `7366` - // Minimum execution time: 99_064_000 picoseconds. - Weight::from_parts(100_797_000, 7366) + // Minimum execution time: 98_874_000 picoseconds. + Weight::from_parts(100_026_000, 7366) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3804,8 +3804,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `793` // Estimated: `4258` - // Minimum execution time: 27_892_000 picoseconds. - Weight::from_parts(29_104_000, 4258) + // Minimum execution time: 27_601_000 picoseconds. + Weight::from_parts(28_743_000, 4258) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3823,8 +3823,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `886` // Estimated: `4351` - // Minimum execution time: 34_955_000 picoseconds. - Weight::from_parts(35_636_000, 4351) + // Minimum execution time: 34_584_000 picoseconds. + Weight::from_parts(35_335_000, 4351) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3944,8 +3944,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1343` // Estimated: `9758` - // Minimum execution time: 265_694_000 picoseconds. - Weight::from_parts(271_955_000, 9758) + // Minimum execution time: 264_562_000 picoseconds. + Weight::from_parts(268_810_000, 9758) .saturating_add(RocksDbWeight::get().reads(41_u64)) .saturating_add(RocksDbWeight::get().writes(47_u64)) } @@ -3959,8 +3959,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `772` // Estimated: `6712` - // Minimum execution time: 33_513_000 picoseconds. - Weight::from_parts(34_363_000, 6712) + // Minimum execution time: 32_801_000 picoseconds. + Weight::from_parts(33_943_000, 6712) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3974,8 +3974,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `852` // Estimated: `6792` - // Minimum execution time: 30_677_000 picoseconds. - Weight::from_parts(32_190_000, 6792) + // Minimum execution time: 30_606_000 picoseconds. + Weight::from_parts(31_519_000, 6792) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3987,8 +3987,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_733_000 picoseconds. - Weight::from_parts(18_354_000, 4060) + // Minimum execution time: 17_562_000 picoseconds. + Weight::from_parts(18_053_000, 4060) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4062,8 +4062,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3026` // Estimated: `28766` - // Minimum execution time: 1_133_333_000 picoseconds. - Weight::from_parts(1_143_512_000, 28766) + // Minimum execution time: 1_134_802_000 picoseconds. + Weight::from_parts(1_139_961_000, 28766) .saturating_add(RocksDbWeight::get().reads(166_u64)) .saturating_add(RocksDbWeight::get().writes(95_u64)) } @@ -4077,8 +4077,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `745` // Estimated: `4210` - // Minimum execution time: 23_985_000 picoseconds. - Weight::from_parts(24_835_000, 4210) + // Minimum execution time: 23_493_000 picoseconds. + Weight::from_parts(24_255_000, 4210) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -4092,8 +4092,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `740` // Estimated: `9155` - // Minimum execution time: 26_810_000 picoseconds. - Weight::from_parts(27_371_000, 9155) + // Minimum execution time: 26_449_000 picoseconds. + Weight::from_parts(27_010_000, 9155) .saturating_add(RocksDbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4164,8 +4164,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2642` // Estimated: `11306` - // Minimum execution time: 562_454_000 picoseconds. - Weight::from_parts(571_821_000, 11306) + // Minimum execution time: 578_647_000 picoseconds. + Weight::from_parts(583_015_000, 11306) .saturating_add(RocksDbWeight::get().reads(50_u64)) .saturating_add(RocksDbWeight::get().writes(27_u64)) } @@ -4229,8 +4229,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 479_209_000 picoseconds. - Weight::from_parts(485_020_000, 10979) + // Minimum execution time: 479_833_000 picoseconds. + Weight::from_parts(502_786_000, 10979) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -4369,10 +4369,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1762 + k * (44 ±0)` // Estimated: `10183 + k * (2579 ±0)` - // Minimum execution time: 472_747_000 picoseconds. - Weight::from_parts(310_064_795, 10183) - // Standard Error: 49_391 - .saturating_add(Weight::from_parts(45_675_968, 0).saturating_mul(k.into())) + // Minimum execution time: 468_231_000 picoseconds. + Weight::from_parts(277_408_614, 10183) + // Standard Error: 26_474 + .saturating_add(Weight::from_parts(44_643_068, 0).saturating_mul(k.into())) .saturating_add(RocksDbWeight::get().reads(51_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(k.into()))) .saturating_add(RocksDbWeight::get().writes(53_u64)) @@ -4402,10 +4402,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1468 + k * (53 ±0)` // Estimated: `6148 + k * (2514 ±0)` - // Minimum execution time: 93_393_000 picoseconds. - Weight::from_parts(108_331_864, 6148) - // Standard Error: 6_240 - .saturating_add(Weight::from_parts(1_507_109, 0).saturating_mul(k.into())) + // Minimum execution time: 124_271_000 picoseconds. + Weight::from_parts(141_164_876, 6148) + // Standard Error: 8_240 + .saturating_add(Weight::from_parts(1_406_147, 0).saturating_mul(k.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(RocksDbWeight::get().writes(7_u64)) @@ -4420,8 +4420,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 26_269_000 picoseconds. - Weight::from_parts(27_120_000, 9074) + // Minimum execution time: 26_268_000 picoseconds. + Weight::from_parts(27_521_000, 9074) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4449,8 +4449,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1070` // Estimated: `4535` - // Minimum execution time: 72_374_000 picoseconds. - Weight::from_parts(73_256_000, 4535) + // Minimum execution time: 71_282_000 picoseconds. + Weight::from_parts(72_975_000, 4535) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4466,8 +4466,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 32_811_000 picoseconds. - Weight::from_parts(33_332_000, 4274) + // Minimum execution time: 32_099_000 picoseconds. + Weight::from_parts(33_262_000, 4274) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4483,8 +4483,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `476` // Estimated: `3941` - // Minimum execution time: 17_442_000 picoseconds. - Weight::from_parts(18_325_000, 3941) + // Minimum execution time: 17_313_000 picoseconds. + Weight::from_parts(17_943_000, 3941) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4514,8 +4514,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1929` // Estimated: `7869` - // Minimum execution time: 132_877_000 picoseconds. - Weight::from_parts(134_610_000, 7869) + // Minimum execution time: 134_200_000 picoseconds. + Weight::from_parts(136_214_000, 7869) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4525,8 +4525,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_615_000 picoseconds. - Weight::from_parts(2_836_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_856_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -4535,8 +4535,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_220_000 picoseconds. - Weight::from_parts(5_911_000, 0) + // Minimum execution time: 5_249_000 picoseconds. + Weight::from_parts(5_751_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4549,8 +4549,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `862` // Estimated: `4327` - // Minimum execution time: 25_918_000 picoseconds. - Weight::from_parts(26_880_000, 4327) + // Minimum execution time: 25_768_000 picoseconds. + Weight::from_parts(26_890_000, 4327) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4620,8 +4620,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2602` // Estimated: `8727` - // Minimum execution time: 593_733_000 picoseconds. - Weight::from_parts(617_797_000, 8727) + // Minimum execution time: 592_522_000 picoseconds. + Weight::from_parts(612_019_000, 8727) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(19_u64)) } @@ -4631,8 +4631,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_816_000 picoseconds. - Weight::from_parts(2_966_000, 0) + // Minimum execution time: 2_815_000 picoseconds. + Weight::from_parts(2_935_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::StakingHotkeys` (r:1 w:0) @@ -4655,8 +4655,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1463` // Estimated: `4928` - // Minimum execution time: 91_761_000 picoseconds. - Weight::from_parts(93_133_000, 4928) + // Minimum execution time: 90_288_000 picoseconds. + Weight::from_parts(91_720_000, 4928) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4672,8 +4672,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `978` // Estimated: `6918` - // Minimum execution time: 72_464_000 picoseconds. - Weight::from_parts(73_697_000, 6918) + // Minimum execution time: 70_882_000 picoseconds. + Weight::from_parts(71_814_000, 6918) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4691,8 +4691,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1302` // Estimated: `7242` - // Minimum execution time: 94_536_000 picoseconds. - Weight::from_parts(96_199_000, 7242) + // Minimum execution time: 92_212_000 picoseconds. + Weight::from_parts(93_754_000, 7242) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } diff --git a/pallets/utility/src/weights.rs b/pallets/utility/src/weights.rs index 0b042493ce..b1722fe5ec 100644 --- a/pallets/utility/src/weights.rs +++ b/pallets/utility/src/weights.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_subtensor_utility` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0 -//! DATE: 2026-05-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervmeorf1`, CPU: `AMD EPYC 7763 64-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.LRxxLzrZiM +// --output=/tmp/tmp.dOccYF6VnR // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -57,10 +57,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_280_000 picoseconds. - Weight::from_parts(18_094_409, 3983) - // Standard Error: 2_019 - .saturating_add(Weight::from_parts(5_861_620, 0).saturating_mul(c.into())) + // Minimum execution time: 4_859_000 picoseconds. + Weight::from_parts(16_643_735, 3983) + // Standard Error: 2_503 + .saturating_add(Weight::from_parts(5_549_031, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -71,8 +71,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 15_590_000 picoseconds. - Weight::from_parts(16_231_000, 3983) + // Minimum execution time: 14_928_000 picoseconds. + Weight::from_parts(15_659_000, 3983) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -84,18 +84,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_169_000 picoseconds. - Weight::from_parts(6_561_860, 3983) - // Standard Error: 3_426 - .saturating_add(Weight::from_parts(6_086_426, 0).saturating_mul(c.into())) + // Minimum execution time: 5_059_000 picoseconds. + Weight::from_parts(16_277_090, 3983) + // Standard Error: 2_427 + .saturating_add(Weight::from_parts(5_775_592, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_064_000 picoseconds. - Weight::from_parts(7_354_000, 0) + // Minimum execution time: 6_893_000 picoseconds. + Weight::from_parts(7_264_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -106,18 +106,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_159_000 picoseconds. - Weight::from_parts(20_505_126, 3983) - // Standard Error: 2_329 - .saturating_add(Weight::from_parts(5_891_068, 0).saturating_mul(c.into())) + // Minimum execution time: 4_989_000 picoseconds. + Weight::from_parts(17_865_449, 3983) + // Standard Error: 2_035 + .saturating_add(Weight::from_parts(5_539_749, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } fn dispatch_as_fallible() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_993_000 picoseconds. - Weight::from_parts(7_474_000, 0) + // Minimum execution time: 6_863_000 picoseconds. + Weight::from_parts(7_304_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -127,8 +127,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 21_922_000 picoseconds. - Weight::from_parts(22_883_000, 3983) + // Minimum execution time: 21_600_000 picoseconds. + Weight::from_parts(22_061_000, 3983) .saturating_add(T::DbWeight::get().reads(2_u64)) } } @@ -144,10 +144,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_280_000 picoseconds. - Weight::from_parts(18_094_409, 3983) - // Standard Error: 2_019 - .saturating_add(Weight::from_parts(5_861_620, 0).saturating_mul(c.into())) + // Minimum execution time: 4_859_000 picoseconds. + Weight::from_parts(16_643_735, 3983) + // Standard Error: 2_503 + .saturating_add(Weight::from_parts(5_549_031, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -158,8 +158,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 15_590_000 picoseconds. - Weight::from_parts(16_231_000, 3983) + // Minimum execution time: 14_928_000 picoseconds. + Weight::from_parts(15_659_000, 3983) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -171,18 +171,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_169_000 picoseconds. - Weight::from_parts(6_561_860, 3983) - // Standard Error: 3_426 - .saturating_add(Weight::from_parts(6_086_426, 0).saturating_mul(c.into())) + // Minimum execution time: 5_059_000 picoseconds. + Weight::from_parts(16_277_090, 3983) + // Standard Error: 2_427 + .saturating_add(Weight::from_parts(5_775_592, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_064_000 picoseconds. - Weight::from_parts(7_354_000, 0) + // Minimum execution time: 6_893_000 picoseconds. + Weight::from_parts(7_264_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -193,18 +193,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 5_159_000 picoseconds. - Weight::from_parts(20_505_126, 3983) - // Standard Error: 2_329 - .saturating_add(Weight::from_parts(5_891_068, 0).saturating_mul(c.into())) + // Minimum execution time: 4_989_000 picoseconds. + Weight::from_parts(17_865_449, 3983) + // Standard Error: 2_035 + .saturating_add(Weight::from_parts(5_539_749, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } fn dispatch_as_fallible() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_993_000 picoseconds. - Weight::from_parts(7_474_000, 0) + // Minimum execution time: 6_863_000 picoseconds. + Weight::from_parts(7_304_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -214,8 +214,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 21_922_000 picoseconds. - Weight::from_parts(22_883_000, 3983) + // Minimum execution time: 21_600_000 picoseconds. + Weight::from_parts(22_061_000, 3983) .saturating_add(RocksDbWeight::get().reads(2_u64)) } }