Releases: tonkeeper/pytonapi
v0.2.9
v0.2.8
What's Changed
New Features
- Added 'liteserver' module to the list of imported schemas in the
__all__
variable. - Added
liteserver.get_account_state
tests. - Added
py.typed
to support type checkers by @vladimir-chernykh in #12
Fixes
- Fixed
TypeError: 'type' object is not subscriptable
, updated type annotations to support Python versions below 3.10. #13 - Updated
BlockRaw.shard
data type fromint
tostr
to resolve data inconsistency error. #11
Enhancements
- Refactored
test_get_all_jettons
method.
New Contributors
- @vladimir-chernykh made their first contribution in #12
Full Changelog: v0.2.6...v0.2.8
v0.2.6
What's Changed
New Features
- Added example for sending TON.
Fixes
- Fixed API endpoint typo in
EmulateMethod.decode_message
method.
Enhancements
- Updated
SSEMethod.subscribe_to_transactions
signature: added optionaloperations
parameter. - Handled HTTP status errors in
_subscribe
method. - Refactored
__read_content
method for efficient reading.
Miscellaneous
- Added
TONAPISSEError
.
Full Changelog: v0.2.4...v0.2.6
v0.2.4
What's Changed
Updates
- Add
owner
to JettonHolder schema. - Add
jettons.get_all_holders
method.
Fixes
- Fixed
JSONDecodeError
handling to return error content as a dictionary instead of a set.
Full Changelog: v0.2.0...v0.2.4
v0.2.0
What's Added
-
New API Methods
Inscriptions
- /v2/experimental/accounts/{account_id}/inscriptions
- /v2/experimental/accounts/{account_id}/inscriptions/history
- /v2/experimental/accounts/{account_id}/inscriptions/{ticker}/history
- /v2/experimental/inscriptions/op-template
Full Changelog: v0.1.9...v0.2.0
v0.1.9
What's Added
-
New API Methods
Blockchain
- /v2/status
- /v2/blockchain/masterchain/{masterchain_seqno}/blocks
- /v2/blockchain/masterchain/{masterchain_seqno}/transactions
- /v2/blockchain/masterchain/{masterchain_seqno}/config
- /v2/blockchain/masterchain/{masterchain_seqno}/config/raw
Emulation
- /v2/message/decode
-
Missing fields in model schemas.
Full Changelog: v0.1.7...v0.1.9
v0.1.7
What's Changed
New Features
- Added support for Python
3.11
and3.12
.
Dependency Updates
- Removed
libscrc
library. - Updated
httpx
version to0.26.0
.
Bug Fixes
- Fixed an issue in the
v2/blockchain/accounts/{account_id}/methods/{method_name}
method.
Refactoring
- Minor code refactoring for improved maintainability.
This release introduces new Python version support, updates dependencies, addresses a specific issue, and includes minor refactoring for better code organization.
v0.1.6
What's Added
-
New Features and API Methods
- Added support for all available methods. See the full list here.
-
Streaming API Enhancements
- Introduced Server-Sent Events (SSE) for enhanced streaming capabilities.
- Enabled Websockets support (Async version only) to provide real-time communication.
-
Library and Dependency Updates
- Replaced
aiohttp
andrequests
withhttpx
for improved HTTP client functionality. - Added
websockets
for enhanced interaction and communication.
- Replaced
-
Examples and Usage Illustrations
Changes Made
- Updated the API to include all available methods.
- Implemented Server-Sent Events (SSE) for improved streaming capabilities.
- Introduced Websockets support, available exclusively in the Async version.
- Replaced the usage of
aiohttp
andrequests
withhttpx
for improved HTTP client functionality.
v0.1.3
What's Changed
-
Address Update: EQ » UQ
Change Details
By the end of this year, the TON network will transition to a new wallet address format. Instead of the familiar EQ prefix, addresses will now start with UQ. This update changes how user addresses are displayed in the TON network, making addressing more user-friendly and intuitive.
Changes Made
- Updated the raw_to_userfriendly function to support the new address format.
- Added the
is_bounceable
parameter to enable the display of UQ addresses.
Address Examples
- Old Address:
EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
- New Address:
UQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNbbp