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
Name | Type | Description |
---|---|---|
admin | address | The 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
Name | Type | Description |
---|---|---|
newState | enum GovernanceLib.ProtocolState | The 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
Name | Type | Description |
---|---|---|
[0] | enum GovernanceLib.ProtocolState | state The current state of the protocol |
supportsInterface
function supportsInterface(bytes4 interfaceId) public view returns (bool)
IERC165 interface support.
Updated 2 months ago