- Notifications
You must be signed in to change notification settings - Fork 4
Description
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
- Previous traits draft:
jetton.tact
- TEP-89 resolve example:
jetton-vault.tact