Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bittensor/core/async_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ async def get_delegated(
block: Optional[int] = None,
block_hash: Optional[str] = None,
reuse_block: bool = False,
) -> list[tuple[DelegateInfo, Balance]]:
) -> list[DelegatedInfo]:
"""
Retrieves a list of delegates and their associated stakes for a given coldkey. This function identifies the
delegates that a specific account has staked tokens on.
Expand All @@ -1892,7 +1892,7 @@ async def get_delegated(
reuse_block: Whether to reuse the last-used blockchain block hash.

Returns:
A list of tuples, each containing a delegate's information and staked amount.
A list containing the delegated information for the specified coldkey.

This function is important for account holders to understand their stake allocations and their involvement in
the network's delegation and consensus mechanisms.
Expand Down
4 changes: 2 additions & 2 deletions bittensor/core/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ def get_delegate_take(self, hotkey_ss58: str, block: Optional[int] = None) -> fl

def get_delegated(
self, coldkey_ss58: str, block: Optional[int] = None
) -> list[tuple["DelegateInfo", Balance]]:
) -> list[DelegatedInfo]:
"""
Retrieves a list of delegates and their associated stakes for a given coldkey. This function identifies the
delegates that a specific account has staked tokens on.
Expand All @@ -1233,7 +1233,7 @@ def get_delegated(
block (Optional[int]): The blockchain block number for the query.

Returns:
A list of tuples, each containing a delegate's information and staked amount.
A list containing the delegated information for the specified coldkey.

This function is important for account holders to understand their stake allocations and their involvement in
the network's delegation and consensus mechanisms.
Expand Down
Loading