#
TokenizedVaultIOFacet
Inherits: Modifiers, ReentrancyGuard
External interface to the Token Vault
Used for external transfers. Adaptation of ERC-1155 that uses AppStorage and aligns with Nayms ACL implementation. https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155
#
Functions
#
externalDeposit
Deposit funds into msg.sender's Nayms platform entity
Deposit from msg.sender to their associated entity
function externalDeposit(address _externalTokenAddress, uint256 _amount)
external
notLocked(msg.sig)
nonReentrant
assertPrivilege(LibObject._getParentFromAddress(msg.sender), LC.GROUP_EXTERNAL_DEPOSIT);
Parameters
#
externalWithdrawFromEntity
Withdraw funds out of Nayms platform
Withdraw from entity to an external account
function externalWithdrawFromEntity(
bytes32 _entityId,
address _receiver,
address _externalTokenAddress,
uint256 _amount
)
external
notLocked(msg.sig)
nonReentrant
assertPrivilege(LibObject._getParentFromAddress(msg.sender), LC.GROUP_EXTERNAL_WITHDRAW_FROM_ENTITY);
Parameters