IRoles

Git Source

Title: IRoles

Author: Merge Layers Inc.

Interface for protocol role management

Functions

REBALANCER

Returns REBALANCER role

function REBALANCER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32REBALANCER role identifier

REBALANCER_EOA

Returns REBALANCER_EOA role

function REBALANCER_EOA() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32REBALANCER_EOA role identifier

GUARDIAN_PAUSE

Returns GUARDIAN_PAUSE role

function GUARDIAN_PAUSE() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_PAUSE role identifier

GUARDIAN_BRIDGE

Returns GUARDIAN_BRIDGE role

function GUARDIAN_BRIDGE() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_BRIDGE role identifier

GUARDIAN_BORROW_CAP

Returns GUARDIAN_BORROW_CAP role

function GUARDIAN_BORROW_CAP() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_BORROW_CAP role identifier

GUARDIAN_SUPPLY_CAP

Returns GUARDIAN_SUPPLY_CAP role

function GUARDIAN_SUPPLY_CAP() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_SUPPLY_CAP role identifier

GUARDIAN_RESERVE

Returns GUARDIAN_RESERVE role

function GUARDIAN_RESERVE() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_RESERVE role identifier

PROOF_FORWARDER

Returns PROOF_FORWARDER role

function PROOF_FORWARDER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32PROOF_FORWARDER role identifier

PROOF_BATCH_FORWARDER

Returns PROOF_BATCH_FORWARDER role

function PROOF_BATCH_FORWARDER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32PROOF_BATCH_FORWARDER role identifier

SEQUENCER

Returns SEQUENCER role

function SEQUENCER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32SEQUENCER role identifier

PAUSE_MANAGER

Returns PAUSE_MANAGER role

function PAUSE_MANAGER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32PAUSE_MANAGER role identifier

CHAINS_MANAGER

Returns CHAINS_MANAGER role

function CHAINS_MANAGER() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32CHAINS_MANAGER role identifier

GUARDIAN_ORACLE

Returns GUARDIAN_ORACLE role

function GUARDIAN_ORACLE() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_ORACLE role identifier

GUARDIAN_BLACKLIST

Returns GUARDIAN_BLACKLIST role

function GUARDIAN_BLACKLIST() external view returns (bytes32 role);

Returns

NameTypeDescription
rolebytes32GUARDIAN_BLACKLIST role identifier

isAllowedFor

Returns allowance status for a contract and a role

function isAllowedFor(address _contract, bytes32 _role) external view returns (bool isAllowed);

Parameters

NameTypeDescription
_contractaddressThe contract address
_rolebytes32The bytes32 role

Returns

NameTypeDescription
isAllowedboolTrue if allowed

Errors

Roles_InputNotValid

Error thrown when input is not valid

error Roles_InputNotValid();