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

role

bytes32

the new role id

adminRole

bytes32

the admin role id for role

grantMinter

function grantMinter(
    address minter
) external

grants minter role to address

Parameters

NameTypeDescription

minter

address

new minter

grantBurner

function grantBurner(
    address burner
) external

grants burner role to address

Parameters

NameTypeDescription

burner

address

new burner

grantPCVController

function grantPCVController(
    address pcvController
) external

grants controller role to address

Parameters

NameTypeDescription

pcvController

address

new controller

grantGovernor

function grantGovernor(
    address governor
) external

grants governor role to address

Parameters

NameTypeDescription

governor

address

new governor

grantGuardian

function grantGuardian(
    address guardian
) external

grants guardian role to address

Parameters

NameTypeDescription

guardian

address

new guardian

revokeMinter

function revokeMinter(
    address minter
) external

revokes minter role from address

Parameters

NameTypeDescription

minter

address

ex minter

revokeBurner

function revokeBurner(
    address burner
) external

revokes burner role from address

Parameters

NameTypeDescription

burner

address

ex burner

revokePCVController

function revokePCVController(
    address pcvController
) external

revokes pcvController role from address

Parameters

NameTypeDescription

pcvController

address

ex pcvController

revokeGovernor

function revokeGovernor(
    address governor
) external

revokes governor role from address

Parameters

NameTypeDescription

governor

address

ex governor

revokeGuardian

function revokeGuardian(
    address guardian
) external

revokes guardian role from address

Parameters

NameTypeDescription

guardian

address

ex guardian

revokeOverride

function revokeOverride(
    bytes32 role,
    address account
) external

revokes a role from address

Parameters

NameTypeDescription

role

bytes32

the role to revoke

account

address

the address to revoke the role from

isMinter

function isMinter(
    address _address
) external returns (bool)

checks if address is a minter

Parameters

NameTypeDescription

_address

address

address to check

Return Values

NameTypeDescription

[0]

bool

true _address is a minter

isBurner

function isBurner(
    address _address
) external returns (bool)

checks if address is a burner

Parameters

NameTypeDescription

_address

address

address to check

Return Values

NameTypeDescription

[0]

bool

true _address is a burner

isPCVController

function isPCVController(
    address _address
) external returns (bool)

checks if address is a controller

Parameters

NameTypeDescription

_address

address

address to check

Return Values

NameTypeDescription

[0]

bool

true _address is a controller

isGovernor

function isGovernor(
    address _address
) public returns (bool)

checks if address is a governor

Parameters

NameTypeDescription

_address

address

address to check

Return Values

NameTypeDescription

[0]

bool

true _address is a governor

isGuardian

function isGuardian(
    address _address
) public returns (bool)

checks if address is a guardian

Parameters

NameTypeDescription

_address

address

address to check

Return Values

NameTypeDescription

[0]

bool

true _address is a guardian

_setupGovernor

function _setupGovernor(
    address governor
) internal

Parameters

NameTypeDescription

governor

address

Last updated