-
Notifications
You must be signed in to change notification settings - Fork 410
WIP: runtime browser #3051
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
base: SDKv10
Are you sure you want to change the base?
WIP: runtime browser #3051
Conversation
…roken-e2e-tests Fixes broken e2e tests
…r async subtensor
…nc-test-crv4 Add async crv4 e2e test
…elockedWeightCommits-instead-of-CRV3WeightCommitsV2 Use `TimelockedWeightCommits` instead of `CRV3WeightCommitsV2`
…t-types-for-get_delegated fix: reflect correct return types for get_delegated
…y-behavior-for-test-safe-staking-scenario Fix `flaky` e2e test (tests.e2e_tests.test_staking.test_safe_staking_scenarios)
610045f
to
5f13fcd
Compare
I really like the way JS does it where they use |
Hey @mvds00 feels like it's time to update your PR. Pls locate your implementation in bittensor.extras directory. This directory is specifically designed to house all Bittensor logic extensions. I think your logic is perfectly suited for this. |
7528cbb
to
2a4f978
Compare
I will look into it and update the PR. In the meantime the code evolved a bit further, as I have used it in various personal projects. |
It's great that the code is already working. That means it's improved. You can close this PR and open a new one. Just please take into account all the comments above in this PR. |
Description of the Change
This PR implements a new, simple way of interacting with bittensor runtime data. It was pushed 8 months ago but got some renewed attention recently and is now discussed in CoR channel btcli-btsdk. An async version was added.
The core ideas are that:
__repr__()
should be helpful as wellThe PR contains ample examples, but here are a few that highlight how the points above are met, in a
python -i
instance:Alternate Designs
No alternate designs were considered, as it can't get any simpler than this.
Possible Drawbacks
More code to maintain. The magic code mapping the metadata to magical objects isn't easy to digest.
Verification Process
N/A, this is just a first request for feedback.
Release Notes
Improved interface to allow python access to subtensor runtime variables.
Branch Acknowledgement
[ ] I am acknowledging that
I am opening this branch againstBranch is built on top of branch SDKv10staging