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

bytes32 RELAYER_ROLE

Role identifier for the Colle role

__MarketAccess_init

function __MarketAccess_init() internal

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

function isRelayer(address _address) internal view returns (bool)

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