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

RFC: runtime_browser #2601

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

mvds00
Copy link

@mvds00 mvds00 commented Jan 27, 2025

RFC: runtime_browser

This code exposes runtime storage items, constants and APIs as if they are mirrored in Python. It is intended to simplify and reduce code, and to close the current gap between subtensor code and bittensor code. As it is based on metadata, it exposes past, current and future runtime items.

E.g. the subnet owner map can be queried using only:

        import bittensor as bt
        bt.runtime.SubtensorModule.SubnetOwner[1]

test_runtime_browser.py contains various examples that demonstrate the proposed concept.

The impact on bittensor is negligible, as it is implemented as a fully separate module.

TODO: write proper PR, format code, etc. - this is just to share the WIP, and have a discussion about the concept and direction to (not) take it.

µ added 2 commits January 27, 2025 00:09
This code exposes runtime storage items, constants and APIs as if they
are mirrored in Python. It is intended to simplify and reduce code, and
to close the current gap between subtensor code and bittensor code. As
it is based on metadata, it exposes past, current and future runtime
items.

E.g. the subnet owner map can be queried using only:

    import bittensor as bt
    bt.runtime.SubtensorModule.SubnetOwner[1]

test_runtime_browser.py contains various examples that demonstrate the
proposed concept.

The impact on bittensor is negligible, as it is implemented as a fully
separate module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant