Shprd
Search
⌃K

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:
Text
Type
Description
_vaultAddress
address
address of the vault
Return Value:
Type
Description
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:
Type
Description
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:
Name
Type
Description
_user
address
address of the user
Return Values:
Name
Type
Description
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:
Name
Type
Description
_vault
address
address of a vault
_user
address
address of a vault's user
Return Value:
Type
Description
bool
true if the address is whitelisted

Write Methods

SetPermissionLessMode

function setPermissionLessMode(bool _status) external
Settles the permission-less mode.
This method can only be called by address with DEFAULT_ADMIN_ROLE.
Call Parameters:
Name
Type
Description
_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.
This method can only be called by address with DEFAULT_ADMIN_ROLE.
Call Parameters:
Name
Type
Description
_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.
This method can only be called by address with DEFAULT_ADMIN_ROLE.
Call Parameters:
Name
Type
Description
_newKYCTokenImp
address
the address of the contract containing the new implementation
Last modified 5mo ago