@@ -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 ,
@@ -1095,7 +1091,7 @@ pub mod pallet {
1095
1091
/// # Weight
1096
1092
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1097
1093
#[ pallet:: call_index( 50 ) ]
1098
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1094
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1099
1095
pub fn sudo_set_liquid_alpha_enabled (
1100
1096
origin : OriginFor < T > ,
1101
1097
netuid : NetUid ,
@@ -1109,7 +1105,7 @@ pub mod pallet {
1109
1105
1110
1106
/// Sets values for liquid alpha
1111
1107
#[ pallet:: call_index( 51 ) ]
1112
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1108
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1113
1109
pub fn sudo_set_alpha_values (
1114
1110
origin : OriginFor < T > ,
1115
1111
netuid : NetUid ,
@@ -1288,7 +1284,7 @@ pub mod pallet {
1288
1284
/// # Weight
1289
1285
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1290
1286
#[ pallet:: call_index( 61 ) ]
1291
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1287
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1292
1288
pub fn sudo_set_toggle_transfer (
1293
1289
origin : OriginFor < T > ,
1294
1290
netuid : NetUid ,
@@ -1418,7 +1414,7 @@ pub mod pallet {
1418
1414
/// # Weight
1419
1415
/// Weight is handled by the `#[pallet::weight]` attribute.
1420
1416
#[ pallet:: call_index( 68 ) ]
1421
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1417
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1422
1418
pub fn sudo_set_alpha_sigmoid_steepness (
1423
1419
origin : OriginFor < T > ,
1424
1420
netuid : NetUid ,
@@ -1453,7 +1449,7 @@ pub mod pallet {
1453
1449
/// # Weight
1454
1450
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1455
1451
#[ pallet:: call_index( 69 ) ]
1456
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1452
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1457
1453
pub fn sudo_set_yuma3_enabled (
1458
1454
origin : OriginFor < T > ,
1459
1455
netuid : NetUid ,
@@ -1477,7 +1473,7 @@ pub mod pallet {
1477
1473
/// # Weight
1478
1474
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1479
1475
#[ pallet:: call_index( 70 ) ]
1480
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1476
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1481
1477
pub fn sudo_set_bonds_reset_enabled (
1482
1478
origin : OriginFor < T > ,
1483
1479
netuid : NetUid ,
@@ -1522,7 +1518,7 @@ pub mod pallet {
1522
1518
/// # Rate Limiting
1523
1519
/// This function is rate-limited to one call per subnet per interval (e.g., one week).
1524
1520
#[ pallet:: call_index( 67 ) ]
1525
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1521
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1526
1522
pub fn sudo_set_sn_owner_hotkey (
1527
1523
origin : OriginFor < T > ,
1528
1524
netuid : NetUid ,
0 commit comments