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
| Name | Type | Description |
|---|---|---|
| account | address | The address of the user (voter). |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bool | true 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
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | The 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.