Flex
Flex exchange system
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
WIC Class Referencefinal

Wrapper Index Contract implementation. More...

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

Classes

struct  error_code
 To allow deploy message only with onDeploy call. More...
 

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)
 
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 ()
 
cell resalt (WICSalt cfg, address wrappers_cfg)
 Re-salt code with new configuration WICSalt.
 
WICDetails getDetails ()
 
WICSalt getConfig ()
 

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)
 

Static Public Attributes

static constexpr bool _checked_deploy = true
 

Additional Inherited Members

- Public Attributes inherited from DWIC
string symbol_
 Token symbol. Used for address calculation.
 
int8 workchain_id_
 Workchain id.
 
opt< address > deployer_
 Wrapper deployer used to deploy the wrapper.
 
opt< address > wrapper_
 Wrapper address.
 
opt< uint8 > type_
 Wrapper type.
 
opt< cell > init_args_
 Init args.
 
opt< address > next_
 Next WIC address.
 
bool_t unlisted_
 Wrapper is unlisted and should not be cloned during cloneUpgrade.
 

Detailed Description

Wrapper Index Contract implementation.

Member Function Documentation

◆ 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 
)
inline
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 
)
inline
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 class was generated from the following file: