IPermissions
Volt Protocol
Permissions interface
Methods
BURNER_ROLE
function BURNER_ROLE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
GOVERN_ROLE
function GOVERN_ROLE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
GUARDIAN_ROLE
function GUARDIAN_ROLE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
MINTER_ROLE
function MINTER_ROLE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
PCV_CONTROLLER_ROLE
function PCV_CONTROLLER_ROLE() external view returns (bytes32)
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
createRole
function createRole(bytes32 role, bytes32 adminRole) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
adminRole | bytes32 | undefined |
getRoleAdmin
function getRoleAdmin(bytes32 role) external view returns (bytes32)
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {AccessControl-_setRoleAdmin}.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
grantBurner
function grantBurner(address burner) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
burner | address | undefined |
grantGovernor
function grantGovernor(address governor) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
governor | address | undefined |
grantGuardian
function grantGuardian(address guardian) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
guardian | address | undefined |
grantMinter
function grantMinter(address minter) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
minter | address | undefined |
grantPCVController
function grantPCVController(address pcvController) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
pcvController | address | undefined |
grantRole
function grantRole(bytes32 role, address account) external nonpayable
Grants role
to account
. If account
had not been already granted role
, emits a {RoleGranted} event. Requirements: - the caller must have role
's admin role.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
hasRole
function hasRole(bytes32 role, address account) external view returns (bool)
Returns true
if account
has been granted role
.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isBurner
function isBurner(address _address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_address | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isGovernor
function isGovernor(address _address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_address | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isGuardian
function isGuardian(address _address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_address | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isMinter
function isMinter(address _address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_address | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isPCVController
function isPCVController(address _address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_address | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
renounceRole
function renounceRole(bytes32 role, address account) external nonpayable
Revokes role
from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must be account
.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
revokeBurner
function revokeBurner(address burner) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
burner | address | undefined |
revokeGovernor
function revokeGovernor(address governor) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
governor | address | undefined |
revokeGuardian
function revokeGuardian(address guardian) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
guardian | address | undefined |
revokeMinter
function revokeMinter(address minter) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
minter | address | undefined |
revokeOverride
function revokeOverride(bytes32 role, address account) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
revokePCVController
function revokePCVController(address pcvController) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
pcvController | address | undefined |
revokeRole
function revokeRole(bytes32 role, address account) external nonpayable
Revokes role
from account
. If account
had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must have role
's admin role.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
Events
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
Parameters
Name | Type | Description |
---|---|---|
role indexed | bytes32 | undefined |
previousAdminRole indexed | bytes32 | undefined |
newAdminRole indexed | bytes32 | undefined |
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
Parameters
Name | Type | Description |
---|---|---|
role indexed | bytes32 | undefined |
account indexed | address | undefined |
sender indexed | address | undefined |
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Parameters
Name | Type | Description |
---|---|---|
role indexed | bytes32 | undefined |
account indexed | address | undefined |
sender indexed | address | undefined |