Tonutils

Latest version: v0.1.8

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

Scan your dependencies

Page 1 of 3

0.2.0b0

Examples: Available at https://github.com/nessshon/tonutils/tree/main/examples/tonconnect

Please report any found issues on [GitHub Issues](https://github.com/nessshon/tonutils/issues).

0.1.8

What's Changed

- **Code Refactoring:** Improved the overall structure and readability of the codebase.
- **Updated Docstrings:** Revised and standardized docstrings.
- **Added `jetton_decimals`:** Introduced the `jetton_decimals` parameter to handle Jetton decimal precision, enabling accurate conversion of `min_amount` to nano units specifically for swap operations.

**Full Changelog**: https://github.com/nessshon/tonutils/compare/v0.1.7...v0.1.8

0.1.7

What's Changed

- **Improved Error Handling Across Clients**:
Fix: improve error handling and support for missing fields across clients. 18

- **Fix Packaging**:
Included the `py.typed` file to enhance type hinting support for users. 13

- **Refactor Stonfi, Implement Stonfi Swap V2**:
Refactored Stonfi and introduced the second version of the Stonfi Swap. 11

- **Add Mnemonic Validation Decorator**:
Added a decorator for mnemonic validation in the `from_mnemonic` method.

- **Fix Subwallet ID Generation for WalletV5R1**:
Fixed an issue with subwallet ID generation for `WalletV5R1`, depending on the selected network (mainnet/testnet).

- **Add Wallet V2 Support**:
Added support for Wallet V2.

- **Update aiohttp Version**:
Updated `aiohttp` to version 3.10.11 for compatibility and performance improvements.

**Full Changelog**: https://github.com/nessshon/tonutils/compare/v0.1.5...v0.1.7

0.1.5

What's Changed

- **Improved LiteserverClient Connection Handling**:
Refactored the client to maintain a persistent connection without reinitializing the LiteBalancer, ensuring better stability during operations.

- **STON.fy Swaps Integration**:
Introduced support for v1 swaps (TON to Jetton, Jetton to TON, Jetton to Jetton). 11

- **Enhanced Client Configuration**:
Added the `is_testnet` attribute to LiteserverClient, allowing easier identification of the network environment.

- **Fixed Wallet Deployment Issue**:
Resolved a bug that caused transactions to be sent to the zero address during Highload Wallet v3 deployments.

Added Examples

- Wallet Operations • DEX STON.fy
- [Swap TON to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/swap_ton_to_jetton.py)
- [Swap Jetton to TON](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/swap_jetton_to_ton.py)
- [Swap Jetton to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/swap_jetton_to_jetton.py)
- [Batch Swap TON to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/batch_swap_ton_to_jetton.py)
- [Batch Swap Jetton to TON](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/batch_swap_jetton_to_ton.py)
- [Batch Swap Jetton to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/wallet/common/dex/stonfi/batch_swap_jetton_to_jetton.py)

- Jetton Operations • DEX STON.fy
- [Swap TON to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/jetton/dex/stonfi/swap_ton_to_jetton.py)
- [Swap Jetton to TON](https://github.com/nessshon/tonutils/tree/main/examples/jetton/dex/stonfi/swap_jetton_to_ton.py)
- [Swap Jetton to Jetton](https://github.com/nessshon/tonutils/tree/main/examples/jetton/dex/stonfi/swap_jetton_to_jetton.py)

**Full Changelog**: https://github.com/nessshon/tonutils/compare/v0.1.4...v0.1.5

0.1.4

What's Changed

- Optimized the wallet address lookup process in batch jetton transfers, reducing redundant calls to retrieve the wallet address. This improvement enhances performance when transferring jettons to multiple recipients in a single operation.

- Fixed an issue in the Simple Subdomain Manager where cell building was incorrectly handled.

**Full Changelog**: https://github.com/nessshon/tonutils/compare/v0.1.1...v0.1.4

0.1.1

What's Changed

- Introduced a `base_url` parameter in the constructors of `TonapiClient` and `ToncenterClient`. This enhancement allows users to specify a custom API URL, improving flexibility in connecting to various API endpoints.

- Renamed `LiteClient` to `LiteserverClient` to prevent naming conflicts with `LiteClient` in the `pytoniq` library. This change enhances clarity and avoids potential confusion among developers using both libraries.

- Restored standard NFT contracts while introducing modified versions as supplementary contracts labeled as "Modified." This provides users with more options and functionality tailored to their specific needs in NFT management.

**Full Changelog**: https://github.com/nessshon/tonutils/compare/v0.1.0...v0.1.1

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.