Flex
Flex exchange system
|
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...
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 > |
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", ...