Sponsored Link:   SHIFT.cash - 1st ever car title loan platform on blockchain. Join NOW.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 8 txns
  Latest 8 txns

TxHash Age From To Value [TxFee]
0x2a94591ebb8d2ab7cf4f834d354b1b40a27044d3569f91758dcea90c90642319177 days 11 hrs ago0x000001f568875f378bf6d170b790967fe429c81a  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.000409656
0x38538843ce011268bcc89caa1b13a996992c781d73a32e7cd4eec8fe6b4c93ac234 days 20 hrs ago0x55324641332f9eaa167a1f4b4e57b81a71476990  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700.1 Ether0.00058182
0x404f03c9f292101559f8f50f49f8e6014d3ca29798a2e91c64fa37021d5c3325302 days 20 hrs ago0x99ac4df218ea034eb28f9947119f0fa063088372  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.001125807633
0x5f0e8ec240997e9c7cbcc33c0a4be73d0c1cc8d455d6accb9e3feaaf114ee99f321 days 21 hrs ago0x000001f568875f378bf6d170b790967fe429c81a  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.000533
0x188546e7487c25ab3bd9e9340befc305386eeeae9489c2aff59bf94ae0ec17c3321 days 21 hrs ago0x99ac4df218ea034eb28f9947119f0fa063088372  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.00102158
0xf3421eb7ab41e26a85a657392d34122fbe379c9910f2fdaaae53e431d6bb19a2321 days 23 hrs ago0x000001f568875f378bf6d170b790967fe429c81a  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.000533
0x188efa2d5e5a0073c11b7257298af51db9baf93d467a70b580e1247ba8b5c5c7321 days 23 hrs ago0x99ac4df218ea034eb28f9947119f0fa063088372  IN   0x2c875e5ea4706b1978a41b59edf2d3af31d60e700 Ether0.00102158
0x7851120b92e6f9992df12d2a7efd349983d06410d3b42faaf15d4d79fc803c84321 days 23 hrs ago0x99ac4df218ea034eb28f9947119f0fa063088372  IN    Contract Creation0 Ether0.01147992
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Name: WavesEthereumSwap
Compiler Version: v0.4.6+commit.2dabbdf0
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.2;

// ----------------------------------------------------------------------------------------------
// Basic ERC20 Token Contract For **TESTING ONLY** on Testnet or Dev blockchain.
//
// Enjoy. (c) Bok Consulting Pty Ltd 2016. The MIT Licence.
// ----------------------------------------------------------------------------------------------

// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/issues/20
contract ERC20Interface {

    // Get the total token supply
    function totalSupply() constant returns (uint256 totalSupply);

    // Get the account balance of another account with address _owner
    function balanceOf(address _owner) constant returns (uint256 balance);

    // Send _value amount of tokens to address _to
    function transfer(address _to, uint256 _value) returns (bool success);

    // Send _value amount of tokens from address _from to address _to
    // The transferFrom method is used for a withdraw workflow, allowing contracts to send
    // tokens on your behalf, for example to "deposit" to a contract address and/or to charge
    // fees in sub-currencies; the command should fail unless the _from account has
    // deliberately authorized the sender of the message via some mechanism; we propose
    // these standardized APIs for approval:
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);

    // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
    // If this function is called again it overwrites the current allowance with _value.
    function approve(address _spender, uint256 _value) returns (bool success);

    // Returns the amount which _spender is still allowed to withdraw from _owner
    function allowance(address _owner, address _spender) constant returns (uint256 remaining);

    // Triggered when tokens are transferred.
    event Transfer(address indexed _from, address indexed _to, uint256 _value);

    // Triggered whenever approve(address _spender, uint256 _value) is called.
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

contract IncentCoffeeToken is ERC20Interface {

    /* copied from Bok's github - https://github.com/bokkypoobah/TokenTrader/wiki/GNT-%E2%80%90-Golem-Network-Token */
    string public constant name = "Incent Coffee Token";
    string public constant symbol = "INCOF";
    uint8 public constant decimals = 0;  // 0 decimal places, the same as tokens on Wave

    // Owner of this contract
    address public owner;

    // Balances for each account
    mapping(address => uint256) balances;

    // Owner of account approves the transfer of an amount to another account
    mapping(address => mapping (address => uint256)) allowed;

    // Total supply
    uint256 _totalSupply;

    // Functions with this modifier can only be executed by the owner
    modifier onlyOwner() {
        if (msg.sender != owner) {
            throw;
        }
        _;
    }

    // Constructor
    function IncentCoffeeToken() {

        _totalSupply = 824;
        owner = msg.sender;
        balances[owner] = _totalSupply;
    }

    function totalSupply() constant returns (uint256 totalSupply) {
        totalSupply = _totalSupply;
    }

    // What is the balance of a particular account?
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    // Transfer the balance from owner's account to another account
    function transfer(address _to, uint256 _amount) returns (bool success) {
        if (balances[msg.sender] >= _amount && _amount > 0) {
            balances[msg.sender] -= _amount;
            balances[_to] += _amount;
            Transfer(msg.sender, _to, _amount);
            return true;
        } else {
           return false;
        }
    }

    // Send _value amount of tokens from address _from to address _to
    // The transferFrom method is used for a withdraw workflow, allowing contracts to send
    // tokens on your behalf, for example to "deposit" to a contract address and/or to charge
    // fees in sub-currencies; the command should fail unless the _from account has
    // deliberately authorized the sender of the message via some mechanism; we propose
    // these standardized APIs for approval:
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    ) returns (bool success) {

        if (balances[_from] >= _amount
            && allowed[_from][msg.sender] >= _amount
            && _amount > 0) {

            balances[_to] += _amount;
            balances[_from] -= _amount;
            allowed[_from][msg.sender] -= _amount;
            Transfer(_from, _to, _amount);
            return true;
        } else {
            return false;
        }
    }

    // Allow _spender to withdraw from your account, multiple times, up to the _value amount.
    // If this function is called again it overwrites the current allowance with _value.
    function approve(address _spender, uint256 _amount) returns (bool success) {
        allowed[msg.sender][_spender] = _amount;
        Approval(msg.sender, _spender, _amount);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }


}

contract WavesEthereumSwap is IncentCoffeeToken {

 event WavesTransfer(address indexed _from, string wavesAddress, uint256 amount);

 function moveToWaves(string wavesAddress, uint256 amount) {

     if (!transfer(owner, amount)) throw;
     WavesTransfer(msg.sender, wavesAddress, amount);

 }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"wavesAddress","type":"string"},{"name":"amount","type":"uint256"}],"name":"moveToWaves","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"wavesAddress","type":"string"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"WavesTransfer","type":"event"},{"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":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040525b610338600381905560008054600160a060020a0319166c010000000000000000000000003381020417808255600160a060020a03168152600160205260409020555b5b6106ba806100566000396000f36060604052361561008d5760e060020a600035046306fdde038114610092578063095ea7b31461010d57806318160ddd1461013457806323b872dd14610153578063313ce5671461017d57806370a08231146101a05780637f09beca146101c25780638da5cb5b1461021957806395d89b4114610242578063a9059cbb146102bd578063dd62ed3e146102e4575b610000565b346100005761009f610309565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156100ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3461000057610120600435602435610340565b604080519115158252519081900360200190f35b34610000576101416103ab565b60408051918252519081900360200190f35b34610000576101206004356024356044356103b2565b604080519115158252519081900360200190f35b346100005761018a6104ac565b6040805160ff9092168252519081900360200190f35b34610000576101416004356104b1565b60408051918252519081900360200190f35b3461000057610217600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965050933593506104d092505050565b005b3461000057610226610597565b60408051600160a060020a039092168252519081900360200190f35b346100005761009f6105a6565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156100ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576101206004356024356105dd565b604080519115158252519081900360200190f35b346100005761014160043560243561068d565b60408051918252519081900360200190f35b60408051808201909152601381527f496e63656e7420436f6666656520546f6b656e00000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b6003545b90565b600160a060020a0383166000908152600160205260408120548290108015906104025750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b801561040e5750600082115b156104a057600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529482529182902080548790039055815186815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016104a4566104a4565b5060005b5b9392505050565b600081565b600160a060020a0381166000908152600160205260409020545b919050565b6000546104e690600160a060020a0316826105dd565b15156104f157610000565b33600160a060020a03167f14bb4dd9d9205a00acda8bc9cfb299741c7cd8c25305c6d97e940c13e2a64cbf838360405180806020018381526020018281038252848181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156105845780820380516001836020036101000a031916815260200191505b50935050505060405180910390a25b5050565b600054600160a060020a031681565b60408051808201909152600581527f494e434f46000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600160205260408120548290108015906106065750600082115b1561067e57600160a060020a03338116600081815260016020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060016103a5566103a5565b5060006103a5565b5b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b9291505056

 

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.