You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
840 B
Solidity
40 lines
840 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/Timers.sol";
|
|
|
|
contract TimersTimestampImpl {
|
|
using Timers for Timers.Timestamp;
|
|
|
|
Timers.Timestamp private _timer;
|
|
|
|
function getDeadline() public view returns (uint64) {
|
|
return _timer.getDeadline();
|
|
}
|
|
|
|
function setDeadline(uint64 timestamp) public {
|
|
_timer.setDeadline(timestamp);
|
|
}
|
|
|
|
function reset() public {
|
|
_timer.reset();
|
|
}
|
|
|
|
function isUnset() public view returns (bool) {
|
|
return _timer.isUnset();
|
|
}
|
|
|
|
function isStarted() public view returns (bool) {
|
|
return _timer.isStarted();
|
|
}
|
|
|
|
function isPending() public view returns (bool) {
|
|
return _timer.isPending();
|
|
}
|
|
|
|
function isExpired() public view returns (bool) {
|
|
return _timer.isExpired();
|
|
}
|
|
}
|