Skip to content
Open
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
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
30 changes: 15 additions & 15 deletions pallets/subtensor/src/macros/dispatches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ mod dispatches {
/// - Attempting to set prometheus information withing the rate limit min.
///
#[pallet::call_index(40)]
#[pallet::weight((Weight::from_parts(41_240_000, 0)
#[pallet::weight((Weight::from_parts(32_530_000, 0)
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Normal, Pays::No))]
pub fn serve_axon_tls(
Expand Down 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 @@ -1041,7 +1041,7 @@ mod dispatches {
#[pallet::call_index(59)]
#[pallet::weight((Weight::from_parts(235_400_000, 0)
.saturating_add(T::DbWeight::get().reads(36))
.saturating_add(T::DbWeight::get().writes(52)), DispatchClass::Normal, Pays::Yes))]
.saturating_add(T::DbWeight::get().writes(51_u64)), DispatchClass::Normal, Pays::Yes))]
pub fn register_network(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
Self::do_register_network(origin, &hotkey, 1, None)
}
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 @@ -1253,7 +1253,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 @@ -1295,7 +1295,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 @@ -1328,7 +1328,7 @@ mod dispatches {
#[pallet::call_index(79)]
#[pallet::weight((Weight::from_parts(234_200_000, 0)
.saturating_add(T::DbWeight::get().reads(35))
.saturating_add(T::DbWeight::get().writes(51)), DispatchClass::Normal, Pays::Yes))]
.saturating_add(T::DbWeight::get().writes(50_u64)), DispatchClass::Normal, Pays::Yes))]
pub fn register_network_with_identity(
origin: OriginFor<T>,
hotkey: 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 Expand Up @@ -1989,7 +1989,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(7_u64))
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
pub fn commit_timelocked_weights(
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