Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 741 Bytes

File metadata and controls

42 lines (27 loc) · 741 Bytes

Solidity API

Governable

Governable contract.

A constructor is not defined, which makes the contract compatible with upgradable proxies. This requires calling explicitly _transferGovernance function in a child contract.

governance

address governance

GovernanceTransferred

event GovernanceTransferred(address oldGovernance, address newGovernance)

onlyGovernance

modifier onlyGovernance()

transferGovernance

function transferGovernance(address newGovernance) external virtual

Transfers governance of the contract to newGovernance.

_transferGovernance

function _transferGovernance(address newGovernance) internal virtual