Base trait
This content is not available in your language yet.
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 , 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
() mode.
In case reservation attempt fails and in the default case without the attempt, the message is sent with the SendRemainingValue
() mode instead.
Usage example: