Flex
Flex exchange system
Classes | Functions
TONTokenWallet.cpp File Reference

TONTokenWallet contract implementation Compiles into two contract versions: TONTokenWallet.tvc (external wallet) and FlexWallet.tvc (internal wallet). With different macroses. More...

#include "TONTokenWallet.hpp"
#include <tvm/contract.hpp>
#include <tvm/contract_handle.hpp>
#include <tvm/default_support_functions.hpp>
#include <tvm/suffixes.hpp>
#include <tvm/schema/parse_chain_static.hpp>
#include <tvm/schema/build_chain_static.hpp>
#include "FlexLendPayloadArgs.hpp"
Include dependency graph for TONTokenWallet.cpp:

Classes

struct  auth_cfg
 Authentification configuration flags. More...
 
class  TONTokenWallet< Internal >
 Implementation of TONTokenWallet contract. More...
 
struct  TONTokenWallet< Internal >::error_code
 Error codes of TONTokenWallet contract. More...
 

Functions

 DEFINE_JSON_ABI (ITONTokenWallet, DTONTokenWallet, ETONTokenWallet, wallet_replay_protection_t)
 

Detailed Description

TONTokenWallet contract implementation Compiles into two contract versions: TONTokenWallet.tvc (external wallet) and FlexWallet.tvc (internal wallet). With different macroses.

Author
Andrew Zhogin

Class Documentation

◆ auth_cfg

struct auth_cfg

Authentification configuration flags.

Class Members
bool allowed_for_original_owner_in_lend_state Allowed for original owner in lend state.
bool allowed_for_update_team If this method is allowed for the update team.
bool allowed_lend_owner Allowed for lend owner (contract internal owner)
bool allowed_lend_pubkey Allowed for lend pubkey (person/script external owner)
uint128 required_evers Required evers. Lend evers must be greater and will be decreased by.
uint32 required_time Required time. Lend finish time must be greater.
uint128 required_tokens Required tokens. Lend balance must be greater and will be decreased by.
uint128 return_ownership Return ownership value.