Skip to main content

IDeveloperRules

IDeveloperRules

Interface for the DeveloperRules contract, defining rules and conditions specific to Developer users.

canSendInvite

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

Checks if a developer is currently eligible to send an invitation.

Parameters

NameTypeDescription
accountaddressThe address of the developer account to check.

Return Values

NameTypeDescription
[0]booltrue if the developer can send an invite, false otherwise.

getDeveloper

function getDeveloper(address account) external view returns (struct Developer)

Retrieves the full Developer struct for a given account.

Parameters

NameTypeDescription
accountaddressThe address of the developer.

Return Values

NameTypeDescription
[0]struct DeveloperThe Developer struct containing the user's data.

totalActiveLevels

function totalActiveLevels() external view returns (uint256)

Returns the total number of activeLevels from non-denied users.

Return Values

NameTypeDescription
[0]uint256The total count of totalActiveLevels.

addPenalty

function addPenalty(address developer, uint64 reportId) external returns (uint256)

Adds a penalty to a developer and returns their new total penalty count.

Parameters

NameTypeDescription
developeraddressThe address of the developer receiving the penalty.
reportIduint64The ID of the report related to the penalty.

Return Values

NameTypeDescription
[0]uint256The new total number of penalties for the developer.

maxPenalties

function maxPenalties() external view returns (uint8)

Returns the maximum number of penalties a developer can have before being denied.

Return Values

NameTypeDescription
[0]uint8The maximum penalty count.

poolCurrentEra

function poolCurrentEra() external view returns (uint256)

Returns the current era of the related pool.

Return Values

NameTypeDescription
[0]uint256The current era number.

removePoolLevels

function removePoolLevels(address developer) external

Removes a specified level from a developer's pool configuration.

As specified, this function does not return a value.

Parameters

NameTypeDescription
developeraddressThe address of the developer.