Contract Overview
Balance: 0 Ether
Transactions: 2 txns
Token Tracker: CC (CC)
 Latest 2 txns

TxHash Age From To Value [TxFee]
0x09cf2a5a127849918d549196583f89912667d34ec6ee80df8b07a9fbeeb810c1397 days 23 hrs ago0xedbbd263d2522e5ff518fc4dcd485c3af8527a0c  IN   0x74e0fac1778482cbd178cfc18d3cc3a8480ec39d0 Ether0.00674194
0x5d59f131b0cac3a584fa4249c2796890547daa54591b70705695df8bcabd1b74397 days 23 hrs ago0xedbbd263d2522e5ff518fc4dcd485c3af8527a0c  IN    Contract Creation0 Ether0.02187074


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x09cf2a5a127849918d549196583f89912667d34ec6ee80df8b07a9fbeeb810c11612305397 days 23 hrs ago0x74e0fac1778482cbd178cfc18d3cc3a8480ec39d0x53df624c45577011cc064e6fcd8b2ec7abf61be40 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Fyle
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;

contract Owned {
  address public owner;

  function Owned(
    )
      public {
        owner = msg.sender;
    }

  modifier onlyOwner {
    require(msg.sender == owner);
    _;
  }

  function transferOwnership(
    address _owner)
      onlyOwner public {
        require(_owner != 0x0);

        owner = _owner;
    }
}

interface tokenRecipient {
  function receiveApproval(
    address _from,
    uint256 _value,
    address _token,
    bytes _extraData)
      public;
}

contract ERC20Token {
  string public name;
  string public symbol;
  uint8 public decimals;
  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 ERC20Token(
    string _tokenName,
    string _tokenSymbol,
    uint8 _decimals,
    uint256 _totalSupply)
      public {
        name = _tokenName;
        symbol = _tokenSymbol;
        decimals = _decimals;
        totalSupply = _totalSupply * 10 ** uint256(decimals);
        balanceOf[msg.sender] = totalSupply;
    }

  function _transfer(
    address _from,
    address _to,
    uint256 _value)
      internal {
        require(_to != 0x0);
        require(_from != 0x0);
        require(_from != _to);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);

        uint256 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 approveAndCall(
    address _spender,
    uint256 _value,
    bytes _extraData)
      public returns (bool success) {
        tokenRecipient spender = tokenRecipient(_spender);

        if (approve(_spender, _value)) {
          spender.receiveApproval(msg.sender, _value, this, _extraData);
          
          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;
    }
}

interface Stamps {
  function transferStmpsToOwnerAccount(
    address _from,
    uint256 _value)
      public;
}

contract Fyle is Owned, ERC20Token {
  mapping(address => Message[]) messages;

  struct Message {
    address from;
    uint256 timestamp;
    string link;
  }

  Message _messageTemplate;

  function Fyle(
    string _tokenName,
    string _tokenSymbol,
    uint8 _decimals,
    uint256 _totalSupply)
      ERC20Token(_tokenName, _tokenSymbol, _decimals, _totalSupply) public {
    }

  function addFyle(address _stmpContractAddress, uint256 _stmps, address _from, address _to, uint256 _timestamp, string _link) onlyOwner public {
    Message storage _message = _messageTemplate;
    
    _message.from = _from;
    _message.timestamp = _timestamp;
    _message.link = _link;
    
    balanceOf[_to] += 1;
    messages[_to].push(_message);

    Stamps stmps = Stamps(_stmpContractAddress);
    stmps.transferStmpsToOwnerAccount(_from, _stmps);
    Transfer(_from, _to, 1);
  }
}

    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":false,"inputs":[{"name":"_stmpContractAddress","type":"address"},{"name":"_stmps","type":"uint256"},{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_timestamp","type":"uint256"},{"name":"_link","type":"string"}],"name":"addFyle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"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"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_tokenName","type":"string"},{"name":"_tokenSymbol","type":"string"},{"name":"_decimals","type":"uint8"},{"name":"_totalSupply","type":"uint256"}],"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
6060604052341561000f57600080fd5b604051610f35380380610f35833981016040528080518201919060200180518201919060200180519190602001805160008054600160a060020a03191633600160a060020a0316179055915084905083838360018480516100749291602001906100cc565b5060028380516100889291602001906100cc565b506003805460ff191660ff9384161790819055909116600a0a02600481905533600160a060020a031660009081526005602052604090205550610167945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010d57805160ff191683800117855561013a565b8280016001018555821561013a579182015b8281111561013a57825182559160200191906001019061011f565b5061014692915061014a565b5090565b61016491905b808211156101465760008155600101610150565b90565b610dbf806101766000396000f3006060604052600436106100c15763ffffffff60e060020a60003504166306fdde0381146100c6578063095ea7b31461015057806318160ddd1461018657806323b872dd146101ab578063313ce567146101d357806342966c68146101fc57806370a082311461021257806379cc6790146102315780638a00bd1d146102535780638da5cb5b146102ca57806395d89b41146102f9578063a9059cbb1461030c578063cae9ca511461032e578063dd62ed3e14610393578063f2fde38b146103b8575b600080fd5b34156100d157600080fd5b6100d96103d7565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101155780820151838201526020016100fd565b50505050905090810190601f1680156101425780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015b57600080fd5b610172600160a060020a0360043516602435610475565b604051901515815260200160405180910390f35b341561019157600080fd5b6101996104a5565b60405190815260200160405180910390f35b34156101b657600080fd5b610172600160a060020a03600435811690602435166044356104ab565b34156101de57600080fd5b6101e6610522565b60405160ff909116815260200160405180910390f35b341561020757600080fd5b61017260043561052b565b341561021d57600080fd5b610199600160a060020a03600435166105b6565b341561023c57600080fd5b610172600160a060020a03600435166024356105c8565b341561025e57600080fd5b6102c8600160a060020a036004803582169160248035926044358316926064351691608435919060c49060a43590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506106a495505050505050565b005b34156102d557600080fd5b6102dd610871565b604051600160a060020a03909116815260200160405180910390f35b341561030457600080fd5b6100d9610880565b341561031757600080fd5b6102c8600160a060020a03600435166024356108eb565b341561033957600080fd5b61017260048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506108fa95505050505050565b341561039e57600080fd5b610199600160a060020a0360043581169060243516610a13565b34156103c357600080fd5b6102c8600160a060020a0360043516610a30565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561046d5780601f106104425761010080835404028352916020019161046d565b820191906000526020600020905b81548152906001019060200180831161045057829003601f168201915b505050505081565b600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60045481565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548211156104e057600080fd5b600160a060020a0380851660009081526006602090815260408083203390941683529290522080548390039055610518848484610a8f565b5060019392505050565b60035460ff1681565b600160a060020a0333166000908152600560205260408120548290101561055157600080fd5b600160a060020a03331660008181526005602052604090819020805485900390556004805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60056020526000908152604090205481565b600160a060020a038216600090815260056020526040812054829010156105ee57600080fd5b600160a060020a038084166000908152600660209081526040808320339094168352929052205482111561062157600080fd5b600160a060020a038084166000818152600560209081526040808320805488900390556006825280832033909516835293905282902080548590039055600480548590039055907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a250600192915050565b60008054819033600160a060020a039081169116146106c257600080fd5b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03881617815560098590559150600a838051610704929160200190610bc3565b50600160a060020a03851660009081526005602090815260408083208054600190810190915560079092529091208054909181016107428382610c41565b600092835260209092208454600390920201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0390921691909117815560018085015481830155600280860180548794936107b093808601939291821615610100026000190190911604610c72565b5050505087905080600160a060020a031663bb9fc9ed878960405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561080b57600080fd5b6102c65a03f1151561081c57600080fd5b50505084600160a060020a031686600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600160405190815260200160405180910390a35050505050505050565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561046d5780601f106104425761010080835404028352916020019161046d565b6108f6338383610a8f565b5050565b6000836109078185610475565b15610a0b5780600160a060020a0316638f4ffcb1338630876040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156109a457808201518382015260200161098c565b50505050905090810190601f1680156109d15780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156109f257600080fd5b6102c65a03f11515610a0357600080fd5b505050600191505b509392505050565b600660209081526000928352604080842090915290825290205481565b60005433600160a060020a03908116911614610a4b57600080fd5b600160a060020a0381161515610a6057600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a0383161515610aa657600080fd5b600160a060020a0384161515610abb57600080fd5b600160a060020a038481169084161415610ad457600080fd5b600160a060020a03841660009081526005602052604090205482901015610afa57600080fd5b600160a060020a03831660009081526005602052604090205482810111610b2057600080fd5b50600160a060020a0380831660008181526005602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a03808416600090815260056020526040808220549287168252902054018114610bbd57fe5b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610c0457805160ff1916838001178555610c31565b82800160010185558215610c31579182015b82811115610c31578251825591602001919060010190610c16565b50610c3d929150610ce7565b5090565b815481835581811511610c6d57600302816003028360005260206000209182019101610c6d9190610d04565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610cab5780548555610c31565b82800160010185558215610c3157600052602060002091601f016020900482015b82811115610c31578254825591600101919060010190610ccc565b610d0191905b80821115610c3d5760008155600101610ced565b90565b610d0191905b80821115610c3d57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201819055610d436002830182610d4c565b50600301610d0a565b50805460018160011615610100020316600290046000825580601f10610d725750610d90565b601f016020900490600052602060002090810190610d909190610ce7565b505600a165627a7a723058200f3bababd4074a4d3fbb179a7c474f5cf57c647213aab57ca072347cef936d5b0029000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024343000000000000000000000000000000000000000000000000000000000000

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024343000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 4343000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 4343000000000000000000000000000000000000000000000000000000000000


   Swarm Source:
bzzr://0f3bababd4074a4d3fbb179a7c474f5cf57c647213aab57ca072347cef936d5b

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward