Functions
setAccountApproveDenyOracleId
Rule Setters and Getters that setting a rule will automatically activate it. Set the AccountApproveDenyOracle. Restricted to rule administrators only.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | the action types |
_ruleId | uint32 | Rule Id to set |
setAccountApproveDenyOracleIdFull
that setting a rule will automatically activate it. This function does not check that the array length is greater than zero to allow for clearing out of the action types data Set the AccountApproveDenyOracle suite. This function works differently since the rule allows multiples per action. The actions are repeated to account for multiple oracle rules per action. Restricted to rule administrators only.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | actions to have the rule applied to |
_ruleIds | uint32[] | Rule Id corresponding to the actions |
clearAccountApproveDenyOracle
Clear the rule data structuresetAccountApproveDenyOracleIdUpdate
that setting a rule will automatically activate it. Set the AccountApproveDenyOracle.Name | Type | Description |
---|---|---|
_action | ActionTypes | the action type to set the rule |
_ruleId | uint32 | Rule Id to set |
_doesAccountApproveDenyOracleIdExist
Check to see if the oracle rule already exists in the array. If it does, return the indexName | Type | Description |
---|---|---|
_action | ActionTypes | the corresponding action |
_ruleId | uint32 | the rule’s identifier |
Name | Type | Description |
---|---|---|
_index | uint256 | the index of the found oracle rule |
_found | bool | true if found |
activateAccountApproveDenyOracle
enable/disable rule. Disabling a rule will save gas on transfer transactions.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | the action types |
_on | bool | boolean representing if a rule must be checked or not. |
ruleId | uint32 | the id of the rule to activate/deactivate |
getAccountApproveDenyOracleIds
Retrieve the account approve deny oracle rule idName | Type | Description |
---|---|---|
_action | ActionTypes | the action type |
Name | Type | Description |
---|---|---|
<none> | uint32[] | oracleRuleId |
isAccountApproveDenyOracleActive
Tells you if the Accont Approve Deny Oracle Rule is active or not.Name | Type | Description |
---|---|---|
_action | ActionTypes | the action type |
ruleId | uint32 | the id of the rule to check |
Name | Type | Description |
---|---|---|
<none> | bool | boolean representing if the rule is active |
removeAccountApproveDenyOracle
Removes an account approve deny oracle rule from the list.Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | the action types |
ruleId | uint32 | the id of the rule to remove |