Skip to main content

IValidationRules

IValidationRules

Interface for the ValidationRules contract, which manages the rules for validating or invalidating user-submitted content.

waitedTimeBetweenVotes

function waitedTimeBetweenVotes(address account) external view returns (bool)

Checks if a user has waited the required time since their last vote.

Parameters

NameTypeDescription
accountaddressThe address of the user (voter).

Return Values

NameTypeDescription
[0]booltrue if the user is allowed to vote, false otherwise.

votesToInvalidate

function votesToInvalidate() external view returns (uint256)

Returns the number of votes required to invalidate a user or resource.

An explicit function that calculates and retrieves the invalidation threshold.

Return Values

NameTypeDescription
[0]uint256The required number of votes.

updateValidatorLastVoteBlock

function updateValidatorLastVoteBlock(address validatorAddress) external

Function to updade validator last vote block.number.

addValidationPoint

function addValidationPoint(address validatorAddress) external

Function to updade voter validationPoints.