Governable

Git Source

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.

nominateGovernor

Configure the pendingGovernor to newGovnernor parameter.

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.

cancelPendingGovenor

Cancel the nominated pending governor.

Only the governor can trigger this function

Last updated