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/9.0.0a1 #2616

Draft
wants to merge 350 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
350 commits
Select commit Hold shift + click to select a range
05b456d
add sync call for async `set_weights_extrinsic`
roman-opentensor Dec 31, 2024
c5f83e5
add async_unstaking.py
roman-opentensor Jan 2, 2025
a24f4d0
rename async_weights.py
roman-opentensor Jan 2, 2025
d40b6f2
fix annotation in serving.py
roman-opentensor Jan 2, 2025
110eae1
fix test
roman-opentensor Jan 2, 2025
ae1727f
update `bittensor.core.extrinsics.async_serving.get_metadata`
roman-opentensor Jan 2, 2025
a452058
add async `bittensor.core.extrinsics.async_weights.reveal_weights_ext…
roman-opentensor Jan 2, 2025
c9a4e5d
update `bittensor.utils.execute_coroutine`
roman-opentensor Jan 2, 2025
a556cb6
add period argument
roman-opentensor Jan 2, 2025
559d20b
fix tests
roman-opentensor Jan 2, 2025
2e14c6f
fix sync setting, commiting, reveal weights extrinsics + async relate…
roman-opentensor Jan 2, 2025
59fb63f
add `bittensor/core/extrinsics/asyncex` sub-package
roman-opentensor Jan 2, 2025
32423f7
ruff for `execute_coroutine`
roman-opentensor Jan 2, 2025
a0b1334
add nonce to commit_reveal v3
roman-opentensor Jan 2, 2025
3c1df1d
update unstaking extrinsics
roman-opentensor Jan 3, 2025
39107d3
remove substrate from call args
roman-opentensor Jan 3, 2025
cb7b657
fix await, remove next_nonce from commit reveal v3
roman-opentensor Jan 3, 2025
8edbdce
update registration extrinsics
roman-opentensor Jan 3, 2025
574709d
update root extrinsics
roman-opentensor Jan 3, 2025
dbf3c99
update set_weights extrinsics
roman-opentensor Jan 3, 2025
5d0e450
update transfer extrinsics
roman-opentensor Jan 3, 2025
75e9a48
update staking extrinsics
roman-opentensor Jan 3, 2025
c58a08d
update staking extrinsics
roman-opentensor Jan 3, 2025
53f25f2
update serving extrinsics
roman-opentensor Jan 3, 2025
7262891
add event loop to async subtensor and async substrate interface
roman-opentensor Jan 3, 2025
085089c
add WeightCommitInfo chain data class
roman-opentensor Jan 3, 2025
16eb574
add new Subtensor class
roman-opentensor Jan 3, 2025
bd418ee
update AsyncSubtensor class
roman-opentensor Jan 3, 2025
81879ba
fix transfer
roman-opentensor Jan 3, 2025
8274400
fix `subtensor.substrate.submit_extrinsic` call args
roman-opentensor Jan 3, 2025
4139f37
update tests
roman-opentensor Jan 3, 2025
a380adb
ruff
roman-opentensor Jan 3, 2025
84ae79c
add sync Metagraph
roman-opentensor Jan 3, 2025
e55673e
metagraph related changes in subtensors
roman-opentensor Jan 3, 2025
7ee9c65
update metagraph.Metagraph
roman-opentensor Jan 3, 2025
1ea40e1
update `AsyncSubstrateInterface`
roman-opentensor Jan 4, 2025
5b0e9db
move async extrinsics tests to proper directory
roman-opentensor Jan 4, 2025
86a46d1
update `commit_reveal` unit test
roman-opentensor Jan 4, 2025
f940e22
update `commit_weights.py` unit test
roman-opentensor Jan 4, 2025
7ab4112
update `registration.py` unit test
roman-opentensor Jan 4, 2025
50e383e
ruff
roman-opentensor Jan 4, 2025
09751b1
typo
roman-opentensor Jan 4, 2025
785f508
update `bittensor/core/extrinsics/root.py` unit tests
roman-opentensor Jan 4, 2025
87e53c1
update `bittensor/core/extrinsics/serving.py` unit tests
roman-opentensor Jan 4, 2025
41cfd99
update `bittensor/core/extrinsics/set_weights.py` unit tests
roman-opentensor Jan 4, 2025
efc47f4
update `bittensor/core/extrinsics/staking.py` unit tests
roman-opentensor Jan 4, 2025
d10b688
update `bittensor/core/extrinsics/transfer.py` unit tests
roman-opentensor Jan 4, 2025
035148c
update `bittensor/core/extrinsics/unstaking.py` unit tests
roman-opentensor Jan 4, 2025
e25f242
improve `bittensor/core/extrinsics/utils.py`
roman-opentensor Jan 4, 2025
aa8ede9
add TODO, add close method with sync call via wrapper
roman-opentensor Jan 4, 2025
041c83d
Update subtensor.py unit tests
roman-opentensor Jan 4, 2025
600955e
Update async_subtensor.py unit tests
roman-opentensor Jan 4, 2025
48388e9
update TODOs
roman-opentensor Jan 4, 2025
943dd98
update metagraph
roman-opentensor Jan 4, 2025
7bfea83
update `close` method for Subtensor class
roman-opentensor Jan 4, 2025
0051521
update `test_subtensor.py`
roman-opentensor Jan 4, 2025
60bb8aa
Update metagraph determining logic for AI and IDE. Finally, the same …
roman-opentensor Jan 4, 2025
870d0b5
Update sync `Metagraph.__getattr__`
roman-opentensor Jan 4, 2025
ebb61d1
fix metagraph tests
roman-opentensor Jan 4, 2025
36b4cbb
update test for async_substrate_interface
roman-opentensor Jan 4, 2025
eaeff47
add `reuse_block` where is should be in async_subtensor.py
roman-opentensor Jan 4, 2025
b3e256d
fix test for async_subtensor.py
roman-opentensor Jan 4, 2025
131d49a
ruff
roman-opentensor Jan 4, 2025
f0acec3
Merge remote-tracking branch 'origin/staging' into feat/thewhaleking/…
thewhaleking Jan 6, 2025
1b17877
Revert all changes to metagraph.py and subtensor.py, as Roman will be…
thewhaleking Jan 6, 2025
3eaae9f
Ruff
thewhaleking Jan 6, 2025
d7bc745
Ruff
thewhaleking Jan 6, 2025
ecbd321
Pre-merge merge (async extrinsics)
thewhaleking Jan 6, 2025
bc45f70
Allow for passing event_loop to SubstrateInterface at init
thewhaleking Jan 6, 2025
c217967
update for `get_current_weight_commit_info`
roman-opentensor Jan 6, 2025
23b6f62
Wrapper for SCALE object like backwards compatibility.
thewhaleking Jan 6, 2025
1caf777
Merge branch 'feat/thewhaleking/new-sync-substrate' into feat/roman/a…
roman-opentensor Jan 6, 2025
25b9485
merge fixes + ruff
roman-opentensor Jan 6, 2025
02e63b0
small fixes for `async_subtensor.py`
roman-opentensor Jan 7, 2025
8fcde8a
Merge branch 'feat/thewhaleking/new-sync-substrate' into feat/roman/a…
roman-opentensor Jan 7, 2025
fe89cfc
metagraph fix
roman-opentensor Jan 7, 2025
9c4ca15
add `ensure_connected` temporarily
roman-opentensor Jan 7, 2025
71ad7fa
add argument in test
roman-opentensor Jan 7, 2025
a587611
ruff
roman-opentensor Jan 7, 2025
8f9435e
remove `EXTRINSIC_SUBMISSION_TIMEOUT` from test
roman-opentensor Jan 7, 2025
38ed94f
remove unused import
roman-opentensor Jan 7, 2025
ffb32db
make async subtensor query_* returns compatible with sync ones
roman-opentensor Jan 7, 2025
d695b09
convert `subtensor.substrate` to sync version with wrapper
roman-opentensor Jan 7, 2025
d718ddf
improve `ScaleObj` class and `SubstrateInterface` class-wrapper
roman-opentensor Jan 7, 2025
408daa9
fix `test_async_subtensor.py`
roman-opentensor Jan 7, 2025
c38e969
fix `test_commit_reveal_v3.py`
roman-opentensor Jan 7, 2025
ddfd323
remove unused import
roman-opentensor Jan 7, 2025
cf5dd72
Restore backwards-compatibility for the `is_hotkey_registered` method.
thewhaleking Jan 7, 2025
85c294a
Introduce block_hash and reuse_block args for is_hotkey_registered.
thewhaleking Jan 7, 2025
4835cc9
Merge remote-tracking branch 'origin/feat/thewhaleking/new-sync-subst…
thewhaleking Jan 7, 2025
9009282
Merge
thewhaleking Jan 7, 2025
3e0b1bd
Optimisations.
thewhaleking Jan 7, 2025
6b1604a
Improved the `execute_coroutine` function. Moved `event_loop_is_runni…
thewhaleking Jan 7, 2025
44e7f58
Created an `execute_coroutine` method to cut down on redundant code. …
thewhaleking Jan 7, 2025
4872a79
Better-handle mocked substrate and getting event loop.
thewhaleking Jan 7, 2025
bd2f3c7
Better mock handling.
thewhaleking Jan 7, 2025
a3fc4f6
`is_hotkey_registered` fixed in Subtensor
thewhaleking Jan 7, 2025
c4cb262
Unit tests fixed.
thewhaleking Jan 7, 2025
f839796
E2E test optimisation.
thewhaleking Jan 7, 2025
1732297
E2E fix
thewhaleking Jan 7, 2025
8fdfadd
Optimisations.
thewhaleking Jan 7, 2025
a9bead2
Fixed sync metagraph + added back in save dir and load dir functional…
thewhaleking Jan 7, 2025
abbddea
Trigger no-op
thewhaleking Jan 7, 2025
7c32248
Merge branch 'staging' into tests/update-tests-btwallet3
roman-opentensor Jan 8, 2025
b03a76d
Two more unit tests passing.
thewhaleking Jan 8, 2025
c4d6d3c
All unit tests passing.
thewhaleking Jan 8, 2025
c699ba2
Most Metagraph integration tests working.
thewhaleking Jan 8, 2025
5fbe1dc
Final metagraph integration tests working.
thewhaleking Jan 8, 2025
b329bab
Lint
thewhaleking Jan 8, 2025
fbc6a83
Merge pull request #2569 from opentensor/feat/thewhaleking/improve-su…
thewhaleking Jan 8, 2025
2ddb224
Added skeleton methods for all used Substrate methods for ease of use…
thewhaleking Jan 8, 2025
522479a
Trigger no-op
thewhaleking Jan 8, 2025
7f302e2
Backwards compatibility, docsstring cleanup.
thewhaleking Jan 8, 2025
f6df25d
Removed `ensure_connected` fn and `classic_subtensor.py`
thewhaleking Jan 8, 2025
0f5def9
Imports cleanup.
thewhaleking Jan 8, 2025
1603ef5
Type fix
thewhaleking Jan 8, 2025
59739f2
Reverted change.
thewhaleking Jan 8, 2025
af6396d
Merge pull request #2565 from opentensor/feat/roman/async-to-sync-via…
thewhaleking Jan 8, 2025
ba1a132
Trigger no-op
thewhaleking Jan 8, 2025
2ce909f
fix tests
roman-opentensor Jan 9, 2025
1ff431e
Removed substrate-interface from requirements
thewhaleking Jan 9, 2025
19ac760
More stripping of py-substrate-interface
thewhaleking Jan 9, 2025
dc60e03
Completely removed py-substrate-interface.
thewhaleking Jan 9, 2025
d897b70
Docstrings update
thewhaleking Jan 9, 2025
4609355
Fix tests
thewhaleking Jan 9, 2025
b3c0ab7
Use apt-get instead of apt for scripts (#2571)
camfairchild Jan 9, 2025
9a669a4
Merge branch 'staging' into feat/thewhaleking/new-sync-substrate
thewhaleking Jan 10, 2025
46a1468
Name shadowing.
thewhaleking Jan 10, 2025
5913108
Import/type fixes.
thewhaleking Jan 10, 2025
9ec7acf
Return self from __aenter__
thewhaleking Jan 10, 2025
b31764f
Ensure correct loop is used always
thewhaleking Jan 10, 2025
6106c18
Use async_substrate_interface rather than the local version.
thewhaleking Jan 10, 2025
66c64a8
Update utils
thewhaleking Jan 10, 2025
9dcfcae
replace imports + cleanup + ruff
roman-opentensor Jan 10, 2025
0bda527
temporally use repo instead of pypi package
roman-opentensor Jan 10, 2025
344a412
ruff
roman-opentensor Jan 10, 2025
1f85164
Merge pull request #2572 from opentensor/feat/thewhaleking/use-library
roman-opentensor Jan 10, 2025
2aec7f6
update deps
roman-opentensor Jan 10, 2025
c99aaee
update deps
roman-opentensor Jan 10, 2025
528817c
Merge remote-tracking branch 'origin/feat/thewhaleking/new-sync-subst…
roman-opentensor Jan 10, 2025
ee6f834
update deps
roman-opentensor Jan 10, 2025
c31520e
update deps
roman-opentensor Jan 10, 2025
6b8776e
add nonce to root set weights
roman-opentensor Jan 10, 2025
3eead3a
fix unit test
roman-opentensor Jan 10, 2025
110a281
Merge pull request #2526 from opentensor/feat/thewhaleking/new-sync-s…
roman-opentensor Jan 11, 2025
5a22780
fix _do_stake incorrect arguments error in staking.py
Assh-codes Jan 11, 2025
66cd437
Merge branch 'staging' into patch-2
thewhaleking Jan 13, 2025
b0ff5c2
Merge pull request #2574 from Assh-codes/patch-2
thewhaleking Jan 13, 2025
d524036
add `bittensor.core.subtensor.Subtensor` docstring
roman-opentensor Jan 13, 2025
fdb03f3
update `bittensor.core.metagraph.Metagraph` docstring
roman-opentensor Jan 13, 2025
8c0e9bc
make Subtensor compatible with AsyncSubtensor
roman-opentensor Jan 13, 2025
6060cf4
fix test
roman-opentensor Jan 13, 2025
5423311
Update bittensor/core/metagraph.py
roman-opentensor Jan 13, 2025
909a13c
Merge pull request #2575 from opentensor/feat/roman/additionals
roman-opentensor Jan 13, 2025
8d05147
Fixes types.
thewhaleking Jan 14, 2025
1c8c3ec
Removes print
thewhaleking Jan 14, 2025
e084e1b
fix unit tests
roman-opentensor Jan 14, 2025
9294e23
fix `get_delegate_identities` + unit tests
roman-opentensor Jan 14, 2025
ab08b35
remove print
roman-opentensor Jan 14, 2025
9612fde
Fixes public key in certificate
thewhaleking Jan 14, 2025
f5bdf73
ruff
roman-opentensor Jan 14, 2025
d9626a5
ruff + unused import
roman-opentensor Jan 14, 2025
b0da431
Ruff
thewhaleking Jan 14, 2025
6d428df
Merge remote-tracking branch 'origin/async/thewhaleking/fix-types' in…
thewhaleking Jan 14, 2025
686729a
update deps
roman-opentensor Jan 14, 2025
4e27c4e
Merge remote-tracking branch 'origin/async/thewhaleking/fix-types' in…
roman-opentensor Jan 14, 2025
49a099e
Give warning when instantiating sync Subtensor from an already-runnin…
thewhaleking Jan 14, 2025
4f0b0e0
Merge pull request #2578 from opentensor/async/thewhaleking/warning
thewhaleking Jan 14, 2025
138dde5
Merge branch 'staging' into tests/update-tests-btwallet3
roman-opentensor Jan 14, 2025
fa5bf76
Merge pull request #2577 from opentensor/async/thewhaleking/fix-types
thewhaleking Jan 14, 2025
4d329c9
Merge branch 'staging' into staging-pre-merge-new-async
roman-opentensor Jan 15, 2025
508be9e
Updates subtensor branch for e2e
ibraheem-opentensor Jan 16, 2025
cd91cd8
tests fix
roman-opentensor Jan 17, 2025
ab07ec4
Bumps cr3 ffi
ibraheem-opentensor Jan 17, 2025
86f9b4d
Merge pull request #2540 from opentensor/tests/update-tests-btwallet3
ibraheem-opentensor Jan 17, 2025
92008e1
Merge branch 'staging' into bumps/ffi-crv3
ibraheem-opentensor Jan 17, 2025
10da20b
Merge pull request #2583 from opentensor/bumps/ffi-crv3
ibraheem-opentensor Jan 17, 2025
f4992cd
Merge branch 'staging' into staging-pre-merge-new-async
roman-opentensor Jan 17, 2025
149ac1c
tests fix
roman-opentensor Jan 17, 2025
88b24d8
update deps
roman-opentensor Jan 17, 2025
62a67e8
update deps
roman-opentensor Jan 18, 2025
9d2d8ce
fix `get_neuron_certificate`
roman-opentensor Jan 18, 2025
e75a0fc
remove licence, cut docstrings <= 120, ruff, optimize imports
roman-opentensor Jan 23, 2025
e6c1f36
Merge pull request #2599 from opentensor/feat/roman/refactor
roman-opentensor Jan 23, 2025
b3781bb
Uses a different asyncio loop caller.
thewhaleking Jan 15, 2025
1701d7c
Applies EventLoopManager broadly, adds factory functions for creating…
thewhaleking Jan 15, 2025
ba23119
Renaming
thewhaleking Jan 15, 2025
f79f77b
Pass the EventLoopManager to substrate
thewhaleking Jan 15, 2025
54591b9
Remove execute_coroutine import
thewhaleking Jan 16, 2025
8ce006e
Remove attr
thewhaleking Jan 16, 2025
6801270
[WIP] Check-in
thewhaleking Jan 18, 2025
82fa80d
All non-extrinsics methods ported.
thewhaleking Jan 18, 2025
72b0f7d
Test stuff
thewhaleking Jan 21, 2025
7489e68
Serving extrinsic
thewhaleking Jan 21, 2025
b79ffad
Staking extrinsics
thewhaleking Jan 21, 2025
b2dea07
Registration extrinsics
thewhaleking Jan 21, 2025
428211a
Weights extrinsics
thewhaleking Jan 21, 2025
333ba83
Sets nest_asyncio as default off.
thewhaleking Jan 21, 2025
1a4dedd
Import order
thewhaleking Jan 21, 2025
8c796b5
Root extrinsics
thewhaleking Jan 22, 2025
fa84405
Commit reveal extrinsic
thewhaleking Jan 22, 2025
4be4592
Transfer extrinsic
thewhaleking Jan 22, 2025
7db23fc
Unstaking extrinsic
thewhaleking Jan 22, 2025
04eda9a
Cleanup
thewhaleking Jan 22, 2025
8f1d639
Move SubtensorMixin to types file to avoid import conflicts.
thewhaleking Jan 22, 2025
4acf20b
imports
thewhaleking Jan 22, 2025
1781e8b
Remove ujson
thewhaleking Jan 22, 2025
c812324
Apply new json generally.
thewhaleking Jan 22, 2025
57cc58e
test: fix async unittests
zyzniewski-reef Jan 23, 2025
0e72ec0
Metagraph/tests
thewhaleking Jan 23, 2025
3b498bc
Call function
thewhaleking Jan 23, 2025
f3558ec
Raise correct error
thewhaleking Jan 23, 2025
7ec2df3
Metagraph rewrite
thewhaleking Jan 23, 2025
9a83347
Metagraph rewrite part 2
thewhaleking Jan 23, 2025
74c8d3e
Serving tests
thewhaleking Jan 23, 2025
a7bf8da
Merge remote-tracking branch 'origin/staging-pre-merge-new-async' int…
thewhaleking Jan 23, 2025
35f1a12
E2E tests passing.
thewhaleking Jan 23, 2025
2eab16c
Unit tests
thewhaleking Jan 23, 2025
4fb0586
Revert "update `bittensor/core/extrinsics/serving.py` unit tests"
zyzniewski-reef Jan 23, 2025
dcc6e5b
Revert "update `bittensor/core/extrinsics/transfer.py` unit tests"
zyzniewski-reef Jan 23, 2025
e4cde0f
Revert "update `bittensor/core/extrinsics/set_weights.py` unit tests"
zyzniewski-reef Jan 23, 2025
d593bcf
Revert "update `bittensor/core/extrinsics/root.py` unit tests"
zyzniewski-reef Jan 23, 2025
7f64dd1
Revert "typo"
zyzniewski-reef Jan 23, 2025
57e92a7
Revert "ruff"
zyzniewski-reef Jan 23, 2025
901ad69
Revert "update `commit_weights.py` unit test"
zyzniewski-reef Jan 23, 2025
f674a01
Revert "update `commit_reveal` unit test"
zyzniewski-reef Jan 23, 2025
ef50ff5
Revert "update `registration.py` unit test"
zyzniewski-reef Jan 23, 2025
b9e70f0
test: fix old (sync subtensor) unittests
zyzniewski-reef Jan 24, 2025
2b747bc
fix `tests/integration_tests/test_metagraph_integration.py`
roman-opentensor Jan 24, 2025
f546cd8
add `metagraph[chain_getBlockHash]` result
roman-opentensor Jan 24, 2025
ababac2
fix `tests/integration_tests/test_subtensor_integration.py`
roman-opentensor Jan 24, 2025
e841b41
improve helper to use with sync integration tests
roman-opentensor Jan 24, 2025
b0eba57
test: fix extrinsics unittests
zyzniewski-reef Jan 24, 2025
ed9466e
Merge remote-tracking branch 'origin/test/async_unittests' into test/…
roman-opentensor Jan 24, 2025
af26e98
ruff
roman-opentensor Jan 24, 2025
28b3fdc
improve integration subtensor test
roman-opentensor Jan 24, 2025
64065d2
remove comment
roman-opentensor Jan 24, 2025
155949b
Merge pull request #2600 from opentensor/test/async_unittests
zyzniewski-reef Jan 24, 2025
59fc0b5
Mypy
thewhaleking Jan 27, 2025
0b47389
Merge pull request #2579 from opentensor/async/thewhaleking/experimen…
thewhaleking Jan 27, 2025
62e0924
Type
thewhaleking Jan 27, 2025
b6a7e9b
Simplified typing.
thewhaleking Jan 28, 2025
839b2f2
Bumps async-substrate-interface to RC 5
ibraheem-opentensor Jan 28, 2025
6aa15ce
rewrite config.py
roman-opentensor Jan 29, 2025
1c636d3
add reqs -> dev
roman-opentensor Jan 29, 2025
a008e36
Merge pull request #2607 from opentensor/feat/roman/config-cleanup
roman-opentensor Jan 29, 2025
1ee0743
Adds missing async iterator
thewhaleking Jan 29, 2025
aa55c75
fix integration metagraph test 2
roman-opentensor Jan 30, 2025
e0992cf
Bumps version and updates changelog
ibraheem-opentensor Jan 30, 2025
7e379ff
Updated readme
ibraheem-opentensor Jan 30, 2025
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
Prev Previous commit
Next Next commit
update transfer extrinsics
  • Loading branch information
roman-opentensor committed Jan 3, 2025
commit 5d0e450bba677d2d5a7dc933d77e0964271ef5f5
7 changes: 4 additions & 3 deletions bittensor/core/extrinsics/transfer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Union, TYPE_CHECKING

from bittensor.core.extrinsics.async_transfer import (
from bittensor.core.extrinsics.asyncex.transfer import (
transfer_extrinsic as async_transfer_extrinsic,
)
from bittensor.utils import execute_coroutine
Expand All @@ -22,7 +22,7 @@ def transfer_extrinsic(
keep_alive: bool = True,
) -> bool:
return execute_coroutine(
async_transfer_extrinsic(
coroutine=async_transfer_extrinsic(
subtensor=subtensor.async_subtensor,
wallet=wallet,
destination=dest,
Expand All @@ -31,5 +31,6 @@ def transfer_extrinsic(
wait_for_inclusion=wait_for_inclusion,
wait_for_finalization=wait_for_finalization,
keep_alive=keep_alive,
)
),
event_loop=subtensor.event_loop,
)