Skip to content

Releases: tonkeeper/pytonapi

v0.2.9

26 Apr 19:43
Compare
Choose a tag to compare

What's Changed

Fixes

  • Updated StateInit schema: The StateInit schema has been revised to include only the boc field. #10

Full Changelog: v0.2.8...v0.2.9

v0.2.8

25 Apr 11:32
Compare
Choose a tag to compare

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 from int to str to resolve data inconsistency error. #11

Enhancements

  • Refactored test_get_all_jettons method.

New Contributors

Full Changelog: v0.2.6...v0.2.8

v0.2.6

23 Apr 00:14
Compare
Choose a tag to compare

What's Changed

New Features

Fixes

  • Fixed API endpoint typo in EmulateMethod.decode_message method.

Enhancements

  • Updated SSEMethod.subscribe_to_transactions signature: added optional operations 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

18 Apr 23:26
Compare
Choose a tag to compare

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

26 Feb 22:07
Compare
Choose a tag to compare

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

22 Feb 21:23
Compare
Choose a tag to compare

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

09 Jan 10:46
Compare
Choose a tag to compare

What's Changed

New Features

  • Added support for Python 3.11 and 3.12.

Dependency Updates

  • Removed libscrc library.
  • Updated httpx version to 0.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

26 Nov 22:07
Compare
Choose a tag to compare

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 and requests with httpx for improved HTTP client functionality.
    • Added websockets for enhanced interaction and communication.
  • Examples and Usage Illustrations

    • Added a folder with usage examples: Examples.
    • Check out the SSE usage example: sse.py.
    • More examples will be added to provide comprehensive guidance.

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 and requests with httpx for improved HTTP client functionality.

v0.1.3

30 Oct 01:10
Compare
Choose a tag to compare

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

v0.1.1

10 Sep 08:04
Compare
Choose a tag to compare

What's Changed

  • Fixed method parameters from start_data and end_data to start_date and end_date.