UserIdIndex contract interface. There is no way to understand which wallets were created for some FlexClient. So we need UserID Index for it. This contract contains FlexClient address in code salt and we can find all such contracts for specified FlexClient by code hash. It can be deployed only by its corresponding FlexClient.
More...
#include <UserIdIndex.hpp>
|
void | onDeploy (uint256 lend_pubkey, string name, uint128 evers_to_auth_idx, uint128 refill_wallet, uint128 min_refill) |
| Check that msg.sender is an owner (from configuration salt). Deploy AuthIndex with lend_pubkey. More...
|
|
void | reLendPubkey (uint256 new_lend_pubkey, uint128 evers_to_remove, uint128 evers_to_auth_idx) |
| Remove AuthIndex with lend_pubkey. Deploy AuthIndex with new_lend_pubkey. Set lend_pubkey = new_lend_pubkey. More...
|
|
void | remove () |
|
uint256 | requestLendPubkey (uint128 evers_balance) |
| Request lend pubkey (current app pubkey). More...
|
|
void | transfer (address dest, uint128 value, bool bounce) |
| Transfer evers. More...
|
|
void | setRefillWallet (uint128 refill_wallet, uint128 min_refill) |
| Set re-fill wallet value. More...
|
|
UserIdIndexSalt | getConfig () |
| Get config from code salt.
|
|
UserIdIndex contract interface. There is no way to understand which wallets were created for some FlexClient. So we need UserID Index for it. This contract contains FlexClient address in code salt and we can find all such contracts for specified FlexClient by code hash. It can be deployed only by its corresponding FlexClient.
◆ onDeploy()
void onDeploy |
( |
uint256 |
lend_pubkey, |
|
|
string |
name, |
|
|
uint128 |
evers_to_auth_idx, |
|
|
uint128 |
refill_wallet, |
|
|
uint128 |
min_refill |
|
) |
| |
Check that msg.sender is an owner (from configuration salt). Deploy AuthIndex with lend_pubkey.
- Parameters
-
lend_pubkey | Lend public key |
name | User name (encoded) |
evers_to_auth_idx | Evers to AuthIndex deploy |
refill_wallet | Re-fill wallet on transfer received |
min_refill | Minimum refill value |
◆ reLendPubkey()
void reLendPubkey |
( |
uint256 |
new_lend_pubkey, |
|
|
uint128 |
evers_to_remove, |
|
|
uint128 |
evers_to_auth_idx |
|
) |
| |
Remove AuthIndex with lend_pubkey. Deploy AuthIndex with new_lend_pubkey. Set lend_pubkey = new_lend_pubkey.
- Parameters
-
new_lend_pubkey | New lend public key |
evers_to_remove | Evers for `AuthIndex->remove` call. The remaining will return to the caller (FlexClient). |
evers_to_auth_idx | Evers for new AuthIndex deploy. |
◆ remove()
Remove AuthIndex with lend_pubkey. Redirects the rest of message evers to AuthIndex->remove
call. AuthIndex will return the remaining to this method caller (FlexClient).
◆ requestLendPubkey()
uint256 requestLendPubkey |
( |
uint128 |
evers_balance | ) |
|
Request lend pubkey (current app pubkey).
- Parameters
-
evers_balance | Evers balance of the wallet |
◆ setRefillWallet()
void setRefillWallet |
( |
uint128 |
refill_wallet, |
|
|
uint128 |
min_refill |
|
) |
| |
Set re-fill wallet
value.
- Parameters
-
refill_wallet | Re-fill wallet on transfer received |
min_refill | Minimum refill value |
◆ transfer()
void transfer |
( |
address |
dest, |
|
|
uint128 |
value, |
|
|
bool |
bounce |
|
) |
| |
Transfer evers.
- Parameters
-
dest | Destination address |
value | Amount of evers |
bounce | Bounce flag |
The documentation for this interface was generated from the following file: