Contract Overview
Balance: 0 Ether
Transactions: 4 txns
Token Tracker: DRT
 Latest 4 txns

TxHash Age From To Value [TxFee]
0x0dedaa2a2dff251fb12554a76d379be652ce69c9142bbf34878ca4f26977e79267 days 14 hrs ago0x49d22f8740d6f08b3235ace9a90648b206962cbd  IN   0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether0.00005198
0xb4d1664da219f5a484bbb7ca036bc8b6d10b1bc3de4b4e46a5e4bd870ec819de68 days 14 hrs ago0x49d22f8740d6f08b3235ace9a90648b206962cbd  IN   0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether0.002405
0x4efa3e1b3b1be1ba8bb41ac64720e308053acc1a6621ee8a136dd806bb2fd32568 days 14 hrs ago0x49d22f8740d6f08b3235ace9a90648b206962cbd  IN   0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether0.004382
0x0e1ea4d6db9ff4e0bf3ac4ac787eae0c456a6437ae2951710aff53b8222736f068 days 14 hrs ago0x49d22f8740d6f08b3235ace9a90648b206962cbd  IN    Contract Creation0 Ether0.0793628
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 15 Internal Transactions

ParentTxHash Block Age From To Value
0xe45f51079643b833b7055c31aab67025c74cbcb7ebeee4984acc245d0f272a3c351104964 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x80296596e6e73749fdea1a8f58d4850ab1f2ab922cebc3721f6d605d2b9cde12351103164 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x7e6977c29e10f3a8aecb8773eeeb86215b18131dcd0f82f8fcfdacff35546f83351102964 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0xbc8cfa57f62a7c78c78209ebf3a3cf85fee86d2364f3b58487f9045fafef0168351102864 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x64a0df4aabe66578187d0d7c12be8006047f970b2ae1d5c0723827235c4050c1351102764 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0xdfdb0cff7a86b6cd5f4d4c9c7c12eece57263d3941f3a9c20e19c2a518f74d58351102764 days 13 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x5715cfdd55b494667cdf9130bc51d601a9a5bc82ac0bcd6abb4e83774875efe2350056366 days 8 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x55677e60104d3e56514ca248aa1b0b3afd1a77af8d53924ca56689af11e630ca350054866 days 8 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0xe49ca595826867a999fefaffeabe2d0d831f8a9d10238be24839d2766289238f350051066 days 9 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x64d97fb78f58250cf3e756b1e1d3e29674b453a4c77f2d2e6d6a7bcb7cd51435350030966 days 9 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x1fa1316c12512a739e40436e7e3db0cee5339ca907f756341b60bc3055edb068350025066 days 10 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0xda5ecb263cbb93695c2d7f001532b342b08488836c3fda990fb6e72c2a6cd156350024966 days 10 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x55612fd07bfccd4b1d628dafe3a24ca3cb4ccd14939d7301621d6d123a3defc7350018866 days 10 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0xa5fcb318c375b434c81aeb05adfb4255b2a6c45998a5d70843310e4ea6f2505a350017966 days 10 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
0x7727ce19705137087504605d79def2c2f34cee96c369758653d248d32d12878c350016366 days 10 hrs ago0xd18d96f48d5a2cffa4bb12862d262c0ee32a488a0xd162be13fab3416b7f3e4af233abb5e7a15ae5730 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0x81f7cff4e30d8878114111b211f8bcc6c7fa31ae
Contract Name: Token
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

// File: zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * See https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address _who) public view returns (uint256);
  function transfer(address _to, uint256 _value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

// File: zeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address _owner, address _spender)
    public view returns (uint256);

  function transferFrom(address _from, address _to, uint256 _value)
    public returns (bool);

  function approve(address _spender, uint256 _value) public returns (bool);
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
  );
}

// File: zeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (_a == 0) {
      return 0;
    }

    c = _a * _b;
    assert(c / _a == _b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
    // assert(_b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = _a / _b;
    // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold
    return _a / _b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
    assert(_b <= _a);
    return _a - _b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
    c = _a + _b;
    assert(c >= _a);
    return c;
  }
}

// File: zeppelin-solidity/contracts/token/ERC20/BasicToken.sol

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) internal balances;

  uint256 internal totalSupply_;

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return totalSupply_;
  }

  /**
  * @dev Transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_value <= balances[msg.sender]);
    require(_to != address(0));

    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256) {
    return balances[_owner];
  }

}

// File: zeppelin-solidity/contracts/token/ERC20/StandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/issues/20
 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(
    address _from,
    address _to,
    uint256 _value
  )
    public
    returns (bool)
  {
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);
    require(_to != address(0));

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(
    address _owner,
    address _spender
   )
    public
    view
    returns (uint256)
  {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(
    address _spender,
    uint256 _addedValue
  )
    public
    returns (bool)
  {
    allowed[msg.sender][_spender] = (
      allowed[msg.sender][_spender].add(_addedValue));
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(
    address _spender,
    uint256 _subtractedValue
  )
    public
    returns (bool)
  {
    uint256 oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue >= oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

// File: contracts/Token.sol

contract Token is ERC20, StandardToken {

    string public constant tokenName = "DApp Registry Token";
    string public constant symbol = "DRT";
    uint8 public constant decimals = 18;

    uint256 public constant INITIAL_SUPPLY = 1000000 * (uint(10) ** uint(decimals));

    address public registry;

    constructor() public {
        totalSupply_ = INITIAL_SUPPLY;
        balances[msg.sender] = INITIAL_SUPPLY;
        emit Transfer(address(0), msg.sender, INITIAL_SUPPLY);
    }

    function set_registry(address registry_) external {
        require(registry_ != address(0));
        require(registry == address(0));

        registry = registry_;
    }

  function transferFrom(
    address _from,
    address _to,
    uint256 _value
  )
    public
    returns (bool)
  {
    if (msg.sender != registry || _to != registry)
        return super.transferFrom(_from, _to, _value);

    // Registry is pre-approved
    require(_value <= balances[_from]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenName","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"registry","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":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"registry_","type":"address"}],"name":"set_registry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"},{"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"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b5069d3c21bcecceda1000000600181905533600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3610a32806100776000396000f3006080604052600436106100cf5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b381146100d457806318160ddd1461010c57806323b872dd146101335780632ff2e9dc1461015d578063313ce56714610172578063661884631461019d5780636c02a931146101c157806370a082311461024b5780637b1039991461026c57806395d89b411461029d578063a9059cbb146102b2578063d73dd623146102d6578063dd62ed3e146102fa578063f1e300bb14610321575b600080fd5b3480156100e057600080fd5b506100f8600160a060020a0360043516602435610344565b604080519115158252519081900360200190f35b34801561011857600080fd5b506101216103aa565b60408051918252519081900360200190f35b34801561013f57600080fd5b506100f8600160a060020a03600435811690602435166044356103b0565b34801561016957600080fd5b506101216104d5565b34801561017e57600080fd5b506101876104e3565b6040805160ff9092168252519081900360200190f35b3480156101a957600080fd5b506100f8600160a060020a03600435166024356104e8565b3480156101cd57600080fd5b506101d66105d7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102105781810151838201526020016101f8565b50505050905090810190601f16801561023d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025757600080fd5b50610121600160a060020a036004351661060e565b34801561027857600080fd5b50610281610629565b60408051600160a060020a039092168252519081900360200190f35b3480156102a957600080fd5b506101d6610638565b3480156102be57600080fd5b506100f8600160a060020a036004351660243561066f565b3480156102e257600080fd5b506100f8600160a060020a036004351660243561074e565b34801561030657600080fd5b50610121600160a060020a03600435811690602435166107e7565b34801561032d57600080fd5b50610342600160a060020a0360043516610812565b005b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60015490565b600354600090600160a060020a0316331415806103db5750600354600160a060020a03848116911614155b156103f2576103eb84848461086c565b90506104ce565b600160a060020a03841660009081526020819052604090205482111561041757600080fd5b600160a060020a038416600090815260208190526040902054610440908363ffffffff6109e116565b600160a060020a038086166000908152602081905260408082209390935590851681522054610475908363ffffffff6109f316565b600160a060020a038085166000818152602081815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060015b9392505050565b69d3c21bcecceda100000081565b601281565b336000908152600260209081526040808320600160a060020a038616845290915281205480831061053c57336000908152600260209081526040808320600160a060020a0388168452909152812055610571565b61054c818463ffffffff6109e116565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b60408051808201909152601381527f4441707020526567697374727920546f6b656e00000000000000000000000000602082015281565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031681565b60408051808201909152600381527f4452540000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526020819052604081205482111561068b57600080fd5b600160a060020a03831615156106a057600080fd5b336000908152602081905260409020546106c0908363ffffffff6109e116565b3360009081526020819052604080822092909255600160a060020a038516815220546106f2908363ffffffff6109f316565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b336000908152600260209081526040808320600160a060020a0386168452909152812054610782908363ffffffff6109f316565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600160a060020a038116151561082757600080fd5b600354600160a060020a03161561083d57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a03831660009081526020819052604081205482111561089157600080fd5b600160a060020a03841660009081526002602090815260408083203384529091529020548211156108c157600080fd5b600160a060020a03831615156108d657600080fd5b600160a060020a0384166000908152602081905260409020546108ff908363ffffffff6109e116565b600160a060020a038086166000908152602081905260408082209390935590851681522054610934908363ffffffff6109f316565b600160a060020a03808516600090815260208181526040808320949094559187168152600282528281203382529091522054610976908363ffffffff6109e116565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b6000828211156109ed57fe5b50900390565b81810182811015610a0057fe5b929150505600a165627a7a723058208e675e59a90e0d753f1622b4a717b0e7d50e53f1fba5e9d375518e65dadda5cd0029

   Swarm Source:
bzzr://8e675e59a90e0d753f1622b4a717b0e7d50e53f1fba5e9d375518e65dadda5cd

 

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