Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
07ffd42
remove duplicate sudo_set_subnet_owner_hotkey
JohnReedV Jun 22, 2026
2c8a3fd
bump spec
JohnReedV Jun 22, 2026
f38c0db
deprecate `BlockEmission` & create rpc
JohnReedV Jun 22, 2026
23039e0
update deprecation note
JohnReedV Jun 22, 2026
3e606f0
chore: auditor auto-fix
Jun 22, 2026
7994692
auto-update benchmark weights
github-actions[bot] Jun 22, 2026
b37a197
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
977d534
Update weights.rs
JohnReedV Jun 23, 2026
3ef6894
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
7d2c726
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 23, 2026
096a405
remove sudo_set_subnet_owner_hotkey everywhere
JohnReedV Jun 23, 2026
bff5760
Update weights.rs
JohnReedV Jun 23, 2026
8a4bad0
auto-update benchmark weights
github-actions[bot] Jun 24, 2026
fb5a4cd
Merge branch 'devnet-ready' into block-emission-rpc
JohnReedV Jun 24, 2026
0cee4d1
auto-update benchmark weights
github-actions[bot] Jun 24, 2026
069029f
bump spec
JohnReedV Jun 24, 2026
2303adc
Merge branch 'devnet-ready' into remove-duplicate-set-sn-owner-key
JohnReedV Jun 24, 2026
1a5da03
Merge pull request #2778 from opentensor/block-emission-rpc
JohnReedV Jun 25, 2026
fe25a01
Merge pull request #2777 from opentensor/remove-duplicate-set-sn-owne…
JohnReedV Jun 25, 2026
f216208
Do not silently cap transferred alpha amount by lock-available
gztensor Jun 26, 2026
3c1acd5
spec bump
gztensor Jun 26, 2026
e990c12
Merge branch 'main' into feat/no-capping-on-locked-transfers
gztensor Jun 29, 2026
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