Skip to content

Add UseJetton trait for simplified jetton integration #46

@pyAndr3w

Description

@pyAndr3w

Problem

  • Currently, there are no convenient tools to add jetton interaction in Tact smart contracts.
  • The existing cookbook examples are not production-ready and require modifications before use. Specifically, the use of calculateJettonWalletAddress is considered a very-very-very bad practice.

Task

  • Implement a reusable trait UseJetton that enables jetton receiving capability with minimal setup.

Expected Features

  • The trait should accept a single parameter: the jetton master address.
  • Use TEP-89 for wallet resolve.
  • All resolver/receiver logic should be implemented under the hood.
  • Provide a absctact function that receives the cleaned transfer notification.

Open Question

  • Should the trait include automatic bounce logic for rejected transfers (e.g. if the message sender address is invalid)?

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions