CreditsAccessManager
Source: defined outside contracts/
Functions that change state
Function
Who can call
Also
grantAdmin(address admin)Defined outside
contracts/grantMember(address member)Defined outside
contracts/grantOperator(address operator)Defined outside
contracts/grantRole(bytes32 role, address account)The role's admin role (
DEFAULT_ADMIN_ROLE unless set otherwise)initialize(address admin)Defined outside
contracts/renounceRole(bytes32 role, address account)Only the account renouncing its own role
revokeAdmin(address admin)Defined outside
contracts/revokeMember(address member)Defined outside
contracts/revokeOperator(address operator)Defined outside
contracts/revokeRole(bytes32 role, address account)The role's admin role (
DEFAULT_ADMIN_ROLE unless set otherwise)setMembershipRegistry(address registry)Defined outside
contracts/Read functions
Anyone can call these; they change nothing.
Function
Returns
CREDIT_LIMITS_ROLE()bytes32
CREDIT_LINES_ROLE()bytes32
CREDIT_SETTINGS_ROLE()bytes32
DEFAULT_ADMIN_ROLE()bytes32
getRoleAdmin(bytes32 role)bytes32
hasCreditRole(bytes32 role, address account)bool
hasRole(bytes32 role, address account)bool
isAdmin(address admin)bool
isMember(address member)bool
isOperator(address operator)bool
membershipRegistry()address
supportsInterface(bytes4 interfaceId)bool
Events
Event
AdminAdded(address admin)AdminRemoved(address admin)Initialized(uint8 version)MemberAdded(address member)MemberRemoved(address member)MembershipRegistryUpdated(address registry)OperatorAdded(address operator)OperatorRemoved(address operator)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)Errors
No custom errors; failures revert with a reason string.