Governable
Governable
Minimal ownership interface for governance
Addresses
Chain | Address |
---|
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
Name | Type | Description |
---|---|---|
newGov | address | New 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()