GovernanceLib
State Variables
BPS_MAX
uint16 internal constant BPS_MAX = 10000;
Functions
setGovernance
Sets the governance address.
function setGovernance(address newGovernance) external;
Parameters
Name | Type | Description |
---|---|---|
newGovernance | address | The new governance address to set. |
setEmergencyAdmin
Sets the emergency admin address.
function setEmergencyAdmin(address newEmergencyAdmin) external;
Parameters
Name | Type | Description |
---|---|---|
newEmergencyAdmin | address | The new governance address to set. |
initState
Sets the protocol state, only meant to be called at initialization since this does not validate the caller.
function initState(Types.ProtocolState newState) external;
Parameters
Name | Type | Description |
---|---|---|
newState | Types.ProtocolState | The new protocol state to set. |
setState
Sets the protocol state and validates the caller. The emergency admin can only pause further (Unpaused => PublishingPaused => Paused). Whereas governance can set any state.
function setState(Types.ProtocolState newState) external;
Parameters
Name | Type | Description |
---|---|---|
newState | Types.ProtocolState | The new protocol state to set. |
_setState
function _setState(Types.ProtocolState newState) private returns (Types.ProtocolState);
whitelistProfileCreator
function whitelistProfileCreator(address profileCreator, bool whitelist) external;
setTreasury
function setTreasury(address newTreasury) internal;
setTreasuryFee
function setTreasuryFee(uint16 newTreasuryFee) internal;