Functions
isSuperAdmin
This function is where the super admin role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if admin, false if not |
isAppAdministrator
This function is where the app administrator role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if app administrator, false if not |
isRuleAdministrator
This function is where the rule administrator role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if rule administrator, false if not |
isTreasuryAccount
This function is where the rTreasury account role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if TREASURY_ACCOUNT, false if not |
isAccessLevelAdmin
This function is where the access level admin role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if ACCESS_LEVEL_ADMIN_ROLE, false if not |
isRiskAdmin
This function is where the risk admin role is actually checkedName | Type | Description |
---|---|---|
account | address | address to be checked |
Name | Type | Description |
---|---|---|
<none> | bool | success true if RISK_ADMIN_ROLE, false if not |
getAllTags
Get all the tags for the addressName | Type | Description |
---|---|---|
_address | address | Address to retrieve the tags |
Name | Type | Description |
---|---|---|
<none> | bytes32[] | tags Array of all tags for the account |
getAccessLevel
Get the AccessLevel Score for the specified accountName | Type | Description |
---|---|---|
_account | address | address of the user |
Name | Type | Description |
---|---|---|
<none> | uint8 |
getRiskScore
Get the Risk Score for an account.Name | Type | Description |
---|---|---|
_account | address | address upon which the risk score was set |
Name | Type | Description |
---|---|---|
<none> | uint8 | score risk score(0-100) |
getPauseRules
Get all pause rules for the tokenName | Type | Description |
---|---|---|
<none> | PauseRule[] | PauseRule An array of all the pause rules |
hasTag
Check to see if an account has a specific general tagName | Type | Description |
---|---|---|
_account | address | Address to check |
_tag | bytes32 | Tag to be checked for |
Name | Type | Description |
---|---|---|
<none> | bool | success true if account has the tag, false if it does not |
getAccessLevelProvider
Get the address of the access level providerName | Type | Description |
---|---|---|
<none> | address | accessLevelProvider Address of the access level provider |
registerToken
This function allows the devs to register their token contract addresses. This keeps everything in sync and will aid with the token factoryName | Type | Description |
---|---|---|
_tokenId | string | The token id(may be NFT or ERC20) |
_tokenAddress | address | Address corresponding to the tokenId |
deregisterToken
This function allows the devs to deregister a token contract address. This keeps everything in sync and will aid with the token factoryName | Type | Description |
---|---|---|
_tokenId | string | The token id(may be NFT or ERC20) |
getTokenList
Return a the token list for calculation purposesName | Type | Description |
---|---|---|
<none> | address[] | tokenList list of all tokens registered |
getTokenID
This function gets token identification string.Name | Type | Description |
---|---|---|
_tokenAddress | address | the address of the contract of the token to query |
Name | Type | Description |
---|---|---|
<none> | string | the identification string. |
approveAddressToTradingRuleAllowlist
manage the allowlist for trading-rule bypasser accountsName | Type | Description |
---|---|---|
_address | address | account in the list to manage |
isApproved | bool | set to true to indicate that _address can bypass trading rules. |
isTradingRuleBypasser
tells if an address can bypass trading rulesName | Type | Description |
---|---|---|
_address | address | the address to check for |
Name | Type | Description |
---|---|---|
<none> | bool | true if the address can bypass trading rules, or false otherwise. |
checkApplicationRules
Jump through to the gobal rules to see if the requested action is valid.Name | Type | Description |
---|---|---|
_tokenAddress | address | address of the token calling the rule check |
_sender | address | address of the calling account passed through from the token |
_from | address | address of the from account |
_to | address | address of the to account |
_amount | uint256 | amount of tokens to be transferred |
_nftValuationLimit | uint16 | number of tokenID’s per collection before checking collection price vs individual token price |
_tokenId | uint256 | tokenId of the NFT token |
_action | ActionTypes | Action to be checked |
_handlerType | HandlerTypes | type of handler calling checkApplicationRules function |
confirmNewDataProvider
Part of the two step process to set a new Data Provider within a Protocol AppManager. Final confirmation called by new providerName | Type | Description |
---|---|---|
_providerType | IDataEnum.ProviderType | the type of data provider |