Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing methods to Async Subtensor #2422

Open
thewhaleking opened this issue Nov 14, 2024 · 0 comments
Open

Add missing methods to Async Subtensor #2422

thewhaleking opened this issue Nov 14, 2024 · 0 comments
Labels
feature new feature added

Comments

@thewhaleking
Copy link
Contributor

thewhaleking commented Nov 14, 2024

Is your feature request related to a problem? Please describe.

Methods that exist in Subtensor that don't exist in AsyncSubtensor

Describe the solution you'd like

Add the following methods to AsyncSubtensor:

get_all_subnets_info
metagraph
is_hotkey_registered_on_subnet
subnetwork_n
get_neuron_for_pubkey_and_subnet
immunity_period
tempo
get_commitment
min_allowed_weights
max_weight_limit
get_prometheus_info
get_all_subnets_info
difficulty
recycle
get_delegate_take
get_delegate_by_hotkey

Describe alternatives you've considered

No response

Additional context

Differing function signatures:
is_hotkey_registered:

  • AsyncSubtensor:
async def is_hotkey_registered(self, netuid: int, hotkey_ss58: str) -> bool:`
  • Subtensor:
def is_hotkey_registered(
    self,
    hotkey_ss58: str,
    netuid: Optional[int] = None,
    block: Optional[int] = None,
) -> bool:
@thewhaleking thewhaleking added the feature new feature added label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature added
Projects
None yet
Development

No branches or pull requests

1 participant