@@ -24,7 +24,7 @@ frame_support::construct_runtime!(
2424 System : frame_system,
2525 Balances : pallet_balances,
2626 AdminUtils : pallet_admin_utils,
27- SubtensorModule : pallet_subtensor:: { Pallet , Call , Storage , Event <T >} ,
27+ SubtensorModule : pallet_subtensor:: { Pallet , Call , Storage , Event <T >, Error < T > } ,
2828 }
2929) ;
3030
@@ -110,7 +110,9 @@ parameter_types! {
110110 pub const InitialSubnetLimit : u16 = 10 ; // Max 10 subnets.
111111 pub const InitialNetworkRateLimit : u64 = 0 ;
112112 pub const InitialTargetStakesPerInterval : u16 = 1 ;
113-
113+ pub const InitialAlphaHigh : u16 = 58982 ; // Represents 0.9 as per the production default
114+ pub const InitialAlphaLow : u16 = 45875 ; // Represents 0.7 as per the production default
115+ pub const InitialLiquidAlphaOn : bool = false ; // Default value for LiquidAlphaOn
114116}
115117
116118impl pallet_subtensor:: Config for Test {
@@ -162,6 +164,9 @@ impl pallet_subtensor::Config for Test {
162164 type InitialSubnetLimit = InitialSubnetLimit ;
163165 type InitialNetworkRateLimit = InitialNetworkRateLimit ;
164166 type InitialTargetStakesPerInterval = InitialTargetStakesPerInterval ;
167+ type AlphaHigh = InitialAlphaHigh ;
168+ type AlphaLow = InitialAlphaLow ;
169+ type LiquidAlphaOn = InitialLiquidAlphaOn ;
165170}
166171
167172#[ derive_impl( frame_system:: config_preludes:: TestDefaultConfig ) ]
@@ -464,6 +469,18 @@ impl pallet_admin_utils::SubtensorInterface<AccountId, Balance, RuntimeOrigin> f
464469 fn set_commit_reveal_weights_enabled ( netuid : u16 , enabled : bool ) {
465470 SubtensorModule :: set_commit_reveal_weights_enabled ( netuid, enabled) ;
466471 }
472+
473+ fn set_liquid_alpha_enabled ( netuid : u16 , enabled : bool ) {
474+ SubtensorModule :: set_liquid_alpha_enabled ( netuid, enabled) ;
475+ }
476+ fn do_set_alpha_values (
477+ origin : RuntimeOrigin ,
478+ netuid : u16 ,
479+ alpha_low : u16 ,
480+ alpha_high : u16 ,
481+ ) -> Result < ( ) , DispatchError > {
482+ SubtensorModule :: do_set_alpha_values ( origin, netuid, alpha_low, alpha_high)
483+ }
467484}
468485
469486impl pallet_admin_utils:: Config for Test {
0 commit comments