Flex
Flex exchange system
|
TON Token wallet notification callback interface. More...
#include <TONTokenWallet.hpp>
Public Member Functions | |
bool | onTip3LendOwnership (uint128 balance, uint32 lend_finish_time, Tip3Creds creds, cell payload, address answer_addr) |
bool | onTip3Transfer (uint128 balance, uint128 new_tokens, uint128 evers_balance, Tip3Config tip3cfg, opt< Tip3Creds > sender, Tip3Creds receiver, cell payload, address answer_addr) |
Notification from tip3 wallet to its owner contract about received tokens transfer. More... | |
TON Token wallet notification callback interface.
Must be implemented in contracts receiving lend ownership or transfer notifications.
bool onTip3LendOwnership | ( | uint128 | balance, |
uint32 | lend_finish_time, | ||
Tip3Creds | creds, | ||
cell | payload, | ||
address | answer_addr | ||
) |
Notification that target contract has received temporary (lend) ownership of specified tokens amount in the wallet.
balance | Amount of tokens in temporary ownership of target contract. |
lend_finish_time | Lend ownership finish time. |
creds | Wallet's credentials (pubkey + owner) |
payload | Payload (arbitrary cell). |
answer_addr | Answer address (to receive answer and the remaining processing evers). |
bool onTip3Transfer | ( | uint128 | balance, |
uint128 | new_tokens, | ||
uint128 | evers_balance, | ||
Tip3Config | tip3cfg, | ||
opt< Tip3Creds > | sender, | ||
Tip3Creds | receiver, | ||
cell | payload, | ||
address | answer_addr | ||
) |
Notification from tip3 wallet to its owner contract about received tokens transfer.
balance | New balance of the wallet. |
new_tokens | Amount of tokens received in transfer. |
evers_balance | Evers balance of the wallet |
tip3cfg | Tip3 configuration. |
sender | Sender wallet's credentials (pubkey + owner). Empty if mint received from root/wrapper. |
receiver | Receiver wallet's credentials (pubkey + owner). |
payload | Payload (arbitrary cell). |
answer_addr | Answer address (to receive answer and the remaining processing evers). |