Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TON Connect SDK for Python #927

Open
nessshon opened this issue Jan 7, 2025 · 0 comments
Open

TON Connect SDK for Python #927

nessshon opened this issue Jan 7, 2025 · 0 comments
Labels
Developer Tool Related to tools or utilities used by developers

Comments

@nessshon
Copy link
Contributor

nessshon commented Jan 7, 2025

Summary

I propose developing a fully functional and robust TON Connect SDK in Python to address the shortcomings of existing solutions and provide developers with better tools for integrating TON Connect into their applications. This new component will be built from scratch, ensuring a clean and optimized codebase and delivering an improved interaction experience.

Context

Several attempts have been made to create TON Connect SDKs in Python, but they have significant flaws:

  1. pytonconnect:

    • Does not work with wallets on iOS 16+ (e.g., Tonkeeper).
    • Incorrect handling of events for certain wallets (e.g., TON Hub).
    • No updates — the library is considered abandoned.
  2. ClickoTON-Foundation tonconnect:

    • Missing support for transaction calls.
    • No updates — the library is considered abandoned.

To address these issues, I developed a new TON Connect SDK from scratch. This approach ensures:

  • A stable and up-to-date solution with regular maintenance.
  • A clean and consistent codebase.
  • Full compatibility with my existing tonutils library, which already provides extensive tools for working with TON technologies.

The SDK significantly improves the developer experience and offers the following features:

  • Decorators for handling all incoming events.
  • Context managers for processing specific events.
  • Transaction status verification.
  • Built-in timeout handling.
  • An optimized wallet manager.
  • Compatibility with pytoniq-core for easy transaction assembly.

The TON Connect SDK is already integrated into the tonutils library, and the source code is available here.

To simplify integration and usage, the following documentation has been prepared:

Additionally, a sample Telegram bot implementation is available at: @tonconnectbot.

References

Estimate suggested reward

  • SBT Bounty Reward
  • 1500 USD in TON
@nessshon nessshon added the Developer Tool Related to tools or utilities used by developers label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Tool Related to tools or utilities used by developers
Projects
None yet
Development

No branches or pull requests

1 participant