⛔AccessManager
AccessManager contract manages roles and whitelist status related to Vaults contracts.
View Methods
whiteListMode (KYC)
function whiteListMode(address _vaultAddress) external view returns (bool isEnabled)
Returns the KYC mode status of a vault.
Call Parameters:
_vaultAddress
address
address of the vault
Return Value:
bool
true
if the KYC mode is enabled
permissionLessMode
function permissionLessMode() external view returns (bool isEnabled)
Returns the status of the permission-less mode.
Return Value:
bool
true
if the permission-less mode is enabled
getUserAccessInfo
function getUserAccessInfo(address _user)
external
view
returns (
uint256 ownedTokenID,
bool isUserKYC,
IKYCToken.TokenParameters memory _tokenParameters
)
Returns the KYC information for a given user.
Call Parameters:
_user
address
address of the user
Return Values:
ownedTokenID
uint256
KYC token ID
isUserKYC
bool
KYC state of the user
_tokenParameters
IKYCToken.TokenParameters
KYC information of the user
isWhiteListed
function isWhiteListed(address _vault, address _user)
public view returns (bool)
Returns the whitelist status of a given user.
Call Parameters:
_vault
address
address of a vault
_user
address
address of a vault's user
Return Value:
bool
true
if the address is whitelisted
Write Methods
SetPermissionLessMode
function setPermissionLessMode(bool _status) external
Settles the permission-less mode.
Call Parameters:
_status
bool
true
to enable the permission-less mode
SetWhiteListMode (KYC)
function setWhiteListMode(address _vault, bool _status) external
Settles the KYC mode of a vault.
Call Parameters:
_vault
address
address of a vault
_status
bool
true
to enable the KYC mode
SetKYCTokenImp
function setKYCTokenImp(address _newKYCTokenImp) external
Settles the implementation address of the KYCToken.
Call Parameters:
_newKYCTokenImp
address
the address of the contract containing the new implementation
Last updated