Every contract and trait in Tact implicitly inherits the BaseTrait trait, which contains a number of the most useful internal functions for any kind of contract, and a constant self.storageReserve aimed at advanced users of Tact.
Constants
self.storageReserve
Usage example:
Functions
self.reply
An alias to calling the self.forward() function with the following arguments:
Usage example:
self.notify
An alias to calling the self.forward() function with the following arguments:
Usage example:
self.forward
Queues the message (bounceable or non-bounceable) to be sent to the specified address to. Optionally, you may provide a body of the message and the init package.
When self.storageReserve constant is overwritten to be >0, before sending a message it also tries to reserve the self.storageReserve amount of nanoToncoins from the remaining balance before making the send in the SendRemainingBalance (128) mode.
In case reservation attempt fails and in the default case without the attempt, the message is sent with the SendRemainingValue (64) mode instead.