11from dataclasses import dataclass
2-
2+ from bittensor . utils . balance import fixed_to_float
33from bittensor .core .chain_data .info_base import InfoBase
44
55
@@ -36,6 +36,12 @@ class SubnetHyperparameters(InfoBase):
3636 alpha_high (int): High value of alpha.
3737 alpha_low (int): Low value of alpha.
3838 liquid_alpha_enabled (bool): Flag indicating if liquid alpha is enabled.
39+ alpha_sigmoid_steepness (float):
40+ yuma_version (int): Version of yuma.
41+ subnet_is_active (bool): Indicates if subnet is active after START CALL.
42+ transfers_enabled (bool): Flag indicating if transfers are enabled.
43+ bonds_reset_enabled (bool): Flag indicating if bonds are reset enabled.
44+ user_liquidity_enabled (bool): Flag indicating if user liquidity is enabled.
3945 """
4046
4147 rho : int
@@ -65,6 +71,12 @@ class SubnetHyperparameters(InfoBase):
6571 alpha_high : int
6672 alpha_low : int
6773 liquid_alpha_enabled : bool
74+ alpha_sigmoid_steepness : float
75+ yuma_version : int
76+ subnet_is_active : bool
77+ transfers_enabled : bool
78+ bonds_reset_enabled : bool
79+ user_liquidity_enabled : bool
6880
6981 @classmethod
7082 def _from_dict (cls , decoded : dict ) -> "SubnetHyperparameters" :
@@ -75,7 +87,11 @@ def _from_dict(cls, decoded: dict) -> "SubnetHyperparameters":
7587 adjustment_interval = decoded ["adjustment_interval" ],
7688 alpha_high = decoded ["alpha_high" ],
7789 alpha_low = decoded ["alpha_low" ],
90+ alpha_sigmoid_steepness = fixed_to_float (
91+ decoded ["alpha_sigmoid_steepness" ], frac_bits = 32
92+ ),
7893 bonds_moving_avg = decoded ["bonds_moving_avg" ],
94+ bonds_reset_enabled = decoded ["bonds_reset_enabled" ],
7995 commit_reveal_weights_enabled = decoded ["commit_reveal_weights_enabled" ],
8096 commit_reveal_period = decoded ["commit_reveal_period" ],
8197 difficulty = decoded ["difficulty" ],
@@ -93,8 +109,12 @@ def _from_dict(cls, decoded: dict) -> "SubnetHyperparameters":
93109 registration_allowed = decoded ["registration_allowed" ],
94110 rho = decoded ["rho" ],
95111 serving_rate_limit = decoded ["serving_rate_limit" ],
112+ subnet_is_active = decoded ["subnet_is_active" ],
96113 target_regs_per_interval = decoded ["target_regs_per_interval" ],
97114 tempo = decoded ["tempo" ],
115+ transfers_enabled = decoded ["transfers_enabled" ],
116+ user_liquidity_enabled = decoded ["user_liquidity_enabled" ],
98117 weights_rate_limit = decoded ["weights_rate_limit" ],
99118 weights_version = decoded ["weights_version" ],
119+ yuma_version = decoded ["yuma_version" ],
100120 )
0 commit comments