Flex
Flex exchange system
Classes | Typedefs
Wrapper.hpp File Reference

Wrapper contract interfaces and data-structs. Wrapper contract performes conversion of external tip3 wallet tokens into flex tip3 wallet tokens. Flex tip3 wallet supports only internal ownership (by some contract), and supports lend ownership to temporary grant ownership of tokens to PriceXchg contract for trading. Macroses TIP3_WALLET_CODE_HASH / TIP3_WALLET_CODE_DEPTH must be defined in compilation (code hash and code depth of FlexWallet). Use tonos-cli to get those values : tonos-cli decode stateinit –tvc FlexWallet.tvc ... "code_hash": "daf8d5fab85a9698fc9546e1beefbe0f1373f24d7980294bf26c0d5793cf1338", "data_hash": "55a703465a160dce20481375de2e5b830c841c2787303835eb5821d62d65ca9d", "code_depth": "20", "data_depth": "1", ... More...

#include "TONTokenWallet.hpp"
#include "WrapperCommon.hpp"
#include "immutable_ids.hpp"
Include dependency graph for Wrapper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

interface  IWrapper
 Wrapper contract interface. More...
 
struct  preparer< IWrapper, DWrapper >
 Prepare Wrapper StateInit structure and expected contract address (hash from StateInit) More...
 

Typedefs

using IWrapperPtr = handle< IWrapper >
 

Detailed Description

Wrapper contract interfaces and data-structs. Wrapper contract performes conversion of external tip3 wallet tokens into flex tip3 wallet tokens. Flex tip3 wallet supports only internal ownership (by some contract), and supports lend ownership to temporary grant ownership of tokens to PriceXchg contract for trading. Macroses TIP3_WALLET_CODE_HASH / TIP3_WALLET_CODE_DEPTH must be defined in compilation (code hash and code depth of FlexWallet). Use tonos-cli to get those values : tonos-cli decode stateinit –tvc FlexWallet.tvc ... "code_hash": "daf8d5fab85a9698fc9546e1beefbe0f1373f24d7980294bf26c0d5793cf1338", "data_hash": "55a703465a160dce20481375de2e5b830c841c2787303835eb5821d62d65ca9d", "code_depth": "20", "data_depth": "1", ...

Author
Andrew Zhogin