ValidatorManagerLib
Functions
isValidator
function isValidator(ValidatorStorage storage $, bytes memory pubkey)
external
view
returns (bool);
_getValidatorId
Gets the validator ID for associated CL pubkey
function _getValidatorId(bytes memory pubkey) internal pure returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
pubkey | bytes | The CL pubkey of validator |
addValidators
function addValidators(
ValidatorStorage storage $,
address distributor,
ValidatorTypes.Validator[] memory _validators
) external;
removeValidators
function removeValidators(
ValidatorStorage storage $,
address distributor,
bytes[] memory _pubkeys
) external;
replaceValidator
function replaceValidator(
ValidatorStorage storage $,
address distributor,
bytes calldata _current,
bytes calldata _new
) external;
queueBoosts
function queueBoosts(
ValidatorStorage storage $,
address bgt,
address ibgt,
bytes[] memory _pubkeys,
uint128[] memory _amts
) external;
cancelBoosts
function cancelBoosts(
ValidatorStorage storage $,
address bgt,
bytes[] memory _pubkeys,
uint128[] memory _amts
) external;
activateBoosts
function activateBoosts(
ValidatorStorage storage $,
address bgt,
bytes[] memory _pubkeys
) external;
queueDropBoosts
function queueDropBoosts(
ValidatorStorage storage $,
address bgt,
bytes[] memory _pubkeys,
uint128[] memory _amts
) external;
cancelDropBoosts
function cancelDropBoosts(
ValidatorStorage storage $,
address bgt,
bytes[] memory _pubkeys,
uint128[] memory _amts
) external;
dropBoosts
function dropBoosts(
ValidatorStorage storage $,
address bgt,
bytes[] memory _pubkeys
) external;
infraredValidators
function infraredValidators(ValidatorStorage storage $, address distributor)
external
view
returns (ValidatorTypes.Validator[] memory validators);
numInfraredValidators
function numInfraredValidators(ValidatorStorage storage $)
external
view
returns (uint256);
_getValidatorAddress
function _getValidatorAddress(
ValidatorStorage storage,
address distributor,
bytes memory pubkey
) internal view returns (address);
Structs
ValidatorStorage
struct ValidatorStorage {
EnumerableSet.Bytes32Set validatorIds;
mapping(bytes32 => bytes) validatorPubkeys;
}