Permissions
Functions
constructor
createRole
creates a new role to be maintained
can also be used to update admin of existing role
Parameters
Name | Type | Description |
---|---|---|
| bytes32 | the new role id |
| bytes32 | the admin role id for |
grantMinter
grants minter role to address
Parameters
Name | Type | Description |
---|---|---|
| address | new minter |
grantBurner
grants burner role to address
Parameters
Name | Type | Description |
---|---|---|
| address | new burner |
grantPCVController
grants controller role to address
Parameters
Name | Type | Description |
---|---|---|
| address | new controller |
grantGovernor
grants governor role to address
Parameters
Name | Type | Description |
---|---|---|
| address | new governor |
grantGuardian
grants guardian role to address
Parameters
Name | Type | Description |
---|---|---|
| address | new guardian |
revokeMinter
revokes minter role from address
Parameters
Name | Type | Description |
---|---|---|
| address | ex minter |
revokeBurner
revokes burner role from address
Parameters
Name | Type | Description |
---|---|---|
| address | ex burner |
revokePCVController
revokes pcvController role from address
Parameters
Name | Type | Description |
---|---|---|
| address | ex pcvController |
revokeGovernor
revokes governor role from address
Parameters
Name | Type | Description |
---|---|---|
| address | ex governor |
revokeGuardian
revokes guardian role from address
Parameters
Name | Type | Description |
---|---|---|
| address | ex guardian |
revokeOverride
revokes a role from address
Parameters
Name | Type | Description |
---|---|---|
| bytes32 | the role to revoke |
| address | the address to revoke the role from |
isMinter
checks if address is a minter
Parameters
Name | Type | Description |
---|---|---|
| address | address to check |
Return Values
Name | Type | Description |
---|---|---|
| bool | true _address is a minter |
isBurner
checks if address is a burner
Parameters
Name | Type | Description |
---|---|---|
| address | address to check |
Return Values
Name | Type | Description |
---|---|---|
| bool | true _address is a burner |
isPCVController
checks if address is a controller
Parameters
Name | Type | Description |
---|---|---|
| address | address to check |
Return Values
Name | Type | Description |
---|---|---|
| bool | true _address is a controller |
isGovernor
checks if address is a governor
Parameters
Name | Type | Description |
---|---|---|
| address | address to check |
Return Values
Name | Type | Description |
---|---|---|
| bool | true _address is a governor |
isGuardian
checks if address is a guardian
Parameters
Name | Type | Description |
---|---|---|
| address | address to check |
Return Values
Name | Type | Description |
---|---|---|
| bool | true _address is a guardian |
_setupGovernor
Parameters
Name | Type | Description |
---|---|---|
| address |
Last updated