Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion pallets/commitments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pub mod pallet {
.saturating_add(T::DbWeight::get().reads(0_u64))
.saturating_add(T::DbWeight::get().writes(1_u64)),
DispatchClass::Operational,
Pays::No
Pays::Yes
))]
pub fn set_max_space(origin: OriginFor<T>, new_limit: u32) -> DispatchResult {
ensure_root(origin)?;
Expand Down
18 changes: 9 additions & 9 deletions pallets/subtensor/src/macros/dispatches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ mod dispatches {
#[pallet::call_index(62)]
#[pallet::weight((Weight::from_parts(111_700_000, 0)
.saturating_add(T::DbWeight::get().reads(23))
.saturating_add(T::DbWeight::get().writes(20)), DispatchClass::Normal, Pays::No))]
.saturating_add(T::DbWeight::get().writes(20)), DispatchClass::Normal, Pays::Yes))]
pub fn root_register(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
Self::do_root_register(origin, hotkey)
}
Expand Down Expand Up @@ -813,7 +813,7 @@ mod dispatches {
#[pallet::call_index(71)]
#[pallet::weight((Weight::from_parts(161_700_000, 0)
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(9)), DispatchClass::Operational, Pays::No))]
.saturating_add(T::DbWeight::get().writes(9)), DispatchClass::Operational, Pays::Yes))]
pub fn swap_coldkey(
origin: OriginFor<T>,
old_coldkey: T::AccountId,
Expand Down Expand Up @@ -895,7 +895,7 @@ mod dispatches {
.saturating_add(T::DbWeight::get().reads(0))
.saturating_add(T::DbWeight::get().writes(1)),
DispatchClass::Operational,
Pays::No
Pays::Yes
))]
pub fn sudo_set_tx_childkey_take_rate_limit(
origin: OriginFor<T>,
Expand Down Expand Up @@ -923,7 +923,7 @@ mod dispatches {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)),
DispatchClass::Operational,
Pays::No
Pays::Yes
))]
pub fn sudo_set_min_childkey_take(origin: OriginFor<T>, take: u16) -> DispatchResult {
ensure_root(origin)?;
Expand All @@ -948,7 +948,7 @@ mod dispatches {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)),
DispatchClass::Operational,
Pays::No
Pays::Yes
))]
pub fn sudo_set_max_childkey_take(origin: OriginFor<T>, take: u16) -> DispatchResult {
ensure_root(origin)?;
Expand Down Expand Up @@ -977,7 +977,7 @@ mod dispatches {
/// ## Complexity
/// - O(1).
#[pallet::call_index(51)]
#[pallet::weight((Weight::from_parts(111_100_000, 0), DispatchClass::Operational, Pays::No))]
#[pallet::weight((Weight::from_parts(111_100_000, 0), DispatchClass::Operational, Pays::Yes))]
pub fn sudo(
origin: OriginFor<T>,
call: Box<T::SudoRuntimeCall>,
Expand All @@ -1002,7 +1002,7 @@ mod dispatches {
/// - O(1).
#[allow(deprecated)]
#[pallet::call_index(52)]
#[pallet::weight((*weight, call.get_dispatch_info().class, Pays::No))]
#[pallet::weight((*weight, call.get_dispatch_info().class, Pays::Yes))]
pub fn sudo_unchecked_weight(
origin: OriginFor<T>,
call: Box<T::SudoRuntimeCall>,
Expand Down Expand Up @@ -1071,7 +1071,7 @@ mod dispatches {
#[pallet::call_index(61)]
#[pallet::weight((Weight::from_parts(119_000_000, 0)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(31)), DispatchClass::Operational, Pays::No))]
.saturating_add(T::DbWeight::get().writes(31)), DispatchClass::Operational, Pays::Yes))]
pub fn dissolve_network(
origin: OriginFor<T>,
coldkey: T::AccountId,
Expand Down Expand Up @@ -1848,7 +1848,7 @@ mod dispatches {

/// Sets the pending childkey cooldown (in blocks). Root only.
#[pallet::call_index(109)]
#[pallet::weight((Weight::from_parts(10_000, 0), DispatchClass::Operational, Pays::No))]
#[pallet::weight((Weight::from_parts(10_000, 0), DispatchClass::Operational, Pays::Yes))]
pub fn set_pending_childkey_cooldown(
origin: OriginFor<T>,
cooldown: u64,
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,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: 315,
spec_version: 316,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Loading