MarketAccess

This contract provides a role-based access control for the marketplace. It extends OpenZeppelin's AccessControl for role management.

RELAYER_ROLE

bytes32 RELAYER_ROLE

Role identifier for Relayer role

constructor

constructor() public

Sets the deployer as the initial admin

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 onlyRelayer()

Modifier to restrict the access to only addresses with the Relayer role

onlyAdmin

modifier onlyAdmin()

Modifier to restrict the access to only addresses with the Relayer role

Last updated