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

Release/7.0.0 #1899

Merged
merged 271 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
9005206
Remove irrelevant call to get_delegates method for comparison (obsole…
roman-opentensor Apr 30, 2024
e5cda03
Merge pull request #1823 from opentensor/fix-broken-link-in-contrib/t…
gus-opentensor Apr 30, 2024
bfc138b
Merge branch 'staging' into logging/abe/adding-first-party-loggers
gus-opentensor Apr 30, 2024
54e822b
Merge branch 'staging' into feature/rpc-request
gus-opentensor Apr 30, 2024
3982da2
Merge branch 'staging' into tests/abe/set-weights
gus-opentensor Apr 30, 2024
41ee34f
Merge pull request #1825 from opentensor/tests/abe/set-weights
gus-opentensor Apr 30, 2024
5f012ee
Merge branch 'staging' into feature/rpc-request
roman-opentensor Apr 30, 2024
187d902
Merging conflicts
ibraheem-opentensor Apr 30, 2024
90fbf37
Merge branch 'staging' into logging/abe/adding-first-party-loggers
ibraheem-opentensor Apr 30, 2024
5a719a2
Merge pull request #1826
roman-opentensor Apr 30, 2024
81bcb8a
Merge branch 'staging' into fix/abe/regencoldkey
ibraheem-opentensor Apr 30, 2024
2787038
Add in check for minimum stake for unstaking #1828
thewhaleking Apr 30, 2024
2de7cc3
no-op branch rename
thewhaleking Apr 30, 2024
73051ec
Black format
thewhaleking Apr 30, 2024
98bc6cd
Remove `packaging` version pin in requirements
olzhasar-reef May 1, 2024
58c6c09
Refactor reading version from file
olzhasar-reef May 1, 2024
1c69ad6
Merge pull request #1815 from opentensor/fix/abe/regencoldkey
gus-opentensor May 1, 2024
ba153b0
Merge branch 'staging' into logging/abe/adding-first-party-loggers
gus-opentensor May 1, 2024
283ddef
Add in check for minimum stake for unstaking #1828
thewhaleking May 1, 2024
761622d
black fmt
thewhaleking May 1, 2024
4160545
Merge branch 'staging' into warmfix/add-thresholds-for-unstaking
gus-opentensor May 1, 2024
5412af0
Merge pull request #1797 from opentensor/logging/abe/adding-first-par…
gus-opentensor May 1, 2024
c274161
Add in check for minimum stake for unstaking #1828
thewhaleking May 1, 2024
979eeb7
Updated tests, black formatting.
thewhaleking May 1, 2024
2fe9cb0
Removed comment.
thewhaleking May 1, 2024
5ca6534
Merge branch 'staging' into warmfix/add-thresholds-for-unstaking
thewhaleking May 1, 2024
752c1ad
Merge pull request #1832 from opentensor/warmfix/add-thresholds-for-u…
thewhaleking May 1, 2024
064ca47
Add check_version, soft deprecate version_checking
olzhasar-reef May 1, 2024
9e682dd
Monkeypatch in the caching of get_decoder_class
thewhaleking May 1, 2024
ac20d8b
Merge branch 'feature/daily-version-check' into feature/version-check…
olzhasar-reef May 1, 2024
d2c7841
Format with black
olzhasar-reef May 1, 2024
33749e6
Change cache to lru_cache to keep compatibility with Python 3.8 (cach…
thewhaleking May 1, 2024
5a3a0a6
Added note to requirements to verify we do not change scalecodec unti…
thewhaleking May 2, 2024
d3cd9b6
Added whitespace before comments in requirements files.
thewhaleking May 2, 2024
04f6144
Requirements comments format change.
thewhaleking May 2, 2024
8deab63
get_decoder_class can take either a str or a dict. We are only able t…
thewhaleking May 2, 2024
238668e
Removed the wrapper, as we only ever send strings.
thewhaleking May 2, 2024
05b2794
Removed empty parens
thewhaleking May 2, 2024
3b47287
Merge pull request #1834 from opentensor/feature/1833/cache-get-decod…
thewhaleking May 2, 2024
61268e9
Add the command btcli root list_delegates_lite to handle the Delegate…
roman-opentensor May 4, 2024
5415b31
Tests: Added coverage for unstake_extrinsic
ibraheem-opentensor May 4, 2024
29efad2
Add the command btcli root list_delegates_lite to handle the Delegate…
roman-opentensor May 4, 2024
992e242
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
c733c64
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
4c8257e
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
58ba815
Tests: Added coverage for staking
ibraheem-opentensor May 3, 2024
cf85dab
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
69a8e97
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
15cd287
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
e290c68
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
2c5fd19
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
d568147
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
6fcc113
Add the command btcli root list_delegates_lite to handle the Delegate…
roman-opentensor May 4, 2024
19f1965
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 4, 2024
cde9941
Add the command btcli root list_delegates_lite to handle the Delegate…
roman-opentensor May 4, 2024
3def86b
Changes cacheing for get_decoder_class
thewhaleking May 5, 2024
4ba9bc1
Merge branch 'staging' into feature/version-check-cache
mjurbanski-reef May 6, 2024
7dd819d
Merge pull request #1842 from opentensor/warmfix/change-decoder-cacheing
thewhaleking May 6, 2024
e9608d8
Fix typo in warmfix
thewhaleking May 6, 2024
f8babbb
Merge branch 'staging' into warmfix/change-decoder-cacheing
thewhaleking May 6, 2024
eec3a2a
Merge pull request #1844 from opentensor/warmfix/change-decoder-cacheing
thewhaleking May 6, 2024
41b54d9
Add the command btcli root list_delegates_lite to handle the Delegate…
roman-opentensor May 4, 2024
6ccb906
Merge branch 'staging' into merge_cuda
thewhaleking May 6, 2024
17d7d03
Merge branch 'refs/heads/staging' into feature/roman/get-delegates-lite
roman-opentensor May 7, 2024
83e0502
Tests: added coverage for multiple unstaking
ibraheem-opentensor May 7, 2024
4641f33
Merge branch 'staging' into tests/abe/unstaking.py
ibraheem-opentensor May 7, 2024
1aec229
Merge branch 'refs/heads/staging' into feature/roman/get-delegates-lite
roman-opentensor May 7, 2024
deb11df
Merge remote-tracking branch 'origin/feature/roman/get-delegates-lite…
roman-opentensor May 7, 2024
cfc375f
Merge pull request #1840 from opentensor/feature/roman/get-delegates-…
roman-opentensor May 7, 2024
0b6352f
cleanup and fix test_cli.py so it doesn't error out with "File exists"
mjurbanski-reef May 7, 2024
4d0c1b7
Fix initial few issues with the torch=>numpy PR.
thewhaleking May 7, 2024
3deabb8
Changed __console__.error to .stderr, made Coretex team aware of the …
thewhaleking May 7, 2024
000b926
Change __console__.error to __console__.print as there is no error at…
thewhaleking May 7, 2024
5d664b9
Change __console__.stderr to __console__.print
thewhaleking May 7, 2024
9950272
Merge pull request #1849 from opentensor/fix/console-error-change/the…
thewhaleking May 7, 2024
0222d1a
Removed Confirm verification for torch load to bypass stdin capture.
thewhaleking May 7, 2024
724b3cc
Removed dendrite.__call__ overwrite. Unrelated to PR and not tidying.
thewhaleking May 7, 2024
290f5a8
Added dendrite.__call__ back in. This is necessary because dendrite c…
thewhaleking May 7, 2024
ec53327
Remove deprecated datetime.utcnow() calls
olzhasar-reef May 7, 2024
0a135c1
Keep consistency for type checking with the rest of the repo
thewhaleking May 7, 2024
bf988cb
Rewrote the unbiased_topk function with numpy. Added some warnings fo…
thewhaleking May 7, 2024
2b5b00a
Merge branch 'staging' into merge_cuda
thewhaleking May 7, 2024
1da47d4
Eth-utils: enforcement for correct version
ibraheem-opentensor May 8, 2024
2d3fe54
Small fix with receiving delegates based on a 4-hour archive block
roman-opentensor May 8, 2024
b78582e
Small fix with receiving delegates based on a 4-hour archive block
roman-opentensor May 8, 2024
29fbb4e
Merge remote-tracking branch 'origin/fix/roman/archive-4hr-block' int…
roman-opentensor May 8, 2024
add75e6
Small fix with receiving delegates based on a 4-hour archive block
roman-opentensor May 8, 2024
94dce56
Versioning: added version dependencies for FastAPI
ibraheem-opentensor May 8, 2024
1b4d4f5
Merge pull request #1854 from opentensor/fix/roman/archive-4hr-block
roman-opentensor May 8, 2024
ffda60b
Merge branch 'staging' into fixes/abe/eth-utils
ibraheem-opentensor May 8, 2024
5169db7
Merge branch 'staging' into merge_cuda
thewhaleking May 8, 2024
60deb4d
Merge pull request #1786 from opentensor/merge_cuda
thewhaleking May 8, 2024
be641a9
Dependencies: Added shtab
ibraheem-opentensor May 9, 2024
d5900f6
Merge branch 'staging' into fixes/abe/fast-api-dependencies
ibraheem-opentensor May 9, 2024
ad94a6b
Merge branch 'staging' into fixes/abe/eth-utils
ibraheem-opentensor May 9, 2024
2f14f89
Merge pull request #1852 from opentensor/fixes/abe/eth-utils
ibraheem-opentensor May 9, 2024
2ac0991
Merge branch 'staging' into fixes/abe/fast-api-dependencies
ibraheem-opentensor May 9, 2024
7497e0b
Merge pull request #1855 from opentensor/fixes/abe/fast-api-dependencies
ibraheem-opentensor May 9, 2024
23bdd6b
Tests: Increased coverage of network.py
ibraheem-opentensor May 10, 2024
ba4a700
Retrieving error types from the metadata of the Substrate palette "Su…
roman-opentensor May 9, 2024
cae20fa
Rename back from subtensor_module.py to subtensor.py
roman-opentensor May 10, 2024
6979acf
Fix tests, annotations, add todo regarding subtensor_build_id and imp…
roman-opentensor May 10, 2024
8d3114c
Tests: Added coverage for root.py
ibraheem-opentensor May 13, 2024
6230b3f
Merge pull request #1862 from opentensor/feature/roman/retrieving-err…
roman-opentensor May 13, 2024
e6fa3f8
Merge branch 'staging' into tests/abe/root.py
ibraheem-opentensor May 13, 2024
aa0f80e
Merge branch 'staging' into tests/abe/network.py
ibraheem-opentensor May 13, 2024
d29d979
Updated error message and a test typo.
thewhaleking May 13, 2024
8b9bdb4
_get_total_balance & _get_hotkeys refactor of OverviewCommand _run
gus-opentensor Apr 17, 2024
9c32414
Merge branch 'staging' of github.com:opentensor/bittensor into featur…
olzhasar-reef May 13, 2024
3b8876f
feat: Refactor phase 1 overview cmd & add test cov
gus-opentensor May 13, 2024
3c597f2
Tests: Added coverage for Delegation
ibraheem-opentensor May 14, 2024
a1c02ca
Tests: Fixed test description
ibraheem-opentensor May 14, 2024
c2545bf
Merge pull request #1835 from backend-developers-ltd/feature/version-…
gus-opentensor May 14, 2024
d5becee
Merge branch 'staging' into tests/abe/delegation
gus-opentensor May 14, 2024
5f1a37f
Merge branch 'staging' into tests/abe/root
ibraheem-opentensor May 14, 2024
e4872a5
Merge branch 'staging' into tests/abe/unstaking
ibraheem-opentensor May 14, 2024
c5d6aae
Merge branch 'staging' into tests/abe/staking
ibraheem-opentensor May 14, 2024
295a7b3
Merge branch 'staging' into tests/abe/network
distributedstatemachine May 14, 2024
460499d
Merge branch 'staging' into fix/typo-error-msg/thewhaleking
gus-opentensor May 14, 2024
8ce2aa8
Merge pull request #1877 from opentensor/tests/abe/root
gus-opentensor May 14, 2024
a1a34b7
Merge branch 'staging' into tests/abe/unstaking
gus-opentensor May 14, 2024
c5cd58b
Merge branch 'staging' into fix/typo-error-msg/thewhaleking
gus-opentensor May 14, 2024
29035fb
Merge branch 'staging' into tests/abe/network
gus-opentensor May 14, 2024
116d8cb
Merge branch 'staging' into tests/gus/extend-coverage-overview
gus-opentensor May 14, 2024
760e52b
Merge pull request #1879 from opentensor/tests/abe/network
gus-opentensor May 14, 2024
4a68b50
Merge branch 'staging' into tests/abe/unstaking
gus-opentensor May 14, 2024
124ffbc
Merge branch 'staging' into tests/gus/extend-coverage-overview
gus-opentensor May 14, 2024
e5c0693
Merge pull request #1873 from opentensor/tests/gus/extend-coverage-ov…
gus-opentensor May 14, 2024
ffc10ce
Merge branch 'staging' into tests/abe/unstaking
gus-opentensor May 14, 2024
38ec0b3
Merge branch 'staging' into fix/typo-error-msg/thewhaleking
gus-opentensor May 14, 2024
0cf28d2
Merge branch 'staging' into tests/abe/staking
ibraheem-opentensor May 14, 2024
b00041f
Merge pull request #1878 from opentensor/tests/abe/unstaking
ibraheem-opentensor May 14, 2024
159642c
Merge branch 'staging' into tests/abe/staking
ibraheem-opentensor May 14, 2024
f978669
Merge pull request #1837 from opentensor/tests/abe/staking
ibraheem-opentensor May 14, 2024
f896b60
Merge branch 'staging' into tests/abe/delegation
ibraheem-opentensor May 14, 2024
fd7faa5
Merge pull request #1874 from opentensor/tests/abe/delegation
ibraheem-opentensor May 14, 2024
40ba3ed
fix get_coldkey_password_from_environment resolving wrong password
mjurbanski-reef May 6, 2024
f03858e
Merge branch 'staging' into fix/typo-error-msg/thewhaleking
gus-opentensor May 15, 2024
33c7eaf
Merge pull request #1871 from opentensor/fix/typo-error-msg/thewhaleking
thewhaleking May 15, 2024
910334b
working test example
orriin May 15, 2024
44d1c24
fix: deprecated transfer method usage
orriin May 15, 2024
636ea67
Merge pull request #1886 from opentensor/fix/deprecated-method-usage
gus-opentensor May 15, 2024
c1963fe
Update Pydantic to version 2
opendansor May 15, 2024
6dfdfcd
List delegate lite docstrings
rajkaramchedu May 16, 2024
2a087a9
Fixed black errors
rajkaramchedu May 16, 2024
75892cf
Merge branch 'staging' into rajk/docs-list-delegate-lite
roman-opentensor May 16, 2024
7a72c34
Merge branch 'staging' into tests/e2e-tests-staging
orriin May 16, 2024
4d7026c
feat: improve test
orriin May 16, 2024
c292313
chore: create setup_wallet util fn
orriin May 16, 2024
ebffbbb
chore: refactor
orriin May 16, 2024
3aaa8de
refactor: exec command dry
orriin May 16, 2024
5145809
fix: wallet paths
orriin May 16, 2024
44bdc38
Add Pre-commit Checker in scripts. Helps reduce CI calls.
roman-opentensor May 16, 2024
62e5c8e
Add Pre-commit Checker in scripts. Helps reduce CI calls.
roman-opentensor May 16, 2024
6a2bcec
Fix Type Annotation
opendansor May 16, 2024
ad13ca3
Merge pull request #1895 from opentensor/feature/opendansor/1894-fixT…
gus-opentensor May 16, 2024
50d9849
Merge branch 'staging' into feature/roman/local-pre-commit-checker
gus-opentensor May 16, 2024
5b23293
Refactoring btlogging sub-package
roman-opentensor May 17, 2024
e15924f
Merge branch 'staging' into rajk/docs-list-delegate-lite
gus-opentensor May 17, 2024
efada21
Merge pull request #1890 from rajkaramchedu/rajk/docs-list-delegate-lite
gus-opentensor May 17, 2024
d81c3b0
Merge branch 'staging' into feature/roman/local-pre-commit-checker
gus-opentensor May 17, 2024
97c7587
Merge pull request #1893 from opentensor/feature/roman/local-pre-comm…
gus-opentensor May 17, 2024
f01a87a
feat: multi-step test
orriin May 17, 2024
043c648
Merge branch 'staging' into tests/e2e-tests-staging
orriin May 17, 2024
720e05a
format: black
orriin May 17, 2024
ba7a4a1
Merge branch 'tests/e2e-tests-staging' of github.com:opentensor/bitte…
orriin May 17, 2024
cd845e0
Fix tipo `sufix` -> `suffix`
roman-opentensor May 17, 2024
6a874c2
Merge branch 'staging' into fix_get_cw_passwd_env
mjurbanski-reef May 17, 2024
d8f7fea
Merge pull request #1843 from backend-developers-ltd/fix_get_cw_passw…
gus-opentensor May 17, 2024
250302b
Merge branch 'staging' into tests/e2e-tests-staging
distributedstatemachine May 17, 2024
b5ac175
drop python 3.8 support
mjurbanski-reef May 16, 2024
0a44098
Merge pull request #1892 from backend-developers-ltd/drop_py38
gus-opentensor May 17, 2024
941e4bb
feat: Refactor phase 2 overview cmd & add test cov. Adds factories
gus-opentensor May 15, 2024
c27dc9c
fmt
gus-opentensor May 15, 2024
e5032c9
fix: overview return
gus-opentensor May 17, 2024
1d1efea
Merge pull request #1887 from opentensor/tests/gus/overview
gus-opentensor May 17, 2024
799a909
chore: update changelog
gus-opentensor May 17, 2024
167c99c
Merge branch 'master' into release/7.0.0
gus-opentensor May 17, 2024
1640b0d
Migrate Synapse to Pydantic v2
opendansor May 17, 2024
c370332
drop python 3.8 support
mjurbanski-reef May 16, 2024
0508a49
feat: Refactor phase 2 overview cmd & add test cov. Adds factories
gus-opentensor May 15, 2024
18ea1f7
fmt
gus-opentensor May 15, 2024
69e1fdd
fix: overview return
gus-opentensor May 17, 2024
4de3bd0
Add setting delegate take
gztensor May 17, 2024
66ccdd2
Format
gztensor May 17, 2024
8f9aba7
Remove unused import
gztensor May 17, 2024
e714215
Remove duplicate import
gztensor May 17, 2024
ea61c25
test: set takes
May 18, 2024
e2a1515
chore: lints
May 19, 2024
f69874d
Merge branch 'staging' into feat/set-takes-staging
distributedstatemachine May 19, 2024
4e9369b
[WIP] Backporting the torch functionality
thewhaleking May 20, 2024
346c189
[WIP] Black format.
thewhaleking May 20, 2024
88fdd98
Combined two exceptions with the same output into one line. Brevity n…
thewhaleking May 20, 2024
3882102
Merge pull request #1903 from opentensor/feat/set-takes-staging
gus-opentensor May 20, 2024
d1311f6
[WIP] check-in
thewhaleking May 20, 2024
bf854c3
chore: correct method types
May 20, 2024
8ede1b3
Merge pull request #1907 from opentensor/fix/delegate_take_method_types
gus-opentensor May 20, 2024
1f2989e
[WIP] Check-in
thewhaleking May 20, 2024
81f2a42
[WIP] Check-in
thewhaleking May 20, 2024
0abdc88
[WIP] Check-in
thewhaleking May 20, 2024
a8a48ff
[WIP] Fixed dendrite Mixin
thewhaleking May 20, 2024
eaef146
Migrate Bittensor to Pydantic v2
opendansor May 20, 2024
1aa3549
tensor.py -> update allow_mutation flag to frozen flag
opendansor May 20, 2024
bdb8ec6
[WIP] Tests
thewhaleking May 20, 2024
22fa58f
Merge branch 'staging' into refactoring/roman/btlogging
roman-opentensor May 21, 2024
fcf0c82
bittensor/subtensor.py refactoring (part 1). last method subtensor.ge…
roman-opentensor May 21, 2024
640cc04
Merge pull request #1896 from opentensor/refactoring/roman/btlogging
roman-opentensor May 21, 2024
0119647
Merge branch 'staging' into refactoring/roman/subtensor-part-1
roman-opentensor May 21, 2024
869e552
bittensor/subtensor.py refactoring (part 1). last method subtensor.ge…
roman-opentensor May 21, 2024
2827d39
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 21, 2024
e54301f
[WIP] Fixed tests.
thewhaleking May 21, 2024
e12fc6b
[WIP] Dendrite fix for mypy redeclaration.
thewhaleking May 21, 2024
7fa6746
[WIP] updates
thewhaleking May 21, 2024
f6e8964
Update dict() call and copy() to model_copy() and model_dump()
opendansor May 21, 2024
de34795
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 21, 2024
debeae7
Merge branch 'staging' into feature/opendansor/PydanticV2Update
ibraheem-opentensor May 21, 2024
c9f7577
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 21, 2024
16659ba
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 21, 2024
5140447
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 21, 2024
e59b782
Fixed tests and mypy and black.
thewhaleking May 21, 2024
dbc5701
Flake tests
thewhaleking May 21, 2024
5717595
Merge branch 'staging' into feature/add-back-compatibility-with-torch…
thewhaleking May 21, 2024
8be1285
Update Readme, documentation, and test imports. Add defualt = None to…
opendansor May 21, 2024
27f1048
Roman-requested changes, as well as changing use_torch to a general b…
thewhaleking May 21, 2024
d720d8e
Update documentation to remove 'parse_raw' and instead use "model_val…
opendansor May 21, 2024
02968f8
Flake8 and Black
thewhaleking May 21, 2024
4ecdfaf
Merge pull request #1911 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 21, 2024
010cd0e
Merge branch 'staging' into feature/opendansor/PydanticV2Update
opendansor May 21, 2024
573fda5
Flake8 and README update.
thewhaleking May 21, 2024
bfef073
Merge pull request #1889 from opentensor/feature/opendansor/PydanticV…
opendansor May 21, 2024
cf01404
Merge branch 'staging' into feature/add-back-compatibility-with-torch…
thewhaleking May 21, 2024
4195515
Updated error msg for torch, added error msg for running the faucet c…
thewhaleking May 21, 2024
56855fb
Updated tests to conform to the correct type structure of the method.
thewhaleking May 21, 2024
9653271
Merge pull request #1904 from opentensor/feature/add-back-compatibili…
thewhaleking May 21, 2024
10e4312
chore: update changelog
gus-opentensor May 17, 2024
c3b8d99
chore: backmerge pydantic
gus-opentensor May 21, 2024
238d87b
Merge branch 'master' into release/7.0.0
gus-opentensor May 23, 2024
ec153c3
chore: fmt black
gus-opentensor May 23, 2024
06c5053
fix: import
gus-opentensor May 23, 2024
be4cb15
Update Pydantic Requirement to at least version 2.3 or greater.
opendansor May 23, 2024
3eb7eed
fix: logging import
gus-opentensor May 23, 2024
f376f02
Merge pull request #1917 from backend-developers-ltd/improve_no_torch
thewhaleking May 22, 2024
cd8a4df
Merge pull request #1919 from opentensor/thewhaleking/further-legacy-…
thewhaleking May 22, 2024
bba8118
Merge pull request #1937 from opentensor/thewhaleking/torch-compatibi…
thewhaleking May 24, 2024
7ad61ab
Merge pull request #1940 from opentensor/chore/abe/fix-take-msg
ibraheem-opentensor May 24, 2024
1904ebe
Removed delegates_lite functionality
ibraheem-opentensor May 28, 2024
45d41f2
Created a mock logger fixture so that object mutations don't break ot…
thewhaleking May 28, 2024
0a601d3
Chore: Updated dev requirements
ibraheem-opentensor May 28, 2024
75d21a4
Merge pull request #1946 from opentensor/chore/abe/update-dev-req
ibraheem-opentensor May 28, 2024
1c1f57c
7.0.0: Changelog updated
ibraheem-opentensor May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ jobs:
workflows:
compatibility_checks:
jobs:
- check_compatibility:
python_version: "3.8"
name: check-compatibility-3.8
- check_compatibility:
python_version: "3.9"
name: check-compatibility-3.9
Expand All @@ -294,7 +291,7 @@ workflows:
pr-requirements:
jobs:
- black:
python-version: "3.8.12"
python-version: "3.9.13"
- build-and-test:
matrix:
parameters:
Expand All @@ -305,7 +302,7 @@ workflows:
- lint-and-type-check:
matrix:
parameters:
python-version: ["3.8.12", "3.9.13", "3.10.6"]
python-version: ["3.9.13", "3.10.6", "3.11.4"]
requires:
- build-and-test
#- coveralls:
Expand Down
81 changes: 67 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# Changelog

## 7.0.0 / 2024-05-29

## What's Changed
* replace torch with numpy by @andreea-popescu-reef in https://github.com/opentensor/bittensor/pull/1777
* Fix broken link in contrib/RELEASE_GUIDELINES #1821 by @thewhaleking in https://github.com/opentensor/bittensor/pull/1823
* Tests: Added coverage for set_weights by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1825
* Remove irrelevant call to get_delegates method. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1826
* Support for string mnemonic thru cli when regenerating coldkeys by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1815
* Logging: Added _primary_loggers by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1797
* Add in check for minimum stake for unstaking by @thewhaleking in https://github.com/opentensor/bittensor/pull/1832
* Cache get_decoder_class by @thewhaleking in https://github.com/opentensor/bittensor/pull/1834
* Warmfix/change decoder cacheing by @thewhaleking in https://github.com/opentensor/bittensor/pull/1842
* Fix typo in warmfix by @thewhaleking in https://github.com/opentensor/bittensor/pull/1844
* Add the command btcli root list_delegates_lite to handle the Delegate… by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1840
* Change: console.error => console.print by @thewhaleking in https://github.com/opentensor/bittensor/pull/1849
* Small fix with receiving delegates based on a 4-hour archive block by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1854
* Replace torch with numpy by @sepehr-opentensor in https://github.com/opentensor/bittensor/pull/1786
* Versioning: Enforcement for eth-utils by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1852
* Versioning: Dependencies for FastAPI for Apple M's by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1855
* Retrieving error types from the metadata of the Substrate palette SubtensorModule for the btcli console (logic) by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1862
* Add version check caching, fix version comparison by @olzhasar-reef in https://github.com/opentensor/bittensor/pull/1835
* Tests: Added coverage for root.py by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1877
* Tests: Added coverage for network.py by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1879
* Tests: extends coverage for overview cmd part 1 by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1873
* Tests: Added coverage for Unstaking by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1878
* Tests: Added coverage for staking by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1837
* Tests: Added coverage for Delegation by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1874
* Updated error message and a test typo. by @thewhaleking in https://github.com/opentensor/bittensor/pull/1871
* fix: deprecated usage of `Balances::transfer` method by @orriin in https://github.com/opentensor/bittensor/pull/1886
* Fix Type Annotation by @opendansor in https://github.com/opentensor/bittensor/pull/1895
* Docstrings updates for list delegate lite feature by @rajkaramchedu in https://github.com/opentensor/bittensor/pull/1890
* Add Pre-commit Checker in scripts. Helps reduce CI calls. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1893
* fix get_coldkey_password_from_environment resolving wrong password by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1843
* Drop python 3.8 support by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1892
* feat: Refactor phase 2 overview cmd & add test cov. Adds factories by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1887
* Add setting delegate take by @gztensor in https://github.com/opentensor/bittensor/pull/1903
* E2E Test Patterns by @orriin in https://github.com/opentensor/bittensor/pull/1885
* chore: correct method types by @distributedstatemachine in https://github.com/opentensor/bittensor/pull/1907
* bittensor.btlogging refactoring by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1896
* Part 1 for refactoring bittensor/subtensor.py by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1911
* Update: Pydantic V2 by @opendansor in https://github.com/opentensor/bittensor/pull/1889
* Add back compatibility with torch by @thewhaleking in https://github.com/opentensor/bittensor/pull/1904
* Release/6.12.2 by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1910
* Chore: Updated dev requirements by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1946

## New Contributors
* @andreea-popescu-reef made their first contribution in https://github.com/opentensor/bittensor/pull/1777
* @thewhaleking made their first contribution in https://github.com/opentensor/bittensor/pull/1823
* @RomanCh-OT made their first contribution in https://github.com/opentensor/bittensor/pull/1826
* @olzhasar-reef made their first contribution in https://github.com/opentensor/bittensor/pull/1835
* @orriin made their first contribution in https://github.com/opentensor/bittensor/pull/1886
* @opendansor made their first contribution in https://github.com/opentensor/bittensor/pull/1895

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.12.2...v7.0.0

## 6.12.2 / 2024-05-20

## What's Changed
Expand Down Expand Up @@ -70,8 +125,6 @@

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.9.3...v6.10.0



## 6.9.3 / 2024-03-12

## What's Changed
Expand Down Expand Up @@ -111,8 +164,8 @@
* Expands type checking to subtensor by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1731
* Feature: Synapse passing type check by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1725
* bump req for security vulnerability in crpytography by @ifrit98 in https://github.com/opentensor/bittensor/pull/1718
* Fix: proper association with wallet dir and coldkey addr #1739 by @gus-opentensor & @sepehr-opentensor
* Fixed event lookup on new network added #1741 by @shibshib
* Fix: proper association with wallet dir and coldkey addr #1739 by @gus-opentensor & @sepehr-opentensor
* Fixed event lookup on new network added #1741 by @shibshib

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.8.2...v6.9.0

Expand Down Expand Up @@ -144,11 +197,11 @@
* logging off switch by @ifrit98 in https://github.com/opentensor/bittensor/pull/1704
* Extrinsic update by @ifrit98 in https://github.com/opentensor/bittensor/pull/1703
* Bittensor shared request layer by @ifrit98 in https://github.com/opentensor/bittensor/pull/1698
* Add no_prompt argument to help printout in https://github.com/opentensor/bittensor/pull/1707
* Adds mypi typechecking to circleci by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1705
* Add no_prompt argument to help printout in https://github.com/opentensor/bittensor/pull/1707
* Adds mypi typechecking to circleci by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1705
* Remove set weights ttl now that we have a better extrinsic method by @ifrit98
* Bug fix in overview command for dereg stake with outdated `stake_info` object fields by @ifrit98 in https://github.com/opentensor/bittensor/pull/1712
* Moves mock wallet creation to temp dir by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1711
* Bug fix in overview command for dereg stake with outdated `stake_info` object fields by @ifrit98 in https://github.com/opentensor/bittensor/pull/1712
* Moves mock wallet creation to temp dir by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1711


**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.7.2...v6.8.0
Expand Down Expand Up @@ -711,7 +764,7 @@
- allow set synapse All using flag
- add test
- use dot get

- [Feature] Mark registration threads as daemons (https://github.com/opentensor/bittensor/pull/998)
- make solver processes daemons

Expand Down Expand Up @@ -761,9 +814,9 @@
## 3.4.0 / 2022-10-13

## What's Changed
* Parameters update by @Eugene-hu #936
* Bittensor Generate by @unconst #941
* Prometheus by @unconst #928
* Parameters update by @Eugene-hu #936
* Bittensor Generate by @unconst #941
* Prometheus by @unconst #928
* [Tooling][Release] Adding release script by @eduardogr in https://github.com/opentensor/bittensor/pull/948


Expand Down Expand Up @@ -822,7 +875,7 @@
## 3.3.0 / 2022-08-16

### CUDA registration
This release adds the ability to complete the registration using a CUDA-capable device.
This release adds the ability to complete the registration using a CUDA-capable device.
See https://github.com/opentensor/cubit/releases/tag/v1.0.5 for the required `cubit` v1.0.5 release

Also a few bug fixes for the CLI
Expand Down Expand Up @@ -855,5 +908,5 @@ This release refactors the registration code for CPU registration to improve sol

### Synapse update

##
##

10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
FROM python:3.11.8-bookworm

LABEL bittensor.image.authors="bittensor.com" \
bittensor.image.vendor="Bittensor" \
Expand All @@ -9,19 +9,13 @@ LABEL bittensor.image.authors="bittensor.com" \
bittensor.image.revision="${VCS_REF}" \
bittensor.image.created="${BUILD_DATE}" \
bittensor.image.documentation="https://app.gitbook.com/@opentensor/s/bittensor/"
LABEL bittensor.dependencies.versions.torch="2.0.1"
LABEL bittensor.dependencies.versions.cuda="11.7"
ARG DEBIAN_FRONTEND=noninteractive

#nvidia key migration
RUN apt-key del 7fa2af80
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub
# Update the base image
RUN apt update && apt upgrade -y
# Install bittensor
## Install dependencies
RUN apt install -y curl sudo nano git htop netcat wget unzip tmux apt-utils cmake build-essential
RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
## Upgrade pip
RUN pip3 install --upgrade pip

Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ source ~/.bashrc # Reload Bash configuration to take effect
# The Bittensor Package
The bittensor package contains data structures for interacting with the bittensor ecosystem, writing miners, validators and querying the network. Additionally, it provides many utilities for efficient serialization of Tensors over the wire, performing data analysis of the network, and other useful utilities.

In the 7.0.0 release, we have removed `torch` by default. However, you can still use `torch` by setting the environment variable
`USE_TORCH=1` and making sure that you have installed the `torch` library.
You can install `torch` by running `pip install bittensor[torch]` (if installing via PyPI), or by running `pip install -e ".[torch]"` (if installing from source).
We will not be adding any new functionality based on torch.

Wallet: Interface over locally stored bittensor hot + coldkey styled wallets.
```python
import bittensor
Expand Down Expand Up @@ -273,7 +278,7 @@ Synapse: Responsible for defining the protocol definition between axon servers a
```python
class Topk( bittensor.Synapse ):
topk: int = 2 # Number of "top" elements to select
input: bittensor.Tensor = pydantic.Field(..., allow_mutation=False) # Ensure that input cannot be set on the server side.
input: bittensor.Tensor = pydantic.Field(..., frozen=True) # Ensure that input cannot be set on the server side.
v: bittensor.Tensor = None
i: bittensor.Tensor = None

Expand Down Expand Up @@ -329,8 +334,8 @@ my_axon.attach(
).start()
```

Dendrite: Inheriting from PyTorch's Module class, represents the abstracted implementation of a network client module designed
to send requests to those endpoints to receive inputs.
Dendrite: Represents the abstracted implementation of a network client module
designed to send requests to those endpoints to receive inputs.

Example:
```python
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.12.2
7.0.0
5 changes: 3 additions & 2 deletions bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
nest_asyncio.apply()

# Bittensor code and protocol version.

__version__ = "6.12.2"
__version__ = "7.0.0"

version_split = __version__.split(".")
__version_as_int__: int = (
Expand Down Expand Up @@ -286,6 +285,8 @@ def debug(on: bool = True):
ProposalCallData,
ProposalVoteData,
)

from . import subtensor as subtensor_module
from .subtensor import subtensor as subtensor
from .cli import cli as cli, COMMANDS as ALL_COMMANDS
from .btlogging import logging
Expand Down
32 changes: 16 additions & 16 deletions bittensor/axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

import os
import uuid
import argparse
import asyncio
import contextlib
import copy
import inspect
import json
import os
import threading
import time
import asyncio
import inspect
import uvicorn
import argparse
import traceback
import threading
import bittensor
import contextlib

import uuid
from inspect import signature, Signature, Parameter
from typing import List, Optional, Tuple, Callable, Any, Dict

import uvicorn
from fastapi import FastAPI, APIRouter, Depends
from fastapi.responses import JSONResponse
from substrateinterface import Keypair
from fastapi import FastAPI, APIRouter, Request, Response, Depends
from starlette.responses import Response
from starlette.requests import Request
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from typing import List, Optional, Tuple, Callable, Any, Dict
from starlette.requests import Request
from starlette.responses import Response
from substrateinterface import Keypair

import bittensor
from bittensor.errors import (
InvalidRequestNameError,
SynapseDendriteNoneException,
Expand Down Expand Up @@ -567,7 +567,7 @@ def verify_custom(synapse: MyCustomSynapse):
self.forward_fns[request_name] = forward_fn

# Parse required hash fields from the forward function protocol defaults
required_hash_fields = request_class.__dict__["__fields__"][
required_hash_fields = request_class.__dict__["model_fields"][
"required_hash_fields"
].default
self.required_hash_fields[request_name] = required_hash_fields
Expand Down
13 changes: 6 additions & 7 deletions bittensor/btlogging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
"""
Standardized logging for Bittensor.
"""

# The MIT License (MIT)
# Copyright © 2021 Yuma Rao

Expand All @@ -19,10 +15,13 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

import os
import argparse
"""
btlogging sub-package standardized logging for Bittensor.

This module provides logging functionality for the Bittensor package. It includes custom loggers, handlers, and
formatters to ensure consistent logging throughout the project.
"""

import bittensor.config
from bittensor.btlogging.loggingmachine import LoggingMachine


Expand Down
19 changes: 19 additions & 0 deletions bittensor/btlogging/defines.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# The MIT License (MIT)
# Copyright © 2023 OpenTensor Foundation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
# the Software.

# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

"""Btlogging constant definition module."""

BASE_LOG_FORMAT = "%(asctime)s | %(levelname)s | %(message)s"
TRACE_LOG_FORMAT = (
f"%(asctime)s | %(levelname)s | %(name)s:%(filename)s:%(lineno)s | %(message)s"
Expand Down
Loading