Blockwell

Kin

ERC20

This contract is an ERC20 token.

Name Kin
Symbol KIN
Decimals 18
Total Supply 10,000,000,000,000 KIN

About

Stats

Public Functions 10
Event Types 7
Code Size 30,431 bytes

Library Use

Uses SafeMath for uint256.

Events (7) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

MintingEnded Event

Parameters help

OwnershipRequested Event

Parameters help
_by
address help
_to
address help

OwnershipTransferred Event

Parameters help
_from
address help
_to
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
Kin

symbol Constant

string help
KIN

decimals Constant

uint8 help
18

isMinting Variable

bool help

owner Variable

address help

newOwnerCandidate Variable

address help

totalSupply Variable

uint256 help

totalSupply Variable

uint256 help

allowed Variable

mapping(address => mapping(address => uint256)) help
Internal Variable

balances Variable

mapping(address => uint256) help
Internal Variable

Functions Expand All Collapse All

Parameters help

Name Type
_newOwnerCandidate
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:

Requirements help

Source Code
function requestOwnershipTransfer(address _newOwnerCandidate)
  external
  onlyOwner
{
  require(_newOwnerCandidate != address(0));

  newOwnerCandidate = _newOwnerCandidate;

  OwnershipRequested(msg.sender, newOwnerCandidate);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwnerCandidate checks for the following:
Source Code
function acceptOwnership() external onlyOwnerCandidate {
  address previousOwner = owner;

  owner = newOwnerCandidate;
  newOwnerCandidate = address(0);

  OwnershipTransferred(previousOwner, owner);
}

Parameters help

Name Type
_tokenAddress
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function transferAnyERC20Token(address _tokenAddress, uint256 _amount)
  onlyOwner
  returns (bool success)
{
  return ERC20(_tokenAddress).transfer(owner, _amount);
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) constant returns (uint256 balance) {
  return balances[_owner];
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transfer(address _to, uint256 _value)
  public
  onlyAfterMinting
  returns (bool)
{
  return super.transfer(_to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public onlyAfterMinting returns (bool) {
  return super.transferFrom(_from, _to, _value);
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  public
  onlyAfterMinting
  returns (bool)
{
  return super.approve(_spender, _value);
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address _owner, address _spender)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function mint(address _to, uint256 _amount)
  external
  onlyOwner
  onlyDuringMinting
{
  totalSupply = totalSupply.add(_amount);
  balances[_to] = balances[_to].add(_amount);

  Transfer(0x0, _to, _amount);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function endMinting() external onlyOwner {
  if (isMinting == false) {
    return;
  }

  isMinting = false;

  MintingEnded();
}

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.