Governable
Inherits: IGovernable
See the documentation in {IGovernable}.
State Variables
governor
The address of the governor account or contract.
address public override governor;
pendingGovernor
The address of the pending governor account or contract.
address public override pendingGovernor;
______gap
uint256[50] private ______gap;
Functions
onlyGovernor
Reverts if called by any account other than the governor.
modifier onlyGovernor() virtual;
nominateGovernor
Configure the pendingGovernor to newGovnernor parameter.
function nominateGovernor(address newGovernor_) external virtual override onlyGovernor;
Parameters
Name
Type
Description
newGovernor_
address
The new governor.
acceptGovernor
The pending governor should accept and become the governor.
Only the pendingGovernor can trigger this function.
function acceptGovernor() external virtual override;
cancelPendingGovenor
Cancel the nominated pending governor.
Only the governor can trigger this function
function cancelPendingGovenor() external virtual override onlyGovernor;
Last updated