@@ -376,13 +376,11 @@ pub mod pallet {
376
376
/// It is only callable by the root account or subnet owner.
377
377
/// The extrinsic will call the Subtensor pallet to set the adjustment alpha.
378
378
#[ pallet:: call_index( 9 ) ]
379
- #[ pallet:: weight( (
379
+ #[ pallet:: weight(
380
380
Weight :: from_parts( 14_000_000 , 0 )
381
381
. saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) )
382
- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 1 ) ) ,
383
- DispatchClass :: Operational ,
384
- Pays :: No
385
- ) ) ]
382
+ . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 1 ) )
383
+ ) ]
386
384
pub fn sudo_set_adjustment_alpha (
387
385
origin : OriginFor < T > ,
388
386
netuid : NetUid ,
@@ -602,12 +600,10 @@ pub mod pallet {
602
600
/// It is only callable by the root account or subnet owner.
603
601
/// The extrinsic will call the Subtensor pallet to set the network PoW registration allowed.
604
602
#[ pallet:: call_index( 20 ) ]
605
- #[ pallet:: weight( (
603
+ #[ pallet:: weight(
606
604
Weight :: from_parts( 14_000_000 , 0 )
607
- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) ) ,
608
- DispatchClass :: Operational ,
609
- Pays :: No
610
- ) ) ]
605
+ . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) )
606
+ ) ]
611
607
pub fn sudo_set_network_pow_registration_allowed (
612
608
origin : OriginFor < T > ,
613
609
netuid : NetUid ,
@@ -1130,7 +1126,7 @@ pub mod pallet {
1130
1126
/// # Weight
1131
1127
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1132
1128
#[ pallet:: call_index( 50 ) ]
1133
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1129
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1134
1130
pub fn sudo_set_liquid_alpha_enabled (
1135
1131
origin : OriginFor < T > ,
1136
1132
netuid : NetUid ,
@@ -1144,7 +1140,7 @@ pub mod pallet {
1144
1140
1145
1141
/// Sets values for liquid alpha
1146
1142
#[ pallet:: call_index( 51 ) ]
1147
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1143
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1148
1144
pub fn sudo_set_alpha_values (
1149
1145
origin : OriginFor < T > ,
1150
1146
netuid : NetUid ,
@@ -1379,7 +1375,7 @@ pub mod pallet {
1379
1375
/// # Weight
1380
1376
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1381
1377
#[ pallet:: call_index( 61 ) ]
1382
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1378
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1383
1379
pub fn sudo_set_toggle_transfer (
1384
1380
origin : OriginFor < T > ,
1385
1381
netuid : NetUid ,
@@ -1509,7 +1505,7 @@ pub mod pallet {
1509
1505
/// # Weight
1510
1506
/// Weight is handled by the `#[pallet::weight]` attribute.
1511
1507
#[ pallet:: call_index( 68 ) ]
1512
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1508
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1513
1509
pub fn sudo_set_alpha_sigmoid_steepness (
1514
1510
origin : OriginFor < T > ,
1515
1511
netuid : NetUid ,
@@ -1544,7 +1540,7 @@ pub mod pallet {
1544
1540
/// # Weight
1545
1541
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1546
1542
#[ pallet:: call_index( 69 ) ]
1547
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1543
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1548
1544
pub fn sudo_set_yuma3_enabled (
1549
1545
origin : OriginFor < T > ,
1550
1546
netuid : NetUid ,
@@ -1568,7 +1564,7 @@ pub mod pallet {
1568
1564
/// # Weight
1569
1565
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1570
1566
#[ pallet:: call_index( 70 ) ]
1571
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1567
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1572
1568
pub fn sudo_set_bonds_reset_enabled (
1573
1569
origin : OriginFor < T > ,
1574
1570
netuid : NetUid ,
@@ -1613,7 +1609,7 @@ pub mod pallet {
1613
1609
/// # Rate Limiting
1614
1610
/// This function is rate-limited to one call per subnet per interval (e.g., one week).
1615
1611
#[ pallet:: call_index( 67 ) ]
1616
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1612
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1617
1613
pub fn sudo_set_sn_owner_hotkey (
1618
1614
origin : OriginFor < T > ,
1619
1615
netuid : NetUid ,
0 commit comments