Flex
Flex exchange system
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
RootTokenContract< Internal > Class Template Referencefinal
Inheritance diagram for RootTokenContract< Internal >:
Inheritance graph
[legend]
Collaboration diagram for RootTokenContract< Internal >:
Collaboration graph
[legend]

Classes

struct  error_code
 

Public Types

using data = DRootTokenContract
 

Public Member Functions

void constructor (string name, string symbol, uint8 decimals, uint256 root_pubkey, address_opt root_owner, uint128 total_supply)
 
bool setWalletCode (cell wallet_code)
 
address deployWallet (uint256 pubkey, address_opt owner, uint128 tokens, uint128 evers, opt< cell > notify)
 
address deployEmptyWallet (uint256 pubkey, address_opt owner, uint128 evers)
 
void grant (address dest, uint128 tokens, uint128 evers, opt< cell > notify)
 
bool mint (uint128 tokens)
 
uint128 requestTotalGranted ()
 
string getName ()
 
string getSymbol ()
 
uint8 getDecimals ()
 
uint256 getRootKey ()
 
address_opt getRootOwner ()
 
uint128 getTotalSupply ()
 
uint128 getTotalGranted ()
 
bool hasWalletCode ()
 
cell getWalletCode ()
 
address getWalletAddress (uint256 pubkey, address_opt owner)
 
uint256 getWalletCodeHash ()
 

Static Public Member Functions

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

Static Public Attributes

static constexpr unsigned wallet_hash = TIP3_WALLET_CODE_HASH
 
static constexpr unsigned wallet_code_depth = TIP3_WALLET_CODE_DEPTH
 

Additional Inherited Members

- Public Attributes inherited from DRootTokenContract
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.
 
uint256 root_pubkey_
 Root public key.
 
address_opt root_owner_
 Root internal owner (owner contract).
 
uint128 total_supply_
 Total supply of allocated tokens (in the pool).
 
uint128 total_granted_
 Total granted tokens (to the wallets).
 
optcell wallet_code_
 Token wallet code.
 

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