Sponsored:   Ubex.com - Additional 17% of tokens are available for purchase! Trading on exchanges already started.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 3 txns
Token Tracker: B Happy (HAPY)
Misc
Address Watch: Add To Watch List
Contract Creator: 0x263e13a485ae463ad6679dac6e1d359a05423cd8at txn 0x2d8cfd3614bd0156d3038c02888a220f8518afae03d9c7d68797f2b937c8bade
Token Balances:
 Latest 3 txns

TxHash Age From To Value [TxFee]
0x523d2a6c255c61cd803d2c4e7de4b8cac229def7851da71a407c0f205f83f379212 days 16 hrs ago0x263e13a485ae463ad6679dac6e1d359a05423cd8  IN   0x1fd159fa190ab588f60699ef6def984602dd8c5b0 Ether0.000946116
0x3559e84515edda22357f83c65298507e93b384f81e1791b8b6e7a41875758a22213 days 4 hrs ago0x263e13a485ae463ad6679dac6e1d359a05423cd8  IN   0x1fd159fa190ab588f60699ef6def984602dd8c5b0 Ether0.00216562
0x2d8cfd3614bd0156d3038c02888a220f8518afae03d9c7d68797f2b937c8bade216 days 12 hrs ago0x263e13a485ae463ad6679dac6e1d359a05423cd8  IN    Contract Creation0 Ether0.01997727
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: HAPYToken
Compiler Version: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.19;

contract HAPYToken {

    string public name;
    string public symbol;
    uint8 public decimals = 18;

    uint256 public totalSupply;


    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;


    event Transfer(address indexed from, address indexed to, uint256 value);

    event Burn(address indexed from, uint256 value);

    function HAPYToken() public {
        totalSupply = 2999999999 * 10 ** uint256(decimals);
        balanceOf[msg.sender] = totalSupply;
        name = "B Happy";
        symbol = "HAPY";
    }

    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        Transfer(_from, _to, _value);
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
    }

    function transfer(address _to, uint256 _value) public {
        _transfer(msg.sender, _to, _value);
    }
     
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);     
        allowance[_from][msg.sender] -= _value;
        _transfer(_from, _to, _value);
        return true;
    }
     
    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        return true;
    }
     
    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);   
        balanceOf[msg.sender] -= _value;            
        totalSupply -= _value;                      
        Burn(msg.sender, _value);
        return true;
    }
     
    function burnFrom(address _from, uint256 _value) public returns (bool success) {
        require(balanceOf[_from] >= _value);                
        require(_value <= allowance[_from][msg.sender]);    
        balanceOf[_from] -= _value;                         
        allowance[_from][msg.sender] -= _value;             
        totalSupply -= _value;                              
        Burn(_from, _value);
        return true;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526002805460ff19166012179055341561001c57600080fd5b60025460ff16600a0a63b2d05dff02600381905533600160a060020a031660009081526004602052604090819020919091558051908101604052600781527f4220486170707900000000000000000000000000000000000000000000000000602082015260009080516100939291602001906100e1565b5060408051908101604052600481527f4841505900000000000000000000000000000000000000000000000000000000602082015260019080516100db9291602001906100e1565b5061017c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012257805160ff191683800117855561014f565b8280016001018555821561014f579182015b8281111561014f578251825591602001919060010190610134565b5061015b92915061015f565b5090565b61017991905b8082111561015b5760008155600101610165565b90565b6107328061018b6000396000f3006060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017357806323b872dd14610198578063313ce567146101c057806342966c68146101e957806370a08231146101ff57806379cc67901461021e57806395d89b4114610240578063a9059cbb14610253578063dd62ed3e14610277575b600080fd5b34156100be57600080fd5b6100c661029c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015f600160a060020a036004351660243561033a565b604051901515815260200160405180910390f35b341561017e57600080fd5b61018661036a565b60405190815260200160405180910390f35b34156101a357600080fd5b61015f600160a060020a0360043581169060243516604435610370565b34156101cb57600080fd5b6101d36103e7565b60405160ff909116815260200160405180910390f35b34156101f457600080fd5b61015f6004356103f0565b341561020a57600080fd5b610186600160a060020a036004351661047b565b341561022957600080fd5b61015f600160a060020a036004351660243561048d565b341561024b57600080fd5b6100c6610569565b341561025e57600080fd5b610275600160a060020a03600435166024356105d4565b005b341561028257600080fd5b610186600160a060020a03600435811690602435166105e3565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103325780601f1061030757610100808354040283529160200191610332565b820191906000526020600020905b81548152906001019060200180831161031557829003601f168201915b505050505081565b600160a060020a033381166000908152600560209081526040808320938616835292905220819055600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156103a557600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556103dd848484610600565b5060019392505050565b60025460ff1681565b600160a060020a0333166000908152600460205260408120548290101561041657600080fd5b600160a060020a03331660008181526004602052604090819020805485900390556003805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60046020526000908152604090205481565b600160a060020a038216600090815260046020526040812054829010156104b357600080fd5b600160a060020a03808416600090815260056020908152604080832033909416835292905220548211156104e657600080fd5b600160a060020a038084166000818152600460209081526040808320805488900390556005825280832033909516835293905282902080548590039055600380548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103325780601f1061030757610100808354040283529160200191610332565b6105df338383610600565b5050565b600560209081526000928352604080842090915290825290205481565b6000600160a060020a038316151561061757600080fd5b600160a060020a0384166000908152600460205260409020548290101561063d57600080fd5b600160a060020a0383166000908152600460205260409020548281011161066357600080fd5b50600160a060020a0380831660008181526004602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380841660009081526004602052604080822054928716825290205401811461070057fe5b505050505600a165627a7a7230582081eeff6b59094571769cffc22a8a7a7dc862c52b3f492ac84654b2b362a8e4120029

   Swarm Source:
bzzr://81eeff6b59094571769cffc22a8a7a7dc862c52b3f492ac84654b2b362a8e412

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.