Flex
Flex exchange system
Public Member Functions | List of all members
ITONTokenWallet Interface Referenceabstract

TON Token wallet contract interface. More...

#include <TONTokenWallet.hpp>

Public Member Functions

TIP3_EXTERNAL void transfer (address_opt answer_addr, address to, uint128 tokens, uint128 evers, uint128 return_ownership, opt< cell > notify_payload)
 Transfer tokens to another tip3 wallet contract. More...
 
TIP3_EXTERNAL void transferToRecipient (address_opt answer_addr, Tip3Creds to, uint128 tokens, uint128 evers, uint128 keep_evers, bool deploy, uint128 return_ownership, opt< cell > notify_payload)
 
uint128 balance ()
 Request wallet token balance using internal message (contract-to-contract).
 
void acceptMint (uint128 _value, address answer_addr, uint128 keep_evers, opt< cell > notify_payload)=0x4384F298
 Receive tokens from root (RootTokenContract). More...
 
void acceptTransfer (uint128 _value, address answer_addr, uint128 keep_evers, uint256 sender_pubkey, address_opt sender_owner, opt< cell > payload)=0x67A0B95F
 Receive tokens from another tip3 wallet. More...
 
details_info details ()
 Request info about contract state details (from another contract).
 
details_info getDetails ()
 Get info about contract state details.
 

Detailed Description

TON Token wallet contract interface.

Member Function Documentation

◆ acceptMint()

void acceptMint ( uint128  _value,
address  answer_addr,
uint128  keep_evers,
opt< cell >  notify_payload 
)
pure virtual

Receive tokens from root (RootTokenContract).

Parameters
_valueTokens received from RootTokenContract.
answer_addrAnswer address.
keep_eversNative funds that the wallet should keep before returning answer with the remaining funds.
notify_payloadPayload (arbitrary cell) - if specified, will be transmitted into dest owner's notification.

◆ acceptTransfer()

void acceptTransfer ( uint128  _value,
address  answer_addr,
uint128  keep_evers,
uint256  sender_pubkey,
address_opt  sender_owner,
opt< cell >  payload 
)
pure virtual

Receive tokens from another tip3 wallet.

Parameters
_valueAmount of tokens received from another tip3 token wallet.
answer_addrAnswer address.
keep_eversNative funds that the wallet should keep before returning answer with the remaining funds.
sender_pubkeySender wallet pubkey.
sender_ownerSender wallet internal owner.
payloadPayload (arbitrary cell). If specified, the wallet should send notification to its internal owner.

◆ transfer()

TIP3_EXTERNAL void transfer ( address_opt  answer_addr,
address  to,
uint128  tokens,
uint128  evers,
uint128  return_ownership,
opt< cell >  notify_payload 
)

Transfer tokens to another tip3 wallet contract.

Parameters
answer_addrAnswer address.
toDestination tip3 wallet address.
tokensAmount of tokens to transfer.
eversNative funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value.
return_ownershipReturn ownership - to decrease lend ownership provided for the caller contract (additionally).
notify_payloadPayload (arbitrary cell) - if specified, will be transmitted into dest owner's notification.

◆ transferToRecipient()

TIP3_EXTERNAL void transferToRecipient ( address_opt  answer_addr,
Tip3Creds  to,
uint128  tokens,
uint128  evers,
uint128  keep_evers,
bool  deploy,
uint128  return_ownership,
opt< cell >  notify_payload 
)

Transfer to recipient. "ToRecipient" version calculate destination wallet address. using recipient public key and recipient internal owner.

Parameters
answer_addrAnswer address.
toRecipient credentials (pubkey + owner)
tokensAmount of tokens to transfer.
eversNative funds to process. For internal requests, this value is ignored and processing costs will be taken from attached value.
keep_eversEvers to keep in destination wallet
deployContract will send acceptTransfer message with StateInit to also deploy new tip3 wallet (if it doesn't already exist) with the provided recipient_public_key and recipient_internal_owner.
return_ownershipReturn ownership - to decrease lend ownership for the caller contract (additionally).
notify_payloadPayload (arbitrary cell) - if specified, will be transmitted into dest owner's notification.

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