Skip to content

SubjectTypes

SCANNER_SUBJECT

uint8 SCANNER_SUBJECT

AGENT_SUBJECT

uint8 AGENT_SUBJECT

SubjectTypeValidator

InvalidSubjectType

error InvalidSubjectType(uint8 subjectType)

onlyValidSubjectType

modifier onlyValidSubjectType(uint8 subjectType)

check if subjectType belongs to the defined SUBJECT_TYPES

Name Type Description
subjectType uint8 is not an enum because some contracts using subjectTypes are not upgradeable (StakingEscrow)