ValidatorRegistry
Source: contracts/core/ValidatorRegistry.sol · Guide: validation-system · Upgradeable (UUPS proxy)
Functions that change state
Function
Who can call
Also
getValidatorAssetTypes(address validator)onlyOwnergrantRole(bytes32 role, address account)The role's admin role (
DEFAULT_ADMIN_ROLE unless set otherwise)initialize()Once, when the proxy is initialised
registerValidator(address validator, string name, string description, uint256[] supportedAssetTypes)onlyOwnerremoveValidator(address validator)onlyOwnerrenounceOwnership()The owner
renounceRole(bytes32 role, address account)Only the account renouncing its own role
revokeRole(bytes32 role, address account)The role's admin role (
DEFAULT_ADMIN_ROLE unless set otherwise)setDeedNFT(address _deedNFT)onlyOwnersetFundManager(address _fundManager)onlyOwnertransferOwnership(address newOwner)The owner
updateValidatorName(address validator, string newName)onlyOwnerupdateValidatorStatus(address validator, bool isActive)onlyOwnerupgradeTo(address newImplementation)onlyOwner (via _authorizeUpgrade)upgradeToAndCall(address newImplementation, bytes data)onlyOwner (via _authorizeUpgrade)payable
Read functions
Anyone can call these; they change nothing.
Function
Returns
assetTypeValidators(uint256, uint256)address
deedNFT()address
DEFAULT_ADMIN_ROLE()bytes32
fundManager()address
getActiveValidators()address[]
getRoleAdmin(bytes32 role)bytes32
getSupportedAssetTypes(address validator)uint256[]
getValidatorName(address validator)string
hasRole(bytes32 role, address account)bool
isValidatorActive(address validator)bool
isValidatorRegistered(address validator)bool
owner()address
proxiableUUID()bytes32
REGISTRY_ADMIN_ROLE()bytes32
supportsInterface(bytes4 interfaceId)bool
validators(address)bool isActive, string name, string description
Events
Event
AdminChanged(address previousAdmin, address newAdmin)BeaconUpgraded(address beacon indexed)DeedNFTUpdated(address deedNFT indexed)Initialized(uint8 version)OwnershipTransferred(address previousOwner indexed, address newOwner indexed)RoleAdminChanged(bytes32 role indexed, bytes32 previousAdminRole indexed, bytes32 newAdminRole indexed)RoleGranted(bytes32 role indexed, address account indexed, address sender indexed)RoleRevoked(bytes32 role indexed, address account indexed, address sender indexed)Upgraded(address implementation indexed)ValidatorAssetTypesUpdated(address validator indexed, uint256[] assetTypes)ValidatorRegistered(address validator indexed, string name, uint256[] supportedAssetTypes)ValidatorStatusUpdated(address validator indexed, bool isActive)Errors
No custom errors; failures revert with a reason string.