@@ -378,13 +378,11 @@ pub mod pallet {
378
378
/// It is only callable by the root account or subnet owner.
379
379
/// The extrinsic will call the Subtensor pallet to set the adjustment alpha.
380
380
#[ pallet:: call_index( 9 ) ]
381
- #[ pallet:: weight( (
381
+ #[ pallet:: weight(
382
382
Weight :: from_parts( 14_000_000 , 0 )
383
383
. saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) )
384
- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 1 ) ) ,
385
- DispatchClass :: Operational ,
386
- Pays :: No
387
- ) ) ]
384
+ . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . reads( 1 ) )
385
+ ) ]
388
386
pub fn sudo_set_adjustment_alpha (
389
387
origin : OriginFor < T > ,
390
388
netuid : NetUid ,
@@ -604,12 +602,10 @@ pub mod pallet {
604
602
/// It is only callable by the root account or subnet owner.
605
603
/// The extrinsic will call the Subtensor pallet to set the network PoW registration allowed.
606
604
#[ pallet:: call_index( 20 ) ]
607
- #[ pallet:: weight( (
605
+ #[ pallet:: weight(
608
606
Weight :: from_parts( 14_000_000 , 0 )
609
- . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) ) ,
610
- DispatchClass :: Operational ,
611
- Pays :: No
612
- ) ) ]
607
+ . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) )
608
+ ) ]
613
609
pub fn sudo_set_network_pow_registration_allowed (
614
610
origin : OriginFor < T > ,
615
611
netuid : NetUid ,
@@ -1113,7 +1109,7 @@ pub mod pallet {
1113
1109
/// # Weight
1114
1110
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1115
1111
#[ pallet:: call_index( 50 ) ]
1116
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1112
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1117
1113
pub fn sudo_set_liquid_alpha_enabled (
1118
1114
origin : OriginFor < T > ,
1119
1115
netuid : NetUid ,
@@ -1127,7 +1123,7 @@ pub mod pallet {
1127
1123
1128
1124
/// Sets values for liquid alpha
1129
1125
#[ pallet:: call_index( 51 ) ]
1130
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1126
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1131
1127
pub fn sudo_set_alpha_values (
1132
1128
origin : OriginFor < T > ,
1133
1129
netuid : NetUid ,
@@ -1306,7 +1302,7 @@ pub mod pallet {
1306
1302
/// # Weight
1307
1303
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1308
1304
#[ pallet:: call_index( 61 ) ]
1309
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1305
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1310
1306
pub fn sudo_set_toggle_transfer (
1311
1307
origin : OriginFor < T > ,
1312
1308
netuid : NetUid ,
@@ -1436,7 +1432,7 @@ pub mod pallet {
1436
1432
/// # Weight
1437
1433
/// Weight is handled by the `#[pallet::weight]` attribute.
1438
1434
#[ pallet:: call_index( 68 ) ]
1439
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1435
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1440
1436
pub fn sudo_set_alpha_sigmoid_steepness (
1441
1437
origin : OriginFor < T > ,
1442
1438
netuid : NetUid ,
@@ -1471,7 +1467,7 @@ pub mod pallet {
1471
1467
/// # Weight
1472
1468
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1473
1469
#[ pallet:: call_index( 69 ) ]
1474
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1470
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1475
1471
pub fn sudo_set_yuma3_enabled (
1476
1472
origin : OriginFor < T > ,
1477
1473
netuid : NetUid ,
@@ -1495,7 +1491,7 @@ pub mod pallet {
1495
1491
/// # Weight
1496
1492
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1497
1493
#[ pallet:: call_index( 70 ) ]
1498
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1494
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1499
1495
pub fn sudo_set_bonds_reset_enabled (
1500
1496
origin : OriginFor < T > ,
1501
1497
netuid : NetUid ,
@@ -1540,7 +1536,7 @@ pub mod pallet {
1540
1536
/// # Rate Limiting
1541
1537
/// This function is rate-limited to one call per subnet per interval (e.g., one week).
1542
1538
#[ pallet:: call_index( 67 ) ]
1543
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1539
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1544
1540
pub fn sudo_set_sn_owner_hotkey (
1545
1541
origin : OriginFor < T > ,
1546
1542
netuid : NetUid ,
0 commit comments