Skip to content

Commit d50b8a3

Browse files
authored
Merge pull request #1943 from opentensor/feat/register-pays-yes
add pays::yes to register and burned_register
2 parents 3d5a12a + e96e86e commit d50b8a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ mod dispatches {
413413
/// - Attempting to set weights with max value exceeding limit.
414414
///
415415
#[pallet::call_index(8)]
416-
#[pallet::weight((Weight::from_parts(2_684_000, 0)
416+
#[pallet::weight((Weight::from_parts(2_000_000, 0)
417417
.saturating_add(T::DbWeight::get().reads(0_u64))
418418
.saturating_add(T::DbWeight::get().writes(0_u64)), DispatchClass::Normal, Pays::No))]
419419
pub fn set_tao_weights(
@@ -693,7 +693,7 @@ mod dispatches {
693693
/// - Attempting to set prometheus information withing the rate limit min.
694694
///
695695
#[pallet::call_index(4)]
696-
#[pallet::weight((Weight::from_parts(28_150_000, 0)
696+
#[pallet::weight((Weight::from_parts(36_090_000, 0)
697697
.saturating_add(T::DbWeight::get().reads(4))
698698
.saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Normal, Pays::No))]
699699
pub fn serve_axon(
@@ -891,7 +891,7 @@ mod dispatches {
891891
#[pallet::call_index(6)]
892892
#[pallet::weight((Weight::from_parts(161_800_000, 0)
893893
.saturating_add(T::DbWeight::get().reads(26))
894-
.saturating_add(T::DbWeight::get().writes(23)), DispatchClass::Normal, Pays::No))]
894+
.saturating_add(T::DbWeight::get().writes(23)), DispatchClass::Normal, Pays::Yes))]
895895
pub fn register(
896896
origin: OriginFor<T>,
897897
netuid: NetUid,
@@ -926,7 +926,7 @@ mod dispatches {
926926
#[pallet::call_index(7)]
927927
#[pallet::weight((Weight::from_parts(278_400_000, 0)
928928
.saturating_add(T::DbWeight::get().reads(49))
929-
.saturating_add(T::DbWeight::get().writes(43)), DispatchClass::Normal, Pays::No))]
929+
.saturating_add(T::DbWeight::get().writes(43)), DispatchClass::Normal, Pays::Yes))]
930930
pub fn burned_register(
931931
origin: OriginFor<T>,
932932
netuid: NetUid,
@@ -1575,7 +1575,7 @@ mod dispatches {
15751575
/// * `TxRateLimitExceeded`:
15761576
/// - Thrown if key has hit transaction rate limit
15771577
#[pallet::call_index(83)]
1578-
#[pallet::weight((Weight::from_parts(28_910_000, 0)
1578+
#[pallet::weight((Weight::from_parts(22_070_000, 0)
15791579
.saturating_add(T::DbWeight::get().reads(6))
15801580
.saturating_add(T::DbWeight::get().writes(0)), DispatchClass::Operational, Pays::Yes))]
15811581
pub fn unstake_all(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
@@ -1608,7 +1608,7 @@ mod dispatches {
16081608
/// * `TxRateLimitExceeded`:
16091609
/// - Thrown if key has hit transaction rate limit
16101610
#[pallet::call_index(84)]
1611-
#[pallet::weight((Weight::from_parts(395_800_000, 0)
1611+
#[pallet::weight((Weight::from_parts(294_800_000, 0)
16121612
.saturating_add(T::DbWeight::get().reads(33))
16131613
.saturating_add(T::DbWeight::get().writes(16)), DispatchClass::Operational, Pays::Yes))]
16141614
pub fn unstake_all_alpha(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
@@ -2075,7 +2075,7 @@ mod dispatches {
20752075
/// at which or better (higher) the staking should execute.
20762076
/// Without limit_price it remove all the stake similar to `remove_stake` extrinsic
20772077
#[pallet::call_index(103)]
2078-
#[pallet::weight((Weight::from_parts(421_500_000, 10142)
2078+
#[pallet::weight((Weight::from_parts(315_200_000, 10142)
20792079
.saturating_add(T::DbWeight::get().reads(30_u64))
20802080
.saturating_add(T::DbWeight::get().writes(14_u64)), DispatchClass::Normal, Pays::Yes))]
20812081
pub fn remove_stake_full_limit(
@@ -2156,7 +2156,7 @@ mod dispatches {
21562156
/// Emits a `SymbolUpdated` event on success.
21572157
#[pallet::call_index(112)]
21582158
#[pallet::weight((
2159-
Weight::from_parts(28_910_000, 0).saturating_add(T::DbWeight::get().reads_writes(4, 1)),
2159+
Weight::from_parts(19_550_000, 0).saturating_add(T::DbWeight::get().reads_writes(4, 1)),
21602160
DispatchClass::Operational,
21612161
Pays::Yes
21622162
))]

0 commit comments

Comments
 (0)