@@ -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 ,
@@ -1132,7 +1128,7 @@ pub mod pallet {
1132
1128
/// # Weight
1133
1129
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1134
1130
#[ pallet:: call_index( 50 ) ]
1135
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1131
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1136
1132
pub fn sudo_set_liquid_alpha_enabled (
1137
1133
origin : OriginFor < T > ,
1138
1134
netuid : NetUid ,
@@ -1146,7 +1142,7 @@ pub mod pallet {
1146
1142
1147
1143
/// Sets values for liquid alpha
1148
1144
#[ pallet:: call_index( 51 ) ]
1149
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1145
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1150
1146
pub fn sudo_set_alpha_values (
1151
1147
origin : OriginFor < T > ,
1152
1148
netuid : NetUid ,
@@ -1385,7 +1381,7 @@ pub mod pallet {
1385
1381
/// # Weight
1386
1382
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1387
1383
#[ pallet:: call_index( 61 ) ]
1388
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1384
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1389
1385
pub fn sudo_set_toggle_transfer (
1390
1386
origin : OriginFor < T > ,
1391
1387
netuid : NetUid ,
@@ -1515,7 +1511,7 @@ pub mod pallet {
1515
1511
/// # Weight
1516
1512
/// Weight is handled by the `#[pallet::weight]` attribute.
1517
1513
#[ pallet:: call_index( 68 ) ]
1518
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1514
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1519
1515
pub fn sudo_set_alpha_sigmoid_steepness (
1520
1516
origin : OriginFor < T > ,
1521
1517
netuid : NetUid ,
@@ -1550,7 +1546,7 @@ pub mod pallet {
1550
1546
/// # Weight
1551
1547
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1552
1548
#[ pallet:: call_index( 69 ) ]
1553
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1549
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1554
1550
pub fn sudo_set_yuma3_enabled (
1555
1551
origin : OriginFor < T > ,
1556
1552
netuid : NetUid ,
@@ -1574,7 +1570,7 @@ pub mod pallet {
1574
1570
/// # Weight
1575
1571
/// This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
1576
1572
#[ pallet:: call_index( 70 ) ]
1577
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1573
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1578
1574
pub fn sudo_set_bonds_reset_enabled (
1579
1575
origin : OriginFor < T > ,
1580
1576
netuid : NetUid ,
@@ -1619,7 +1615,7 @@ pub mod pallet {
1619
1615
/// # Rate Limiting
1620
1616
/// This function is rate-limited to one call per subnet per interval (e.g., one week).
1621
1617
#[ pallet:: call_index( 67 ) ]
1622
- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1618
+ #[ pallet:: weight( ( 1_000_000 , DispatchClass :: Normal , Pays :: Yes ) ) ] // TODO: add proper weights
1623
1619
pub fn sudo_set_sn_owner_hotkey (
1624
1620
origin : OriginFor < T > ,
1625
1621
netuid : NetUid ,
0 commit comments