IGovernanceSettings
#
Interface for the GovernanceSettings
that hold the Flare governance address and its timelock.
All governance calls are delayed by the timelock specified in this contract.
NOTE: This contract enables updating the governance address and timelock only by hard-forking the network, meaning only by updating validator code.
Functions#
getExecutors
#
function getExecutors(
) external view returns (
address[] _addresses);
Gets the addresses of the accounts that are allowed to execute the timelocked governance calls, once the timelock period expires. Executors can be changed without a hard fork, via a normal governance call.
Returns | Type | Description |
---|---|---|
_addresses |
address[] |
Array of executor addresses. |
getGovernanceAddress
#
function getGovernanceAddress(
) external view returns (
address _address);
Gets the governance account address. The governance address can only be changed by a hard fork.
Returns | Type | Description |
---|---|---|
_address |
address |
The governance account address. |
getTimelock
#
function getTimelock(
) external view returns (
uint256 _timelock);
Gets the time in seconds that must pass between a governance call and its execution. The timelock value can only be changed by a hard fork.
Returns | Type | Description |
---|---|---|
_timelock |
uint256 |
Time in seconds that passes between the governance call and execution. |
isExecutor
#
function isExecutor(
address _address
) external view returns (
bool);
Checks whether an address is one of the allowed executors. See getExecutors
.
Parameters | Type | Description |
---|---|---|
_address |
address |
The address to check. |
Returns | Type | Description |
---|---|---|
[0] | bool |
True if _address is in the executors list. |