Flex
Flex exchange system
Public Member Functions | List of all members
ITONTokenWalletNotify Interface Reference

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...
 

Detailed Description

TON Token wallet notification callback interface.

Must be implemented in contracts receiving lend ownership or transfer notifications.

Member Function Documentation

◆ onTip3LendOwnership()

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.

Parameters
balanceAmount of tokens in temporary ownership of target contract.
Warning
(for dev) balance must be first parameter to correctly process `on_bounced`.
Parameters
lend_finish_timeLend ownership finish time.
credsWallet's credentials (pubkey + owner)
payloadPayload (arbitrary cell).
answer_addrAnswer address (to receive answer and the remaining processing evers).

◆ onTip3Transfer()

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.

Parameters
balanceNew balance of the wallet.
new_tokensAmount of tokens received in transfer.
evers_balanceEvers balance of the wallet
tip3cfgTip3 configuration.
senderSender wallet's credentials (pubkey + owner). Empty if mint received from root/wrapper.
receiverReceiver wallet's credentials (pubkey + owner).
payloadPayload (arbitrary cell).
answer_addrAnswer address (to receive answer and the remaining processing evers).

The documentation for this interface was generated from the following file: