Flex
Flex exchange system
|
AuthIndex.cpp | AuthIndex contract implementation |
AuthIndex.hpp | AuthIndex contract interfaces and data-structs |
bind_info.hpp | |
dealer.hpp | Class for iterating sell & buy queues and processing tip3/tip3 deals for PriceXchg |
error_code.hpp | Error codes for PriceXchg |
EversConfig.hpp | Flex evers configuration (processing costs) |
Flex.cpp | Flex root contract implementation |
Flex.hpp | Flex root contract interfaces and data-structs |
FlexClient.cpp | FlexClient contract implementation |
FlexClient.hpp | FlexClient contract interfaces and data-structs |
FlexClientStub.cpp | FlexClientStub contract implementation |
FlexClientStub.hpp | FlexClientStub contract interfaces and data-structs |
FlexClientTestUpdate.cpp | FlexClientTestUpdate contract implementation |
FlexClientTestUpdate.hpp | FlexClientTestUpdate contract interfaces and data-structs |
FlexSalt.hpp | Flex contract configuration structure (stored in code salt) |
FlexTransferPayloadArgs.hpp | Flex transfer payload args structure |
FlexVersion.hpp | Flex version structure |
GlobalConfig.cpp | GlobalConfig contract implementation |
GlobalConfig.hpp | GlobalConfig contract interfaces and data-structs |
immutable_ids.hpp | |
orders_queue.hpp | Class for orders queue for PriceXchg |
PairCloneEvers.hpp | Pair clone evers configuration structure |
PriceCommon.hpp | Price common interfaces and data-structs |
PriceXchg.cpp | PriceXchg contract implementation. Contract for trading price for tip3/tip3 exchange. First tip3 in a pair is major and terms "sell", "buy", "amount" are related to the first tip3 in pair. Second tip3 is called "minor" |
PriceXchg.hpp | PriceXchg contract interfaces and data-structs PriceXchg - contract to enqueue and process tip3-tip3 exchange orders at a specific price |
PriceXchgSalt.hpp | PriceXchgSalt - configuration structure for PriceXchg (stored in code salt) |
process_queue_state.hpp | Class for keeping iteration state for PriceXchg |
RationalValue.hpp | Flex rational price (numerator / denominator) |
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 |
RootTokenContract.hpp | 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 |
SuperRoot.cpp | SuperRoot contract implementation |
SuperRoot.hpp | SuperRoot contract interfaces and data-structs |
SuperRootOwner.cpp | SuperRootOwner (single owner) contract implementation |
SuperRootOwner.hpp | SuperRootOwner (single owner) contract interfaces and data-structs |
TONTokenWallet.cpp | TONTokenWallet contract implementation Compiles into two contract versions: TONTokenWallet.tvc (external wallet) and FlexWallet.tvc (internal wallet). With different macroses |
TONTokenWallet.hpp | TONTokenWallet contract interfaces and data-structs |
UserDataConfig.cpp | UserDataConfig contract implementation |
UserDataConfig.hpp | UserDataConfig contract interfaces and data-structs |
UserIdIndex.cpp | UserIdIndex contract implementation |
UserIdIndex.hpp | UserIdIndex contract interfaces and data-structs |
WIC.cpp | Wrapper Index Contract implementation |
WIC.hpp | Wrapper Index Contract interfaces and data-structs |
WICCloneEvers.hpp | WIC clone evers configuration structure |
Wrapper.cpp | Wrapper contract implementation |
Wrapper.hpp | 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", .. |
WrapperEver.cpp | WrapperEver contract implementation |
WrapperEver.hpp | 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", .. |
WrappersConfig.cpp | WrappersConfig contract implementation |
WrappersConfig.hpp | WrappersConfig contract interfaces and data-structs |
xchg_iterator.hpp | Exchange orders iterator for PriceXchg |
XchgPair.cpp | Exchange pair contract implementation |
XchgPair.hpp | Exchange pair (tip3/tip3) contract interfaces and data-structs. XchgPair - contract defining tip3/tip3 exchange pair. May only be deployed by Flex root contract |
XchgPairSalt.hpp | Exchange pair (XchgPair) configuration structure (stored in code salt) |