aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/token/TokenTimelock.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/compilationTests/zeppelin/token/TokenTimelock.sol')
-rw-r--r--test/compilationTests/zeppelin/token/TokenTimelock.sol41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/compilationTests/zeppelin/token/TokenTimelock.sol b/test/compilationTests/zeppelin/token/TokenTimelock.sol
deleted file mode 100644
index 4847b648..00000000
--- a/test/compilationTests/zeppelin/token/TokenTimelock.sol
+++ /dev/null
@@ -1,41 +0,0 @@
-pragma solidity ^0.4.11;
-
-
-import './ERC20Basic.sol';
-
-/**
- * @title TokenTimelock
- * @dev TokenTimelock is a token holder contract that will allow a
- * beneficiary to extract the tokens after a given release time
- */
-contract TokenTimelock {
-
- // ERC20 basic token contract being held
- ERC20Basic token;
-
- // beneficiary of tokens after they are released
- address beneficiary;
-
- // timestamp when token release is enabled
- uint releaseTime;
-
- constructor(ERC20Basic _token, address _beneficiary, uint _releaseTime) public {
- require(_releaseTime > now);
- token = _token;
- beneficiary = _beneficiary;
- releaseTime = _releaseTime;
- }
-
- /**
- * @dev beneficiary claims tokens held by time lock
- */
- function claim() public {
- require(msg.sender == beneficiary);
- require(now >= releaseTime);
-
- uint amount = token.balanceOf(address(this));
- require(amount > 0);
-
- token.transfer(beneficiary, amount);
- }
-}