Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
24 changes: 12 additions & 12 deletions pallets/subtensor/src/macros/dispatches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ mod dispatches {
#[pallet::call_index(62)]
#[pallet::weight((Weight::from_parts(135_900_000, 0)
.saturating_add(T::DbWeight::get().reads(24_u64))
.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 @@ -1087,7 +1087,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 @@ -1169,7 +1169,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 @@ -1197,7 +1197,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 @@ -1222,7 +1222,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 @@ -1251,7 +1251,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 @@ -1276,7 +1276,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 @@ -1345,7 +1345,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 @@ -1527,7 +1527,7 @@ mod dispatches {
/// - The ip type v4 or v6.
///
#[pallet::call_index(68)]
#[pallet::weight((Weight::from_parts(30_550_000, 0)
#[pallet::weight((Weight::from_parts(38_230_000, 0)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Normal, Pays::Yes))]
pub fn set_identity(
Expand Down Expand Up @@ -1569,7 +1569,7 @@ mod dispatches {
/// * `subnet_contact` (Vec<u8>):
/// - The contact information for the subnet.
#[pallet::call_index(78)]
#[pallet::weight((Weight::from_parts(18_980_000, 0)
#[pallet::weight((Weight::from_parts(24_350_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Normal, Pays::Yes))]
pub fn set_subnet_identity(
Expand Down Expand Up @@ -2120,7 +2120,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 Expand Up @@ -2261,7 +2261,7 @@ mod dispatches {
/// * commit_reveal_version (`u16`):
/// - The client (bittensor-drand) version
#[pallet::call_index(113)]
#[pallet::weight((Weight::from_parts(80_690_000, 0)
#[pallet::weight((Weight::from_parts(63_160_000, 0)
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
pub fn commit_timelocked_weights(
Expand Down
Loading