Git Source

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

function validateAccountMinMaxTokenBalanceERC721(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

validateAccountMinMaxTokenBalance

Validate the existence of the rule

function validateAccountMinMaxTokenBalance(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMinMaxTokenBalance

Function gets total AccountMinMaxTokenBalance rules

function getTotalAccountMinMaxTokenBalance() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateTokenMaxDailyTrades

Validate the existence of the rule

function validateTokenMaxDailyTrades(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalTokenMaxDailyTradesRules

Function gets total tokenMaxDailyTrades rules

function getTotalTokenMaxDailyTradesRules() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateAccountMaxTradeSize

Validate the existence of the rule

function validateAccountMaxTradeSize(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMaxTradeSize

Function to get total account max trade size rules

function getTotalAccountMaxTradeSize() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateTokenMinTxSize

Validate the existence of the rule

function validateTokenMinTxSize(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalTokenMinTxSize

Function to get total Token Min Tx Size rules

function getTotalTokenMinTxSize() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateTokenMinHoldTime

function validateTokenMinHoldTime(ActionTypes[] memory _actions, uint32 _ruleId) external view;

getTotalTokenMinHoldTime

function getTotalTokenMinHoldTime() internal view returns (uint32);

validateAccountApproveDenyOracle

Validate the existence of the rule

function validateAccountApproveDenyOracle(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountApproveDenyOracle

Function get total Account Approve Deny Oracle rules

function getTotalAccountApproveDenyOracle() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32total accountApproveDenyOracleRules array length

validateTokenMaxBuySellVolume

Validate the existence of the rule

function validateTokenMaxBuySellVolume(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalTokenMaxBuySellVolume

Function to get total Token Max Buy Sell Volume

function getTotalTokenMaxBuySellVolume() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateTokenMaxTradingVolume

Validate the existence of the rule

function validateTokenMaxTradingVolume(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalTokenMaxTradingVolume

Function to get total Token Max Trading Volume

function getTotalTokenMaxTradingVolume() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateTokenMaxSupplyVolatility

Validate the existence of the rule

function validateTokenMaxSupplyVolatility(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalTokenMaxSupplyVolatility

Function to get total Token Max Supply Volitility rules

function getTotalTokenMaxSupplyVolatility() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32tokenMaxSupplyVolatilityRules total length of array

validateAccountMaxValueByRiskScore

Validate the existence of the rule

function validateAccountMaxValueByRiskScore(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMaxValueByRiskScore

Function to get total Account Max Value by Risk Score rules

function getTotalAccountMaxValueByRiskScore() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateAccountMaxTxValueByRiskScore

Validate the existence of the rule

function validateAccountMaxTxValueByRiskScore(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMaxTxValueByRiskScore

Function to get total Account Max Transaction Value by Risk rules

function getTotalAccountMaxTxValueByRiskScore() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateAccountMaxValueByAccessLevel

Validate the existence of the rule

function validateAccountMaxValueByAccessLevel(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMaxValueByAccessLevel

Function to get total Account Max Value By Access Level rules

function getTotalAccountMaxValueByAccessLevel() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total length of array

validateAccountMaxValueOutByAccessLevel

Validate the existence of the rule

function validateAccountMaxValueOutByAccessLevel(ActionTypes[] memory _actions, uint32 _ruleId) external view;

Parameters

NameTypeDescription
_actionsActionTypes[]
_ruleIduint32Rule Identifier

getTotalAccountMaxValueOutByAccessLevel

Function to get total Account Max Value Out By Access Level rules

function getTotalAccountMaxValueOutByAccessLevel() internal view returns (uint32);

Returns

NameTypeDescription
<none>uint32Total number of access level withdrawal rules

areActionsEnabledInRule

Function to check if the action type is enabled for the rule

function areActionsEnabledInRule(bytes32 _rule, ActionTypes[] memory _actions) public view returns (bool allEnabled);

Parameters

NameTypeDescription
_rulebytes32the bytes32 rule code pointer in storage
_actionsActionTypes[]ActionTypes array to be checked if type is enabled

enabledActionsInRule

Function to enable the action type for the rule

function enabledActionsInRule(bytes32 _rule, ActionTypes[] memory _actions) external onlyOwner;

Parameters

NameTypeDescription
_rulebytes32the bytes32 rule code pointer in storage
_actionsActionTypes[]ActionTypes array to be enabled

disableActionsInRule

Function to disable the action type for the rule

function disableActionsInRule(bytes32 _rule, ActionTypes[] memory _actions) external onlyOwner;

Parameters

NameTypeDescription
_rulebytes32the bytes32 rule code pointer in storage
_actionsActionTypes[]ActionTypes array to be disable