Skip to content

Commit a9edb1c

Browse files
authored
Merge branch 'staging' into feat/thewhaleking/pyproject-toml
2 parents 25767c2 + a65dad8 commit a9edb1c

File tree

164 files changed

+17677
-13375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+17677
-13375
lines changed

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
max-parallel: 8 # Set the maximum number of parallel jobs
5353
matrix:
5454
rust-branch:
55-
- nightly-2024-03-05
55+
- stable
5656
rust-target:
5757
- x86_64-unknown-linux-gnu
5858
os:
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Setup subtensor repo
9292
working-directory: ${{ github.workspace }}/subtensor
93-
run: git checkout testnet
93+
run: git checkout devnet-ready
9494

9595
- name: Run tests
9696
run: |

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
fi
4646
4747
- name: Upload artifact
48-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
4949
with:
5050
name: dist
5151
path: dist/
@@ -60,7 +60,7 @@ jobs:
6060

6161
steps:
6262
- name: Download artifact
63-
uses: actions/download-artifact@v3
63+
uses: actions/download-artifact@v4
6464
with:
6565
name: dist
6666
path: dist/

CHANGELOG.md

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,183 @@
11
# Changelog
22

3+
## 9.0.2 /2025-02-24
4+
5+
## What's Changed
6+
* CI: Upgrade rust compiler for E2E tests by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2690
7+
* Break away cli reqs by @thewhaleking in https://github.com/opentensor/bittensor/pull/2692
8+
* Updates DelegateInfo chain data by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2683
9+
* Backmerge main to staging 901 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2689
10+
* fix: typos in documentation files by @zeevick10 in https://github.com/opentensor/bittensor/pull/2687
11+
* Removes tx limit in stake_multiple by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2694
12+
13+
## New Contributors
14+
* @zeevick10 made their first contribution in https://github.com/opentensor/bittensor/pull/2687
15+
16+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.1...v9.0.2
17+
18+
## 9.0.1 /2025-02-20
19+
20+
## What's Changed
21+
* Release/9.0.0 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2671
22+
* fix e2e test by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2673
23+
* fix e2e test incentive by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2674
24+
* Add compatibility for read-only systems by @Arthurdw in https://github.com/opentensor/bittensor/pull/2676
25+
* test: use asynccontextmanager for FastAPI lifespan by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2597
26+
* test(2472): offline unittests by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2596
27+
* Removes redundant assignments in Metagraph by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2680
28+
* Alpha str formatting by @thewhaleking in https://github.com/opentensor/bittensor/pull/2672
29+
* Add method for fetching all Neuron Certificates on a Netuid by @thewhaleking in https://github.com/opentensor/bittensor/pull/2677
30+
* Updates tao_stake in MetagraphInfo by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2682
31+
* fix(2188): configure uvicorn event loop by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2679
32+
* Refactor AsyncSubtensor aenter logic by @thewhaleking in https://github.com/opentensor/bittensor/pull/2684
33+
* Backmerge master to staging 900 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2685
34+
35+
## New Contributors
36+
* @Arthurdw made their first contribution in https://github.com/opentensor/bittensor/pull/2676
37+
38+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0...v9.0.1
39+
40+
## 9.0.0 /2025-02-13
41+
42+
## What's Changed
43+
* Optimisations and tests for Async Sync Subtensor by @thewhaleking in https://github.com/opentensor/bittensor/pull/2569
44+
* [SDK] Get rid of py-substrate-interface (DO NOT MERGE) by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2565
45+
* Uses the new async_substrate_interface lib by @thewhaleking in https://github.com/opentensor/bittensor/pull/2572
46+
* AsyncSubstrateInterface Overhaul (with Sync AsyncSubstrate) by @thewhaleking in https://github.com/opentensor/bittensor/pull/2526
47+
* [SDK] Small improvements by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2575
48+
* Sync Subtensor warning by @thewhaleking in https://github.com/opentensor/bittensor/pull/2578
49+
* [SDK] Fixes types in async by @thewhaleking in https://github.com/opentensor/bittensor/pull/2577
50+
* Release/8.5.2 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2584
51+
* fix: typos in documentation files by @leopardracer in https://github.com/opentensor/bittensor/pull/2580
52+
* fix(2337): btlogging setLevel by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2588
53+
* perf: don't use 2 threads to create FastAPI server by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2592
54+
* fix(2188): don't allow uvicorn to reconfigure event_loop_policy by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2591
55+
* Fix spelling errors by @Dimitrolito in https://github.com/opentensor/bittensor/pull/2586
56+
* Make code as beautiful as it has never been before by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2599
57+
* test: bring back old (sync subtensor) tests and fix them by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2600
58+
* YAASO: Yet Another AsyncSubtensor Overhaul by @thewhaleking in https://github.com/opentensor/bittensor/pull/2579
59+
* Add alias for `Subtensor.commit` as `set_commitment` by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2606
60+
* [RAO] Add methods to fetch metagraph data from the chain by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2605
61+
* Rewrite config.py by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2607
62+
* Update metagraph class with `rao` stuff by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2611
63+
* [RAO] fix for unit test + refactoring by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2612
64+
* fix integration metagraph test by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2613
65+
* Cleanups, fixes, improvements for rao by @thewhaleking in https://github.com/opentensor/bittensor/pull/2614
66+
* Adds deprecation notice for non-balance amounts by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2615
67+
* Staging pre merge port rao (New async substrate) by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2610
68+
* Tests for SyncSubtensor by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2617
69+
* Many small fixes by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2619
70+
* Use async-substrate-interface for runtime decoding by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2618
71+
* Pins torch version to 2.5.1 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2623
72+
* Fixes, adds stake and other methods by @thewhaleking in https://github.com/opentensor/bittensor/pull/2622
73+
* Fix typos by @Marcofann in https://github.com/opentensor/bittensor/pull/2620
74+
* Add `subnet_volume` field to `MetagraphInfo` and `DynamicInfo` by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2624
75+
* Update wallet creation command logs post-install by @HudsonGraeme in https://github.com/opentensor/bittensor/pull/2621
76+
* fix subtensor methods for async by @thewhaleking in https://github.com/opentensor/bittensor/pull/2628
77+
* Subnet burn cost return type by @thewhaleking in https://github.com/opentensor/bittensor/pull/2629
78+
* Specifies a range of torch versions, rather than a pinned version. by @thewhaleking in https://github.com/opentensor/bittensor/pull/2632
79+
* Adds subnet registration extrinsic by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2630
80+
* Bumps btwallet 302 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2633
81+
* SKD implementation for Subtensor `Feat/RPC Upgrades`. PR #1205 by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2627
82+
* Bug fixes after release SDK v9.0.0rc1 by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2637
83+
* Adds Latent Lite endpoint to the SDK by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2641
84+
* Bringing meta fields to a common form with float values float(TAO) instead of Balance and Tensor by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2642
85+
* Adds `get_all_commitments` and fixes commitment tests and `query_map` by @thewhaleking in https://github.com/opentensor/bittensor/pull/2644
86+
* Fix for extra fields from chain data by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2647
87+
* Fix InfoBase + dataclasses by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2649
88+
* fix integration tests by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2651
89+
* feat: Add logging for unexpected header keys in Synapse by @crStiv in https://github.com/opentensor/bittensor/pull/2587
90+
* Fixes Dendrite new loop close by @thewhaleking in https://github.com/opentensor/bittensor/pull/2654
91+
* Fix e2e tests by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2639
92+
* feat/roman/deps by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2655
93+
* Metagraph Improvements by @thewhaleking in https://github.com/opentensor/bittensor/pull/2659
94+
* add name and symbol fields to metagraph by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2658
95+
* Using one determine_chain_endpoint_and_network by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2661
96+
* Tests: separate `templates` fixture by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2660
97+
* Merge `async-pre-merge-new-async` to `staging` by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2656
98+
* Add `set_subnet_identity_extrinsic` and related stuff by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2662
99+
* Changes the logging level for unexpected header keys to trace by @thewhaleking in https://github.com/opentensor/bittensor/pull/2666
100+
* Remove logs by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2667
101+
* Tests: properly handle subprocesses (subtensor, miner, validator) by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2664
102+
* Last-minute requests by @thewhaleking in https://github.com/opentensor/bittensor/pull/2665
103+
* Updates tao_weights for mainnet by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2669
104+
* Update deps and default network/endpoint by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2670
105+
106+
## New Contributors
107+
* @leopardracer made their first contribution in https://github.com/opentensor/bittensor/pull/2580
108+
* @Dimitrolito made their first contribution in https://github.com/opentensor/bittensor/pull/2586
109+
* @Marcofann made their first contribution in https://github.com/opentensor/bittensor/pull/2620
110+
* @HudsonGraeme made their first contribution in https://github.com/opentensor/bittensor/pull/2621
111+
* @crStiv made their first contribution in https://github.com/opentensor/bittensor/pull/2587
112+
113+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v8.5.2...v9.0.0
114+
115+
## 9.0.0rc6 /2025-02-11
116+
* Using one determine_chain_endpoint_and_network by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2661
117+
* Tests: separate templates fixture by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2660
118+
* add name and symbol fields to metagraph by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2658
119+
* Metagraph Improvements by @thewhaleking in https://github.com/opentensor/bittensor/pull/2659
120+
* feat/roman/add-subnet-identity-with-subnet-creation by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2662
121+
122+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc5...v9.0.0rc6
123+
124+
## 9.0.0rc5 /2025-02-07
125+
* Fix InfoBase + dataclasses @roman-opentensor in https://github.com/opentensor/bittensor/pull/2649
126+
127+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc4...v9.0.0rc5
128+
129+
## 9.0.0rc4 /2025-02-07
130+
* Fix for extra fields from chain data by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2647
131+
* Adds get_all_commitments and fixes commitment tests and query_map @thewhaleking in https://github.com/opentensor/bittensor/pull/2644
132+
133+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc2...v9.0.0rc3
134+
135+
## 9.0.0rc3 /2025-02-06
136+
137+
## What's Changed
138+
* Adds methods to better accommodate the new websocket implementation (long-lived) by @thewhaleking in https://github.com/opentensor/bittensor/commit/3c44be177edef8a799c2c9dc5e49916723cab5c2
139+
* Adds latent-lite network by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2641
140+
* Updates async-substrate-interface to 1.0.0rc12 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/commit/9d0b008e6163c84ed9267423324f30c3ec8af289
141+
* Bringing meta fields to a common form with float values float(TAO) instead of Balance and Tensor by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2642
142+
143+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc2...v9.0.0rc3
144+
145+
## 9.0.0rc2 /2025-02-05
146+
147+
## What's Changed
148+
* Small bug fixes and improvements by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2637
149+
150+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0rc1...v9.0.0rc2
151+
152+
## 9.0.0rc1 /2025-02-05
153+
154+
## What's Changed
155+
* Uses revamped Async Substrate Interface
156+
* Compatibility with Rao changes added
157+
* Completely revamped Async Subtensor introduced
158+
* Numerous improvements, bug fixes, and deprecations
159+
160+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v8.5.1...v9.0.0rc1
161+
162+
## 8.5.2 /2025-01-17
163+
164+
## What's Changed
165+
* Feat/use tx pool for set weights by @camfairchild in https://github.com/opentensor/bittensor/pull/2534
166+
* fix get_delegates result decoding by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2551
167+
* [SDK] Handle server connection limit by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2553
168+
* Backmerge master to staging post 851 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2557
169+
* [SDK] Improve InvalidStatus handler by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2558
170+
* [SDK] Add async version of commit reveal v3 by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2560
171+
* Use apt-get instead of apt for scripts by @camfairchild in https://github.com/opentensor/bittensor/pull/2571
172+
* fix _do_stake incorrect arguments error in staking.py by @Assh-codes in https://github.com/opentensor/bittensor/pull/2574
173+
* Updates tests for btwallet 3.0.0 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2540
174+
* Bumps cr3 FFI by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2583
175+
176+
## New Contributors
177+
* @Assh-codes made their first contribution in https://github.com/opentensor/bittensor/pull/2574
178+
179+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v8.5.1...v8.5.2
180+
3181
## 8.5.1 /2024-12-16
4182

5183
## What's Changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ LABEL bittensor.image.authors="bittensor.com" \
1212
ARG DEBIAN_FRONTEND=noninteractive
1313

1414
# Update the base image
15-
RUN apt update && apt upgrade -y
15+
RUN apt-get update && apt-get upgrade -y
1616
# Install bittensor
1717
## Install dependencies
18-
RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
18+
RUN apt-get install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
1919
## Upgrade pip
2020
RUN pip3 install --upgrade pip
2121

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.5.1
1+
9.0.2

bittensor/__init__.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
1-
# The MIT License (MIT)
2-
# Copyright © 2024 Opentensor Foundation
3-
#
4-
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5-
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6-
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7-
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8-
#
9-
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
10-
# the Software.
11-
#
12-
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
13-
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16-
# DEALINGS IN THE SOFTWARE.
17-
181
import warnings
192

203
from .core.settings import __version__, version_split, DEFAULTS, DEFAULT_NETWORK
21-
from .core.async_subtensor import AsyncSubtensor
224
from .utils.btlogging import logging
23-
from .utils.deprecated import *
24-
25-
26-
async def async_subtensor(network: str = DEFAULT_NETWORK) -> AsyncSubtensor:
27-
"""
28-
Creates an initialised AsyncSubtensor object.
29-
"""
30-
async with AsyncSubtensor(network=network) as subtensor_:
31-
return subtensor_
5+
from .utils.easy_imports import *
326

337

348
def __getattr__(name):

bittensor/__main__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
# The MIT License (MIT)
2-
# Copyright © 2024 Opentensor Foundation
3-
#
4-
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5-
# documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6-
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7-
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8-
#
9-
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of
10-
# the Software.
11-
#
12-
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
13-
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16-
# DEALINGS IN THE SOFTWARE.
17-
181
import os
192
import subprocess
203
import sys

0 commit comments

Comments
 (0)