diff --git a/chain-extensions/src/mock.rs b/chain-extensions/src/mock.rs index 9c4b3bd4a6..0f7a182cf3 100644 --- a/chain-extensions/src/mock.rs +++ b/chain-extensions/src/mock.rs @@ -8,13 +8,13 @@ use core::num::NonZeroU64; use frame_support::dispatch::DispatchResult; use frame_support::pallet_prelude::Zero; -use frame_support::traits::{Contains, Everything, InherentBuilder, InsideBoth}; +use frame_support::traits::{Contains, Everything, InsideBoth}; use frame_support::weights::Weight; use frame_support::weights::constants::RocksDbWeight; use frame_support::{PalletId, derive_impl}; use frame_support::{assert_ok, parameter_types, traits::PrivilegeCmp}; use frame_system as system; -use frame_system::{EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase}; +use frame_system::{EnsureRoot, RawOrigin, limits}; use pallet_contracts::HoldReason as ContractsHoldReason; use pallet_subtensor::*; use pallet_subtensor_proxy as pallet_proxy; @@ -618,28 +618,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce.into(), (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/eco-tests/src/mock.rs b/eco-tests/src/mock.rs index 9ab48c12a7..55bdb624f7 100644 --- a/eco-tests/src/mock.rs +++ b/eco-tests/src/mock.rs @@ -8,13 +8,13 @@ use core::num::NonZeroU64; use frame_support::dispatch::DispatchResult; -use frame_support::traits::{Contains, Everything, InherentBuilder, InsideBoth, InstanceFilter}; +use frame_support::traits::{Contains, Everything, InsideBoth, InstanceFilter}; use frame_support::weights::Weight; use frame_support::weights::constants::RocksDbWeight; use frame_support::{PalletId, derive_impl}; use frame_support::{parameter_types, traits::PrivilegeCmp}; use frame_system as system; -use frame_system::{EnsureRoot, limits, offchain::CreateTransactionBase}; +use frame_system::{EnsureRoot, limits}; use pallet_subtensor::*; use pallet_subtensor_proxy as pallet_proxy; use pallet_subtensor_utility as pallet_utility; @@ -546,28 +546,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce.into(), (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/admin-utils/src/tests/mock.rs b/pallets/admin-utils/src/tests/mock.rs index 9faf870cbe..a44eb03c2b 100644 --- a/pallets/admin-utils/src/tests/mock.rs +++ b/pallets/admin-utils/src/tests/mock.rs @@ -4,9 +4,9 @@ use core::num::NonZeroU64; use frame_support::{ PalletId, assert_ok, derive_impl, parameter_types, - traits::{Everything, Hooks, InherentBuilder, PrivilegeCmp}, + traits::{Everything, Hooks, PrivilegeCmp}, }; -use frame_system::{self as system, offchain::CreateTransactionBase}; +use frame_system::{self as system}; use frame_system::{EnsureRoot, limits}; use sp_consensus_aura::sr25519::AuthorityId as AuraId; use sp_consensus_grandpa::AuthorityList as GrandpaAuthorityList; @@ -469,28 +469,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce, (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/commitments/src/mock.rs b/pallets/commitments/src/mock.rs index 3db0e8f312..10bbf7bbb1 100644 --- a/pallets/commitments/src/mock.rs +++ b/pallets/commitments/src/mock.rs @@ -3,9 +3,8 @@ use crate as pallet_commitments; use frame_support::{ derive_impl, pallet_prelude::{Get, TypeInfo}, - traits::{ConstU32, ConstU64, InherentBuilder}, + traits::{ConstU32, ConstU64}, }; -use frame_system::offchain::CreateTransactionBase; use sp_core::H256; use sp_runtime::{ BuildStorage, @@ -169,37 +168,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - // Create a dummy sr25519 signature from a raw byte array - let dummy_raw = [0u8; 64]; - let dummy_signature = sp_core::sr25519::Signature::from(dummy_raw); - let signature = test_crypto::Signature::from(dummy_signature); - Some(UncheckedExtrinsic::new_signed( - call, - nonce.into(), - signature, - (), - )) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/drand/src/lib.rs b/pallets/drand/src/lib.rs index 130f796a90..f9a281038a 100644 --- a/pallets/drand/src/lib.rs +++ b/pallets/drand/src/lib.rs @@ -43,8 +43,7 @@ use codec::Encode; use frame_support::{pallet_prelude::*, traits::Randomness}; use frame_system::{ offchain::{ - AppCrypto, CreateInherent, CreateSignedTransaction, SendUnsignedTransaction, SignedPayload, - Signer, SigningTypes, + AppCrypto, CreateBare, SendUnsignedTransaction, SignedPayload, Signer, SigningTypes, }, pallet_prelude::BlockNumberFor, }; @@ -162,9 +161,7 @@ pub mod pallet { pub struct Pallet(_); #[pallet::config] - pub trait Config: - CreateSignedTransaction> + CreateInherent> + frame_system::Config - { + pub trait Config: CreateBare> + SigningTypes + frame_system::Config { /// The identifier type for an offchain worker. type AuthorityId: AppCrypto; /// something that knows how to verify beacon pulses diff --git a/pallets/drand/src/mock.rs b/pallets/drand/src/mock.rs index 3be3a6a8d1..aa370292b1 100644 --- a/pallets/drand/src/mock.rs +++ b/pallets/drand/src/mock.rs @@ -3,14 +3,14 @@ use crate::verifier::*; use crate::*; use frame_support::{ derive_impl, parameter_types, - traits::{ConstU16, ConstU64, InherentBuilder}, + traits::{ConstU16, ConstU64}, }; use sp_core::{H256, sr25519::Signature}; use sp_keystore::{KeystoreExt, testing::MemoryKeystore}; use sp_runtime::{ BuildStorage, testing::TestXt, - traits::{BlakeTwo256, IdentifyAccount, IdentityLookup, Verify}, + traits::{BlakeTwo256, IdentityLookup, Verify}, }; type Block = frame_system::mocking::MockBlock; @@ -52,7 +52,6 @@ impl frame_system::Config for Test { } type Extrinsic = TestXt; -type AccountId = <::Signer as IdentifyAccount>::AccountId; impl frame_system::offchain::SigningTypes for Test { type Public = ::Signer; @@ -67,28 +66,12 @@ where type Extrinsic = Extrinsic; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: RuntimeCall) -> Self::Extrinsic { - Extrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: RuntimeCall, - _public: ::Signer, - _account: AccountId, - nonce: u64, - ) -> Option { - Some(Extrinsic::new_signed(call, nonce, (), ())) + Extrinsic::new_bare(call) } } diff --git a/pallets/proxy/src/weights.rs b/pallets/proxy/src/weights.rs index 93650912fe..5a6dbc2e01 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-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervmg397c`, 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.qXOiQkaCNn +// --output=/tmp/tmp.DlbMhzWLRw // --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_600_000 picoseconds. - Weight::from_parts(27_477_037, 4254) - // Standard Error: 3_197 - .saturating_add(Weight::from_parts(80_343, 0).saturating_mul(p.into())) + // Minimum execution time: 26_559_000 picoseconds. + Weight::from_parts(27_680_934, 4254) + // Standard Error: 2_986 + .saturating_add(Weight::from_parts(64_541, 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: 51_786_000 picoseconds. - Weight::from_parts(52_295_376, 8615) - // Standard Error: 1_674 - .saturating_add(Weight::from_parts(216_153, 0).saturating_mul(a.into())) - // Standard Error: 6_704 - .saturating_add(Weight::from_parts(34_685, 0).saturating_mul(p.into())) + // Minimum execution time: 51_977_000 picoseconds. + Weight::from_parts(52_467_548, 8615) + // Standard Error: 1_383 + .saturating_add(Weight::from_parts(212_455, 0).saturating_mul(a.into())) + // Standard Error: 5_542 + .saturating_add(Weight::from_parts(47_225, 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())) @@ -109,14 +109,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn remove_announcement(a: u32, _p: u32, ) -> Weight { + fn remove_announcement(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 24_796_000 picoseconds. - Weight::from_parts(25_411_516, 8615) - // Standard Error: 1_174 - .saturating_add(Weight::from_parts(204_601, 0).saturating_mul(a.into())) + // Minimum execution time: 25_347_000 picoseconds. + Weight::from_parts(25_603_577, 8615) + // Standard Error: 1_096 + .saturating_add(Weight::from_parts(183_703, 0).saturating_mul(a.into())) + // Standard Error: 4_389 + .saturating_add(Weight::from_parts(33_227, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -126,14 +128,16 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn reject_announcement(a: u32, _p: u32, ) -> Weight { + fn reject_announcement(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_307_000 picoseconds. - Weight::from_parts(25_315_553, 8615) - // Standard Error: 1_296 - .saturating_add(Weight::from_parts(211_641, 0).saturating_mul(a.into())) + // Minimum execution time: 25_228_000 picoseconds. + Weight::from_parts(25_906_815, 8615) + // Standard Error: 1_172 + .saturating_add(Weight::from_parts(189_736, 0).saturating_mul(a.into())) + // Standard Error: 4_696 + .saturating_add(Weight::from_parts(14_609, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -149,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: 32_200_000 picoseconds. - Weight::from_parts(32_309_059, 8615) - // Standard Error: 1_376 - .saturating_add(Weight::from_parts(204_544, 0).saturating_mul(a.into())) - // Standard Error: 5_511 - .saturating_add(Weight::from_parts(50_671, 0).saturating_mul(p.into())) + // Minimum execution time: 32_952_000 picoseconds. + Weight::from_parts(33_321_107, 8615) + // Standard Error: 1_216 + .saturating_add(Weight::from_parts(189_681, 0).saturating_mul(a.into())) + // Standard Error: 4_871 + .saturating_add(Weight::from_parts(47_172, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -165,10 +169,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 23_754_000 picoseconds. - Weight::from_parts(24_570_196, 4254) - // Standard Error: 2_399 - .saturating_add(Weight::from_parts(76_851, 0).saturating_mul(p.into())) + // Minimum execution time: 24_565_000 picoseconds. + Weight::from_parts(25_391_867, 4254) + // Standard Error: 2_640 + .saturating_add(Weight::from_parts(62_397, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -181,10 +185,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_447_000 picoseconds. - Weight::from_parts(26_347_745, 4254) - // Standard Error: 3_273 - .saturating_add(Weight::from_parts(71_881, 0).saturating_mul(p.into())) + // Minimum execution time: 26_260_000 picoseconds. + Weight::from_parts(27_316_105, 4254) + // Standard Error: 2_756 + .saturating_add(Weight::from_parts(59_599, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -195,10 +199,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_096_000 picoseconds. - Weight::from_parts(26_267_829, 4254) - // Standard Error: 2_981 - .saturating_add(Weight::from_parts(52_495, 0).saturating_mul(p.into())) + // Minimum execution time: 26_239_000 picoseconds. + Weight::from_parts(27_005_263, 4254) + // Standard Error: 2_490 + .saturating_add(Weight::from_parts(38_878, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -209,10 +213,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 25_438_000 picoseconds. - Weight::from_parts(26_407_271, 4254) - // Standard Error: 3_133 - .saturating_add(Weight::from_parts(42_843, 0).saturating_mul(p.into())) + // Minimum execution time: 26_279_000 picoseconds. + Weight::from_parts(27_231_269, 4254) + // Standard Error: 2_507 + .saturating_add(Weight::from_parts(23_212, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -223,10 +227,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_515_000 picoseconds. - Weight::from_parts(25_539_027, 4254) - // Standard Error: 2_827 - .saturating_add(Weight::from_parts(25_081, 0).saturating_mul(p.into())) + // Minimum execution time: 25_187_000 picoseconds. + Weight::from_parts(26_330_231, 4254) + // Standard Error: 2_328 + .saturating_add(Weight::from_parts(28_722, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -240,8 +244,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 43_011_000 picoseconds. - Weight::from_parts(43_712_000, 8615) + // Minimum execution time: 44_373_000 picoseconds. + Weight::from_parts(45_706_000, 8615) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -254,10 +258,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_636_000 picoseconds. - Weight::from_parts(14_306_938, 4254) - // Standard Error: 2_079 - .saturating_add(Weight::from_parts(36_366, 0).saturating_mul(p.into())) + // Minimum execution time: 13_705_000 picoseconds. + Weight::from_parts(14_342_910, 4254) + // Standard Error: 1_846 + .saturating_add(Weight::from_parts(39_291, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -278,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_600_000 picoseconds. - Weight::from_parts(27_477_037, 4254) - // Standard Error: 3_197 - .saturating_add(Weight::from_parts(80_343, 0).saturating_mul(p.into())) + // Minimum execution time: 26_559_000 picoseconds. + Weight::from_parts(27_680_934, 4254) + // Standard Error: 2_986 + .saturating_add(Weight::from_parts(64_541, 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())) @@ -304,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: 51_786_000 picoseconds. - Weight::from_parts(52_295_376, 8615) - // Standard Error: 1_674 - .saturating_add(Weight::from_parts(216_153, 0).saturating_mul(a.into())) - // Standard Error: 6_704 - .saturating_add(Weight::from_parts(34_685, 0).saturating_mul(p.into())) + // Minimum execution time: 51_977_000 picoseconds. + Weight::from_parts(52_467_548, 8615) + // Standard Error: 1_383 + .saturating_add(Weight::from_parts(212_455, 0).saturating_mul(a.into())) + // Standard Error: 5_542 + .saturating_add(Weight::from_parts(47_225, 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())) @@ -321,14 +325,16 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn remove_announcement(a: u32, _p: u32, ) -> Weight { + fn remove_announcement(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 24_796_000 picoseconds. - Weight::from_parts(25_411_516, 8615) - // Standard Error: 1_174 - .saturating_add(Weight::from_parts(204_601, 0).saturating_mul(a.into())) + // Minimum execution time: 25_347_000 picoseconds. + Weight::from_parts(25_603_577, 8615) + // Standard Error: 1_096 + .saturating_add(Weight::from_parts(183_703, 0).saturating_mul(a.into())) + // Standard Error: 4_389 + .saturating_add(Weight::from_parts(33_227, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -338,14 +344,16 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn reject_announcement(a: u32, _p: u32, ) -> Weight { + fn reject_announcement(a: u32, p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 25_307_000 picoseconds. - Weight::from_parts(25_315_553, 8615) - // Standard Error: 1_296 - .saturating_add(Weight::from_parts(211_641, 0).saturating_mul(a.into())) + // Minimum execution time: 25_228_000 picoseconds. + Weight::from_parts(25_906_815, 8615) + // Standard Error: 1_172 + .saturating_add(Weight::from_parts(189_736, 0).saturating_mul(a.into())) + // Standard Error: 4_696 + .saturating_add(Weight::from_parts(14_609, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -361,12 +369,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `308 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615` - // Minimum execution time: 32_200_000 picoseconds. - Weight::from_parts(32_309_059, 8615) - // Standard Error: 1_376 - .saturating_add(Weight::from_parts(204_544, 0).saturating_mul(a.into())) - // Standard Error: 5_511 - .saturating_add(Weight::from_parts(50_671, 0).saturating_mul(p.into())) + // Minimum execution time: 32_952_000 picoseconds. + Weight::from_parts(33_321_107, 8615) + // Standard Error: 1_216 + .saturating_add(Weight::from_parts(189_681, 0).saturating_mul(a.into())) + // Standard Error: 4_871 + .saturating_add(Weight::from_parts(47_172, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -377,10 +385,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 23_754_000 picoseconds. - Weight::from_parts(24_570_196, 4254) - // Standard Error: 2_399 - .saturating_add(Weight::from_parts(76_851, 0).saturating_mul(p.into())) + // Minimum execution time: 24_565_000 picoseconds. + Weight::from_parts(25_391_867, 4254) + // Standard Error: 2_640 + .saturating_add(Weight::from_parts(62_397, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -393,10 +401,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_447_000 picoseconds. - Weight::from_parts(26_347_745, 4254) - // Standard Error: 3_273 - .saturating_add(Weight::from_parts(71_881, 0).saturating_mul(p.into())) + // Minimum execution time: 26_260_000 picoseconds. + Weight::from_parts(27_316_105, 4254) + // Standard Error: 2_756 + .saturating_add(Weight::from_parts(59_599, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -407,10 +415,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_096_000 picoseconds. - Weight::from_parts(26_267_829, 4254) - // Standard Error: 2_981 - .saturating_add(Weight::from_parts(52_495, 0).saturating_mul(p.into())) + // Minimum execution time: 26_239_000 picoseconds. + Weight::from_parts(27_005_263, 4254) + // Standard Error: 2_490 + .saturating_add(Weight::from_parts(38_878, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -421,10 +429,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 25_438_000 picoseconds. - Weight::from_parts(26_407_271, 4254) - // Standard Error: 3_133 - .saturating_add(Weight::from_parts(42_843, 0).saturating_mul(p.into())) + // Minimum execution time: 26_279_000 picoseconds. + Weight::from_parts(27_231_269, 4254) + // Standard Error: 2_507 + .saturating_add(Weight::from_parts(23_212, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -435,10 +443,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_515_000 picoseconds. - Weight::from_parts(25_539_027, 4254) - // Standard Error: 2_827 - .saturating_add(Weight::from_parts(25_081, 0).saturating_mul(p.into())) + // Minimum execution time: 25_187_000 picoseconds. + Weight::from_parts(26_330_231, 4254) + // Standard Error: 2_328 + .saturating_add(Weight::from_parts(28_722, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -452,8 +460,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 43_011_000 picoseconds. - Weight::from_parts(43_712_000, 8615) + // Minimum execution time: 44_373_000 picoseconds. + Weight::from_parts(45_706_000, 8615) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -466,10 +474,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_636_000 picoseconds. - Weight::from_parts(14_306_938, 4254) - // Standard Error: 2_079 - .saturating_add(Weight::from_parts(36_366, 0).saturating_mul(p.into())) + // Minimum execution time: 13_705_000 picoseconds. + Weight::from_parts(14_342_910, 4254) + // Standard Error: 1_846 + .saturating_add(Weight::from_parts(39_291, 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/tests/mock.rs b/pallets/subtensor/src/tests/mock.rs index 8c553e3ee8..cff0b51958 100644 --- a/pallets/subtensor/src/tests/mock.rs +++ b/pallets/subtensor/src/tests/mock.rs @@ -9,7 +9,7 @@ use core::num::NonZeroU64; use crate::utils::rate_limiting::TransactionType; use crate::*; pub use frame_support::traits::Imbalance; -use frame_support::traits::{Contains, Everything, InherentBuilder, InsideBoth, InstanceFilter}; +use frame_support::traits::{Contains, Everything, InsideBoth, InstanceFilter}; use frame_support::weights::Weight; use frame_support::weights::constants::RocksDbWeight; use frame_support::{PalletId, derive_impl}; @@ -18,7 +18,7 @@ use frame_support::{ traits::{Hooks, PrivilegeCmp}, }; use frame_system as system; -use frame_system::{EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase}; +use frame_system::{EnsureRoot, RawOrigin, limits}; use pallet_subtensor_proxy as pallet_proxy; use pallet_subtensor_utility as pallet_utility; use share_pool::SafeFloat; @@ -562,28 +562,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce.into(), (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/subtensor/src/tests/mock_high_ed.rs b/pallets/subtensor/src/tests/mock_high_ed.rs index 0f0d818c38..22a28fa3d3 100644 --- a/pallets/subtensor/src/tests/mock_high_ed.rs +++ b/pallets/subtensor/src/tests/mock_high_ed.rs @@ -7,13 +7,13 @@ use core::num::NonZeroU64; use crate::*; -use frame_support::traits::{Everything, InherentBuilder, InstanceFilter}; +use frame_support::traits::{Everything, InstanceFilter}; use frame_support::weights::Weight; use frame_support::weights::constants::RocksDbWeight; use frame_support::{PalletId, derive_impl}; use frame_support::{parameter_types, traits::PrivilegeCmp}; use frame_system as system; -use frame_system::{EnsureRoot, limits, offchain::CreateTransactionBase}; +use frame_system::{EnsureRoot, limits}; use pallet_subtensor_proxy as pallet_proxy; use sp_core::{ConstU64, H256, U256, offchain::KeyTypeId}; use sp_runtime::Perbill; @@ -491,28 +491,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce.into(), (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/subtensor/src/weights.rs b/pallets/subtensor/src/weights.rs index 5090ea6b90..57fd4085a9 100644 --- a/pallets/subtensor/src/weights.rs +++ b/pallets/subtensor/src/weights.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_subtensor` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0 -//! DATE: 2026-05-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervmg397c`, 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.lgtaB2SecD +// --output=/tmp/tmp.tMNx8mRlyI // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -195,8 +195,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1716` // Estimated: `13600` - // Minimum execution time: 355_373_000 picoseconds. - Weight::from_parts(359_110_000, 13600) + // Minimum execution time: 369_218_000 picoseconds. + Weight::from_parts(373_687_000, 13600) .saturating_add(T::DbWeight::get().reads(48_u64)) .saturating_add(T::DbWeight::get().writes(40_u64)) } @@ -238,8 +238,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `188792` // Estimated: `10327382` - // Minimum execution time: 15_014_102_000 picoseconds. - Weight::from_parts(15_388_200_000, 10327382) + // Minimum execution time: 15_374_840_000 picoseconds. + Weight::from_parts(15_753_366_000, 10327382) .saturating_add(T::DbWeight::get().reads(4112_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -293,27 +293,33 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) /// Proof: `SubtensorModule::StakingOperationRateLimiter` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2640` + // Measured: `2633` // Estimated: `8727` - // Minimum execution time: 438_658_000 picoseconds. - Weight::from_parts(458_155_000, 8727) - .saturating_add(T::DbWeight::get().reads(35_u64)) + // Minimum execution time: 442_575_000 picoseconds. + Weight::from_parts(456_872_000, 8727) + .saturating_add(T::DbWeight::get().reads(38_u64)) .saturating_add(T::DbWeight::get().writes(18_u64)) } /// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0) @@ -326,8 +332,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `801` // Estimated: `6741` - // Minimum execution time: 33_773_000 picoseconds. - Weight::from_parts(34_705_000, 6741) + // Minimum execution time: 35_225_000 picoseconds. + Weight::from_parts(35_977_000, 6741) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -341,8 +347,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `774` // Estimated: `6714` - // Minimum execution time: 29_576_000 picoseconds. - Weight::from_parts(30_557_000, 6714) + // Minimum execution time: 30_597_000 picoseconds. + Weight::from_parts(31_408_000, 6714) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -444,8 +450,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1649` // Estimated: `13600` - // Minimum execution time: 365_763_000 picoseconds. - Weight::from_parts(368_327_000, 13600) + // Minimum execution time: 360_442_000 picoseconds. + Weight::from_parts(364_339_000, 13600) .saturating_add(T::DbWeight::get().reads(48_u64)) .saturating_add(T::DbWeight::get().writes(40_u64)) } @@ -497,8 +503,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1445` // Estimated: `4910` - // Minimum execution time: 99_325_000 picoseconds. - Weight::from_parts(101_459_000, 4910) + // Minimum execution time: 103_213_000 picoseconds. + Weight::from_parts(104_996_000, 4910) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -620,8 +626,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1459` // Estimated: `9874` - // Minimum execution time: 264_674_000 picoseconds. - Weight::from_parts(271_215_000, 9874) + // Minimum execution time: 280_454_000 picoseconds. + Weight::from_parts(284_300_000, 9874) .saturating_add(T::DbWeight::get().reads(42_u64)) .saturating_add(T::DbWeight::get().writes(49_u64)) } @@ -649,8 +655,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1071` // Estimated: `4536` - // Minimum execution time: 59_551_000 picoseconds. - Weight::from_parts(60_783_000, 4536) + // Minimum execution time: 60_883_000 picoseconds. + Weight::from_parts(62_777_000, 4536) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -694,8 +700,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1589` // Estimated: `7529` - // Minimum execution time: 106_459_000 picoseconds. - Weight::from_parts(107_931_000, 7529) + // Minimum execution time: 109_083_000 picoseconds. + Weight::from_parts(110_025_000, 7529) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -705,8 +711,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_310_000 picoseconds. - Weight::from_parts(5_631_000, 0) + // Minimum execution time: 5_641_000 picoseconds. + Weight::from_parts(5_981_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -727,8 +733,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `999` // Estimated: `4464` - // Minimum execution time: 52_067_000 picoseconds. - Weight::from_parts(52_989_000, 4464) + // Minimum execution time: 52_968_000 picoseconds. + Weight::from_parts(54_361_000, 4464) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -744,8 +750,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 44_454_000 picoseconds. - Weight::from_parts(45_224_000, 4159) + // Minimum execution time: 46_116_000 picoseconds. + Weight::from_parts(47_298_000, 4159) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -775,6 +781,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::OwnedHotkeys` (r:2 w:2) /// Proof: `SubtensorModule::OwnedHotkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) @@ -785,9 +795,9 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2175` // Estimated: `13065` - // Minimum execution time: 262_129_000 picoseconds. - Weight::from_parts(265_496_000, 13065) - .saturating_add(T::DbWeight::get().reads(33_u64)) + // Minimum execution time: 272_228_000 picoseconds. + Weight::from_parts(277_297_000, 13065) + .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } /// Storage: `System::Account` (r:2 w:2) @@ -818,6 +828,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::OwnedHotkeys` (r:2 w:2) /// Proof: `SubtensorModule::OwnedHotkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:0 w:1) @@ -830,9 +844,9 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2231` // Estimated: `13121` - // Minimum execution time: 286_364_000 picoseconds. - Weight::from_parts(288_679_000, 13121) - .saturating_add(T::DbWeight::get().reads(33_u64)) + // Minimum execution time: 298_096_000 picoseconds. + Weight::from_parts(300_521_000, 13121) + .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:1 w:0) @@ -843,8 +857,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_462_000 picoseconds. - Weight::from_parts(23_103_000, 4130) + // Minimum execution time: 22_522_000 picoseconds. + Weight::from_parts(23_223_000, 4130) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -856,8 +870,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_715_000 picoseconds. - Weight::from_parts(19_206_000, 4078) + // Minimum execution time: 18_885_000 picoseconds. + Weight::from_parts(19_396_000, 4078) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -869,8 +883,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_376_000 picoseconds. - Weight::from_parts(8_856_000, 0) + // Minimum execution time: 8_486_000 picoseconds. + Weight::from_parts(9_137_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -913,8 +927,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2094` // Estimated: `8034` - // Minimum execution time: 389_868_000 picoseconds. - Weight::from_parts(407_990_000, 8034) + // Minimum execution time: 401_840_000 picoseconds. + Weight::from_parts(414_123_000, 8034) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -948,8 +962,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 163_986_000 picoseconds. - Weight::from_parts(166_641_000, 5338) + // Minimum execution time: 169_756_000 picoseconds. + Weight::from_parts(172_702_000, 5338) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -981,8 +995,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 160_249_000 picoseconds. - Weight::from_parts(163_325_000, 5338) + // Minimum execution time: 166_060_000 picoseconds. + Weight::from_parts(167_362_000, 5338) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -1002,8 +1016,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_332_000 picoseconds. - Weight::from_parts(39_093_000, 4583) + // Minimum execution time: 39_483_000 picoseconds. + Weight::from_parts(40_485_000, 4583) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1057,27 +1071,33 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) /// Proof: `SubtensorModule::StakingOperationRateLimiter` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2640` + // Measured: `2633` // Estimated: `8727` - // Minimum execution time: 473_202_000 picoseconds. - Weight::from_parts(494_572_000, 8727) - .saturating_add(T::DbWeight::get().reads(35_u64)) + // Minimum execution time: 479_744_000 picoseconds. + Weight::from_parts(502_367_000, 8727) + .saturating_add(T::DbWeight::get().reads(38_u64)) .saturating_add(T::DbWeight::get().writes(18_u64)) } /// Storage: `SubtensorModule::Alpha` (r:2 w:0) @@ -1110,10 +1130,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn move_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2027` - // Estimated: `7967` - // Minimum execution time: 207_417_000 picoseconds. - Weight::from_parts(209_791_000, 7967) + // Measured: `2060` + // Estimated: `8000` + // Minimum execution time: 209_922_000 picoseconds. + Weight::from_parts(213_508_000, 8000) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -1179,8 +1199,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 412_629_000 picoseconds. - Weight::from_parts(419_953_000, 10979) + // Minimum execution time: 419_853_000 picoseconds. + Weight::from_parts(434_460_000, 10979) .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -1242,10 +1262,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2564` - // Estimated: `10979` - // Minimum execution time: 445_501_000 picoseconds. - Weight::from_parts(451_852_000, 10979) + // Measured: `2598` + // Estimated: `11013` + // Minimum execution time: 463_504_000 picoseconds. + Weight::from_parts(479_504_000, 11013) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -1303,25 +1323,31 @@ impl WeightInfo for SubstrateWeight { /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetTaoFlow` (r:2 w:2) /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `3012` - // Estimated: `11427` - // Minimum execution time: 653_168_000 picoseconds. - Weight::from_parts(675_150_000, 11427) - .saturating_add(T::DbWeight::get().reads(51_u64)) + // Measured: `3108` + // Estimated: `11523` + // Minimum execution time: 658_629_000 picoseconds. + Weight::from_parts(681_220_000, 11523) + .saturating_add(T::DbWeight::get().reads(54_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } /// Storage: `SubtensorModule::Alpha` (r:2 w:0) @@ -1358,10 +1384,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn transfer_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2021` - // Estimated: `7961` - // Minimum execution time: 236_792_000 picoseconds. - Weight::from_parts(239_797_000, 7961) + // Measured: `2054` + // Estimated: `7994` + // Minimum execution time: 240_729_000 picoseconds. + Weight::from_parts(243_544_000, 7994) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -1419,25 +1445,31 @@ impl WeightInfo for SubstrateWeight { /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetTaoFlow` (r:2 w:2) /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2858` - // Estimated: `11273` - // Minimum execution time: 597_504_000 picoseconds. - Weight::from_parts(618_804_000, 11273) - .saturating_add(T::DbWeight::get().reads(51_u64)) + // Measured: `2951` + // Estimated: `11366` + // Minimum execution time: 602_794_000 picoseconds. + Weight::from_parts(627_941_000, 11366) + .saturating_add(T::DbWeight::get().reads(54_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } /// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0) @@ -1466,8 +1498,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1122` // Estimated: `4587` - // Minimum execution time: 122_068_000 picoseconds. - Weight::from_parts(124_231_000, 4587) + // Minimum execution time: 126_576_000 picoseconds. + Weight::from_parts(127_989_000, 4587) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1507,8 +1539,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1426` // Estimated: `7366` - // Minimum execution time: 99_356_000 picoseconds. - Weight::from_parts(101_709_000, 7366) + // Minimum execution time: 102_481_000 picoseconds. + Weight::from_parts(104_475_000, 7366) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1524,8 +1556,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `793` // Estimated: `4258` - // Minimum execution time: 28_253_000 picoseconds. - Weight::from_parts(29_094_000, 4258) + // Minimum execution time: 28_753_000 picoseconds. + Weight::from_parts(29_616_000, 4258) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1543,8 +1575,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `886` // Estimated: `4351` - // Minimum execution time: 35_737_000 picoseconds. - Weight::from_parts(36_198_000, 4351) + // Minimum execution time: 35_707_000 picoseconds. + Weight::from_parts(36_969_000, 4351) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1666,8 +1698,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1343` // Estimated: `9758` - // Minimum execution time: 262_941_000 picoseconds. - Weight::from_parts(270_434_000, 9758) + // Minimum execution time: 273_209_000 picoseconds. + Weight::from_parts(285_032_000, 9758) .saturating_add(T::DbWeight::get().reads(41_u64)) .saturating_add(T::DbWeight::get().writes(48_u64)) } @@ -1681,8 +1713,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `772` // Estimated: `6712` - // Minimum execution time: 32_971_000 picoseconds. - Weight::from_parts(34_043_000, 6712) + // Minimum execution time: 34_214_000 picoseconds. + Weight::from_parts(35_196_000, 6712) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1696,8 +1728,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `852` // Estimated: `6792` - // Minimum execution time: 30_457_000 picoseconds. - Weight::from_parts(31_158_000, 6792) + // Minimum execution time: 31_338_000 picoseconds. + Weight::from_parts(32_871_000, 6792) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1709,8 +1741,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_673_000 picoseconds. - Weight::from_parts(18_244_000, 4060) + // Minimum execution time: 17_924_000 picoseconds. + Weight::from_parts(18_574_000, 4060) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1734,6 +1766,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::AlphaV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::NetworksAdded` (r:6 w:0) /// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:5 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::HotkeyLock` (r:5 w:0) /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:5 w:0) @@ -1748,8 +1782,6 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::PendingChildKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::AutoStakeDestinationColdkeys` (r:5 w:0) /// Proof: `SubtensorModule::AutoStakeDestinationColdkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:5 w:0) - /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::TotalHotkeyAlphaLastEpoch` (r:10 w:5) /// Proof: `SubtensorModule::TotalHotkeyAlphaLastEpoch` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::AlphaDividendsPerSubnet` (r:10 w:10) @@ -1786,8 +1818,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3026` // Estimated: `28766` - // Minimum execution time: 1_114_799_000 picoseconds. - Weight::from_parts(1_123_425_000, 28766) + // Minimum execution time: 1_151_958_000 picoseconds. + Weight::from_parts(1_167_136_000, 28766) .saturating_add(T::DbWeight::get().reads(171_u64)) .saturating_add(T::DbWeight::get().writes(95_u64)) } @@ -1801,8 +1833,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `745` // Estimated: `4210` - // Minimum execution time: 23_865_000 picoseconds. - Weight::from_parts(24_475_000, 4210) + // Minimum execution time: 24_286_000 picoseconds. + Weight::from_parts(25_177_000, 4210) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -1816,8 +1848,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `740` // Estimated: `9155` - // Minimum execution time: 26_870_000 picoseconds. - Weight::from_parts(27_361_000, 9155) + // Minimum execution time: 27_280_000 picoseconds. + Weight::from_parts(28_302_000, 9155) .saturating_add(T::DbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -1888,8 +1920,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2642` // Estimated: `11306` - // Minimum execution time: 546_189_000 picoseconds. - Weight::from_parts(551_489_000, 11306) + // Minimum execution time: 565_275_000 picoseconds. + Weight::from_parts(586_494_000, 11306) .saturating_add(T::DbWeight::get().reads(50_u64)) .saturating_add(T::DbWeight::get().writes(27_u64)) } @@ -1951,10 +1983,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_stake_full_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2564` - // Estimated: `10979` - // Minimum execution time: 467_822_000 picoseconds. - Weight::from_parts(478_552_000, 10979) + // Measured: `2598` + // Estimated: `11013` + // Minimum execution time: 482_931_000 picoseconds. + Weight::from_parts(489_493_000, 11013) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } @@ -2095,10 +2127,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1762 + k * (44 ±0)` // Estimated: `10183 + k * (2579 ±0)` - // Minimum execution time: 460_900_000 picoseconds. - Weight::from_parts(284_422_033, 10183) - // Standard Error: 28_051 - .saturating_add(Weight::from_parts(43_690_535, 0).saturating_mul(k.into())) + // Minimum execution time: 483_121_000 picoseconds. + Weight::from_parts(303_628_102, 10183) + // Standard Error: 28_661 + .saturating_add(Weight::from_parts(47_109_087, 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(54_u64)) @@ -2128,10 +2160,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1468 + k * (53 ±0)` // Estimated: `6148 + k * (2514 ±0)` - // Minimum execution time: 91_781_000 picoseconds. - Weight::from_parts(72_937_060, 6148) - // Standard Error: 7_499 - .saturating_add(Weight::from_parts(1_672_052, 0).saturating_mul(k.into())) + // Minimum execution time: 95_809_000 picoseconds. + Weight::from_parts(88_862_838, 6148) + // Standard Error: 8_640 + .saturating_add(Weight::from_parts(1_592_244, 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)) @@ -2146,8 +2178,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 27_120_000 picoseconds. - Weight::from_parts(28_123_000, 9074) + // Minimum execution time: 27_732_000 picoseconds. + Weight::from_parts(28_974_000, 9074) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2175,8 +2207,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1070` // Estimated: `4535` - // Minimum execution time: 74_078_000 picoseconds. - Weight::from_parts(74_980_000, 4535) + // Minimum execution time: 73_798_000 picoseconds. + Weight::from_parts(74_399_000, 4535) .saturating_add(T::DbWeight::get().reads(10_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2192,8 +2224,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 33_022_000 picoseconds. - Weight::from_parts(33_913_000, 4274) + // Minimum execution time: 33_182_000 picoseconds. + Weight::from_parts(34_484_000, 4274) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2210,7 +2242,7 @@ impl WeightInfo for SubstrateWeight { // Measured: `476` // Estimated: `3941` // Minimum execution time: 17_613_000 picoseconds. - Weight::from_parts(18_094_000, 3941) + Weight::from_parts(18_335_000, 3941) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2240,8 +2272,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1929` // Estimated: `7869` - // Minimum execution time: 134_861_000 picoseconds. - Weight::from_parts(136_855_000, 7869) + // Minimum execution time: 136_926_000 picoseconds. + Weight::from_parts(138_438_000, 7869) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2251,8 +2283,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_685_000 picoseconds. - Weight::from_parts(3_006_000, 0) + // Minimum execution time: 2_885_000 picoseconds. + Weight::from_parts(3_005_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -2261,8 +2293,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_390_000 picoseconds. - Weight::from_parts(6_001_000, 0) + // Minimum execution time: 5_280_000 picoseconds. + Weight::from_parts(5_731_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -2275,8 +2307,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `862` // Estimated: `4327` - // Minimum execution time: 26_600_000 picoseconds. - Weight::from_parts(27_432_000, 4327) + // Minimum execution time: 26_509_000 picoseconds. + Weight::from_parts(27_372_000, 4327) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2330,16 +2362,22 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) - /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `AlphaAssets::AlphaBurned` (r:1 w:1) /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) @@ -2348,12 +2386,12 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake_burn() -> Weight { // Proof Size summary in bytes: - // Measured: `2570` + // Measured: `2636` // Estimated: `8727` - // Minimum execution time: 565_736_000 picoseconds. - Weight::from_parts(586_314_000, 8727) - .saturating_add(T::DbWeight::get().reads(36_u64)) - .saturating_add(T::DbWeight::get().writes(18_u64)) + // Minimum execution time: 595_914_000 picoseconds. + Weight::from_parts(620_048_000, 8727) + .saturating_add(T::DbWeight::get().reads(39_u64)) + .saturating_add(T::DbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::PendingChildKeyCooldown` (r:0 w:1) /// Proof: `SubtensorModule::PendingChildKeyCooldown` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -2361,8 +2399,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_735_000 picoseconds. - Weight::from_parts(3_056_000, 0) + // Minimum execution time: 2_976_000 picoseconds. + Weight::from_parts(3_096_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -2379,44 +2417,60 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::TotalHotkeyShares` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::TotalHotkeySharesV2` (r:1 w:0) /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::Lock` (r:1 w:1) + /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn lock_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `1651` - // Estimated: `5116` - // Minimum execution time: 95_959_000 picoseconds. - Weight::from_parts(98_204_000, 5116) - .saturating_add(T::DbWeight::get().reads(11_u64)) + // Measured: `1644` + // Estimated: `7584` + // Minimum execution time: 111_458_000 picoseconds. + Weight::from_parts(114_223_000, 7584) + .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::Owner` (r:2 w:0) /// Proof: `SubtensorModule::Owner` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:2) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:2 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:2 w:2) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:2 w:2) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn move_lock() -> Weight { // Proof Size summary in bytes: // Measured: `1366` // Estimated: `7306` - // Minimum execution time: 109_825_000 picoseconds. - Weight::from_parts(111_929_000, 7306) - .saturating_add(T::DbWeight::get().reads(10_u64)) + // Minimum execution time: 142_055_000 picoseconds. + Weight::from_parts(144_460_000, 7306) + .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } } @@ -2521,8 +2575,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1716` // Estimated: `13600` - // Minimum execution time: 355_373_000 picoseconds. - Weight::from_parts(359_110_000, 13600) + // Minimum execution time: 369_218_000 picoseconds. + Weight::from_parts(373_687_000, 13600) .saturating_add(RocksDbWeight::get().reads(48_u64)) .saturating_add(RocksDbWeight::get().writes(40_u64)) } @@ -2564,8 +2618,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `188792` // Estimated: `10327382` - // Minimum execution time: 15_014_102_000 picoseconds. - Weight::from_parts(15_388_200_000, 10327382) + // Minimum execution time: 15_374_840_000 picoseconds. + Weight::from_parts(15_753_366_000, 10327382) .saturating_add(RocksDbWeight::get().reads(4112_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -2619,27 +2673,33 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) /// Proof: `SubtensorModule::StakingOperationRateLimiter` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2640` + // Measured: `2633` // Estimated: `8727` - // Minimum execution time: 438_658_000 picoseconds. - Weight::from_parts(458_155_000, 8727) - .saturating_add(RocksDbWeight::get().reads(35_u64)) + // Minimum execution time: 442_575_000 picoseconds. + Weight::from_parts(456_872_000, 8727) + .saturating_add(RocksDbWeight::get().reads(38_u64)) .saturating_add(RocksDbWeight::get().writes(18_u64)) } /// Storage: `SubtensorModule::IsNetworkMember` (r:2 w:0) @@ -2652,8 +2712,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `801` // Estimated: `6741` - // Minimum execution time: 33_773_000 picoseconds. - Weight::from_parts(34_705_000, 6741) + // Minimum execution time: 35_225_000 picoseconds. + Weight::from_parts(35_977_000, 6741) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2667,8 +2727,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `774` // Estimated: `6714` - // Minimum execution time: 29_576_000 picoseconds. - Weight::from_parts(30_557_000, 6714) + // Minimum execution time: 30_597_000 picoseconds. + Weight::from_parts(31_408_000, 6714) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2770,8 +2830,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1649` // Estimated: `13600` - // Minimum execution time: 365_763_000 picoseconds. - Weight::from_parts(368_327_000, 13600) + // Minimum execution time: 360_442_000 picoseconds. + Weight::from_parts(364_339_000, 13600) .saturating_add(RocksDbWeight::get().reads(48_u64)) .saturating_add(RocksDbWeight::get().writes(40_u64)) } @@ -2823,8 +2883,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1445` // Estimated: `4910` - // Minimum execution time: 99_325_000 picoseconds. - Weight::from_parts(101_459_000, 4910) + // Minimum execution time: 103_213_000 picoseconds. + Weight::from_parts(104_996_000, 4910) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -2946,8 +3006,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1459` // Estimated: `9874` - // Minimum execution time: 264_674_000 picoseconds. - Weight::from_parts(271_215_000, 9874) + // Minimum execution time: 280_454_000 picoseconds. + Weight::from_parts(284_300_000, 9874) .saturating_add(RocksDbWeight::get().reads(42_u64)) .saturating_add(RocksDbWeight::get().writes(49_u64)) } @@ -2975,8 +3035,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1071` // Estimated: `4536` - // Minimum execution time: 59_551_000 picoseconds. - Weight::from_parts(60_783_000, 4536) + // Minimum execution time: 60_883_000 picoseconds. + Weight::from_parts(62_777_000, 4536) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3020,8 +3080,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1589` // Estimated: `7529` - // Minimum execution time: 106_459_000 picoseconds. - Weight::from_parts(107_931_000, 7529) + // Minimum execution time: 109_083_000 picoseconds. + Weight::from_parts(110_025_000, 7529) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3031,8 +3091,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_310_000 picoseconds. - Weight::from_parts(5_631_000, 0) + // Minimum execution time: 5_641_000 picoseconds. + Weight::from_parts(5_981_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -3053,8 +3113,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `999` // Estimated: `4464` - // Minimum execution time: 52_067_000 picoseconds. - Weight::from_parts(52_989_000, 4464) + // Minimum execution time: 52_968_000 picoseconds. + Weight::from_parts(54_361_000, 4464) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3070,8 +3130,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 44_454_000 picoseconds. - Weight::from_parts(45_224_000, 4159) + // Minimum execution time: 46_116_000 picoseconds. + Weight::from_parts(47_298_000, 4159) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -3101,6 +3161,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::OwnedHotkeys` (r:2 w:2) /// Proof: `SubtensorModule::OwnedHotkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) @@ -3111,9 +3175,9 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2175` // Estimated: `13065` - // Minimum execution time: 262_129_000 picoseconds. - Weight::from_parts(265_496_000, 13065) - .saturating_add(RocksDbWeight::get().reads(33_u64)) + // Minimum execution time: 272_228_000 picoseconds. + Weight::from_parts(277_297_000, 13065) + .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } /// Storage: `System::Account` (r:2 w:2) @@ -3144,6 +3208,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::OwnedHotkeys` (r:2 w:2) /// Proof: `SubtensorModule::OwnedHotkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:0 w:1) @@ -3156,9 +3224,9 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2231` // Estimated: `13121` - // Minimum execution time: 286_364_000 picoseconds. - Weight::from_parts(288_679_000, 13121) - .saturating_add(RocksDbWeight::get().reads(33_u64)) + // Minimum execution time: 298_096_000 picoseconds. + Weight::from_parts(300_521_000, 13121) + .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:1 w:0) @@ -3169,8 +3237,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_462_000 picoseconds. - Weight::from_parts(23_103_000, 4130) + // Minimum execution time: 22_522_000 picoseconds. + Weight::from_parts(23_223_000, 4130) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3182,8 +3250,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_715_000 picoseconds. - Weight::from_parts(19_206_000, 4078) + // Minimum execution time: 18_885_000 picoseconds. + Weight::from_parts(19_396_000, 4078) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3195,8 +3263,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_376_000 picoseconds. - Weight::from_parts(8_856_000, 0) + // Minimum execution time: 8_486_000 picoseconds. + Weight::from_parts(9_137_000, 0) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -3239,8 +3307,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2094` // Estimated: `8034` - // Minimum execution time: 389_868_000 picoseconds. - Weight::from_parts(407_990_000, 8034) + // Minimum execution time: 401_840_000 picoseconds. + Weight::from_parts(414_123_000, 8034) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3274,8 +3342,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 163_986_000 picoseconds. - Weight::from_parts(166_641_000, 5338) + // Minimum execution time: 169_756_000 picoseconds. + Weight::from_parts(172_702_000, 5338) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3307,8 +3375,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `5338` - // Minimum execution time: 160_249_000 picoseconds. - Weight::from_parts(163_325_000, 5338) + // Minimum execution time: 166_060_000 picoseconds. + Weight::from_parts(167_362_000, 5338) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -3328,8 +3396,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_332_000 picoseconds. - Weight::from_parts(39_093_000, 4583) + // Minimum execution time: 39_483_000 picoseconds. + Weight::from_parts(40_485_000, 4583) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3383,27 +3451,33 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) /// Proof: `SubtensorModule::StakingOperationRateLimiter` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2640` + // Measured: `2633` // Estimated: `8727` - // Minimum execution time: 473_202_000 picoseconds. - Weight::from_parts(494_572_000, 8727) - .saturating_add(RocksDbWeight::get().reads(35_u64)) + // Minimum execution time: 479_744_000 picoseconds. + Weight::from_parts(502_367_000, 8727) + .saturating_add(RocksDbWeight::get().reads(38_u64)) .saturating_add(RocksDbWeight::get().writes(18_u64)) } /// Storage: `SubtensorModule::Alpha` (r:2 w:0) @@ -3436,10 +3510,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn move_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2027` - // Estimated: `7967` - // Minimum execution time: 207_417_000 picoseconds. - Weight::from_parts(209_791_000, 7967) + // Measured: `2060` + // Estimated: `8000` + // Minimum execution time: 209_922_000 picoseconds. + Weight::from_parts(213_508_000, 8000) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -3505,8 +3579,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2564` // Estimated: `10979` - // Minimum execution time: 412_629_000 picoseconds. - Weight::from_parts(419_953_000, 10979) + // Minimum execution time: 419_853_000 picoseconds. + Weight::from_parts(434_460_000, 10979) .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -3568,10 +3642,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2564` - // Estimated: `10979` - // Minimum execution time: 445_501_000 picoseconds. - Weight::from_parts(451_852_000, 10979) + // Measured: `2598` + // Estimated: `11013` + // Minimum execution time: 463_504_000 picoseconds. + Weight::from_parts(479_504_000, 11013) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -3629,25 +3703,31 @@ impl WeightInfo for () { /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetTaoFlow` (r:2 w:2) /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_stake_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `3012` - // Estimated: `11427` - // Minimum execution time: 653_168_000 picoseconds. - Weight::from_parts(675_150_000, 11427) - .saturating_add(RocksDbWeight::get().reads(51_u64)) + // Measured: `3108` + // Estimated: `11523` + // Minimum execution time: 658_629_000 picoseconds. + Weight::from_parts(681_220_000, 11523) + .saturating_add(RocksDbWeight::get().reads(54_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } /// Storage: `SubtensorModule::Alpha` (r:2 w:0) @@ -3684,10 +3764,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn transfer_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2021` - // Estimated: `7961` - // Minimum execution time: 236_792_000 picoseconds. - Weight::from_parts(239_797_000, 7961) + // Measured: `2054` + // Estimated: `7994` + // Minimum execution time: 240_729_000 picoseconds. + Weight::from_parts(243_544_000, 7994) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3745,25 +3825,31 @@ impl WeightInfo for () { /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetTaoFlow` (r:2 w:2) /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (r:0 w:1) /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn swap_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `2858` - // Estimated: `11273` - // Minimum execution time: 597_504_000 picoseconds. - Weight::from_parts(618_804_000, 11273) - .saturating_add(RocksDbWeight::get().reads(51_u64)) + // Measured: `2951` + // Estimated: `11366` + // Minimum execution time: 602_794_000 picoseconds. + Weight::from_parts(627_941_000, 11366) + .saturating_add(RocksDbWeight::get().reads(54_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } /// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0) @@ -3792,8 +3878,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1122` // Estimated: `4587` - // Minimum execution time: 122_068_000 picoseconds. - Weight::from_parts(124_231_000, 4587) + // Minimum execution time: 126_576_000 picoseconds. + Weight::from_parts(127_989_000, 4587) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3833,8 +3919,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1426` // Estimated: `7366` - // Minimum execution time: 99_356_000 picoseconds. - Weight::from_parts(101_709_000, 7366) + // Minimum execution time: 102_481_000 picoseconds. + Weight::from_parts(104_475_000, 7366) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3850,8 +3936,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `793` // Estimated: `4258` - // Minimum execution time: 28_253_000 picoseconds. - Weight::from_parts(29_094_000, 4258) + // Minimum execution time: 28_753_000 picoseconds. + Weight::from_parts(29_616_000, 4258) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3869,8 +3955,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `886` // Estimated: `4351` - // Minimum execution time: 35_737_000 picoseconds. - Weight::from_parts(36_198_000, 4351) + // Minimum execution time: 35_707_000 picoseconds. + Weight::from_parts(36_969_000, 4351) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3992,8 +4078,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1343` // Estimated: `9758` - // Minimum execution time: 262_941_000 picoseconds. - Weight::from_parts(270_434_000, 9758) + // Minimum execution time: 273_209_000 picoseconds. + Weight::from_parts(285_032_000, 9758) .saturating_add(RocksDbWeight::get().reads(41_u64)) .saturating_add(RocksDbWeight::get().writes(48_u64)) } @@ -4007,8 +4093,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `772` // Estimated: `6712` - // Minimum execution time: 32_971_000 picoseconds. - Weight::from_parts(34_043_000, 6712) + // Minimum execution time: 34_214_000 picoseconds. + Weight::from_parts(35_196_000, 6712) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4022,8 +4108,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `852` // Estimated: `6792` - // Minimum execution time: 30_457_000 picoseconds. - Weight::from_parts(31_158_000, 6792) + // Minimum execution time: 31_338_000 picoseconds. + Weight::from_parts(32_871_000, 6792) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4035,8 +4121,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_673_000 picoseconds. - Weight::from_parts(18_244_000, 4060) + // Minimum execution time: 17_924_000 picoseconds. + Weight::from_parts(18_574_000, 4060) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4060,6 +4146,8 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::AlphaV2` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::NetworksAdded` (r:6 w:0) /// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:5 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::HotkeyLock` (r:5 w:0) /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:5 w:0) @@ -4074,8 +4162,6 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::PendingChildKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::AutoStakeDestinationColdkeys` (r:5 w:0) /// Proof: `SubtensorModule::AutoStakeDestinationColdkeys` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:5 w:0) - /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::TotalHotkeyAlphaLastEpoch` (r:10 w:5) /// Proof: `SubtensorModule::TotalHotkeyAlphaLastEpoch` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::AlphaDividendsPerSubnet` (r:10 w:10) @@ -4112,8 +4198,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3026` // Estimated: `28766` - // Minimum execution time: 1_114_799_000 picoseconds. - Weight::from_parts(1_123_425_000, 28766) + // Minimum execution time: 1_151_958_000 picoseconds. + Weight::from_parts(1_167_136_000, 28766) .saturating_add(RocksDbWeight::get().reads(171_u64)) .saturating_add(RocksDbWeight::get().writes(95_u64)) } @@ -4127,8 +4213,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `745` // Estimated: `4210` - // Minimum execution time: 23_865_000 picoseconds. - Weight::from_parts(24_475_000, 4210) + // Minimum execution time: 24_286_000 picoseconds. + Weight::from_parts(25_177_000, 4210) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -4142,8 +4228,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `740` // Estimated: `9155` - // Minimum execution time: 26_870_000 picoseconds. - Weight::from_parts(27_361_000, 9155) + // Minimum execution time: 27_280_000 picoseconds. + Weight::from_parts(28_302_000, 9155) .saturating_add(RocksDbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4214,8 +4300,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2642` // Estimated: `11306` - // Minimum execution time: 546_189_000 picoseconds. - Weight::from_parts(551_489_000, 11306) + // Minimum execution time: 565_275_000 picoseconds. + Weight::from_parts(586_494_000, 11306) .saturating_add(RocksDbWeight::get().reads(50_u64)) .saturating_add(RocksDbWeight::get().writes(27_u64)) } @@ -4277,10 +4363,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_stake_full_limit() -> Weight { // Proof Size summary in bytes: - // Measured: `2564` - // Estimated: `10979` - // Minimum execution time: 467_822_000 picoseconds. - Weight::from_parts(478_552_000, 10979) + // Measured: `2598` + // Estimated: `11013` + // Minimum execution time: 482_931_000 picoseconds. + Weight::from_parts(489_493_000, 11013) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } @@ -4421,10 +4507,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1762 + k * (44 ±0)` // Estimated: `10183 + k * (2579 ±0)` - // Minimum execution time: 460_900_000 picoseconds. - Weight::from_parts(284_422_033, 10183) - // Standard Error: 28_051 - .saturating_add(Weight::from_parts(43_690_535, 0).saturating_mul(k.into())) + // Minimum execution time: 483_121_000 picoseconds. + Weight::from_parts(303_628_102, 10183) + // Standard Error: 28_661 + .saturating_add(Weight::from_parts(47_109_087, 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(54_u64)) @@ -4454,10 +4540,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1468 + k * (53 ±0)` // Estimated: `6148 + k * (2514 ±0)` - // Minimum execution time: 91_781_000 picoseconds. - Weight::from_parts(72_937_060, 6148) - // Standard Error: 7_499 - .saturating_add(Weight::from_parts(1_672_052, 0).saturating_mul(k.into())) + // Minimum execution time: 95_809_000 picoseconds. + Weight::from_parts(88_862_838, 6148) + // Standard Error: 8_640 + .saturating_add(Weight::from_parts(1_592_244, 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)) @@ -4472,8 +4558,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 27_120_000 picoseconds. - Weight::from_parts(28_123_000, 9074) + // Minimum execution time: 27_732_000 picoseconds. + Weight::from_parts(28_974_000, 9074) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4501,8 +4587,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1070` // Estimated: `4535` - // Minimum execution time: 74_078_000 picoseconds. - Weight::from_parts(74_980_000, 4535) + // Minimum execution time: 73_798_000 picoseconds. + Weight::from_parts(74_399_000, 4535) .saturating_add(RocksDbWeight::get().reads(10_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4518,8 +4604,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 33_022_000 picoseconds. - Weight::from_parts(33_913_000, 4274) + // Minimum execution time: 33_182_000 picoseconds. + Weight::from_parts(34_484_000, 4274) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4536,7 +4622,7 @@ impl WeightInfo for () { // Measured: `476` // Estimated: `3941` // Minimum execution time: 17_613_000 picoseconds. - Weight::from_parts(18_094_000, 3941) + Weight::from_parts(18_335_000, 3941) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4566,8 +4652,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1929` // Estimated: `7869` - // Minimum execution time: 134_861_000 picoseconds. - Weight::from_parts(136_855_000, 7869) + // Minimum execution time: 136_926_000 picoseconds. + Weight::from_parts(138_438_000, 7869) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4577,8 +4663,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_685_000 picoseconds. - Weight::from_parts(3_006_000, 0) + // Minimum execution time: 2_885_000 picoseconds. + Weight::from_parts(3_005_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -4587,8 +4673,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_390_000 picoseconds. - Weight::from_parts(6_001_000, 0) + // Minimum execution time: 5_280_000 picoseconds. + Weight::from_parts(5_731_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4601,8 +4687,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `862` // Estimated: `4327` - // Minimum execution time: 26_600_000 picoseconds. - Weight::from_parts(27_432_000, 4327) + // Minimum execution time: 26_509_000 picoseconds. + Weight::from_parts(27_372_000, 4327) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4656,16 +4742,22 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::SubnetTaoFlow` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) - /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `AlphaAssets::AlphaBurned` (r:1 w:1) /// Proof: `AlphaAssets::AlphaBurned` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::StakingOperationRateLimiter` (r:0 w:1) @@ -4674,12 +4766,12 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::LastColdkeyHotkeyStakeBlock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_stake_burn() -> Weight { // Proof Size summary in bytes: - // Measured: `2570` + // Measured: `2636` // Estimated: `8727` - // Minimum execution time: 565_736_000 picoseconds. - Weight::from_parts(586_314_000, 8727) - .saturating_add(RocksDbWeight::get().reads(36_u64)) - .saturating_add(RocksDbWeight::get().writes(18_u64)) + // Minimum execution time: 595_914_000 picoseconds. + Weight::from_parts(620_048_000, 8727) + .saturating_add(RocksDbWeight::get().reads(39_u64)) + .saturating_add(RocksDbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::PendingChildKeyCooldown` (r:0 w:1) /// Proof: `SubtensorModule::PendingChildKeyCooldown` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -4687,8 +4779,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_735_000 picoseconds. - Weight::from_parts(3_056_000, 0) + // Minimum execution time: 2_976_000 picoseconds. + Weight::from_parts(3_096_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4705,44 +4797,60 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::TotalHotkeyShares` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::TotalHotkeySharesV2` (r:1 w:0) /// Proof: `SubtensorModule::TotalHotkeySharesV2` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::Lock` (r:1 w:1) + /// Storage: `SubtensorModule::Lock` (r:2 w:1) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:1) + /// Storage: `SubtensorModule::HotkeyLock` (r:1 w:0) /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:1 w:1) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) + /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) + /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn lock_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `1651` - // Estimated: `5116` - // Minimum execution time: 95_959_000 picoseconds. - Weight::from_parts(98_204_000, 5116) - .saturating_add(RocksDbWeight::get().reads(11_u64)) + // Measured: `1644` + // Estimated: `7584` + // Minimum execution time: 111_458_000 picoseconds. + Weight::from_parts(114_223_000, 7584) + .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::Owner` (r:2 w:0) /// Proof: `SubtensorModule::Owner` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:2) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::SubnetOwner` (r:1 w:0) - /// Proof: `SubtensorModule::SubnetOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) + /// Proof: `SubtensorModule::SubnetOwnerHotkey` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::HotkeyLock` (r:2 w:0) + /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingHotkeyLock` (r:2 w:2) + /// Proof: `SubtensorModule::DecayingHotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::OwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::OwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::DecayingOwnerLock` (r:1 w:0) + /// Proof: `SubtensorModule::DecayingOwnerLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::UnlockRate` (r:1 w:0) /// Proof: `SubtensorModule::UnlockRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::MaturityRate` (r:1 w:0) /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) - /// Storage: `SubtensorModule::HotkeyLock` (r:2 w:2) - /// Proof: `SubtensorModule::HotkeyLock` (`max_values`: None, `max_size`: None, mode: `Measured`) fn move_lock() -> Weight { // Proof Size summary in bytes: // Measured: `1366` // Estimated: `7306` - // Minimum execution time: 109_825_000 picoseconds. - Weight::from_parts(111_929_000, 7306) - .saturating_add(RocksDbWeight::get().reads(10_u64)) + // Minimum execution time: 142_055_000 picoseconds. + Weight::from_parts(144_460_000, 7306) + .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } } diff --git a/pallets/transaction-fee/src/tests/mock.rs b/pallets/transaction-fee/src/tests/mock.rs index 3607fd3dfa..dc24017537 100644 --- a/pallets/transaction-fee/src/tests/mock.rs +++ b/pallets/transaction-fee/src/tests/mock.rs @@ -6,12 +6,10 @@ use crate::TransactionFeeHandler; use frame_support::pallet_prelude::Zero; use frame_support::{ PalletId, assert_ok, derive_impl, parameter_types, - traits::{Everything, Hooks, InherentBuilder, PrivilegeCmp}, + traits::{Everything, Hooks, PrivilegeCmp}, weights::IdentityFee, }; -use frame_system::{ - self as system, EnsureRoot, RawOrigin, limits, offchain::CreateTransactionBase, -}; +use frame_system::{self as system, EnsureRoot, RawOrigin, limits}; pub use pallet_subtensor::*; pub use sp_core::U256; use sp_core::{ConstU64, H256}; @@ -521,39 +519,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Test +impl frame_system::offchain::CreateBare for Test where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Test -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - let extra: TransactionExtensions = ( - frame_system::CheckNonZeroSender::::new(), - frame_system::CheckWeight::::new(), - pallet_transaction_payment::ChargeTransactionPayment::::from(0.into()), - ); - - Some(UncheckedExtrinsic::new_signed( - call, - nonce.into(), - (), - extra, - )) + UncheckedExtrinsic::new_bare(call) } } diff --git a/pallets/utility/src/weights.rs b/pallets/utility/src/weights.rs index 191c044e2d..a0036cc8b9 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-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2026-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervmg397c`, 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.2M827i01ht +// --output=/tmp/tmp.l7yX4wP7mK // --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: 4_890_000 picoseconds. - Weight::from_parts(31_041_787, 3983) - // Standard Error: 3_736 - .saturating_add(Weight::from_parts(5_317_513, 0).saturating_mul(c.into())) + // Minimum execution time: 4_839_000 picoseconds. + Weight::from_parts(9_858_792, 3983) + // Standard Error: 4_682 + .saturating_add(Weight::from_parts(5_376_339, 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: 14_577_000 picoseconds. - Weight::from_parts(15_178_000, 3983) + // Minimum execution time: 15_128_000 picoseconds. + Weight::from_parts(15_439_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: 4_889_000 picoseconds. - Weight::from_parts(30_365_384, 3983) - // Standard Error: 3_742 - .saturating_add(Weight::from_parts(5_542_677, 0).saturating_mul(c.into())) + // Minimum execution time: 5_130_000 picoseconds. + Weight::from_parts(16_159_940, 3983) + // Standard Error: 2_726 + .saturating_add(Weight::from_parts(5_609_786, 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: 6_672_000 picoseconds. - Weight::from_parts(6_863_000, 0) + // Minimum execution time: 6_793_000 picoseconds. + Weight::from_parts(7_194_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: 4_768_000 picoseconds. - Weight::from_parts(30_889_962, 3983) - // Standard Error: 3_691 - .saturating_add(Weight::from_parts(5_322_546, 0).saturating_mul(c.into())) + // Minimum execution time: 5_040_000 picoseconds. + Weight::from_parts(17_229_585, 3983) + // Standard Error: 2_447 + .saturating_add(Weight::from_parts(5_352_393, 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_592_000 picoseconds. - Weight::from_parts(6_943_000, 0) + // Minimum execution time: 6_753_000 picoseconds. + Weight::from_parts(7_064_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: 20_969_000 picoseconds. - Weight::from_parts(21_671_000, 3983) + // Minimum execution time: 20_588_000 picoseconds. + Weight::from_parts(21_450_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: 4_890_000 picoseconds. - Weight::from_parts(31_041_787, 3983) - // Standard Error: 3_736 - .saturating_add(Weight::from_parts(5_317_513, 0).saturating_mul(c.into())) + // Minimum execution time: 4_839_000 picoseconds. + Weight::from_parts(9_858_792, 3983) + // Standard Error: 4_682 + .saturating_add(Weight::from_parts(5_376_339, 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: 14_577_000 picoseconds. - Weight::from_parts(15_178_000, 3983) + // Minimum execution time: 15_128_000 picoseconds. + Weight::from_parts(15_439_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: 4_889_000 picoseconds. - Weight::from_parts(30_365_384, 3983) - // Standard Error: 3_742 - .saturating_add(Weight::from_parts(5_542_677, 0).saturating_mul(c.into())) + // Minimum execution time: 5_130_000 picoseconds. + Weight::from_parts(16_159_940, 3983) + // Standard Error: 2_726 + .saturating_add(Weight::from_parts(5_609_786, 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: 6_672_000 picoseconds. - Weight::from_parts(6_863_000, 0) + // Minimum execution time: 6_793_000 picoseconds. + Weight::from_parts(7_194_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: 4_768_000 picoseconds. - Weight::from_parts(30_889_962, 3983) - // Standard Error: 3_691 - .saturating_add(Weight::from_parts(5_322_546, 0).saturating_mul(c.into())) + // Minimum execution time: 5_040_000 picoseconds. + Weight::from_parts(17_229_585, 3983) + // Standard Error: 2_447 + .saturating_add(Weight::from_parts(5_352_393, 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_592_000 picoseconds. - Weight::from_parts(6_943_000, 0) + // Minimum execution time: 6_753_000 picoseconds. + Weight::from_parts(7_064_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: 20_969_000 picoseconds. - Weight::from_parts(21_671_000, 3983) + // Minimum execution time: 20_588_000 picoseconds. + Weight::from_parts(21_450_000, 3983) .saturating_add(RocksDbWeight::get().reads(2_u64)) } } diff --git a/precompiles/src/mock.rs b/precompiles/src/mock.rs index d82422bf51..8ccd799ae8 100644 --- a/precompiles/src/mock.rs +++ b/precompiles/src/mock.rs @@ -7,10 +7,10 @@ use core::{marker::PhantomData, num::NonZeroU64}; use fp_evm::{Context, PrecompileResult}; use frame_support::{ PalletId, derive_impl, parameter_types, - traits::{Everything, InherentBuilder, PrivilegeCmp}, + traits::{Everything, PrivilegeCmp}, weights::Weight, }; -use frame_system::{EnsureRoot, limits, offchain::CreateTransactionBase}; +use frame_system::{EnsureRoot, limits}; use pallet_evm::{ AddressMapping, BalanceConverter, EnsureAddressNever, EnsureAddressRoot, EvmBalance, PrecompileHandle, PrecompileSet, SubstrateBalance, @@ -369,7 +369,7 @@ impl frame_system::offchain::SigningTypes for Runtime { type Signature = test_crypto::Signature; } -impl CreateTransactionBase for Runtime +impl frame_system::offchain::CreateTransactionBase for Runtime where RuntimeCall: From, { @@ -377,28 +377,12 @@ where type RuntimeCall = RuntimeCall; } -impl frame_system::offchain::CreateInherent for Runtime +impl frame_system::offchain::CreateBare for Runtime where RuntimeCall: From, { fn create_bare(call: Self::RuntimeCall) -> Self::Extrinsic { - UncheckedExtrinsic::new_inherent(call) - } -} - -impl frame_system::offchain::CreateSignedTransaction for Runtime -where - RuntimeCall: From, -{ - fn create_signed_transaction< - C: frame_system::offchain::AppCrypto, - >( - call: >::RuntimeCall, - _public: Self::Public, - _account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - Some(UncheckedExtrinsic::new_signed(call, nonce, (), ())) + UncheckedExtrinsic::new_bare(call) } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 56dd452dbd..f15329f5e7 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -56,7 +56,6 @@ use sp_core::{ crypto::{ByteArray, KeyTypeId}, }; use sp_runtime::Cow; -use sp_runtime::generic::Era; use sp_runtime::{ AccountId32, ApplyExtrinsicResult, ConsensusEngineId, Percent, generic, impl_opaque_keys, traits::{ @@ -182,47 +181,6 @@ impl frame_system::offchain::CreateBare> for Runtime } } -impl frame_system::offchain::CreateSignedTransaction> for Runtime { - fn create_signed_transaction< - S: frame_system::offchain::AppCrypto, - >( - call: RuntimeCall, - public: Self::Public, - account: Self::AccountId, - nonce: Self::Nonce, - ) -> Option { - use sp_runtime::traits::StaticLookup; - - let address = ::Lookup::unlookup(account.clone()); - let extra: TxExtension = ( - ( - frame_system::CheckNonZeroSender::::new(), - frame_system::CheckSpecVersion::::new(), - frame_system::CheckTxVersion::::new(), - frame_system::CheckGenesis::::new(), - check_mortality::CheckMortality::::from(Era::Immortal), - check_nonce::CheckNonce::::from(nonce).into(), - frame_system::CheckWeight::::new(), - ), - ( - ChargeTransactionPaymentWrapper::new(TaoBalance::new(0)), - SudoTransactionExtension::::new(), - pallet_shield::CheckShieldedTxValidity::::new(), - pallet_subtensor::SubtensorTransactionExtension::::new(), - pallet_drand::drand_priority::DrandPriority::::new(), - ), - frame_metadata_hash_extension::CheckMetadataHash::::new(true), - ); - - let raw_payload = SignedPayload::new(call.clone(), extra.clone()).ok()?; - let signature = raw_payload.using_encoded(|payload| S::sign(payload, public))?; - - Some(UncheckedExtrinsic::new_signed( - call, address, signature, extra, - )) - } -} - // Subtensor module pub use pallet_scheduler; pub use pallet_subtensor; @@ -274,7 +232,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 411, + spec_version: 412, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,