File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -4620,6 +4620,28 @@ def sudo_set(
4620
4620
"Enter the new value for [dark_orange]alpha_high[/dark_orange]"
4621
4621
)
4622
4622
param_value = f"{ low_val } ,{ high_val } "
4623
+ if param_name == "yuma_version" :
4624
+ if not prompt :
4625
+ err_console .print (
4626
+ "`yuma_version` is set using a different hyperparameter, and thus cannot be set with `--no-prompt`"
4627
+ )
4628
+ return False
4629
+ if Confirm .ask (
4630
+ "`yuma_version` can only be used to toggle Yuma 3. Would you like to toggle Yuma 3?"
4631
+ ):
4632
+ param_name = "yuma3_enabled"
4633
+ question = Prompt .ask (
4634
+ "Would to like to enable or disable Yuma 3?" ,
4635
+ choices = ["enable" , "disable" ],
4636
+ )
4637
+ param_value = "true" if question == "enable" else "false"
4638
+ else :
4639
+ return False
4640
+ if param_name == "subnet_is_active" :
4641
+ err_console .print (
4642
+ "`subnet_is_active` is set by using `btcli subnets start`"
4643
+ )
4644
+ return False
4623
4645
4624
4646
if not param_value :
4625
4647
if not prompt :
Original file line number Diff line number Diff line change @@ -661,6 +661,8 @@ class WalletValidationTypes(Enum):
661
661
"yuma3_enabled" : ("sudo_set_yuma3_enabled" , False ),
662
662
"alpha_sigmoid_steepness" : ("sudo_set_alpha_sigmoid_steepness" , True ),
663
663
"user_liquidity_enabled" : ("toggle_user_liquidity" , False ),
664
+ "bonds_reset_enabled" : ("sudo_set_bonds_reset_enabled" , False ),
665
+ "transfers_enabled" : ("sudo_set_toggle_transfer" , False ),
664
666
}
665
667
666
668
HYPERPARAMS_MODULE = {
You can’t perform that action at this time.
0 commit comments