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

Grab delegates details from GitHub #1245

Merged
merged 5 commits into from
Apr 4, 2023

Conversation

camfairchild
Copy link
Collaborator

This PR grabs the extra delegate details from the new github repo, instead of from delegates.json

See: https://github.com/opentensor/bittensor-delegates

Copy link
Contributor

@joeylegere joeylegere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid, LGTM

Copy link
Contributor

@eduardogr eduardogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

missing some testing but it looks nice

@joeylegere joeylegere merged commit 6cf0380 into staging Apr 4, 2023
@joeylegere joeylegere deleted the grab-delegates-details-from-github branch April 4, 2023 18:20
shibshib pushed a commit that referenced this pull request Apr 19, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Eugene-hu added a commit that referenced this pull request Apr 20, 2023
* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
camfairchild added a commit that referenced this pull request Apr 20, 2023
* bump version

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* Remove codecov (#1282)

* use fixtures and multiple subtensor instances

* update linux bin

* remove test files not needed

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
camfairchild added a commit that referenced this pull request Apr 27, 2023
* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
ifrit98 pushed a commit that referenced this pull request Jun 7, 2023
* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
ifrit98 pushed a commit that referenced this pull request Jun 7, 2023
* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
ifrit98 pushed a commit that referenced this pull request Jun 7, 2023
* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
ifrit98 pushed a commit that referenced this pull request Jun 7, 2023
* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
ifrit98 pushed a commit that referenced this pull request Jun 7, 2023
* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
ifrit98 pushed a commit that referenced this pull request Jun 8, 2023
* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
shibshib pushed a commit that referenced this pull request Jul 4, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* progress on fix mock subtensor

rename test files for discovery

catch nonce errors

skip long tests

test durations

group cli tests to same runner

try group again

try to group tests using arg

patch start server

dont use groups and wait longer to teardown

dont kill

loadgroup

.

update durations

update durations

delay reruns

progress on new mock

more progress

add back mock init

create axons and prometheus

fix imports

add reset state

fix mock calls

fix setup

move some extr send to subtensor impl

move stake ext call

move unstake ext

add extr outline to mock sub

add ext bodies

fix type ann

return empty map on None

fix global state

* [BIT-351] Ask for wallet name on btcli unstake (#1387)

add not

* fix query map mock

* inc subnetN on mock reg

* add active to neuron on mock reg

* dont store balance in chainstate

* use dict comprehension

* don't print __is_set when displaying config

* use axon info from axon module

* set is set for Config in tests

* passes overview

* remove neurons, take out multiforward Synapse

* take out _neuron, these are in openminers & openvalidators now

* cleanup dendrite multi_forward

* missed MultiForward class in dendrite

* fix tests

* dont skip

* return data free of balance

* return proper types

* no nonces

* use same format for balances

* allow block for is delegate

* fix nominate

* fix nominate again :)

* fix typehint and return value==None

* fix total stake tracking

* nominate passes

* fix state for ismember and totalstake

* not returning last part of tuple

* oops, dont pass self twice

* return null neuron

* get mock block hash

* add set diff mock

* fix total issuance and balance

* add rate limit storage

* fix loop over nom

* fix some unit tests

* fix pow test

* fix get delegates mock

* fix typo

* typo again

* remove assert on err

* typo on storage

* spacing

* BlocksSinceLastStep instead

* fix list subnets

* dont skip

* add is set map

* fix patch

* setup mock net 3

* add a do_prometheus serve func

* add to mock

* remove unused examples

* update bittensor version into to current (510)

* fix prometheus test

* fix some staking tests

* fix transfer tests

* add do_set_weights

* add do_set_weights to mock

* use dsw in tests

* use == true

* use == True

* add do_serve_axon

* use typeddict

* add do serve axon mock

* add _ to subtensor.do_*  methods

* add _subtensor.types

* fix circular import

* fix mock get_balances

* return uid in mock

* run setup for tests with mock sub

* use mock sub for tests

* all subtensor tests pass

* fix mock with underscore

* nominators mock should be list tuple not dict

* fix duplicate setup

* Update README.md

fix typo

* Fix integration test

* remove multiforward from synapse (missed before)

* remove hotkey from proto and dendrite

* Weight Utils fix (#1372)

When Torch sets zeros or ones, it does this on the CPU. The metagraph is loaded on GPU. This results in errors—proposed fix.

* Extract config to new package (#1401)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move tests to config repo

* fix test by passing argv=[]

* use new package name

* fix name of openconfig package

* Extract wallet (#1403)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move test to package

* move wallet mock

* move some utils to package

* move wallet to package

* move reregister to registration utils

* add mocks

* move keyfile to package

* move test to utils tests

* use different naming

* fix import

* change function name and use kwargs

* modify naming

* add is_hotkey_registered

* use new function

* fix patch

* arg is cuda (typo)

* specify reregister true

* use generate wallet

* get mock wallet during tests

* extract get ss58 format util

* remove _mock arg

* extract tests

* import from base

* use subtensor for get_balance

* use new hotkey during test

* fix mocking

* add new packages to reqs file

* use new package naming

* bump wallet dep

* BTCli integration with new governance protocol (#1398)

* Begin senate cli

* Add helper functions to subtensor object for query_module, query_module_map

* Remove unused senate helpers

* Rename SenateCommand -> ProposalsCommand

* Remove unused proposals info datatype

* Add proposals data in rich table

* Clarify + beautify calldata column

* Add SenateRegisterCommand

* Add helper function wallet.is_senate_member

* Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl

* Use helper function to check senate membership

* Add command to view senate members

* Use get_vote_data helper and refactor call data formatting for recursion

* Add senate_vote and senate_leave cmd classes

* Add membership check in senate_register command

* Add senate_leave, senate_vote extrinsic functions

* Import senate_leave, senate_vote extrinsic functions in subtensor_impl

* Add senate, proposal_votes, senate_leave, senate_vote cmds to cli

* Move closure helper funcs to main scope, add display_votes helper

* Add senate size and active proposals metric, vote overview and nice names

* Add delegate nice-name support to proposal_votes

* Use coldkey for senate actions instead of hotkey

* Reverting unnecessary commits for next release. (#1415)

* Reverting unnecessary commits for next release.

* fix missed conflict

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* fix merge conflict

* fix dockerignore

* Use delegate nice-names in senate view

* use new regex for test

* make test assertion more verbose

* add to config for test

* bump version

* create api calls for senate info

* add block optional to is senate member

* prefer using subtensor api

* use new api calls

* dont sync metagraph on neuron init

* remove multiforwad

* fix error calling metagraph from subtensor without passing (#1426)

* fix error calling metagraph from subtensor without passing

* Update bittensor/_subtensor/subtensor_impl.py

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Fix docker and pypi upload commands (#1375)

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* Fix cli ask for wallet hotkey name (#1430)

* check if NOT hotkey set

* add test for stake and unstake

* remove unneeded import

* add tests for delegate and undelegate

* add tests for delegate ss58 arg

* always sync metagraph during subtensor.metagraph

* derp

* remove unused HelpCommand class for miners/validators

* update changelog from running add_notes_changelog.sh

* fix script for the changelog

* add changelog

* Update scripts/release/github_utils.sh

* add weights call to subtensor (#1436)

* add weights call to subtensor

* add bonds call

* use bonds and weights calls for sync

* move into neurons

* fix type hints

* move func to chain data

* use new funcs in meta init

* fix kwarg name

* Revert "use new funcs in meta init"

This reverts commit 955e671.

* update dockerignore file (#1428)

* update dockerignore file

* add newline

* fix function name in script

* add new changelog additions

* update changelog again

* make minor release

* remove wallet impl

* use reregister from utils

* add arg for base miner reregister

* fix mock return values

* fix return format to use Tuple

* raise -> return

* Revert "fix return format to use Tuple"

This reverts commit 0252fcc.

* Revert "fix mock return values"

This reverts commit 2df31eb.

* raise correct errors in mock

* return tuples for do server

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: philanthrope <stgeorgejas@gmail.com>
Co-authored-by: ifrit98 <ifrit98@gmail.com>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
camfairchild added a commit that referenced this pull request Jul 17, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* progress on fix mock subtensor

rename test files for discovery

catch nonce errors

skip long tests

test durations

group cli tests to same runner

try group again

try to group tests using arg

patch start server

dont use groups and wait longer to teardown

dont kill

loadgroup

.

update durations

update durations

delay reruns

progress on new mock

more progress

add back mock init

create axons and prometheus

fix imports

add reset state

fix mock calls

fix setup

move some extr send to subtensor impl

move stake ext call

move unstake ext

add extr outline to mock sub

add ext bodies

fix type ann

return empty map on None

fix global state

* [BIT-351] Ask for wallet name on btcli unstake (#1387)

add not

* fix query map mock

* inc subnetN on mock reg

* add active to neuron on mock reg

* dont store balance in chainstate

* use dict comprehension

* don't print __is_set when displaying config

* use axon info from axon module

* set is set for Config in tests

* passes overview

* remove neurons, take out multiforward Synapse

* take out _neuron, these are in openminers & openvalidators now

* cleanup dendrite multi_forward

* missed MultiForward class in dendrite

* fix tests

* dont skip

* return data free of balance

* return proper types

* no nonces

* use same format for balances

* allow block for is delegate

* fix nominate

* fix nominate again :)

* fix typehint and return value==None

* fix total stake tracking

* nominate passes

* fix state for ismember and totalstake

* not returning last part of tuple

* oops, dont pass self twice

* return null neuron

* get mock block hash

* add set diff mock

* fix total issuance and balance

* add rate limit storage

* fix loop over nom

* fix some unit tests

* fix pow test

* fix get delegates mock

* fix typo

* typo again

* remove assert on err

* typo on storage

* spacing

* BlocksSinceLastStep instead

* fix list subnets

* dont skip

* add is set map

* fix patch

* setup mock net 3

* add a do_prometheus serve func

* add to mock

* remove unused examples

* update bittensor version into to current (510)

* fix prometheus test

* fix some staking tests

* fix transfer tests

* add do_set_weights

* add do_set_weights to mock

* use dsw in tests

* use == true

* use == True

* add do_serve_axon

* use typeddict

* add do serve axon mock

* add _ to subtensor.do_*  methods

* add _subtensor.types

* fix circular import

* fix mock get_balances

* return uid in mock

* run setup for tests with mock sub

* use mock sub for tests

* all subtensor tests pass

* fix mock with underscore

* nominators mock should be list tuple not dict

* fix duplicate setup

* Update README.md

fix typo

* Fix integration test

* remove multiforward from synapse (missed before)

* remove hotkey from proto and dendrite

* Weight Utils fix (#1372)

When Torch sets zeros or ones, it does this on the CPU. The metagraph is loaded on GPU. This results in errors—proposed fix.

* Extract config to new package (#1401)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move tests to config repo

* fix test by passing argv=[]

* use new package name

* fix name of openconfig package

* Extract wallet (#1403)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move test to package

* move wallet mock

* move some utils to package

* move wallet to package

* move reregister to registration utils

* add mocks

* move keyfile to package

* move test to utils tests

* use different naming

* fix import

* change function name and use kwargs

* modify naming

* add is_hotkey_registered

* use new function

* fix patch

* arg is cuda (typo)

* specify reregister true

* use generate wallet

* get mock wallet during tests

* extract get ss58 format util

* remove _mock arg

* extract tests

* import from base

* use subtensor for get_balance

* use new hotkey during test

* fix mocking

* add new packages to reqs file

* use new package naming

* bump wallet dep

* BTCli integration with new governance protocol (#1398)

* Begin senate cli

* Add helper functions to subtensor object for query_module, query_module_map

* Remove unused senate helpers

* Rename SenateCommand -> ProposalsCommand

* Remove unused proposals info datatype

* Add proposals data in rich table

* Clarify + beautify calldata column

* Add SenateRegisterCommand

* Add helper function wallet.is_senate_member

* Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl

* Use helper function to check senate membership

* Add command to view senate members

* Use get_vote_data helper and refactor call data formatting for recursion

* Add senate_vote and senate_leave cmd classes

* Add membership check in senate_register command

* Add senate_leave, senate_vote extrinsic functions

* Import senate_leave, senate_vote extrinsic functions in subtensor_impl

* Add senate, proposal_votes, senate_leave, senate_vote cmds to cli

* Move closure helper funcs to main scope, add display_votes helper

* Add senate size and active proposals metric, vote overview and nice names

* Add delegate nice-name support to proposal_votes

* Use coldkey for senate actions instead of hotkey

* Reverting unnecessary commits for next release. (#1415)

* Reverting unnecessary commits for next release.

* fix missed conflict

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* fix merge conflict

* fix dockerignore

* Use delegate nice-names in senate view

* use new regex for test

* make test assertion more verbose

* add to config for test

* bump version

* create api calls for senate info

* add block optional to is senate member

* prefer using subtensor api

* use new api calls

* dont sync metagraph on neuron init

* remove multiforwad

* fix error calling metagraph from subtensor without passing (#1426)

* fix error calling metagraph from subtensor without passing

* Update bittensor/_subtensor/subtensor_impl.py

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Fix docker and pypi upload commands (#1375)

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* Fix cli ask for wallet hotkey name (#1430)

* check if NOT hotkey set

* add test for stake and unstake

* remove unneeded import

* add tests for delegate and undelegate

* add tests for delegate ss58 arg

* always sync metagraph during subtensor.metagraph

* derp

* remove unused HelpCommand class for miners/validators

* update changelog from running add_notes_changelog.sh

* fix script for the changelog

* add changelog

* Update scripts/release/github_utils.sh

* add weights call to subtensor (#1436)

* add weights call to subtensor

* add bonds call

* use bonds and weights calls for sync

* move into neurons

* fix type hints

* move func to chain data

* use new funcs in meta init

* fix kwarg name

* Revert "use new funcs in meta init"

This reverts commit 955e671.

* update dockerignore file (#1428)

* update dockerignore file

* add newline

* fix function name in script

* add new changelog additions

* update changelog again

* make minor release

* remove wallet impl

* use reregister from utils

* add arg for base miner reregister

* fix mock return values

* fix return format to use Tuple

* raise -> return

* Revert "fix return format to use Tuple"

This reverts commit 0252fcc.

* Revert "fix mock return values"

This reverts commit 2df31eb.

* raise correct errors in mock

* return tuples for do server

* move mocks to bt_wallet package (#1441)

* bump bittensor-wallet req, update cryptography security req

* Fixes #1442

* fix script error msg

* bump patch version

* add changelog

* bump bt wallet

* add to changelog new btwallet

* fix test imports

* bump btwallet version

* Use SenateMembers in is_senate_member helper (#1449)

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: philanthrope <stgeorgejas@gmail.com>
Co-authored-by: ifrit98 <ifrit98@gmail.com>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
camfairchild added a commit that referenced this pull request Jul 26, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* progress on fix mock subtensor

rename test files for discovery

catch nonce errors

skip long tests

test durations

group cli tests to same runner

try group again

try to group tests using arg

patch start server

dont use groups and wait longer to teardown

dont kill

loadgroup

.

update durations

update durations

delay reruns

progress on new mock

more progress

add back mock init

create axons and prometheus

fix imports

add reset state

fix mock calls

fix setup

move some extr send to subtensor impl

move stake ext call

move unstake ext

add extr outline to mock sub

add ext bodies

fix type ann

return empty map on None

fix global state

* [BIT-351] Ask for wallet name on btcli unstake (#1387)

add not

* fix query map mock

* inc subnetN on mock reg

* add active to neuron on mock reg

* dont store balance in chainstate

* use dict comprehension

* don't print __is_set when displaying config

* use axon info from axon module

* set is set for Config in tests

* passes overview

* remove neurons, take out multiforward Synapse

* take out _neuron, these are in openminers & openvalidators now

* cleanup dendrite multi_forward

* missed MultiForward class in dendrite

* fix tests

* dont skip

* return data free of balance

* return proper types

* no nonces

* use same format for balances

* allow block for is delegate

* fix nominate

* fix nominate again :)

* fix typehint and return value==None

* fix total stake tracking

* nominate passes

* fix state for ismember and totalstake

* not returning last part of tuple

* oops, dont pass self twice

* return null neuron

* get mock block hash

* add set diff mock

* fix total issuance and balance

* add rate limit storage

* fix loop over nom

* fix some unit tests

* fix pow test

* fix get delegates mock

* fix typo

* typo again

* remove assert on err

* typo on storage

* spacing

* BlocksSinceLastStep instead

* fix list subnets

* dont skip

* add is set map

* fix patch

* setup mock net 3

* add a do_prometheus serve func

* add to mock

* remove unused examples

* update bittensor version into to current (510)

* fix prometheus test

* fix some staking tests

* fix transfer tests

* add do_set_weights

* add do_set_weights to mock

* use dsw in tests

* use == true

* use == True

* add do_serve_axon

* use typeddict

* add do serve axon mock

* add _ to subtensor.do_*  methods

* add _subtensor.types

* fix circular import

* fix mock get_balances

* return uid in mock

* run setup for tests with mock sub

* use mock sub for tests

* all subtensor tests pass

* fix mock with underscore

* nominators mock should be list tuple not dict

* fix duplicate setup

* Update README.md

fix typo

* Fix integration test

* remove multiforward from synapse (missed before)

* remove hotkey from proto and dendrite

* Weight Utils fix (#1372)

When Torch sets zeros or ones, it does this on the CPU. The metagraph is loaded on GPU. This results in errors—proposed fix.

* Extract config to new package (#1401)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move tests to config repo

* fix test by passing argv=[]

* use new package name

* fix name of openconfig package

* Extract wallet (#1403)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move test to package

* move wallet mock

* move some utils to package

* move wallet to package

* move reregister to registration utils

* add mocks

* move keyfile to package

* move test to utils tests

* use different naming

* fix import

* change function name and use kwargs

* modify naming

* add is_hotkey_registered

* use new function

* fix patch

* arg is cuda (typo)

* specify reregister true

* use generate wallet

* get mock wallet during tests

* extract get ss58 format util

* remove _mock arg

* extract tests

* import from base

* use subtensor for get_balance

* use new hotkey during test

* fix mocking

* add new packages to reqs file

* use new package naming

* bump wallet dep

* BTCli integration with new governance protocol (#1398)

* Begin senate cli

* Add helper functions to subtensor object for query_module, query_module_map

* Remove unused senate helpers

* Rename SenateCommand -> ProposalsCommand

* Remove unused proposals info datatype

* Add proposals data in rich table

* Clarify + beautify calldata column

* Add SenateRegisterCommand

* Add helper function wallet.is_senate_member

* Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl

* Use helper function to check senate membership

* Add command to view senate members

* Use get_vote_data helper and refactor call data formatting for recursion

* Add senate_vote and senate_leave cmd classes

* Add membership check in senate_register command

* Add senate_leave, senate_vote extrinsic functions

* Import senate_leave, senate_vote extrinsic functions in subtensor_impl

* Add senate, proposal_votes, senate_leave, senate_vote cmds to cli

* Move closure helper funcs to main scope, add display_votes helper

* Add senate size and active proposals metric, vote overview and nice names

* Add delegate nice-name support to proposal_votes

* Use coldkey for senate actions instead of hotkey

* Reverting unnecessary commits for next release. (#1415)

* Reverting unnecessary commits for next release.

* fix missed conflict

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* fix merge conflict

* fix dockerignore

* Use delegate nice-names in senate view

* use new regex for test

* make test assertion more verbose

* add to config for test

* bump version

* create api calls for senate info

* add block optional to is senate member

* prefer using subtensor api

* use new api calls

* dont sync metagraph on neuron init

* remove multiforwad

* fix error calling metagraph from subtensor without passing (#1426)

* fix error calling metagraph from subtensor without passing

* Update bittensor/_subtensor/subtensor_impl.py

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Fix docker and pypi upload commands (#1375)

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* Fix cli ask for wallet hotkey name (#1430)

* check if NOT hotkey set

* add test for stake and unstake

* remove unneeded import

* add tests for delegate and undelegate

* add tests for delegate ss58 arg

* always sync metagraph during subtensor.metagraph

* derp

* remove unused HelpCommand class for miners/validators

* update changelog from running add_notes_changelog.sh

* fix script for the changelog

* add changelog

* Update scripts/release/github_utils.sh

* add weights call to subtensor (#1436)

* add weights call to subtensor

* add bonds call

* use bonds and weights calls for sync

* move into neurons

* fix type hints

* move func to chain data

* use new funcs in meta init

* fix kwarg name

* Revert "use new funcs in meta init"

This reverts commit 955e671.

* update dockerignore file (#1428)

* update dockerignore file

* add newline

* fix function name in script

* add new changelog additions

* update changelog again

* make minor release

* remove wallet impl

* use reregister from utils

* add arg for base miner reregister

* fix mock return values

* fix return format to use Tuple

* raise -> return

* Revert "fix return format to use Tuple"

This reverts commit 0252fcc.

* Revert "fix mock return values"

This reverts commit 2df31eb.

* raise correct errors in mock

* return tuples for do server

* move mocks to bt_wallet package (#1441)

* bump bittensor-wallet req, update cryptography security req

* Fixes #1442

* adds black formatting to release branch and circleCI check for format

* Btlm miner (#1463)

* BTLM initial commit

* Fixed up the BTLM to run on GPU and on Bittensor network

* Added missing trust_remote_code for now as we trust Cerebras

---------

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Don't finalize set_weights ext (#1461)

* pass wait_for_* params to call

* format

* format neuron

---------

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* bump version

* Faster overview pull (#1464)

* first rev faster pull

* use process pool instead

* Contrib revamp (#1456)

* revamp contrib and add more details

* mention miners/validators and address feedback

* update links for templates

* reword PR template section making CI checks passing REQUIRED

* use commit hash instead of version for representative tagging

* add link to commit rule examples section

* add interactive rebase and fixup mentions/examples

* add tooling mentions, move rebase -i/--fixup to bottom

* remove line referencing github actions

* update github ISSUE_TEMPLATEs

* add short description of miners and validtors

* add black format check to circleCI

* exclude /env

* update debug to be more relevant, add tricks

* address feedback RE PR steps and dev workflow

* update style guide to resolve tension between atomic commits and squashing

* fix torch typehint on some neurons BT-1329 (#1460)

* add changelog

* use double quotes for code because blackfmt

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
camfairchild added a commit that referenced this pull request Jul 27, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* progress on fix mock subtensor

rename test files for discovery

catch nonce errors

skip long tests

test durations

group cli tests to same runner

try group again

try to group tests using arg

patch start server

dont use groups and wait longer to teardown

dont kill

loadgroup

.

update durations

update durations

delay reruns

progress on new mock

more progress

add back mock init

create axons and prometheus

fix imports

add reset state

fix mock calls

fix setup

move some extr send to subtensor impl

move stake ext call

move unstake ext

add extr outline to mock sub

add ext bodies

fix type ann

return empty map on None

fix global state

* [BIT-351] Ask for wallet name on btcli unstake (#1387)

add not

* fix query map mock

* inc subnetN on mock reg

* add active to neuron on mock reg

* dont store balance in chainstate

* use dict comprehension

* don't print __is_set when displaying config

* use axon info from axon module

* set is set for Config in tests

* passes overview

* remove neurons, take out multiforward Synapse

* take out _neuron, these are in openminers & openvalidators now

* cleanup dendrite multi_forward

* missed MultiForward class in dendrite

* fix tests

* dont skip

* return data free of balance

* return proper types

* no nonces

* use same format for balances

* allow block for is delegate

* fix nominate

* fix nominate again :)

* fix typehint and return value==None

* fix total stake tracking

* nominate passes

* fix state for ismember and totalstake

* not returning last part of tuple

* oops, dont pass self twice

* return null neuron

* get mock block hash

* add set diff mock

* fix total issuance and balance

* add rate limit storage

* fix loop over nom

* fix some unit tests

* fix pow test

* fix get delegates mock

* fix typo

* typo again

* remove assert on err

* typo on storage

* spacing

* BlocksSinceLastStep instead

* fix list subnets

* dont skip

* add is set map

* fix patch

* setup mock net 3

* add a do_prometheus serve func

* add to mock

* remove unused examples

* update bittensor version into to current (510)

* fix prometheus test

* fix some staking tests

* fix transfer tests

* add do_set_weights

* add do_set_weights to mock

* use dsw in tests

* use == true

* use == True

* add do_serve_axon

* use typeddict

* add do serve axon mock

* add _ to subtensor.do_*  methods

* add _subtensor.types

* fix circular import

* fix mock get_balances

* return uid in mock

* run setup for tests with mock sub

* use mock sub for tests

* all subtensor tests pass

* fix mock with underscore

* nominators mock should be list tuple not dict

* fix duplicate setup

* Update README.md

fix typo

* Fix integration test

* remove multiforward from synapse (missed before)

* remove hotkey from proto and dendrite

* Weight Utils fix (#1372)

When Torch sets zeros or ones, it does this on the CPU. The metagraph is loaded on GPU. This results in errors—proposed fix.

* Extract config to new package (#1401)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move tests to config repo

* fix test by passing argv=[]

* use new package name

* fix name of openconfig package

* Extract wallet (#1403)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move test to package

* move wallet mock

* move some utils to package

* move wallet to package

* move reregister to registration utils

* add mocks

* move keyfile to package

* move test to utils tests

* use different naming

* fix import

* change function name and use kwargs

* modify naming

* add is_hotkey_registered

* use new function

* fix patch

* arg is cuda (typo)

* specify reregister true

* use generate wallet

* get mock wallet during tests

* extract get ss58 format util

* remove _mock arg

* extract tests

* import from base

* use subtensor for get_balance

* use new hotkey during test

* fix mocking

* add new packages to reqs file

* use new package naming

* bump wallet dep

* BTCli integration with new governance protocol (#1398)

* Begin senate cli

* Add helper functions to subtensor object for query_module, query_module_map

* Remove unused senate helpers

* Rename SenateCommand -> ProposalsCommand

* Remove unused proposals info datatype

* Add proposals data in rich table

* Clarify + beautify calldata column

* Add SenateRegisterCommand

* Add helper function wallet.is_senate_member

* Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl

* Use helper function to check senate membership

* Add command to view senate members

* Use get_vote_data helper and refactor call data formatting for recursion

* Add senate_vote and senate_leave cmd classes

* Add membership check in senate_register command

* Add senate_leave, senate_vote extrinsic functions

* Import senate_leave, senate_vote extrinsic functions in subtensor_impl

* Add senate, proposal_votes, senate_leave, senate_vote cmds to cli

* Move closure helper funcs to main scope, add display_votes helper

* Add senate size and active proposals metric, vote overview and nice names

* Add delegate nice-name support to proposal_votes

* Use coldkey for senate actions instead of hotkey

* Reverting unnecessary commits for next release. (#1415)

* Reverting unnecessary commits for next release.

* fix missed conflict

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* fix merge conflict

* fix dockerignore

* Use delegate nice-names in senate view

* use new regex for test

* make test assertion more verbose

* add to config for test

* bump version

* create api calls for senate info

* add block optional to is senate member

* prefer using subtensor api

* use new api calls

* dont sync metagraph on neuron init

* remove multiforwad

* fix error calling metagraph from subtensor without passing (#1426)

* fix error calling metagraph from subtensor without passing

* Update bittensor/_subtensor/subtensor_impl.py

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Fix docker and pypi upload commands (#1375)

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* Fix cli ask for wallet hotkey name (#1430)

* check if NOT hotkey set

* add test for stake and unstake

* remove unneeded import

* add tests for delegate and undelegate

* add tests for delegate ss58 arg

* always sync metagraph during subtensor.metagraph

* derp

* remove unused HelpCommand class for miners/validators

* update changelog from running add_notes_changelog.sh

* fix script for the changelog

* add changelog

* Update scripts/release/github_utils.sh

* add weights call to subtensor (#1436)

* add weights call to subtensor

* add bonds call

* use bonds and weights calls for sync

* move into neurons

* fix type hints

* move func to chain data

* use new funcs in meta init

* fix kwarg name

* Revert "use new funcs in meta init"

This reverts commit 955e671.

* update dockerignore file (#1428)

* update dockerignore file

* add newline

* fix function name in script

* add new changelog additions

* update changelog again

* make minor release

* remove wallet impl

* use reregister from utils

* add arg for base miner reregister

* fix mock return values

* fix return format to use Tuple

* raise -> return

* Revert "fix return format to use Tuple"

This reverts commit 0252fcc.

* Revert "fix mock return values"

This reverts commit 2df31eb.

* raise correct errors in mock

* return tuples for do server

* move mocks to bt_wallet package (#1441)

* bump bittensor-wallet req, update cryptography security req

* Fixes #1442

* adds black formatting to release branch and circleCI check for format

* Btlm miner (#1463)

* BTLM initial commit

* Fixed up the BTLM to run on GPU and on Bittensor network

* Added missing trust_remote_code for now as we trust Cerebras

---------

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Don't finalize set_weights ext (#1461)

* pass wait_for_* params to call

* format

* format neuron

---------

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* bump version

* Faster overview pull (#1464)

* first rev faster pull

* use process pool instead

* Contrib revamp (#1456)

* revamp contrib and add more details

* mention miners/validators and address feedback

* update links for templates

* reword PR template section making CI checks passing REQUIRED

* use commit hash instead of version for representative tagging

* add link to commit rule examples section

* add interactive rebase and fixup mentions/examples

* add tooling mentions, move rebase -i/--fixup to bottom

* remove line referencing github actions

* update github ISSUE_TEMPLATEs

* add short description of miners and validtors

* add black format check to circleCI

* exclude /env

* update debug to be more relevant, add tricks

* address feedback RE PR steps and dev workflow

* update style guide to resolve tension between atomic commits and squashing

* fix torch typehint on some neurons BT-1329 (#1460)

* add changelog

* use double quotes for code because blackfmt

* dont need this orb

* add black format

* no neurons in this repo !!!

* rerun black

* rerun black

* fix casing on mock

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: philanthrope <stgeorgejas@gmail.com>
Co-authored-by: ifrit98 <ifrit98@gmail.com>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
eduardogr added a commit that referenced this pull request Oct 2, 2023
* fix import of errors

* dont test set weights (gone)

* fix register test

* fix return values for staking ext

* unneeded thread pool test

* fix metagraph test, pass sub

* fix prometheus test

* fix sub integration tests

* fix dendrite tests

* no prometheus

* relax requirements

* relax requirements

* use correct mock sub

* fix docker file

* bump version

* add a synchronous forward function to the dendrite

* allow synchronous calling the dendrite allow async axon functions and also the forward

* fix synapse to_headers to not pass through optionals regardless of python version

* allow list of grads

* fix patching reregister test

* move tests

* rename metagraph tests

* patch create _pow instead

* specify kwargs

* mock torch cuda available

* patch temp only

* remove net import

* allow larger sizes of tensors; ensure that required tensors are never added to headers

* add tests for tensor pass through

* fix typehint

* patch better

* unneccessary var

* patch better

* fix patch

* bt.tensor changes

* move to python for btcli

* fix patching in register tests

* move patch to decorator on test func

* fix __ss58_format__ failing

* fix double serving

* add serve to axon

* adds dict tensor to serialization format

* fixes torch type issues (#1455)

fixes tensor issues

* dict tensors

* add tests for tensor types

* add tensor type tests

* add dendrite side timeouts

* remove headers print on dendrite side

* add another synapse copy

* update revolution to current master 5.3.1

* (WIP) add config and wallet back

* remove flaky patch dendrite tests

* fix netid check, add unwrap for list type

* fix config and return __is_set to it's proper place

* pre merge

* extract wallet and keyfile tests

* fix tests

* fix tests for python3.11

* fix integration test connection

* fix test patching based on python version

* add connection errors to dendrite

* add dendrite unreachable errors

* fix list response dendrite

* delete unused ipython

* fix python3.8 issue with | operator

* add proper defaults to config parsing

* remove config and wallet

* fix axon defaults error

* quick fix for validator quantile default value

* add ansible_vault

* stop

* Remove circleCI call to non-existent build_protos.sh

* run black format

* Merge main into revolution (#1469)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Improve development workflow documentation

* Update DEVELOPMENT_WORKFLOW.md

* progress on fix mock subtensor

rename test files for discovery

catch nonce errors

skip long tests

test durations

group cli tests to same runner

try group again

try to group tests using arg

patch start server

dont use groups and wait longer to teardown

dont kill

loadgroup

.

update durations

update durations

delay reruns

progress on new mock

more progress

add back mock init

create axons and prometheus

fix imports

add reset state

fix mock calls

fix setup

move some extr send to subtensor impl

move stake ext call

move unstake ext

add extr outline to mock sub

add ext bodies

fix type ann

return empty map on None

fix global state

* [BIT-351] Ask for wallet name on btcli unstake (#1387)

add not

* fix query map mock

* inc subnetN on mock reg

* add active to neuron on mock reg

* dont store balance in chainstate

* use dict comprehension

* don't print __is_set when displaying config

* use axon info from axon module

* set is set for Config in tests

* passes overview

* remove neurons, take out multiforward Synapse

* take out _neuron, these are in openminers & openvalidators now

* cleanup dendrite multi_forward

* missed MultiForward class in dendrite

* fix tests

* dont skip

* return data free of balance

* return proper types

* no nonces

* use same format for balances

* allow block for is delegate

* fix nominate

* fix nominate again :)

* fix typehint and return value==None

* fix total stake tracking

* nominate passes

* fix state for ismember and totalstake

* not returning last part of tuple

* oops, dont pass self twice

* return null neuron

* get mock block hash

* add set diff mock

* fix total issuance and balance

* add rate limit storage

* fix loop over nom

* fix some unit tests

* fix pow test

* fix get delegates mock

* fix typo

* typo again

* remove assert on err

* typo on storage

* spacing

* BlocksSinceLastStep instead

* fix list subnets

* dont skip

* add is set map

* fix patch

* setup mock net 3

* add a do_prometheus serve func

* add to mock

* remove unused examples

* update bittensor version into to current (510)

* fix prometheus test

* fix some staking tests

* fix transfer tests

* add do_set_weights

* add do_set_weights to mock

* use dsw in tests

* use == true

* use == True

* add do_serve_axon

* use typeddict

* add do serve axon mock

* add _ to subtensor.do_*  methods

* add _subtensor.types

* fix circular import

* fix mock get_balances

* return uid in mock

* run setup for tests with mock sub

* use mock sub for tests

* all subtensor tests pass

* fix mock with underscore

* nominators mock should be list tuple not dict

* fix duplicate setup

* Update README.md

fix typo

* Fix integration test

* remove multiforward from synapse (missed before)

* remove hotkey from proto and dendrite

* Weight Utils fix (#1372)

When Torch sets zeros or ones, it does this on the CPU. The metagraph is loaded on GPU. This results in errors—proposed fix.

* Extract config to new package (#1401)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move tests to config repo

* fix test by passing argv=[]

* use new package name

* fix name of openconfig package

* Extract wallet (#1403)

* integrate openconfig progess

* add type or suppress for argparse

* use for problematic types

* fix type hints

* move test under testcase class

* move tests under testcase class

* add test for btcli with empty arguments on every command

* remove unneeded setup from test

* remove type or suppress from int

* remove to defaults test

* use dot get for prefix check

* move test to package

* move wallet mock

* move some utils to package

* move wallet to package

* move reregister to registration utils

* add mocks

* move keyfile to package

* move test to utils tests

* use different naming

* fix import

* change function name and use kwargs

* modify naming

* add is_hotkey_registered

* use new function

* fix patch

* arg is cuda (typo)

* specify reregister true

* use generate wallet

* get mock wallet during tests

* extract get ss58 format util

* remove _mock arg

* extract tests

* import from base

* use subtensor for get_balance

* use new hotkey during test

* fix mocking

* add new packages to reqs file

* use new package naming

* bump wallet dep

* BTCli integration with new governance protocol (#1398)

* Begin senate cli

* Add helper functions to subtensor object for query_module, query_module_map

* Remove unused senate helpers

* Rename SenateCommand -> ProposalsCommand

* Remove unused proposals info datatype

* Add proposals data in rich table

* Clarify + beautify calldata column

* Add SenateRegisterCommand

* Add helper function wallet.is_senate_member

* Add subtensor *_senate extrinsics, is_senate_member, get_vote_data impl

* Use helper function to check senate membership

* Add command to view senate members

* Use get_vote_data helper and refactor call data formatting for recursion

* Add senate_vote and senate_leave cmd classes

* Add membership check in senate_register command

* Add senate_leave, senate_vote extrinsic functions

* Import senate_leave, senate_vote extrinsic functions in subtensor_impl

* Add senate, proposal_votes, senate_leave, senate_vote cmds to cli

* Move closure helper funcs to main scope, add display_votes helper

* Add senate size and active proposals metric, vote overview and nice names

* Add delegate nice-name support to proposal_votes

* Use coldkey for senate actions instead of hotkey

* Reverting unnecessary commits for next release. (#1415)

* Reverting unnecessary commits for next release.

* fix missed conflict

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* fix merge conflict

* fix dockerignore

* Use delegate nice-names in senate view

* use new regex for test

* make test assertion more verbose

* add to config for test

* bump version

* create api calls for senate info

* add block optional to is senate member

* prefer using subtensor api

* use new api calls

* dont sync metagraph on neuron init

* remove multiforwad

* fix error calling metagraph from subtensor without passing (#1426)

* fix error calling metagraph from subtensor without passing

* Update bittensor/_subtensor/subtensor_impl.py

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Fix docker and pypi upload commands (#1375)

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* Fix cli ask for wallet hotkey name (#1430)

* check if NOT hotkey set

* add test for stake and unstake

* remove unneeded import

* add tests for delegate and undelegate

* add tests for delegate ss58 arg

* always sync metagraph during subtensor.metagraph

* derp

* remove unused HelpCommand class for miners/validators

* update changelog from running add_notes_changelog.sh

* fix script for the changelog

* add changelog

* Update scripts/release/github_utils.sh

* add weights call to subtensor (#1436)

* add weights call to subtensor

* add bonds call

* use bonds and weights calls for sync

* move into neurons

* fix type hints

* move func to chain data

* use new funcs in meta init

* fix kwarg name

* Revert "use new funcs in meta init"

This reverts commit 955e671.

* update dockerignore file (#1428)

* update dockerignore file

* add newline

* fix function name in script

* add new changelog additions

* update changelog again

* make minor release

* remove wallet impl

* use reregister from utils

* add arg for base miner reregister

* fix mock return values

* fix return format to use Tuple

* raise -> return

* Revert "fix return format to use Tuple"

This reverts commit 0252fcc.

* Revert "fix mock return values"

This reverts commit 2df31eb.

* raise correct errors in mock

* return tuples for do server

* move mocks to bt_wallet package (#1441)

* bump bittensor-wallet req, update cryptography security req

* Fixes #1442

* adds black formatting to release branch and circleCI check for format

* Btlm miner (#1463)

* BTLM initial commit

* Fixed up the BTLM to run on GPU and on Bittensor network

* Added missing trust_remote_code for now as we trust Cerebras

---------

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Don't finalize set_weights ext (#1461)

* pass wait_for_* params to call

* format

* format neuron

---------

Co-authored-by: philanthrope <stgeorgejas@gmail.com>

* bump version

* Faster overview pull (#1464)

* first rev faster pull

* use process pool instead

* Contrib revamp (#1456)

* revamp contrib and add more details

* mention miners/validators and address feedback

* update links for templates

* reword PR template section making CI checks passing REQUIRED

* use commit hash instead of version for representative tagging

* add link to commit rule examples section

* add interactive rebase and fixup mentions/examples

* add tooling mentions, move rebase -i/--fixup to bottom

* remove line referencing github actions

* update github ISSUE_TEMPLATEs

* add short description of miners and validtors

* add black format check to circleCI

* exclude /env

* update debug to be more relevant, add tricks

* address feedback RE PR steps and dev workflow

* update style guide to resolve tension between atomic commits and squashing

* fix torch typehint on some neurons BT-1329 (#1460)

* add changelog

* use double quotes for code because blackfmt

* dont need this orb

* add black format

* no neurons in this repo !!!

* rerun black

* rerun black

* fix casing on mock

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: philanthrope <stgeorgejas@gmail.com>
Co-authored-by: ifrit98 <ifrit98@gmail.com>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix set weights

* fix null tensor

* fix null tensor

* fix null tensor

* console

* add subnetwork command

* fix null shape

* refactor subtensor conifg init to fix chain_endpoint setting

* fix broken ass tests

* rerun black

* add py311 circleci test again

* add synapse history log to dendrite

* fix subtensor setup_config and bring back __is_set init

* don't error on no content-length axon log, rerun black

* explicit [] args on config call

* add incentive subtensor call

* .

* fix typehint

* fix time error and add more detailed logging into axon

* bump cryptography per @Eugene-hu

* add pycryptodome req back to prod

* bump ansible

* add testnet faucet

* remove subtensor impl and add incentive func

* fix type map

* fix spec

* fix construction of subnetinfo

* remove print out

* add subnet registeration cost check

* run black

* fix type map (#1478)

* fix type map

* fix spec

* fix construction of subnetinfo

* remove print out

* run black

* add netuid to register subnet

* make faucet easier

* fix serving rate limit check

* oops

* fix call to get axon info

* fix parsing of value from chain

* fix threadpool priority not being respected with asyncio, run black

* fix subtensor mock to reflect changes in SubnetInfo

* fix whitespace issue with subnet_burn_cost btcli --help cmd

* remove infinite while loop in get_subnet_burn_cost() and add magic mock return value

* Add subcommand support to btcli

* Add __parser field to config, print subcommand help if didnt pass arg

* Use subcommand config member instead of parent-command key

* Move no_prompt & no_version_checking to top level parser args

* Add no_prompt check to dest arg in wallet transfer

* Fix default arguments suppression in config for nested subparsers

* Rename SubnetBurnCost -> SubnetLockCost

* Reorganize subcommand structure

* [Revolution] call runtime apis using state call (#1491)

* add state calls api

* add overload for decoding from multiple types

* use state call for neurons lite

* custom registry for runtime apis / encoding params

* fix usage for neurons pull

* add check for 0x

* remove overload

* run black

* remove unused utils and fix tests

* run black

* Fix test

* deprecate python 3.8, add support for 3.11 (already testing this currently)

* Add stake info runtime api (#1493)

* add stake info runtime api specs

* add StakeInfo to chaindata

* add util function for ss58 -> Vec<u8>

* use new util

* add stake info query

* run black

* modify helpers to decode w/only typestring as well

* typo

* use new tuple format

* run black

* fix type hints for stake info funcs

* typo in name of funcs

* Add subnetowner to list subnets, implement root register

* minor naming changes

* add wallet create command

* add root list

* Check if user registered to root network before submitting

* Add empty result error handling to query_runtime_api

* subnetInfo_getBurnCost renamed to getLockCost

* add stake list

* stake show

* Add root set weights command and extrinsic call

* allow subtensor( finney or ws://127.0.0.1:9946 )

* minor changes on subnet list

* fix root weights set

* Use wallet submod (#1471)

* add submodule for wallet

* import from submodule instead

* fix tests extra kwarg

* add impl for bittenso_config

* oops, dont return

* use keyfile from submodule

* use submodule instead

* use submod

* add CI for submodules

* add submod steps to install script

* update submod for a14625

* update reamde for submodule command

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Revolution master merge (#1496)

* remove miniupnpc

* add try/except and timeout to version checking with exception handles

* update CONTRIBUTING.md and DEVELOPMENT_WORKFLOW.md (#1475)

* update CONTRIBUTING.md and DEVELOPMENT_WORKFLOW.md

* Update contrib/DEVELOPMENT_WORKFLOW.md

Co-authored-by: philanthrope <ifrit98@gmail.com>

* move styles to style guide

* update workflow doc based on comment

* update contributing.md delete Architecture section

* fix CODE_REVIEW_DOC dev_note link

* Update contrib/CONTRIBUTING.md

Great

Co-authored-by: philanthrope <ifrit98@gmail.com>

* Update contrib/CONTRIBUTING.md

Ditto:

Co-authored-by: philanthrope <ifrit98@gmail.com>

---------

Co-authored-by: gitphantomman <MinatoLgend0702@outlook.com>
Co-authored-by: philanthrope <ifrit98@gmail.com>

* add checks (#1484)

* add checks

* fix docker img

* fix docker img2

* only run check_requirements job when an actual requirement changes

* log bittensor pipaddress for version_checking

* add newline

* add newline to contrib

* fix formatting to 1 newline

* add perms to checK-compat script

* fix check_reqs ci

* Update contrib/CODE_REVIEW_DOCS.md

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* manually add 69df50c

* Revert "manually add 69df50c"

This reverts commit 3b56873. Was erroneous.

* remove compat check for dropped py3.8

* run black

* manual add of f267fb7

* faster overview manual add: be31c49

* remove duplicate weights

* run black

---------

Co-authored-by: gitphantomman <140101294+gitphantomman@users.noreply.github.com>
Co-authored-by: gitphantomman <MinatoLgend0702@outlook.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* add note about submodules to install from source

* Fix state_call decoding error cases

* Add body hash to signature for verification, stop overrides (#1503)

* Add body hash to signature for verification, stop overrides

* add tests

* remove unused imports

* remove hashlib import

* missing .

* [Revolution] add associated ip info (#1486)

* add ipinfo to type map and chaindata

* not an option

* add subtensor call for pulling assoc ip

* add do_associate_ips call

* add encode func

* black format

* add state calls api

* add overload for decoding from multiple types

* use new state call to grab without custom rpc

* oops, use correct function

* add validator ip to runtimeapi registry spec

* remove duplicate methods from merge and use new logic

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Implement sudo set hyperparameters command

* Add Subnet Hyperparameters command

* make config, less verbose

* _SubParsersAction

* add automated submodule sync to setup

* add aliases

* add aliases

* Remove set_adjustment_interval from sudo set command

* subtensor config changes

* fix wallet create

* Fix set hyperparameter

* fix transfer command

* Revolution security fix jsons (#1506)

* replace pickle with jsons to avoid pickle security issues

* fix test_syapse.py

* use our internal msgpack-numpy that disables pickle

* skip git+ reqs in check_compat

* graceful error for submodules

* remove jsons in favor of json, no benefit as async client (httpx) attempts to internally json deserialize anyway. jsons would be of no benefit

* fix tests

* remove jsons req

* run black

* add typehint

* fix arg parse

* fix overview pickling (#1508)

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* Revert "fix overview pickling (#1508)"

This reverts commit 2cecaf9 in favor of #1509

* fix overview pickling (#1508)

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>

* [Revolution] Fix overview (#1509)

* fix overview pickling

* undo hacky fix

* change subcmd help check. make required

* fix indents with return

* more explicit if/else

* Revolution aio (#1488)

* aiohttp

* swap req for httpx/aiohttp

* (WIP)

* add processing on dendrite side that calls stream synapse

* add example that works, fix var name

* remove print statements

* integrate streaming into bittensor

* run black and remove examples

* drop support for python<3.9

* defer to default deserialize() instead of abstractmethod, make logging stmt debug for dendrite

* add client pooling for efficiency

* add annotations so we don't have to use string type-hints, run black

* Aio merge master (#1507)

* add automated submodule sync to setup

* add aliases

* add aliases

* Remove set_adjustment_interval from sudo set command

* subtensor config changes

* fix wallet create

* Fix set hyperparameter

* fix transfer command

* Revolution security fix jsons (#1506)

* replace pickle with jsons to avoid pickle security issues

* fix test_syapse.py

* use our internal msgpack-numpy that disables pickle

* skip git+ reqs in check_compat

* graceful error for submodules

* remove jsons in favor of json, no benefit as async client (httpx) attempts to internally json deserialize anyway. jsons would be of no benefit

* fix tests

* remove jsons req

* run black

* fix readme, remove recurse-submod as it's in setup.py now

* remove pep517 note, causes issues

---------

Co-authored-by: unconst <jake@bittensor.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>

* merge master and update reqs

* remove trace calls

---------

Co-authored-by: unconst <jake@bittensor.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>

* run black

* fix failing subtensor integration test

* fix (most) test_cli unittest

* run black

* (WIP) fix test_cli_no_network tests

* run black

* remove simple checks that might change depending on python version

* let subnets define schema for required body hash (#1511)

* let subnets define schema for required hashable body items rather than attempting to parse

* run black

* add a default implementation for required_hash_fields instead of Nil

* remove uused import

* Revolution timeout (#1510)

* add bittensor.timeout context manager, timeout substrate calls

* fix try block

* fix _do_set_weights call timeout

* add timeouts to subtensor compose_call(s)

* add display info to appropriate timeouts, fix get_transfer_fee default

* catch WebsocketTimeoutException in websocket

* substitute signal for threadding solution (OSX users rejoice)

* reintegrate wallet (#1512)

* reintegrate wallet

* run black

* Use state_call runtime api over node runtime calls for get_subnet_lock_cost

* Remove useless blocktime sleep in SubnetLockCostCommand

* Fix total_issuance column in subnet metagraph command

* Revert "Revolution timeout (#1510)" (#1513)

* Revert "Revolution timeout (#1510)"

This reverts commit 61a16e9.

* run black

* fix list_delegates command

* fix subnets list test by updating mock subtensor to have SubnetOwner param

* add black to reqs and run it

* return python 3.8 to the fold

* add retries to _do calls

* run black

* remove submodule sync in setup as we removed submods

* fix pip install to prefix with correct env for pyenv

* try newer python 3.8.18 for circleci docker

* try pyhton -m for install .[dev]

* remove test for 3.8, it's good but circleci is broken

* BIT-87 to revolution wallet upgrade (#1497)

* init port of bit-87 to revolution wallet upgrade

* wallet test fix

* run black

* formatting

* added keyfileerror

* added test for consistant password

* formatting

* separated create (legacy) wallet

* commenting

* fix wrong password fix

* clean up

* naming fix

* moved UpdateWalletCommand to wallets.py

* delete update_wallet.py

* ux improvements

* formatting

* update console message

* prompting message

* update ux flow to make sure user have stored their mnemonics

* update requirement

* run black

* upperbound PyNaCl req, update_wallet -> update bc we have subparsers

* fix print msg

* temp skip check_coinfig due to cli subparser bug, will be fixed on revolution

---------

Co-authored-by: isabella618033 <isabella618033@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>

* Fix revolution axon blacklist (#1514)

* blacklist fix

* fix axon test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* update signature check for blacklist

* ensure required args from parsers are correctly filled from parsed args

* run black

* fix missed variable name for config required arg parsing

* revert 98f6775

* Weight normalization (#1515)

* weight normalization

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* update blacklist signature log

* Fix subnet hyperparams command by using runtime_api state_call

* run black

* Imports and typehints (#1517)

* standardize bittensor imports

* run black

* standardize typehints

* run black and add Calalble

* add responses

* fix typehints

* remove unnecessary traces (#1518)

* remove unnecessary traces

* added blacklist reason to trace

---------

Co-authored-by: isabella618033 <isabella618033@gmail.com>

* Header fix (#1516)

* (WIP) Refactor synapse and dendrite to verify body hash in signature

* EUREKA!

* cleanup print statements

* remove (now) unnecessary metaclass override protection

* remove metaclass from Synapse def

* fix commit

* remove print statements

* run black

* add typehints for request

* (WIP) update synapse tests

* move hash to utils

* remove extra logging

* fix repackaging request, inspect body and hash to compare against header hashes

* remove streaming example, moved to subnet-1 template

* put blacklist first so we don't load the body if we're gonna blacklist anyway

* fix axon tests

* fix bt. import

* fix typehint bt.

* fix test relative to header changes

* run black

* add reason to error logging

* create dependency for all forward_fn routes to verify body before passing to synapse function

* fix test (again)

* add md5 hash option

* remove extra trace

* Hash fix (#1519)

add check for missing field

* Update allowed subnet-owner hyperparameters

* Complete btcli root list command

* Add dereg stake to overview command (#1495)

* Add dereg stake to overview command

* fix typo

* use default dict instead

* pass lambda for default factory

* remove lambda arg in def factory

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Update Command Examples (#1523)

Updates command examples to new format

* Root Metagraph fixes (#1524)

root metagraph fixes

* run black

* don't overwrite self.subtensor

* simplify hashing for request verification (#1521)

* simplify hashing for request verification

* add override protection for  property

* run black

* update synapse tests

* update default json b64 value for hash_fields

* remove print statement

* run black

* Revolution master prep (#1526)

* merge master into revolution

* remove depreicated content

* run black

* update readme for new cli (#1525)

* Ci fix (#1531)

* add msgpack-numpy to ci

* revamp parsing to correct VCS link

* Dockerfile update (#1530)

update dockerfile to pytorch dep 2.0.1

* run black

* Metagraph 0 fix (#1529)

* fix for metagraph root weights

* black

* Revolution test fixes (#1528)

* add no_prompt confirmation for wallet update command

* fix bool flag bug in cli (argparse)

* unskip tests

* use instantiated subtensor for root and senate incase cli.config is None

* run black

* unskip and update cli tests

* adds simple test for btcli root senate_vote

* black

---------

Co-authored-by: p-ferreira <pe_drojunior@hotmail.com>

* Header fix (#1532)

* rm md5 -> sha3

* pass required_hash_fields as attach argument

* make default_verify async

* move req_hash_fields to a field instead of prop

* black

* make verify_body_integirty member of self to accesss required_hash_fields

* correct default value

* proper request name for key

* update tests

* black

* parse required_hash_fields directly from protocol definition itself

* run black

* move parsing req_hash_fields below signature checks

* remove arg docstring for attach()

* fixes for root weights on metagraph (#1533)

* fixes for root=True

* run black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

---------

Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: unconst <jake@bittensor.com>
Co-authored-by: ifrit98 <ifrit98@gmail.com>
Co-authored-by: CreativeBuilds <nick@creativebuilds.io>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: philanthrope <stgeorgejas@gmail.com>
Co-authored-by: Mostima <91517378+mostimasblunderbuss@users.noreply.github.com>
Co-authored-by: Julius ter Pelkwijk <1099127+mrseeker@users.noreply.github.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: gitphantomman <140101294+gitphantomman@users.noreply.github.com>
Co-authored-by: gitphantomman <MinatoLgend0702@outlook.com>
Co-authored-by: isabella618033 <isabella618033@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: CreativeBuilds <gaminggonecreative@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: p-ferreira <pe_drojunior@hotmail.com>
ifrit98 added a commit that referenced this pull request Oct 30, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
ifrit98 added a commit that referenced this pull request Oct 31, 2023
Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
ifrit98 added a commit that referenced this pull request Nov 1, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
ifrit98 added a commit that referenced this pull request Nov 16, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* add show_delegates docstring

* docstring should go under function name

* re-add missing delegate-take-command

* delegates docs completed

* identity

* inspect

* list docstr

* metagraph

* update metagraph doc, add misc and network

* overiew, regiser, and root docstrings

* update senate

* update stake and transfer

* wallet

* delegated stake fix

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
ifrit98 added a commit that referenced this pull request Nov 16, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* add show_delegates docstring

* docstring should go under function name

* re-add missing delegate-take-command

* delegates docs completed

* identity

* inspect

* list docstr

* metagraph

* update metagraph doc, add misc and network

* overiew, regiser, and root docstrings

* update senate

* update stake and transfer

* wallet

* delegated stake fix

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>
ifrit98 added a commit that referenced this pull request Nov 20, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* fix merge duplication in dendrite, config print error

* update version

* update changelog

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove dele…
ifrit98 added a commit that referenced this pull request Nov 27, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test fo…
ifrit98 added a commit that referenced this pull request Nov 28, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and…
ifrit98 added a commit that referenced this pull request Nov 28, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* …
ifrit98 added a commit that referenced this pull request Nov 30, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for lo…
Eugene-hu added a commit that referenced this pull request Dec 1, 2023
* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Release/6.3.0 (#1582)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test f…
unconst added a commit that referenced this pull request Dec 14, 2023
* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* Master into staging (#1570)

Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)



* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------



* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------



* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------







* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------








* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------








* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------











* fix typos

---------












* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------



* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* adding logging.exception (#1569)

* adding logging.exception

* Update network.py (#1568)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* Improve development workflow documentation

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

* Merge releases 4.0.0 and 4.0.1 back to staging (#1306)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

* [Release] v4.0.0 (#1271)

* bump version

* Fix permissions for release github script (#1224)

Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>

* should be 4.1.0

* Revert "should be 4.1.0"

This reverts commit 3db08ea24f4fc4775bd46858e6c77cfa165d85ed.

* Staging into Release branch (#1275)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for local test and new bins (#1243)

* add spec and new bins

* fix config netuid

* use dot get

* check if config netuid is list

* add start to mockstatus

* add attr to mock neuron

* add info to mock from neurons

* change ordering of neuron dict to namespace

* remove test for wandb for axon

* use regex for looser match

* fix blacklist metagraph mock

* use real mock netuid

* use mock network and netuid in constructor

* fix patch

* patch delegate check

* use mock network and netuid

* remove check for wallet hotkey

* fix tests for subtensor init

* dont set netuid for overview test

* typo in docstring

* add mock status stop

* add low mock tx limit

* oops typo

* use dot get

* add wait for final and incl args

* use args during setup

* update bins and use 100ms blocktime

* pass block arg

* remove bittensor.logging and a old test

* use random port

* backward fix

* fix block time to 1s

* compile no symb on linux

* compile no symb mac

* remove useless init on var

* use dot get for new flags

* update test durations

* update test durations

* use dot get for config

* output error msg

* mock to_default

* remove to defaults in help

* reduce neruons, remove flaky test

* deactivate test

* mvoe key pair tests out of the subtensor interface

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Fix list_delegates on non-archive nodes (#1232)

* Change how pull of archival data is handled

* fix for list_delegates too

* .

* use empty dict

* fix spacing

* specify exception

* log out

* add space in log message

* use warning instead

* Blacklist fixes + depreciation of old signatures (#1240)

* fixes blacklist error message + remove

* remove checks for parse signature

* remove sign v1 tests

* fix for the syanpse checks

* fix tests and remove duplicate sign

* [BIT-636] Change u16 weight normalization to max-upscaling (#1241)

* Change u16 weight normalization to max-upscaling

Use full u16 bitwidth so that max_weight=U16_MAX, then rely on subtensor epoch to properly normalize weights in I32F32. This means that weights submission extrinsic to subtensor does not have to be pre-normalized.

* Skip zero sum in weight conversion

* Round u16 weights

* remove duplicate command #1228 (#1231)

* remove duplicate command #1228

* Extract create_parser for cli testing

* mark as private

* use in tests and test for duplicates

* fix test using mock prompt answers

* test_forward_priority_2nd_request_timeout fix (#1276)

fix

* Remove btcli query and btcli set_weights (#1144)

.

---------

Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Remove codecov (#1282)

* Use alt new preseal (#1269)

* use new preseal for reg

* bump cubit req

* fix arg order issue

* cubit req back

* use alt impl

* fix typehint

* use 512

* modify tests for new format

* refactor functions to use helpers and remove useless

* refactor functions

* add test for CPU solver

* modify tests for privitized module and methods

* private register cuda

* move formatting funcs

* use powsolution

* privitize most methods

* fix test

* fix perms

* remove test script

* remove debug

* fix call

* fix seal

* fix combined hash

* move to method

* fix test using real example

* update mock bins

* use new builder

* fix block update tests

* fix some patching in tests

* mock live display for some tests

* fix chain mock

* update linux bin

* add mock network flag

* set max diff at 0 for mock netuid 1

* set min diff too

* add try catch for setup

* add some logging during tests

* don't submit on cli register

* update test durations

* fix test to use mock keypair

* return mock wallet

* should use subtensor instance during rereg

* update node subtensor bins

* use fixtures and multiple subtensor instances

* changelog update

* skip CLI tests (#1284)

* skip tests

* dont test mock functions

* update test durations

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* fix my delegates

* fix perms on changelog script

* update version

* fix changelog script

* Catch bad endpoint protocol (#1296)

* catch protocol not good

* add protocol 4

* catch assertion and return bool

* catch assertion errors

* changelog

---------

Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>

* Update DEVELOPMENT_WORKFLOW.md

* final fixes

* staging updates and fixes (#1540)

* fix cli test

* fix double-counted hotkeys per subnet and non-iterable stake obj (#1539)

* fix double-counted hotkeys per subnet and non-iterable stake obj

* run black

* Add root get_weights command to btcli (#1536)

* Add root get_weights command to btcli

* Use a percentage for viewing weights instead of float values

* run black, fix cli test

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* Merge master (#1552)

Release/6.1.0 (#1550)



* Fix typo (#1543)



* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)



* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Streaming fix (#1551)

* yield chunks immediately in process_streaming_responss so clients can access

* break streaming into separate call funcs

* update docstrings, types

* black

* duplicate debug msg

* add warning for mismatched streaming arg + subclass

* Fix typos (#1553)

* Release/6.1.0 (#1550)

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Fix typo (#1543)

Co-authored-by: philanthrope <ifrit98@gmail.com>

* remove duplicated debug message in dendrite (#1544)

* Cli fix (#1541)

don't break on mismatched coldkey from local wallet <> chain

* update faucet helpstr (#1542)

* Added mechanism to sum all delegated tao (#1547)

Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Dict hash fix (#1548)

* use dict() when hasing body objects to not convert arbitrary objects to str

* recreate synapse in axon dependency to avoid duplicating code

* black

* update version

* update changelog

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* fix typos

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>

* Normalize weights in r get weights table (#1556)

* Normalize weights in r get weights table

* use numpy and make table look nicer

* apply black

* add max 1 to prevent div0

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Dendrite & Synapse updates and fixes (#1555)

* remove tensor header objects to not overflow headers

* update tests to reflect removal of tensor headers

* ensure consistent method for calling  in synapse methods

* fix dendrite UnClosesedSession error

* fix docstring and add tests for close/aclose

* rm extra delete

* run black

* add default synapse dict() consistency test

* call del on session after close_session(), fix tests

* update dendrite dummy clsname

* add dendrite.query finally block

* fix test

* rm root flag in metagraph (#1558)

* rm root flag in metagraph

* run black

* typo

* Max Faucet Runs == 3 (#1560)

add exceptions

* replace unknown wallet params (chain mismatch) with key values (#1559)

* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints

* Remove PoW registration cli and associated extrinsic (#1557)

* Remove PoW registration cli and associated extrinsic

* run black

* no mo pow, no mo pow tests

* remove now deprecated PoW reregister routine

* remove deprecated tests

* more test fixes

* remove _do_pow call

* return PoW but still kill reregister (unused)

* run black

* return test to networks choices in btcli, fix chain_endpoint selection

* fix pow args

* Add btcli wallet balance (#1564)

* begin adding balance command

* skip validator that hasn't set weights yet on root

* finish balances command

* formatter

* issue warning for nonexistent coldkeypub.txt rather than break

* Dendrite fixes (#1561)

* make sure a session exists before trying to close it

* don't double iterate over async generator, simply return it

* black

* less DRY violations

* fix typehints

* add versioning

* update changelog

* remove unused registration utils

* fix typos

---------

Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Update network.py

small spelling fix `weights_rate_Limit` -> `weights_rate_limit`

* Reformat

---------

Co-authored-by: philanthrope <ifrit98@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@fairchild.dev>
Co-authored-by: Eugene <etesting007@gmail.com>
Co-authored-by: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com>
Co-authored-by: isabella618033 <49876827+isabella618033@users.noreply.github.com>
Co-authored-by: joeylegere <joeylegere@gmail.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.ai>
Co-authored-by: “quac88” <“mac2@thrasher.com”>
Co-authored-by: opentaco <93473497+opentaco@users.noreply.github.com>
Co-authored-by: Eduardo García <garciaruiz.edu+github@gmail.com>
Co-authored-by: Ayden Brewer <dalegribble@riseup.net>
Co-authored-by: Steffen Cruz <steffenjcruz@gmail.com>
Co-authored-by: Ala Shaabana <shaabana@gmail.com>
Co-authored-by: Ala Shaabana <ala@bittensor.com>
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
Co-authored-by: Cameron Fairchild <cameron@opentensor.dev>
Co-authored-by: Cameron Fairchild <cameron@fairchild.software>

* Subtensor Registry  (#1562)

* subtensor identity query

* formatter

* adds identified field

* black and additional requirement

* black

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* add instructions for upgrading bittensor with outdated version check (#1571)

* add instructions for upgrading bittensor with outdated version check

* run black

* Add identity commands to btcli (#1566)

* subtensor identity query

* formatter

* add get/set identity btcli command

* check for values > 64 bytes max on chain

* run black

* update identity funcs for hotkey option

* fix incorrect bytes limit for idendity

* run black

* add check for 1 tao cost

---------

Co-authored-by: Eugene <etesting007@gmail.com>

* Add set_delegate_take command to btcli (#1563)

* Add set_delegate_take command

* formatter

* string info update

---------

Co-authored-by: ifrit98 <ifrit98@gmail.com>

* Subtensor archive (#1575)

* add archive network option to subtensor

* add /

* fix archive resolution

* Bugfix/list delegates (#1577)

* make this legible/visible

* run black

* don't return result twice in query() (#1574)

* rename logging.py so doesn't circ import (#1572)

* add AxonInfo.<to|from>_string() (#1565)

* add AxonInfo.<to|from>_string()

* add error handling

* don't print __is_set for recursive objects (#1573)

* Adds docstrings for CLI for Sphynx documentation (#1579)

* Release/6.2.0 (#1567)

* (un)Staking multiple avoid tx limit (#1244)

* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey

* additional logging for prometheus

* additional logging for prometheus (#1246)

* Dataset fix (#1249)

* fix

* added try except

* Grab delegates details from GitHub (#1245)

* add url to init

* add dataclass and util functions

* use in cli

* remove delegates json

---------

Co-authored-by: joeylegere <joeylegere@gmail.com>

* Add raw spec for lo…
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.

None yet

3 participants