Skip to main content

Permissions

Functions

constructor

function constructor() public

createRole

function createRole(
bytes32 role,
bytes32 adminRole
) external

creates a new role to be maintained

can also be used to update admin of existing role

Parameters

NameTypeDescription
rolebytes32the new role id
adminRolebytes32the admin role id for role

grantMinter

function grantMinter(
address minter
) external

grants minter role to address

Parameters

NameTypeDescription
minteraddressnew minter

grantBurner

function grantBurner(
address burner
) external

grants burner role to address

Parameters

NameTypeDescription
burneraddressnew burner

grantPCVController

function grantPCVController(
address pcvController
) external

grants controller role to address

Parameters

NameTypeDescription
pcvControlleraddressnew controller

grantGovernor

function grantGovernor(
address governor
) external

grants governor role to address

Parameters

NameTypeDescription
governoraddressnew governor

grantGuardian

function grantGuardian(
address guardian
) external

grants guardian role to address

Parameters

NameTypeDescription
guardianaddressnew guardian

revokeMinter

function revokeMinter(
address minter
) external

revokes minter role from address

Parameters

NameTypeDescription
minteraddressex minter

revokeBurner

function revokeBurner(
address burner
) external

revokes burner role from address

Parameters

NameTypeDescription
burneraddressex burner

revokePCVController

function revokePCVController(
address pcvController
) external

revokes pcvController role from address

Parameters

NameTypeDescription
pcvControlleraddressex pcvController

revokeGovernor

function revokeGovernor(
address governor
) external

revokes governor role from address

Parameters

NameTypeDescription
governoraddressex governor

revokeGuardian

function revokeGuardian(
address guardian
) external

revokes guardian role from address

Parameters

NameTypeDescription
guardianaddressex guardian

revokeOverride

function revokeOverride(
bytes32 role,
address account
) external

revokes a role from address

Parameters

NameTypeDescription
rolebytes32the role to revoke
accountaddressthe address to revoke the role from

isMinter

function isMinter(
address _address
) external returns (bool)

checks if address is a minter

Parameters

NameTypeDescription
_addressaddressaddress to check

Return Values

NameTypeDescription
[0]booltrue _address is a minter

isBurner

function isBurner(
address _address
) external returns (bool)

checks if address is a burner

Parameters

NameTypeDescription
_addressaddressaddress to check

Return Values

NameTypeDescription
[0]booltrue _address is a burner

isPCVController

function isPCVController(
address _address
) external returns (bool)

checks if address is a controller

Parameters

NameTypeDescription
_addressaddressaddress to check

Return Values

NameTypeDescription
[0]booltrue _address is a controller

isGovernor

function isGovernor(
address _address
) public returns (bool)

checks if address is a governor

Parameters

NameTypeDescription
_addressaddressaddress to check

Return Values

NameTypeDescription
[0]booltrue _address is a governor

isGuardian

function isGuardian(
address _address
) public returns (bool)

checks if address is a guardian

Parameters

NameTypeDescription
_addressaddressaddress to check

Return Values

NameTypeDescription
[0]booltrue _address is a guardian

_setupGovernor

function _setupGovernor(
address governor
) internal

Parameters

NameTypeDescription
governoraddress