Flex
Flex exchange system
fungible Directory Reference
Directory dependency graph for fungible:
fungible

Files

file  RootTokenContract.cpp
 RootTokenContract contract implementation Compiles into two contract versions: RootTokenContract.tvc (for external wallets) and FlexTokenRoot.tvc (for internal wallets). With different macroses. Also, Wrapper contract may be internal wallets root and perform conversion external->internal and back.
 
file  RootTokenContract.hpp [code]
 RootTokenContract contract interfaces and data-structs. Compiles into two contract versions: RootTokenContract.tvc (for external wallets) and FlexTokenRoot.tvc (for internal wallets). With different macroses. Also, Wrapper contract may be internal wallets root and perform conversion external->internal and back.
 
file  TONTokenWallet.cpp
 TONTokenWallet contract implementation Compiles into two contract versions: TONTokenWallet.tvc (external wallet) and FlexWallet.tvc (internal wallet). With different macroses.
 
file  TONTokenWallet.hpp [code]
 TONTokenWallet contract interfaces and data-structs.
 
file  Wrapper.cpp
 Wrapper contract implementation.
 
file  Wrapper.hpp [code]
 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", ...
 
file  WrapperEver.cpp
 WrapperEver contract implementation.
 
file  WrapperEver.hpp [code]
 WrapperEver contract interfaces and data-structs. WrapperEver contract performes conversion of Everscale native tokens (Evers) 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 Price / PriceXchg contracts for trading. Macroses TIP3_WRAPPER_WALLET_CODE_HASH / TIP3_WRAPPER_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", ...