Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
bce5623
Adds an event loop manager for executing coroutines easier. Removes i…
thewhaleking Jan 15, 2025
737d25e
Remove print
thewhaleking Jan 15, 2025
5f4a641
Rename
thewhaleking Jan 15, 2025
6a0d527
Add event loop manager to Extrinsic Receipt
thewhaleking Jan 15, 2025
fdc6a39
Add event loop manager to QueryMapResult
thewhaleking Jan 15, 2025
d5e3764
type
thewhaleking Jan 15, 2025
d672616
Type registry cannot be reloaded if the chain is not yet set.
thewhaleking Jan 15, 2025
5740d5e
test
thewhaleking Jan 15, 2025
3521d92
Ensure initialization.
thewhaleking Jan 15, 2025
834baf2
Type
thewhaleking Jan 15, 2025
161e3b8
Merge pull request #3 from opentensor/feat/thewhaleking/event-loop-mgr
thewhaleking Jan 16, 2025
3264159
Adds a warning for uninitialised Substrate
thewhaleking Jan 16, 2025
95a0d42
Raise the error in the correct place. Move `reload_type_registry()` t…
thewhaleking Jan 16, 2025
5aa6356
Added mixin class to share sync funcs between async substrate and syn…
thewhaleking Jan 17, 2025
ad195e7
Merge pull request #6 from opentensor/feat/thewhaleking/warning-for-u…
thewhaleking Jan 17, 2025
b7bed36
Broke into different files, remove EventLoopManager
thewhaleking Jan 17, 2025
bd1927d
Initial cleanup finished.
thewhaleking Jan 17, 2025
c26c8db
Logic ported to sync substrate. Ready to begin some testing.
thewhaleking Jan 17, 2025
67accb4
Update build system to use the pyproject.toml rather than setup.py
thewhaleking Jan 17, 2025
a864922
Update requirements.
thewhaleking Jan 17, 2025
4091b1e
Fixed naming.
thewhaleking Jan 17, 2025
ee7032d
Tests
thewhaleking Jan 17, 2025
78761b5
Adding tests
thewhaleking Jan 17, 2025
1a093aa
Test progress
thewhaleking Jan 17, 2025
f06a488
Merge pull request #10 from opentensor/feat/thewhaleking/pyproject-toml
ibraheem-abe Jan 17, 2025
d512122
Backwards compatibility.
thewhaleking Jan 21, 2025
bdc5941
Temporarily removed failing tests.
thewhaleking Jan 22, 2025
2503908
Merge pull request #9 from opentensor/feat/thewhaleking/redo-substrat…
thewhaleking Jan 22, 2025
4ad69cb
Remove ujson as requirement. Allow users to use whatever json module …
thewhaleking Jan 22, 2025
087f467
Merge pull request #12 from opentensor/feat/thewhaleking/remove-ujson
thewhaleking Jan 22, 2025
dde3005
coroutine -> fn
thewhaleking Jan 22, 2025
619233f
Async iteration
thewhaleking Jan 22, 2025
9e604d0
Clean up
thewhaleking Jan 22, 2025
628110d
Merge branch 'main' into backmerge-main-to-staging-rc4
ibraheem-abe Jan 28, 2025
1a68860
Merge pull request #13 from opentensor/backmerge-main-to-staging-rc4
ibraheem-abe Jan 28, 2025
c8f2f70
Bumps version and updates changelog
ibraheem-abe Jan 28, 2025
c6d11b6
Updates changelog
ibraheem-abe Jan 28, 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
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel twine
pip install setuptools wheel twine build toml

- name: Build package
run: python setup.py sdist bdist_wheel
run: |
python -m build --sdist --wheel --outdir dist/

- name: Check if package version already exists
run: |
PACKAGE_NAME=$(python setup.py --name)
PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['name'])")
PACKAGE_VERSION=${{ github.event.inputs.version }}
if twine check dist/*; then
if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 1.0.0rc5 /2025-01-28

## What's Changed
* Backmerge staging main by @ibraheem-opentensor in https://github.com/opentensor/async-substrate-interface/pull/4
* EventLoopManager, factory function by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/3
* Exception for uninitialised by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/6
* Update build/release to use pyproject.toml by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/10
* Sync Substrate Rewritten by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/9
* Remove ujson by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/12

## 1.0.0rc4 /2025-01-17

## What's Changed
* Minor bug fixes and improvements

## 1.0.0rc3 /2025-01-17

## What's Changed
Expand Down
16 changes: 12 additions & 4 deletions async_substrate_interface/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
from .substrate_interface import (
from .async_substrate import (
AsyncQueryMapResult,
AsyncSubstrateInterface,
AsyncExtrinsicReceipt,
ExtrinsicReceipt,
)
from .sync_substrate import QueryMapResult, SubstrateInterface, ExtrinsicReceipt

__all__ = [
AsyncQueryMapResult,
AsyncSubstrateInterface,
SubstrateInterface,
AsyncExtrinsicReceipt,
QueryMapResult,
)
SubstrateInterface,
ExtrinsicReceipt,
]
Loading