Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
846 B
Solidity
40 lines
846 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/Timers.sol";
|
|
|
|
contract TimersBlockNumberImpl {
|
|
using Timers for Timers.BlockNumber;
|
|
|
|
Timers.BlockNumber 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();
|
|
}
|
|
}
|