Access

This page is incomplete. We’re working to improve it for the next release. Stay tuned!

Library

Roles

Library for managing addresses assigned to a Role.

add(struct Roles.Role role, address account) internal

Give an account access to this role.

remove(struct Roles.Role role, address account) internal

Remove an account’s access to this role.

has(struct Roles.Role role, address account) → bool internal

Check if an account has this role.

Roles

CapperRole

Modifiers

onlyCapper() modifier

constructor() internal

isCapper(address account) → bool public

addCapper(address account) public

renounceCapper() public

_addCapper(address account) internal

_removeCapper(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

CapperAdded(address account) event

CapperRemoved(address account) event

MinterRole

Modifiers

onlyMinter() modifier

constructor() internal

isMinter(address account) → bool public

addMinter(address account) public

renounceMinter() public

_addMinter(address account) internal

_removeMinter(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

MinterAdded(address account) event

MinterRemoved(address account) event

PauserRole

Modifiers

onlyPauser() modifier

constructor() internal

isPauser(address account) → bool public

addPauser(address account) public

renouncePauser() public

_addPauser(address account) internal

_removePauser(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

PauserAdded(address account) event

PauserRemoved(address account) event

SignerRole

Modifiers

onlySigner() modifier

constructor() internal

isSigner(address account) → bool public

addSigner(address account) public

renounceSigner() public

_addSigner(address account) internal

_removeSigner(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

SignerAdded(address account) event

SignerRemoved(address account) event

WhitelistAdminRole

WhitelistAdmins are responsible for assigning and removing Whitelisted accounts.

onlyWhitelistAdmin() modifier

constructor() internal

isWhitelistAdmin(address account) → bool public

addWhitelistAdmin(address account) public

renounceWhitelistAdmin() public

_addWhitelistAdmin(address account) internal

_removeWhitelistAdmin(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

WhitelistAdminAdded(address account) event

WhitelistAdminRemoved(address account) event

WhitelistedRole

Whitelisted accounts have been approved by a WhitelistAdmin to perform certain actions (e.g. participate in a crowdsale). This role is special in that the only accounts that can add it are WhitelistAdmins (who can also remove it), and not Whitelisteds themselves.

Modifiers

onlyWhitelisted() modifier

onlyWhitelistAdmin() modifier

isWhitelisted(address account) → bool public

addWhitelisted(address account) public

removeWhitelisted(address account) public

renounceWhitelisted() public

_addWhitelisted(address account) internal

_removeWhitelisted(address account) internal

constructor() internal

isWhitelistAdmin(address account) → bool public

addWhitelistAdmin(address account) public

renounceWhitelistAdmin() public

_addWhitelistAdmin(address account) internal

_removeWhitelistAdmin(address account) internal

_msgSender() → address payable internal

_msgData() → bytes internal

WhitelistedAdded(address account) event

WhitelistedRemoved(address account) event

WhitelistAdminAdded(address account) event

WhitelistAdminRemoved(address account) event