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 specific to a particular subnet.

Module Contents#

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

Bases: DelegateInfoBase

Dataclass for delegate information.

Additional Attributes:

total_stake: Total stake of the delegate mapped by netuid. nominators: 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[source]#

Bases: bittensor.core.chain_data.info_base.InfoBase

Base class containing common delegate information fields.

Variables:
  • hotkey_ss58 – Hotkey of delegate.

  • owner_ss58 – Coldkey of owner.

  • take – Take of the delegate as a percentage.

  • validator_permits – List of subnets that the delegate is allowed to validate on.

  • registrations – List of subnets that the delegate is registered on.

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

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

Bases: DelegateInfoBase

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

Additional Attributes:

netuid: Network ID of the subnet. stake: Stake amount for this specific delegation.

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