RuleApplicationValidationFacet
Inherits: ERC173
Author: @ShaneDuncan602 @oscarsernarosero @TJ-Everett
Check that a rule in fact exists.
Facet in charge of the logic to check rule existence
Functions
validateAccountMinMaxTokenBalanceERC721
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
validateAccountMinMaxTokenBalance
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMinMaxTokenBalance
Function gets total AccountMinMaxTokenBalance rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateTokenMaxDailyTrades
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalTokenMaxDailyTradesRules
Function gets total tokenMaxDailyTrades rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateAccountMaxTradeSize
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMaxTradeSize
Function to get total account max trade size rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateTokenMinTxSize
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalTokenMinTxSize
Function to get total Token Min Tx Size rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateTokenMinHoldTime
getTotalTokenMinHoldTime
validateAccountApproveDenyOracle
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountApproveDenyOracle
Function get total Account Approve Deny Oracle rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | total accountApproveDenyOracleRules array length |
validateTokenMaxBuySellVolume
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalTokenMaxBuySellVolume
Function to get total Token Max Buy Sell Volume
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateTokenMaxTradingVolume
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalTokenMaxTradingVolume
Function to get total Token Max Trading Volume
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateTokenMaxSupplyVolatility
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalTokenMaxSupplyVolatility
Function to get total Token Max Supply Volitility rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | tokenMaxSupplyVolatilityRules total length of array |
validateAccountMaxValueByRiskScore
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMaxValueByRiskScore
Function to get total Account Max Value by Risk Score rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateAccountMaxTxValueByRiskScore
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMaxTxValueByRiskScore
Function to get total Account Max Transaction Value by Risk rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateAccountMaxValueByAccessLevel
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMaxValueByAccessLevel
Function to get total Account Max Value By Access Level rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total length of array |
validateAccountMaxValueOutByAccessLevel
Validate the existence of the rule
Parameters
Name | Type | Description |
---|---|---|
_actions | ActionTypes[] | |
_ruleId | uint32 | Rule Identifier |
getTotalAccountMaxValueOutByAccessLevel
Function to get total Account Max Value Out By Access Level rules
Returns
Name | Type | Description |
---|---|---|
<none> | uint32 | Total number of access level withdrawal rules |
areActionsEnabledInRule
Function to check if the action type is enabled for the rule
Parameters
Name | Type | Description |
---|---|---|
_rule | bytes32 | the bytes32 rule code pointer in storage |
_actions | ActionTypes[] | ActionTypes array to be checked if type is enabled |
enabledActionsInRule
Function to enable the action type for the rule
Parameters
Name | Type | Description |
---|---|---|
_rule | bytes32 | the bytes32 rule code pointer in storage |
_actions | ActionTypes[] | ActionTypes array to be enabled |
disableActionsInRule
Function to disable the action type for the rule
Parameters
Name | Type | Description |
---|---|---|
_rule | bytes32 | the bytes32 rule code pointer in storage |
_actions | ActionTypes[] | ActionTypes array to be disable |