IEpochUtils
interface IEpochUtils
Source: IEpochUtils.sol
INDEX
REFERENCE
Functions
epochPeriodInSeconds
Returns the number of seconds defined in an epoch.
function epochPeriodInSeconds() external view returns (uint256)
Returns:
Number of seconds in an epoch
firstEpochStartTimestamp
Returns the timestamp when the first epoch starts.
function firstEpochStartTimestamp() external view returns (uint256)
Returns:
Start timestamp of first epoch
getCurrentEpochNumber
Returns the current epoch number.
function getCurrentEpochNumber() external view returns (uint256)
Returns:
Current epoch number
getEpochNumber
Returns the epoch number at timestamp.
function getEpochNumber(uint256 timestamp) external view returns (uint256)
Parameter | Type | Description |
---|---|---|
timestamp | uint256 | timestamp in epoch time |
Returns:
Epoch number at timestamp