Upgradeable

Git Source

Inherits: UUPSUpgradeable, AccessControlUpgradeable

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");

Functions

onlyKeeper

Modifier to restrict access to KEEPER_ROLE.

modifier onlyKeeper();

onlyGovernor

Modifier to restrict access to GOVERNANCE_ROLE.

modifier onlyGovernor();

whenInitialized

modifier whenInitialized();

constructor

Note: oz-upgrades-unsafe-allow: constructor

constructor();

__Upgradeable_init

Initialize the upgradeable contract.

function __Upgradeable_init() internal onlyInitializing;

_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);