bittensor.core.chain_data.stake_info#

Classes#

StakeInfo

Dataclass for representing stake information linked to hotkey and coldkey pairs.

Module Contents#

class bittensor.core.chain_data.stake_info.StakeInfo[source]#

Dataclass for representing stake information linked to hotkey and coldkey pairs.

Variables:
  • hotkey_ss58 (str) – The SS58 encoded hotkey address.

  • coldkey_ss58 (str) – The SS58 encoded coldkey address.

  • stake (Balance) – The stake associated with the hotkey-coldkey pair, represented as a Balance object.

hotkey_ss58: str#
coldkey_ss58: str#
stake: bittensor.utils.balance.Balance#
classmethod fix_decoded_values(decoded)[source]#

Fixes the decoded values.

Parameters:

decoded (Any)

Return type:

StakeInfo

classmethod from_vec_u8(vec_u8)[source]#

Returns a StakeInfo object from a vec_u8.

Parameters:

vec_u8 (list[int])

Return type:

Optional[StakeInfo]

classmethod list_of_tuple_from_vec_u8(vec_u8)[source]#

Returns a list of StakeInfo objects from a vec_u8.

Parameters:

vec_u8 (list[int])

Return type:

dict[str, list[StakeInfo]]

classmethod list_from_vec_u8(vec_u8)[source]#

Returns a list of StakeInfo objects from a vec_u8.

Parameters:

vec_u8 (list[int])

Return type:

list[StakeInfo]