Skip to content

Release/8.3.0#2417

Merged
basfroman merged 46 commits intomasterfrom
release/8.3.0
Nov 13, 2024
Merged

Release/8.3.0#2417
basfroman merged 46 commits intomasterfrom
release/8.3.0

Conversation

@basfroman
Copy link
Collaborator

No description provided.

thewhaleking and others added 30 commits October 16, 2024 17:38
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
remove retry and fix tests
* Updates changelog

* fix: logging weights correctly in utils/weight_utils.py

* Update CHANGELOG.md
* add `subvortex` subnet and tests

* ruff
* 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
thewhaleking and others added 16 commits November 8, 2024 23:41
…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]`
* 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
@basfroman basfroman marked this pull request as ready for review November 13, 2024 22:11
@basfroman basfroman merged commit 3b25a0b into master Nov 13, 2024
@basfroman basfroman deleted the release/8.3.0 branch November 13, 2024 22:18
@thewhaleking thewhaleking restored the release/8.3.0 branch November 13, 2024 22:23
@basfroman basfroman self-assigned this Nov 21, 2024
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.

5 participants