Aiogram-tonconnect

Latest version: v0.14.3

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.13.5

What's Changed

- Refactored `AiogramTonConnectMiddleware` for user events only.
- Added `tonapi_token` to prevent errors with bridge tonapi 429.
Set the key in `AiogramTonConnectMiddleware`:
python
AiogramTonConnectMiddleware(
...,
tonapi_token=config.tonapi.TONCONNECT_KEY,
)

**Full Changelog**: https://github.com/nessshon/aiogram-tonconnect/compare/v0.13.2...v0.13.5

0.13.2

What's Changed

* Implemented custom `proof_payload` support in [connect_wallet](https://github.com/nessshon/aiogram-tonconnect/blob/ef67451435eead4cbf95b32c2467207f144a6309/aiogram_tonconnect/manager.py#L126).

* Refactored code and improved documentation for [NFTTransferTransaction](https://github.com/nessshon/aiogram-tonconnect/blob/ef67451435eead4cbf95b32c2467207f144a6309/aiogram_tonconnect/tonconnect/transactions.py#L110) and [JettonTransferTransaction](https://github.com/nessshon/aiogram-tonconnect/blob/ef67451435eead4cbf95b32c2467207f144a6309/aiogram_tonconnect/tonconnect/transactions.py#L50).

* Dropped support for Python 3.7.

**Full Changelog**: https://github.com/nessshon/aiogram-tonconnect/compare/v0.13.1...v0.13.2

0.13.1

**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**: https://github.com/nessshon/aiogram-tonconnect/compare/v0.12.7...v0.13.1

0.12.7

What's Changed

* Added support for using the default wallet picture in case of errors when loading an image from the [wallets-list](https://github.com/ton-blockchain/wallets-list/blob/main/wallets-v2.json) for QR code generation.

0.12.6

What's Inside?

- **Ready-to-Use User Interface:** Quickly connect wallets and handle transactions.

- **Middleware Functionality:** Simplify your bot's interaction flow effortlessly.

- **Interface Customization:** Personalize the UI to match your bot's style.

- **Multilingual Support:** Multilingual support for a global audience.

- **QR Code Generation:** Generate QR codes locally or via URL.

Examples

Explore implementation examples in the `examples` folder of our [GitHub repository](https://github.com/tonmendon/aiogram-tonconnect/tree/main/example).

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.