WrappersConfig contract interface. WrappersConfig keeps wrappers configuration for specific token version.
More...
#include <WrappersConfig.hpp>
|
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.
|
|
WrappersConfig contract interface. WrappersConfig keeps wrappers configuration for specific token version.
◆ addWrapper()
void addWrapper |
( |
uint128 |
keep_evers, |
|
|
WICCloneEvers |
evers, |
|
|
string |
symbol, |
|
|
uint8 |
type, |
|
|
cell |
init_args |
|
) |
| |
Add Wrapper of already registered type.
- Parameters
-
keep_evers | Keep evers in the contract before returning the rest to SuperConfig |
evers | Evers configuration (for each WIC clone) |
symbol | Token symbol |
type | Wrapper type number |
init_args | Initial wrapper args for deployer |
◆ addWrapperType()
void addWrapperType |
( |
uint128 |
keep_evers, |
|
|
uint8 |
type, |
|
|
address |
wrapper_deployer |
|
) |
| |
Add Wrapper type.
- Parameters
-
keep_evers | Keep evers in the contract before returning the rest to SuperConfig |
type | New Wrapper type number, must be equal to wrapper_deployers_.size() |
wrapper_deployer | Wrapper 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_addr | Answer address |
keep_evers | Keep evers in the contract before returning the rest to SuperConfig |
clone_deploy_evers | Evers to send in the clone deploy |
evers | Evers configuration (for each WIC clone) |
new_token_version | New tokens update group version |
wrapper_deployers | Wrapper 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_evers | Keep evers, before sending the remaining to WIC->cloneUpgrade (used only for clone-deploy) |
evers | Evers configuration for each WIC clone (empty for original deploy) |
old_token_version | Old token version (empty for original deploy) |
wrapper_deployers | Wrapper deployers (empty for original deploy) |
first_wic | First WIC of the previous WrappersConfig (empty for original deploy) |
last_wic | Last WIC of the previous WrappersConfig (empty for original deploy) |
wic_count | WIC 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_wic | First cloned WIC |
last_wic | Last cloned WIC |
wic_count | WIC count |
◆ unlistWrapper()
void unlistWrapper |
( |
address |
wic | ) |
|
Unlist Wrapper.
- Parameters
-
wic | WIC (WrapperIndexContract) address |
The documentation for this interface was generated from the following file: