#
IAdminFacet
Exposes methods that require administrative priviledges
#
Functions
#
setMaxDividendDenominations
Set _newMax
as the max dividend denominations value.
function setMaxDividendDenominations(
uint8 _newMax
) external
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|_newMax
| uint8 | new value to be used.|
#
getMaxDividendDenominations
Get the max dividend denominations value
function getMaxDividendDenominations(
) external returns (uint8)
#
Returns:
| Type | Description |
| --- | --- |
|max
| dividend denominations|
#
isSupportedExternalToken
Is the specified tokenId an external ERC20 that is supported by the Nayms platform?
function isSupportedExternalToken(
bytes32 _tokenId
) external returns (bool)
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|_tokenId
| bytes32 | token address converted to bytes32
|
#
Returns:
| Type | Description |
| --- | --- |
|whether
| token issupported or not|
#
addSupportedExternalToken
Add another token to the supported tokens list
function addSupportedExternalToken(
address _tokenAddress
) external
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|_tokenAddress
| address | address of the token to support|
#
getSupportedExternalTokens
Get the supported tokens list as an array
function getSupportedExternalTokens(
) external returns (address[])
#
Returns:
| Type | Description |
| --- | --- |
|array
| containing address of all supported tokens|
#
getSystemId
Gets the System context ID.
function getSystemId(
) external returns (bytes32)
#
Returns:
| Type | Description |
| --- | --- |
|System
| Identifier|
#
isObjectTokenizable
Check if object can be tokenized
function isObjectTokenizable(
bytes32 _objectId
) external returns (bool)
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|_objectId
| bytes32 | ID of the object|
#
lockFunction
System Admin can lock a function This toggles FunctionLockedStorage.lock to true
function lockFunction(
bytes4 functionSelector
) external
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|functionSelector
| bytes4 | the bytes4 function selector|
#
unlockFunction
System Admin can unlock a function This toggles FunctionLockedStorage.lock to false
function unlockFunction(
bytes4 functionSelector
) external
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|functionSelector
| bytes4 | the bytes4 function selector|
#
isFunctionLocked
Check if a function has been locked by a system admin This views FunctionLockedStorage.lock
function isFunctionLocked(
bytes4 functionSelector
) external returns (bool)
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|functionSelector
| bytes4 | the bytes4 function selector|
#
lockAllFundTransferFunctions
Lock all contract methods involving fund transfers
function lockAllFundTransferFunctions(
) external
#
unlockAllFundTransferFunctions
Unlock all contract methods involving fund transfers
function unlockAllFundTransferFunctions(
) external
#
replaceMakerBP
Update market maker fee basis points
function replaceMakerBP(
uint16 _newMakerBP
) external
#
Arguments:
| Argument | Type | Description |
| --- | --- | --- |
|_newMakerBP
| uint16 | new maker fee value|
#
addFeeSchedule
No description
function addFeeSchedule(
) external
#
removeFeeSchedule
No description
function removeFeeSchedule(
) external