Token Vault Contract
Address
Lock and Unlock Functions
Parameter
Description
_tokenAddress
Address of the token locked.
_amount
Number of tokens locked.
_unlockTime
Timestamp number marking when tokens get unlocked.
_withdrawer
Address where tokens can be withdrawn after unlocking.
Function for locking tokens in the vault.
Parameter
Description
_tokenAddress
Address of the token to withdraw.
_index
Index number of the list with Ids.
_id
Id number of the locked item.
_amount
Number of tokens to withdraw.
Function for withdrawing tokens from the vault.
Read-Only Functions
Name
Description
_index
Index number of the list with Item ids.
_tokenAddress
Address of the token corresponding to this Item.
_user
User address.
Function to retrieve data from the Item under user index number.
Name
Description
_user
User address.
_index
Index number.
Function to retrieve token address at desired index for the specified user.
Name
Description
_id
Id number.
Function to retrieve all the data from Item struct under given Id.
Last updated