Skip to content

Commit c4d5f98

Browse files
committed
Merge branch 'feat/subsubnets' of github.com:opentensor/subtensor into feat/subsubnets
2 parents f251b01 + fff6f0b commit c4d5f98

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ mod dispatches {
7878
/// - Attempting to set weights with max value exceeding limit.
7979
#[pallet::call_index(0)]
8080
#[pallet::weight((Weight::from_parts(15_540_000_000, 0)
81-
.saturating_add(T::DbWeight::get().reads(4111))
81+
.saturating_add(T::DbWeight::get().reads(4112_u64))
8282
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
8383
pub fn set_weights(
8484
origin: OriginFor<T>,
@@ -197,9 +197,9 @@ mod dispatches {
197197
/// - On failure for each failed item in the batch.
198198
///
199199
#[pallet::call_index(80)]
200-
#[pallet::weight((Weight::from_parts(95_160_000, 0)
201-
.saturating_add(T::DbWeight::get().reads(14))
202-
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
200+
#[pallet::weight((Weight::from_parts(19_180_000, 0)
201+
.saturating_add(T::DbWeight::get().reads(1_u64))
202+
.saturating_add(T::DbWeight::get().writes(0_u64)), DispatchClass::Normal, Pays::No))]
203203
pub fn batch_set_weights(
204204
origin: OriginFor<T>,
205205
netuids: Vec<Compact<NetUid>>,
@@ -229,8 +229,8 @@ mod dispatches {
229229
/// - Attempting to commit when the user has more than the allowed limit of unrevealed commits.
230230
///
231231
#[pallet::call_index(96)]
232-
#[pallet::weight((Weight::from_parts(55_130_000, 0)
233-
.saturating_add(T::DbWeight::get().reads(7))
232+
#[pallet::weight((Weight::from_parts(67_770_000, 0)
233+
.saturating_add(T::DbWeight::get().reads(9_u64))
234234
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
235235
pub fn commit_weights(
236236
origin: T::RuntimeOrigin,
@@ -295,8 +295,8 @@ mod dispatches {
295295
/// - On failure for each failed item in the batch.
296296
///
297297
#[pallet::call_index(100)]
298-
#[pallet::weight((Weight::from_parts(82_010_000, 0)
299-
.saturating_add(T::DbWeight::get().reads(8))
298+
#[pallet::weight((Weight::from_parts(106_600_000, 0)
299+
.saturating_add(T::DbWeight::get().reads(10_u64))
300300
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
301301
pub fn batch_commit_weights(
302302
origin: OriginFor<T>,
@@ -345,7 +345,7 @@ mod dispatches {
345345
///
346346
#[pallet::call_index(97)]
347347
#[pallet::weight((Weight::from_parts(122_000_000, 0)
348-
.saturating_add(T::DbWeight::get().reads(16))
348+
.saturating_add(T::DbWeight::get().reads(17_u64))
349349
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
350350
pub fn reveal_weights(
351351
origin: T::RuntimeOrigin,
@@ -442,7 +442,7 @@ mod dispatches {
442442
///
443443
#[pallet::call_index(99)]
444444
#[pallet::weight((Weight::from_parts(77_750_000, 0)
445-
.saturating_add(T::DbWeight::get().reads(7_u64))
445+
.saturating_add(T::DbWeight::get().reads(9_u64))
446446
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
447447
pub fn commit_crv3_weights(
448448
origin: T::RuntimeOrigin,
@@ -537,7 +537,7 @@ mod dispatches {
537537
/// - The input vectors are of mismatched lengths.
538538
#[pallet::call_index(98)]
539539
#[pallet::weight((Weight::from_parts(412_000_000, 0)
540-
.saturating_add(T::DbWeight::get().reads(16))
540+
.saturating_add(T::DbWeight::get().reads(17_u64))
541541
.saturating_add(T::DbWeight::get().writes(2_u64)), DispatchClass::Normal, Pays::No))]
542542
pub fn batch_reveal_weights(
543543
origin: T::RuntimeOrigin,
@@ -1095,7 +1095,7 @@ mod dispatches {
10951095
///
10961096
#[pallet::call_index(6)]
10971097
#[pallet::weight((Weight::from_parts(197_900_000, 0)
1098-
.saturating_add(T::DbWeight::get().reads(26))
1098+
.saturating_add(T::DbWeight::get().reads(27_u64))
10991099
.saturating_add(T::DbWeight::get().writes(23)), DispatchClass::Normal, Pays::Yes))]
11001100
pub fn register(
11011101
origin: OriginFor<T>,
@@ -1112,7 +1112,7 @@ mod dispatches {
11121112
/// Register the hotkey to root network
11131113
#[pallet::call_index(62)]
11141114
#[pallet::weight((Weight::from_parts(111_700_000, 0)
1115-
.saturating_add(T::DbWeight::get().reads(23))
1115+
.saturating_add(T::DbWeight::get().reads(24_u64))
11161116
.saturating_add(T::DbWeight::get().writes(20)), DispatchClass::Normal, Pays::No))]
11171117
pub fn root_register(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
11181118
Self::do_root_register(origin, hotkey)
@@ -1130,7 +1130,7 @@ mod dispatches {
11301130
/// User register a new subnetwork via burning token
11311131
#[pallet::call_index(7)]
11321132
#[pallet::weight((Weight::from_parts(354_200_000, 0)
1133-
.saturating_add(T::DbWeight::get().reads(49))
1133+
.saturating_add(T::DbWeight::get().reads(50_u64))
11341134
.saturating_add(T::DbWeight::get().writes(43)), DispatchClass::Normal, Pays::Yes))]
11351135
pub fn burned_register(
11361136
origin: OriginFor<T>,
@@ -1399,7 +1399,7 @@ mod dispatches {
13991399
/// User register a new subnetwork
14001400
#[pallet::call_index(59)]
14011401
#[pallet::weight((Weight::from_parts(235_400_000, 0)
1402-
.saturating_add(T::DbWeight::get().reads(36))
1402+
.saturating_add(T::DbWeight::get().reads(37_u64))
14031403
.saturating_add(T::DbWeight::get().writes(52)), DispatchClass::Normal, Pays::No))]
14041404
pub fn register_network(origin: OriginFor<T>, hotkey: T::AccountId) -> DispatchResult {
14051405
Self::do_register_network(origin, &hotkey, 1, None)
@@ -1744,7 +1744,7 @@ mod dispatches {
17441744
/// User register a new subnetwork
17451745
#[pallet::call_index(79)]
17461746
#[pallet::weight((Weight::from_parts(234_200_000, 0)
1747-
.saturating_add(T::DbWeight::get().reads(35))
1747+
.saturating_add(T::DbWeight::get().reads(36_u64))
17481748
.saturating_add(T::DbWeight::get().writes(51)), DispatchClass::Normal, Pays::No))]
17491749
pub fn register_network_with_identity(
17501750
origin: OriginFor<T>,
@@ -2407,7 +2407,7 @@ mod dispatches {
24072407
/// - The client (bittensor-drand) version
24082408
#[pallet::call_index(113)]
24092409
#[pallet::weight((Weight::from_parts(64_530_000, 0)
2410-
.saturating_add(T::DbWeight::get().reads(7_u64))
2410+
.saturating_add(T::DbWeight::get().reads(9_u64))
24112411
.saturating_add(T::DbWeight::get().writes(2)), DispatchClass::Normal, Pays::No))]
24122412
pub fn commit_timelocked_weights(
24132413
origin: T::RuntimeOrigin,

0 commit comments

Comments
 (0)