bittensor.core.chain_data.delegate_info#

Classes#

DelegateInfo

Dataclass for delegate information.

DelegateInfoBase

Base class containing common delegate information fields.

DelegatedInfo

Dataclass for delegated information. This class represents a delegate's information

Module Contents#

class bittensor.core.chain_data.delegate_info.DelegateInfo[source]#

Bases: DelegateInfoBase

Dataclass for delegate information.

Additional Attributes:

total_stake (dict[int, Balance]): Total stake of the delegate mapped by netuid. nominators (dict[str, dict[int, Balance]]): Mapping of nominator SS58 addresses to their stakes per subnet.

nominators: dict[str, dict[int, bittensor.utils.balance.Balance]]#
total_stake: dict[int, bittensor.utils.balance.Balance]#
class bittensor.core.chain_data.delegate_info.DelegateInfoBase#

Bases: bittensor.core.chain_data.info_base.InfoBase

Base class containing common delegate information fields.

Variables:
  • hotkey_ss58 (str) – Hotkey of delegate.

  • owner_ss58 (str) – Coldkey of owner.

  • take (float) – Take of the delegate as a percentage.

  • validator_permits (list[int]) – List of subnets that the delegate is allowed to validate on.

  • registrations (list[int]) – List of subnets that the delegate is registered on.

  • return_per_1000 (Balance) – Return per 1000 tao of the delegate over a day.

  • total_daily_return (Balance) – Total daily return of the delegate.

hotkey_ss58: str#
owner_ss58: str#
registrations: list[int]#
return_per_1000: bittensor.utils.balance.Balance#
take: float#
total_daily_return: bittensor.utils.balance.Balance#
validator_permits: list[int]#
class bittensor.core.chain_data.delegate_info.DelegatedInfo#

Bases: DelegateInfoBase

Dataclass for delegated information. This class represents a delegate’s information specific to a particular subnet.

Additional Attributes:

netuid (int): Network ID of the subnet. stake (Balance): Stake amount for this specific delegation.

netuid: int#
stake: bittensor.utils.balance.Balance#