Skip to content

Latest commit

 

History

History
254 lines (225 loc) · 7.15 KB

MockProtocol.md

File metadata and controls

254 lines (225 loc) · 7.15 KB

MockProtocol.sol

View Source: contracts/mock/base/MockProtocol.sol

↗ Extends: AccessControl

MockProtocol

Contract Members

Constants & Variables

bool public state;

Functions

setPaused

function setPaused(bool s) external nonpayable

Arguments

Name Type Description
s bool
Source Code
function setPaused(bool s) external {
    state = s;
  }

paused

function paused() external view
returns(bool)

Arguments

Name Type Description
Source Code
function paused() external view returns (bool) {
    return state;
  }

setupRole

function setupRole(bytes32 role, bytes32 adminRole, address account) external nonpayable

Arguments

Name Type Description
role bytes32
adminRole bytes32
account address
Source Code
function setupRole(
    bytes32 role,
    bytes32 adminRole,
    address account
  ) external {
    _setRoleAdmin(role, adminRole);

    if (account != address(0)) {
      _setupRole(role, account);
    }
  }

Contracts