Skip to main content

Governable

Governable

Minimal ownership interface for governance

Addresses

ChainAddress

Functions

constructor

constructor() public

transferGov

Transfer governance permissions to another address. Recipient must call acceptGov.

function transferGov(address newGov) external
Dev note

Must be called by existing governance address

Parameters

NameTypeDescription
newGovaddressNew address

acceptGov

Complete transfer of governance permissions to the sender.

function acceptGov() public

Modifiers

onlyGov

Restrict this function to the registered governance address

modifier onlyGov()

Errors

GovOnly

error GovOnly()

PendingGovOnly

error PendingGovOnly()

Variables

gov