mirror of
https://github.com/tornadocash/torn-token.git
synced 2024-12-18 07:13:30 +01:00
26 lines
726 B
Solidity
26 lines
726 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.6.0;
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
|
|
import "../Vesting.sol";
|
|
import "./Timestamp.sol";
|
|
|
|
contract VestingMock is Vesting, Timestamp {
|
|
constructor(
|
|
bytes32 _token,
|
|
address _beneficiary,
|
|
uint256 _startTimestamp,
|
|
uint256 _cliffInMonths,
|
|
uint256 _durationInMonths
|
|
) public Vesting(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths) {}
|
|
|
|
function resolve(bytes32 addr) public view override returns (address) {
|
|
return address(uint160(uint256(addr) >> (12 * 8)));
|
|
}
|
|
|
|
function blockTimestamp() public view override(Timestamp, Vesting) returns (uint256) {
|
|
return Timestamp.blockTimestamp();
|
|
}
|
|
}
|