2024-03-29 21:52:45 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
2025-01-05 09:29:24 +00:00
|
|
|
import '@openzeppelin/contracts-v3/token/ERC20/IERC20.sol';
|
2024-03-29 21:52:45 +00:00
|
|
|
|
2025-01-05 09:29:24 +00:00
|
|
|
import '../Vesting.sol';
|
|
|
|
import './Timestamp.sol';
|
2024-03-29 21:52:45 +00:00
|
|
|
|
|
|
|
contract VestingMock is Vesting, Timestamp {
|
2025-01-05 09:29:24 +00:00
|
|
|
constructor(
|
|
|
|
address _token,
|
|
|
|
address _beneficiary,
|
|
|
|
uint256 _startTimestamp,
|
|
|
|
uint256 _cliffInMonths,
|
|
|
|
uint256 _durationInMonths
|
|
|
|
) public Vesting(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths) {}
|
2024-03-29 21:52:45 +00:00
|
|
|
|
2025-01-05 09:29:24 +00:00
|
|
|
/**
|
2024-03-29 21:52:45 +00:00
|
|
|
function resolve(bytes32 addr) public view override returns (address) {
|
|
|
|
return address(uint160(uint256(addr) >> (12 * 8)));
|
|
|
|
}
|
|
|
|
**/
|
|
|
|
|
2025-01-05 09:29:24 +00:00
|
|
|
function blockTimestamp() public view override(Timestamp, Vesting) returns (uint256) {
|
|
|
|
return Timestamp.blockTimestamp();
|
|
|
|
}
|
2024-03-29 21:52:45 +00:00
|
|
|
}
|