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

Classes

struct  error_code
 

Public Types

using data = DWrapper
 
using Args = args_struct_t<&ITONTokenWallet::acceptMint >
 

Public Member Functions

bool init (uint128 reserve_wallet_evers, cell internal_wallet_code)
 
address deployEmptyWallet (uint256 pubkey, address_opt internal_owner, uint128 evers)
 
void onEverTransfer (uint128 tokens, FlexDeployWalletArgs args)
 
void burn (uint128 tokens, address answer_addr, uint256 sender_pubkey, address_opt sender_owner, [[maybe_unused]] uint256 out_pubkey, address_opt out_owner, opt< cell > notify)
 
void transferFromReserveWallet (address_opt answer_addr, address to, uint128 tokens)
 
uint128 requestTotalGranted ()
 
std::pair< address_opt, uint256 > cloned ()
 
void setCloned (address_opt cloned, uint256 cloned_pubkey, address wrappers_cfg, uint256 wrappers_cfg_code_hash, uint16 wrappers_cfg_code_depth)
 
wrapper_details_info getDetails ()
 
Tip3Config getTip3Config ()
 
bool hasInternalWalletCode ()
 
address getWalletAddress (uint256 pubkey, address_opt owner)
 
address getReserveWallet ()
 
 __attribute__ ((noinline)) static int _on_bounced(cell msg
 
parser p (msg_body)
 
 require (p.ldi(32)==-1, error_code::wrong_bounced_header)
 
 require (opt_hdr &&opt_hdr->function_id==id_v<&ITONTokenWallet::acceptMint >, error_code::wrong_bounced_header)
 
 require (bounced_val<=persist.total_granted_, error_code::wrong_bounced_args)
 
 save_persistent_data (hdr, persist)
 
uint256 getInternalWalletCodeHash ()
 

Static Public Member Functions

static int _fallback (cell, slice)
 

Public Attributes

slice msg_body
 
 auto [opt_hdr,=p] = parse_continue<abiv1::internal_msg_header>(p)
 
auto args = parse<Args>(p, error_code::wrong_bounced_args)
 
auto bounced_val = args._value
 
persist total_granted_ = bounced_val
 
 return
 

Static Public Attributes

static constexpr bool _checked_deploy = true
 
static constexpr unsigned internal_wallet_hash = TIP3_WALLET_CODE_HASH
 Deploy is only allowed with [[deploy]] function call.
 
static constexpr unsigned internal_wallet_code_depth = TIP3_WALLET_CODE_DEPTH
 

Member Data Documentation

◆ msg_body

slice msg_body
Initial value:
{
tvm_accept()

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