Git Source

Inherits: IERC721Errors, IRuleProcessorErrors, IMaxTagLimitError

Author: @ShaneDuncan602 @oscarsernarosero @TJ-Everett

Implements NFT Rule checks

Facet in charge of the logic to check non-fungible token rules compliance

Functions

checkTokenMinHoldTime

This function receives data needed to check token min hold time rule. This a simple rule and thus is not stored in the rule storage diamond.

function checkTokenMinHoldTime(uint32 _ruleId, uint256 _ownershipTs) external view;

Parameters

NameTypeDescription
_ruleIduint32ruleId of the rule to check
_ownershipTsuint256beginning of hold period

getTokenMinHoldTime

Function to get Token Min Tx Size rules by index

function getTokenMinHoldTime(uint32 _index) public view returns (NonTaggedRules.TokenMinHoldTime memory);

Parameters

NameTypeDescription
_indexuint32position of rule in array

Returns

NameTypeDescription
<none>NonTaggedRules.TokenMinHoldTimeRule at index

getTotalTokenMinHoldTime

function getTotalTokenMinHoldTime() public view returns (uint32);