Skip to content

v0.13.1

Compare
Choose a tag to compare
@nessshon nessshon released this 29 Feb 00:58
· 49 commits to main since this release

What's Changed

AccountWallet Changes

  • Updated AccountWallet.address from a string to the Address model for a user-friendly display with urlSafe=true, bouncable=false, and testnet support.
  • Introduced two new methods:
    • Address.to_raw for obtaining the wallet address in raw format.
    • Address.to_userfriendly(test_only=False) for displaying the wallet address in a user-friendly format.

Model and Transaction Enhancements

  • Replaced the dataclass model with Pydantic, enhancing overall functionality.
  • Improved documentation for models.
  • Added 'from' and 'network' parameters to the Transaction class.

Transaction Functionality

  • Enhanced functionality for NFT and Jetton transfer transactions.

ATCManager Class Changes

  • Made the send_message method private in the ATCManager class.
  • Split the send_transaction method in ATCManager into two methods:
    • send_transaction
    • retry_last_send_transaction
  • Split the connect_wallet method in ATCManager into two methods:
    • connect_wallet
    • retry_connect_wallet

Exception Handling

  • Added exceptions for retrying failed transaction and wallet connection attempts.

TextMessage Updates

  • Removed '_emoji' from ATCManager and replaced it with two texts:
    • 'loader_text' - When the bot response time exceeds 2-3 seconds, such as during QR code generation.
    • 'outdated_text' - If a message is older than 2 days, the Telegram Bot API does not support direct deletion. Instead, we modify the message text as 'outdated_text'.

Wallet Connection

  • Added support for ton_proof in wallet connection. To use it, simply specify atc_manager.connect_wallet(callbacks, check_prof=True).

QR Code Refactoring

  • Refactored qrcode_type and qrcode_base_url into a unified parameter, qrcode_provider, accommodating interfaces QRUrlProvider and QRImageProvider.

Storage Enhancements

  • Refactored storage to enhance functionality with the option to add custom providers.
  • Added two default storage options:
    • ATCMemoryStorage
    • ATCRedisStorage.

Full Changelog: v0.12.7...v0.13.1