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)

Give an account access to this role.

remove(struct Roles.Role role, address account)

Remove an account’s access to this role.

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

Check if an account has this role.

Roles

CapperRole

Modifiers

onlyCapper()

constructor()

isCapper(address account) → bool

addCapper(address account)

renounceCapper()

_addCapper(address account)

_removeCapper(address account)

CapperAdded(address account)

CapperRemoved(address account)

MinterRole

Modifiers

onlyMinter()

constructor()

isMinter(address account) → bool

addMinter(address account)

renounceMinter()

_addMinter(address account)

_removeMinter(address account)

MinterAdded(address account)

MinterRemoved(address account)

PauserRole

Modifiers

onlyPauser()

constructor()

isPauser(address account) → bool

addPauser(address account)

renouncePauser()

_addPauser(address account)

_removePauser(address account)

PauserAdded(address account)

PauserRemoved(address account)

SignerRole

Modifiers

onlySigner()

constructor()

isSigner(address account) → bool

addSigner(address account)

renounceSigner()

_addSigner(address account)

_removeSigner(address account)

SignerAdded(address account)

SignerRemoved(address account)

WhitelistAdminRole

WhitelistAdmins are responsible for assigning and removing Whitelisted accounts.

onlyWhitelistAdmin()

constructor()

isWhitelistAdmin(address account) → bool

addWhitelistAdmin(address account)

renounceWhitelistAdmin()

_addWhitelistAdmin(address account)

_removeWhitelistAdmin(address account)

WhitelistAdminAdded(address account)

WhitelistAdminRemoved(address account)

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.

onlyWhitelisted()

isWhitelisted(address account) → bool

addWhitelisted(address account)

removeWhitelisted(address account)

renounceWhitelisted()

_addWhitelisted(address account)

_removeWhitelisted(address account)

WhitelistedAdded(address account)

WhitelistedRemoved(address account)