Flex
Flex exchange system
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
TONTokenWallet< Internal > Class Template Referencefinal

Implementation of TONTokenWallet contract. More...

Inheritance diagram for TONTokenWallet< Internal >:
Inheritance graph
[legend]
Collaboration diagram for TONTokenWallet< Internal >:
Collaboration graph
[legend]

Classes

struct  error_code
 Error codes of TONTokenWallet contract. More...
 

Public Types

using data = DTONTokenWallet
 

Public Member Functions

void transfer (address_opt answer_addr, address to, uint128 tokens, uint128 evers, uint128 return_ownership, opt< cell > notify_payload)
 
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 ()
 
void acceptMint (uint128 _value, address answer_addr, uint128 keep_evers, opt< cell > notify_payload)
 
void acceptTransfer (uint128 _value, address answer_addr, uint128 keep_evers, uint256 sender_pubkey, address_opt sender_owner, opt< cell > notify_payload)
 
void destroy (address dest)
 
details_info details ()
 
details_info getDetails ()
 
uint128 getBalance ()
 
opt< uint256 > getLendPubkey ()
 
opt< bind_infogetBinding ()
 

Static Public Member Functions

static __always_inline int _on_bounced (cell msg, slice msg_body)
 
static __always_inline int _fallback ([[maybe_unused]] cell msg, [[maybe_unused]] slice msg_body)
 
static __always_inline int _receive ([[maybe_unused]] cell msg, [[maybe_unused]] slice msg_body)
 

Static Public Attributes

static constexpr unsigned min_transfer_costs = 150000000
 Minimum transfer costs in evers.
 
static constexpr unsigned c_max_lend_owners = 50
 Limit of lend owners.
 

Additional Inherited Members

- Public Attributes inherited from DTONTokenWallet
string name_
 Token name.
 
string symbol_
 Token short symbol.
 
uint8 decimals_
 Decimals for ui purposes. ex: balance 100 with decimals 2 will be printed as 1.00.
 
uint128 balance_
 Token balance of the wallet.
 
uint256 root_pubkey_
 Public key of the related RootTokenContract.
 
address root_address_
 Address of the related RootTokenContract.
 
uint256 wallet_pubkey_
 Public key of wallet owner.
 
address_opt owner_address_
 Owner contract address for internal ownership.
 
uint256 code_hash_
 Tip3 wallet code hash to verify other wallets.
 
uint16 code_depth_
 Tip3 wallet code depth to verify other wallets.
 
int8 workchain_id_
 Workchain id.
 

Detailed Description

template<bool Internal>
class TONTokenWallet< Internal >

Implementation of TONTokenWallet contract.


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