|
Flex
Flex exchange system
|
FlexClient is client contract for Flex. More...
#include <FlexClient.hpp>
Public Member Functions | |
| address | deployPriceXchg (bool sell, bool immediate_client, bool post_order, uint128 price_num, uint128 amount, uint128 lend_amount, uint32 lend_finish_time, uint128 evers, cell unsalted_price_code, cell price_salt, address my_tip3_addr, uint256 user_id, uint256 order_id) |
| Deploy tip3-tip3 PriceXchg contract with sell or buy order. More... | |
| void | cancelXchgOrder (bool sell, uint128 price_num, uint128 value, cell salted_price_code, opt< uint256 > user_id, opt< uint256 > order_id) |
| Cancel tip3-tip sell or buy order. More... | |
| void | transfer (address dest, uint128 value, bool bounce) |
| Transfer evers. More... | |
| void | transferTokens (address src, Tip3Creds dst, uint128 tokens, uint128 evers, uint128 keep_evers) |
| Transfer tokens. More... | |
| address | deployEmptyFlexWallet (uint256 pubkey, uint128 evers_to_wallet, Tip3Config tip3cfg, uint256 trader, cell flex_wallet_code) |
| Deploy an empty flex tip3 token wallet, owned by FlexClient contract. More... | |
| void | deployIndex (uint256 user_id, uint256 lend_pubkey, string name, uint128 evers_all, uint128 evers_to_auth_idx, uint128 refill_wallet, uint128 min_refill) |
| Deploy UserIdIndex contract. More... | |
| void | reBindWallets (uint256 user_id, bool set_binding, opt< bind_info > binding, bool set_trader, opt< uint256 > trader, dict_array< address > wallets, uint128 evers_relend_call, uint128 evers_each_wallet_call, uint128 evers_to_remove, uint128 evers_to_auth_idx) |
| void | destroyIndex (uint256 user_id, uint128 evers) |
| Remove UserIdIndex contract. More... | |
| void | burnWallet (uint128 evers_value, uint256 out_pubkey, address_opt out_owner, address my_tip3_addr, opt< cell > notify) |
| To convert flex tip3 tokens back to external tip3 tokens (with destruction of the wallet). More... | |
| void | burnThemAll (uint128 burn_ev, dict_array< BurnInfo > burns) |
| To convert many flex tip3 tokens back to external tip3 tokens (with destruction of the wallets). More... | |
| void | continueBurnThemAll () |
| Will send to itself from burnThemAll if wallets are more than 255. | |
| void | cancelThemAll (uint128 cancel_ev, dict_array< address > prices) |
| To cancel all orders for the provided wallets. More... | |
| void | continueCancelThemAll () |
| Will send to itself from cancelThemAll if prices are more than 255 / 2 (we need two messages per price) | |
| void | unwrapWallet (uint128 evers_value, uint256 out_pubkey, address_opt out_owner, address my_tip3_addr, uint128 tokens, opt< cell > notify) |
| To convert some flex tip3 tokens back to external tip3 tokens. More... | |
| void | bindWallet (uint128 evers, address my_tip3_addr, bool set_binding, opt< bind_info > binding, bool set_trader, opt< uint256 > trader) |
| Bind trading wallet to a specific flex and PriceXchg code hash and set trader (lend pubkey) More... | |
| resumable< void > | onTip3Transfer (uint128 balance, uint128 new_tokens, uint128 evers_balance, Tip3Config tip3cfg, opt< Tip3Creds > sender, Tip3Creds receiver, cell payload, address answer_addr) |
| resumable< void > | upgrade (uint128 request_evers, address user_data_cfg) |
| Upgrade FlexClient to the specific UserDataConfig. More... | |
| cell | getPayloadForDeployInternalWallet (uint256 owner_pubkey, address_opt owner_addr, uint128 evers, uint128 keep_evers) |
| cell | getPayloadForEverReTransferArgs (uint128 wallet_deploy_evers, uint128 wallet_keep_evers) |
| Prepare payload for burn for WrapperEver -> WrapperEver transfer (EverReTransferArgs struct) More... | |
| address | getPriceXchgAddress (uint128 price_num, cell salted_price_code) |
| Get PriceXchg address. More... | |
| address | getUserIdIndex (uint256 user_id) |
| Return UserIdIndex address. More... | |
| FlexClientDetails | getDetails () |
| Get contract state details. | |
| address | deployPriceXchg (bool sell, bool immediate_client, bool post_order, uint128 price_num, uint128 amount, uint128 lend_amount, uint32 lend_finish_time, uint128 evers, cell unsalted_price_code, cell price_salt, address my_tip3_addr, uint256 user_id, uint256 order_id) |
| Deploy tip3-tip3 PriceXchg contract with sell or buy order. More... | |
| void | cancelXchgOrder (bool sell, uint128 price_num, uint128 value, cell salted_price_code, opt< uint256 > user_id, opt< uint256 > order_id) |
| Cancel tip3-tip sell or buy order. More... | |
| void | transfer (address dest, uint128 value, bool bounce) |
| Transfer evers. More... | |
| void | transferTokens (address src, Tip3Creds dst, uint128 tokens, uint128 evers, uint128 keep_evers) |
| Transfer tokens. More... | |
| address | deployEmptyFlexWallet (uint256 pubkey, uint128 evers_to_wallet, Tip3Config tip3cfg, uint256 trader, cell flex_wallet_code) |
| Deploy an empty flex tip3 token wallet, owned by FlexClient contract. More... | |
| void | deployIndex (uint256 user_id, uint256 lend_pubkey, string name, uint128 evers_all, uint128 evers_to_auth_idx, uint128 refill_wallet, uint128 min_refill) |
| Deploy UserIdIndex contract. More... | |
| void | reBindWallets (uint256 user_id, bool set_binding, opt< bind_info > binding, bool set_trader, opt< uint256 > trader, dict_array< address > wallets, uint128 evers_relend_call, uint128 evers_each_wallet_call, uint128 evers_to_remove, uint128 evers_to_auth_idx) |
| void | destroyIndex (uint256 user_id, uint128 evers) |
| Remove UserIdIndex contract. More... | |
| void | burnWallet (uint128 evers_value, uint256 out_pubkey, address_opt out_owner, address my_tip3_addr, opt< cell > notify) |
| To convert flex tip3 tokens back to external tip3 tokens (with destruction of the wallet). More... | |
| void | burnThemAll (uint128 burn_ev, dict_array< BurnInfo > burns) |
| To convert many flex tip3 tokens back to external tip3 tokens (with destruction of the wallets). More... | |
| void | continueBurnThemAll () |
| Will send to itself from burnThemAll if wallets are more than 255. | |
| void | unwrapWallet (uint128 evers_value, uint256 out_pubkey, address_opt out_owner, address my_tip3_addr, uint128 tokens, opt< cell > notify) |
| To convert some flex tip3 tokens back to external tip3 tokens. More... | |
| void | bindWallet (uint128 evers, address my_tip3_addr, bool set_binding, opt< bind_info > binding, bool set_trader, opt< uint256 > trader) |
| Bind trading wallet to a specific flex and PriceXchg code hash and set trader (lend pubkey) More... | |
| resumable< void > | onTip3Transfer (uint128 balance, uint128 new_tokens, uint128 evers_balance, Tip3Config tip3cfg, opt< Tip3Creds > sender, Tip3Creds receiver, cell payload, address answer_addr) |
| resumable< void > | upgrade (uint128 request_evers, address user_data_cfg) |
| Upgrade FlexClient to the specific UserDataConfig. More... | |
| cell | getPayloadForDeployInternalWallet (uint256 owner_pubkey, address_opt owner_addr, uint128 evers, uint128 keep_evers) |
| cell | getPayloadForEverReTransferArgs (uint128 wallet_deploy_evers, uint128 wallet_keep_evers) |
| Prepare payload for burn for WrapperEver -> WrapperEver transfer (EverReTransferArgs struct) More... | |
| address | getPriceXchgAddress (uint128 price_num, cell salted_price_code) |
| Get PriceXchg address. More... | |
| address | getUserIdIndex (uint256 user_id) |
| Return UserIdIndex address. More... | |
| FlexClientDetails | getDetails () |
| Get contract state details. | |
| uint32 | getTestValue () |
| Get Test value. | |
FlexClient is client contract for Flex.
FlexClient keeps ownership of flex token wallets. Keeps/spends evers balance for processing. Makes orders.
| void bindWallet | ( | uint128 | evers, |
| address | my_tip3_addr, | ||
| bool | set_binding, | ||
| opt< bind_info > | binding, | ||
| bool | set_trader, | ||
| opt< uint256 > | trader | ||
| ) |
Bind trading wallet to a specific flex and PriceXchg code hash and set trader (lend pubkey)
| evers | Processing evers |
| my_tip3_addr | Address of flex tip3 token wallet |
| set_binding | Set binding |
| binding | if `set_binding` is true, binding will be set |
| set_trader | Set trader |
| trader | if `set_trader` is true, trader (lend pubkey) will be set |
| void bindWallet | ( | uint128 | evers, |
| address | my_tip3_addr, | ||
| bool | set_binding, | ||
| opt< bind_info > | binding, | ||
| bool | set_trader, | ||
| opt< uint256 > | trader | ||
| ) |
Bind trading wallet to a specific flex and PriceXchg code hash and set trader (lend pubkey)
| evers | Processing evers |
| my_tip3_addr | Address of flex tip3 token wallet |
| set_binding | Set binding |
| binding | if `set_binding` is true, binding will be set |
| set_trader | Set trader |
| trader | if `set_trader` is true, trader (lend pubkey) will be set |
| void burnThemAll | ( | uint128 | burn_ev, |
| dict_array< BurnInfo > | burns | ||
| ) |
To convert many flex tip3 tokens back to external tip3 tokens (with destruction of the wallets).
| burn_ev | Processing evers for each wallet `burn` call |
| burns | Array of burn parameters for each wallet |
| void burnThemAll | ( | uint128 | burn_ev, |
| dict_array< BurnInfo > | burns | ||
| ) |
To convert many flex tip3 tokens back to external tip3 tokens (with destruction of the wallets).
| burn_ev | Processing evers for each wallet `burn` call |
| burns | Array of burn parameters for each wallet |
| void burnWallet | ( | uint128 | evers_value, |
| uint256 | out_pubkey, | ||
| address_opt | out_owner, | ||
| address | my_tip3_addr, | ||
| opt< cell > | notify | ||
| ) |
To convert flex tip3 tokens back to external tip3 tokens (with destruction of the wallet).
| evers_value | Processing evers |
| out_pubkey | Public key for external wallet (out) |
| out_owner | Internal (contract) owner for external wallet (out) |
| my_tip3_addr | Address of flex tip3 token wallet to burn (convert to external tokens) |
| notify | Notification payload to the destination wallet's owner (or EverReTransferArgs for (old WrapperEver)->(new WrapperEver) transfer) |
| void burnWallet | ( | uint128 | evers_value, |
| uint256 | out_pubkey, | ||
| address_opt | out_owner, | ||
| address | my_tip3_addr, | ||
| opt< cell > | notify | ||
| ) |
To convert flex tip3 tokens back to external tip3 tokens (with destruction of the wallet).
| evers_value | Processing evers |
| out_pubkey | Public key for external wallet (out) |
| out_owner | Internal (contract) owner for external wallet (out) |
| my_tip3_addr | Address of flex tip3 token wallet to burn (convert to external tokens) |
| notify | Notification payload to the destination wallet's owner (or EverReTransferArgs for (old WrapperEver)->(new WrapperEver) transfer) |
| void cancelThemAll | ( | uint128 | cancel_ev, |
| dict_array< address > | prices | ||
| ) |
To cancel all orders for the provided wallets.
| cancel_ev | Processing evers for each price `cancelOrder` call. Two such calls for each price (cancel sells and cancel buys). |
| prices | Array of PriceXchg addresses |
| void cancelXchgOrder | ( | bool | sell, |
| uint128 | price_num, | ||
| uint128 | value, | ||
| cell | salted_price_code, | ||
| opt< uint256 > | user_id, | ||
| opt< uint256 > | order_id | ||
| ) |
Cancel tip3-tip sell or buy order.
| sell | Is it a sell order |
| price_num | Price numerator for rational price value |
| value | Processing evers |
| salted_price_code | Code of PriceXchg contract (salted) |
| user_id | Is user_id is specified, only orders with this user_id will be canceled |
| order_id | Is order_id is specified, only orders with this order_id will be canceled |
| void cancelXchgOrder | ( | bool | sell, |
| uint128 | price_num, | ||
| uint128 | value, | ||
| cell | salted_price_code, | ||
| opt< uint256 > | user_id, | ||
| opt< uint256 > | order_id | ||
| ) |
Cancel tip3-tip sell or buy order.
| sell | Is it a sell order |
| price_num | Price numerator for rational price value |
| value | Processing evers |
| salted_price_code | Code of PriceXchg contract (salted) |
| user_id | Is user_id is specified, only orders with this user_id will be canceled |
| order_id | Is order_id is specified, only orders with this order_id will be canceled |
| address deployEmptyFlexWallet | ( | uint256 | pubkey, |
| uint128 | evers_to_wallet, | ||
| Tip3Config | tip3cfg, | ||
| uint256 | trader, | ||
| cell | flex_wallet_code | ||
| ) |
Deploy an empty flex tip3 token wallet, owned by FlexClient contract.
| pubkey | Public key (for identification only) |
| evers_to_wallet | Evers to the wallet |
| tip3cfg | Tip3 token configuration |
| trader | Trader (lend pubkey) info for `bind` call |
| flex_wallet_code | Flex wallet code |
| address deployEmptyFlexWallet | ( | uint256 | pubkey, |
| uint128 | evers_to_wallet, | ||
| Tip3Config | tip3cfg, | ||
| uint256 | trader, | ||
| cell | flex_wallet_code | ||
| ) |
Deploy an empty flex tip3 token wallet, owned by FlexClient contract.
| pubkey | Public key (for identification only) |
| evers_to_wallet | Evers to the wallet |
| tip3cfg | Tip3 token configuration |
| trader | Trader (lend pubkey) info for `bind` call |
| flex_wallet_code | Flex wallet code |
| void deployIndex | ( | uint256 | user_id, |
| uint256 | lend_pubkey, | ||
| string | name, | ||
| uint128 | evers_all, | ||
| uint128 | evers_to_auth_idx, | ||
| uint128 | refill_wallet, | ||
| uint128 | min_refill | ||
| ) |
Deploy UserIdIndex contract.
| user_id | User id |
| lend_pubkey | Lend public key |
| name | User name (encoded) |
| evers_all | Evers for all processing: UserIdIndex deploy and included AuthIndex deploy |
| evers_to_auth_idx | Evers to AuthIndex deploy |
| refill_wallet | Re-fill wallet on transfer received |
| min_refill | Minimum refill value |
| void deployIndex | ( | uint256 | user_id, |
| uint256 | lend_pubkey, | ||
| string | name, | ||
| uint128 | evers_all, | ||
| uint128 | evers_to_auth_idx, | ||
| uint128 | refill_wallet, | ||
| uint128 | min_refill | ||
| ) |
Deploy UserIdIndex contract.
| user_id | User id |
| lend_pubkey | Lend public key |
| name | User name (encoded) |
| evers_all | Evers for all processing: UserIdIndex deploy and included AuthIndex deploy |
| evers_to_auth_idx | Evers to AuthIndex deploy |
| refill_wallet | Re-fill wallet on transfer received |
| min_refill | Minimum refill value |
| address deployPriceXchg | ( | bool | sell, |
| bool | immediate_client, | ||
| bool | post_order, | ||
| uint128 | price_num, | ||
| uint128 | amount, | ||
| uint128 | lend_amount, | ||
| uint32 | lend_finish_time, | ||
| uint128 | evers, | ||
| cell | unsalted_price_code, | ||
| cell | price_salt, | ||
| address | my_tip3_addr, | ||
| uint256 | user_id, | ||
| uint256 | order_id | ||
| ) |
Deploy tip3-tip3 PriceXchg contract with sell or buy order.
| sell | Is it a sell order |
| immediate_client | Should this order try to be executed as a client order first (find existing corresponding orders). |
| post_order | Should this order be enqueued if it doesn't already have corresponding orders. |
| price_num | Price numerator for rational price value |
| amount | Amount of major tip3 tokens to sell or buy |
| lend_amount | Lend amount. For sell, it should be amount of major tokens, for buy - minor. |
| lend_finish_time | Lend finish time (order finish time also will be lend_finish_time - safe_period) |
| evers | Processing evers |
| unsalted_price_code | Unsalted PriceXchg code |
| price_salt | PriceXchg code salt (configuration) |
| my_tip3_addr | Address of flex tip3 token wallet to provide tokens |
| user_id | User id |
| order_id | Order id |
| address deployPriceXchg | ( | bool | sell, |
| bool | immediate_client, | ||
| bool | post_order, | ||
| uint128 | price_num, | ||
| uint128 | amount, | ||
| uint128 | lend_amount, | ||
| uint32 | lend_finish_time, | ||
| uint128 | evers, | ||
| cell | unsalted_price_code, | ||
| cell | price_salt, | ||
| address | my_tip3_addr, | ||
| uint256 | user_id, | ||
| uint256 | order_id | ||
| ) |
Deploy tip3-tip3 PriceXchg contract with sell or buy order.
| sell | Is it a sell order |
| immediate_client | Should this order try to be executed as a client order first (find existing corresponding orders). |
| post_order | Should this order be enqueued if it doesn't already have corresponding orders. |
| price_num | Price numerator for rational price value |
| amount | Amount of major tip3 tokens to sell or buy |
| lend_amount | Lend amount. For sell, it should be amount of major tokens, for buy - minor. |
| lend_finish_time | Lend finish time (order finish time also will be lend_finish_time - safe_period) |
| evers | Processing evers |
| unsalted_price_code | Unsalted PriceXchg code |
| price_salt | PriceXchg code salt (configuration) |
| my_tip3_addr | Address of flex tip3 token wallet to provide tokens |
| user_id | User id |
| order_id | Order id |
| void destroyIndex | ( | uint256 | user_id, |
| uint128 | evers | ||
| ) |
Remove UserIdIndex contract.
| user_id | User id |
| evers | Evers to send to `UserIdIndex->remove`, inside - to `AuthIndex->remove`. The remaining will return. |
| void destroyIndex | ( | uint256 | user_id, |
| uint128 | evers | ||
| ) |
Remove UserIdIndex contract.
| user_id | User id |
| evers | Evers to send to `UserIdIndex->remove`, inside - to `AuthIndex->remove`. The remaining will return. |
| cell getPayloadForDeployInternalWallet | ( | uint256 | owner_pubkey, |
| address_opt | owner_addr, | ||
| uint128 | evers, | ||
| uint128 | keep_evers | ||
| ) |
Prepare payload for transferWithNotify call from external wallet to wrapper's wallet to deploy flex internal wallet
| owner_pubkey | Owner's public key |
| owner_addr | Owner's internal address (contract) |
| evers | Processing evers |
| keep_evers | Evers to keep in the wallet |
| cell getPayloadForDeployInternalWallet | ( | uint256 | owner_pubkey, |
| address_opt | owner_addr, | ||
| uint128 | evers, | ||
| uint128 | keep_evers | ||
| ) |
Prepare payload for transferWithNotify call from external wallet to wrapper's wallet to deploy flex internal wallet
| owner_pubkey | Owner's public key |
| owner_addr | Owner's internal address (contract) |
| evers | Processing evers |
| keep_evers | Evers to keep in the wallet |
| cell getPayloadForEverReTransferArgs | ( | uint128 | wallet_deploy_evers, |
| uint128 | wallet_keep_evers | ||
| ) |
Prepare payload for burn for WrapperEver -> WrapperEver transfer (EverReTransferArgs struct)
| wallet_deploy_evers | Evers to be sent to the deployable wallet. |
| wallet_keep_evers | Evers to be kept in the deployable wallet. |
| cell getPayloadForEverReTransferArgs | ( | uint128 | wallet_deploy_evers, |
| uint128 | wallet_keep_evers | ||
| ) |
Prepare payload for burn for WrapperEver -> WrapperEver transfer (EverReTransferArgs struct)
| wallet_deploy_evers | Evers to be sent to the deployable wallet. |
| wallet_keep_evers | Evers to be kept in the deployable wallet. |
| address getPriceXchgAddress | ( | uint128 | price_num, |
| cell | salted_price_code | ||
| ) |
| address getPriceXchgAddress | ( | uint128 | price_num, |
| cell | salted_price_code | ||
| ) |
| address getUserIdIndex | ( | uint256 | user_id | ) |
Return UserIdIndex address.
| user_id | User id |
| address getUserIdIndex | ( | uint256 | user_id | ) |
Return UserIdIndex address.
| user_id | User id |
| resumable<void> onTip3Transfer | ( | uint128 | balance, |
| uint128 | new_tokens, | ||
| uint128 | evers_balance, | ||
| Tip3Config | tip3cfg, | ||
| opt< Tip3Creds > | sender, | ||
| Tip3Creds | receiver, | ||
| cell | payload, | ||
| address | answer_addr | ||
| ) |
Implementation of ITONTokenWalletNotify::onTip3Transfer. Notification from tip3 wallet to its owner contract about received tokens transfer.
| balance | New balance of the wallet. |
| new_tokens | Amount of tokens received in transfer. |
| evers_balance | Evers balance of the wallet. |
| tip3cfg | Tip3 config. |
| sender | Sender wallet's credentials (pubkey + owner). Empty if mint received from root/wrapper. |
| receiver | Receiver wallet's credentials (pubkey + owner). |
| payload | Payload (must be FlexTransferPayloadArgs). |
| answer_addr | Answer address (to receive answer and the remaining processing evers). |
| resumable<void> onTip3Transfer | ( | uint128 | balance, |
| uint128 | new_tokens, | ||
| uint128 | evers_balance, | ||
| Tip3Config | tip3cfg, | ||
| opt< Tip3Creds > | sender, | ||
| Tip3Creds | receiver, | ||
| cell | payload, | ||
| address | answer_addr | ||
| ) |
Implementation of ITONTokenWalletNotify::onTip3Transfer. Notification from tip3 wallet to its owner contract about received tokens transfer.
| balance | New balance of the wallet. |
| new_tokens | Amount of tokens received in transfer. |
| evers_balance | Evers balance of the wallet. |
| tip3cfg | Tip3 config. |
| sender | Sender wallet's credentials (pubkey + owner). Empty if mint received from root/wrapper. |
| receiver | Receiver wallet's credentials (pubkey + owner). |
| payload | Payload (must be FlexTransferPayloadArgs). |
| answer_addr | Answer address (to receive answer and the remaining processing evers). |
| void reBindWallets | ( | uint256 | user_id, |
| bool | set_binding, | ||
| opt< bind_info > | binding, | ||
| bool | set_trader, | ||
| opt< uint256 > | trader, | ||
| dict_array< address > | wallets, | ||
| uint128 | evers_relend_call, | ||
| uint128 | evers_each_wallet_call, | ||
| uint128 | evers_to_remove, | ||
| uint128 | evers_to_auth_idx | ||
| ) |
Change lend_pubkey into UserIdIndex contract(call UserIdIndex.reLendPubkey) if set_trader & trader. Call bind(set_binding, binding, set_trader, trader) for every wallet from wallets.
| user_id | User id |
| set_binding | Set binding |
| binding | If `set_binding` is true, binding will be set into wallets |
| set_trader | Set trader |
| trader | If `set_trader` is true, trader (lend pubkey) will be set into wallets and UserIdIndex |
| wallets | Array of wallet addresses |
| evers_relend_call | Evers for `UserIdIndex->reLendPubkey` call |
| evers_each_wallet_call | Evers for each `FlexWallet->lendOwnershipPubkey` call |
| evers_to_remove | Evers to send in `AuthIndex->remove` call inside `UserIdIndex->reLendPubkey` |
| evers_to_auth_idx | Evers to send in new AuthIndex deploy call inside `UserIdIndex->reLendPubkey` |
| void reBindWallets | ( | uint256 | user_id, |
| bool | set_binding, | ||
| opt< bind_info > | binding, | ||
| bool | set_trader, | ||
| opt< uint256 > | trader, | ||
| dict_array< address > | wallets, | ||
| uint128 | evers_relend_call, | ||
| uint128 | evers_each_wallet_call, | ||
| uint128 | evers_to_remove, | ||
| uint128 | evers_to_auth_idx | ||
| ) |
Change lend_pubkey into UserIdIndex contract(call UserIdIndex.reLendPubkey) if set_trader & trader. Call bind(set_binding, binding, set_trader, trader) for every wallet from wallets.
| user_id | User id |
| set_binding | Set binding |
| binding | If `set_binding` is true, binding will be set into wallets |
| set_trader | Set trader |
| trader | If `set_trader` is true, trader (lend pubkey) will be set into wallets and UserIdIndex |
| wallets | Array of wallet addresses |
| evers_relend_call | Evers for `UserIdIndex->reLendPubkey` call |
| evers_each_wallet_call | Evers for each `FlexWallet->lendOwnershipPubkey` call |
| evers_to_remove | Evers to send in `AuthIndex->remove` call inside `UserIdIndex->reLendPubkey` |
| evers_to_auth_idx | Evers to send in new AuthIndex deploy call inside `UserIdIndex->reLendPubkey` |
| void transfer | ( | address | dest, |
| uint128 | value, | ||
| bool | bounce | ||
| ) |
Transfer evers.
| dest | Destination address |
| value | Amount of evers |
| bounce | Bounce flag |
| void transfer | ( | address | dest, |
| uint128 | value, | ||
| bool | bounce | ||
| ) |
Transfer evers.
| dest | Destination address |
| value | Amount of evers |
| bounce | Bounce flag |
| void transferTokens | ( | address | src, |
| Tip3Creds | dst, | ||
| uint128 | tokens, | ||
| uint128 | evers, | ||
| uint128 | keep_evers | ||
| ) |
Transfer tokens.
| src | Source address |
| dst | Destination credentials (pubkey + owner) |
| tokens | Amount of tokens |
| evers | Amount of processing evers |
| keep_evers | Evers to keep in destination wallet |
| void transferTokens | ( | address | src, |
| Tip3Creds | dst, | ||
| uint128 | tokens, | ||
| uint128 | evers, | ||
| uint128 | keep_evers | ||
| ) |
Transfer tokens.
| src | Source address |
| dst | Destination credentials (pubkey + owner) |
| tokens | Amount of tokens |
| evers | Amount of processing evers |
| keep_evers | Evers to keep in destination wallet |
| void unwrapWallet | ( | uint128 | evers_value, |
| uint256 | out_pubkey, | ||
| address_opt | out_owner, | ||
| address | my_tip3_addr, | ||
| uint128 | tokens, | ||
| opt< cell > | notify | ||
| ) |
To convert some flex tip3 tokens back to external tip3 tokens.
| evers_value | Processing evers |
| out_pubkey | Public key for external wallet (out) |
| out_owner | Internal (contract) owner for external wallet (out) |
| my_tip3_addr | Address of flex tip3 token wallet to burn (convert to external tokens) |
| tokens | Tokens amount to unwrap (withdraw) |
| notify | Notification payload to the destination wallet's owner (or EverReTransferArgs for (old WrapperEver)->(new WrapperEver) transfer) |
| void unwrapWallet | ( | uint128 | evers_value, |
| uint256 | out_pubkey, | ||
| address_opt | out_owner, | ||
| address | my_tip3_addr, | ||
| uint128 | tokens, | ||
| opt< cell > | notify | ||
| ) |
To convert some flex tip3 tokens back to external tip3 tokens.
| evers_value | Processing evers |
| out_pubkey | Public key for external wallet (out) |
| out_owner | Internal (contract) owner for external wallet (out) |
| my_tip3_addr | Address of flex tip3 token wallet to burn (convert to external tokens) |
| tokens | Tokens amount to unwrap (withdraw) |
| notify | Notification payload to the destination wallet's owner (or EverReTransferArgs for (old WrapperEver)->(new WrapperEver) transfer) |
| resumable<void> upgrade | ( | uint128 | request_evers, |
| address | user_data_cfg | ||
| ) |
Upgrade FlexClient to the specific UserDataConfig.
| request_evers | Evers to send in UserDataConfig::requestDetails() |
| user_data_cfg | UserDataConfig address |
| resumable<void> upgrade | ( | uint128 | request_evers, |
| address | user_data_cfg | ||
| ) |
Upgrade FlexClient to the specific UserDataConfig.
| request_evers | Evers to send in UserDataConfig::requestDetails() |
| user_data_cfg | UserDataConfig address |