IGovernable
Last updated
Last updated
Contract module that provides a basic access control mechanism, with a governor that can be granted exclusive access to specific functions. The inheriting contract must set the initial governor in the constructor.
The address of the governor account or contract.
The address of the pending governor account or contract.
Configure the pendingGovernor to newGovnernor parameter.
Does not revert if the pendingGovernor is the same, or there is already a pendingGovernor address.
Parameters
newGovernor
address
The nominated governor, it will become the pendingGovernor.
The pending governor should accept and become the governor.
Only the pendingGovernor can trigger this function.
Cancel the nominated pending governor.
Only the governor can trigger this function
Emitted when the pendingGovernor is accepted.
Parameters
oldGovernor
address
The address of the old governor.
newGovernor
address
The address of the new governor.
Emitted when the pendingGovernor is nominated.
Configure the pending governor value, not revert if the pending governor is not zero address
Parameters
governor
address
The address of original governor
pendingGovernor
address
The address of the new pendingGovernor
Emitted when the pendingGovernor is reset to zero address
Reset the pending governor to zero address
Parameters
oldPendingGovernor
address
The original configured pending governor