Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 11 additions & 22 deletions pallets/admin-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,28 +1532,17 @@ pub mod pallet {
Ok(())
}

/// Change the SubnetOwnerHotkey for a given subnet.
///
/// # Arguments
/// * `origin` - The origin of the call, which must be the subnet owner.
/// * `netuid` - The unique identifier for the subnet.
/// * `hotkey` - The new hotkey for the subnet owner.
///
/// # Errors
/// * `BadOrigin` - If the caller is not the subnet owner or root account.
///
/// # Weight
/// Weight is handled by the `#[pallet::weight]` attribute.
#[pallet::call_index(64)]
#[pallet::weight(Weight::from_parts(3_918_000, 0) // TODO: add benchmarks
.saturating_add(T::DbWeight::get().writes(1_u64)))]
pub fn sudo_set_subnet_owner_hotkey(
origin: OriginFor<T>,
netuid: NetUid,
hotkey: <T as frame_system::Config>::AccountId,
) -> DispatchResult {
pallet_subtensor::Pallet::<T>::do_set_sn_owner_hotkey(origin, netuid, &hotkey)
}
// Deprecated for sudo_set_sn_owner_hotkey
// #[pallet::call_index(64)]
// #[pallet::weight(Weight::from_parts(3_918_000, 0) // TODO: add benchmarks
// .saturating_add(T::DbWeight::get().writes(1_u64)))]
// pub fn sudo_set_subnet_owner_hotkey(
// origin: OriginFor<T>,
// netuid: NetUid,
// hotkey: <T as frame_system::Config>::AccountId,
// ) -> DispatchResult {
// pallet_subtensor::Pallet::<T>::do_set_sn_owner_hotkey(origin, netuid, &hotkey)
// }

///
///
Expand Down
54 changes: 27 additions & 27 deletions pallets/limit-orders/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_limit_orders`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
//! DATE: 2026-06-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2026-06-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runnervm3jyl0`, CPU: `AMD EPYC 9V74 80-Core Processor`
//! HOSTNAME: `runnervm7b5n9`, CPU: `AMD EPYC 7763 64-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`

// Executed Command:
Expand All @@ -22,7 +22,7 @@
// --no-storage-info
// --no-min-squares
// --no-median-slopes
// --output=/tmp/tmp.h1ZElBJrCs
// --output=/tmp/tmp.hLmnlWyxQV
// --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand Down Expand Up @@ -51,8 +51,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `66`
// Estimated: `3522`
// Minimum execution time: 13_230_000 picoseconds.
Weight::from_parts(14_822_000, 3522)
// Minimum execution time: 15_309_000 picoseconds.
Weight::from_parts(16_030_000, 3522)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -62,8 +62,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_006_000 picoseconds.
Weight::from_parts(4_266_000, 0)
// Minimum execution time: 5_149_000 picoseconds.
Weight::from_parts(5_420_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `LimitOrders::LimitOrdersEnabled` (r:1 w:0)
Expand Down Expand Up @@ -123,10 +123,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1134 + n * (283 ±0)`
// Estimated: `6148 + n * (5158 ±0)`
// Minimum execution time: 597_854_000 picoseconds.
Weight::from_parts(61_768_457, 6148)
// Standard Error: 136_266
.saturating_add(Weight::from_parts(520_180_782, 0).saturating_mul(n.into()))
// Minimum execution time: 573_493_000 picoseconds.
Weight::from_parts(37_709_904, 6148)
// Standard Error: 196_193
.saturating_add(Weight::from_parts(499_740_014, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(17_u64))
.saturating_add(T::DbWeight::get().reads((11_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(10_u64))
Expand Down Expand Up @@ -190,10 +190,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1263 + n * (283 ±0)`
// Estimated: `8727 + n * (5158 ±0)`
// Minimum execution time: 747_334_000 picoseconds.
Weight::from_parts(499_718_496, 8727)
// Standard Error: 74_442
.saturating_add(Weight::from_parts(259_134_004, 0).saturating_mul(n.into()))
// Minimum execution time: 717_240_000 picoseconds.
Weight::from_parts(552_675_417, 8727)
// Standard Error: 110_663
.saturating_add(Weight::from_parts(241_301_726, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(25_u64))
.saturating_add(T::DbWeight::get().reads((10_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(15_u64))
Expand All @@ -210,8 +210,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `66`
// Estimated: `3522`
// Minimum execution time: 13_230_000 picoseconds.
Weight::from_parts(14_822_000, 3522)
// Minimum execution time: 15_309_000 picoseconds.
Weight::from_parts(16_030_000, 3522)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -221,8 +221,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_006_000 picoseconds.
Weight::from_parts(4_266_000, 0)
// Minimum execution time: 5_149_000 picoseconds.
Weight::from_parts(5_420_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `LimitOrders::LimitOrdersEnabled` (r:1 w:0)
Expand Down Expand Up @@ -282,10 +282,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1134 + n * (283 ±0)`
// Estimated: `6148 + n * (5158 ±0)`
// Minimum execution time: 597_854_000 picoseconds.
Weight::from_parts(61_768_457, 6148)
// Standard Error: 136_266
.saturating_add(Weight::from_parts(520_180_782, 0).saturating_mul(n.into()))
// Minimum execution time: 573_493_000 picoseconds.
Weight::from_parts(37_709_904, 6148)
// Standard Error: 196_193
.saturating_add(Weight::from_parts(499_740_014, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(17_u64))
.saturating_add(RocksDbWeight::get().reads((11_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(10_u64))
Expand Down Expand Up @@ -349,10 +349,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1263 + n * (283 ±0)`
// Estimated: `8727 + n * (5158 ±0)`
// Minimum execution time: 747_334_000 picoseconds.
Weight::from_parts(499_718_496, 8727)
// Standard Error: 74_442
.saturating_add(Weight::from_parts(259_134_004, 0).saturating_mul(n.into()))
// Minimum execution time: 717_240_000 picoseconds.
Weight::from_parts(552_675_417, 8727)
// Standard Error: 110_663
.saturating_add(Weight::from_parts(241_301_726, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(25_u64))
.saturating_add(RocksDbWeight::get().reads((10_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(15_u64))
Expand Down
Loading
Loading