MarketAccessUpgradeable
This contract provides role-based access control for the marketplace. It extends the AccessControlUpgradeable contract from OpenZeppelin for role management in an upgradeable manner.
RELAYER_ROLE
Role identifier for the Colle role
__MarketAccess_init
Sets the deployer as the initial admin and colle.
This function should be called in the initialize function of the contract implementing this abstract contract.
isRelayer
Checks if an address is assigned the Relayer role
Parameters
Name
Type
Description
_address
address
The address to check
Return Values
Name
Type
Description
[0]
bool
bool Returns true if the address has the Relayer role, false otherwise.
onlyRelayer
Modifier to restrict the access to only addresses with the Relayer role
onlyAdmin
Modifier to restrict the access to only addresses with the Relayer role
Last updated