Upgradeable
Inherits: UUPSUpgradeable, PausableUpgradeable, AccessControlUpgradeable
Title: Upgradeable
Provides base upgradeability functionality using UUPS and access control.
State Variables
KEEPER_ROLE
bytes32 public constant KEEPER_ROLE = keccak256("KEEPER_ROLE")
GOVERNANCE_ROLE
bytes32 public constant GOVERNANCE_ROLE = keccak256("GOVERNANCE_ROLE")
PAUSER_ROLE
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE")
__gap
uint256[20] private __gap
Functions
onlyKeeper
Modifier to restrict access to KEEPER_ROLE.
modifier onlyKeeper() ;
onlyGovernor
Modifier to restrict access to GOVERNANCE_ROLE.
modifier onlyGovernor() ;
onlyPauser
Modifier to restrict access to PAUSER_ROLE.
modifier onlyPauser() ;
whenInitialized
modifier whenInitialized() ;
constructor
Note: oz-upgrades-unsafe-allow: constructor
constructor() ;
__Upgradeable_init
Initialize the upgradeable contract.
function __Upgradeable_init() internal onlyInitializing;
pause
function pause() public;
unpause
function unpause() public onlyGovernor;
_authorizeUpgrade
Restrict upgrades to only the governor.
function _authorizeUpgrade(address newImplementation)
internal
override
onlyGovernor;
currentImplementation
Returns the current implementation address.
function currentImplementation() external view returns (address);
implementation
Alias for currentImplementation for clarity.
function implementation() external view returns (address);