Flex
Flex exchange system
Public Member Functions | List of all members
IWrappersConfig Interface Reference

WrappersConfig contract interface. WrappersConfig keeps wrappers configuration for specific token version. More...

#include <WrappersConfig.hpp>

Public Member Functions

void onDeploy (uint128 keep_evers, opt< WICCloneEvers > evers, opt< uint32 > old_token_version, dict_array< address > wrapper_deployers, address_opt first_wic, address_opt last_wic, uint32 wic_count)
 Deploy processing. More...
 
void onWICsCloned (address_opt first_wic, address_opt last_wic, uint32 wic_count)
 Notification from last WIC (old) about completion of WICs cloning procedure to the new WrappersConfig. More...
 
void addWrapperType (uint128 keep_evers, uint8 type, address wrapper_deployer)
 Add Wrapper type. More...
 
void addWrapper (uint128 keep_evers, WICCloneEvers evers, string symbol, uint8 type, cell init_args)
 Add Wrapper of already registered type. More...
 
void unlistWrapper (address wic)
 Unlist Wrapper. More...
 
address cloneUpgrade (address_opt answer_addr, uint128 keep_evers, uint128 clone_deploy_evers, WICCloneEvers evers, uint32 new_token_version, dict_array< address > wrapper_deployers)
 
WrappersConfigDetails getDetails ()
 Get info about contract state details.
 
WrappersConfigSalt getConfig ()
 Get config from code salt.
 

Detailed Description

WrappersConfig contract interface. WrappersConfig keeps wrappers configuration for specific token version.

Member Function Documentation

◆ addWrapper()

void addWrapper ( uint128  keep_evers,
WICCloneEvers  evers,
string  symbol,
uint8  type,
cell  init_args 
)

Add Wrapper of already registered type.

Parameters
keep_eversKeep evers in the contract before returning the rest to SuperConfig
eversEvers configuration (for each WIC clone)
symbolToken symbol
typeWrapper type number
init_argsInitial wrapper args for deployer

◆ addWrapperType()

void addWrapperType ( uint128  keep_evers,
uint8  type,
address  wrapper_deployer 
)

Add Wrapper type.

Parameters
keep_eversKeep evers in the contract before returning the rest to SuperConfig
typeNew Wrapper type number, must be equal to wrapper_deployers_.size()
wrapper_deployerWrapper deployer contract

◆ cloneUpgrade()

address cloneUpgrade ( address_opt  answer_addr,
uint128  keep_evers,
uint128  clone_deploy_evers,
WICCloneEvers  evers,
uint32  new_token_version,
dict_array< address >  wrapper_deployers 
)

Create clone of this contract with new wrappers and WICs. Returns address of the new WrappersConfig clone.

Note
Return message with clone address is sent immediately
Parameters
answer_addrAnswer address
keep_eversKeep evers in the contract before returning the rest to SuperConfig
clone_deploy_eversEvers to send in the clone deploy
eversEvers configuration (for each WIC clone)
new_token_versionNew tokens update group version
wrapper_deployersWrapper deployers for different types of Wrappers

◆ onDeploy()

void onDeploy ( uint128  keep_evers,
opt< WICCloneEvers evers,
opt< uint32 >  old_token_version,
dict_array< address >  wrapper_deployers,
address_opt  first_wic,
address_opt  last_wic,
uint32  wic_count 
)

Deploy processing.

Parameters
keep_eversKeep evers, before sending the remaining to WIC->cloneUpgrade (used only for clone-deploy)
eversEvers configuration for each WIC clone (empty for original deploy)
old_token_versionOld token version (empty for original deploy)
wrapper_deployersWrapper deployers (empty for original deploy)
first_wicFirst WIC of the previous WrappersConfig (empty for original deploy)
last_wicLast WIC of the previous WrappersConfig (empty for original deploy)
wic_countWIC count

◆ onWICsCloned()

void onWICsCloned ( address_opt  first_wic,
address_opt  last_wic,
uint32  wic_count 
)

Notification from last WIC (old) about completion of WICs cloning procedure to the new WrappersConfig.

Parameters
first_wicFirst cloned WIC
last_wicLast cloned WIC
wic_countWIC count

◆ unlistWrapper()

void unlistWrapper ( address  wic)

Unlist Wrapper.

Parameters
wicWIC (WrapperIndexContract) address

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