GNSAddressStore
Proxy base for the diamond and its facet contracts to store addresses and manage access control
initialize
Initializes address store facet
Parameters
_rolesManager
address
roles manager address
getAddresses
Returns addresses current values
hasRole
Returns whether an account has been granted a particular role
Parameters
_account
address
account address to check
_role
enum IAddressStore.Role
role to check
_setRole
Update role for account
Parameters
_account
address
account to update
_role
enum IAddressStore.Role
role to set
_value
bool
true if allowed, false if not
setRoles
Updates access control for a list of accounts
Parameters
_accounts
address[]
accounts addresses to update
_roles
enum IAddressStore.Role[]
corresponding roles to update
_values
bool[]
corresponding new values to set
_enforceRole
Reverts if caller does not have role
Parameters
_role
enum IAddressStore.Role
role to enforce
onlyRole
Reverts if caller does not have role
onlySelf
Reverts if caller isn't this same contract (facets calling other facets)