Merged
Conversation
Expands the type registry to include all the available options
…th tests (#2352) * add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests * remove commented code * update `_terminate_workers_and_wait_for_exit` by review
…le` and related extrinsics (#2359) * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics * formatter * Update bittensor/core/extrinsics/registration.py Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
* add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data * add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff * add `Subtensor.get_all_subnets_info` method and related stuff * add `Subtensor.get_delegate_take` method and tests * ruff * remove unused import
* replace `rich.console` to `btlogging.logging` * update requirements * use whole path import * fix some logging * fix registration.py * ruff * del prometheus.py * fix review comments
* create the copy of `bittensor/core/subtensor.py` with async suffix. * add async_substrate_interface.py * update `bittensor.utils.format_error_message` to be compatible with async_subtensor * update `bittensor.core.chain_data` * update `bittensor.core.async_subtensor.py` from btcli * add DelegatesDetails for async_subtensor * add validate_chain_endpoint for async_subtensor * update async_substrate_interface.py by Optional where acceptable and doesn't brake logic * improve settings for async_subtensor.py * fix format errors * fix annotations * add async_subtensor.py with adaptation to SDK (all methods checked and work well) * update settings.py to be compatible with async_extrinsics * add async_transfer extrinsic * add async_registration extrinsic * add async_root extrinsics * ruff * Update bittensor/core/extrinsics/async_transfer.py Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> * fix comments review * avoid non-direct import within inner code (fix circular import) * del unused code * del prometheus.py * solving conflict * ruff --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
* create the copy of `bittensor/core/subtensor.py` with async suffix. * add async_substrate_interface.py * update `bittensor.utils.format_error_message` to be compatible with async_subtensor * update `bittensor.core.chain_data` * update `bittensor.core.async_subtensor.py` from btcli * add DelegatesDetails for async_subtensor * add validate_chain_endpoint for async_subtensor * update async_substrate_interface.py by Optional where acceptable and doesn't brake logic * improve settings for async_subtensor.py * fix format errors * fix annotations * add async_subtensor.py with adaptation to SDK (all methods checked and work well) * update settings.py to be compatible with async_extrinsics * add async_transfer extrinsic * add async_registration extrinsic * add async_root extrinsics * ruff * Update bittensor/core/extrinsics/async_transfer.py Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> * fix comments review * avoid non-direct import within inner code (fix circular import) * del unused code * update AsyncSubtensor (add methods, fix tests) * Update bittensor/core/async_subtensor.py Co-authored-by: Paweł Polewicz <p.polewicz@gmail.com> * fix await properties and remove double format_error_message call * fix review comments * improve docstrings * fix --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> Co-authored-by: Paweł Polewicz <p.polewicz@gmail.com>
…prompt-from-sdk # Conflicts: # bittensor/core/async_subtensor.py # bittensor/core/extrinsics/async_root.py
…m-sdk Avoid using `prompt` in SDK
Backmerge/8.2.0
* Updates changelog * fix: logging weights correctly in utils/weight_utils.py * Update CHANGELOG.md
* add ProposalVoteData test, AsyncSubtensor.encode_params test * test for `AsyncSubtensor.get_current_block` * test for `AsyncSubtensor.get_block_hash` * test for `AsyncSubtensor.is_hotkey_registered_any` * test for `AsyncSubtensor.get_subnet_burn_cost` * test for `AsyncSubtensor.get_total_subnets` * test for `AsyncSubtensor.get_subnets` * test for `AsyncSubtensor.is_hotkey_delegate` * test for `AsyncSubtensor.get_delegates` * replace spec to autospec because of python 3.11 doesn't accept the first one * Update tests/unit_tests/test_async_subtensor.py Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> * fix review comments --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com>
* Extend period for fastblock e2e tests_incentive.py * Ruff * Add Constant
Remove unused import
…ockets-v14 Handles websockets v14+ in async
* test for `AsyncSubtensor.get_stake_info_for_coldkey` * test for `AsyncSubtensor.get_stake_for_coldkey_and_hotkey` * test for `AsyncSubtensor.query_runtime_api` * test for `AsyncSubtensor.get_balance` * added test `AsyncSubtensor.test_get_transfer_fee` (3 cases) * optimized import * added tests for `AsyncSubtensor.get_total_stake_for_*` * ruff * Update bittensor/core/async_subtensor.py Co-authored-by: Cameron Fairchild <cameron@opentensor.dev> * Update bittensor/core/async_subtensor.py Co-authored-by: Cameron Fairchild <cameron@opentensor.dev> --------- Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
* added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * ruff
* Handles new PasswordError from btwallet. * Ruff, docstrings. * Fixes hotkey unlock rather than coldkey * Added unit test. * Added unit test. Add integration test. * Removed coldkeypub * Opinions. * More tests * grammar * Update test_utils.py * bump up btwallet version * fix wording * fix wording * Update tests/unit_tests/utils/test_utils.py Co-authored-by: Cameron Fairchild <cameron@opentensor.dev> --------- Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com> Co-authored-by: Roman <roman@opentensor.dev> Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
* added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * ruff * move out `_decode_hex_identity_dict` from inner function * added tests until `AsyncSubtensor.query_identity` * added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * fix * ruff
* added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * ruff * move out `_decode_hex_identity_dict` from inner function * added tests until `AsyncSubtensor.query_identity` * added tests until `AsyncSubtensor.get_hotkey_owner` * Handle new PasswordError from btwallet (#2406) * Handles new PasswordError from btwallet. * Ruff, docstrings. * Fixes hotkey unlock rather than coldkey * Added unit test. * Added unit test. Add integration test. * Removed coldkeypub * Opinions. * More tests * grammar * Update test_utils.py * bump up btwallet version * fix wording * fix wording * Update tests/unit_tests/utils/test_utils.py Co-authored-by: Cameron Fairchild <cameron@opentensor.dev> --------- Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com> Co-authored-by: Roman <roman@opentensor.dev> Co-authored-by: Cameron Fairchild <cameron@opentensor.dev> * [Tests] AsyncSubtensor (Part 4) (#2410) * added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * ruff * move out `_decode_hex_identity_dict` from inner function * added tests until `AsyncSubtensor.query_identity` * added tests from `AsyncSubtensor.get_netuids_for_hotkey` until `AsyncSubtensor.neurons_lite` * fix * ruff --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
* add methods to fix set_weights extrinsic * replace `[color]...[/color]`
…ecode-req Update bt-decode requirement
* added test for `sign_and_send_extrinsic` * added test for `get_children` * added test for `get_subnet_hyperparameters` * added test for `get_vote_data` * added test for `is_hotkey_registered` * added test for `get_uid_for_hotkey_on_subnet` * added test for `blocks_since_last_update`
* Expands the type registry to include all the available options (#2353) Expands the type registry to include all the available options * add `Subtensor.register`, `Subtensor.difficulty` and related staff with tests (#2352) * add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests * remove commented code * update `_terminate_workers_and_wait_for_exit` by review * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics (#2359) * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics * formatter * Update bittensor/core/extrinsics/registration.py Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> * Poem "Risen from the Past". Act 3. (#2363) * add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data * add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff * add `Subtensor.get_all_subnets_info` method and related stuff * add `Subtensor.get_delegate_take` method and tests * ruff * remove unused import * default port from 9946 to 9944 (#2376) * remove unused prometheus extrinsic (#2378) * Replace rich.console to btlogging.loggin (#2377) * replace `rich.console` to `btlogging.logging` * update requirements * use whole path import * fix some logging * fix registration.py * ruff * del prometheus.py * fix review comments * Merge pull request #2382 from opentensor/feat/roman/remove-prompt-from-sdk Avoid using `prompt` in SDK * Handle SSL Error on Connection (#2384) * Add `subvortex` subnet and tests (#2395) * add `subvortex` subnet and tests * ruff * Bumps version and updates changelog --------- Co-authored-by: Benjamin Himes <37844818+thewhaleking@users.noreply.github.com> Co-authored-by: ibraheem-opentensor <165814940+ibraheem-opentensor@users.noreply.github.com> Co-authored-by: ibraheem-opentensor <ibraheem@opentensor.dev>
# Conflicts: # bittensor/core/extrinsics/commit_weights.py # bittensor/core/extrinsics/registration.py # bittensor/core/extrinsics/root.py # bittensor/core/extrinsics/serving.py # bittensor/core/extrinsics/set_weights.py # bittensor/core/extrinsics/transfer.py # bittensor/core/settings.py # bittensor/core/subtensor.py # bittensor/utils/registration.py # requirements/prod.txt # tests/e2e_tests/test_commit_weights.py # tests/unit_tests/test_subtensor.py
thewhaleking
approved these changes
Nov 13, 2024
garrett-opentensor
approved these changes
Nov 13, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.