Skip to main content

ICore

Volt Protocol

Core Interface

Methods

BURNER_ROLE

function BURNER_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

GOVERN_ROLE

function GOVERN_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

GUARDIAN_ROLE

function GUARDIAN_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

MINTER_ROLE

function MINTER_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

PCV_CONTROLLER_ROLE

function PCV_CONTROLLER_ROLE() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

createRole

function createRole(bytes32 role, bytes32 adminRole) external nonpayable

Parameters

NameTypeDescription
rolebytes32undefined
adminRolebytes32undefined

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

NameTypeDescription
rolebytes32undefined

Returns

NameTypeDescription
_0bytes32undefined

grantBurner

function grantBurner(address burner) external nonpayable

Parameters

NameTypeDescription
burneraddressundefined

grantGovernor

function grantGovernor(address governor) external nonpayable

Parameters

NameTypeDescription
governoraddressundefined

grantGuardian

function grantGuardian(address guardian) external nonpayable

Parameters

NameTypeDescription
guardianaddressundefined

grantMinter

function grantMinter(address minter) external nonpayable

Parameters

NameTypeDescription
minteraddressundefined

grantPCVController

function grantPCVController(address pcvController) external nonpayable

Parameters

NameTypeDescription
pcvControlleraddressundefined

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

NameTypeDescription
rolebytes32undefined
accountaddressundefined

hasRole

function hasRole(bytes32 role, address account) external view returns (bool)

Returns true if account has been granted role.

Parameters

NameTypeDescription
rolebytes32undefined
accountaddressundefined

Returns

NameTypeDescription
_0boolundefined

isBurner

function isBurner(address _address) external view returns (bool)

Parameters

NameTypeDescription
_addressaddressundefined

Returns

NameTypeDescription
_0boolundefined

isGovernor

function isGovernor(address _address) external view returns (bool)

Parameters

NameTypeDescription
_addressaddressundefined

Returns

NameTypeDescription
_0boolundefined

isGuardian

function isGuardian(address _address) external view returns (bool)

Parameters

NameTypeDescription
_addressaddressundefined

Returns

NameTypeDescription
_0boolundefined

isMinter

function isMinter(address _address) external view returns (bool)

Parameters

NameTypeDescription
_addressaddressundefined

Returns

NameTypeDescription
_0boolundefined

isPCVController

function isPCVController(address _address) external view returns (bool)

Parameters

NameTypeDescription
_addressaddressundefined

Returns

NameTypeDescription
_0boolundefined

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

NameTypeDescription
rolebytes32undefined
accountaddressundefined

revokeBurner

function revokeBurner(address burner) external nonpayable

Parameters

NameTypeDescription
burneraddressundefined

revokeGovernor

function revokeGovernor(address governor) external nonpayable

Parameters

NameTypeDescription
governoraddressundefined

revokeGuardian

function revokeGuardian(address guardian) external nonpayable

Parameters

NameTypeDescription
guardianaddressundefined

revokeMinter

function revokeMinter(address minter) external nonpayable

Parameters

NameTypeDescription
minteraddressundefined

revokeOverride

function revokeOverride(bytes32 role, address account) external nonpayable

Parameters

NameTypeDescription
rolebytes32undefined
accountaddressundefined

revokePCVController

function revokePCVController(address pcvController) external nonpayable

Parameters

NameTypeDescription
pcvControlleraddressundefined

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

NameTypeDescription
rolebytes32undefined
accountaddressundefined

vcon

function vcon() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

volt

function volt() external view returns (contract IVolt)

Returns

NameTypeDescription
_0contract IVoltundefined

Events

RoleAdminChanged

event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

Parameters

NameTypeDescription
role indexedbytes32undefined
previousAdminRole indexedbytes32undefined
newAdminRole indexedbytes32undefined

RoleGranted

event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

Parameters

NameTypeDescription
role indexedbytes32undefined
account indexedaddressundefined
sender indexedaddressundefined

RoleRevoked

event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

Parameters

NameTypeDescription
role indexedbytes32undefined
account indexedaddressundefined
sender indexedaddressundefined

VconUpdate

event VconUpdate(contract IERC20 indexed _vcon)

Parameters

NameTypeDescription
_vcon indexedcontract IERC20undefined

VoltUpdate

event VoltUpdate(contract IERC20 indexed _volt)

Parameters

NameTypeDescription
_volt indexedcontract IERC20undefined