Governance.sol

This contract is used for governance of the protocol.

state

enum GovernanceLib.ProtocolState state

The current governance state.

constructor

constructor(address admin) public

Creates a new Governance contract.

Parameters

NameTypeDescription
adminaddressThe address of the initial admin.

setState

function setState(enum GovernanceLib.ProtocolState newState) external

Sets the state of the protocol

This function can only be called by an account with the appropriate role

Parameters

NameTypeDescription
newStateenum GovernanceLib.ProtocolStateThe new state to set for the protocol

getState

function getState() external view returns (enum GovernanceLib.ProtocolState)

Returns the current state of the protocol

Return Values

NameTypeDescription
[0]enum GovernanceLib.ProtocolStatestate The current state of the protocol

supportsInterface

function supportsInterface(bytes4 interfaceId) public view returns (bool)

IERC165 interface support.