@@ -279,6 +279,9 @@ class Options:
279
279
"--dashboard.path" ,
280
280
help = "Path to save the dashboard HTML file. For example: `~/.bittensor/dashboard`." ,
281
281
)
282
+ era = typer .Option (
283
+ 3 , help = "Length (in blocks) for which the transaction should be valid."
284
+ )
282
285
283
286
284
287
def list_prompt (init_var : list , list_type : type , help_text : str ) -> list :
@@ -3112,6 +3115,7 @@ def stake_add(
3112
3115
rate_tolerance : Optional [float ] = Options .rate_tolerance ,
3113
3116
safe_staking : Optional [bool ] = Options .safe_staking ,
3114
3117
allow_partial_stake : Optional [bool ] = Options .allow_partial_stake ,
3118
+ era : int = Options .era ,
3115
3119
prompt : bool = Options .prompt ,
3116
3120
quiet : bool = Options .quiet ,
3117
3121
verbose : bool = Options .verbose ,
@@ -3305,6 +3309,7 @@ def stake_add(
3305
3309
safe_staking ,
3306
3310
rate_tolerance ,
3307
3311
allow_partial_stake ,
3312
+ era ,
3308
3313
)
3309
3314
)
3310
3315
@@ -3356,6 +3361,7 @@ def stake_remove(
3356
3361
rate_tolerance : Optional [float ] = Options .rate_tolerance ,
3357
3362
safe_staking : Optional [bool ] = Options .safe_staking ,
3358
3363
allow_partial_stake : Optional [bool ] = Options .allow_partial_stake ,
3364
+ era : int = Options .era ,
3359
3365
prompt : bool = Options .prompt ,
3360
3366
interactive : bool = typer .Option (
3361
3367
False ,
@@ -3545,6 +3551,7 @@ def stake_remove(
3545
3551
include_hotkeys = include_hotkeys ,
3546
3552
exclude_hotkeys = exclude_hotkeys ,
3547
3553
prompt = prompt ,
3554
+ era = era ,
3548
3555
)
3549
3556
)
3550
3557
elif (
@@ -3599,6 +3606,7 @@ def stake_remove(
3599
3606
safe_staking = safe_staking ,
3600
3607
rate_tolerance = rate_tolerance ,
3601
3608
allow_partial_stake = allow_partial_stake ,
3609
+ era = era ,
3602
3610
)
3603
3611
)
3604
3612
@@ -3626,6 +3634,7 @@ def stake_move(
3626
3634
stake_all : bool = typer .Option (
3627
3635
False , "--stake-all" , "--all" , help = "Stake all" , prompt = False
3628
3636
),
3637
+ era : int = Options .era ,
3629
3638
prompt : bool = Options .prompt ,
3630
3639
quiet : bool = Options .quiet ,
3631
3640
verbose : bool = Options .verbose ,
@@ -3753,6 +3762,7 @@ def stake_move(
3753
3762
destination_hotkey = destination_hotkey ,
3754
3763
amount = amount ,
3755
3764
stake_all = stake_all ,
3765
+ era = era ,
3756
3766
interactive_selection = interactive_selection ,
3757
3767
prompt = prompt ,
3758
3768
)
@@ -3790,6 +3800,7 @@ def stake_transfer(
3790
3800
stake_all : bool = typer .Option (
3791
3801
False , "--stake-all" , "--all" , help = "Stake all" , prompt = False
3792
3802
),
3803
+ era : int = Options .era ,
3793
3804
prompt : bool = Options .prompt ,
3794
3805
quiet : bool = Options .quiet ,
3795
3806
verbose : bool = Options .verbose ,
@@ -3910,6 +3921,7 @@ def stake_transfer(
3910
3921
dest_netuid = dest_netuid ,
3911
3922
dest_coldkey_ss58 = dest_ss58 ,
3912
3923
amount = amount ,
3924
+ era = era ,
3913
3925
interactive_selection = interactive_selection ,
3914
3926
stake_all = stake_all ,
3915
3927
prompt = prompt ,
@@ -3948,6 +3960,7 @@ def stake_swap(
3948
3960
"--all" ,
3949
3961
help = "Swap all available stake" ,
3950
3962
),
3963
+ era : int = Options .era ,
3951
3964
prompt : bool = Options .prompt ,
3952
3965
wait_for_inclusion : bool = Options .wait_for_inclusion ,
3953
3966
wait_for_finalization : bool = Options .wait_for_finalization ,
@@ -4010,6 +4023,7 @@ def stake_swap(
4010
4023
destination_netuid = dest_netuid ,
4011
4024
amount = amount ,
4012
4025
swap_all = swap_all ,
4026
+ era = era ,
4013
4027
interactive_selection = interactive_selection ,
4014
4028
prompt = prompt ,
4015
4029
wait_for_inclusion = wait_for_inclusion ,
0 commit comments