Sponsored Link:   Qravity - the only blockchain entertainment production studio and distributor. Learn more.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 5 txns
 Latest 5 txns


TxHash Age From To Value [TxFee]
0x2a31432cf4736d92becd80048ee93fdae27dd0f0a235a7557230238b61343dc636 days 37 mins ago0x7e4c66a474445d7897ba2f04d2c85447a1df3972  IN   0xec3184af01ad86be9b54b6eb88c582bba53f4f650.01 Ether0.000441032
0x2ef3751fde571e384d211bd7fd897833bd4d05b2fa0d1759cb3cdbee0731992389 days 8 hrs ago0xb594459a70f1dd4c4219c9ad71163604ffd3228e  IN   0xec3184af01ad86be9b54b6eb88c582bba53f4f650.01 Ether0.000055189
0x9e59533415f84f6dbb9d84a810508b4275e0909b75efeba223df6df7516120a291 days 11 hrs ago0xc82591dc29ea70cf573bca112d1ed59811b90beb  IN   0xec3184af01ad86be9b54b6eb88c582bba53f4f650.01 Ether0.002262749
0xda5c285355eaf56c3056a30333b8fff9adc3153d45ec77ae92cd29fed089f70d117 days 17 hrs ago0x574c4db1e399859753a09d65b6c5586429663701  IN   0xec3184af01ad86be9b54b6eb88c582bba53f4f650.001 Ether0.001157289
0x82298b4c34e726cd531ce0bcafed36f5d89824d6825d34e03115ac4204f149a4117 days 17 hrs ago0x574c4db1e399859753a09d65b6c5586429663701  IN    Contract Creation0 Ether0.003605915
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 4 Internal Transactions

ParentTxHash Block Age From To Value
0x2a31432cf4736d92becd80048ee93fdae27dd0f0a235a7557230238b61343dc6561575436 days 37 mins ago0xec3184af01ad86be9b54b6eb88c582bba53f4f650x574c4db1e399859753a09d65b6c55864296637010.01 Ether
0x2ef3751fde571e384d211bd7fd897833bd4d05b2fa0d1759cb3cdbee07319923530293589 days 8 hrs ago0xec3184af01ad86be9b54b6eb88c582bba53f4f650x574c4db1e399859753a09d65b6c55864296637010.01 Ether
0x9e59533415f84f6dbb9d84a810508b4275e0909b75efeba223df6df7516120a2529021591 days 11 hrs ago0xec3184af01ad86be9b54b6eb88c582bba53f4f650x574c4db1e399859753a09d65b6c55864296637010.01 Ether
0xda5c285355eaf56c3056a30333b8fff9adc3153d45ec77ae92cd29fed089f70d5135727117 days 17 hrs ago0xec3184af01ad86be9b54b6eb88c582bba53f4f650x574c4db1e399859753a09d65b6c55864296637010.001 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: TokenTrust
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;

contract ERC20 {
  function balanceOf(address _owner) public constant returns (uint balance);
  function transfer(address _to, uint _value) public returns (bool success);
}

contract TokenTrust {
	address public owner;
	uint256 start;
	mapping(address=>uint256) public trust;
	event AddTrust(address indexed _token, uint256 indexed _trust);
	modifier onlyOwner() {
      if (msg.sender!=owner) revert();
      _;
    }
    
    function TokenTrust() public {
    	owner = msg.sender;
    	start = block.number;
    }
    
    function transferOwnership(address newOwner) public onlyOwner {
        owner = newOwner;
    }
    
    function getStart() public constant returns(uint256) {
        return start;
    }
    
    function getTokenTrust(address tadr) public constant returns(uint256) {
        return trust[tadr];
    }
    
    function withdrawTokens(address tadr, uint256 tokens) public onlyOwner  {
        if (tokens==0 || ERC20(tadr).balanceOf(address(this))<tokens) revert();
        trust[tadr]+=1;
        AddTrust(tadr,trust[tadr]);
        ERC20(tadr).transfer(owner, tokens);
    }
    
    function addTokenTrust(address tadr) public payable {
        if (msg.value==0 || tadr==address(0) || ERC20(tadr).balanceOf(msg.sender)==0) revert();
        trust[tadr]+=1;
        AddTrust(tadr,trust[tadr]);
        owner.transfer(msg.value);
    }
    
    function () payable public {
        if (msg.value>0) owner.transfer(msg.value);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"tadr","type":"address"},{"name":"tokens","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"trust","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tadr","type":"address"}],"name":"addTokenTrust","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStart","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tadr","type":"address"}],"name":"getTokenTrust","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_token","type":"address"},{"indexed":true,"name":"_trust","type":"uint256"}],"name":"AddTrust","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504360018190555061093a806100656000396000f300606060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306b091f9146100f05780634637d827146101325780634d4b1a881461017f5780638da5cb5b146101ad578063c5292c6714610202578063e41202201461022b578063f2fde38b14610278575b60003411156100ee576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015156100ed57600080fd5b5b005b34156100fb57600080fd5b610130600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506102b1565b005b341561013d57600080fd5b610169600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061059e565b6040518082815260200191505060405180910390f35b6101ab600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105b6565b005b34156101b857600080fd5b6101c06107f8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561020d57600080fd5b61021561081d565b6040518082815260200191505060405180910390f35b341561023657600080fd5b610262600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610827565b6040518082815260200191505060405180910390f35b341561028357600080fd5b6102af600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610870565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561030c57600080fd5b60008114806103d75750808273ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156103ba57600080fd5b6102c65a03f115156103cb57600080fd5b50505060405180519050105b156103e157600080fd5b6001600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548273ffffffffffffffffffffffffffffffffffffffff167fd1279ea816fe5d2927b75d801ea3cf9c18768d4ea697c64889a75e4b0c0bc64c60405160405180910390a38173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561057e57600080fd5b6102c65a03f1151561058f57600080fd5b50505060405180519050505050565b60026020528060005260406000206000915090505481565b60003414806105f15750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b806106b9575060008173ffffffffffffffffffffffffffffffffffffffff166370a08231336000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561069c57600080fd5b6102c65a03f115156106ad57600080fd5b50505060405180519050145b156106c357600080fd5b6001600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548173ffffffffffffffffffffffffffffffffffffffff167fd1279ea816fe5d2927b75d801ea3cf9c18768d4ea697c64889a75e4b0c0bc64c60405160405180910390a36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015156107f557600080fd5b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600154905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108cb57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058205b6c711b9df05700e783d21112bd791acf885e87fdcd7dfac5fbd293a11e58bf0029

   Swarm Source:
bzzr://5b6c711b9df05700e783d21112bd791acf885e87fdcd7dfac5fbd293a11e58bf

 

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.