Skip to content

Latest commit

 

History

History
382 lines (319 loc) · 10.1 KB

MockAccessControlUser.md

File metadata and controls

382 lines (319 loc) · 10.1 KB

MockAccessControlUser.sol

View Source: contracts/mock/lib-user/MockAccessControlUser.sol

MockAccessControlUser

Contract Members

Constants & Variables

contract IStore public s;

Functions

function (IStore store) public nonpayable

Arguments

Name Type Description
store IStore
Source Code
constructor(IStore store) {
    s = store;
  }

callerMustBeAdmin

function callerMustBeAdmin(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeAdmin(address caller) external view {
    s.callerMustBeAdmin(caller);
  }

callerMustBeCoverManager

function callerMustBeCoverManager(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeCoverManager(address caller) external view {
    s.callerMustBeCoverManager(caller);
  }

callerMustBeGovernanceAgent

function callerMustBeGovernanceAgent(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeGovernanceAgent(address caller) external view {
    s.callerMustBeGovernanceAgent(caller);
  }

callerMustBeGovernanceAdmin

function callerMustBeGovernanceAdmin(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeGovernanceAdmin(address caller) external view {
    s.callerMustBeGovernanceAdmin(caller);
  }

callerMustBeRecoveryAgent

function callerMustBeRecoveryAgent(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeRecoveryAgent(address caller) external view {
    s.callerMustBeRecoveryAgent(caller);
  }

callerMustBePauseAgent

function callerMustBePauseAgent(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBePauseAgent(address caller) external view {
    s.callerMustBePauseAgent(caller);
  }

callerMustBeUnpauseAgent

function callerMustBeUnpauseAgent(address caller) external view

Arguments

Name Type Description
caller address
Source Code
function callerMustBeUnpauseAgent(address caller) external view {
    s.callerMustBeUnpauseAgent(caller);
  }

hasAccess

function hasAccess(bytes32 role, address user) external view
returns(bool)

Arguments

Name Type Description
role bytes32
user address
Source Code
function hasAccess(bytes32 role, address user) external view returns (bool) {
    return s.hasAccess(role, user);
  }

Contracts