#
AdminFacet
Inherits: Modifiers
Exposes methods that require administrative privileges
Use it to configure various core parameters
#
Functions
#
setMaxDividendDenominations
Set _newMax
as the max dividend denominations value.
function setMaxDividendDenominations(uint8 _newMax)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
getMaxDividendDenominations
Get the max dividend denominations value
function getMaxDividendDenominations() external view returns (uint8);
Returns
#
isSupportedExternalToken
Is the specified tokenId an external ERC20 that is supported by the Nayms platform?
function isSupportedExternalToken(bytes32 _tokenId) external view returns (bool);
Parameters
Returns
#
addSupportedExternalToken
Add another token to the supported tokens list
function addSupportedExternalToken(address _tokenAddress, uint256 _minimumSell)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
getSupportedExternalTokens
Get the supported tokens list as an array
function getSupportedExternalTokens() external view returns (address[] memory);
Returns
#
getSystemId
Gets the System context ID.
function getSystemId() external pure returns (bytes32);
Returns
#
isObjectTokenizable
Check if object can be tokenized
function isObjectTokenizable(bytes32 _objectId) external view returns (bool);
Parameters
#
lockFunction
System Admin can lock a function
This toggles FunctionLockedStorage.lock to true
function lockFunction(bytes4 functionSelector)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
unlockFunction
System Admin can unlock a function
This toggles FunctionLockedStorage.lock to false
function unlockFunction(bytes4 functionSelector)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
isFunctionLocked
Check if a function has been locked by a system admin
This views FunctionLockedStorage.lock
function isFunctionLocked(bytes4 functionSelector) external view returns (bool);
Parameters
#
lockAllFundTransferFunctions
Lock all contract methods involving fund transfers
function lockAllFundTransferFunctions() external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
#
unlockAllFundTransferFunctions
Unlock all contract methods involving fund transfers
function unlockAllFundTransferFunctions() external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
#
replaceMakerBP
Update market maker fee basis points
function replaceMakerBP(uint16 _newMakerBP) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
addFeeSchedule
Add or update an existing fee schedule
function addFeeSchedule(
bytes32 _entityId,
uint256 _feeScheduleType,
bytes32[] calldata _receiver,
uint16[] calldata _basisPoints
) external assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
removeFeeSchedule
remove a fee schedule
function removeFeeSchedule(bytes32 _entityId, uint256 _feeScheduleType)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_ADMINS);
Parameters
#
approveSelfOnboarding
Approve a user address for self-onboarding
function approveSelfOnboarding(address _userAddress, bytes32 _entityId, string calldata _role)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_ONBOARDING_APPROVERS);
Parameters
#
onboard
Create a token holder entity for a user account
function onboard() external;
#
isSelfOnboardingApproved
function isSelfOnboardingApproved(address _userAddress, bytes32 _entityId) external view returns (bool);
#
cancelSelfOnboarding
function cancelSelfOnboarding(address _user)
external
assertPrivilege(LibAdmin._getSystemId(), LC.GROUP_SYSTEM_MANAGERS);