Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 7 txns
 Latest 7 txns

TxHash Age From To Value [TxFee]
0x4b0ae690e1cdf861d3ce290df736f12357ec93cf0d5ad8477726055731ee5be1123 days 20 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40 Ether0.000799712
0x71e0eb6991f8c66d4a28d78caf4a79161a7c196f3390a1633f6f580e10db72be123 days 20 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40.02 Ether0.00063252
0xa34ec6d963d49362a66babd9b309c72ccaac6da9a80cd836d711e071d5da6029123 days 20 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40 Ether0.000646608
0xe1953ff41ac89a2fa17ee4ebf2b5a705b524b69aa7b0746633388fdf1d04a063123 days 20 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40 Ether0.000519744
0xd2f1120b937c169613393b95c812379999dd5d6759fe160756a2b1515fb5b7fd123 days 21 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40 Ether0.000519744
0x6bd421ed62e853ee6c4e58f6786ec3b7b09d5452684e6579a0eab5ac9ce27df5123 days 21 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN   0x9b23ca391c3306df30489290249464a4bfc6a4d40 Ether0.000519744
0xad454b05ab87f42869ad34e7f7f94133f65a394ca06e33368b16b736d0236796123 days 21 hrs ago0xa43e4646ee8ebd9ad01bfe87995802d984902e25  IN    Contract Creation0 Ether0.011495328
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Name: WaltonTokenLocker
Compiler Text: v0.4.11+commit.68ef5810
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.11;

contract Token {
    function transfer(address to, uint256 value) returns (bool success);
    function transferFrom(address from, address to, uint256 value) returns (bool success);
    function approve(address spender, uint256 value) returns (bool success);

    function totalSupply() constant returns (uint256 totalSupply) {}
    function balanceOf(address owner) constant returns (uint256 balance);
    function allowance(address owner, address spender) constant returns (uint256 remaining);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


contract WaltonTokenLocker {

    address public beneficiary;
    uint256 public releaseTime;

    Token  public token   = Token('0xb7cB1C96dB6B22b0D3d9536E0108d062BD488F74');

    function WaltonTokenLocker() public {
        // team
        // beneficiary = address('0x732f589BA0b134DC35454716c4C87A06C890445b');
        // test
        beneficiary = address('0xa43e4646ee8ebd9AD01BFe87995802D984902e25');
        releaseTime = 1563379200;     // 2019-07-18 00:00
    }

    function release() public {
        uint256 totalTokenBalance;
        uint256 totalEthBalance;
        // when releaseTime reached, and release() has been called
        // WaltonTokenLocker release all eth and wtc to beneficiary
        if (block.timestamp < releaseTime)
            throw;

        totalTokenBalance = token.balanceOf(this);
        totalEthBalance = this.balance;
        if (totalTokenBalance > 0)
            if (!token.transfer(beneficiary, totalTokenBalance))
                throw;
        if (totalEthBalance > 0)
            if (!beneficiary.send(totalEthBalance))
                throw;
    }

    function releaseTimestamp() public constant returns (uint timestamp) {
        return releaseTime;
    }
    function currentTimestamp() public constant returns (uint timestamp) {
        return block.timestamp;
    }
    function secondsRemaining() public constant returns (uint timestamp) {
        return releaseTime - block.timestamp;
    }

    // for debug
    function setReleaseTime(uint256 _releaseTime) public {
        releaseTime = _releaseTime;
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"releaseTimestamp","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"currentTimestamp","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"release","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"secondsRemaining","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_releaseTime","type":"uint256"}],"name":"setReleaseTime","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"releaseTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
606060405273b7cb1c96db6b22b0d3d9536e0108d062bd488f74600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550341561006157fe5b5b73a43e4646ee8ebd9ad01bfe87995802d984902e25600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550635d2f46006001819055505b5b61053f806100d36000396000f3006060604052361561008c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a3f013f1461008e5780631e2ff94f146100b457806338af3eed146100da57806386d1a69f1461012c578063940ebef71461013e578063ab05bfff14610164578063b91d400114610184578063fc0c546a146101aa575bfe5b341561009657fe5b61009e6101fc565b6040518082815260200191505060405180910390f35b34156100bc57fe5b6100c4610207565b6040518082815260200191505060405180910390f35b34156100e257fe5b6100ea610210565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561013457fe5b61013c610236565b005b341561014657fe5b61014e6104cf565b6040518082815260200191505060405180910390f35b341561016c57fe5b61018260048080359060200190919050506104dc565b005b341561018c57fe5b6101946104e7565b6040518082815260200191505060405180910390f35b34156101b257fe5b6101ba6104ed565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600060015490505b90565b60004290505b90565b600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600060015442101561024a5760006000fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561030c57fe5b6102c65a03f1151561031a57fe5b5050506040518051905091503073ffffffffffffffffffffffffffffffffffffffff16319050600082111561045a57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561043557fe5b6102c65a03f1151561044357fe5b5050506040518051905015156104595760006000fd5b5b60008111156104ca57600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051809050600060405180830381858888f1935050505015156104c95760006000fd5b5b5b5050565b6000426001540390505b90565b806001819055505b50565b60015481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820ed1a2a53335f4d4b62990e0f36be7c5016d68199fc9a27fa9a413fab95c9146e0029

   Swarm Source:
bzzr://ed1a2a53335f4d4b62990e0f36be7c5016d68199fc9a27fa9a413fab95c9146e

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.