Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 6 additions & 14 deletions pallets/admin-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2107,13 +2107,9 @@ pub mod pallet {

/// Sets the announcement delay for coldkey swap.
#[pallet::call_index(86)]
#[pallet::weight((
Weight::from_parts(5_000_000, 0)
.saturating_add(T::DbWeight::get().reads(0_u64))
.saturating_add(T::DbWeight::get().writes(1_u64)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(5_000_000, 0)
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64))
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
pub fn sudo_set_coldkey_swap_announcement_delay(
origin: OriginFor<T>,
duration: BlockNumberFor<T>,
Expand All @@ -2126,13 +2122,9 @@ pub mod pallet {

/// Sets the coldkey swap reannouncement delay.
#[pallet::call_index(87)]
#[pallet::weight((
Weight::from_parts(5_000_000, 0)
.saturating_add(T::DbWeight::get().reads(0_u64))
.saturating_add(T::DbWeight::get().writes(1_u64)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(5_000_000, 0)
.saturating_add(<T as frame_system::Config>::DbWeight::get().reads(0_u64))
.saturating_add(<T as frame_system::Config>::DbWeight::get().writes(1_u64)))]
pub fn sudo_set_coldkey_swap_reannouncement_delay(
origin: OriginFor<T>,
duration: BlockNumberFor<T>,
Expand Down
10 changes: 3 additions & 7 deletions pallets/shield/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,9 @@ pub mod pallet {
/// Announce the ML‑KEM public key that will become `CurrentKey` in
/// the following block.
#[pallet::call_index(0)]
#[pallet::weight((
Weight::from_parts(20_999_999_999, 0)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(20_999_999_999, 0)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64)))]
#[allow(clippy::useless_conversion)]
pub fn announce_next_key(
origin: OriginFor<T>,
Expand Down
30 changes: 9 additions & 21 deletions pallets/subtensor/src/macros/dispatches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,13 +2485,9 @@ mod dispatches {
/// * `SubnetNotExist` - If the subnet does not exist.
/// * `NotSubnetOwner` - If the caller is not the subnet owner or root.
#[pallet::call_index(129)]
#[pallet::weight((
Weight::from_parts(10_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(10_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2)))]
pub fn enable_voting_power_tracking(
origin: OriginFor<T>,
netuid: NetUid,
Expand All @@ -2515,13 +2511,9 @@ mod dispatches {
/// * `NotSubnetOwner` - If the caller is not the subnet owner or root.
/// * `VotingPowerTrackingNotEnabled` - If voting power tracking is not enabled.
#[pallet::call_index(130)]
#[pallet::weight((
Weight::from_parts(10_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(10_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1)))]
pub fn disable_voting_power_tracking(
origin: OriginFor<T>,
netuid: NetUid,
Expand All @@ -2546,13 +2538,9 @@ mod dispatches {
/// * `SubnetNotExist` - If the subnet does not exist.
/// * `InvalidVotingPowerEmaAlpha` - If alpha is greater than 10^18 (1.0).
#[pallet::call_index(131)]
#[pallet::weight((
Weight::from_parts(6_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)),
DispatchClass::Operational,
Pays::Yes
))]
#[pallet::weight(Weight::from_parts(6_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)))]
pub fn sudo_set_voting_power_ema_alpha(
origin: OriginFor<T>,
netuid: NetUid,
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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: 379,
spec_version: 380,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading