bittensor.core.chain_data.subnet_info#
Classes#
Dataclass for subnet info. |
Module Contents#
- class bittensor.core.chain_data.subnet_info.SubnetInfo[source]#
Dataclass for subnet info.
- classmethod from_vec_u8(vec_u8)[source]#
Returns a SubnetInfo object from a
vec_u8
.- Parameters:
- Return type:
Optional[SubnetInfo]
- classmethod list_from_vec_u8(vec_u8)[source]#
Returns a list of SubnetInfo objects from a
vec_u8
.- Parameters:
- Return type:
- classmethod fix_decoded_values(decoded)[source]#
Returns a SubnetInfo object from a decoded SubnetInfo dictionary.
- Parameters:
decoded (dict)
- Return type: