[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact Match)
Contract Name: BLINKToken
Compiler Text: v0.5.2+commit.1df8f40c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.5.2;

contract BLINKToken {
  mapping (address => mapping (address => uint256)) allowed;
  mapping(address => uint256) balances;
  uint256 public decimals = 18;
  bool public mintingFinished = false;
  string public name = "BLOCKMASON LINK TOKEN";
  address public owner;
  string public symbol = "BLINK";
  uint256 public totalSupply;

  event Approval(address indexed tokenholder, address indexed spender, uint256 value);
  event Burn(address indexed from, uint256 amount);
  event Mint(address indexed to, uint256 amount);
  event MintFinished();
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
  event Transfer(address indexed from, address indexed to, uint256 value);

  constructor() public {
    owner = msg.sender;
  }

  function allowance(address _tokenholder, address _spender) public view returns (uint256 remaining) {
    return allowed[_tokenholder][_spender];
  }

  function approve(address _spender, uint256 _value) public returns (bool) {
    require(_spender != address(0));
    require(_spender != msg.sender);

    allowed[msg.sender][_spender] = _value;

    emit Approval(msg.sender, _spender, _value);

    return true;
  }

  function balanceOf(address _tokenholder) public view returns (uint256 balance) {
    return balances[_tokenholder];
  }

  function burn(uint256 _value) public returns (bool) {
    require(balances[msg.sender] - _value < balances[msg.sender]);
    require(totalSupply - _value < totalSupply);
    require(_value <= transferableTokens(msg.sender, 0));

    balances[msg.sender] = balances[msg.sender] - _value;
    totalSupply = totalSupply - _value;

    emit Burn(msg.sender, _value);

    return true;
  }

  function burnFrom(address _tokenholder, uint256 _value) public returns (bool) {
    require(_tokenholder != address(0));
    require(_value <= transferableTokens(_tokenholder, 0));
    require(allowed[_tokenholder][msg.sender] - _value < allowed[_tokenholder][msg.sender]);
    require(balances[_tokenholder] - _value < balances[_tokenholder]);
    require(totalSupply - _value < totalSupply);

    allowed[_tokenholder][msg.sender] = allowed[_tokenholder][msg.sender] - _value;
    balances[_tokenholder] = balances[_tokenholder] - _value;
    totalSupply = totalSupply - _value;

    emit Burn(_tokenholder, _value);

    return true;
  }

  function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool success) {
    require(_spender != address(0));
    require(_spender != msg.sender);

    if (allowed[msg.sender][_spender] <= _subtractedValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = allowed[msg.sender][_spender] - _subtractedValue;
    }

    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);

    return true;
  }

  function finishMinting() public returns (bool) {
    require(msg.sender == owner);
    require(!mintingFinished);

    mintingFinished = true;

    emit MintFinished();

    return true;
  }

  function increaseApproval(address _spender, uint _addedValue) public returns (bool success) {
    require(_spender != address(0));
    require(_spender != msg.sender);
    require(allowed[msg.sender][_spender] < allowed[msg.sender][_spender] + _addedValue);

    allowed[msg.sender][_spender] = allowed[msg.sender][_spender] + _addedValue;

    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);

    return true;
  }

  function mint(address _to, uint256 _amount) public returns (bool) {
    require(msg.sender == owner);
    require(!mintingFinished);
    require(_to != address(0));
    require(totalSupply < totalSupply + _amount);
    require(balances[_to] < balances[_to] + _amount);

    totalSupply = totalSupply + _amount;
    balances[_to] = balances[_to] + _amount;

    emit Mint(_to, _amount);
    emit Transfer(address(0), _to, _amount);

    return true;
  }

  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_to != msg.sender);
    require(balances[msg.sender] - _value < balances[msg.sender]);
    require(balances[_to] < balances[_to] + _value);
    require(_value <= transferableTokens(msg.sender, 0));

    balances[msg.sender] = balances[msg.sender] - _value;
    balances[_to] = balances[_to] + _value;

    emit Transfer(msg.sender, _to, _value);

    return true;
  }

  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    require(_from != address(0));
    require(_to != address(0));
    require(_to != _from);
    require(_value <= transferableTokens(_from, 0));
    require(allowed[_from][msg.sender] - _value < allowed[_from][msg.sender]);
    require(balances[_from] - _value < balances[_from]);
    require(balances[_to] < balances[_to] + _value);

    allowed[_from][msg.sender] = allowed[_from][msg.sender] - _value;
    balances[_from] = balances[_from] - _value;
    balances[_to] = balances[_to] + _value;

    emit Transfer(_from, _to, _value);

    return true;
  }

  function transferOwnership(address _newOwner) public {
    require(msg.sender == owner);
    require(_newOwner != address(0));
    require(_newOwner != owner);

    address previousOwner = owner;
    owner = _newOwner;

    emit OwnershipTransferred(previousOwner, _newOwner);
  }

  function transferableTokens(address holder, uint64) public view returns (uint256) {
    if (mintingFinished) {
      return balanceOf(holder);
    }
    return 0;
  }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"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":"","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":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenholder","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenholder","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"finishMinting","outputs":[{"name":"","type":"bool"}],"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":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"holder","type":"address"},{"name":"","type":"uint64"}],"name":"transferableTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenholder","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenholder","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":false,"name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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
60126002556003805460ff1916905560c0604052601560808190527f424c4f434b4d41534f4e204c494e4b20544f4b454e000000000000000000000060a090815261004d91600491906100b7565b506040805180820190915260058082527f424c494e4b0000000000000000000000000000000000000000000000000000006020909201918252610092916006916100b7565b5034801561009f57600080fd5b5060058054600160a060020a03191633179055610152565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610e6e806101616000396000f3fe608060405234801561001057600080fd5b506004361061013e576000357c01000000000000000000000000000000000000000000000000000000009004806370a08231116100ca578063a9059cbb1161008e578063a9059cbb1461035b578063d347c20514610387578063d73dd623146103bd578063dd62ed3e146103e9578063f2fde38b146104175761013e565b806370a08231146102d557806379cc6790146102fb5780637d64bcb4146103275780638da5cb5b1461032f57806395d89b41146103535761013e565b806323b872dd1161011157806323b872dd14610222578063313ce5671461025857806340c10f191461026057806342966c681461028c57806366188463146102a95761013e565b806305d2035b1461014357806306fdde031461015f578063095ea7b3146101dc57806318160ddd14610208575b600080fd5b61014b61043f565b604080519115158252519081900360200190f35b610167610448565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a1578181015183820152602001610189565b50505050905090810190601f1680156101ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014b600480360360408110156101f257600080fd5b50600160a060020a0381351690602001356104d6565b610210610569565b60408051918252519081900360200190f35b61014b6004803603606081101561023857600080fd5b50600160a060020a0381358116916020810135909116906040013561056f565b6102106106ce565b61014b6004803603604081101561027657600080fd5b50600160a060020a0381351690602001356106d4565b61014b600480360360208110156102a257600080fd5b50356107ee565b61014b600480360360408110156102bf57600080fd5b50600160a060020a03813516906020013561088e565b610210600480360360208110156102eb57600080fd5b5035600160a060020a0316610996565b61014b6004803603604081101561031157600080fd5b50600160a060020a0381351690602001356109b1565b61014b610ac1565b610337610b27565b60408051600160a060020a039092168252519081900360200190f35b610167610b36565b61014b6004803603604081101561037157600080fd5b50600160a060020a038135169060200135610b91565b6102106004803603604081101561039d57600080fd5b508035600160a060020a0316906020013567ffffffffffffffff16610c86565b61014b600480360360408110156103d357600080fd5b50600160a060020a038135169060200135610cad565b610210600480360360408110156103ff57600080fd5b50600160a060020a0381358116916020013516610d73565b61043d6004803603602081101561042d57600080fd5b5035600160a060020a0316610d9c565b005b60035460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104ce5780601f106104a3576101008083540402835291602001916104ce565b820191906000526020600020905b8154815290600101906020018083116104b157829003601f168201915b505050505081565b6000600160a060020a03831615156104ed57600080fd5b600160a060020a03831633141561050357600080fd5b33600081815260208181526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60075481565b6000600160a060020a038416151561058657600080fd5b600160a060020a038316151561059b57600080fd5b600160a060020a0383811690851614156105b457600080fd5b6105bf846000610c86565b8211156105cb57600080fd5b600160a060020a038416600090815260208181526040808320338452909152902054828103106105fa57600080fd5b600160a060020a0384166000908152600160205260409020548281031061062057600080fd5b600160a060020a0383166000908152600160205260409020548083011161064657600080fd5b600160a060020a038085166000818152602081815260408083203384528252808320805488900390558383526001825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60025481565b600554600090600160a060020a031633146106ee57600080fd5b60035460ff16156106fe57600080fd5b600160a060020a038316151561071357600080fd5b6007548083011161072357600080fd5b600160a060020a0383166000908152600160205260409020548083011161074957600080fd5b6007805483019055600160a060020a038316600081815260016020908152604091829020805486019055815185815291517f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859281900390910190a2604080518381529051600160a060020a038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b336000908152600160205260408120548281031061080b57600080fd5b6007548281031061081b57600080fd5b610826336000610c86565b82111561083257600080fd5b3360008181526001602090815260409182902080548690039055600780548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b6000600160a060020a03831615156108a557600080fd5b600160a060020a0383163314156108bb57600080fd5b33600090815260208181526040808320600160a060020a0387168452909152902054821061090a5733600090815260208181526040808320600160a060020a0387168452909152812055610933565b33600090815260208181526040808320600160a060020a03871684529091529020805483900390555b33600081815260208181526040808320600160a060020a0388168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600160a060020a031660009081526001602052604090205490565b6000600160a060020a03831615156109c857600080fd5b6109d3836000610c86565b8211156109df57600080fd5b600160a060020a03831660009081526020818152604080832033845290915290205482810310610a0e57600080fd5b600160a060020a03831660009081526001602052604090205482810310610a3457600080fd5b60075482810310610a4457600080fd5b600160a060020a038316600081815260208181526040808320338452825280832080548790039055838352600182529182902080548690039055600780548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b600554600090600160a060020a03163314610adb57600080fd5b60035460ff1615610aeb57600080fd5b6003805460ff191660011790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a150600190565b600554600160a060020a031681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104ce5780601f106104a3576101008083540402835291602001916104ce565b6000600160a060020a0383161515610ba857600080fd5b600160a060020a038316331415610bbe57600080fd5b3360009081526001602052604090205482810310610bdb57600080fd5b600160a060020a03831660009081526001602052604090205480830111610c0157600080fd5b610c0c336000610c86565b821115610c1857600080fd5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60035460009060ff1615610ca457610c9d83610996565b9050610563565b50600092915050565b6000600160a060020a0383161515610cc457600080fd5b600160a060020a038316331415610cda57600080fd5b33600090815260208181526040808320600160a060020a038716845290915290205482810111610d0957600080fd5b33600081815260208181526040808320600160a060020a038816808552908352928190208054870190819055815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600160a060020a0391821660009081526020818152604080832093909416825291909152205490565b600554600160a060020a03163314610db357600080fd5b600160a060020a0381161515610dc857600080fd5b600554600160a060020a0382811691161415610de357600080fd5b60058054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505056fea165627a7a7230582092db0321e70a879ba419aaa71ce5d30a349a9edc5928c21c761bb4a4143b6f3a0029

   Swarm Source:
bzzr://92db0321e70a879ba419aaa71ce5d30a349a9edc5928c21c761bb4a4143b6f3a

 

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