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

Wrapper Index Contract interface. WIC is a contract to index (enumerate) wrappers. More...

#include <WIC.hpp>

Public Member Functions

resumable< void > onDeploy (uint128 keep_evers, address_opt old_wrappers_cfg, address_opt old_wrapper, bool keep_wrapper, address deployer, uint8 type, cell init_args)
 
void setNext (address_opt old_wrappers_cfg, opt< string > next_symbol, address next)
 Set next WIC address. More...
 
void cloneUpgrade (WICCloneEvers evers, opt< address > first_clone, opt< address > last_clone, opt< string > prev_symbol, uint32 wic_count, uint32 token_version, address new_wrappers_cfg, dict_array< address > wrapper_deployers)
 
void unlist ()
 Mark this WIC/Wrapper as unlisted. Unlisted WIC will not be cloned during cloneUpgrade.
 
WICDetails getDetails ()
 Get info about contract state details.
 

Detailed Description

Wrapper Index Contract interface. WIC is a contract to index (enumerate) wrappers.

Member Function Documentation

◆ cloneUpgrade()

void cloneUpgrade ( WICCloneEvers  evers,
opt< address >  first_clone,
opt< address >  last_clone,
opt< string >  prev_symbol,
uint32  wic_count,
uint32  token_version,
address  new_wrappers_cfg,
dict_array< address >  wrapper_deployers 
)

Clone this WIC to the new Flex version. This call will be chained to the next WIC (if exists).

Parameters
eversEvers configuration
first_cloneFirst WIC clone (if it is a nested call)
last_cloneLast WIC clone (if it is a nested call)
prev_symbolPrevious WIC symbol (if it is a nested call). Including unlisted.
wic_countWIC count
token_versionTokens update group version
new_wrappers_cfgNew WrappersConfig address
wrapper_deployersWrapper deployers for different types

◆ onDeploy()

resumable<void> onDeploy ( uint128  keep_evers,
address_opt  old_wrappers_cfg,
address_opt  old_wrapper,
bool  keep_wrapper,
address  deployer,
uint8  type,
cell  init_args 
)
Parameters
keep_eversKeep evers in the contract
old_wrappers_cfgOld WrappersConfig address (empty if it is original listing deploy)
old_wrapperOld wrapper for this clone
keep_wrapperIf deployer is not changed (at cloning), keep_wrapper will be true.
deployerWrapper deployer address
typeWrapper type
init_argsInit args

◆ setNext()

void setNext ( address_opt  old_wrappers_cfg,
opt< string >  next_symbol,
address  next 
)

Set next WIC address.

Parameters
old_wrappers_cfgOld WrappersConfig address in case of call from previous `next` WIC
next_symbolNext WIC `symbol`. Must be set iff old_wrappers_cfg is set.
nextNew `next` WIC in the linked list

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