forked from perspectivefi/core-v2-hats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Roles.sol
22 lines (20 loc) · 795 Bytes
/
Roles.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.20;
/**
* @title Roles library
* @author Spectra Finance
* @notice Provides identifiers for roles used in Spectra protocol.
*/
library Roles {
uint64 internal constant ADMIN_ROLE = 0;
uint64 internal constant UPGRADE_ROLE = 1;
uint64 internal constant PAUSER_ROLE = 2;
uint64 internal constant FEE_SETTER_ROLE = 3;
uint64 internal constant REGISTRY_ROLE = 4;
uint64 internal constant REWARDS_HARVESTER_ROLE = 5;
uint64 internal constant REWARDS_PROXY_SETTER_ROLE = 6;
uint64 internal constant VOTER_GOVERNOR_ROLE = 7;
uint64 internal constant VOTER_EMERGENCY_COUNCIL_ROLE = 8;
uint64 internal constant VOTER_ROLE = 9;
uint64 internal constant FEES_VOTING_REWARDS_DISTRIBUTOR_ROLE = 10;
}