Flex
Flex exchange system
All Classes Files Functions Variables Typedefs Enumerations Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
SuperRoot Class Referencefinal

SuperRoot contract implementation. More...

Inheritance diagram for SuperRoot:
Inheritance graph
[legend]
Collaboration diagram for SuperRoot:
Collaboration graph
[legend]

Classes

struct  error_code
 

Public Member Functions

void onDeploy (cell global_config_code, cell flex_client_stub, address_opt prev_super_root)
 
void update (uint128 cfg_deploy_evers, uint128 cfg_keep_evers, FlexVersion version, address wrappers_cfg, address flex, address user_cfg, string description)
 
void updateConfirmed (FlexVersion version)
 
void release ()
 
void proxy (cell msg, bool cant_work_during_update, bool starting_update)
 
void addWrapperType (uint128 call_evers, uint128 wrappers_cfg_keep_evers, address wrappers_cfg, uint8 type, address wrapper_deployer)
 
void addWrapper (uint128 call_evers, uint128 wrappers_cfg_keep_evers, address wrappers_cfg, WICCloneEvers evers, string symbol, uint8 type, cell init_args)
 
void addXchgPair (uint128 call_evers, address flex, PairCloneEvers evers, Tip3Config major_tip3cfg, Tip3Config minor_tip3cfg, uint128 min_amount, uint128 minmove, uint128 price_denum, address notify_addr)
 
address deployWrappersConfig (uint128 deploy_evers, uint128 wrappers_cfg_keep_evers, uint32 token_version, cell wrappers_cfg_code, cell wic_code)
 
address deployFlex (uint128 deploy_evers, uint128 keep_evers, PairCloneEvers evers, address_opt old_flex, uint32 exchange_version, cell flex_code, cell xchg_pair_code, cell xchg_price_code, EversConfig ev_cfg, uint8 deals_limit)
 
address deployUserDataConfig (uint128 deploy_evers, FlexVersion triplet, bind_info binding, cell user_data_cfg_code, cell flex_client_code, cell auth_index_code, cell user_id_index_code)
 
void cloneWrappersConfig (address wrappers_cfg, uint128 wrapper_cfg_keep_evers, uint128 clone_deploy_evers, WICCloneEvers wic_evers, uint32 new_token_version, dict_array< address > wrapper_deployers)
 
void transfer (address to, uint128 evers)
 
void transferReserveTokens (address wrapper, uint128 tokens, address to)
 
void setFlags (opt< bool > stop_trade, opt< bool > abandon_ship, opt< bool > update_started)
 
void setOwner (address owner)
 
void setUpdateTeam (address_opt team)
 
void setNextSuperRoot (address next_super_root)
 
SuperRootDetails getDetails ()
 
address getGlobalConfig (FlexVersion version)
 
address getCurrentGlobalConfig ()
 
template<bool out_transfer = false>
void check_owner (auth_cfg cfg)
 

Static Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from DSuperRoot
uint256 pubkey_
 Deployer public key.
 
bool_t stop_trade_
 Recommendation to stop trading (in case if problem found in trading algorithms)
 
bool_t abandon_ship_
 Recommendation to cancel all orders and withdraw funds (in case if critical problem found)
 
bool_t update_started_
 Update procedures started (Wrappers/Flex/UI cloning started).
 
address owner_
 Owner contract address.
 
address_opt update_team_
 Update team address. Update team is allowed to deploy beta versions and related contracts.
 
optcell global_config_code_
 Code of GlobalConfig (salted)
 
optcell flex_client_stub_
 Code of FlexClientStub (salted)
 
int8 workchain_id_
 Workchain id.
 
opt< FlexVersionversion_
 Latest Flex version.
 
opt< FlexVersionbeta_version_
 Beta Flex version.
 
address_opt deploying_cfg_
 Deploying GlobalConfig contract.
 
address_opt prev_super_root_
 Will point to the previous super root.
 
address_opt next_super_root_
 Will be set up if new super root is deployed and should be used instead.
 
uint32 revision_
 SuperRoot revision.
 

Detailed Description

SuperRoot contract implementation.


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