2017-06-26 17:54:28 +00:00
|
|
|
pragma solidity ^0.4.11;
|
|
|
|
|
2017-07-13 17:12:45 +00:00
|
|
|
import "./LiquidPledging.sol";
|
2017-06-26 17:54:28 +00:00
|
|
|
|
2017-07-13 17:12:45 +00:00
|
|
|
// @dev LiquidPledgingMock mocks current block number
|
2017-06-26 17:54:28 +00:00
|
|
|
|
|
|
|
contract LiquidPledgingMock is LiquidPledging {
|
|
|
|
|
2017-08-18 16:47:22 +00:00
|
|
|
uint public mock_time;
|
2017-06-26 17:54:28 +00:00
|
|
|
|
|
|
|
function LiquidPledgingMock(address _vault) LiquidPledging(_vault) {
|
|
|
|
mock_time = now;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getTime() internal returns (uint) {
|
|
|
|
return mock_time;
|
|
|
|
}
|
|
|
|
|
|
|
|
function setMockedTime(uint _t) {
|
|
|
|
mock_time = _t;
|
|
|
|
}
|
|
|
|
}
|